diff --git a/TODO.md b/TODO.md index 4d7541c16..e8835c95c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,58 @@ + # TODO: +- 修改用户名、头像、昵称、密码 + + +- 消息支持超长文本 +- 服务器当前状态页面 +- 简版工单-类似泡米网工单模块 +- 增加对接渠道:安卓、iOS、网页、公众号、抖音、Facebook等 +- 对接:twitter、微博等社交平台,实时回复社交平台账号评论 或 @消息 +- 配置对接第三方知识库问答,如:dify、fastgpt、网易qanything等知识库问答,支持权限数量配置,在客户端可见并可对话 +- 混淆加密proguard - socket/agent jar +- 支持国产数据库 +- 支持国产操作系统 + +- 压力测试, [jmeter](https://jmeter.apache.org/) +- 压测客服排队,同时10000个用户请求,测试排队情况 +- 付费解决方案:集群、统计、知识星球、付费群 +- 后端创建 model,通过命令一键生成相关 api 文件,前端通过配置直接生成 CRUD 页面,并可生成统计 chart 页面 +- 支持二级缓存,升级萝卜丝bytedesk-server4支持二级缓存 + +- 后台发布公告,客户端接收 +- 后台操作日志,管理后台/客户端登录日志 +- 当前登录用户、在线时长、登录次数、登录IP、登录设备、登录地址 + +- MQTT服务器参考[bifroMQ](https://bifromq.io/zh-Hans/docs/test_report/report/),并进行压测 - support plugins +- support docker deploy +- agent service tip support multi-language +- helpdesk knowledge support system, multi-language +- 英文版对标 [Rocket.Chat](https://www.rocket.chat/) +- 主动给用户生成个性化头像,并将头像文件存储本地 +- 类似[集简云](https://www.jijyun.cn/) 对接各大平台 +- 敏感词过滤,参考:[sensitive-word](https://github.com/houbb/sensitive-word?tab=readme-ov-file),[sensitive](https://github.com/houbb/sensitive) +- 服务器端支持双击运行,并打开界面。exe4j +- 支持docker部署 +- 国际化,支持更多语言:日语、韩语、中文简体、中文繁体、英文、法文、德文、西班牙文、俄文、阿拉伯文、希伯来文 + +## 客服模块 + +- 拦截骚扰用户 +- 被禁ip/ip段 +- 技能组对话 +- 支持多语言设置 diff --git a/starter/src/main/resources/templates/chat/assets/index-B9ZZOYs0.css b/starter/src/main/resources/templates/chat/assets/index-B9ZZOYs0.css deleted file mode 100644 index c22bc88d0..000000000 --- a/starter/src/main/resources/templates/chat/assets/index-B9ZZOYs0.css +++ /dev/null @@ -1 +0,0 @@ -.App{height:100%;width:100%}.ant-app,.ant-layout{height:100%}.ant-layout-sider{overflow:auto}.ant-layout-footer{padding:0}.ant-pro-form-login-container{-webkit-app-region:drag}.ant-pro-form-login-main{-webkit-app-region:no-drag}.ant-layout-header,.ant-menu{-webkit-app-region:drag}.ant-menu-item,.ant-menu-submenu{-webkit-app-region:no-drag}.ant-pro-layout .ant-pro-layout-content{padding-block:0;padding-inline:0}:root{--brand-1: #ff5000;--brand-2: #ff9000;--brand-3: #fff9eb;--black: #000;--white: #fff;--gray-1: #111;--gray-2: #666;--gray-3: #999;--gray-4: #ccc;--gray-5: #ddd;--gray-6: #eee;--gray-7: #f5f5f5;--gray-8: #f8f8f8;--light-1: #eee;--light-2: #f5f5f5;--highlight-1: var(--brand-1);--highlight-2: var(--brand-2);--link-color: var(--blue);--blue: #39f;--gray-dark: #333;--green: #62d957;--orange: #ff5000;--red: #ff3634;--yellow: #ffc233;--yellow-light: #fff9db;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-md: 1rem;--font-size-lg: 1.125rem;--radius-sm: .25rem;--radius-md: .75rem;--radius-lg: 1.25rem;--shadow-1: 0 3px 4px 0 rgba(0, 0, 0, .04);--shadow-2: 0 4px 8px 0 rgba(0, 0, 0, .08);--shadow-3: 0 6px 10px 0 rgba(0, 0, 0, .08);--safe-top: 0px;--safe-bottom: 0px;--gutter: 12px;--btn-primary-border-color: transparent;--btn-primary-bg: linear-gradient(90deg, var(--brand-2) 0%, var(--brand-1) 98%);--btn-primary-color: var(--white);--rate-width: 32px}@supports (top: constant(safe-area-inset-top)){:root{--safe-top: constant(safe-area-inset-top);--safe-bottom: constant(safe-area-inset-bottom)}}@supports (top: env(safe-area-inset-top)){:root{--safe-top: env(safe-area-inset-top);--safe-bottom: env(safe-area-inset-bottom)}}.S--invisible{position:absolute;clip:rect(0,0,0,0)}.pb-safe{padding-bottom:var(--safe-bottom)}@keyframes slideInRight{0%{transform:translate(100px);opacity:0}to{transform:translate(0);opacity:1}}.slide-in-right-item{animation:slideInRight .5s ease-in-out both}.slide-in-right-item:nth-child(2){animation-delay:.1s}.slide-in-right-item:nth-child(3){animation-delay:.2s}.slide-in-right-item:nth-child(4){animation-delay:.3s}.slide-in-right-item:nth-child(5){animation-delay:.4s}.slide-in-right-item:nth-child(6){animation-delay:.5s}.slide-in-right-item:nth-child(7){animation-delay:.6s}.slide-in-right-item:nth-child(8){animation-delay:.7s}.slide-in-right-item:nth-child(9){animation-delay:.8s}.slide-in-right-item:nth-child(10){animation-delay:.9s}.slide-in-right-item:nth-child(11){animation-delay:1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.A-fadeIn{animation:.6s fadeIn}.Avatar{display:inline-block;overflow:hidden;border-radius:50%}.Avatar img{display:block;width:36px;height:36px;-o-object-fit:cover;object-fit:cover}.Avatar--sm img{width:24px;height:24px}.Avatar--lg img{width:40px;height:40px}.Avatar--square{border-radius:4px}.Backdrop{position:fixed;bottom:0;left:0;right:0;z-index:100;transition:.3s;width:100vw;height:100vh;background:#000000b3;opacity:0;outline:0}.Backdrop.active{opacity:1}.Bubble{max-width:680px;min-width:1px;background:var(--white);border-radius:12px}.Bubble.text,.Bubble.typing{min-width:40px;padding:12px;box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.Bubble.image img{display:block;max-width:200px;max-height:200px;height:auto;border-radius:inherit}.Bubble p{margin:0}.Btn{display:inline-flex;align-items:center;justify-content:center;overflow:visible;min-width:80px;margin:0;padding:5px 12px;border:1px solid var(--gray-5);border-radius:999px;background:var(--white);color:var(--gray-1);font-weight:400;font-size:.875rem;line-height:1.5;font-family:inherit;text-transform:none;text-align:center;vertical-align:middle;white-space:nowrap;transition:.15s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent}.Btn:not(:disabled){cursor:pointer}.Btn:focus:not(:focus-visible){outline:0}.Btn:active{background:#00000014}.Btn:disabled{pointer-events:none;color:var(--gray-4);opacity:.5}.Btn--primary:not(.Btn--outline){border-color:var(--btn-primary-border-color);background:var(--btn-primary-bg);background-origin:border-box;color:var(--btn-primary-color)}.Btn--primary:not(.Btn--outline):active{opacity:.8}.Btn--outline.Btn--primary{border-color:var(--brand-1);color:var(--brand-1)}.Btn--sm{padding:4px 12px;font-size:.875rem}.Btn--lg{padding:7px 12px;font-size:1rem}.Btn--block{display:block;width:100%}.Btn-icon{display:inline-flex;align-self:center;flex-shrink:0;margin-inline-end:.5rem}[data-old-ios] .Btn:not(.Btn--block){display:inline-block}@media (hover: hover){.Btn:hover{background:#0000000a}.Btn--primary:not(.Btn--outline):hover{background:var(--btn-primary-bg);opacity:.9}}.Btn--text{padding:0;border:0;background:transparent;color:var(--link-color);font-size:inherit;vertical-align:initial}.Btn--text:hover,.Btn--text:active{background:transparent}.BackBottom{position:absolute;right:0;bottom:68px;z-index:10;overflow:hidden}.BackBottom .Btn{border-radius:50px 0 0 50px;border-right:0;background:#ffffffd9;color:var(--brand-1);font-size:var(--font-size-sm)}.Card{overflow:hidden;border-radius:12px;background:var(--white)}.Card--xl{width:300px}.Card--lg{width:160px}.Card--md{width:120px}.Card--sm{width:104px}.Card--xs{width:80px}.Card--fluid{width:calc(100% - var(--rate-width) - 16px);max-width:680px;min-width:260px}.Card[data-fluid=order]{max-width:360px}.CardMedia{position:relative;background-repeat:no-repeat;background-position:50%;background-size:cover}.CardMedia:after{display:block;height:0;content:""}.CardMedia--wide:after{padding-top:56.25%}.CardMedia--square:after{padding-top:100%}.CardMedia-content{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.CardTitle{padding:12px 12px 6px}.CardTitle--center{padding:4px 2px;text-align:center}.CardTitle-title{margin:0;font-size:1rem;font-weight:500}.CardTitle-subtitle{margin:0;color:var(--gray-3);font-size:.625rem}.CardContent{padding:12px}.CardTitle+.CardContent{padding-top:0}.CardText{padding:12px;color:var(--gray-1)}.CardTitle+.CardText{padding-top:0}.CardText p{margin:0}.CardActions{display:flex;padding:12px 12px 18px}.CardTitle+.CardActions,.CardText+.CardActions,.CardContent+.CardActions{padding-top:0}.CardActions .Btn{flex:1;line-height:1.5}.CardActions .Btn+.Btn{margin-left:12px}.CardActions--column{flex-direction:column;padding:0}.CardActions--column .Btn{padding:10px;border:0;border-top:1px solid var(--gray-6);border-radius:0;background:var(--white);color:var(--gray-3)}.CardActions--column .Btn:last-child{border-radius:0 0 12px 12px}.CardActions--column .Btn:active{background:var(--gray-7)}.CardActions--column .Btn:disabled{color:var(--gray-4)}.CardActions--column .Btn+.Btn{margin:0}.CardActions--column .Btn--primary{color:var(--brand-1)}@media (hover: hover){.CardActions--column .Btn:hover{background:var(--gray-7)}}.Divider{display:flex;align-items:center;margin:12px 0;font-size:.75rem;color:var(--gray-3)}.Divider:before,.Divider:after{content:"";display:block;flex:1;border-top:1px solid var(--gray-5)}.Divider--text-center:before,.Divider--text-left:before,.Divider--text-right:before{margin-right:var(--gutter)}.Divider--text-center:after,.Divider--text-left:after,.Divider--text-right:after{margin-left:var(--gutter)}.Divider--text-left:before{max-width:10%}.Divider--text-right:after{max-width:10%}.Empty{padding:30px;text-align:center}.Empty-img{height:125px}.Empty-tip{margin:20px 0;color:var(--gray-4)}.Flex{display:flex}.Flex--inline{display:inline-flex}.Flex--center{justify-content:center;align-items:center}.Flex--d-r{flex-direction:row}.Flex--d-rr{flex-direction:row-reverse}.Flex--d-c{flex-direction:column}.Flex--d-cr{flex-direction:column-reverse}.Flex--w-n{flex-wrap:nowrap}.Flex--w-w{flex-wrap:wrap}.Flex--w-wr{flex-wrap:wrap-reverse}.Flex--jc-fs{justify-content:flex-start}.Flex--jc-fe{justify-content:flex-end}.Flex--jc-c{justify-content:center}.Flex--jc-sb{justify-content:space-between}.Flex--jc-sa{justify-content:space-around}.Flex--ai-fs{align-items:flex-start}.Flex--ai-fe{align-items:flex-end}.Flex--ai-c{align-items:center}.FlexItem{flex:1;min-width:0;min-height:0}.HelpText{font-size:.75rem;color:var(--gray-4)}.Icon{display:inline-block;width:1em;height:1em;stroke-width:0;fill:currentColor;transition:all .3s cubic-bezier(.18,.89,.32,1.28)}.is-spin{animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.IconBtn{min-width:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--gray-2);font-size:18px}.IconBtn.Btn--primary{color:var(--brand-2)}.IconBtn:disabled{border-color:var(--gray-6);color:var(--gray-6)}.IconBtn.Btn--lg{border-radius:6px;font-size:24px}.IconBtn>.Icon{display:block}.IconBtn>img{display:block;width:1em;height:1em}.Image{position:relative;display:inline-block;overflow:hidden;border-style:none}.Image--fluid{max-width:100%;height:auto}.InfiniteScroll{overflow-y:scroll;-webkit-overflow-scrolling:touch}.InputWrapper{position:relative}.InputWrapper.has-counter{padding-bottom:20px}.InputWrapper.has-counter+.HelpText{margin-top:-20px}.Input{display:block;box-sizing:border-box;width:100%;min-height:24px;margin:0;padding:5px 12px;border:1px solid var(--gray-6);border-radius:12px;font-family:inherit;font-size:.875rem;line-height:1.5;color:var(--gray-1);background:var(--white);resize:none;-webkit-tap-highlight-color:transparent;transition:.2s ease-in-out;-webkit-appearance:none}.Input:focus{outline:none;border-color:var(--brand-1)}.Input:focus:not([disabled]):not([readonly])~.Input-line:before,.Input:focus:not([disabled]):not([readonly])~.Input-line:after{width:50%}.Input::-moz-placeholder{color:var(--gray-4)}.Input::placeholder{color:var(--gray-4)}.Input--filled{border-color:transparent;background-color:var(--gray-6)}.Input--flushed{padding:2px var(--gutter);border-width:0 0 1px;border-radius:0;background:none}.Input--flushed:focus{box-shadow:var(--brand-1) 0 1px 0 0}.Input-counter{position:relative;z-index:1;float:right;margin-right:var(--gutter);color:var(--gray-3);font-size:.75rem}.Label{display:block;font-size:.75rem;color:var(--gray-2)}.List{background:var(--white)}.List--bordered{border:1px solid var(--gray-7);border-radius:2px}.ListItem{display:flex;align-items:center;box-sizing:border-box;padding:10px var(--gutter);border:0;color:var(--gray-1);font-size:15px;line-height:1.6;text-decoration:none;transition:.3s}.ListItem:focus:not(:focus-visible){outline:0}.ListItem+.ListItem{border-top:1px solid var(--gray-7)}.ListItem .Icon{color:var(--gray-3)}button.ListItem{width:100%;background:transparent;text-align:left;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.ListItem:active,button.ListItem:active{background:var(--gray-6)}@media (hover: hover){a.ListItem:hover,button.ListItem:hover{background:#0000000a;background-clip:padding-box;cursor:pointer}}.ListItem-content{flex:1}.Loading{padding:12px;color:var(--gray-2)}.Loading .Icon{font-size:30px}.Loading-tip{margin:0 0 0 6px;font-size:.875rem}.MediaObject{display:flex}.MediaObject-pic{width:70px;margin-right:10px}.MediaObject-pic>img{display:block;width:100%;height:100%}.MediaObject-info{flex:1}.MediaObject-title{margin:0 0 6px;font-size:.875rem;font-weight:400}.MediaObject-meta{font-size:.75rem;color:var(--gray-2)}.Message{position:relative}.Message+.Message{margin-top:var(--gutter)}.Message.left .Message-main>.Avatar{margin-right:4px}.Message.left .Bubble{margin-right:calc(var(--rate-width) + 16px)}.Message.right .Message-main,.Message.right .Message-content{flex-direction:row-reverse}.Message.right .Message-main>.Avatar{margin-left:4px}.Message.right .Message-author{text-align:right}.Message.right .Bubble{margin-left:calc(var(--rate-width) + 8px);border-radius:12px;background:var(--brand-3)}.Message.pop{display:none}.Message-meta{display:flex;justify-content:center;margin-bottom:12px;text-align:center}.Message-main,.Message-content{display:flex;align-items:flex-start}.Message-inner{flex:1;min-width:0}.Message-author{margin-bottom:6px;color:var(--gray-2);font-size:var(--font-size-xs);line-height:1.1}.SystemMessage{padding:0 15px;color:var(--gray-2);text-align:center}.SystemMessage a{margin-left:5px}.SystemMessage-inner{display:inline-block;padding:6px 9px;border-radius:6px;background:var(--gray-8);font-size:12px;text-align:left}.ChatApp[data-elder-mode=true] .SystemMessage-inner{padding:7px 14px;font-size:14px}.MessageStatus{align-self:center;margin-right:12px}.MessageStatus[data-status=loading] .Icon{color:var(--gray-4)}.MessageStatus[data-status=fail] .IconBtn{color:#ff5959}.MessageStatus .IconBtn,.MessageStatus .Icon{display:block}.Message.right .Bubble+.MessageStatus{margin-right:calc(4px - var(--rate-width))}.Modal,.Popup{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;z-index:100;display:flex;align-items:center;justify-content:center;outline:0}.Modal.active .Modal-dialog{opacity:1;transform:none}.Modal-dialog{position:relative;z-index:100;overflow:hidden;width:320px;max-width:90vw;border-radius:12px;background:var(--white);opacity:0;transition:transform .3s ease-out,opacity .15s linear;transform:translateY(-50px);font-size:15px}.Modal-header{position:relative;padding:18px 20px 10px}.Modal-body{padding:18px 15px}.Modal-header+.Modal-body{padding-top:0}.Modal-footer{display:flex}.Modal-footer .Btn--outline{padding-top:10px;padding-bottom:10px;border-width:1px 0 0;border-color:var(--gray-6);border-radius:0}.Modal-footer .Btn--outline:not(.Btn--primary){color:var(--gray-2)}.Modal-footer--h[data-variant=round]{padding:0 15px 18px}.Modal-footer--h[data-variant=round] .Btn+.Btn{margin-left:12px}.Modal-footer--h[data-variant=outline] .Btn+.Btn{border-left-width:1px}.Modal-footer--h .Btn{flex:1}.Modal-footer--v{flex-direction:column}.Confirm .Modal-body{text-align:center}.Popup{align-items:flex-end}.Popup.active .Popup-dialog{opacity:1;transform:translateZ(0)}.Popup-content{display:flex;flex-direction:column;height:100%}.Popup-dialog{position:relative;z-index:100;overflow:hidden;width:100%;border-radius:27px 27px 0 0;background:var(--white);opacity:0;transform:translate3d(0,100%,0);transition:.3s}.Popup-dialog[data-bg-color=gray]{background:var(--gray-7)}.Popup-dialog[data-height="80"]{height:80vh}.Popup-dialog[data-height="60"]{height:60vh}.Popup-dialog[data-height="40"]{height:40vh}.Popup-header{position:relative;padding:18px 40px 10px}.Modal-title,.Popup-title{margin:0;color:var(--gray-1);font-size:1.125rem;font-weight:500;text-align:center}.Popup[data-elder-mode=true] .Modal-title,.Popup[data-elder-mode=true] .Popup-title{font-size:23px}.Popup[data-elder-mode=true] .Popup-close{font-size:32px}.Modal-close,.Popup-close{position:absolute;right:12px;color:var(--gray-1)}.Modal-close{top:12px}.Popup-title{min-height:25px}.Popup-close{top:18px}.Popup-body{flex:1;min-height:0}.Popup-body.overflow{max-height:70vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.Popup-footer{position:relative;display:flex;flex-direction:column;padding:9px 12px;padding-bottom:calc(9px + var(--safe-bottom));background:var(--white)}.Popup-footer .Btn+.Btn{margin-top:9px}.S--modalOpen,.S--modalOpen .MessageContainer>.PullToRefresh{overflow:hidden}.S--wide .Popup{align-items:center}.S--wide .Popup-dialog{width:480px;border-radius:12px}.S--wide .Popup-footer--v{padding-bottom:12px}.Navbar{position:relative;z-index:10;display:flex;align-items:center;padding:0 var(--gutter);padding-top:var(--safe-top);border-bottom:1px solid var(--gray-5);background:var(--gray-6)}.Navbar-main{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:3px 0;box-sizing:border-box}.Navbar-left,.Navbar-right{display:flex;width:58px}.Navbar-right{justify-content:flex-end}.Navbar-title{margin:0;color:var(--gray-1);font-size:17px;font-weight:500}.Navbar-logo{width:auto;height:38px}.Navbar .IconBtn{color:var(--gray-1);font-size:24px}.Navbar .IconBtn+.IconBtn{margin-left:9px}.Navbar--left .Navbar-left{width:24px}.Navbar--left .Navbar-main{min-height:62px;justify-content:flex-start}.Navbar--left .Navbar-logo{margin-left:9px}.Navbar-logo+.Navbar-inner{margin-left:9px}.Navbar-desc{color:var(--gray-2);font-size:12px}.ChatApp[data-elder-mode=true] .Navbar .IconBtn{font-size:26px}.ChatApp[data-elder-mode=true] .Navbar-logo{height:43px}.ChatApp[data-elder-mode=true] .Navbar-title{font-size:18px}.ChatApp[data-elder-mode=true] .Navbar-desc{font-size:13px}.Notice{display:flex;align-items:center;padding:12px;border-radius:12px;background:var(--white)}.Notice-icon{margin-right:6px}.Notice-close{margin-left:6px}.Notice .Icon{color:var(--brand-1);font-size:16px}.Notice-content{flex:1;min-width:0;color:var(--gray-1);font-size:13px}.Popover{position:absolute;top:0;left:0;z-index:1030;font-size:.875rem;transform:translateY(-10px)}.Popover-body{border-radius:6px;background:var(--white);box-shadow:var(--shadow-3)}.Popover-arrow{display:block;width:9px;height:5px;margin-left:10px;fill:var(--white)}.Price{display:inline;font-size:.875rem;font-weight:500}.Price--original{color:var(--gray-3);text-decoration:line-through}.Price .Price-fraction{font-size:.857em}.Progress{display:flex;height:2px;overflow:hidden;background-color:var(--gray-5);border-radius:100px}.Progress-bar{overflow:hidden;background-color:var(--blue);transition:width .6s ease}.Progress--success .Progress-bar{background-color:var(--green)}.Progress--error .Progress-bar{background-color:var(--red)}.PullToRefresh{height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch}.PullToRefresh-fallback{padding-top:var(--gutter);text-align:center}.PullToRefresh-loadMore{font-size:14px}.PullToRefresh-inner{overflow:hidden;min-height:100%}.PullToRefresh-indicator{height:30px;margin-top:-30px;color:gray;text-align:center;line-height:30px}.PullToRefresh-spinner{color:var(--gray-3);font-size:27px}.PullToRefresh-transition{transition:transform .3s}.QuickReplies{padding:9px var(--gutter);transition:opacity .3s}.QuickReplies[data-visible=false]{visibility:hidden;opacity:0}.QuickReplies:not(.ScrollView--hasControls){padding-left:0;padding-right:0}.QuickReplies:not(.ScrollView--hasControls) .ScrollView-inner{padding:0 var(--gutter)}.QuickReplies:not(.ScrollView--hasControls) .ScrollView-item:last-child{padding-right:var(--gutter)}.QuickReply{position:relative;display:block;margin:0;padding:4px 12px;border:1px solid transparent;border-radius:99px;line-height:20px;background:var(--white);cursor:pointer;color:var(--gray-1);font-size:14px;transition:.15s ease-in-out}.QuickReply.new:after{content:"";position:absolute;top:0;right:0;width:8px;height:8px;background:var(--red);overflow:hidden;border:1px solid #fff;border-radius:50%}.QuickReply.highlight{background:#fff;border-color:#ffd0bf;font-weight:500}.QuickReply-inner{display:flex;align-items:center}.QuickReply-img{max-height:13px}.QuickReply-inner>.Icon,.QuickReply-img{margin-right:3px}.QuickReply .Icon{color:var(--brand-1);font-size:15px}.ChatApp[data-elder-mode=true] .QuickReply{font-size:17px;line-height:26px}.ChatApp[data-elder-mode=true] .QuickReply .Icon{font-size:17px}.ChatApp[data-elder-mode=true] .QuickReply-img{max-height:17px}.Checkbox,.Radio{position:relative;display:inline-block;margin:9px 12px 0 0;padding:4px 12px;border:1px solid var(--gray-6);border-radius:9px;background:var(--white);color:var(--gray-2);font-size:.875rem;line-height:20px;text-align:center;cursor:pointer;transition:.15s ease-in-out;-webkit-tap-highlight-color:transparent}.RadioGroup{margin-top:-9px}.RadioGroup--block .Radio{display:block;margin-right:9px}.CheckboxGroup--block .Checkbox{display:block;margin-right:0}.Checkbox--disabled,.Radio--disabled{opacity:.5;cursor:initial}.Checkbox--checked,.Radio--checked{border-color:var(--brand-1);color:var(--brand-1)}.Checkbox-input,.Radio-input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit}.ChatApp[data-elder-mode=true]{--rate-width: 38px}.RateActions{position:relative;z-index:10;align-self:flex-end;width:var(--rate-width);margin:0 8px}.RateBtn{padding:6px;border-radius:50%;background:var(--white);font-size:calc(var(--rate-width) - 12px)}.RateBtn+.RateBtn{margin-top:8px}.RateBtn[data-type=up]:hover,.RateBtn[data-type=up].active{color:var(--brand-1)}.RateBtn[data-type=down]:hover,.RateBtn[data-type=down].active{color:var(--blue)}.RichText{word-wrap:break-word;overflow-wrap:break-word}.ScrollView{overflow:hidden}.ScrollView-scroller{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.ScrollView-scroller::-webkit-scrollbar{display:none}.ScrollView--fullWidth{margin:0 calc(var(--gutter) * -1)}.ScrollView--fullWidth:not(.ScrollView--hasControls) .ScrollView-inner{padding:0 var(--gutter)}.ScrollView--x .ScrollView-scroller{display:flex;overflow-x:scroll;overflow-y:hidden;margin-bottom:-18px;padding-bottom:18px}.ScrollView--x .ScrollView-inner{display:flex}.ScrollView--x .ScrollView-item{flex:0 0 auto;margin-left:6px}.ScrollView--x .ScrollView-item:first-child{margin-left:0}.ScrollView--hasControls{display:flex;align-items:center}.ScrollView--hasControls .ScrollView-scroller{flex:1}.ScrollView-control{padding:6px;color:var(--gray-3);font-size:1rem}.ScrollView-control:not(:disabled):hover{color:var(--brand-1)}.Search{display:flex;align-items:center;padding:3px 5px 3px 15px;background:var(--white);border-radius:50px}.Search-icon,.Search-clear{font-size:var(--font-size-lg)}.Search-icon{color:var(--gray-3)}.Search-input{flex:1;border:0;padding:0 9px}.Search-input::-webkit-search-cancel-button{display:none}.Search-input:focus+.Search-clear,.Search-input:focus~.Btn--primary{opacity:1}.Search-clear{color:var(--gray-5);opacity:0}.Search-clear:hover{background:initial;color:var(--gray-3)}.Search .Btn--primary{min-width:56px;margin-left:6px;padding:2px 12px;font-size:var(--font-size-xs);opacity:0}.Select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.Select:disabled{background-color:var(--gray-7)}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.Skeleton{background:linear-gradient(90deg,#f6f6f6 8%,#f0f0f0 18%,#f6f6f6 33%);background-size:800px 104px;animation:1.25s linear infinite forwards shimmer}.Skeleton--r-sm{border-radius:2px}.Skeleton--r-md{border-radius:6px}.Skeleton--r-xl{border-radius:32px}.Stepper{margin:0;padding:0;list-style-type:none}.Step{position:relative;padding-left:29px;padding-bottom:18px}.Step:last-child{padding-bottom:0}.Step:last-child .Step-line{display:none}.Step--active .Step-dot{background:var(--brand-1)}.Step--active .Step-title span{color:var(--brand-1);font-weight:500}.Step--active .Step-desc{color:var(--gray-1)}.Step--active[data-status] .Step-line{top:26px}.Step--active[data-status] .Step-icon{color:var(--red)}.Step--active[data-status=success] .Step-icon{color:var(--green)}.Step-icon{position:absolute;top:0;left:0;width:24px;height:24px;font-size:24px;display:flex;justify-content:center;align-items:center}.Step-dot{width:8px;height:8px;background:var(--white);border:1px solid var(--brand-1);border-radius:50%}.Step-line{position:absolute;top:20px;left:12px;bottom:-4px;width:1px;background:var(--brand-1);opacity:.5}.Step-title{display:flex;align-items:center;color:var(--gray-1);font-size:var(--font-size-md)}.Step-title small{margin-left:12px;color:var(--gray-3);font-size:var(--font-size-xs)}.Step-desc{margin-top:3px;color:var(--gray-3);font-size:var(--font-size-sm)}.Tabs-nav{position:relative;display:flex;margin:7px 0}.Tabs-nav::-webkit-scrollbar{display:none}.Tabs--scrollable .Tabs-nav{overflow:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:-11px;padding-bottom:18px}.Tabs--scrollable .Tabs-navPointer{bottom:18px}.Tabs--scrollable .Tabs-navItem{flex:1 0 auto}.Tabs-navItem{flex:1;text-align:center}.Tabs-navLink{padding:4px 12px;border:0;border-radius:20px;background:transparent;color:var(--gray-2);font-size:.875rem;transition:.3s}.Tabs-navLink:focus:not(:focus-visible){outline:0}.Tabs-navLink:hover{cursor:pointer;color:var(--gray-1)}.Tabs-navLink.active{position:relative;z-index:1;color:var(--gray-1);font-weight:700}.Tabs-navPointer{position:absolute;left:0;bottom:0;height:3px;background:var(--btn-primary-bg);border-radius:2px;transition:.3s}.Tabs-pane{display:none}.Tabs-pane.active{display:block}.Tag{display:inline-block;position:relative;margin:0 4px 0 0;padding:0 6px;border:1px solid var(--brand-1);border-radius:4px;color:var(--brand-1);font-size:12px;line-height:1.25;white-space:nowrap}.Tag--primary{border-color:transparent;color:var(--orange)}.Tag--primary:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:-1px;border-radius:inherit;background:currentColor;opacity:.14}.Tag--success{border-color:var(--green);background:var(--green);color:#fff}.Tag--danger{border-color:var(--red);background:var(--red);color:#fff}.Tag--warning{border-color:var(--orange);background:var(--orange);color:#fff}.Text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Text--break{word-break:break-word!important;overflow-wrap:break-word!important}.Text--ellipsis{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.Time{font-size:12px;color:var(--gray-3)}.Toast{position:fixed;top:30%;left:0;right:0;z-index:200;display:flex;justify-content:center;transition:all .3s ease 0s;transform:translateY(-50%);opacity:0;visibility:hidden}.Toast[data-type=success] .Icon{color:var(--green)}.Toast[data-type=error] .Icon{color:var(--red)}.Toast[data-type=loading] .Icon{color:var(--brand-1)}.Toast.show{opacity:1;visibility:visible}.Toast .Icon{margin-right:6px;font-size:24px}.Toast-content{display:flex;max-width:90vw;padding:18px 24px;border-radius:12px;background:#000000b3;box-sizing:border-box}.Toast-message{flex:1;margin:0;color:var(--white);font-size:16px;word-break:break-word}.Toolbar{padding:var(--gutter);padding-top:0}.Toolbar-item{display:inline-block;width:25%;margin-top:var(--gutter);text-align:center}.Toolbar-btn{position:relative;display:inline-block;overflow:hidden;max-width:100%;min-width:0;padding:6px;border:0;border-radius:0;background:transparent;color:var(--gray-2);vertical-align:top}.Toolbar-btn:hover{background:transparent}.Toolbar-btn:active .Toolbar-btnIcon{background:#0000000a}@media (hover: hover){.Toolbar-btn:hover .Toolbar-btnIcon{background:#0000000a}}.Toolbar-btnIcon{display:inline-block;padding:12px;border-radius:12px;background:var(--white);transition:.3s}.Toolbar-btnIcon .Icon{font-size:30px;vertical-align:top}.Toolbar-img{width:30px;height:30px;vertical-align:top}.Toolbar-btnText{display:block;margin-top:8px;font-size:14px;line-height:1.1;white-space:initial;word-wrap:break-word}.ChatApp[data-elder-mode=true] .Toolbar-btnIcon{padding:16px}@media (min-width: 350px){.ChatApp[data-elder-mode=true] .Toolbar-btnIcon{padding:19px}.ChatApp[data-elder-mode=true] .Toolbar-btnIcon .Icon{font-size:36px}}[data-tooltip]{position:relative;cursor:pointer}[data-tooltip]:after,[data-tooltip]:before{position:absolute;bottom:100%;left:50%;z-index:200;opacity:0;pointer-events:none;transition:all .18s ease-out .18s;transform:translate(-50%,4px);transform-origin:top}[data-tooltip]:after{content:attr(aria-label);margin-bottom:10px;padding:.5em 1em;border-radius:6px;background:var(--gray-1);color:var(--white);font-size:.75rem;white-space:nowrap}[data-tooltip]:before{content:"";width:0;height:0;transform-origin:top;border:.3125rem solid transparent;border-top-color:var(--gray-1)}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;transform:translate(-50%)}.Tree{background:var(--white)}.TreeNode-title{padding:10px 15px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--gray-7)}.TreeNode-title:hover{background:var(--gray-7);color:var(--brand-1);cursor:pointer}.TreeNode:last-child .TreeNode-title{border:0}.TreeNode-children-title{background:var(--gray-7);border-bottom:1px solid var(--gray-7)}.TreeNode-title-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;flex:1}.TreeNode-children{display:none}.TreeNode-children-active{display:block}.Typing{display:flex;align-items:center;height:22.5px;transition:opacity .1s}.Typing-dot{display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;animation:typing-dot 1.26s linear infinite;background:var(--gray-3)}.Typing-dot:nth-child(1){margin:0}.Typing-dot:nth-child(2){animation-delay:.18s}.Typing-dot:nth-child(3){animation-delay:.36s}@keyframes typing-dot{0%{transform:scale(1)}16.67%{transform:scale(0)}33.33%{transform:scale(0)}50%{transform:scale(0)}66.67%{transform:scale(1)}83.33%{transform:scale(1)}to{transform:scale(1)}}.Video{position:relative;border-radius:inherit}.Video-cover,.Video-video:not([hidden]){display:block;width:100%;max-height:100%;border-radius:inherit}.Video-duration{position:absolute;right:6px;bottom:6px;z-index:1;color:var(--white);line-height:1}.Video-playBtn{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent}.Video-playBtn:hover{cursor:pointer}.Video-playIcon{display:inline-block;width:35px;height:35px;background:url(//gw.alicdn.com/tfs/TB1p1mkqIbpK1RjSZFyXXX_qFXa-70-70.png) 0 0 no-repeat;background-size:cover}.Video--playing .Video-playBtn{display:none}.Carousel{position:relative;overflow:hidden}.Carousel--draggable .Carousel-inner{touch-action:pan-y;cursor:grab}.Carousel--draggable .Carousel-inner:active{cursor:grabbing}.Carousel--rtl{direction:rtl}.Carousel--dragging .Carousel-item{pointer-events:none}.Carousel-inner{display:flex;will-change:transform}.Carousel-dots{position:absolute;z-index:1;bottom:8px;left:50%;transform:translate(-50%);display:flex;justify-content:center;list-style-type:none;margin:0;padding:0}.Carousel-dot{display:block;width:8px;height:8px;margin:0 4px;padding:0;border:0;border-radius:50%;background:var(--gray-4);transition:.3s;cursor:pointer}.Carousel-dot.active{background:var(--brand-1)}.Goods{padding:12px;font-size:14px}.Goods[data-elder-mode=true] .Goods-img{width:56px;height:56px}.Goods[data-elder-mode=true] .Price{color:var(--brand-1)}.Goods[data-elder-mode=true] .Btn{min-width:0}.Goods+.Goods{border-top:1px solid var(--gray-7)}.Goods-img{width:72px;height:72px;margin-right:9px;-o-object-fit:cover;object-fit:cover;border-radius:12px}.Goods-name{margin:0 0 3px;font-size:.875rem;font-weight:400}.Goods-main .Price{margin-right:9px}.Goods-desc{margin-bottom:3px;color:var(--gray-3);word-break:break-all}.Goods-meta{color:var(--gray-3);font-size:.625rem}.Goods-countUnit{margin:3px 0;color:var(--gray-3);font-size:.75rem}.Goods-unit{margin-left:3px;font-size:.625rem}.Goods-buyBtn{float:right;background:var(--brand-1);color:#fff;padding:2px}.Goods-buyBtn:hover{background:var(--brand-1)}.Goods-detailBtn{min-width:48px;padding:0 10px;border-radius:10px;font-size:.625rem;line-height:18px}.Goods-aside{display:flex;flex-direction:column;align-items:flex-end;margin-left:9px}.Goods-status{color:var(--highlight-2);font-size:12px}.FileCard{padding:8px}.FileCard-icon{position:relative;height:60px;margin-right:8px;color:var(--gray-2)}.FileCard-icon[data-type=pdf]{color:var(--red)}.FileCard-icon[data-type*=doc]{color:var(--blue)}.FileCard-icon[data-type*=ppt],.FileCard-icon[data-type=key]{color:var(--orange)}.FileCard-icon[data-type*=xls]{color:var(--green)}.FileCard-icon[data-type=rar],.FileCard-icon[data-type=zip]{color:var(--brand-1)}.FileCard-icon .Icon{font-size:60px}.FileCard-name{height:38px;margin-bottom:4px;line-height:1.4}.FileCard-ext{position:absolute;left:20px;bottom:15px;transform-origin:left bottom;transform:scale(.5);max-width:50px;font-size:1rem;font-weight:700;text-transform:uppercase}.FileCard-meta{color:var(--gray-3);font-size:.75rem}.FileCard-meta>a,.FileCard-meta>span{margin-right:10px}.FileCard-meta a{color:var(--link-color);text-decoration:none}.Form{background:var(--white)}.Form.is-light .FormItem{padding:0}.Form.is-light .Label,.Form.is-light .HelpText{padding:0 var(--gutter)}.FormItem{position:relative;padding:0 var(--gutter)}.FormItem+.FormItem{margin-top:20px}.FormItem.required .Label:after{content:"*";display:inline-block;color:var(--red);font-size:.875rem;font-family:SimSun,sans-serif;line-height:1;vertical-align:middle}.FormItem.is-invalid .Label,.FormItem.is-invalid .HelpText{color:var(--red)}.FormItem.is-invalid .Input{border-color:var(--red)}.FormItem .RadioGroup,.FormItem .CheckboxGroup{margin-top:10px}.FormItem .Label+.Input{margin-top:5px}.FormActions{display:flex;padding:10px var(--gutter);background:var(--white)}.FormActions .Btn{flex:1}.FormActions .Btn+.Btn{margin-left:6px}.MessageContainer{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.MessageContainer>.PullToRefresh{flex:1}.MessageContainer:focus{outline:0}.MessageList{padding:var(--gutter);font-size:15px;height:500px;overflow-y:auto}.RecorderToast{position:fixed;top:50%;left:50%;z-index:100;width:160px;height:160px;padding:10px;transform:translate(-50%,-50%);border-radius:12px;background:#333333de;color:var(--white);text-align:center}.Recorder--cancel .RecorderToast{color:var(--red)}.Recorder--cancel .Recorder-btn{background:#0000000a;color:var(--gray-3)}.RecorderToast-icon{position:relative;font-size:37px}.RecorderToast-waves{position:absolute;z-index:-1;width:100%;height:100%;transition:.3s}.RecorderToast-wave-1,.RecorderToast-wave-2,.RecorderToast-wave-3{position:absolute;z-index:-1;color:var(--brand-2);animation:wave 10s linear infinite}.RecorderToast-wave-1{top:-25px;left:14px;font-size:176px;opacity:.2}.RecorderToast-wave-2{top:-12px;left:-21px;font-size:186px;opacity:.4}.RecorderToast-wave-3{top:40px;left:55px;font-size:71px;opacity:.8}.Recorder-btn{height:36px;border-radius:20px;background:var(--white);color:var(--gray-dark);line-height:36px;text-align:center;transition:.3s}@keyframes wave{0%{transform:translateY(5%) rotate(0)}50%{transform:translateY(-5%) rotate(180deg)}to{transform:translateY(5%) rotate(360deg)}}.Composer{display:flex;align-items:flex-end;padding:9px var(--gutter)}.Composer>div+div{margin-left:9px}.Composer-actions{display:flex;align-items:center;height:36px}.Composer-actions .IconBtn{font-size:30px;color:var(--gray-1)}.Composer-toggleBtn{transition:transform .2s}.Composer-toggleBtn.active .Icon{transform:rotate(45deg)}.Composer-inputWrap{flex:1;position:relative}.Composer-input{overflow-x:hidden;max-height:132px;padding:8px 12px;border:0;line-height:20px;font-size:15px;caret-color:var(--brand-2);transition:border-color .15s ease-in-out}.Composer-sendBtn{min-width:0;padding-left:16px;padding-right:16px}.ChatApp[data-elder-mode=true] .Composer-actions{height:50px}.ChatApp[data-elder-mode=true] .Composer-actions .IconBtn{font-size:34px}.ChatApp[data-elder-mode=true] .Composer-input{padding:9px 12px;font-size:21px;line-height:32px}.ChatApp[data-elder-mode=true] .Composer-sendBtn{padding:4px 13px;font-size:17px}.SendConfirm .Modal-dialog{width:480px;margin:20px}.SendConfirm-inner{height:320px;text-align:center}.SendConfirm-inner img{max-width:100%;max-height:100%}html{height:100vh}html[data-safari]{height:calc(100vh - (100vh - 100%))}body,#root{height:100%}body{overflow:hidden;margin:0}@media (hover: none){body{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}}.ChatApp{display:flex;flex-direction:column;height:100%;background:var(--gray-6);color:var(--gray-1);font-family:-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";line-height:1.5;-webkit-tap-highlight-color:transparent}.S--focusing{--safe-bottom: 0px}@media (hover: none){.S--focusing .MessageList{margin-top:75vh}}.ChatFooter{position:relative;z-index:10;padding-bottom:var(--safe-bottom);background:var(--gray-7)}.Message.left .Bubble{text-align:left}.MessageList{height:100%}.ChatFooter .Composer-input{min-height:68px}.Navbar-main{-webkit-app-region:drag}.Navbar-left,.Navbar-right{-webkit-app-region:no-drag}:root{--contexify-zIndex:666;--contexify-menu-minWidth:220px;--contexify-menu-padding:6px;--contexify-menu-radius:6px;--contexify-menu-bgColor:#fff;--contexify-menu-shadow:1px 2px 2px rgba(0,0,0,.1),2px 4px 4px rgba(0,0,0,.1),3px 6px 6px rgba(0,0,0,.1);--contexify-menu-negatePadding:var(--contexify-menu-padding);--contexify-separator-color:rgba(0,0,0,.2);--contexify-separator-margin:5px;--contexify-itemContent-padding:6px;--contexify-activeItem-radius:4px;--contexify-item-color:#333;--contexify-activeItem-color:#fff;--contexify-activeItem-bgColor:#3498db;--contexify-rightSlot-color:#6f6e77;--contexify-activeRightSlot-color:#fff;--contexify-arrow-color:#6f6e77;--contexify-activeArrow-color:#fff}@keyframes contexify_feedback{0%{opacity:.4}to{opacity:1}}.contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--contexify-menu-bgColor);box-sizing:border-box;box-shadow:var(--contexify-menu-shadow);border-radius:var(--contexify-menu-radius);padding:var(--contexify-menu-padding);min-width:var(--contexify-menu-minWidth);z-index:var(--contexify-zIndex)}.contexify_submenu-isOpen,.contexify_submenu-isOpen>.contexify_itemContent{color:var(--contexify-activeItem-color);background-color:var(--contexify-activeItem-bgColor);border-radius:var(--contexify-activeItem-radius)}.contexify_submenu-isOpen>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeArrow-color)}.contexify_submenu-isOpen>.contexify_submenu{pointer-events:auto;opacity:1}.contexify .contexify_submenu{position:absolute;pointer-events:none;transition:opacity .265s;top:calc(-1 * var(--contexify-menu-negatePadding));left:100%}.contexify .contexify_submenu-bottom{bottom:calc(-1 * var(--contexify-menu-negatePadding));top:unset}.contexify .contexify_submenu-right{right:100%;left:unset}.contexify_rightSlot{margin-left:auto;display:flex;color:var(--contexify-rightSlot-color)}.contexify_separator{height:1px;cursor:default;margin:var(--contexify-separator-margin);background-color:var(--contexify-separator-color)}.contexify_willLeave-disabled{pointer-events:none}.contexify_item{cursor:pointer;position:relative}.contexify_item:focus{outline:0}.contexify_item:focus .contexify_rightSlot,.contexify_item:not(.contexify_item-disabled):hover>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeRightSlot-color)}.contexify_item:not(.contexify_item-disabled)[aria-haspopup]>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-arrow-color)}.contexify_item:not(.contexify_item-disabled)[aria-haspopup].contexify_submenu-isOpen>.contexify_itemContent .contexify_rightSlot,.contexify_item:not(.contexify_item-disabled)[aria-haspopup]:hover>.contexify_itemContent .contexify_rightSlot,.contexify_item[aria-haspopup]:focus>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeArrow-color)}.contexify_item:not(.contexify_item-disabled):focus>.contexify_itemContent,.contexify_item:not(.contexify_item-disabled):hover>.contexify_itemContent{color:var(--contexify-activeItem-color);background-color:var(--contexify-activeItem-bgColor);border-radius:var(--contexify-activeItem-radius)}.contexify_item:not(.contexify_item-disabled):hover>.contexify_submenu{pointer-events:auto;opacity:1}.contexify_item-disabled{cursor:default;opacity:.5}.contexify_itemContent{padding:var(--contexify-itemContent-padding);display:flex;align-items:center;white-space:nowrap;color:var(--contexify-item-color);position:relative}.contexify_item-feedback{animation:contexify_feedback .12s both}.contexify_theme-dark{--contexify-menu-bgColor:rgba(40,40,40,.98);--contexify-separator-color:#4c4c4c;--contexify-item-color:#fff}.contexify_theme-light{--contexify-separator-color:#eee;--contexify-item-color:#666;--contexify-activeItem-color:#3498db;--contexify-activeItem-bgColor:#e0eefd;--contexify-activeRightSlot-color:#3498db;--contexify-active-arrow-color:#3498db}@keyframes contexify_scaleIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes contexify_scaleOut{0%{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.contexify_willEnter-scale{transform-origin:top left;animation:contexify_scaleIn .3s}.contexify_willLeave-scale{transform-origin:top left;animation:contexify_scaleOut .3s}@keyframes contexify_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes contexify_fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.contexify_willEnter-fade{animation:contexify_fadeIn .3s ease}.contexify_willLeave-fade{animation:contexify_fadeOut .3s ease}@keyframes contexify_flipInX{0%{transform:perspective(800px) rotateX(45deg)}to{transform:perspective(800px)}}@keyframes contexify_flipOutX{0%{transform:perspective(800px)}to{transform:perspective(800px) rotateX(45deg);opacity:0}}.contexify_willEnter-flip{animation:contexify_flipInX .3s}.contexify_willEnter-flip,.contexify_willLeave-flip{backface-visibility:visible!important;transform-origin:top center}.contexify_willLeave-flip{animation:contexify_flipOutX .3s}@keyframes contexify_slideIn{0%{opacity:0;transform:scaleY(.3)}to{opacity:1}}@keyframes contexify_slideOut{0%{opacity:1}to{opacity:0;transform:scaleY(.3)}}.contexify_willEnter-slide{transform-origin:top center;animation:contexify_slideIn .3s}.contexify_willLeave-slide{transform-origin:top center;animation:contexify_slideOut .3s}.list-item{padding:5px;margin-bottom:0;height:60px}.list-item:hover,.active{background-color:#ddd}.list-item-dark{padding:5px;margin-bottom:0;height:60px}.list-item-dark:hover,.dark-active{background-color:#333}.list-item .avatar{border-radius:2px;margin-right:2px}li{list-style:none}.list-left{margin-top:4px;margin-left:2px;width:25px;height:25px;float:left}.list-right{margin-left:52px}.list-right .top{height:20px;margin-top:5px;text-align:left}.list-right-ticket{margin-left:5px}.list-right-ticket .top{margin-top:2px;text-align:left}span.nickname{display:inline-block;vertical-align:top;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}span.timestamp{float:right;color:gray;font-size:12px;vertical-align:top;width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom{text-align:left;margin-top:5px}.list-right-ticket .bottom{text-align:left}.list-right .bottom-queue{width:90%;text-align:left}.list-right .bottom .content{display:inline-block;vertical-align:top;font-size:12px;color:gray;width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom .star{font-size:14px;float:right}.list-right .unreadCount{margin-top:4px;float:right;font-size:10px;width:12px;height:12px;line-height:12px;text-align:center;border-radius:5px;color:#fff;background-color:red} diff --git a/starter/src/main/resources/templates/chat/assets/index-DUZEWHQ-.css b/starter/src/main/resources/templates/chat/assets/index-DUZEWHQ-.css new file mode 100644 index 000000000..7ded67786 --- /dev/null +++ b/starter/src/main/resources/templates/chat/assets/index-DUZEWHQ-.css @@ -0,0 +1 @@ +.App{height:100%;width:100%}.ant-app,.ant-layout{height:100%}.ant-layout-sider{overflow:auto}.ant-layout-footer{padding:0}.ant-pro-form-login-container{-webkit-app-region:drag}.ant-pro-form-login-main{-webkit-app-region:no-drag}.ant-layout-header,.ant-menu{-webkit-app-region:drag}.ant-menu-item,.ant-menu-submenu{-webkit-app-region:no-drag}.ant-pro-layout .ant-pro-layout-content{padding-block:0;padding-inline:0}.footerLeftButton{margin-left:10px;cursor:pointer}.footerLeftButton:hover{background-color:bisque}.footerRightButton{float:right;margin-right:30px;cursor:pointer}.footerRightButton:hover{background-color:bisque}:root{--brand-1: #ff5000;--brand-2: #ff9000;--brand-3: #fff9eb;--black: #000;--white: #fff;--gray-1: #111;--gray-2: #666;--gray-3: #999;--gray-4: #ccc;--gray-5: #ddd;--gray-6: #eee;--gray-7: #f5f5f5;--gray-8: #f8f8f8;--light-1: #eee;--light-2: #f5f5f5;--highlight-1: var(--brand-1);--highlight-2: var(--brand-2);--link-color: var(--blue);--blue: #39f;--gray-dark: #333;--green: #62d957;--orange: #ff5000;--red: #ff3634;--yellow: #ffc233;--yellow-light: #fff9db;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-md: 1rem;--font-size-lg: 1.125rem;--radius-sm: .25rem;--radius-md: .75rem;--radius-lg: 1.25rem;--shadow-1: 0 3px 4px 0 rgba(0, 0, 0, .04);--shadow-2: 0 4px 8px 0 rgba(0, 0, 0, .08);--shadow-3: 0 6px 10px 0 rgba(0, 0, 0, .08);--safe-top: 0px;--safe-bottom: 0px;--gutter: 12px;--btn-primary-border-color: transparent;--btn-primary-bg: linear-gradient(90deg, var(--brand-2) 0%, var(--brand-1) 98%);--btn-primary-color: var(--white);--rate-width: 32px}@supports (top: constant(safe-area-inset-top)){:root{--safe-top: constant(safe-area-inset-top);--safe-bottom: constant(safe-area-inset-bottom)}}@supports (top: env(safe-area-inset-top)){:root{--safe-top: env(safe-area-inset-top);--safe-bottom: env(safe-area-inset-bottom)}}.S--invisible{position:absolute;clip:rect(0,0,0,0)}.pb-safe{padding-bottom:var(--safe-bottom)}@keyframes slideInRight{0%{transform:translate(100px);opacity:0}to{transform:translate(0);opacity:1}}.slide-in-right-item{animation:slideInRight .5s ease-in-out both}.slide-in-right-item:nth-child(2){animation-delay:.1s}.slide-in-right-item:nth-child(3){animation-delay:.2s}.slide-in-right-item:nth-child(4){animation-delay:.3s}.slide-in-right-item:nth-child(5){animation-delay:.4s}.slide-in-right-item:nth-child(6){animation-delay:.5s}.slide-in-right-item:nth-child(7){animation-delay:.6s}.slide-in-right-item:nth-child(8){animation-delay:.7s}.slide-in-right-item:nth-child(9){animation-delay:.8s}.slide-in-right-item:nth-child(10){animation-delay:.9s}.slide-in-right-item:nth-child(11){animation-delay:1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.A-fadeIn{animation:.6s fadeIn}.Avatar{display:inline-block;overflow:hidden;border-radius:50%}.Avatar img{display:block;width:36px;height:36px;-o-object-fit:cover;object-fit:cover}.Avatar--sm img{width:24px;height:24px}.Avatar--lg img{width:40px;height:40px}.Avatar--square{border-radius:4px}.Backdrop{position:fixed;bottom:0;left:0;right:0;z-index:100;transition:.3s;width:100vw;height:100vh;background:#000000b3;opacity:0;outline:0}.Backdrop.active{opacity:1}.Bubble{max-width:680px;min-width:1px;background:var(--white);border-radius:12px}.Bubble.text,.Bubble.typing{min-width:40px;padding:12px;box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.Bubble.image img{display:block;max-width:200px;max-height:200px;height:auto;border-radius:inherit}.Bubble p{margin:0}.Btn{display:inline-flex;align-items:center;justify-content:center;overflow:visible;min-width:80px;margin:0;padding:5px 12px;border:1px solid var(--gray-5);border-radius:999px;background:var(--white);color:var(--gray-1);font-weight:400;font-size:.875rem;line-height:1.5;font-family:inherit;text-transform:none;text-align:center;vertical-align:middle;white-space:nowrap;transition:.15s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent}.Btn:not(:disabled){cursor:pointer}.Btn:focus:not(:focus-visible){outline:0}.Btn:active{background:#00000014}.Btn:disabled{pointer-events:none;color:var(--gray-4);opacity:.5}.Btn--primary:not(.Btn--outline){border-color:var(--btn-primary-border-color);background:var(--btn-primary-bg);background-origin:border-box;color:var(--btn-primary-color)}.Btn--primary:not(.Btn--outline):active{opacity:.8}.Btn--outline.Btn--primary{border-color:var(--brand-1);color:var(--brand-1)}.Btn--sm{padding:4px 12px;font-size:.875rem}.Btn--lg{padding:7px 12px;font-size:1rem}.Btn--block{display:block;width:100%}.Btn-icon{display:inline-flex;align-self:center;flex-shrink:0;margin-inline-end:.5rem}[data-old-ios] .Btn:not(.Btn--block){display:inline-block}@media (hover: hover){.Btn:hover{background:#0000000a}.Btn--primary:not(.Btn--outline):hover{background:var(--btn-primary-bg);opacity:.9}}.Btn--text{padding:0;border:0;background:transparent;color:var(--link-color);font-size:inherit;vertical-align:initial}.Btn--text:hover,.Btn--text:active{background:transparent}.BackBottom{position:absolute;right:0;bottom:68px;z-index:10;overflow:hidden}.BackBottom .Btn{border-radius:50px 0 0 50px;border-right:0;background:#ffffffd9;color:var(--brand-1);font-size:var(--font-size-sm)}.Card{overflow:hidden;border-radius:12px;background:var(--white)}.Card--xl{width:300px}.Card--lg{width:160px}.Card--md{width:120px}.Card--sm{width:104px}.Card--xs{width:80px}.Card--fluid{width:calc(100% - var(--rate-width) - 16px);max-width:680px;min-width:260px}.Card[data-fluid=order]{max-width:360px}.CardMedia{position:relative;background-repeat:no-repeat;background-position:50%;background-size:cover}.CardMedia:after{display:block;height:0;content:""}.CardMedia--wide:after{padding-top:56.25%}.CardMedia--square:after{padding-top:100%}.CardMedia-content{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.CardTitle{padding:12px 12px 6px}.CardTitle--center{padding:4px 2px;text-align:center}.CardTitle-title{margin:0;font-size:1rem;font-weight:500}.CardTitle-subtitle{margin:0;color:var(--gray-3);font-size:.625rem}.CardContent{padding:12px}.CardTitle+.CardContent{padding-top:0}.CardText{padding:12px;color:var(--gray-1)}.CardTitle+.CardText{padding-top:0}.CardText p{margin:0}.CardActions{display:flex;padding:12px 12px 18px}.CardTitle+.CardActions,.CardText+.CardActions,.CardContent+.CardActions{padding-top:0}.CardActions .Btn{flex:1;line-height:1.5}.CardActions .Btn+.Btn{margin-left:12px}.CardActions--column{flex-direction:column;padding:0}.CardActions--column .Btn{padding:10px;border:0;border-top:1px solid var(--gray-6);border-radius:0;background:var(--white);color:var(--gray-3)}.CardActions--column .Btn:last-child{border-radius:0 0 12px 12px}.CardActions--column .Btn:active{background:var(--gray-7)}.CardActions--column .Btn:disabled{color:var(--gray-4)}.CardActions--column .Btn+.Btn{margin:0}.CardActions--column .Btn--primary{color:var(--brand-1)}@media (hover: hover){.CardActions--column .Btn:hover{background:var(--gray-7)}}.Divider{display:flex;align-items:center;margin:12px 0;font-size:.75rem;color:var(--gray-3)}.Divider:before,.Divider:after{content:"";display:block;flex:1;border-top:1px solid var(--gray-5)}.Divider--text-center:before,.Divider--text-left:before,.Divider--text-right:before{margin-right:var(--gutter)}.Divider--text-center:after,.Divider--text-left:after,.Divider--text-right:after{margin-left:var(--gutter)}.Divider--text-left:before{max-width:10%}.Divider--text-right:after{max-width:10%}.Empty{padding:30px;text-align:center}.Empty-img{height:125px}.Empty-tip{margin:20px 0;color:var(--gray-4)}.Flex{display:flex}.Flex--inline{display:inline-flex}.Flex--center{justify-content:center;align-items:center}.Flex--d-r{flex-direction:row}.Flex--d-rr{flex-direction:row-reverse}.Flex--d-c{flex-direction:column}.Flex--d-cr{flex-direction:column-reverse}.Flex--w-n{flex-wrap:nowrap}.Flex--w-w{flex-wrap:wrap}.Flex--w-wr{flex-wrap:wrap-reverse}.Flex--jc-fs{justify-content:flex-start}.Flex--jc-fe{justify-content:flex-end}.Flex--jc-c{justify-content:center}.Flex--jc-sb{justify-content:space-between}.Flex--jc-sa{justify-content:space-around}.Flex--ai-fs{align-items:flex-start}.Flex--ai-fe{align-items:flex-end}.Flex--ai-c{align-items:center}.FlexItem{flex:1;min-width:0;min-height:0}.HelpText{font-size:.75rem;color:var(--gray-4)}.Icon{display:inline-block;width:1em;height:1em;stroke-width:0;fill:currentColor;transition:all .3s cubic-bezier(.18,.89,.32,1.28)}.is-spin{animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.IconBtn{min-width:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--gray-2);font-size:18px}.IconBtn.Btn--primary{color:var(--brand-2)}.IconBtn:disabled{border-color:var(--gray-6);color:var(--gray-6)}.IconBtn.Btn--lg{border-radius:6px;font-size:24px}.IconBtn>.Icon{display:block}.IconBtn>img{display:block;width:1em;height:1em}.Image{position:relative;display:inline-block;overflow:hidden;border-style:none}.Image--fluid{max-width:100%;height:auto}.InfiniteScroll{overflow-y:scroll;-webkit-overflow-scrolling:touch}.InputWrapper{position:relative}.InputWrapper.has-counter{padding-bottom:20px}.InputWrapper.has-counter+.HelpText{margin-top:-20px}.Input{display:block;box-sizing:border-box;width:100%;min-height:24px;margin:0;padding:5px 12px;border:1px solid var(--gray-6);border-radius:12px;font-family:inherit;font-size:.875rem;line-height:1.5;color:var(--gray-1);background:var(--white);resize:none;-webkit-tap-highlight-color:transparent;transition:.2s ease-in-out;-webkit-appearance:none}.Input:focus{outline:none;border-color:var(--brand-1)}.Input:focus:not([disabled]):not([readonly])~.Input-line:before,.Input:focus:not([disabled]):not([readonly])~.Input-line:after{width:50%}.Input::-moz-placeholder{color:var(--gray-4)}.Input::placeholder{color:var(--gray-4)}.Input--filled{border-color:transparent;background-color:var(--gray-6)}.Input--flushed{padding:2px var(--gutter);border-width:0 0 1px;border-radius:0;background:none}.Input--flushed:focus{box-shadow:var(--brand-1) 0 1px 0 0}.Input-counter{position:relative;z-index:1;float:right;margin-right:var(--gutter);color:var(--gray-3);font-size:.75rem}.Label{display:block;font-size:.75rem;color:var(--gray-2)}.List{background:var(--white)}.List--bordered{border:1px solid var(--gray-7);border-radius:2px}.ListItem{display:flex;align-items:center;box-sizing:border-box;padding:10px var(--gutter);border:0;color:var(--gray-1);font-size:15px;line-height:1.6;text-decoration:none;transition:.3s}.ListItem:focus:not(:focus-visible){outline:0}.ListItem+.ListItem{border-top:1px solid var(--gray-7)}.ListItem .Icon{color:var(--gray-3)}button.ListItem{width:100%;background:transparent;text-align:left;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.ListItem:active,button.ListItem:active{background:var(--gray-6)}@media (hover: hover){a.ListItem:hover,button.ListItem:hover{background:#0000000a;background-clip:padding-box;cursor:pointer}}.ListItem-content{flex:1}.Loading{padding:12px;color:var(--gray-2)}.Loading .Icon{font-size:30px}.Loading-tip{margin:0 0 0 6px;font-size:.875rem}.MediaObject{display:flex}.MediaObject-pic{width:70px;margin-right:10px}.MediaObject-pic>img{display:block;width:100%;height:100%}.MediaObject-info{flex:1}.MediaObject-title{margin:0 0 6px;font-size:.875rem;font-weight:400}.MediaObject-meta{font-size:.75rem;color:var(--gray-2)}.Message{position:relative}.Message+.Message{margin-top:var(--gutter)}.Message.left .Message-main>.Avatar{margin-right:4px}.Message.left .Bubble{margin-right:calc(var(--rate-width) + 16px)}.Message.right .Message-main,.Message.right .Message-content{flex-direction:row-reverse}.Message.right .Message-main>.Avatar{margin-left:4px}.Message.right .Message-author{text-align:right}.Message.right .Bubble{margin-left:calc(var(--rate-width) + 8px);border-radius:12px;background:var(--brand-3)}.Message.pop{display:none}.Message-meta{display:flex;justify-content:center;margin-bottom:12px;text-align:center}.Message-main,.Message-content{display:flex;align-items:flex-start}.Message-inner{flex:1;min-width:0}.Message-author{margin-bottom:6px;color:var(--gray-2);font-size:var(--font-size-xs);line-height:1.1}.SystemMessage{padding:0 15px;color:var(--gray-2);text-align:center}.SystemMessage a{margin-left:5px}.SystemMessage-inner{display:inline-block;padding:6px 9px;border-radius:6px;background:var(--gray-8);font-size:12px;text-align:left}.ChatApp[data-elder-mode=true] .SystemMessage-inner{padding:7px 14px;font-size:14px}.MessageStatus{align-self:center;margin-right:12px}.MessageStatus[data-status=loading] .Icon{color:var(--gray-4)}.MessageStatus[data-status=fail] .IconBtn{color:#ff5959}.MessageStatus .IconBtn,.MessageStatus .Icon{display:block}.Message.right .Bubble+.MessageStatus{margin-right:calc(4px - var(--rate-width))}.Modal,.Popup{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;z-index:100;display:flex;align-items:center;justify-content:center;outline:0}.Modal.active .Modal-dialog{opacity:1;transform:none}.Modal-dialog{position:relative;z-index:100;overflow:hidden;width:320px;max-width:90vw;border-radius:12px;background:var(--white);opacity:0;transition:transform .3s ease-out,opacity .15s linear;transform:translateY(-50px);font-size:15px}.Modal-header{position:relative;padding:18px 20px 10px}.Modal-body{padding:18px 15px}.Modal-header+.Modal-body{padding-top:0}.Modal-footer{display:flex}.Modal-footer .Btn--outline{padding-top:10px;padding-bottom:10px;border-width:1px 0 0;border-color:var(--gray-6);border-radius:0}.Modal-footer .Btn--outline:not(.Btn--primary){color:var(--gray-2)}.Modal-footer--h[data-variant=round]{padding:0 15px 18px}.Modal-footer--h[data-variant=round] .Btn+.Btn{margin-left:12px}.Modal-footer--h[data-variant=outline] .Btn+.Btn{border-left-width:1px}.Modal-footer--h .Btn{flex:1}.Modal-footer--v{flex-direction:column}.Confirm .Modal-body{text-align:center}.Popup{align-items:flex-end}.Popup.active .Popup-dialog{opacity:1;transform:translateZ(0)}.Popup-content{display:flex;flex-direction:column;height:100%}.Popup-dialog{position:relative;z-index:100;overflow:hidden;width:100%;border-radius:27px 27px 0 0;background:var(--white);opacity:0;transform:translate3d(0,100%,0);transition:.3s}.Popup-dialog[data-bg-color=gray]{background:var(--gray-7)}.Popup-dialog[data-height="80"]{height:80vh}.Popup-dialog[data-height="60"]{height:60vh}.Popup-dialog[data-height="40"]{height:40vh}.Popup-header{position:relative;padding:18px 40px 10px}.Modal-title,.Popup-title{margin:0;color:var(--gray-1);font-size:1.125rem;font-weight:500;text-align:center}.Popup[data-elder-mode=true] .Modal-title,.Popup[data-elder-mode=true] .Popup-title{font-size:23px}.Popup[data-elder-mode=true] .Popup-close{font-size:32px}.Modal-close,.Popup-close{position:absolute;right:12px;color:var(--gray-1)}.Modal-close{top:12px}.Popup-title{min-height:25px}.Popup-close{top:18px}.Popup-body{flex:1;min-height:0}.Popup-body.overflow{max-height:70vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.Popup-footer{position:relative;display:flex;flex-direction:column;padding:9px 12px;padding-bottom:calc(9px + var(--safe-bottom));background:var(--white)}.Popup-footer .Btn+.Btn{margin-top:9px}.S--modalOpen,.S--modalOpen .MessageContainer>.PullToRefresh{overflow:hidden}.S--wide .Popup{align-items:center}.S--wide .Popup-dialog{width:480px;border-radius:12px}.S--wide .Popup-footer--v{padding-bottom:12px}.Navbar{position:relative;z-index:10;display:flex;align-items:center;padding:0 var(--gutter);padding-top:var(--safe-top);border-bottom:1px solid var(--gray-5);background:var(--gray-6)}.Navbar-main{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:3px 0;box-sizing:border-box}.Navbar-left,.Navbar-right{display:flex;width:58px}.Navbar-right{justify-content:flex-end}.Navbar-title{margin:0;color:var(--gray-1);font-size:17px;font-weight:500}.Navbar-logo{width:auto;height:38px}.Navbar .IconBtn{color:var(--gray-1);font-size:24px}.Navbar .IconBtn+.IconBtn{margin-left:9px}.Navbar--left .Navbar-left{width:24px}.Navbar--left .Navbar-main{min-height:62px;justify-content:flex-start}.Navbar--left .Navbar-logo{margin-left:9px}.Navbar-logo+.Navbar-inner{margin-left:9px}.Navbar-desc{color:var(--gray-2);font-size:12px}.ChatApp[data-elder-mode=true] .Navbar .IconBtn{font-size:26px}.ChatApp[data-elder-mode=true] .Navbar-logo{height:43px}.ChatApp[data-elder-mode=true] .Navbar-title{font-size:18px}.ChatApp[data-elder-mode=true] .Navbar-desc{font-size:13px}.Notice{display:flex;align-items:center;padding:12px;border-radius:12px;background:var(--white)}.Notice-icon{margin-right:6px}.Notice-close{margin-left:6px}.Notice .Icon{color:var(--brand-1);font-size:16px}.Notice-content{flex:1;min-width:0;color:var(--gray-1);font-size:13px}.Popover{position:absolute;top:0;left:0;z-index:1030;font-size:.875rem;transform:translateY(-10px)}.Popover-body{border-radius:6px;background:var(--white);box-shadow:var(--shadow-3)}.Popover-arrow{display:block;width:9px;height:5px;margin-left:10px;fill:var(--white)}.Price{display:inline;font-size:.875rem;font-weight:500}.Price--original{color:var(--gray-3);text-decoration:line-through}.Price .Price-fraction{font-size:.857em}.Progress{display:flex;height:2px;overflow:hidden;background-color:var(--gray-5);border-radius:100px}.Progress-bar{overflow:hidden;background-color:var(--blue);transition:width .6s ease}.Progress--success .Progress-bar{background-color:var(--green)}.Progress--error .Progress-bar{background-color:var(--red)}.PullToRefresh{height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch}.PullToRefresh-fallback{padding-top:var(--gutter);text-align:center}.PullToRefresh-loadMore{font-size:14px}.PullToRefresh-inner{overflow:hidden;min-height:100%}.PullToRefresh-indicator{height:30px;margin-top:-30px;color:gray;text-align:center;line-height:30px}.PullToRefresh-spinner{color:var(--gray-3);font-size:27px}.PullToRefresh-transition{transition:transform .3s}.QuickReplies{padding:9px var(--gutter);transition:opacity .3s}.QuickReplies[data-visible=false]{visibility:hidden;opacity:0}.QuickReplies:not(.ScrollView--hasControls){padding-left:0;padding-right:0}.QuickReplies:not(.ScrollView--hasControls) .ScrollView-inner{padding:0 var(--gutter)}.QuickReplies:not(.ScrollView--hasControls) .ScrollView-item:last-child{padding-right:var(--gutter)}.QuickReply{position:relative;display:block;margin:0;padding:4px 12px;border:1px solid transparent;border-radius:99px;line-height:20px;background:var(--white);cursor:pointer;color:var(--gray-1);font-size:14px;transition:.15s ease-in-out}.QuickReply.new:after{content:"";position:absolute;top:0;right:0;width:8px;height:8px;background:var(--red);overflow:hidden;border:1px solid #fff;border-radius:50%}.QuickReply.highlight{background:#fff;border-color:#ffd0bf;font-weight:500}.QuickReply-inner{display:flex;align-items:center}.QuickReply-img{max-height:13px}.QuickReply-inner>.Icon,.QuickReply-img{margin-right:3px}.QuickReply .Icon{color:var(--brand-1);font-size:15px}.ChatApp[data-elder-mode=true] .QuickReply{font-size:17px;line-height:26px}.ChatApp[data-elder-mode=true] .QuickReply .Icon{font-size:17px}.ChatApp[data-elder-mode=true] .QuickReply-img{max-height:17px}.Checkbox,.Radio{position:relative;display:inline-block;margin:9px 12px 0 0;padding:4px 12px;border:1px solid var(--gray-6);border-radius:9px;background:var(--white);color:var(--gray-2);font-size:.875rem;line-height:20px;text-align:center;cursor:pointer;transition:.15s ease-in-out;-webkit-tap-highlight-color:transparent}.RadioGroup{margin-top:-9px}.RadioGroup--block .Radio{display:block;margin-right:9px}.CheckboxGroup--block .Checkbox{display:block;margin-right:0}.Checkbox--disabled,.Radio--disabled{opacity:.5;cursor:initial}.Checkbox--checked,.Radio--checked{border-color:var(--brand-1);color:var(--brand-1)}.Checkbox-input,.Radio-input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:inherit}.ChatApp[data-elder-mode=true]{--rate-width: 38px}.RateActions{position:relative;z-index:10;align-self:flex-end;width:var(--rate-width);margin:0 8px}.RateBtn{padding:6px;border-radius:50%;background:var(--white);font-size:calc(var(--rate-width) - 12px)}.RateBtn+.RateBtn{margin-top:8px}.RateBtn[data-type=up]:hover,.RateBtn[data-type=up].active{color:var(--brand-1)}.RateBtn[data-type=down]:hover,.RateBtn[data-type=down].active{color:var(--blue)}.RichText{word-wrap:break-word;overflow-wrap:break-word}.ScrollView{overflow:hidden}.ScrollView-scroller{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.ScrollView-scroller::-webkit-scrollbar{display:none}.ScrollView--fullWidth{margin:0 calc(var(--gutter) * -1)}.ScrollView--fullWidth:not(.ScrollView--hasControls) .ScrollView-inner{padding:0 var(--gutter)}.ScrollView--x .ScrollView-scroller{display:flex;overflow-x:scroll;overflow-y:hidden;margin-bottom:-18px;padding-bottom:18px}.ScrollView--x .ScrollView-inner{display:flex}.ScrollView--x .ScrollView-item{flex:0 0 auto;margin-left:6px}.ScrollView--x .ScrollView-item:first-child{margin-left:0}.ScrollView--hasControls{display:flex;align-items:center}.ScrollView--hasControls .ScrollView-scroller{flex:1}.ScrollView-control{padding:6px;color:var(--gray-3);font-size:1rem}.ScrollView-control:not(:disabled):hover{color:var(--brand-1)}.Search{display:flex;align-items:center;padding:3px 5px 3px 15px;background:var(--white);border-radius:50px}.Search-icon,.Search-clear{font-size:var(--font-size-lg)}.Search-icon{color:var(--gray-3)}.Search-input{flex:1;border:0;padding:0 9px}.Search-input::-webkit-search-cancel-button{display:none}.Search-input:focus+.Search-clear,.Search-input:focus~.Btn--primary{opacity:1}.Search-clear{color:var(--gray-5);opacity:0}.Search-clear:hover{background:initial;color:var(--gray-3)}.Search .Btn--primary{min-width:56px;margin-left:6px;padding:2px 12px;font-size:var(--font-size-xs);opacity:0}.Select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.Select:disabled{background-color:var(--gray-7)}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.Skeleton{background:linear-gradient(90deg,#f6f6f6 8%,#f0f0f0 18%,#f6f6f6 33%);background-size:800px 104px;animation:1.25s linear infinite forwards shimmer}.Skeleton--r-sm{border-radius:2px}.Skeleton--r-md{border-radius:6px}.Skeleton--r-xl{border-radius:32px}.Stepper{margin:0;padding:0;list-style-type:none}.Step{position:relative;padding-left:29px;padding-bottom:18px}.Step:last-child{padding-bottom:0}.Step:last-child .Step-line{display:none}.Step--active .Step-dot{background:var(--brand-1)}.Step--active .Step-title span{color:var(--brand-1);font-weight:500}.Step--active .Step-desc{color:var(--gray-1)}.Step--active[data-status] .Step-line{top:26px}.Step--active[data-status] .Step-icon{color:var(--red)}.Step--active[data-status=success] .Step-icon{color:var(--green)}.Step-icon{position:absolute;top:0;left:0;width:24px;height:24px;font-size:24px;display:flex;justify-content:center;align-items:center}.Step-dot{width:8px;height:8px;background:var(--white);border:1px solid var(--brand-1);border-radius:50%}.Step-line{position:absolute;top:20px;left:12px;bottom:-4px;width:1px;background:var(--brand-1);opacity:.5}.Step-title{display:flex;align-items:center;color:var(--gray-1);font-size:var(--font-size-md)}.Step-title small{margin-left:12px;color:var(--gray-3);font-size:var(--font-size-xs)}.Step-desc{margin-top:3px;color:var(--gray-3);font-size:var(--font-size-sm)}.Tabs-nav{position:relative;display:flex;margin:7px 0}.Tabs-nav::-webkit-scrollbar{display:none}.Tabs--scrollable .Tabs-nav{overflow:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:-11px;padding-bottom:18px}.Tabs--scrollable .Tabs-navPointer{bottom:18px}.Tabs--scrollable .Tabs-navItem{flex:1 0 auto}.Tabs-navItem{flex:1;text-align:center}.Tabs-navLink{padding:4px 12px;border:0;border-radius:20px;background:transparent;color:var(--gray-2);font-size:.875rem;transition:.3s}.Tabs-navLink:focus:not(:focus-visible){outline:0}.Tabs-navLink:hover{cursor:pointer;color:var(--gray-1)}.Tabs-navLink.active{position:relative;z-index:1;color:var(--gray-1);font-weight:700}.Tabs-navPointer{position:absolute;left:0;bottom:0;height:3px;background:var(--btn-primary-bg);border-radius:2px;transition:.3s}.Tabs-pane{display:none}.Tabs-pane.active{display:block}.Tag{display:inline-block;position:relative;margin:0 4px 0 0;padding:0 6px;border:1px solid var(--brand-1);border-radius:4px;color:var(--brand-1);font-size:12px;line-height:1.25;white-space:nowrap}.Tag--primary{border-color:transparent;color:var(--orange)}.Tag--primary:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;margin:-1px;border-radius:inherit;background:currentColor;opacity:.14}.Tag--success{border-color:var(--green);background:var(--green);color:#fff}.Tag--danger{border-color:var(--red);background:var(--red);color:#fff}.Tag--warning{border-color:var(--orange);background:var(--orange);color:#fff}.Text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Text--break{word-break:break-word!important;overflow-wrap:break-word!important}.Text--ellipsis{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.Time{font-size:12px;color:var(--gray-3)}.Toast{position:fixed;top:30%;left:0;right:0;z-index:200;display:flex;justify-content:center;transition:all .3s ease 0s;transform:translateY(-50%);opacity:0;visibility:hidden}.Toast[data-type=success] .Icon{color:var(--green)}.Toast[data-type=error] .Icon{color:var(--red)}.Toast[data-type=loading] .Icon{color:var(--brand-1)}.Toast.show{opacity:1;visibility:visible}.Toast .Icon{margin-right:6px;font-size:24px}.Toast-content{display:flex;max-width:90vw;padding:18px 24px;border-radius:12px;background:#000000b3;box-sizing:border-box}.Toast-message{flex:1;margin:0;color:var(--white);font-size:16px;word-break:break-word}.Toolbar{padding:var(--gutter);padding-top:0}.Toolbar-item{display:inline-block;width:25%;margin-top:var(--gutter);text-align:center}.Toolbar-btn{position:relative;display:inline-block;overflow:hidden;max-width:100%;min-width:0;padding:6px;border:0;border-radius:0;background:transparent;color:var(--gray-2);vertical-align:top}.Toolbar-btn:hover{background:transparent}.Toolbar-btn:active .Toolbar-btnIcon{background:#0000000a}@media (hover: hover){.Toolbar-btn:hover .Toolbar-btnIcon{background:#0000000a}}.Toolbar-btnIcon{display:inline-block;padding:12px;border-radius:12px;background:var(--white);transition:.3s}.Toolbar-btnIcon .Icon{font-size:30px;vertical-align:top}.Toolbar-img{width:30px;height:30px;vertical-align:top}.Toolbar-btnText{display:block;margin-top:8px;font-size:14px;line-height:1.1;white-space:initial;word-wrap:break-word}.ChatApp[data-elder-mode=true] .Toolbar-btnIcon{padding:16px}@media (min-width: 350px){.ChatApp[data-elder-mode=true] .Toolbar-btnIcon{padding:19px}.ChatApp[data-elder-mode=true] .Toolbar-btnIcon .Icon{font-size:36px}}[data-tooltip]{position:relative;cursor:pointer}[data-tooltip]:after,[data-tooltip]:before{position:absolute;bottom:100%;left:50%;z-index:200;opacity:0;pointer-events:none;transition:all .18s ease-out .18s;transform:translate(-50%,4px);transform-origin:top}[data-tooltip]:after{content:attr(aria-label);margin-bottom:10px;padding:.5em 1em;border-radius:6px;background:var(--gray-1);color:var(--white);font-size:.75rem;white-space:nowrap}[data-tooltip]:before{content:"";width:0;height:0;transform-origin:top;border:.3125rem solid transparent;border-top-color:var(--gray-1)}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;transform:translate(-50%)}.Tree{background:var(--white)}.TreeNode-title{padding:10px 15px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--gray-7)}.TreeNode-title:hover{background:var(--gray-7);color:var(--brand-1);cursor:pointer}.TreeNode:last-child .TreeNode-title{border:0}.TreeNode-children-title{background:var(--gray-7);border-bottom:1px solid var(--gray-7)}.TreeNode-title-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;flex:1}.TreeNode-children{display:none}.TreeNode-children-active{display:block}.Typing{display:flex;align-items:center;height:22.5px;transition:opacity .1s}.Typing-dot{display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;animation:typing-dot 1.26s linear infinite;background:var(--gray-3)}.Typing-dot:nth-child(1){margin:0}.Typing-dot:nth-child(2){animation-delay:.18s}.Typing-dot:nth-child(3){animation-delay:.36s}@keyframes typing-dot{0%{transform:scale(1)}16.67%{transform:scale(0)}33.33%{transform:scale(0)}50%{transform:scale(0)}66.67%{transform:scale(1)}83.33%{transform:scale(1)}to{transform:scale(1)}}.Video{position:relative;border-radius:inherit}.Video-cover,.Video-video:not([hidden]){display:block;width:100%;max-height:100%;border-radius:inherit}.Video-duration{position:absolute;right:6px;bottom:6px;z-index:1;color:var(--white);line-height:1}.Video-playBtn{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent}.Video-playBtn:hover{cursor:pointer}.Video-playIcon{display:inline-block;width:35px;height:35px;background:url(//gw.alicdn.com/tfs/TB1p1mkqIbpK1RjSZFyXXX_qFXa-70-70.png) 0 0 no-repeat;background-size:cover}.Video--playing .Video-playBtn{display:none}.Carousel{position:relative;overflow:hidden}.Carousel--draggable .Carousel-inner{touch-action:pan-y;cursor:grab}.Carousel--draggable .Carousel-inner:active{cursor:grabbing}.Carousel--rtl{direction:rtl}.Carousel--dragging .Carousel-item{pointer-events:none}.Carousel-inner{display:flex;will-change:transform}.Carousel-dots{position:absolute;z-index:1;bottom:8px;left:50%;transform:translate(-50%);display:flex;justify-content:center;list-style-type:none;margin:0;padding:0}.Carousel-dot{display:block;width:8px;height:8px;margin:0 4px;padding:0;border:0;border-radius:50%;background:var(--gray-4);transition:.3s;cursor:pointer}.Carousel-dot.active{background:var(--brand-1)}.Goods{padding:12px;font-size:14px}.Goods[data-elder-mode=true] .Goods-img{width:56px;height:56px}.Goods[data-elder-mode=true] .Price{color:var(--brand-1)}.Goods[data-elder-mode=true] .Btn{min-width:0}.Goods+.Goods{border-top:1px solid var(--gray-7)}.Goods-img{width:72px;height:72px;margin-right:9px;-o-object-fit:cover;object-fit:cover;border-radius:12px}.Goods-name{margin:0 0 3px;font-size:.875rem;font-weight:400}.Goods-main .Price{margin-right:9px}.Goods-desc{margin-bottom:3px;color:var(--gray-3);word-break:break-all}.Goods-meta{color:var(--gray-3);font-size:.625rem}.Goods-countUnit{margin:3px 0;color:var(--gray-3);font-size:.75rem}.Goods-unit{margin-left:3px;font-size:.625rem}.Goods-buyBtn{float:right;background:var(--brand-1);color:#fff;padding:2px}.Goods-buyBtn:hover{background:var(--brand-1)}.Goods-detailBtn{min-width:48px;padding:0 10px;border-radius:10px;font-size:.625rem;line-height:18px}.Goods-aside{display:flex;flex-direction:column;align-items:flex-end;margin-left:9px}.Goods-status{color:var(--highlight-2);font-size:12px}.FileCard{padding:8px}.FileCard-icon{position:relative;height:60px;margin-right:8px;color:var(--gray-2)}.FileCard-icon[data-type=pdf]{color:var(--red)}.FileCard-icon[data-type*=doc]{color:var(--blue)}.FileCard-icon[data-type*=ppt],.FileCard-icon[data-type=key]{color:var(--orange)}.FileCard-icon[data-type*=xls]{color:var(--green)}.FileCard-icon[data-type=rar],.FileCard-icon[data-type=zip]{color:var(--brand-1)}.FileCard-icon .Icon{font-size:60px}.FileCard-name{height:38px;margin-bottom:4px;line-height:1.4}.FileCard-ext{position:absolute;left:20px;bottom:15px;transform-origin:left bottom;transform:scale(.5);max-width:50px;font-size:1rem;font-weight:700;text-transform:uppercase}.FileCard-meta{color:var(--gray-3);font-size:.75rem}.FileCard-meta>a,.FileCard-meta>span{margin-right:10px}.FileCard-meta a{color:var(--link-color);text-decoration:none}.Form{background:var(--white)}.Form.is-light .FormItem{padding:0}.Form.is-light .Label,.Form.is-light .HelpText{padding:0 var(--gutter)}.FormItem{position:relative;padding:0 var(--gutter)}.FormItem+.FormItem{margin-top:20px}.FormItem.required .Label:after{content:"*";display:inline-block;color:var(--red);font-size:.875rem;font-family:SimSun,sans-serif;line-height:1;vertical-align:middle}.FormItem.is-invalid .Label,.FormItem.is-invalid .HelpText{color:var(--red)}.FormItem.is-invalid .Input{border-color:var(--red)}.FormItem .RadioGroup,.FormItem .CheckboxGroup{margin-top:10px}.FormItem .Label+.Input{margin-top:5px}.FormActions{display:flex;padding:10px var(--gutter);background:var(--white)}.FormActions .Btn{flex:1}.FormActions .Btn+.Btn{margin-left:6px}.MessageContainer{position:relative;display:flex;flex-direction:column;flex:1;min-height:0}.MessageContainer>.PullToRefresh{flex:1}.MessageContainer:focus{outline:0}.MessageList{padding:var(--gutter);font-size:15px;height:500px;overflow-y:auto}.RecorderToast{position:fixed;top:50%;left:50%;z-index:100;width:160px;height:160px;padding:10px;transform:translate(-50%,-50%);border-radius:12px;background:#333333de;color:var(--white);text-align:center}.Recorder--cancel .RecorderToast{color:var(--red)}.Recorder--cancel .Recorder-btn{background:#0000000a;color:var(--gray-3)}.RecorderToast-icon{position:relative;font-size:37px}.RecorderToast-waves{position:absolute;z-index:-1;width:100%;height:100%;transition:.3s}.RecorderToast-wave-1,.RecorderToast-wave-2,.RecorderToast-wave-3{position:absolute;z-index:-1;color:var(--brand-2);animation:wave 10s linear infinite}.RecorderToast-wave-1{top:-25px;left:14px;font-size:176px;opacity:.2}.RecorderToast-wave-2{top:-12px;left:-21px;font-size:186px;opacity:.4}.RecorderToast-wave-3{top:40px;left:55px;font-size:71px;opacity:.8}.Recorder-btn{height:36px;border-radius:20px;background:var(--white);color:var(--gray-dark);line-height:36px;text-align:center;transition:.3s}@keyframes wave{0%{transform:translateY(5%) rotate(0)}50%{transform:translateY(-5%) rotate(180deg)}to{transform:translateY(5%) rotate(360deg)}}.Composer{display:flex;align-items:flex-end;padding:9px var(--gutter)}.Composer>div+div{margin-left:9px}.Composer-actions{display:flex;align-items:center;height:36px}.Composer-actions .IconBtn{font-size:30px;color:var(--gray-1)}.Composer-toggleBtn{transition:transform .2s}.Composer-toggleBtn.active .Icon{transform:rotate(45deg)}.Composer-inputWrap{flex:1;position:relative}.Composer-input{overflow-x:hidden;max-height:132px;padding:8px 12px;border:0;line-height:20px;font-size:15px;caret-color:var(--brand-2);transition:border-color .15s ease-in-out}.Composer-sendBtn{min-width:0;padding-left:16px;padding-right:16px}.ChatApp[data-elder-mode=true] .Composer-actions{height:50px}.ChatApp[data-elder-mode=true] .Composer-actions .IconBtn{font-size:34px}.ChatApp[data-elder-mode=true] .Composer-input{padding:9px 12px;font-size:21px;line-height:32px}.ChatApp[data-elder-mode=true] .Composer-sendBtn{padding:4px 13px;font-size:17px}.SendConfirm .Modal-dialog{width:480px;margin:20px}.SendConfirm-inner{height:320px;text-align:center}.SendConfirm-inner img{max-width:100%;max-height:100%}html{height:100vh}html[data-safari]{height:calc(100vh - (100vh - 100%))}body,#root{height:100%}body{overflow:hidden;margin:0}@media (hover: none){body{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}}.ChatApp{display:flex;flex-direction:column;height:100%;background:var(--gray-6);color:var(--gray-1);font-family:-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";line-height:1.5;-webkit-tap-highlight-color:transparent}.S--focusing{--safe-bottom: 0px}@media (hover: none){.S--focusing .MessageList{margin-top:75vh}}.ChatFooter{position:relative;z-index:10;padding-bottom:var(--safe-bottom);background:var(--gray-7)}.Message.left .Bubble{text-align:left}.MessageList{height:100%}.ChatFooter .Composer-input{min-height:68px}.Navbar-main{-webkit-app-region:drag}.Navbar-left,.Navbar-right{-webkit-app-region:no-drag}.list-item{padding:5px;margin-bottom:0;height:60px}.list-item:hover,.active{background-color:#ddd}.list-item-dark{padding:5px;margin-bottom:0;height:60px}.list-item-dark:hover,.dark-active{background-color:#333}.list-item .avatar{border-radius:2px;margin-right:2px}li{list-style:none}.list-left{margin-top:4px;margin-left:2px;width:25px;height:25px;float:left}.list-right{margin-left:52px}.list-right .top{height:20px;margin-top:5px;text-align:left}.list-right-ticket{margin-left:5px}.list-right-ticket .top{margin-top:2px;text-align:left}span.nickname{display:inline-block;vertical-align:top;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}span.timestamp{float:right;color:gray;font-size:12px;vertical-align:top;width:72px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom{text-align:left;margin-top:5px}.list-right-ticket .bottom{text-align:left}.list-right .bottom-queue{width:90%;text-align:left}.list-right .bottom .content{display:inline-block;vertical-align:top;font-size:12px;color:gray;width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-right .bottom .star{font-size:14px;float:right}.list-right .unreadCount{margin-top:4px;float:right;font-size:10px;width:12px;height:12px;line-height:12px;text-align:center;border-radius:5px;color:#fff;background-color:red}:root{--contexify-zIndex:666;--contexify-menu-minWidth:220px;--contexify-menu-padding:6px;--contexify-menu-radius:6px;--contexify-menu-bgColor:#fff;--contexify-menu-shadow:1px 2px 2px rgba(0,0,0,.1),2px 4px 4px rgba(0,0,0,.1),3px 6px 6px rgba(0,0,0,.1);--contexify-menu-negatePadding:var(--contexify-menu-padding);--contexify-separator-color:rgba(0,0,0,.2);--contexify-separator-margin:5px;--contexify-itemContent-padding:6px;--contexify-activeItem-radius:4px;--contexify-item-color:#333;--contexify-activeItem-color:#fff;--contexify-activeItem-bgColor:#3498db;--contexify-rightSlot-color:#6f6e77;--contexify-activeRightSlot-color:#fff;--contexify-arrow-color:#6f6e77;--contexify-activeArrow-color:#fff}@keyframes contexify_feedback{0%{opacity:.4}to{opacity:1}}.contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--contexify-menu-bgColor);box-sizing:border-box;box-shadow:var(--contexify-menu-shadow);border-radius:var(--contexify-menu-radius);padding:var(--contexify-menu-padding);min-width:var(--contexify-menu-minWidth);z-index:var(--contexify-zIndex)}.contexify_submenu-isOpen,.contexify_submenu-isOpen>.contexify_itemContent{color:var(--contexify-activeItem-color);background-color:var(--contexify-activeItem-bgColor);border-radius:var(--contexify-activeItem-radius)}.contexify_submenu-isOpen>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeArrow-color)}.contexify_submenu-isOpen>.contexify_submenu{pointer-events:auto;opacity:1}.contexify .contexify_submenu{position:absolute;pointer-events:none;transition:opacity .265s;top:calc(-1 * var(--contexify-menu-negatePadding));left:100%}.contexify .contexify_submenu-bottom{bottom:calc(-1 * var(--contexify-menu-negatePadding));top:unset}.contexify .contexify_submenu-right{right:100%;left:unset}.contexify_rightSlot{margin-left:auto;display:flex;color:var(--contexify-rightSlot-color)}.contexify_separator{height:1px;cursor:default;margin:var(--contexify-separator-margin);background-color:var(--contexify-separator-color)}.contexify_willLeave-disabled{pointer-events:none}.contexify_item{cursor:pointer;position:relative}.contexify_item:focus{outline:0}.contexify_item:focus .contexify_rightSlot,.contexify_item:not(.contexify_item-disabled):hover>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeRightSlot-color)}.contexify_item:not(.contexify_item-disabled)[aria-haspopup]>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-arrow-color)}.contexify_item:not(.contexify_item-disabled)[aria-haspopup].contexify_submenu-isOpen>.contexify_itemContent .contexify_rightSlot,.contexify_item:not(.contexify_item-disabled)[aria-haspopup]:hover>.contexify_itemContent .contexify_rightSlot,.contexify_item[aria-haspopup]:focus>.contexify_itemContent .contexify_rightSlot{color:var(--contexify-activeArrow-color)}.contexify_item:not(.contexify_item-disabled):focus>.contexify_itemContent,.contexify_item:not(.contexify_item-disabled):hover>.contexify_itemContent{color:var(--contexify-activeItem-color);background-color:var(--contexify-activeItem-bgColor);border-radius:var(--contexify-activeItem-radius)}.contexify_item:not(.contexify_item-disabled):hover>.contexify_submenu{pointer-events:auto;opacity:1}.contexify_item-disabled{cursor:default;opacity:.5}.contexify_itemContent{padding:var(--contexify-itemContent-padding);display:flex;align-items:center;white-space:nowrap;color:var(--contexify-item-color);position:relative}.contexify_item-feedback{animation:contexify_feedback .12s both}.contexify_theme-dark{--contexify-menu-bgColor:rgba(40,40,40,.98);--contexify-separator-color:#4c4c4c;--contexify-item-color:#fff}.contexify_theme-light{--contexify-separator-color:#eee;--contexify-item-color:#666;--contexify-activeItem-color:#3498db;--contexify-activeItem-bgColor:#e0eefd;--contexify-activeRightSlot-color:#3498db;--contexify-active-arrow-color:#3498db}@keyframes contexify_scaleIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes contexify_scaleOut{0%{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.contexify_willEnter-scale{transform-origin:top left;animation:contexify_scaleIn .3s}.contexify_willLeave-scale{transform-origin:top left;animation:contexify_scaleOut .3s}@keyframes contexify_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes contexify_fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.contexify_willEnter-fade{animation:contexify_fadeIn .3s ease}.contexify_willLeave-fade{animation:contexify_fadeOut .3s ease}@keyframes contexify_flipInX{0%{transform:perspective(800px) rotateX(45deg)}to{transform:perspective(800px)}}@keyframes contexify_flipOutX{0%{transform:perspective(800px)}to{transform:perspective(800px) rotateX(45deg);opacity:0}}.contexify_willEnter-flip{animation:contexify_flipInX .3s}.contexify_willEnter-flip,.contexify_willLeave-flip{backface-visibility:visible!important;transform-origin:top center}.contexify_willLeave-flip{animation:contexify_flipOutX .3s}@keyframes contexify_slideIn{0%{opacity:0;transform:scaleY(.3)}to{opacity:1}}@keyframes contexify_slideOut{0%{opacity:1}to{opacity:0;transform:scaleY(.3)}}.contexify_willEnter-slide{transform-origin:top center;animation:contexify_slideIn .3s}.contexify_willLeave-slide{transform-origin:top center;animation:contexify_slideOut .3s} diff --git a/starter/src/main/resources/templates/chat/assets/index-8_gX1BXE.js b/starter/src/main/resources/templates/chat/assets/index-DyVvI-UH.js similarity index 65% rename from starter/src/main/resources/templates/chat/assets/index-8_gX1BXE.js rename to starter/src/main/resources/templates/chat/assets/index-DyVvI-UH.js index cc248d619..6bfd7ea08 100644 --- a/starter/src/main/resources/templates/chat/assets/index-8_gX1BXE.js +++ b/starter/src/main/resources/templates/chat/assets/index-DyVvI-UH.js @@ -1,4 +1,4 @@ -var wm=Object.defineProperty;var Tm=(_e,et,rt)=>et in _e?wm(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:rt}):_e[et]=rt;var Rm=(_e,et)=>()=>(et||_e((et={exports:{}}).exports,et),et.exports);var zo=(_e,et,rt)=>(Tm(_e,typeof et!="symbol"?et+"":et,rt),rt),Lp=(_e,et,rt)=>{if(!et.has(_e))throw TypeError("Cannot "+rt)};var Jr=(_e,et,rt)=>(Lp(_e,et,"read from private field"),rt?rt.call(_e):et.get(_e)),go=(_e,et,rt)=>{if(et.has(_e))throw TypeError("Cannot add the same private member more than once");et instanceof WeakSet?et.add(_e):et.set(_e,rt)},Jn=(_e,et,rt,st)=>(Lp(_e,et,"write to private field"),st?st.call(_e,rt):et.set(_e,rt),rt);var Sl=(_e,et,rt,st)=>({set _(ct){Jn(_e,et,ct,rt)},get _(){return Jr(_e,et,st)}}),ho=(_e,et,rt)=>(Lp(_e,et,"access private method"),rt);var Pm=Rm((exports,module)=>{function _mergeNamespaces(_e,et){for(var rt=0;rtst[ct]})}}}return Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"})}(function(){const et=document.createElement("link").relList;if(et&&et.supports&&et.supports("modulepreload"))return;for(const ct of document.querySelectorAll('link[rel="modulepreload"]'))st(ct);new MutationObserver(ct=>{for(const ut of ct)if(ut.type==="childList")for(const ft of ut.addedNodes)ft.tagName==="LINK"&&ft.rel==="modulepreload"&&st(ft)}).observe(document,{childList:!0,subtree:!0});function rt(ct){const ut={};return ct.integrity&&(ut.integrity=ct.integrity),ct.referrerPolicy&&(ut.referrerPolicy=ct.referrerPolicy),ct.crossOrigin==="use-credentials"?ut.credentials="include":ct.crossOrigin==="anonymous"?ut.credentials="omit":ut.credentials="same-origin",ut}function st(ct){if(ct.ep)return;ct.ep=!0;const ut=rt(ct);fetch(ct.href,ut)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}function getAugmentedNamespace(_e){if(_e.__esModule)return _e;var et=_e.default;if(typeof et=="function"){var rt=function st(){return this instanceof st?Reflect.construct(et,arguments,this.constructor):et.apply(this,arguments)};rt.prototype=et.prototype}else rt={};return Object.defineProperty(rt,"__esModule",{value:!0}),Object.keys(_e).forEach(function(st){var ct=Object.getOwnPropertyDescriptor(_e,st);Object.defineProperty(rt,st,ct.get?ct:{enumerable:!0,get:function(){return _e[st]}})}),rt}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** +var Rm=Object.defineProperty;var Pm=(_e,et,rt)=>et in _e?Rm(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:rt}):_e[et]=rt;var Om=(_e,et)=>()=>(et||_e((et={exports:{}}).exports,et),et.exports);var Ko=(_e,et,rt)=>(Pm(_e,typeof et!="symbol"?et+"":et,rt),rt),_h=(_e,et,rt)=>{if(!et.has(_e))throw TypeError("Cannot "+rt)};var Jr=(_e,et,rt)=>(_h(_e,et,"read from private field"),rt?rt.call(_e):et.get(_e)),ho=(_e,et,rt)=>{if(et.has(_e))throw TypeError("Cannot add the same private member more than once");et instanceof WeakSet?et.add(_e):et.set(_e,rt)},no=(_e,et,rt,st)=>(_h(_e,et,"write to private field"),st?st.call(_e,rt):et.set(_e,rt),rt);var Sl=(_e,et,rt,st)=>({set _(ct){no(_e,et,ct,rt)},get _(){return Jr(_e,et,st)}}),mo=(_e,et,rt)=>(_h(_e,et,"access private method"),rt);var Im=Om((exports,module)=>{function _mergeNamespaces(_e,et){for(var rt=0;rtst[ct]})}}}return Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"})}(function(){const et=document.createElement("link").relList;if(et&&et.supports&&et.supports("modulepreload"))return;for(const ct of document.querySelectorAll('link[rel="modulepreload"]'))st(ct);new MutationObserver(ct=>{for(const ut of ct)if(ut.type==="childList")for(const ft of ut.addedNodes)ft.tagName==="LINK"&&ft.rel==="modulepreload"&&st(ft)}).observe(document,{childList:!0,subtree:!0});function rt(ct){const ut={};return ct.integrity&&(ut.integrity=ct.integrity),ct.referrerPolicy&&(ut.referrerPolicy=ct.referrerPolicy),ct.crossOrigin==="use-credentials"?ut.credentials="include":ct.crossOrigin==="anonymous"?ut.credentials="omit":ut.credentials="same-origin",ut}function st(ct){if(ct.ep)return;ct.ep=!0;const ut=rt(ct);fetch(ct.href,ut)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}function getAugmentedNamespace(_e){if(_e.__esModule)return _e;var et=_e.default;if(typeof et=="function"){var rt=function st(){return this instanceof st?Reflect.construct(et,arguments,this.constructor):et.apply(this,arguments)};rt.prototype=et.prototype}else rt={};return Object.defineProperty(rt,"__esModule",{value:!0}),Object.keys(_e).forEach(function(st){var ct=Object.getOwnPropertyDescriptor(_e,st);Object.defineProperty(rt,st,ct.get?ct:{enumerable:!0,get:function(){return _e[st]}})}),rt}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** * @license React * react.production.min.js * @@ -22,7 +22,7 @@ var wm=Object.defineProperty;var Tm=(_e,et,rt)=>et in _e?wm(_e,et,{enumerable:!0 * * 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 et(dr,yr){var $r=dr.length;dr.push(yr);e:for(;0<$r;){var Er=$r-1>>>1,mr=dr[Er];if(0>>1;Erct(jr,$r))Orct(_r,jr)?(dr[Er]=_r,dr[Or]=$r,Er=Or):(dr[Er]=jr,dr[Tr]=$r,Er=Tr);else if(Orct(_r,$r))dr[Er]=_r,dr[Or]=$r,Er=Or;else break e}}return yr}function ct(dr,yr){var $r=dr.sortIndex-yr.sortIndex;return $r!==0?$r:dr.id-yr.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ut=performance;_e.unstable_now=function(){return ut.now()}}else{var ft=Date,gt=ft.now();_e.unstable_now=function(){return ft.now()-gt}}var xt=[],$t=[],_t=1,wt=null,Tt=3,Rt=!1,It=!1,At=!1,jt=typeof setTimeout=="function"?setTimeout:null,Nt=typeof clearTimeout=="function"?clearTimeout:null,kt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ft(dr){for(var yr=rt($t);yr!==null;){if(yr.callback===null)st($t);else if(yr.startTime<=dr)st($t),yr.sortIndex=yr.expirationTime,et(xt,yr);else break;yr=rt($t)}}function Ht(dr){if(At=!1,Ft(dr),!It)if(rt(xt)!==null)It=!0,hr(Wt);else{var yr=rt($t);yr!==null&&fr(Ht,yr.startTime-dr)}}function Wt(dr,yr){It=!1,At&&(At=!1,Nt(Gt),Gt=-1),Rt=!0;var $r=Tt;try{for(Ft(yr),wt=rt(xt);wt!==null&&(!(wt.expirationTime>yr)||dr&&!lr());){var Er=wt.callback;if(typeof Er=="function"){wt.callback=null,Tt=wt.priorityLevel;var mr=Er(wt.expirationTime<=yr);yr=_e.unstable_now(),typeof mr=="function"?wt.callback=mr:wt===rt(xt)&&st(xt),Ft(yr)}else st(xt);wt=rt(xt)}if(wt!==null)var Sr=!0;else{var Tr=rt($t);Tr!==null&&fr(Ht,Tr.startTime-yr),Sr=!1}return Sr}finally{wt=null,Tt=$r,Rt=!1}}var Vt=!1,qt=null,Gt=-1,Xt=5,Zt=-1;function lr(){return!(_e.unstable_now()-Ztdr||125Er?(dr.sortIndex=$r,et($t,dr),rt(xt)===null&&dr===rt($t)&&(At?(Nt(Gt),Gt=-1):At=!0,fr(Ht,$r-Er))):(dr.sortIndex=mr,et(xt,dr),It||Rt||(It=!0,hr(Wt))),dr},_e.unstable_shouldYield=lr,_e.unstable_wrapCallback=function(dr){var yr=Tt;return function(){var $r=Tt;Tt=yr;try{return dr.apply(this,arguments)}finally{Tt=$r}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(_e){function et(dr,yr){var Sr=dr.length;dr.push(yr);e:for(;0>>1,mr=dr[br];if(0>>1;brct(Mr,Sr))Orct(wr,Mr)?(dr[br]=wr,dr[Or]=Sr,br=Or):(dr[br]=Mr,dr[Tr]=Sr,br=Tr);else if(Orct(wr,Sr))dr[br]=wr,dr[Or]=Sr,br=Or;else break e}}return yr}function ct(dr,yr){var Sr=dr.sortIndex-yr.sortIndex;return Sr!==0?Sr:dr.id-yr.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ut=performance;_e.unstable_now=function(){return ut.now()}}else{var ft=Date,gt=ft.now();_e.unstable_now=function(){return ft.now()-gt}}var xt=[],$t=[],_t=1,wt=null,Tt=3,Rt=!1,It=!1,At=!1,jt=typeof setTimeout=="function"?setTimeout:null,Nt=typeof clearTimeout=="function"?clearTimeout:null,kt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ft(dr){for(var yr=rt($t);yr!==null;){if(yr.callback===null)st($t);else if(yr.startTime<=dr)st($t),yr.sortIndex=yr.expirationTime,et(xt,yr);else break;yr=rt($t)}}function Ht(dr){if(At=!1,Ft(dr),!It)if(rt(xt)!==null)It=!0,hr(Wt);else{var yr=rt($t);yr!==null&&pr(Ht,yr.startTime-dr)}}function Wt(dr,yr){It=!1,At&&(At=!1,Nt(Xt),Xt=-1),Rt=!0;var Sr=Tt;try{for(Ft(yr),wt=rt(xt);wt!==null&&(!(wt.expirationTime>yr)||dr&&!er());){var br=wt.callback;if(typeof br=="function"){wt.callback=null,Tt=wt.priorityLevel;var mr=br(wt.expirationTime<=yr);yr=_e.unstable_now(),typeof mr=="function"?wt.callback=mr:wt===rt(xt)&&st(xt),Ft(yr)}else st(xt);wt=rt(xt)}if(wt!==null)var Er=!0;else{var Tr=rt($t);Tr!==null&&pr(Ht,Tr.startTime-yr),Er=!1}return Er}finally{wt=null,Tt=Sr,Rt=!1}}var Vt=!1,qt=null,Xt=-1,Gt=5,Zt=-1;function er(){return!(_e.unstable_now()-Ztdr||125br?(dr.sortIndex=Sr,et($t,dr),rt(xt)===null&&dr===rt($t)&&(At?(Nt(Xt),Xt=-1):At=!0,pr(Ht,Sr-br))):(dr.sortIndex=mr,et(xt,dr),It||Rt||(It=!0,hr(Wt))),dr},_e.unstable_shouldYield=er,_e.unstable_wrapCallback=function(dr){var yr=Tt;return function(){var Sr=Tt;Tt=yr;try{return dr.apply(this,arguments)}finally{Tt=Sr}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -34,8 +34,8 @@ var wm=Object.defineProperty;var Tm=(_e,et,rt)=>et in _e?wm(_e,et,{enumerable:!0 `+La+_e}var Na=!1;function Oa(_e,et){if(!_e||Na)return"";Na=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(et)if(et=function(){throw Error()},Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch($t){var st=$t}Reflect.construct(_e,[],et)}else{try{et.call()}catch($t){st=$t}_e.call(et.prototype)}else{try{throw Error()}catch($t){st=$t}_e()}}catch($t){if($t&&st&&typeof $t.stack=="string"){for(var ct=$t.stack.split(` `),ut=st.stack.split(` `),ft=ct.length-1,gt=ut.length-1;1<=ft&&0<=gt&&ct[ft]!==ut[gt];)gt--;for(;1<=ft&&0<=gt;ft--,gt--)if(ct[ft]!==ut[gt]){if(ft!==1||gt!==1)do if(ft--,gt--,0>gt||ct[ft]!==ut[gt]){var xt=` -`+ct[ft].replace(" at new "," at ");return _e.displayName&&xt.includes("")&&(xt=xt.replace("",_e.displayName)),xt}while(1<=ft&&0<=gt);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(_e=_e?_e.displayName||_e.name:"")?Ma(_e):""}function Pa(_e){switch(_e.tag){case 5:return Ma(_e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return _e=Oa(_e.type,!1),_e;case 11:return _e=Oa(_e.type.render,!1),_e;case 1:return _e=Oa(_e.type,!0),_e;default:return""}}function Qa$1(_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 ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za$1:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof _e=="object")switch(_e.$$typeof){case Ca:return(_e.displayName||"Context")+".Consumer";case Ba$1:return(_e._context.displayName||"Context")+".Provider";case Da:var et=_e.render;return _e=_e.displayName,_e||(_e=et.displayName||et.name||"",_e=_e!==""?"ForwardRef("+_e+")":"ForwardRef"),_e;case Ga$1:return et=_e.displayName||null,et!==null?et:Qa$1(_e.type)||"Memo";case Ha$1:et=_e._payload,_e=_e._init;try{return Qa$1(_e(et))}catch{}}return null}function Ra(_e){var et=_e.type;switch(_e.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return _e=et.render,_e=_e.displayName||_e.name||"",et.displayName||(_e!==""?"ForwardRef("+_e+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa$1(et);case 8:return et===za$1?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(_e){switch(typeof _e){case"boolean":case"number":case"string":case"undefined":return _e;case"object":return _e;default:return""}}function Ta(_e){var et=_e.type;return(_e=_e.nodeName)&&_e.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(_e){var et=Ta(_e)?"checked":"value",rt=Object.getOwnPropertyDescriptor(_e.constructor.prototype,et),st=""+_e[et];if(!_e.hasOwnProperty(et)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var ct=rt.get,ut=rt.set;return Object.defineProperty(_e,et,{configurable:!0,get:function(){return ct.call(this)},set:function(ft){st=""+ft,ut.call(this,ft)}}),Object.defineProperty(_e,et,{enumerable:rt.enumerable}),{getValue:function(){return st},setValue:function(ft){st=""+ft},stopTracking:function(){_e._valueTracker=null,delete _e[et]}}}}function Va$1(_e){_e._valueTracker||(_e._valueTracker=Ua(_e))}function Wa(_e){if(!_e)return!1;var et=_e._valueTracker;if(!et)return!0;var rt=et.getValue(),st="";return _e&&(st=Ta(_e)?_e.checked?"true":"false":_e.value),_e=st,_e!==rt?(et.setValue(_e),!0):!1}function Xa$1(_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 Ya$1(_e,et){var rt=et.checked;return A$4({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??_e._wrapperState.initialChecked})}function Za$1(_e,et){var rt=et.defaultValue==null?"":et.defaultValue,st=et.checked!=null?et.checked:et.defaultChecked;rt=Sa(et.value!=null?et.value:rt),_e._wrapperState={initialChecked:st,initialValue:rt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab(_e,et){et=et.checked,et!=null&&ta(_e,"checked",et,!1)}function bb(_e,et){ab(_e,et);var rt=Sa(et.value),st=et.type;if(rt!=null)st==="number"?(rt===0&&_e.value===""||_e.value!=rt)&&(_e.value=""+rt):_e.value!==""+rt&&(_e.value=""+rt);else if(st==="submit"||st==="reset"){_e.removeAttribute("value");return}et.hasOwnProperty("value")?cb(_e,et.type,rt):et.hasOwnProperty("defaultValue")&&cb(_e,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(_e.defaultChecked=!!et.defaultChecked)}function db(_e,et,rt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var st=et.type;if(!(st!=="submit"&&st!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+_e._wrapperState.initialValue,rt||et===_e.value||(_e.value=et),_e.defaultValue=et}rt=_e.name,rt!==""&&(_e.name=""),_e.defaultChecked=!!_e._wrapperState.initialChecked,rt!==""&&(_e.name=rt)}function cb(_e,et,rt){(et!=="number"||Xa$1(_e.ownerDocument)!==_e)&&(rt==null?_e.defaultValue=""+_e._wrapperState.initialValue:_e.defaultValue!==""+rt&&(_e.defaultValue=""+rt))}var eb=Array.isArray;function fb(_e,et,rt,st){if(_e=_e.options,et){et={};for(var ct=0;ct"+et.valueOf().toString()+"",et=mb.firstChild;_e.firstChild;)_e.removeChild(_e.firstChild);for(;et.firstChild;)_e.appendChild(et.firstChild)}});function ob(_e,et){if(et){var rt=_e.firstChild;if(rt&&rt===_e.lastChild&&rt.nodeType===3){rt.nodeValue=et;return}}_e.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(_e){qb.forEach(function(et){et=et+_e.charAt(0).toUpperCase()+_e.substring(1),pb[et]=pb[_e]})});function rb(_e,et,rt){return et==null||typeof et=="boolean"||et===""?"":rt||typeof et!="number"||et===0||pb.hasOwnProperty(_e)&&pb[_e]?(""+et).trim():et+"px"}function sb(_e,et){_e=_e.style;for(var rt in et)if(et.hasOwnProperty(rt)){var st=rt.indexOf("--")===0,ct=rb(rt,et[rt],st);rt==="float"&&(rt="cssFloat"),st?_e.setProperty(rt,ct):_e[rt]=ct}}var tb=A$4({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 ub(_e,et){if(et){if(tb[_e]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$6(137,_e));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$6(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$6(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$6(62))}}function vb(_e,et){if(_e.indexOf("-")===-1)return typeof et.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 wb=null;function xb(_e){return _e=_e.target||_e.srcElement||window,_e.correspondingUseElement&&(_e=_e.correspondingUseElement),_e.nodeType===3?_e.parentNode:_e}var yb=null,zb=null,Ab=null;function Bb(_e){if(_e=Cb(_e)){if(typeof yb!="function")throw Error(p$6(280));var et=_e.stateNode;et&&(et=Db$1(et),yb(_e.stateNode,_e.type,et))}}function Eb(_e){zb?Ab?Ab.push(_e):Ab=[_e]:zb=_e}function Fb$1(){if(zb){var _e=zb,et=Ab;if(Ab=zb=null,Bb(_e),et)for(_e=0;_e>>=0,_e===0?32:31-(pc$1(_e)/qc|0)|0}var rc$1=64,sc=4194304;function tc$1(_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 uc(_e,et){var rt=_e.pendingLanes;if(rt===0)return 0;var st=0,ct=_e.suspendedLanes,ut=_e.pingedLanes,ft=rt&268435455;if(ft!==0){var gt=ft&~ct;gt!==0?st=tc$1(gt):(ut&=ft,ut!==0&&(st=tc$1(ut)))}else ft=rt&~ct,ft!==0?st=tc$1(ft):ut!==0&&(st=tc$1(ut));if(st===0)return 0;if(et!==0&&et!==st&&!(et&ct)&&(ct=st&-st,ut=et&-et,ct>=ut||ct===16&&(ut&4194240)!==0))return et;if(st&4&&(st|=rt&16),et=_e.entangledLanes,et!==0)for(_e=_e.entanglements,et&=st;0rt;rt++)et.push(_e);return et}function Ac$1(_e,et,rt){_e.pendingLanes|=et,et!==536870912&&(_e.suspendedLanes=0,_e.pingedLanes=0),_e=_e.eventTimes,et=31-oc(et),_e[et]=rt}function Bc$1(_e,et){var rt=_e.pendingLanes&~et;_e.pendingLanes=et,_e.suspendedLanes=0,_e.pingedLanes=0,_e.expiredLanes&=et,_e.mutableReadLanes&=et,_e.entangledLanes&=et,et=_e.entanglements;var st=_e.eventTimes;for(_e=_e.expirationTimes;0=be$2),ee=" ",fe$1=!1;function ge(_e,et){switch(_e){case"keyup":return $d$1.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(_e){return _e=_e.detail,typeof _e=="object"&&"data"in _e?_e.data:null}var ie=!1;function je(_e,et){switch(_e){case"compositionend":return he(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee);case"textInput":return _e=et.data,_e===ee&&fe$1?null:_e;default:return null}}function ke(_e,et){if(ie)return _e==="compositionend"||!ae&&ge(_e,et)?(_e=nd$1(),md=ld$1=kd=null,ie=!1,_e):null;switch(_e){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1=et)return{node:rt,offset:et-_e};_e=st}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je$1(rt)}}function Le(_e,et){return _e&&et?_e===et?!0:_e&&_e.nodeType===3?!1:et&&et.nodeType===3?Le(_e,et.parentNode):"contains"in _e?_e.contains(et):_e.compareDocumentPosition?!!(_e.compareDocumentPosition(et)&16):!1:!1}function Me$1(){for(var _e=window,et=Xa$1();et instanceof _e.HTMLIFrameElement;){try{var rt=typeof et.contentWindow.location.href=="string"}catch{rt=!1}if(rt)_e=et.contentWindow;else break;et=Xa$1(_e.document)}return et}function Ne(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et&&(et==="input"&&(_e.type==="text"||_e.type==="search"||_e.type==="tel"||_e.type==="url"||_e.type==="password")||et==="textarea"||_e.contentEditable==="true")}function Oe(_e){var et=Me$1(),rt=_e.focusedElem,st=_e.selectionRange;if(et!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(st!==null&&Ne(rt)){if(et=st.start,_e=st.end,_e===void 0&&(_e=et),"selectionStart"in rt)rt.selectionStart=et,rt.selectionEnd=Math.min(_e,rt.value.length);else if(_e=(et=rt.ownerDocument||document)&&et.defaultView||window,_e.getSelection){_e=_e.getSelection();var ct=rt.textContent.length,ut=Math.min(st.start,ct);st=st.end===void 0?ut:Math.min(st.end,ct),!_e.extend&&ut>st&&(ct=st,st=ut,ut=ct),ct=Ke(rt,ut);var ft=Ke(rt,st);ct&&ft&&(_e.rangeCount!==1||_e.anchorNode!==ct.node||_e.anchorOffset!==ct.offset||_e.focusNode!==ft.node||_e.focusOffset!==ft.offset)&&(et=et.createRange(),et.setStart(ct.node,ct.offset),_e.removeAllRanges(),ut>st?(_e.addRange(et),_e.extend(ft.node,ft.offset)):(et.setEnd(ft.node,ft.offset),_e.addRange(et)))}}for(et=[],_e=rt;_e=_e.parentNode;)_e.nodeType===1&&et.push({element:_e,left:_e.scrollLeft,top:_e.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re=null,Se$1=null,Te=!1;function Ue(_e,et,rt){var st=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te||Qe==null||Qe!==Xa$1(st)||(st=Qe,"selectionStart"in st&&Ne(st)?st={start:st.selectionStart,end:st.selectionEnd}:(st=(st.ownerDocument&&st.ownerDocument.defaultView||window).getSelection(),st={anchorNode:st.anchorNode,anchorOffset:st.anchorOffset,focusNode:st.focusNode,focusOffset:st.focusOffset}),Se$1&&Ie(Se$1,st)||(Se$1=st,st=oe(Re,"onSelect"),0Tf||(_e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(_e,et){Tf++,Sf[Tf]=_e.current,_e.current=et}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf$1=Vf;function Yf$1(_e,et){var rt=_e.type.contextTypes;if(!rt)return Vf;var st=_e.stateNode;if(st&&st.__reactInternalMemoizedUnmaskedChildContext===et)return st.__reactInternalMemoizedMaskedChildContext;var ct={},ut;for(ut in rt)ct[ut]=et[ut];return st&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=et,_e.__reactInternalMemoizedMaskedChildContext=ct),ct}function Zf$1(_e){return _e=_e.childContextTypes,_e!=null}function $f(){E$2(Wf),E$2(H$2)}function ag$1(_e,et,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,et),G$2(Wf,rt)}function bg(_e,et,rt){var st=_e.stateNode;if(et=et.childContextTypes,typeof st.getChildContext!="function")return rt;st=st.getChildContext();for(var ct in st)if(!(ct in et))throw Error(p$6(108,Ra(_e)||"Unknown",ct));return A$4({},rt,st)}function cg(_e){return _e=(_e=_e.stateNode)&&_e.__reactInternalMemoizedMergedChildContext||Vf,Xf$1=H$2.current,G$2(H$2,_e),G$2(Wf,Wf.current),!0}function dg(_e,et,rt){var st=_e.stateNode;if(!st)throw Error(p$6(169));rt?(_e=bg(_e,et,Xf$1),st.__reactInternalMemoizedMergedChildContext=_e,E$2(Wf),E$2(H$2),G$2(H$2,_e)):E$2(Wf),G$2(Wf,rt)}var eg$1=null,fg$1=!1,gg$1=!1;function hg(_e){eg$1===null?eg$1=[_e]:eg$1.push(_e)}function ig$1(_e){fg$1=!0,hg(_e)}function jg$1(){if(!gg$1&&eg$1!==null){gg$1=!0;var _e=0,et=C$1;try{var rt=eg$1;for(C$1=1;_e>=ft,ct-=ft,rg$1=1<<32-oc(et)+ct|rt<Gt?(Xt=qt,qt=null):Xt=qt.sibling;var Zt=Tt(Nt,qt,Ft[Gt],Ht);if(Zt===null){qt===null&&(qt=Xt);break}_e&&qt&&Zt.alternate===null&&et(Nt,qt),kt=ut(Zt,kt,Gt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt,qt=Xt}if(Gt===Ft.length)return rt(Nt,qt),I$3&&tg$1(Nt,Gt),Wt;if(qt===null){for(;GtGt?(Xt=qt,qt=null):Xt=qt.sibling;var lr=Tt(Nt,qt,Zt.value,Ht);if(lr===null){qt===null&&(qt=Xt);break}_e&&qt&&lr.alternate===null&&et(Nt,qt),kt=ut(lr,kt,Gt),Vt===null?Wt=lr:Vt.sibling=lr,Vt=lr,qt=Xt}if(Zt.done)return rt(Nt,qt),I$3&&tg$1(Nt,Gt),Wt;if(qt===null){for(;!Zt.done;Gt++,Zt=Ft.next())Zt=wt(Nt,Zt.value,Ht),Zt!==null&&(kt=ut(Zt,kt,Gt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt);return I$3&&tg$1(Nt,Gt),Wt}for(qt=st(Nt,qt);!Zt.done;Gt++,Zt=Ft.next())Zt=Rt(qt,Nt,Gt,Zt.value,Ht),Zt!==null&&(_e&&Zt.alternate!==null&&qt.delete(Zt.key===null?Gt:Zt.key),kt=ut(Zt,kt,Gt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt);return _e&&qt.forEach(function(er){return et(Nt,er)}),I$3&&tg$1(Nt,Gt),Wt}function jt(Nt,kt,Ft,Ht){if(typeof Ft=="object"&&Ft!==null&&Ft.type===ya&&Ft.key===null&&(Ft=Ft.props.children),typeof Ft=="object"&&Ft!==null){switch(Ft.$$typeof){case va$1:e:{for(var Wt=Ft.key,Vt=kt;Vt!==null;){if(Vt.key===Wt){if(Wt=Ft.type,Wt===ya){if(Vt.tag===7){rt(Nt,Vt.sibling),kt=ct(Vt,Ft.props.children),kt.return=Nt,Nt=kt;break e}}else if(Vt.elementType===Wt||typeof Wt=="object"&&Wt!==null&&Wt.$$typeof===Ha$1&&uh(Wt)===Vt.type){rt(Nt,Vt.sibling),kt=ct(Vt,Ft.props),kt.ref=sh(Nt,Vt,Ft),kt.return=Nt,Nt=kt;break e}rt(Nt,Vt);break}else et(Nt,Vt);Vt=Vt.sibling}Ft.type===ya?(kt=Ah(Ft.props.children,Nt.mode,Ht,Ft.key),kt.return=Nt,Nt=kt):(Ht=yh(Ft.type,Ft.key,Ft.props,null,Nt.mode,Ht),Ht.ref=sh(Nt,kt,Ft),Ht.return=Nt,Nt=Ht)}return ft(Nt);case wa:e:{for(Vt=Ft.key;kt!==null;){if(kt.key===Vt)if(kt.tag===4&&kt.stateNode.containerInfo===Ft.containerInfo&&kt.stateNode.implementation===Ft.implementation){rt(Nt,kt.sibling),kt=ct(kt,Ft.children||[]),kt.return=Nt,Nt=kt;break e}else{rt(Nt,kt);break}else et(Nt,kt);kt=kt.sibling}kt=zh$1(Ft,Nt.mode,Ht),kt.return=Nt,Nt=kt}return ft(Nt);case Ha$1:return Vt=Ft._init,jt(Nt,kt,Vt(Ft._payload),Ht)}if(eb(Ft))return It(Nt,kt,Ft,Ht);if(Ka$1(Ft))return At(Nt,kt,Ft,Ht);th(Nt,Ft)}return typeof Ft=="string"&&Ft!==""||typeof Ft=="number"?(Ft=""+Ft,kt!==null&&kt.tag===6?(rt(Nt,kt.sibling),kt=ct(kt,Ft),kt.return=Nt,Nt=kt):(rt(Nt,kt),kt=xh(Ft,Nt.mode,Ht),kt.return=Nt,Nt=kt),ft(Nt)):rt(Nt,kt)}return jt}var Bh=vh$1(!0),Ch=vh$1(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(_e){if(_e===Dh)throw Error(p$6(174));return _e}function Ih(_e,et){switch(G$2(Gh,et),G$2(Fh,_e),G$2(Eh,Dh),_e=et.nodeType,_e){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:_e=_e===8?et.parentNode:et,et=_e.namespaceURI||null,_e=_e.tagName,et=lb(et,_e)}E$2(Eh),G$2(Eh,et)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(_e){Hh(Gh.current);var et=Hh(Eh.current),rt=lb(et,_e.type);et!==rt&&(G$2(Fh,_e),G$2(Eh,rt))}function Lh(_e){Fh.current===_e&&(E$2(Eh),E$2(Fh))}var M$3=Uf(0);function Mh(_e){for(var et=_e;et!==null;){if(et.tag===13){var rt=et.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var _e=0;_ert?rt:4,_e(!0);var st=Qh.transition;Qh.transition={};try{_e(!1),et()}finally{C$1=rt,Qh.transition=st}}function Fi$1(){return di().memoizedState}function Gi(_e,et,rt){var st=lh(_e);if(rt={lane:st,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(_e))Ii(et,rt);else if(rt=Yg(_e,et,rt,st),rt!==null){var ct=L$2();mh(rt,_e,st,ct),Ji(rt,et,st)}}function ri$1(_e,et,rt){var st=lh(_e),ct={lane:st,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(_e))Ii(et,ct);else{var ut=_e.alternate;if(_e.lanes===0&&(ut===null||ut.lanes===0)&&(ut=et.lastRenderedReducer,ut!==null))try{var ft=et.lastRenderedState,gt=ut(ft,rt);if(ct.hasEagerState=!0,ct.eagerState=gt,He(gt,ft)){var xt=et.interleaved;xt===null?(ct.next=ct,Xg(et)):(ct.next=xt.next,xt.next=ct),et.interleaved=ct;return}}catch{}finally{}rt=Yg(_e,et,ct,st),rt!==null&&(ct=L$2(),mh(rt,_e,st,ct),Ji(rt,et,st))}}function Hi(_e){var et=_e.alternate;return _e===N$2||et!==null&&et===N$2}function Ii(_e,et){Th=Sh=!0;var rt=_e.pending;rt===null?et.next=et:(et.next=rt.next,rt.next=et),_e.pending=et}function Ji(_e,et,rt){if(rt&4194240){var st=et.lanes;st&=_e.pendingLanes,rt|=st,et.lanes=rt,Cc$1(_e,rt)}}var ai={readContext:Vg$1,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg$1,useCallback:function(_e,et){return ci$1().memoizedState=[_e,et===void 0?null:et],_e},useContext:Vg$1,useEffect:vi,useImperativeHandle:function(_e,et,rt){return rt=rt!=null?rt.concat([_e]):null,ti$1(4194308,4,yi.bind(null,et,_e),rt)},useLayoutEffect:function(_e,et){return ti$1(4194308,4,_e,et)},useInsertionEffect:function(_e,et){return ti$1(4,2,_e,et)},useMemo:function(_e,et){var rt=ci$1();return et=et===void 0?null:et,_e=_e(),rt.memoizedState=[_e,et],_e},useReducer:function(_e,et,rt){var st=ci$1();return et=rt!==void 0?rt(et):et,st.memoizedState=st.baseState=et,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_e,lastRenderedState:et},st.queue=_e,_e=_e.dispatch=Gi.bind(null,N$2,_e),[st.memoizedState,_e]},useRef:function(_e){var et=ci$1();return _e={current:_e},et.memoizedState=_e},useState:qi$1,useDebugValue:Ai,useDeferredValue:function(_e){return ci$1().memoizedState=_e},useTransition:function(){var _e=qi$1(!1),et=_e[0];return _e=Ei.bind(null,_e[1]),ci$1().memoizedState=_e,[et,_e]},useMutableSource:function(){},useSyncExternalStore:function(_e,et,rt){var st=N$2,ct=ci$1();if(I$3){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=et(),R$3===null)throw Error(p$6(349));Rh&30||ni$1(st,et,rt)}ct.memoizedState=rt;var ut={value:rt,getSnapshot:et};return ct.queue=ut,vi(ki.bind(null,st,ut,_e),[_e]),st.flags|=2048,li$1(9,mi.bind(null,st,ut,rt,et),void 0,null),rt},useId:function(){var _e=ci$1(),et=R$3.identifierPrefix;if(I$3){var rt=sg$1,st=rg$1;rt=(st&~(1<<32-oc(st)-1)).toString(32)+rt,et=":"+et+"R"+rt,rt=Uh++,0")&&(xt=xt.replace("",_e.displayName)),xt}while(1<=ft&&0<=gt);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(_e=_e?_e.displayName||_e.name:"")?Ma(_e):""}function Pa(_e){switch(_e.tag){case 5:return Ma(_e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return _e=Oa(_e.type,!1),_e;case 11:return _e=Oa(_e.type.render,!1),_e;case 1:return _e=Oa(_e.type,!0),_e;default:return""}}function Qa$1(_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 ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za$1:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof _e=="object")switch(_e.$$typeof){case Ca:return(_e.displayName||"Context")+".Consumer";case Ba$1:return(_e._context.displayName||"Context")+".Provider";case Da:var et=_e.render;return _e=_e.displayName,_e||(_e=et.displayName||et.name||"",_e=_e!==""?"ForwardRef("+_e+")":"ForwardRef"),_e;case Ga$1:return et=_e.displayName||null,et!==null?et:Qa$1(_e.type)||"Memo";case Ha$1:et=_e._payload,_e=_e._init;try{return Qa$1(_e(et))}catch{}}return null}function Ra(_e){var et=_e.type;switch(_e.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return _e=et.render,_e=_e.displayName||_e.name||"",et.displayName||(_e!==""?"ForwardRef("+_e+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa$1(et);case 8:return et===za$1?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(_e){switch(typeof _e){case"boolean":case"number":case"string":case"undefined":return _e;case"object":return _e;default:return""}}function Ta(_e){var et=_e.type;return(_e=_e.nodeName)&&_e.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(_e){var et=Ta(_e)?"checked":"value",rt=Object.getOwnPropertyDescriptor(_e.constructor.prototype,et),st=""+_e[et];if(!_e.hasOwnProperty(et)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var ct=rt.get,ut=rt.set;return Object.defineProperty(_e,et,{configurable:!0,get:function(){return ct.call(this)},set:function(ft){st=""+ft,ut.call(this,ft)}}),Object.defineProperty(_e,et,{enumerable:rt.enumerable}),{getValue:function(){return st},setValue:function(ft){st=""+ft},stopTracking:function(){_e._valueTracker=null,delete _e[et]}}}}function Va$1(_e){_e._valueTracker||(_e._valueTracker=Ua(_e))}function Wa(_e){if(!_e)return!1;var et=_e._valueTracker;if(!et)return!0;var rt=et.getValue(),st="";return _e&&(st=Ta(_e)?_e.checked?"true":"false":_e.value),_e=st,_e!==rt?(et.setValue(_e),!0):!1}function Xa$1(_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 Ya$1(_e,et){var rt=et.checked;return A$4({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??_e._wrapperState.initialChecked})}function Za$1(_e,et){var rt=et.defaultValue==null?"":et.defaultValue,st=et.checked!=null?et.checked:et.defaultChecked;rt=Sa(et.value!=null?et.value:rt),_e._wrapperState={initialChecked:st,initialValue:rt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab(_e,et){et=et.checked,et!=null&&ta(_e,"checked",et,!1)}function bb(_e,et){ab(_e,et);var rt=Sa(et.value),st=et.type;if(rt!=null)st==="number"?(rt===0&&_e.value===""||_e.value!=rt)&&(_e.value=""+rt):_e.value!==""+rt&&(_e.value=""+rt);else if(st==="submit"||st==="reset"){_e.removeAttribute("value");return}et.hasOwnProperty("value")?cb(_e,et.type,rt):et.hasOwnProperty("defaultValue")&&cb(_e,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(_e.defaultChecked=!!et.defaultChecked)}function db(_e,et,rt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var st=et.type;if(!(st!=="submit"&&st!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+_e._wrapperState.initialValue,rt||et===_e.value||(_e.value=et),_e.defaultValue=et}rt=_e.name,rt!==""&&(_e.name=""),_e.defaultChecked=!!_e._wrapperState.initialChecked,rt!==""&&(_e.name=rt)}function cb(_e,et,rt){(et!=="number"||Xa$1(_e.ownerDocument)!==_e)&&(rt==null?_e.defaultValue=""+_e._wrapperState.initialValue:_e.defaultValue!==""+rt&&(_e.defaultValue=""+rt))}var eb=Array.isArray;function fb(_e,et,rt,st){if(_e=_e.options,et){et={};for(var ct=0;ct"+et.valueOf().toString()+"",et=mb.firstChild;_e.firstChild;)_e.removeChild(_e.firstChild);for(;et.firstChild;)_e.appendChild(et.firstChild)}});function ob(_e,et){if(et){var rt=_e.firstChild;if(rt&&rt===_e.lastChild&&rt.nodeType===3){rt.nodeValue=et;return}}_e.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(_e){qb.forEach(function(et){et=et+_e.charAt(0).toUpperCase()+_e.substring(1),pb[et]=pb[_e]})});function rb(_e,et,rt){return et==null||typeof et=="boolean"||et===""?"":rt||typeof et!="number"||et===0||pb.hasOwnProperty(_e)&&pb[_e]?(""+et).trim():et+"px"}function sb(_e,et){_e=_e.style;for(var rt in et)if(et.hasOwnProperty(rt)){var st=rt.indexOf("--")===0,ct=rb(rt,et[rt],st);rt==="float"&&(rt="cssFloat"),st?_e.setProperty(rt,ct):_e[rt]=ct}}var tb=A$4({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 ub(_e,et){if(et){if(tb[_e]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$6(137,_e));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$6(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$6(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$6(62))}}function vb(_e,et){if(_e.indexOf("-")===-1)return typeof et.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 wb=null;function xb(_e){return _e=_e.target||_e.srcElement||window,_e.correspondingUseElement&&(_e=_e.correspondingUseElement),_e.nodeType===3?_e.parentNode:_e}var yb=null,zb=null,Ab=null;function Bb(_e){if(_e=Cb(_e)){if(typeof yb!="function")throw Error(p$6(280));var et=_e.stateNode;et&&(et=Db$1(et),yb(_e.stateNode,_e.type,et))}}function Eb(_e){zb?Ab?Ab.push(_e):Ab=[_e]:zb=_e}function Fb$1(){if(zb){var _e=zb,et=Ab;if(Ab=zb=null,Bb(_e),et)for(_e=0;_e>>=0,_e===0?32:31-(pc$1(_e)/qc|0)|0}var rc$1=64,sc=4194304;function tc$1(_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 uc(_e,et){var rt=_e.pendingLanes;if(rt===0)return 0;var st=0,ct=_e.suspendedLanes,ut=_e.pingedLanes,ft=rt&268435455;if(ft!==0){var gt=ft&~ct;gt!==0?st=tc$1(gt):(ut&=ft,ut!==0&&(st=tc$1(ut)))}else ft=rt&~ct,ft!==0?st=tc$1(ft):ut!==0&&(st=tc$1(ut));if(st===0)return 0;if(et!==0&&et!==st&&!(et&ct)&&(ct=st&-st,ut=et&-et,ct>=ut||ct===16&&(ut&4194240)!==0))return et;if(st&4&&(st|=rt&16),et=_e.entangledLanes,et!==0)for(_e=_e.entanglements,et&=st;0rt;rt++)et.push(_e);return et}function Ac$1(_e,et,rt){_e.pendingLanes|=et,et!==536870912&&(_e.suspendedLanes=0,_e.pingedLanes=0),_e=_e.eventTimes,et=31-oc(et),_e[et]=rt}function Bc$1(_e,et){var rt=_e.pendingLanes&~et;_e.pendingLanes=et,_e.suspendedLanes=0,_e.pingedLanes=0,_e.expiredLanes&=et,_e.mutableReadLanes&=et,_e.entangledLanes&=et,et=_e.entanglements;var st=_e.eventTimes;for(_e=_e.expirationTimes;0=be$2),ee=" ",fe$1=!1;function ge(_e,et){switch(_e){case"keyup":return $d$1.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(_e){return _e=_e.detail,typeof _e=="object"&&"data"in _e?_e.data:null}var ie=!1;function je(_e,et){switch(_e){case"compositionend":return he(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee);case"textInput":return _e=et.data,_e===ee&&fe$1?null:_e;default:return null}}function ke(_e,et){if(ie)return _e==="compositionend"||!ae&&ge(_e,et)?(_e=nd$1(),md=ld$1=kd=null,ie=!1,_e):null;switch(_e){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1=et)return{node:rt,offset:et-_e};_e=st}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je$1(rt)}}function Le(_e,et){return _e&&et?_e===et?!0:_e&&_e.nodeType===3?!1:et&&et.nodeType===3?Le(_e,et.parentNode):"contains"in _e?_e.contains(et):_e.compareDocumentPosition?!!(_e.compareDocumentPosition(et)&16):!1:!1}function Me$1(){for(var _e=window,et=Xa$1();et instanceof _e.HTMLIFrameElement;){try{var rt=typeof et.contentWindow.location.href=="string"}catch{rt=!1}if(rt)_e=et.contentWindow;else break;et=Xa$1(_e.document)}return et}function Ne(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et&&(et==="input"&&(_e.type==="text"||_e.type==="search"||_e.type==="tel"||_e.type==="url"||_e.type==="password")||et==="textarea"||_e.contentEditable==="true")}function Oe(_e){var et=Me$1(),rt=_e.focusedElem,st=_e.selectionRange;if(et!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(st!==null&&Ne(rt)){if(et=st.start,_e=st.end,_e===void 0&&(_e=et),"selectionStart"in rt)rt.selectionStart=et,rt.selectionEnd=Math.min(_e,rt.value.length);else if(_e=(et=rt.ownerDocument||document)&&et.defaultView||window,_e.getSelection){_e=_e.getSelection();var ct=rt.textContent.length,ut=Math.min(st.start,ct);st=st.end===void 0?ut:Math.min(st.end,ct),!_e.extend&&ut>st&&(ct=st,st=ut,ut=ct),ct=Ke(rt,ut);var ft=Ke(rt,st);ct&&ft&&(_e.rangeCount!==1||_e.anchorNode!==ct.node||_e.anchorOffset!==ct.offset||_e.focusNode!==ft.node||_e.focusOffset!==ft.offset)&&(et=et.createRange(),et.setStart(ct.node,ct.offset),_e.removeAllRanges(),ut>st?(_e.addRange(et),_e.extend(ft.node,ft.offset)):(et.setEnd(ft.node,ft.offset),_e.addRange(et)))}}for(et=[],_e=rt;_e=_e.parentNode;)_e.nodeType===1&&et.push({element:_e,left:_e.scrollLeft,top:_e.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re=null,Se$1=null,Te=!1;function Ue(_e,et,rt){var st=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te||Qe==null||Qe!==Xa$1(st)||(st=Qe,"selectionStart"in st&&Ne(st)?st={start:st.selectionStart,end:st.selectionEnd}:(st=(st.ownerDocument&&st.ownerDocument.defaultView||window).getSelection(),st={anchorNode:st.anchorNode,anchorOffset:st.anchorOffset,focusNode:st.focusNode,focusOffset:st.focusOffset}),Se$1&&Ie(Se$1,st)||(Se$1=st,st=oe(Re,"onSelect"),0Tf||(_e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(_e,et){Tf++,Sf[Tf]=_e.current,_e.current=et}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf$1=Vf;function Yf$1(_e,et){var rt=_e.type.contextTypes;if(!rt)return Vf;var st=_e.stateNode;if(st&&st.__reactInternalMemoizedUnmaskedChildContext===et)return st.__reactInternalMemoizedMaskedChildContext;var ct={},ut;for(ut in rt)ct[ut]=et[ut];return st&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=et,_e.__reactInternalMemoizedMaskedChildContext=ct),ct}function Zf$1(_e){return _e=_e.childContextTypes,_e!=null}function $f(){E$2(Wf),E$2(H$2)}function ag$1(_e,et,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,et),G$2(Wf,rt)}function bg(_e,et,rt){var st=_e.stateNode;if(et=et.childContextTypes,typeof st.getChildContext!="function")return rt;st=st.getChildContext();for(var ct in st)if(!(ct in et))throw Error(p$6(108,Ra(_e)||"Unknown",ct));return A$4({},rt,st)}function cg(_e){return _e=(_e=_e.stateNode)&&_e.__reactInternalMemoizedMergedChildContext||Vf,Xf$1=H$2.current,G$2(H$2,_e),G$2(Wf,Wf.current),!0}function dg(_e,et,rt){var st=_e.stateNode;if(!st)throw Error(p$6(169));rt?(_e=bg(_e,et,Xf$1),st.__reactInternalMemoizedMergedChildContext=_e,E$2(Wf),E$2(H$2),G$2(H$2,_e)):E$2(Wf),G$2(Wf,rt)}var eg$1=null,fg$1=!1,gg$1=!1;function hg(_e){eg$1===null?eg$1=[_e]:eg$1.push(_e)}function ig$1(_e){fg$1=!0,hg(_e)}function jg$1(){if(!gg$1&&eg$1!==null){gg$1=!0;var _e=0,et=C$1;try{var rt=eg$1;for(C$1=1;_e>=ft,ct-=ft,rg$1=1<<32-oc(et)+ct|rt<Xt?(Gt=qt,qt=null):Gt=qt.sibling;var Zt=Tt(Nt,qt,Ft[Xt],Ht);if(Zt===null){qt===null&&(qt=Gt);break}_e&&qt&&Zt.alternate===null&&et(Nt,qt),kt=ut(Zt,kt,Xt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt,qt=Gt}if(Xt===Ft.length)return rt(Nt,qt),I$3&&tg$1(Nt,Xt),Wt;if(qt===null){for(;XtXt?(Gt=qt,qt=null):Gt=qt.sibling;var er=Tt(Nt,qt,Zt.value,Ht);if(er===null){qt===null&&(qt=Gt);break}_e&&qt&&er.alternate===null&&et(Nt,qt),kt=ut(er,kt,Xt),Vt===null?Wt=er:Vt.sibling=er,Vt=er,qt=Gt}if(Zt.done)return rt(Nt,qt),I$3&&tg$1(Nt,Xt),Wt;if(qt===null){for(;!Zt.done;Xt++,Zt=Ft.next())Zt=wt(Nt,Zt.value,Ht),Zt!==null&&(kt=ut(Zt,kt,Xt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt);return I$3&&tg$1(Nt,Xt),Wt}for(qt=st(Nt,qt);!Zt.done;Xt++,Zt=Ft.next())Zt=Rt(qt,Nt,Xt,Zt.value,Ht),Zt!==null&&(_e&&Zt.alternate!==null&&qt.delete(Zt.key===null?Xt:Zt.key),kt=ut(Zt,kt,Xt),Vt===null?Wt=Zt:Vt.sibling=Zt,Vt=Zt);return _e&&qt.forEach(function(lr){return et(Nt,lr)}),I$3&&tg$1(Nt,Xt),Wt}function jt(Nt,kt,Ft,Ht){if(typeof Ft=="object"&&Ft!==null&&Ft.type===ya&&Ft.key===null&&(Ft=Ft.props.children),typeof Ft=="object"&&Ft!==null){switch(Ft.$$typeof){case va$1:e:{for(var Wt=Ft.key,Vt=kt;Vt!==null;){if(Vt.key===Wt){if(Wt=Ft.type,Wt===ya){if(Vt.tag===7){rt(Nt,Vt.sibling),kt=ct(Vt,Ft.props.children),kt.return=Nt,Nt=kt;break e}}else if(Vt.elementType===Wt||typeof Wt=="object"&&Wt!==null&&Wt.$$typeof===Ha$1&&uh(Wt)===Vt.type){rt(Nt,Vt.sibling),kt=ct(Vt,Ft.props),kt.ref=sh(Nt,Vt,Ft),kt.return=Nt,Nt=kt;break e}rt(Nt,Vt);break}else et(Nt,Vt);Vt=Vt.sibling}Ft.type===ya?(kt=Ah(Ft.props.children,Nt.mode,Ht,Ft.key),kt.return=Nt,Nt=kt):(Ht=yh(Ft.type,Ft.key,Ft.props,null,Nt.mode,Ht),Ht.ref=sh(Nt,kt,Ft),Ht.return=Nt,Nt=Ht)}return ft(Nt);case wa:e:{for(Vt=Ft.key;kt!==null;){if(kt.key===Vt)if(kt.tag===4&&kt.stateNode.containerInfo===Ft.containerInfo&&kt.stateNode.implementation===Ft.implementation){rt(Nt,kt.sibling),kt=ct(kt,Ft.children||[]),kt.return=Nt,Nt=kt;break e}else{rt(Nt,kt);break}else et(Nt,kt);kt=kt.sibling}kt=zh$1(Ft,Nt.mode,Ht),kt.return=Nt,Nt=kt}return ft(Nt);case Ha$1:return Vt=Ft._init,jt(Nt,kt,Vt(Ft._payload),Ht)}if(eb(Ft))return It(Nt,kt,Ft,Ht);if(Ka$1(Ft))return At(Nt,kt,Ft,Ht);th(Nt,Ft)}return typeof Ft=="string"&&Ft!==""||typeof Ft=="number"?(Ft=""+Ft,kt!==null&&kt.tag===6?(rt(Nt,kt.sibling),kt=ct(kt,Ft),kt.return=Nt,Nt=kt):(rt(Nt,kt),kt=xh(Ft,Nt.mode,Ht),kt.return=Nt,Nt=kt),ft(Nt)):rt(Nt,kt)}return jt}var Bh=vh$1(!0),Ch=vh$1(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(_e){if(_e===Dh)throw Error(p$6(174));return _e}function Ih(_e,et){switch(G$2(Gh,et),G$2(Fh,_e),G$2(Eh,Dh),_e=et.nodeType,_e){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:_e=_e===8?et.parentNode:et,et=_e.namespaceURI||null,_e=_e.tagName,et=lb(et,_e)}E$2(Eh),G$2(Eh,et)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(_e){Hh(Gh.current);var et=Hh(Eh.current),rt=lb(et,_e.type);et!==rt&&(G$2(Fh,_e),G$2(Eh,rt))}function Lh(_e){Fh.current===_e&&(E$2(Eh),E$2(Fh))}var M$3=Uf(0);function Mh(_e){for(var et=_e;et!==null;){if(et.tag===13){var rt=et.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var _e=0;_ert?rt:4,_e(!0);var st=Qh.transition;Qh.transition={};try{_e(!1),et()}finally{C$1=rt,Qh.transition=st}}function Fi$1(){return di().memoizedState}function Gi(_e,et,rt){var st=lh(_e);if(rt={lane:st,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(_e))Ii(et,rt);else if(rt=Yg(_e,et,rt,st),rt!==null){var ct=L$2();mh(rt,_e,st,ct),Ji(rt,et,st)}}function ri$1(_e,et,rt){var st=lh(_e),ct={lane:st,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(_e))Ii(et,ct);else{var ut=_e.alternate;if(_e.lanes===0&&(ut===null||ut.lanes===0)&&(ut=et.lastRenderedReducer,ut!==null))try{var ft=et.lastRenderedState,gt=ut(ft,rt);if(ct.hasEagerState=!0,ct.eagerState=gt,He(gt,ft)){var xt=et.interleaved;xt===null?(ct.next=ct,Xg(et)):(ct.next=xt.next,xt.next=ct),et.interleaved=ct;return}}catch{}finally{}rt=Yg(_e,et,ct,st),rt!==null&&(ct=L$2(),mh(rt,_e,st,ct),Ji(rt,et,st))}}function Hi(_e){var et=_e.alternate;return _e===N$2||et!==null&&et===N$2}function Ii(_e,et){Th=Sh=!0;var rt=_e.pending;rt===null?et.next=et:(et.next=rt.next,rt.next=et),_e.pending=et}function Ji(_e,et,rt){if(rt&4194240){var st=et.lanes;st&=_e.pendingLanes,rt|=st,et.lanes=rt,Cc$1(_e,rt)}}var ai={readContext:Vg$1,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg$1,useCallback:function(_e,et){return ci$1().memoizedState=[_e,et===void 0?null:et],_e},useContext:Vg$1,useEffect:vi,useImperativeHandle:function(_e,et,rt){return rt=rt!=null?rt.concat([_e]):null,ti$1(4194308,4,yi.bind(null,et,_e),rt)},useLayoutEffect:function(_e,et){return ti$1(4194308,4,_e,et)},useInsertionEffect:function(_e,et){return ti$1(4,2,_e,et)},useMemo:function(_e,et){var rt=ci$1();return et=et===void 0?null:et,_e=_e(),rt.memoizedState=[_e,et],_e},useReducer:function(_e,et,rt){var st=ci$1();return et=rt!==void 0?rt(et):et,st.memoizedState=st.baseState=et,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_e,lastRenderedState:et},st.queue=_e,_e=_e.dispatch=Gi.bind(null,N$2,_e),[st.memoizedState,_e]},useRef:function(_e){var et=ci$1();return _e={current:_e},et.memoizedState=_e},useState:qi$1,useDebugValue:Ai,useDeferredValue:function(_e){return ci$1().memoizedState=_e},useTransition:function(){var _e=qi$1(!1),et=_e[0];return _e=Ei.bind(null,_e[1]),ci$1().memoizedState=_e,[et,_e]},useMutableSource:function(){},useSyncExternalStore:function(_e,et,rt){var st=N$2,ct=ci$1();if(I$3){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=et(),R$3===null)throw Error(p$6(349));Rh&30||ni$1(st,et,rt)}ct.memoizedState=rt;var ut={value:rt,getSnapshot:et};return ct.queue=ut,vi(ki.bind(null,st,ut,_e),[_e]),st.flags|=2048,li$1(9,mi.bind(null,st,ut,rt,et),void 0,null),rt},useId:function(){var _e=ci$1(),et=R$3.identifierPrefix;if(I$3){var rt=sg$1,st=rg$1;rt=(st&~(1<<32-oc(st)-1)).toString(32)+rt,et=":"+et+"R"+rt,rt=Uh++,0<\/script>",_e=_e.removeChild(_e.firstChild)):typeof st.is=="string"?_e=ft.createElement(rt,{is:st.is}):(_e=ft.createElement(rt),rt==="select"&&(ft=_e,st.multiple?ft.multiple=!0:st.size&&(ft.size=st.size))):_e=ft.createElementNS(_e,rt),_e[Of]=et,_e[Pf]=st,Aj(_e,et,!1,!1),et.stateNode=_e;e:{switch(ft=vb(rt,st),rt){case"dialog":D$2("cancel",_e),D$2("close",_e),ct=st;break;case"iframe":case"object":case"embed":D$2("load",_e),ct=st;break;case"video":case"audio":for(ct=0;ctHj&&(et.flags|=128,st=!0,Ej(ut,!1),et.lanes=4194304)}else{if(!st)if(_e=Mh(ft),_e!==null){if(et.flags|=128,st=!0,rt=_e.updateQueue,rt!==null&&(et.updateQueue=rt,et.flags|=4),Ej(ut,!0),ut.tail===null&&ut.tailMode==="hidden"&&!ft.alternate&&!I$3)return S$2(et),null}else 2*B$4()-ut.renderingStartTime>Hj&&rt!==1073741824&&(et.flags|=128,st=!0,Ej(ut,!1),et.lanes=4194304);ut.isBackwards?(ft.sibling=et.child,et.child=ft):(rt=ut.last,rt!==null?rt.sibling=ft:et.child=ft,ut.last=ft)}return ut.tail!==null?(et=ut.tail,ut.rendering=et,ut.tail=et.sibling,ut.renderingStartTime=B$4(),et.sibling=null,rt=M$3.current,G$2(M$3,st?rt&1|2:rt&1),et):(S$2(et),null);case 22:case 23:return Ij(),st=et.memoizedState!==null,_e!==null&&_e.memoizedState!==null!==st&&(et.flags|=8192),st&&et.mode&1?gj&1073741824&&(S$2(et),et.subtreeFlags&6&&(et.flags|=8192)):S$2(et),null;case 24:return null;case 25:return null}throw Error(p$6(156,et.tag))}function Jj(_e,et){switch(wg(et),et.tag){case 1:return Zf$1(et.type)&&$f(),_e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),_e=et.flags,_e&65536&&!(_e&128)?(et.flags=_e&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$2(M$3),_e=et.memoizedState,_e!==null&&_e.dehydrated!==null){if(et.alternate===null)throw Error(p$6(340));Ig()}return _e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 19:return E$2(M$3),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(_e,et){var rt=_e.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(st){W$1(_e,et,st)}else rt.current=null}function Nj(_e,et,rt){try{rt()}catch(st){W$1(_e,et,st)}}var Oj=!1;function Pj(_e,et){if(Cf=dd$1,_e=Me$1(),Ne(_e)){if("selectionStart"in _e)var rt={start:_e.selectionStart,end:_e.selectionEnd};else e:{rt=(rt=_e.ownerDocument)&&rt.defaultView||window;var st=rt.getSelection&&rt.getSelection();if(st&&st.rangeCount!==0){rt=st.anchorNode;var ct=st.anchorOffset,ut=st.focusNode;st=st.focusOffset;try{rt.nodeType,ut.nodeType}catch{rt=null;break e}var ft=0,gt=-1,xt=-1,$t=0,_t=0,wt=_e,Tt=null;t:for(;;){for(var Rt;wt!==rt||ct!==0&&wt.nodeType!==3||(gt=ft+ct),wt!==ut||st!==0&&wt.nodeType!==3||(xt=ft+st),wt.nodeType===3&&(ft+=wt.nodeValue.length),(Rt=wt.firstChild)!==null;)Tt=wt,wt=Rt;for(;;){if(wt===_e)break t;if(Tt===rt&&++$t===ct&&(gt=ft),Tt===ut&&++_t===st&&(xt=ft),(Rt=wt.nextSibling)!==null)break;wt=Tt,Tt=wt.parentNode}wt=Rt}rt=gt===-1||xt===-1?null:{start:gt,end:xt}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:_e,selectionRange:rt},dd$1=!1,V$1=et;V$1!==null;)if(et=V$1,_e=et.child,(et.subtreeFlags&1028)!==0&&_e!==null)_e.return=et,V$1=_e;else for(;V$1!==null;){et=V$1;try{var It=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(It!==null){var At=It.memoizedProps,jt=It.memoizedState,Nt=et.stateNode,kt=Nt.getSnapshotBeforeUpdate(et.elementType===et.type?At:Lg(et.type,At),jt);Nt.__reactInternalSnapshotBeforeUpdate=kt}break;case 3:var Ft=et.stateNode.containerInfo;Ft.nodeType===1?Ft.textContent="":Ft.nodeType===9&&Ft.documentElement&&Ft.removeChild(Ft.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$6(163))}}catch(Ht){W$1(et,et.return,Ht)}if(_e=et.sibling,_e!==null){_e.return=et.return,V$1=_e;break}V$1=et.return}return It=Oj,Oj=!1,It}function Qj(_e,et,rt){var st=et.updateQueue;if(st=st!==null?st.lastEffect:null,st!==null){var ct=st=st.next;do{if((ct.tag&_e)===_e){var ut=ct.destroy;ct.destroy=void 0,ut!==void 0&&Nj(et,rt,ut)}ct=ct.next}while(ct!==st)}}function Rj(_e,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var rt=et=et.next;do{if((rt.tag&_e)===_e){var st=rt.create;rt.destroy=st()}rt=rt.next}while(rt!==et)}}function Sj(_e){var et=_e.ref;if(et!==null){var rt=_e.stateNode;switch(_e.tag){case 5:_e=rt;break;default:_e=rt}typeof et=="function"?et(_e):et.current=_e}}function Tj(_e){var et=_e.alternate;et!==null&&(_e.alternate=null,Tj(et)),_e.child=null,_e.deletions=null,_e.sibling=null,_e.tag===5&&(et=_e.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf$1],delete et[Rf])),_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 Uj(_e){return _e.tag===5||_e.tag===3||_e.tag===4}function Vj(_e){e:for(;;){for(;_e.sibling===null;){if(_e.return===null||Uj(_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 Wj(_e,et,rt){var st=_e.tag;if(st===5||st===6)_e=_e.stateNode,et?rt.nodeType===8?rt.parentNode.insertBefore(_e,et):rt.insertBefore(_e,et):(rt.nodeType===8?(et=rt.parentNode,et.insertBefore(_e,rt)):(et=rt,et.appendChild(_e)),rt=rt._reactRootContainer,rt!=null||et.onclick!==null||(et.onclick=Bf));else if(st!==4&&(_e=_e.child,_e!==null))for(Wj(_e,et,rt),_e=_e.sibling;_e!==null;)Wj(_e,et,rt),_e=_e.sibling}function Xj(_e,et,rt){var st=_e.tag;if(st===5||st===6)_e=_e.stateNode,et?rt.insertBefore(_e,et):rt.appendChild(_e);else if(st!==4&&(_e=_e.child,_e!==null))for(Xj(_e,et,rt),_e=_e.sibling;_e!==null;)Xj(_e,et,rt),_e=_e.sibling}var X$2=null,Yj=!1;function Zj(_e,et,rt){for(rt=rt.child;rt!==null;)ak(_e,et,rt),rt=rt.sibling}function ak(_e,et,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc$1,rt)}catch{}switch(rt.tag){case 5:U$2||Mj(rt,et);case 6:var st=X$2,ct=Yj;X$2=null,Zj(_e,et,rt),X$2=st,Yj=ct,X$2!==null&&(Yj?(_e=X$2,rt=rt.stateNode,_e.nodeType===8?_e.parentNode.removeChild(rt):_e.removeChild(rt)):X$2.removeChild(rt.stateNode));break;case 18:X$2!==null&&(Yj?(_e=X$2,rt=rt.stateNode,_e.nodeType===8?Kf$1(_e.parentNode,rt):_e.nodeType===1&&Kf$1(_e,rt),bd(_e)):Kf$1(X$2,rt.stateNode));break;case 4:st=X$2,ct=Yj,X$2=rt.stateNode.containerInfo,Yj=!0,Zj(_e,et,rt),X$2=st,Yj=ct;break;case 0:case 11:case 14:case 15:if(!U$2&&(st=rt.updateQueue,st!==null&&(st=st.lastEffect,st!==null))){ct=st=st.next;do{var ut=ct,ft=ut.destroy;ut=ut.tag,ft!==void 0&&(ut&2||ut&4)&&Nj(rt,et,ft),ct=ct.next}while(ct!==st)}Zj(_e,et,rt);break;case 1:if(!U$2&&(Mj(rt,et),st=rt.stateNode,typeof st.componentWillUnmount=="function"))try{st.props=rt.memoizedProps,st.state=rt.memoizedState,st.componentWillUnmount()}catch(gt){W$1(rt,et,gt)}Zj(_e,et,rt);break;case 21:Zj(_e,et,rt);break;case 22:rt.mode&1?(U$2=(st=U$2)||rt.memoizedState!==null,Zj(_e,et,rt),U$2=st):Zj(_e,et,rt);break;default:Zj(_e,et,rt)}}function bk(_e){var et=_e.updateQueue;if(et!==null){_e.updateQueue=null;var rt=_e.stateNode;rt===null&&(rt=_e.stateNode=new Lj),et.forEach(function(st){var ct=ck.bind(null,_e,st);rt.has(st)||(rt.add(st),st.then(ct,ct))})}}function dk(_e,et){var rt=et.deletions;if(rt!==null)for(var st=0;stct&&(ct=ft),st&=~ut}if(st=ct,st=B$4()-st,st=(120>st?120:480>st?480:1080>st?1080:1920>st?1920:3e3>st?3e3:4320>st?4320:1960*mk(st/1960))-st,10_e?16:_e,xk===null)var st=!1;else{if(_e=xk,xk=null,yk=0,K&6)throw Error(p$6(331));var ct=K;for(K|=4,V$1=_e.current;V$1!==null;){var ut=V$1,ft=ut.child;if(V$1.flags&16){var gt=ut.deletions;if(gt!==null){for(var xt=0;xtB$4()-gk?Lk(_e,0):sk|=rt),Ek(_e,et)}function Zk(_e,et){et===0&&(_e.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var rt=L$2();_e=Zg(_e,et),_e!==null&&(Ac$1(_e,et,rt),Ek(_e,rt))}function vj(_e){var et=_e.memoizedState,rt=0;et!==null&&(rt=et.retryLane),Zk(_e,rt)}function ck(_e,et){var rt=0;switch(_e.tag){case 13:var st=_e.stateNode,ct=_e.memoizedState;ct!==null&&(rt=ct.retryLane);break;case 19:st=_e.stateNode;break;default:throw Error(p$6(314))}st!==null&&st.delete(et),Zk(_e,rt)}var Wk;Wk=function(_e,et,rt){if(_e!==null)if(_e.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(_e.lanes&rt)&&!(et.flags&128))return Ug=!1,zj(_e,et,rt);Ug=!!(_e.flags&131072)}else Ug=!1,I$3&&et.flags&1048576&&ug$1(et,ng$1,et.index);switch(et.lanes=0,et.tag){case 2:var st=et.type;jj(_e,et),_e=et.pendingProps;var ct=Yf$1(et,H$2.current);Tg(et,rt),ct=Xh(null,et,st,_e,ct,rt);var ut=bi();return et.flags|=1,typeof ct=="object"&&ct!==null&&typeof ct.render=="function"&&ct.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf$1(st)?(ut=!0,cg(et)):ut=!1,et.memoizedState=ct.state!==null&&ct.state!==void 0?ct.state:null,ah(et),ct.updater=nh,et.stateNode=ct,ct._reactInternals=et,rh(et,st,_e,rt),et=kj(null,et,st,!0,ut,rt)):(et.tag=0,I$3&&ut&&vg(et),Yi(null,et,ct,rt),et=et.child),et;case 16:st=et.elementType;e:{switch(jj(_e,et),_e=et.pendingProps,ct=st._init,st=ct(st._payload),et.type=st,ct=et.tag=$k(st),_e=Lg(st,_e),ct){case 0:et=dj(null,et,st,_e,rt);break e;case 1:et=ij(null,et,st,_e,rt);break e;case 11:et=Zi(null,et,st,_e,rt);break e;case 14:et=aj(null,et,st,Lg(st.type,_e),rt);break e}throw Error(p$6(306,st,""))}return et;case 0:return st=et.type,ct=et.pendingProps,ct=et.elementType===st?ct:Lg(st,ct),dj(_e,et,st,ct,rt);case 1:return st=et.type,ct=et.pendingProps,ct=et.elementType===st?ct:Lg(st,ct),ij(_e,et,st,ct,rt);case 3:e:{if(lj(et),_e===null)throw Error(p$6(387));st=et.pendingProps,ut=et.memoizedState,ct=ut.element,bh(_e,et),gh(et,st,null,rt);var ft=et.memoizedState;if(st=ft.element,ut.isDehydrated)if(ut={element:st,isDehydrated:!1,cache:ft.cache,pendingSuspenseBoundaries:ft.pendingSuspenseBoundaries,transitions:ft.transitions},et.updateQueue.baseState=ut,et.memoizedState=ut,et.flags&256){ct=Ki(Error(p$6(423)),et),et=mj(_e,et,st,rt,ct);break e}else if(st!==ct){ct=Ki(Error(p$6(424)),et),et=mj(_e,et,st,rt,ct);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$3=!0,zg$1=null,rt=Ch(et,null,st,rt),et.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),st===ct){et=$i(_e,et,rt);break e}Yi(_e,et,st,rt)}et=et.child}return et;case 5:return Kh$1(et),_e===null&&Eg$1(et),st=et.type,ct=et.pendingProps,ut=_e!==null?_e.memoizedProps:null,ft=ct.children,Ef(st,ct)?ft=null:ut!==null&&Ef(st,ut)&&(et.flags|=32),hj(_e,et),Yi(_e,et,ft,rt),et.child;case 6:return _e===null&&Eg$1(et),null;case 13:return pj(_e,et,rt);case 4:return Ih(et,et.stateNode.containerInfo),st=et.pendingProps,_e===null?et.child=Bh(et,null,st,rt):Yi(_e,et,st,rt),et.child;case 11:return st=et.type,ct=et.pendingProps,ct=et.elementType===st?ct:Lg(st,ct),Zi(_e,et,st,ct,rt);case 7:return Yi(_e,et,et.pendingProps,rt),et.child;case 8:return Yi(_e,et,et.pendingProps.children,rt),et.child;case 12:return Yi(_e,et,et.pendingProps.children,rt),et.child;case 10:e:{if(st=et.type._context,ct=et.pendingProps,ut=et.memoizedProps,ft=ct.value,G$2(Mg,st._currentValue),st._currentValue=ft,ut!==null)if(He(ut.value,ft)){if(ut.children===ct.children&&!Wf.current){et=$i(_e,et,rt);break e}}else for(ut=et.child,ut!==null&&(ut.return=et);ut!==null;){var gt=ut.dependencies;if(gt!==null){ft=ut.child;for(var xt=gt.firstContext;xt!==null;){if(xt.context===st){if(ut.tag===1){xt=ch(-1,rt&-rt),xt.tag=2;var $t=ut.updateQueue;if($t!==null){$t=$t.shared;var _t=$t.pending;_t===null?xt.next=xt:(xt.next=_t.next,_t.next=xt),$t.pending=xt}}ut.lanes|=rt,xt=ut.alternate,xt!==null&&(xt.lanes|=rt),Sg(ut.return,rt,et),gt.lanes|=rt;break}xt=xt.next}}else if(ut.tag===10)ft=ut.type===et.type?null:ut.child;else if(ut.tag===18){if(ft=ut.return,ft===null)throw Error(p$6(341));ft.lanes|=rt,gt=ft.alternate,gt!==null&&(gt.lanes|=rt),Sg(ft,rt,et),ft=ut.sibling}else ft=ut.child;if(ft!==null)ft.return=ut;else for(ft=ut;ft!==null;){if(ft===et){ft=null;break}if(ut=ft.sibling,ut!==null){ut.return=ft.return,ft=ut;break}ft=ft.return}ut=ft}Yi(_e,et,ct.children,rt),et=et.child}return et;case 9:return ct=et.type,st=et.pendingProps.children,Tg(et,rt),ct=Vg$1(ct),st=st(ct),et.flags|=1,Yi(_e,et,st,rt),et.child;case 14:return st=et.type,ct=Lg(st,et.pendingProps),ct=Lg(st.type,ct),aj(_e,et,st,ct,rt);case 15:return cj(_e,et,et.type,et.pendingProps,rt);case 17:return st=et.type,ct=et.pendingProps,ct=et.elementType===st?ct:Lg(st,ct),jj(_e,et),et.tag=1,Zf$1(st)?(_e=!0,cg(et)):_e=!1,Tg(et,rt),ph(et,st,ct),rh(et,st,ct,rt),kj(null,et,st,!0,_e,rt);case 19:return yj(_e,et,rt);case 22:return ej(_e,et,rt)}throw Error(p$6(156,et.tag))};function Gk(_e,et){return ac(_e,et)}function al(_e,et,rt,st){this.tag=_e,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=st,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(_e,et,rt,st){return new al(_e,et,rt,st)}function bj(_e){return _e=_e.prototype,!(!_e||!_e.isReactComponent)}function $k(_e){if(typeof _e=="function")return bj(_e)?1:0;if(_e!=null){if(_e=_e.$$typeof,_e===Da)return 11;if(_e===Ga$1)return 14}return 2}function wh(_e,et){var rt=_e.alternate;return rt===null?(rt=Bg(_e.tag,et,_e.key,_e.mode),rt.elementType=_e.elementType,rt.type=_e.type,rt.stateNode=_e.stateNode,rt.alternate=_e,_e.alternate=rt):(rt.pendingProps=et,rt.type=_e.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=_e.flags&14680064,rt.childLanes=_e.childLanes,rt.lanes=_e.lanes,rt.child=_e.child,rt.memoizedProps=_e.memoizedProps,rt.memoizedState=_e.memoizedState,rt.updateQueue=_e.updateQueue,et=_e.dependencies,rt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},rt.sibling=_e.sibling,rt.index=_e.index,rt.ref=_e.ref,rt}function yh(_e,et,rt,st,ct,ut){var ft=2;if(st=_e,typeof _e=="function")bj(_e)&&(ft=1);else if(typeof _e=="string")ft=5;else e:switch(_e){case ya:return Ah(rt.children,ct,ut,et);case za$1:ft=8,ct|=8;break;case Aa:return _e=Bg(12,rt,et,ct|2),_e.elementType=Aa,_e.lanes=ut,_e;case Ea:return _e=Bg(13,rt,et,ct),_e.elementType=Ea,_e.lanes=ut,_e;case Fa:return _e=Bg(19,rt,et,ct),_e.elementType=Fa,_e.lanes=ut,_e;case Ia$1:return qj(rt,ct,ut,et);default:if(typeof _e=="object"&&_e!==null)switch(_e.$$typeof){case Ba$1:ft=10;break e;case Ca:ft=9;break e;case Da:ft=11;break e;case Ga$1:ft=14;break e;case Ha$1:ft=16,st=null;break e}throw Error(p$6(130,_e==null?_e:typeof _e,""))}return et=Bg(ft,rt,et,ct),et.elementType=_e,et.type=st,et.lanes=ut,et}function Ah(_e,et,rt,st){return _e=Bg(7,_e,st,et),_e.lanes=rt,_e}function qj(_e,et,rt,st){return _e=Bg(22,_e,st,et),_e.elementType=Ia$1,_e.lanes=rt,_e.stateNode={isHidden:!1},_e}function xh(_e,et,rt){return _e=Bg(6,_e,null,et),_e.lanes=rt,_e}function zh$1(_e,et,rt){return et=Bg(4,_e.children!==null?_e.children:[],_e.key,et),et.lanes=rt,et.stateNode={containerInfo:_e.containerInfo,pendingChildren:null,implementation:_e.implementation},et}function bl$1(_e,et,rt,st,ct){this.tag=et,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=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=st,this.onRecoverableError=ct,this.mutableSourceEagerHydrationData=null}function cl(_e,et,rt,st,ct,ut,ft,gt,xt){return _e=new bl$1(_e,et,rt,gt,xt),et===1?(et=1,ut===!0&&(et|=8)):et=0,ut=Bg(3,null,null,et),_e.current=ut,ut.stateNode=_e,ut.memoizedState={element:st,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ut),_e}function dl$1(_e,et,rt){var st=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(_e){console.error(_e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports),ReactDOM$1=_mergeNamespaces({__proto__:null,default:ReactDOM},[reactDomExports]);var m$5=reactDomExports;client.createRoot=m$5.createRoot,client.hydrateRoot=m$5.hydrateRoot;var define_import_meta_env_default$2={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const createStoreImpl=_e=>{let et;const rt=new Set,st=(_t,wt)=>{const Tt=typeof _t=="function"?_t(et):_t;if(!Object.is(Tt,et)){const Rt=et;et=wt??(typeof Tt!="object"||Tt===null)?Tt:Object.assign({},et,Tt),rt.forEach(It=>It(et,Rt))}},ct=()=>et,xt={setState:st,getState:ct,getInitialState:()=>$t,subscribe:_t=>(rt.add(_t),()=>rt.delete(_t)),destroy:()=>{(define_import_meta_env_default$2?"production":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."),rt.clear()}},$t=et=_e(st,ct,xt);return xt},createStore=_e=>_e?createStoreImpl(_e):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React @@ -57,7 +57,7 @@ Error generating stack: `+ut.message+` [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 kt=Nt.state[gt];if(kt==null)return;JSON.stringify(ct.getState())!==JSON.stringify(kt)&&Rt(kt);return}ct.dispatchFromDevtools&&typeof ct.dispatch=="function"&&ct.dispatch(Nt)});case"DISPATCH":switch(At.payload.type){case"RESET":return Rt(It),gt===void 0?_t==null?void 0:_t.init(ct.getState()):_t==null?void 0:_t.init(getTrackedConnectionState(xt.name));case"COMMIT":if(gt===void 0){_t==null||_t.init(ct.getState());return}return _t==null?void 0:_t.init(getTrackedConnectionState(xt.name));case"ROLLBACK":return parseJsonThen(At.state,Nt=>{if(gt===void 0){Rt(Nt),_t==null||_t.init(ct.getState());return}Rt(Nt[gt]),_t==null||_t.init(getTrackedConnectionState(xt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(At.state,Nt=>{if(gt===void 0){Rt(Nt);return}JSON.stringify(ct.getState())!==JSON.stringify(Nt[gt])&&Rt(Nt[gt])});case"IMPORT_STATE":{const{nextLiftedState:Nt}=At.payload,kt=(jt=Nt.computedStates.slice(-1)[0])==null?void 0:jt.state;if(!kt)return;Rt(gt===void 0?kt:kt[gt]),_t==null||_t.send(null,Nt);return}case"PAUSE_RECORDING":return Tt=!Tt}return}}),It},devtools=devtoolsImpl,parseJsonThen=(_e,et)=>{let rt;try{rt=JSON.parse(_e)}catch(st){console.error("[zustand devtools middleware] Could not parse the received json",st)}rt!==void 0&&et(rt)};function createJSONStorage(_e,et){let rt;try{rt=_e()}catch{return}return{getItem:ct=>{var ut;const ft=xt=>xt===null?null:JSON.parse(xt,et==null?void 0:et.reviver),gt=(ut=rt.getItem(ct))!=null?ut:null;return gt instanceof Promise?gt.then(ft):ft(gt)},setItem:(ct,ut)=>rt.setItem(ct,JSON.stringify(ut,et==null?void 0:et.replacer)),removeItem:ct=>rt.removeItem(ct)}}const toThenable=_e=>et=>{try{const rt=_e(et);return rt instanceof Promise?rt:{then(st){return toThenable(st)(rt)},catch(st){return this}}}catch(rt){return{then(st){return this},catch(st){return toThenable(st)(rt)}}}},oldImpl=(_e,et)=>(rt,st,ct)=>{let ut={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:jt=>jt,version:0,merge:(jt,Nt)=>({...Nt,...jt}),...et},ft=!1;const gt=new Set,xt=new Set;let $t;try{$t=ut.getStorage()}catch{}if(!$t)return _e((...jt)=>{console.warn(`[zustand persist middleware] Unable to update item '${ut.name}', the given storage is currently unavailable.`),rt(...jt)},st,ct);const _t=toThenable(ut.serialize),wt=()=>{const jt=ut.partialize({...st()});let Nt;const kt=_t({state:jt,version:ut.version}).then(Ft=>$t.setItem(ut.name,Ft)).catch(Ft=>{Nt=Ft});if(Nt)throw Nt;return kt},Tt=ct.setState;ct.setState=(jt,Nt)=>{Tt(jt,Nt),wt()};const Rt=_e((...jt)=>{rt(...jt),wt()},st,ct);let It;const At=()=>{var jt;if(!$t)return;ft=!1,gt.forEach(kt=>kt(st()));const Nt=((jt=ut.onRehydrateStorage)==null?void 0:jt.call(ut,st()))||void 0;return toThenable($t.getItem.bind($t))(ut.name).then(kt=>{if(kt)return ut.deserialize(kt)}).then(kt=>{if(kt)if(typeof kt.version=="number"&&kt.version!==ut.version){if(ut.migrate)return ut.migrate(kt.state,kt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return kt.state}).then(kt=>{var Ft;return It=ut.merge(kt,(Ft=st())!=null?Ft:Rt),rt(It,!0),wt()}).then(()=>{Nt==null||Nt(It,void 0),ft=!0,xt.forEach(kt=>kt(It))}).catch(kt=>{Nt==null||Nt(void 0,kt)})};return ct.persist={setOptions:jt=>{ut={...ut,...jt},jt.getStorage&&($t=jt.getStorage())},clearStorage:()=>{$t==null||$t.removeItem(ut.name)},getOptions:()=>ut,rehydrate:()=>At(),hasHydrated:()=>ft,onHydrate:jt=>(gt.add(jt),()=>{gt.delete(jt)}),onFinishHydration:jt=>(xt.add(jt),()=>{xt.delete(jt)})},At(),It||Rt},newImpl=(_e,et)=>(rt,st,ct)=>{let ut={storage:createJSONStorage(()=>localStorage),partialize:At=>At,version:0,merge:(At,jt)=>({...jt,...At}),...et},ft=!1;const gt=new Set,xt=new Set;let $t=ut.storage;if(!$t)return _e((...At)=>{console.warn(`[zustand persist middleware] Unable to update item '${ut.name}', the given storage is currently unavailable.`),rt(...At)},st,ct);const _t=()=>{const At=ut.partialize({...st()});return $t.setItem(ut.name,{state:At,version:ut.version})},wt=ct.setState;ct.setState=(At,jt)=>{wt(At,jt),_t()};const Tt=_e((...At)=>{rt(...At),_t()},st,ct);ct.getInitialState=()=>Tt;let Rt;const It=()=>{var At,jt;if(!$t)return;ft=!1,gt.forEach(kt=>{var Ft;return kt((Ft=st())!=null?Ft:Tt)});const Nt=((jt=ut.onRehydrateStorage)==null?void 0:jt.call(ut,(At=st())!=null?At:Tt))||void 0;return toThenable($t.getItem.bind($t))(ut.name).then(kt=>{if(kt)if(typeof kt.version=="number"&&kt.version!==ut.version){if(ut.migrate)return ut.migrate(kt.state,kt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return kt.state}).then(kt=>{var Ft;return Rt=ut.merge(kt,(Ft=st())!=null?Ft:Tt),rt(Rt,!0),_t()}).then(()=>{Nt==null||Nt(Rt,void 0),Rt=st(),ft=!0,xt.forEach(kt=>kt(Rt))}).catch(kt=>{Nt==null||Nt(void 0,kt)})};return ct.persist={setOptions:At=>{ut={...ut,...At},At.storage&&($t=At.storage)},clearStorage:()=>{$t==null||$t.removeItem(ut.name)},getOptions:()=>ut,rehydrate:()=>It(),hasHydrated:()=>ft,onHydrate:At=>(gt.add(At),()=>{gt.delete(At)}),onFinishHydration:At=>(xt.add(At),()=>{xt.delete(At)})},ut.skipHydration||It(),Rt||Tt},persistImpl=(_e,et)=>"getStorage"in et||"serialize"in et||"deserialize"in et?((define_import_meta_env_default?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),oldImpl(_e,et)):newImpl(_e,et),persist=persistImpl;function n$4(_e){for(var et=arguments.length,rt=Array(et>1?et-1:0),st=1;st3?et.i-4:et.i:Array.isArray(_e)?1:s(_e)?2:v$4(_e)?3:0}function u$2(_e,et){return o$2(_e)===2?_e.has(et):Object.prototype.hasOwnProperty.call(_e,et)}function a$1(_e,et){return o$2(_e)===2?_e.get(et):_e[et]}function f$3(_e,et,rt){var st=o$2(_e);st===2?_e.set(et,rt):st===3?_e.add(rt):_e[et]=rt}function c$3(_e,et){return _e===et?_e!==0||1/_e==1/et:_e!=_e&&et!=et}function s(_e){return X$1&&_e instanceof Map}function v$4(_e){return q$3&&_e instanceof Set}function p$3(_e){return _e.o||_e.t}function l$3(_e){if(Array.isArray(_e))return Array.prototype.slice.call(_e);var et=rn$1(_e);delete et[Q$1];for(var rt=nn$1(et),st=0;st1&&(_e.set=_e.add=_e.clear=_e.delete=h$3),Object.freeze(_e),et&&i$1(_e,function(rt,st){return d$3(st,!0)},!0)),_e}function h$3(){n$4(2)}function y$2(_e){return _e==null||typeof _e!="object"||Object.isFrozen(_e)}function b$3(_e){var et=tn$1[_e];return et||n$4(18,_e),et}function _$3(){return U$1}function j(_e,et){et&&(b$3("Patches"),_e.u=[],_e.s=[],_e.v=et)}function g$3(_e){O$1(_e),_e.p.forEach(S$1),_e.p=null}function O$1(_e){_e===U$1&&(U$1=_e.l)}function w$2(_e){return U$1={p:[],l:U$1,h:_e,m:!0,_:0}}function S$1(_e){var et=_e[Q$1];et.i===0||et.i===1?et.j():et.g=!0}function P$1(_e,et){et._=et.p.length;var rt=et.p[0],st=_e!==void 0&&_e!==rt;return et.h.O||b$3("ES5").S(et,_e,st),st?(rt[Q$1].P&&(g$3(et),n$4(4)),t$3(_e)&&(_e=M$2(et,_e),et.l||x$3(et,_e)),et.u&&b$3("Patches").M(rt[Q$1].t,_e,et.u,et.s)):_e=M$2(et,rt,[]),g$3(et),et.u&&et.v(et.u,et.s),_e!==H$1?_e:void 0}function M$2(_e,et,rt){if(y$2(et))return et;var st=et[Q$1];if(!st)return i$1(et,function(gt,xt){return A$3(_e,st,et,gt,xt,rt)},!0),et;if(st.A!==_e)return et;if(!st.P)return x$3(_e,st.t,!0),st.t;if(!st.I){st.I=!0,st.A._--;var ct=st.i===4||st.i===5?st.o=l$3(st.k):st.o,ut=ct,ft=!1;st.i===3&&(ut=new Set(ct),ct.clear(),ft=!0),i$1(ut,function(gt,xt){return A$3(_e,st,ct,gt,xt,rt,ft)}),x$3(_e,ct,!1),rt&&_e.u&&b$3("Patches").N(st,rt,_e.u,_e.s)}return st.o}function A$3(_e,et,rt,st,ct,ut,ft){if(r$5(ct)){var gt=M$2(_e,ct,ut&&et&&et.i!==3&&!u$2(et.R,st)?ut.concat(st):void 0);if(f$3(rt,st,gt),!r$5(gt))return;_e.m=!1}else ft&&rt.add(ct);if(t$3(ct)&&!y$2(ct)){if(!_e.h.D&&_e._<1)return;M$2(_e,ct),et&&et.A.l||x$3(_e,ct)}}function x$3(_e,et,rt){rt===void 0&&(rt=!1),!_e.l&&_e.h.D&&_e.m&&d$3(et,rt)}function z$3(_e,et){var rt=_e[Q$1];return(rt?p$3(rt):_e)[et]}function I$2(_e,et){if(et in _e)for(var rt=Object.getPrototypeOf(_e);rt;){var st=Object.getOwnPropertyDescriptor(rt,et);if(st)return st;rt=Object.getPrototypeOf(rt)}}function k$6(_e){_e.P||(_e.P=!0,_e.l&&k$6(_e.l))}function E$1(_e){_e.o||(_e.o=l$3(_e.t))}function N$1(_e,et,rt){var st=s(et)?b$3("MapSet").F(et,rt):v$4(et)?b$3("MapSet").T(et,rt):_e.O?function(ct,ut){var ft=Array.isArray(ct),gt={i:ft?1:0,A:ut?ut.A:_$3(),P:!1,I:!1,R:{},l:ut,t:ct,k:null,o:null,j:null,C:!1},xt=gt,$t=en$1;ft&&(xt=[gt],$t=on$1);var _t=Proxy.revocable(xt,$t),wt=_t.revoke,Tt=_t.proxy;return gt.k=Tt,gt.j=wt,Tt}(et,rt):b$3("ES5").J(et,rt);return(rt?rt.A:_$3()).p.push(st),st}function R$2(_e){return r$5(_e)||n$4(22,_e),function et(rt){if(!t$3(rt))return rt;var st,ct=rt[Q$1],ut=o$2(rt);if(ct){if(!ct.P&&(ct.i<4||!b$3("ES5").K(ct)))return ct.t;ct.I=!0,st=D$1(rt,ut),ct.I=!1}else st=D$1(rt,ut);return i$1(st,function(ft,gt){ct&&a$1(ct.t,ft)===gt||f$3(st,ft,et(gt))}),ut===3?new Set(st):st}(_e)}function D$1(_e,et){switch(et){case 2:return new Map(_e);case 3:return Array.from(_e)}return l$3(_e)}var G$1,U$1,W=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",X$1=typeof Map<"u",q$3=typeof Set<"u",B$3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H$1=W?Symbol.for("immer-nothing"):((G$1={})["immer-nothing"]=!0,G$1),L$1=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q$1=W?Symbol.for("immer-state"):"__$immer_state",Z$1=""+Object.prototype.constructor,nn$1=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(_e){return Object.getOwnPropertyNames(_e).concat(Object.getOwnPropertySymbols(_e))}:Object.getOwnPropertyNames,rn$1=Object.getOwnPropertyDescriptors||function(_e){var et={};return nn$1(_e).forEach(function(rt){et[rt]=Object.getOwnPropertyDescriptor(_e,rt)}),et},tn$1={},en$1={get:function(_e,et){if(et===Q$1)return _e;var rt=p$3(_e);if(!u$2(rt,et))return function(ct,ut,ft){var gt,xt=I$2(ut,ft);return xt?"value"in xt?xt.value:(gt=xt.get)===null||gt===void 0?void 0:gt.call(ct.k):void 0}(_e,rt,et);var st=rt[et];return _e.I||!t$3(st)?st:st===z$3(_e.t,et)?(E$1(_e),_e.o[et]=N$1(_e.A.h,st,_e)):st},has:function(_e,et){return et in p$3(_e)},ownKeys:function(_e){return Reflect.ownKeys(p$3(_e))},set:function(_e,et,rt){var st=I$2(p$3(_e),et);if(st!=null&&st.set)return st.set.call(_e.k,rt),!0;if(!_e.P){var ct=z$3(p$3(_e),et),ut=ct==null?void 0:ct[Q$1];if(ut&&ut.t===rt)return _e.o[et]=rt,_e.R[et]=!1,!0;if(c$3(rt,ct)&&(rt!==void 0||u$2(_e.t,et)))return!0;E$1(_e),k$6(_e)}return _e.o[et]===rt&&(rt!==void 0||et in _e.o)||Number.isNaN(rt)&&Number.isNaN(_e.o[et])||(_e.o[et]=rt,_e.R[et]=!0),!0},deleteProperty:function(_e,et){return z$3(_e.t,et)!==void 0||et in _e.t?(_e.R[et]=!1,E$1(_e),k$6(_e)):delete _e.R[et],_e.o&&delete _e.o[et],!0},getOwnPropertyDescriptor:function(_e,et){var rt=p$3(_e),st=Reflect.getOwnPropertyDescriptor(rt,et);return st&&{writable:!0,configurable:_e.i!==1||et!=="length",enumerable:st.enumerable,value:rt[et]}},defineProperty:function(){n$4(11)},getPrototypeOf:function(_e){return Object.getPrototypeOf(_e.t)},setPrototypeOf:function(){n$4(12)}},on$1={};i$1(en$1,function(_e,et){on$1[_e]=function(){return arguments[0]=arguments[0][0],et.apply(this,arguments)}}),on$1.deleteProperty=function(_e,et){return on$1.set.call(this,_e,et,void 0)},on$1.set=function(_e,et,rt){return en$1.set.call(this,_e[0],et,rt,_e[0])};var un=function(){function _e(rt){var st=this;this.O=B$3,this.D=!0,this.produce=function(ct,ut,ft){if(typeof ct=="function"&&typeof ut!="function"){var gt=ut;ut=ct;var xt=st;return function(At){var jt=this;At===void 0&&(At=gt);for(var Nt=arguments.length,kt=Array(Nt>1?Nt-1:0),Ft=1;Ft1?_t-1:0),Tt=1;Tt<_t;Tt++)wt[Tt-1]=arguments[Tt];return st.produceWithPatches($t,function(Rt){return ct.apply(void 0,[Rt].concat(wt))})};var ft,gt,xt=st.produce(ct,ut,function($t,_t){ft=$t,gt=_t});return typeof Promise<"u"&&xt instanceof Promise?xt.then(function($t){return[$t,ft,gt]}):[xt,ft,gt]},typeof(rt==null?void 0:rt.useProxies)=="boolean"&&this.setUseProxies(rt.useProxies),typeof(rt==null?void 0:rt.autoFreeze)=="boolean"&&this.setAutoFreeze(rt.autoFreeze)}var et=_e.prototype;return et.createDraft=function(rt){t$3(rt)||n$4(8),r$5(rt)&&(rt=R$2(rt));var st=w$2(this),ct=N$1(this,rt,void 0);return ct[Q$1].C=!0,O$1(st),ct},et.finishDraft=function(rt,st){var ct=rt&&rt[Q$1],ut=ct.A;return j(ut,st),P$1(void 0,ut)},et.setAutoFreeze=function(rt){this.D=rt},et.setUseProxies=function(rt){rt&&!B$3&&n$4(20),this.O=rt},et.applyPatches=function(rt,st){var ct;for(ct=st.length-1;ct>=0;ct--){var ut=st[ct];if(ut.path.length===0&&ut.op==="replace"){rt=ut.value;break}}ct>-1&&(st=st.slice(ct+1));var ft=b$3("Patches").$;return r$5(rt)?ft(rt,st):this.produce(rt,function(gt){return ft(gt,st)})},_e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);const immerImpl=_e=>(et,rt,st)=>(st.setState=(ct,ut,...ft)=>{const gt=typeof ct=="function"?fn(ct):ct;return et(gt,ut,...ft)},_e(st.setState,rt,st)),immer=immerImpl,BASE_HOST="localhost",BASE_URL$1="http://"+BASE_HOST+":9003",MQTT_PORT$1=9885,MQTT_HOST$1=BASE_HOST,UPLOAD_AVATAR_URL$1=BASE_URL$1+"/visitor/api/upload/avatar",CLIENT="electron",IS_ELECTRON=navigator.userAgent.toLowerCase().indexOf("electron")>-1,BASE_URL=BASE_URL$1,MQTT_PORT=MQTT_PORT$1,MQTT_HOST=MQTT_HOST$1,UPLOAD_AVATAR_URL=UPLOAD_AVATAR_URL$1,HTTP_CLIENT=CLIENT,LOCALE="locale",I18_PREFIX="i18n_",ANONYMOUS="ANONYMOUS",DEEP_LINK_WEIYUIM="weiyu-im",THEME_MODE_TYPE="THEME_MODE_TYPE",THEME_NAME_TYPE="THEME_NAME_TYPE",EVENT_BUS_SERVER_ERROR_500="EVENT_BUS_SERVER_ERROR_500",EVENT_BUS_TOKEN_INVALID="EVENT_BUS_TOKEN_INVALID",EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL="EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL",AUTH_STORE="AUTH_STORE",ACCESS_TOKEN="ACCESS_TOKEN",ORGANIZTION_STORE="ORGANIZTION_STORE",MEMBER_STORE="MEMBER_STORE",MESSAGE_STORE="MESSAGE_STORE",CONTACT_STORE="CONTACT_STORE",USER_STORE="USER_STORE",SETTINGS_STORE="SETTINGS_STORE",THREAD_STORE="THREAD_STORE",DEVICE_STORE="DEVICE_STORE",THREAD_MEMBER="member",THREAD_LOCAL="local",SEND_MOBILE_CODE_TYPE_LOGIN="login",MESSAGE_TYPE_TEXT="text",NOTIFICATION_THREAD="notification_thread",useAuthStore=create$4()(devtools(persist(immer((_e,et)=>({accessToken:"",isMqttConnected:!1,setAccessToken(rt){localStorage.setItem(ACCESS_TOKEN,rt),_e({accessToken:rt})},getAccessToken(){return et().accessToken},removeAccessToken(){localStorage.removeItem(ACCESS_TOKEN),_e({accessToken:""})},setMqttConnectStatus(rt){_e({isMqttConnected:rt})}})),{name:AUTH_STORE}))),useSettingsStore=create$4()(devtools(persist(immer((_e,et)=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1},currentMenu:"chat",setCurrentMenu(rt){_e({currentMenu:rt})}})),{name:SETTINGS_STORE})));var en_US$6={},interopRequireDefault={exports:{}};(function(_e){function et(rt){return rt&&rt.__esModule?rt:{default:rt}}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,en_US$5={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$5;hasRequiredEn_US$4=1,Object.defineProperty(en_US$5,"__esModule",{value:!0}),en_US$5.default=void 0;var _e={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"};return en_US$5.default=_e,en_US$5}var en_US$4={},en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var _e={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"};return en_US$2.default=_e,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){if(hasRequiredEn_US$2)return en_US$1;hasRequiredEn_US$2=1,Object.defineProperty(en_US$1,"__esModule",{value:!0}),en_US$1.default=void 0;const _e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return en_US$1.default=_e,en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){if(hasRequiredEn_US$1)return en_US$3;hasRequiredEn_US$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(en_US$3,"__esModule",{value:!0}),en_US$3.default=void 0;var et=_e(requireEn_US$3()),rt=_e(requireEn_US$2());const st={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"]},et.default),timePickerLocale:Object.assign({},rt.default)};return en_US$3.default=st,en_US$3}var hasRequiredEn_US;function requireEn_US(){if(hasRequiredEn_US)return en_US$4;hasRequiredEn_US=1;var _e=interopRequireDefaultExports;Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var et=_e(requireEn_US$1());return en_US$4.default=et.default,en_US$4}var _interopRequireDefault$8=interopRequireDefaultExports;Object.defineProperty(en_US$6,"__esModule",{value:!0});en_US$6.default=void 0;var _en_US=_interopRequireDefault$8(requireEn_US$4()),_en_US2=_interopRequireDefault$8(requireEn_US()),_en_US3=_interopRequireDefault$8(requireEn_US$1()),_en_US4=_interopRequireDefault$8(requireEn_US$2());const typeTemplate$4="${label} is not a valid ${type}",localeValues$3={locale:"en",Pagination:_en_US.default,DatePicker:_en_US3.default,TimePicker:_en_US4.default,Calendar:_en_US2.default,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",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"},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:typeTemplate$4,method:typeTemplate$4,array:typeTemplate$4,object:typeTemplate$4,number:typeTemplate$4,date:typeTemplate$4,boolean:typeTemplate$4,integer:typeTemplate$4,float:typeTemplate$4,regexp:typeTemplate$4,email:typeTemplate$4,url:typeTemplate$4,hex:typeTemplate$4},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"}};en_US$6.default=localeValues$3;var en_US=en_US$6;const enUS$3=getDefaultExportFromCjs(en_US);var zh_CN$7={},zh_CN$6={},hasRequiredZh_CN$4;function requireZh_CN$4(){if(hasRequiredZh_CN$4)return zh_CN$6;hasRequiredZh_CN$4=1,Object.defineProperty(zh_CN$6,"__esModule",{value:!0}),zh_CN$6.default=void 0;var _e={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:"页码"};return zh_CN$6.default=_e,zh_CN$6}var zh_CN$5={},zh_CN$4={},zh_CN$3={},hasRequiredZh_CN$3;function requireZh_CN$3(){if(hasRequiredZh_CN$3)return zh_CN$3;hasRequiredZh_CN$3=1,Object.defineProperty(zh_CN$3,"__esModule",{value:!0}),zh_CN$3.default=void 0;var _e={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};return zh_CN$3.default=_e,zh_CN$3}var zh_CN$2={},hasRequiredZh_CN$2;function requireZh_CN$2(){if(hasRequiredZh_CN$2)return zh_CN$2;hasRequiredZh_CN$2=1,Object.defineProperty(zh_CN$2,"__esModule",{value:!0}),zh_CN$2.default=void 0;const _e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return zh_CN$2.default=_e,zh_CN$2}var hasRequiredZh_CN$1;function requireZh_CN$1(){if(hasRequiredZh_CN$1)return zh_CN$4;hasRequiredZh_CN$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(zh_CN$4,"__esModule",{value:!0}),zh_CN$4.default=void 0;var et=_e(requireZh_CN$3()),rt=_e(requireZh_CN$2());const st={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},et.default),timePickerLocale:Object.assign({},rt.default)};return st.lang.ok="确定",zh_CN$4.default=st,zh_CN$4}var hasRequiredZh_CN;function requireZh_CN(){if(hasRequiredZh_CN)return zh_CN$5;hasRequiredZh_CN=1;var _e=interopRequireDefaultExports;Object.defineProperty(zh_CN$5,"__esModule",{value:!0}),zh_CN$5.default=void 0;var et=_e(requireZh_CN$1());return zh_CN$5.default=et.default,zh_CN$5}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(zh_CN$7,"__esModule",{value:!0});zh_CN$7.default=void 0;var _zh_CN=_interopRequireDefault$7(requireZh_CN$4()),_zh_CN2=_interopRequireDefault$7(requireZh_CN()),_zh_CN3=_interopRequireDefault$7(requireZh_CN$1()),_zh_CN4=_interopRequireDefault$7(requireZh_CN$2());const typeTemplate$3="${label}不是一个有效的${type}",localeValues$2={locale:"zh-cn",Pagination:_zh_CN.default,DatePicker:_zh_CN3.default,TimePicker:_zh_CN4.default,Calendar:_zh_CN2.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",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:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:typeTemplate$3,method:typeTemplate$3,array:typeTemplate$3,object:typeTemplate$3,number:typeTemplate$3,date:typeTemplate$3,boolean:typeTemplate$3,integer:typeTemplate$3,float:typeTemplate$3,regexp:typeTemplate$3,email:typeTemplate$3,url:typeTemplate$3,hex:typeTemplate$3},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:"暂无"}};zh_CN$7.default=localeValues$2;var zh_CN$1=zh_CN$7;const zhCN$2=getDefaultExportFromCjs(zh_CN$1);function useTheme$2(){const _e=localStorage.getItem(THEME_NAME_TYPE)||"light",[et,rt]=reactExports.useState(_e),st=localStorage.getItem(THEME_MODE_TYPE)||"system",[ct,ut]=reactExports.useState(st);return reactExports.useEffect(()=>{st==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?rt("dark"):rt("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ft=>{ft.matches?rt("dark"):rt("light")}))},[]),reactExports.useEffect(()=>{localStorage.setItem(THEME_MODE_TYPE,ct),ct==="light"?rt("light"):ct==="dark"?rt("dark"):ct==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?rt("dark"):rt("light"))},[ct]),reactExports.useEffect(()=>{localStorage.setItem(THEME_NAME_TYPE,et)},[et]),{themeName:et,setThemeName:rt,themeMode:ct,setThemeMode:ut,isDarkMode:et==="dark",isLightMode:et==="light"}}const AppContext$2=reactExports.createContext({}),AppProvider=({children:_e})=>{const{accessToken:et,isMqttConnected:rt,setMqttConnectStatus:st}=useAuthStore(Tt=>({accessToken:Tt.accessToken,isMqttConnected:Tt.isMqttConnected,setMqttConnectStatus:Tt.setMqttConnectStatus})),ct=useSettingsStore(Tt=>Tt.settings),ut=reactExports.useMemo(()=>!!et&&et.trim().length>0,[et]),{themeMode:ft,setThemeMode:gt,isDarkMode:xt}=useTheme$2(),[$t,_t]=reactExports.useState(zhCN$2),wt=Tt=>{const Rt=Tt.target.value;console.log("localeValue:",Rt),_t(Rt),localStorage.setItem(LOCALE,Rt.locale)};return reactExports.useEffect(()=>{let Tt=localStorage.getItem(LOCALE);_t(Tt==="zh-cn"?zhCN$2:enUS$3)},[]),jsxRuntimeExports.jsx(AppContext$2.Provider,{value:{isLoggedIn:ut,settings:ct,isMqttConnected:rt,setMqttConnectStatus:st,isDarkMode:xt,themeMode:ft,setThemeMode:gt,locale:$t,changeLocale:wt},children:_e})};var classnames={exports:{}};/*! + `);const kt=Nt.state[gt];if(kt==null)return;JSON.stringify(ct.getState())!==JSON.stringify(kt)&&Rt(kt);return}ct.dispatchFromDevtools&&typeof ct.dispatch=="function"&&ct.dispatch(Nt)});case"DISPATCH":switch(At.payload.type){case"RESET":return Rt(It),gt===void 0?_t==null?void 0:_t.init(ct.getState()):_t==null?void 0:_t.init(getTrackedConnectionState(xt.name));case"COMMIT":if(gt===void 0){_t==null||_t.init(ct.getState());return}return _t==null?void 0:_t.init(getTrackedConnectionState(xt.name));case"ROLLBACK":return parseJsonThen(At.state,Nt=>{if(gt===void 0){Rt(Nt),_t==null||_t.init(ct.getState());return}Rt(Nt[gt]),_t==null||_t.init(getTrackedConnectionState(xt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(At.state,Nt=>{if(gt===void 0){Rt(Nt);return}JSON.stringify(ct.getState())!==JSON.stringify(Nt[gt])&&Rt(Nt[gt])});case"IMPORT_STATE":{const{nextLiftedState:Nt}=At.payload,kt=(jt=Nt.computedStates.slice(-1)[0])==null?void 0:jt.state;if(!kt)return;Rt(gt===void 0?kt:kt[gt]),_t==null||_t.send(null,Nt);return}case"PAUSE_RECORDING":return Tt=!Tt}return}}),It},devtools=devtoolsImpl,parseJsonThen=(_e,et)=>{let rt;try{rt=JSON.parse(_e)}catch(st){console.error("[zustand devtools middleware] Could not parse the received json",st)}rt!==void 0&&et(rt)};function createJSONStorage(_e,et){let rt;try{rt=_e()}catch{return}return{getItem:ct=>{var ut;const ft=xt=>xt===null?null:JSON.parse(xt,et==null?void 0:et.reviver),gt=(ut=rt.getItem(ct))!=null?ut:null;return gt instanceof Promise?gt.then(ft):ft(gt)},setItem:(ct,ut)=>rt.setItem(ct,JSON.stringify(ut,et==null?void 0:et.replacer)),removeItem:ct=>rt.removeItem(ct)}}const toThenable=_e=>et=>{try{const rt=_e(et);return rt instanceof Promise?rt:{then(st){return toThenable(st)(rt)},catch(st){return this}}}catch(rt){return{then(st){return this},catch(st){return toThenable(st)(rt)}}}},oldImpl=(_e,et)=>(rt,st,ct)=>{let ut={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:jt=>jt,version:0,merge:(jt,Nt)=>({...Nt,...jt}),...et},ft=!1;const gt=new Set,xt=new Set;let $t;try{$t=ut.getStorage()}catch{}if(!$t)return _e((...jt)=>{console.warn(`[zustand persist middleware] Unable to update item '${ut.name}', the given storage is currently unavailable.`),rt(...jt)},st,ct);const _t=toThenable(ut.serialize),wt=()=>{const jt=ut.partialize({...st()});let Nt;const kt=_t({state:jt,version:ut.version}).then(Ft=>$t.setItem(ut.name,Ft)).catch(Ft=>{Nt=Ft});if(Nt)throw Nt;return kt},Tt=ct.setState;ct.setState=(jt,Nt)=>{Tt(jt,Nt),wt()};const Rt=_e((...jt)=>{rt(...jt),wt()},st,ct);let It;const At=()=>{var jt;if(!$t)return;ft=!1,gt.forEach(kt=>kt(st()));const Nt=((jt=ut.onRehydrateStorage)==null?void 0:jt.call(ut,st()))||void 0;return toThenable($t.getItem.bind($t))(ut.name).then(kt=>{if(kt)return ut.deserialize(kt)}).then(kt=>{if(kt)if(typeof kt.version=="number"&&kt.version!==ut.version){if(ut.migrate)return ut.migrate(kt.state,kt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return kt.state}).then(kt=>{var Ft;return It=ut.merge(kt,(Ft=st())!=null?Ft:Rt),rt(It,!0),wt()}).then(()=>{Nt==null||Nt(It,void 0),ft=!0,xt.forEach(kt=>kt(It))}).catch(kt=>{Nt==null||Nt(void 0,kt)})};return ct.persist={setOptions:jt=>{ut={...ut,...jt},jt.getStorage&&($t=jt.getStorage())},clearStorage:()=>{$t==null||$t.removeItem(ut.name)},getOptions:()=>ut,rehydrate:()=>At(),hasHydrated:()=>ft,onHydrate:jt=>(gt.add(jt),()=>{gt.delete(jt)}),onFinishHydration:jt=>(xt.add(jt),()=>{xt.delete(jt)})},At(),It||Rt},newImpl=(_e,et)=>(rt,st,ct)=>{let ut={storage:createJSONStorage(()=>localStorage),partialize:At=>At,version:0,merge:(At,jt)=>({...jt,...At}),...et},ft=!1;const gt=new Set,xt=new Set;let $t=ut.storage;if(!$t)return _e((...At)=>{console.warn(`[zustand persist middleware] Unable to update item '${ut.name}', the given storage is currently unavailable.`),rt(...At)},st,ct);const _t=()=>{const At=ut.partialize({...st()});return $t.setItem(ut.name,{state:At,version:ut.version})},wt=ct.setState;ct.setState=(At,jt)=>{wt(At,jt),_t()};const Tt=_e((...At)=>{rt(...At),_t()},st,ct);ct.getInitialState=()=>Tt;let Rt;const It=()=>{var At,jt;if(!$t)return;ft=!1,gt.forEach(kt=>{var Ft;return kt((Ft=st())!=null?Ft:Tt)});const Nt=((jt=ut.onRehydrateStorage)==null?void 0:jt.call(ut,(At=st())!=null?At:Tt))||void 0;return toThenable($t.getItem.bind($t))(ut.name).then(kt=>{if(kt)if(typeof kt.version=="number"&&kt.version!==ut.version){if(ut.migrate)return ut.migrate(kt.state,kt.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return kt.state}).then(kt=>{var Ft;return Rt=ut.merge(kt,(Ft=st())!=null?Ft:Tt),rt(Rt,!0),_t()}).then(()=>{Nt==null||Nt(Rt,void 0),Rt=st(),ft=!0,xt.forEach(kt=>kt(Rt))}).catch(kt=>{Nt==null||Nt(void 0,kt)})};return ct.persist={setOptions:At=>{ut={...ut,...At},At.storage&&($t=At.storage)},clearStorage:()=>{$t==null||$t.removeItem(ut.name)},getOptions:()=>ut,rehydrate:()=>It(),hasHydrated:()=>ft,onHydrate:At=>(gt.add(At),()=>{gt.delete(At)}),onFinishHydration:At=>(xt.add(At),()=>{xt.delete(At)})},ut.skipHydration||It(),Rt||Tt},persistImpl=(_e,et)=>"getStorage"in et||"serialize"in et||"deserialize"in et?((define_import_meta_env_default?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),oldImpl(_e,et)):newImpl(_e,et),persist=persistImpl;function n$4(_e){for(var et=arguments.length,rt=Array(et>1?et-1:0),st=1;st3?et.i-4:et.i:Array.isArray(_e)?1:s(_e)?2:v$4(_e)?3:0}function u$2(_e,et){return o$2(_e)===2?_e.has(et):Object.prototype.hasOwnProperty.call(_e,et)}function a$1(_e,et){return o$2(_e)===2?_e.get(et):_e[et]}function f$3(_e,et,rt){var st=o$2(_e);st===2?_e.set(et,rt):st===3?_e.add(rt):_e[et]=rt}function c$3(_e,et){return _e===et?_e!==0||1/_e==1/et:_e!=_e&&et!=et}function s(_e){return X$1&&_e instanceof Map}function v$4(_e){return q$3&&_e instanceof Set}function p$3(_e){return _e.o||_e.t}function l$3(_e){if(Array.isArray(_e))return Array.prototype.slice.call(_e);var et=rn$1(_e);delete et[Q$1];for(var rt=nn$1(et),st=0;st1&&(_e.set=_e.add=_e.clear=_e.delete=h$3),Object.freeze(_e),et&&i$2(_e,function(rt,st){return d$3(st,!0)},!0)),_e}function h$3(){n$4(2)}function y$2(_e){return _e==null||typeof _e!="object"||Object.isFrozen(_e)}function b$3(_e){var et=tn$1[_e];return et||n$4(18,_e),et}function _$3(){return U$1}function j(_e,et){et&&(b$3("Patches"),_e.u=[],_e.s=[],_e.v=et)}function g$3(_e){O$1(_e),_e.p.forEach(S$1),_e.p=null}function O$1(_e){_e===U$1&&(U$1=_e.l)}function w$2(_e){return U$1={p:[],l:U$1,h:_e,m:!0,_:0}}function S$1(_e){var et=_e[Q$1];et.i===0||et.i===1?et.j():et.g=!0}function P$1(_e,et){et._=et.p.length;var rt=et.p[0],st=_e!==void 0&&_e!==rt;return et.h.O||b$3("ES5").S(et,_e,st),st?(rt[Q$1].P&&(g$3(et),n$4(4)),t$3(_e)&&(_e=M$2(et,_e),et.l||x$3(et,_e)),et.u&&b$3("Patches").M(rt[Q$1].t,_e,et.u,et.s)):_e=M$2(et,rt,[]),g$3(et),et.u&&et.v(et.u,et.s),_e!==H$1?_e:void 0}function M$2(_e,et,rt){if(y$2(et))return et;var st=et[Q$1];if(!st)return i$2(et,function(gt,xt){return A$3(_e,st,et,gt,xt,rt)},!0),et;if(st.A!==_e)return et;if(!st.P)return x$3(_e,st.t,!0),st.t;if(!st.I){st.I=!0,st.A._--;var ct=st.i===4||st.i===5?st.o=l$3(st.k):st.o,ut=ct,ft=!1;st.i===3&&(ut=new Set(ct),ct.clear(),ft=!0),i$2(ut,function(gt,xt){return A$3(_e,st,ct,gt,xt,rt,ft)}),x$3(_e,ct,!1),rt&&_e.u&&b$3("Patches").N(st,rt,_e.u,_e.s)}return st.o}function A$3(_e,et,rt,st,ct,ut,ft){if(r$5(ct)){var gt=M$2(_e,ct,ut&&et&&et.i!==3&&!u$2(et.R,st)?ut.concat(st):void 0);if(f$3(rt,st,gt),!r$5(gt))return;_e.m=!1}else ft&&rt.add(ct);if(t$3(ct)&&!y$2(ct)){if(!_e.h.D&&_e._<1)return;M$2(_e,ct),et&&et.A.l||x$3(_e,ct)}}function x$3(_e,et,rt){rt===void 0&&(rt=!1),!_e.l&&_e.h.D&&_e.m&&d$3(et,rt)}function z$3(_e,et){var rt=_e[Q$1];return(rt?p$3(rt):_e)[et]}function I$2(_e,et){if(et in _e)for(var rt=Object.getPrototypeOf(_e);rt;){var st=Object.getOwnPropertyDescriptor(rt,et);if(st)return st;rt=Object.getPrototypeOf(rt)}}function k$6(_e){_e.P||(_e.P=!0,_e.l&&k$6(_e.l))}function E$1(_e){_e.o||(_e.o=l$3(_e.t))}function N$1(_e,et,rt){var st=s(et)?b$3("MapSet").F(et,rt):v$4(et)?b$3("MapSet").T(et,rt):_e.O?function(ct,ut){var ft=Array.isArray(ct),gt={i:ft?1:0,A:ut?ut.A:_$3(),P:!1,I:!1,R:{},l:ut,t:ct,k:null,o:null,j:null,C:!1},xt=gt,$t=en$1;ft&&(xt=[gt],$t=on$2);var _t=Proxy.revocable(xt,$t),wt=_t.revoke,Tt=_t.proxy;return gt.k=Tt,gt.j=wt,Tt}(et,rt):b$3("ES5").J(et,rt);return(rt?rt.A:_$3()).p.push(st),st}function R$2(_e){return r$5(_e)||n$4(22,_e),function et(rt){if(!t$3(rt))return rt;var st,ct=rt[Q$1],ut=o$2(rt);if(ct){if(!ct.P&&(ct.i<4||!b$3("ES5").K(ct)))return ct.t;ct.I=!0,st=D$1(rt,ut),ct.I=!1}else st=D$1(rt,ut);return i$2(st,function(ft,gt){ct&&a$1(ct.t,ft)===gt||f$3(st,ft,et(gt))}),ut===3?new Set(st):st}(_e)}function D$1(_e,et){switch(et){case 2:return new Map(_e);case 3:return Array.from(_e)}return l$3(_e)}var G$1,U$1,W=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",X$1=typeof Map<"u",q$3=typeof Set<"u",B$3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H$1=W?Symbol.for("immer-nothing"):((G$1={})["immer-nothing"]=!0,G$1),L$1=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q$1=W?Symbol.for("immer-state"):"__$immer_state",Z$1=""+Object.prototype.constructor,nn$1=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(_e){return Object.getOwnPropertyNames(_e).concat(Object.getOwnPropertySymbols(_e))}:Object.getOwnPropertyNames,rn$1=Object.getOwnPropertyDescriptors||function(_e){var et={};return nn$1(_e).forEach(function(rt){et[rt]=Object.getOwnPropertyDescriptor(_e,rt)}),et},tn$1={},en$1={get:function(_e,et){if(et===Q$1)return _e;var rt=p$3(_e);if(!u$2(rt,et))return function(ct,ut,ft){var gt,xt=I$2(ut,ft);return xt?"value"in xt?xt.value:(gt=xt.get)===null||gt===void 0?void 0:gt.call(ct.k):void 0}(_e,rt,et);var st=rt[et];return _e.I||!t$3(st)?st:st===z$3(_e.t,et)?(E$1(_e),_e.o[et]=N$1(_e.A.h,st,_e)):st},has:function(_e,et){return et in p$3(_e)},ownKeys:function(_e){return Reflect.ownKeys(p$3(_e))},set:function(_e,et,rt){var st=I$2(p$3(_e),et);if(st!=null&&st.set)return st.set.call(_e.k,rt),!0;if(!_e.P){var ct=z$3(p$3(_e),et),ut=ct==null?void 0:ct[Q$1];if(ut&&ut.t===rt)return _e.o[et]=rt,_e.R[et]=!1,!0;if(c$3(rt,ct)&&(rt!==void 0||u$2(_e.t,et)))return!0;E$1(_e),k$6(_e)}return _e.o[et]===rt&&(rt!==void 0||et in _e.o)||Number.isNaN(rt)&&Number.isNaN(_e.o[et])||(_e.o[et]=rt,_e.R[et]=!0),!0},deleteProperty:function(_e,et){return z$3(_e.t,et)!==void 0||et in _e.t?(_e.R[et]=!1,E$1(_e),k$6(_e)):delete _e.R[et],_e.o&&delete _e.o[et],!0},getOwnPropertyDescriptor:function(_e,et){var rt=p$3(_e),st=Reflect.getOwnPropertyDescriptor(rt,et);return st&&{writable:!0,configurable:_e.i!==1||et!=="length",enumerable:st.enumerable,value:rt[et]}},defineProperty:function(){n$4(11)},getPrototypeOf:function(_e){return Object.getPrototypeOf(_e.t)},setPrototypeOf:function(){n$4(12)}},on$2={};i$2(en$1,function(_e,et){on$2[_e]=function(){return arguments[0]=arguments[0][0],et.apply(this,arguments)}}),on$2.deleteProperty=function(_e,et){return on$2.set.call(this,_e,et,void 0)},on$2.set=function(_e,et,rt){return en$1.set.call(this,_e[0],et,rt,_e[0])};var un=function(){function _e(rt){var st=this;this.O=B$3,this.D=!0,this.produce=function(ct,ut,ft){if(typeof ct=="function"&&typeof ut!="function"){var gt=ut;ut=ct;var xt=st;return function(At){var jt=this;At===void 0&&(At=gt);for(var Nt=arguments.length,kt=Array(Nt>1?Nt-1:0),Ft=1;Ft1?_t-1:0),Tt=1;Tt<_t;Tt++)wt[Tt-1]=arguments[Tt];return st.produceWithPatches($t,function(Rt){return ct.apply(void 0,[Rt].concat(wt))})};var ft,gt,xt=st.produce(ct,ut,function($t,_t){ft=$t,gt=_t});return typeof Promise<"u"&&xt instanceof Promise?xt.then(function($t){return[$t,ft,gt]}):[xt,ft,gt]},typeof(rt==null?void 0:rt.useProxies)=="boolean"&&this.setUseProxies(rt.useProxies),typeof(rt==null?void 0:rt.autoFreeze)=="boolean"&&this.setAutoFreeze(rt.autoFreeze)}var et=_e.prototype;return et.createDraft=function(rt){t$3(rt)||n$4(8),r$5(rt)&&(rt=R$2(rt));var st=w$2(this),ct=N$1(this,rt,void 0);return ct[Q$1].C=!0,O$1(st),ct},et.finishDraft=function(rt,st){var ct=rt&&rt[Q$1],ut=ct.A;return j(ut,st),P$1(void 0,ut)},et.setAutoFreeze=function(rt){this.D=rt},et.setUseProxies=function(rt){rt&&!B$3&&n$4(20),this.O=rt},et.applyPatches=function(rt,st){var ct;for(ct=st.length-1;ct>=0;ct--){var ut=st[ct];if(ut.path.length===0&&ut.op==="replace"){rt=ut.value;break}}ct>-1&&(st=st.slice(ct+1));var ft=b$3("Patches").$;return r$5(rt)?ft(rt,st):this.produce(rt,function(gt){return ft(gt,st)})},_e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);const immerImpl=_e=>(et,rt,st)=>(st.setState=(ct,ut,...ft)=>{const gt=typeof ct=="function"?fn(ct):ct;return et(gt,ut,...ft)},_e(st.setState,rt,st)),immer=immerImpl,BASE_HOST="localhost",BASE_URL$1="http://"+BASE_HOST+":9003",MQTT_PORT$1=9885,MQTT_HOST$1=BASE_HOST,UPLOAD_AVATAR_URL$1=BASE_URL$1+"/visitor/api/upload/avatar",CLIENT="electron",IS_ELECTRON=navigator.userAgent.toLowerCase().indexOf("electron")>-1,BASE_URL=BASE_URL$1,MQTT_PORT=MQTT_PORT$1,MQTT_HOST=MQTT_HOST$1,UPLOAD_AVATAR_URL=UPLOAD_AVATAR_URL$1,HTTP_CLIENT=CLIENT,LOCALE="locale",I18_PREFIX="i18n_",ANONYMOUS="ANONYMOUS",DEEP_LINK_WEIYUIM="weiyu-im",THEME_MODE_TYPE="THEME_MODE_TYPE",THEME_NAME_TYPE="THEME_NAME_TYPE",EVENT_BUS_SERVER_ERROR_500="EVENT_BUS_SERVER_ERROR_500",EVENT_BUS_TOKEN_INVALID="EVENT_BUS_TOKEN_INVALID",EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL="EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL",AUTH_STORE="AUTH_STORE",ACCESS_TOKEN="ACCESS_TOKEN",ORGANIZTION_STORE="ORGANIZTION_STORE",MEMBER_STORE="MEMBER_STORE",MESSAGE_STORE="MESSAGE_STORE",CONTACT_STORE="CONTACT_STORE",USER_STORE="USER_STORE",SETTINGS_STORE="SETTINGS_STORE",THREAD_STORE="THREAD_STORE",DEVICE_STORE="DEVICE_STORE",THREAD_MEMBER="member",THREAD_LOCAL="local",CONTACT_TYPE_MEMBER="member",CONTACT_TYPE_DEVICE="device",SEND_MOBILE_CODE_TYPE_LOGIN="login",MESSAGE_TYPE_TEXT="text",NOTIFICATION_THREAD="notification_thread",useAuthStore=create$4()(devtools(persist(immer((_e,et)=>({accessToken:"",isMqttConnected:!1,setAccessToken(rt){localStorage.setItem(ACCESS_TOKEN,rt),_e({accessToken:rt})},getAccessToken(){return et().accessToken},removeAccessToken(){localStorage.removeItem(ACCESS_TOKEN),_e({accessToken:""})},setMqttConnectStatus(rt){_e({isMqttConnected:rt})}})),{name:AUTH_STORE}))),useSettingsStore=create$4()(devtools(persist(immer((_e,et)=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1},currentMenu:"chat",setCurrentMenu(rt){_e({currentMenu:rt})}})),{name:SETTINGS_STORE})));var en_US$6={},interopRequireDefault={exports:{}};(function(_e){function et(rt){return rt&&rt.__esModule?rt:{default:rt}}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,en_US$5={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$5;hasRequiredEn_US$4=1,Object.defineProperty(en_US$5,"__esModule",{value:!0}),en_US$5.default=void 0;var _e={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"};return en_US$5.default=_e,en_US$5}var en_US$4={},en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var _e={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"};return en_US$2.default=_e,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){if(hasRequiredEn_US$2)return en_US$1;hasRequiredEn_US$2=1,Object.defineProperty(en_US$1,"__esModule",{value:!0}),en_US$1.default=void 0;const _e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return en_US$1.default=_e,en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){if(hasRequiredEn_US$1)return en_US$3;hasRequiredEn_US$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(en_US$3,"__esModule",{value:!0}),en_US$3.default=void 0;var et=_e(requireEn_US$3()),rt=_e(requireEn_US$2());const st={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"]},et.default),timePickerLocale:Object.assign({},rt.default)};return en_US$3.default=st,en_US$3}var hasRequiredEn_US;function requireEn_US(){if(hasRequiredEn_US)return en_US$4;hasRequiredEn_US=1;var _e=interopRequireDefaultExports;Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var et=_e(requireEn_US$1());return en_US$4.default=et.default,en_US$4}var _interopRequireDefault$8=interopRequireDefaultExports;Object.defineProperty(en_US$6,"__esModule",{value:!0});en_US$6.default=void 0;var _en_US=_interopRequireDefault$8(requireEn_US$4()),_en_US2=_interopRequireDefault$8(requireEn_US()),_en_US3=_interopRequireDefault$8(requireEn_US$1()),_en_US4=_interopRequireDefault$8(requireEn_US$2());const typeTemplate$4="${label} is not a valid ${type}",localeValues$3={locale:"en",Pagination:_en_US.default,DatePicker:_en_US3.default,TimePicker:_en_US4.default,Calendar:_en_US2.default,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",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"},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:typeTemplate$4,method:typeTemplate$4,array:typeTemplate$4,object:typeTemplate$4,number:typeTemplate$4,date:typeTemplate$4,boolean:typeTemplate$4,integer:typeTemplate$4,float:typeTemplate$4,regexp:typeTemplate$4,email:typeTemplate$4,url:typeTemplate$4,hex:typeTemplate$4},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"}};en_US$6.default=localeValues$3;var en_US=en_US$6;const enUS$3=getDefaultExportFromCjs(en_US);var zh_CN$7={},zh_CN$6={},hasRequiredZh_CN$4;function requireZh_CN$4(){if(hasRequiredZh_CN$4)return zh_CN$6;hasRequiredZh_CN$4=1,Object.defineProperty(zh_CN$6,"__esModule",{value:!0}),zh_CN$6.default=void 0;var _e={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:"页码"};return zh_CN$6.default=_e,zh_CN$6}var zh_CN$5={},zh_CN$4={},zh_CN$3={},hasRequiredZh_CN$3;function requireZh_CN$3(){if(hasRequiredZh_CN$3)return zh_CN$3;hasRequiredZh_CN$3=1,Object.defineProperty(zh_CN$3,"__esModule",{value:!0}),zh_CN$3.default=void 0;var _e={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};return zh_CN$3.default=_e,zh_CN$3}var zh_CN$2={},hasRequiredZh_CN$2;function requireZh_CN$2(){if(hasRequiredZh_CN$2)return zh_CN$2;hasRequiredZh_CN$2=1,Object.defineProperty(zh_CN$2,"__esModule",{value:!0}),zh_CN$2.default=void 0;const _e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return zh_CN$2.default=_e,zh_CN$2}var hasRequiredZh_CN$1;function requireZh_CN$1(){if(hasRequiredZh_CN$1)return zh_CN$4;hasRequiredZh_CN$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(zh_CN$4,"__esModule",{value:!0}),zh_CN$4.default=void 0;var et=_e(requireZh_CN$3()),rt=_e(requireZh_CN$2());const st={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},et.default),timePickerLocale:Object.assign({},rt.default)};return st.lang.ok="确定",zh_CN$4.default=st,zh_CN$4}var hasRequiredZh_CN;function requireZh_CN(){if(hasRequiredZh_CN)return zh_CN$5;hasRequiredZh_CN=1;var _e=interopRequireDefaultExports;Object.defineProperty(zh_CN$5,"__esModule",{value:!0}),zh_CN$5.default=void 0;var et=_e(requireZh_CN$1());return zh_CN$5.default=et.default,zh_CN$5}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(zh_CN$7,"__esModule",{value:!0});zh_CN$7.default=void 0;var _zh_CN=_interopRequireDefault$7(requireZh_CN$4()),_zh_CN2=_interopRequireDefault$7(requireZh_CN()),_zh_CN3=_interopRequireDefault$7(requireZh_CN$1()),_zh_CN4=_interopRequireDefault$7(requireZh_CN$2());const typeTemplate$3="${label}不是一个有效的${type}",localeValues$2={locale:"zh-cn",Pagination:_zh_CN.default,DatePicker:_zh_CN3.default,TimePicker:_zh_CN4.default,Calendar:_zh_CN2.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",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:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:typeTemplate$3,method:typeTemplate$3,array:typeTemplate$3,object:typeTemplate$3,number:typeTemplate$3,date:typeTemplate$3,boolean:typeTemplate$3,integer:typeTemplate$3,float:typeTemplate$3,regexp:typeTemplate$3,email:typeTemplate$3,url:typeTemplate$3,hex:typeTemplate$3},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:"暂无"}};zh_CN$7.default=localeValues$2;var zh_CN$1=zh_CN$7;const zhCN$2=getDefaultExportFromCjs(zh_CN$1);function useTheme$2(){const _e=localStorage.getItem(THEME_NAME_TYPE)||"light",[et,rt]=reactExports.useState(_e),st=localStorage.getItem(THEME_MODE_TYPE)||"system",[ct,ut]=reactExports.useState(st);return reactExports.useEffect(()=>{st==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?rt("dark"):rt("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ft=>{ft.matches?rt("dark"):rt("light")}))},[]),reactExports.useEffect(()=>{localStorage.setItem(THEME_MODE_TYPE,ct),ct==="light"?rt("light"):ct==="dark"?rt("dark"):ct==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?rt("dark"):rt("light"))},[ct]),reactExports.useEffect(()=>{localStorage.setItem(THEME_NAME_TYPE,et)},[et]),{themeName:et,setThemeName:rt,themeMode:ct,setThemeMode:ut,isDarkMode:et==="dark",isLightMode:et==="light"}}const AppContext$2=reactExports.createContext({}),AppProvider=({children:_e})=>{const{accessToken:et,isMqttConnected:rt,setMqttConnectStatus:st}=useAuthStore(Tt=>({accessToken:Tt.accessToken,isMqttConnected:Tt.isMqttConnected,setMqttConnectStatus:Tt.setMqttConnectStatus})),ct=useSettingsStore(Tt=>Tt.settings),ut=reactExports.useMemo(()=>!!et&&et.trim().length>0,[et]),{themeMode:ft,setThemeMode:gt,isDarkMode:xt}=useTheme$2(),[$t,_t]=reactExports.useState(zhCN$2),wt=Tt=>{const Rt=Tt.target.value;console.log("localeValue:",Rt),_t(Rt),localStorage.setItem(LOCALE,Rt.locale)};return reactExports.useEffect(()=>{let Tt=localStorage.getItem(LOCALE);_t(Tt==="zh-cn"?zhCN$2:enUS$3)},[]),jsxRuntimeExports.jsx(AppContext$2.Provider,{value:{isLoggedIn:ut,settings:ct,isMqttConnected:rt,setMqttConnectStatus:st,isDarkMode:xt,themeMode:ft,setThemeMode:gt,locale:$t,changeLocale:wt},children:_e})};var classnames={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -69,17 +69,17 @@ Error generating stack: `+ut.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$2=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$2=Symbol.for("react.fragment"),e$4=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$2=Symbol.for("react.provider"),h$2=Symbol.for("react.context"),k$5=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$3=Symbol.for("react.suspense"),n$3=Symbol.for("react.suspense_list"),p$2=Symbol.for("react.memo"),q$2=Symbol.for("react.lazy"),t$2=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");function v$3(_e){if(typeof _e=="object"&&_e!==null){var et=_e.$$typeof;switch(et){case b$2:switch(_e=_e.type,_e){case d$2:case f$2:case e$4:case m$3:case n$3:return _e;default:switch(_e=_e&&_e.$$typeof,_e){case k$5:case h$2:case l$2:case q$2:case p$2:case g$2:return _e;default:return et}}case c$2:return et}}}reactIs_production_min$1.ContextConsumer=h$2;reactIs_production_min$1.ContextProvider=g$2;reactIs_production_min$1.Element=b$2;reactIs_production_min$1.ForwardRef=l$2;reactIs_production_min$1.Fragment=d$2;reactIs_production_min$1.Lazy=q$2;reactIs_production_min$1.Memo=p$2;reactIs_production_min$1.Portal=c$2;reactIs_production_min$1.Profiler=f$2;reactIs_production_min$1.StrictMode=e$4;reactIs_production_min$1.Suspense=m$3;reactIs_production_min$1.SuspenseList=n$3;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(_e){return v$3(_e)===h$2};reactIs_production_min$1.isContextProvider=function(_e){return v$3(_e)===g$2};reactIs_production_min$1.isElement=function(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===b$2};reactIs_production_min$1.isForwardRef=function(_e){return v$3(_e)===l$2};reactIs_production_min$1.isFragment=function(_e){return v$3(_e)===d$2};reactIs_production_min$1.isLazy=function(_e){return v$3(_e)===q$2};reactIs_production_min$1.isMemo=function(_e){return v$3(_e)===p$2};reactIs_production_min$1.isPortal=function(_e){return v$3(_e)===c$2};reactIs_production_min$1.isProfiler=function(_e){return v$3(_e)===f$2};reactIs_production_min$1.isStrictMode=function(_e){return v$3(_e)===e$4};reactIs_production_min$1.isSuspense=function(_e){return v$3(_e)===m$3};reactIs_production_min$1.isSuspenseList=function(_e){return v$3(_e)===n$3};reactIs_production_min$1.isValidElementType=function(_e){return typeof _e=="string"||typeof _e=="function"||_e===d$2||_e===f$2||_e===e$4||_e===m$3||_e===n$3||_e===t$2||typeof _e=="object"&&_e!==null&&(_e.$$typeof===q$2||_e.$$typeof===p$2||_e.$$typeof===g$2||_e.$$typeof===h$2||_e.$$typeof===l$2||_e.$$typeof===u$1||_e.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$3;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function toArray$d(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[];return React$1.Children.forEach(_e,function(st){st==null&&!et.keepEmpty||(Array.isArray(st)?rt=rt.concat(toArray$d(st)):reactIsExports$1.isFragment(st)&&st.props?rt=rt.concat(toArray$d(st.props.children,et)):rt.push(st))}),rt}var warned={},preMessage=function(et){};function warning$a(_e,et){}function note(_e,et){}function resetWarned(){warned={}}function call(_e,et,rt){!et&&!warned[rt]&&(_e(!1,rt),warned[rt]=!0)}function warningOnce$1(_e,et){call(warning$a,_e,et)}function noteOnce(_e,et){call(note,_e,et)}warningOnce$1.preMessage=preMessage;warningOnce$1.resetWarned=resetWarned;warningOnce$1.noteOnce=noteOnce;function _typeof$e(_e){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$e(_e)}function toPrimitive$1(_e,et){if(_typeof$e(_e)!="object"||!_e)return _e;var rt=_e[Symbol.toPrimitive];if(rt!==void 0){var st=rt.call(_e,et||"default");if(_typeof$e(st)!="object")return st;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function toPropertyKey$1(_e){var et=toPrimitive$1(_e,"string");return _typeof$e(et)=="symbol"?et:String(et)}function _defineProperty$c(_e,et,rt){return et=toPropertyKey$1(et),et in _e?Object.defineProperty(_e,et,{value:rt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=rt,_e}function ownKeys$a(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread2(_e){for(var et=1;et0},_e.prototype.connect_=function(){!isBrowser$2||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(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(){!isBrowser$2||!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(et){var rt=et.propertyName,st=rt===void 0?"":rt,ct=transitionKeys.some(function(ut){return!!~st.indexOf(ut)});ct&&this.refresh()},_e.getInstance=function(){return this.instance_||(this.instance_=new _e),this.instance_},_e.instance_=null,_e}(),defineConfigurable=function(_e,et){for(var rt=0,st=Object.keys(et);rt"u"||!(Element instanceof Object))){if(!(et instanceof getWindowOf(et).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;rt.has(et)||(rt.set(et,new ResizeObservation(et)),this.controller_.addObserver(this),this.controller_.refresh())}},_e.prototype.unobserve=function(et){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(et instanceof getWindowOf(et).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;rt.has(et)&&(rt.delete(et),rt.size||this.controller_.removeObserver(this))}},_e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},_e.prototype.gatherActive=function(){var et=this;this.clearActive(),this.observations_.forEach(function(rt){rt.isActive()&&et.activeObservations_.push(rt)})},_e.prototype.broadcastActive=function(){if(this.hasActive()){var et=this.callbackCtx_,rt=this.activeObservations_.map(function(st){return new ResizeObserverEntry(st.target,st.broadcastRect())});this.callback_.call(et,rt,et),this.clearActive()}},_e.prototype.clearActive=function(){this.activeObservations_.splice(0)},_e.prototype.hasActive=function(){return this.activeObservations_.length>0},_e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function _e(et){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 rt=ResizeObserverController.getInstance(),st=new ResizeObserverSPI(et,rt,this);observers.set(this,st)}return _e}();["observe","unobserve","disconnect"].forEach(function(_e){ResizeObserver$2.prototype[_e]=function(){var et;return(et=observers.get(this))[_e].apply(et,arguments)}});var index$2=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(_e){_e.forEach(function(et){var rt,st=et.target;(rt=elementListeners.get(st))===null||rt===void 0||rt.forEach(function(ct){return ct(st)})})}var resizeObserver=new index$2(onResize);function observe(_e,et){elementListeners.has(_e)||(elementListeners.set(_e,new Set),resizeObserver.observe(_e)),elementListeners.get(_e).add(et)}function unobserve(_e,et){elementListeners.has(_e)&&(elementListeners.get(_e).delete(et),elementListeners.get(_e).size||(resizeObserver.unobserve(_e),elementListeners.delete(_e)))}function _classCallCheck$9(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(_e,et){for(var rt=0;rt_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt1&&arguments[1]!==void 0?arguments[1]:{},rt=[];return React$1.Children.forEach(_e,function(st){st==null&&!et.keepEmpty||(Array.isArray(st)?rt=rt.concat(toArray$e(st)):reactIsExports$1.isFragment(st)&&st.props?rt=rt.concat(toArray$e(st.props.children,et)):rt.push(st))}),rt}var warned={},preMessage=function(et){};function warning$a(_e,et){}function note(_e,et){}function resetWarned(){warned={}}function call(_e,et,rt){!et&&!warned[rt]&&(_e(!1,rt),warned[rt]=!0)}function warningOnce$1(_e,et){call(warning$a,_e,et)}function noteOnce(_e,et){call(note,_e,et)}warningOnce$1.preMessage=preMessage;warningOnce$1.resetWarned=resetWarned;warningOnce$1.noteOnce=noteOnce;function _typeof$e(_e){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$e(_e)}function toPrimitive$1(_e,et){if(_typeof$e(_e)!="object"||!_e)return _e;var rt=_e[Symbol.toPrimitive];if(rt!==void 0){var st=rt.call(_e,et||"default");if(_typeof$e(st)!="object")return st;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function toPropertyKey$1(_e){var et=toPrimitive$1(_e,"string");return _typeof$e(et)=="symbol"?et:String(et)}function _defineProperty$c(_e,et,rt){return et=toPropertyKey$1(et),et in _e?Object.defineProperty(_e,et,{value:rt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=rt,_e}function ownKeys$a(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread2(_e){for(var et=1;et0},_e.prototype.connect_=function(){!isBrowser$2||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(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(){!isBrowser$2||!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(et){var rt=et.propertyName,st=rt===void 0?"":rt,ct=transitionKeys.some(function(ut){return!!~st.indexOf(ut)});ct&&this.refresh()},_e.getInstance=function(){return this.instance_||(this.instance_=new _e),this.instance_},_e.instance_=null,_e}(),defineConfigurable=function(_e,et){for(var rt=0,st=Object.keys(et);rt"u"||!(Element instanceof Object))){if(!(et instanceof getWindowOf(et).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;rt.has(et)||(rt.set(et,new ResizeObservation(et)),this.controller_.addObserver(this),this.controller_.refresh())}},_e.prototype.unobserve=function(et){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(et instanceof getWindowOf(et).Element))throw new TypeError('parameter 1 is not of type "Element".');var rt=this.observations_;rt.has(et)&&(rt.delete(et),rt.size||this.controller_.removeObserver(this))}},_e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},_e.prototype.gatherActive=function(){var et=this;this.clearActive(),this.observations_.forEach(function(rt){rt.isActive()&&et.activeObservations_.push(rt)})},_e.prototype.broadcastActive=function(){if(this.hasActive()){var et=this.callbackCtx_,rt=this.activeObservations_.map(function(st){return new ResizeObserverEntry(st.target,st.broadcastRect())});this.callback_.call(et,rt,et),this.clearActive()}},_e.prototype.clearActive=function(){this.activeObservations_.splice(0)},_e.prototype.hasActive=function(){return this.activeObservations_.length>0},_e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function _e(et){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 rt=ResizeObserverController.getInstance(),st=new ResizeObserverSPI(et,rt,this);observers.set(this,st)}return _e}();["observe","unobserve","disconnect"].forEach(function(_e){ResizeObserver$2.prototype[_e]=function(){var et;return(et=observers.get(this))[_e].apply(et,arguments)}});var index$2=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(_e){_e.forEach(function(et){var rt,st=et.target;(rt=elementListeners.get(st))===null||rt===void 0||rt.forEach(function(ct){return ct(st)})})}var resizeObserver=new index$2(onResize);function observe(_e,et){elementListeners.has(_e)||(elementListeners.set(_e,new Set),resizeObserver.observe(_e)),elementListeners.get(_e).add(et)}function unobserve(_e,et){elementListeners.has(_e)&&(elementListeners.get(_e).delete(et),elementListeners.get(_e).size||(resizeObserver.unobserve(_e),elementListeners.delete(_e)))}function _classCallCheck$9(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(_e,et){for(var rt=0;rt_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var st=rafUUID;function ct(ut){if(ut===0)cleanup(st),et();else{var ft=raf(function(){ct(ut-1)});rafIds.set(st,ft)}}return ct(rt),st};wrapperRaf.cancel=function(_e){var et=rafIds.get(_e);return cleanup(_e),caf(et)};function _arrayWithHoles$3(_e){if(Array.isArray(_e))return _e}function _iterableToArrayLimit$3(_e,et){var rt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(rt!=null){var st,ct,ut,ft,gt=[],xt=!0,$t=!1;try{if(ut=(rt=rt.call(_e)).next,et===0){if(Object(rt)!==rt)return;xt=!1}else for(;!(xt=(st=ut.call(rt)).done)&&(gt.push(st.value),gt.length!==et);xt=!0);}catch(_t){$t=!0,ct=_t}finally{try{if(!xt&&rt.return!=null&&(ft=rt.return(),Object(ft)!==ft))return}finally{if($t)throw ct}}return gt}}function _nonIterableRest$3(){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 _slicedToArray$3(_e,et){return _arrayWithHoles$3(_e)||_iterableToArrayLimit$3(_e,et)||_unsupportedIterableToArray$3(_e,et)||_nonIterableRest$3()}function murmur2(_e){for(var et=0,rt,st=0,ct=_e.length;ct>=4;++st,ct-=4)rt=_e.charCodeAt(st)&255|(_e.charCodeAt(++st)&255)<<8|(_e.charCodeAt(++st)&255)<<16|(_e.charCodeAt(++st)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,et=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(et&65535)*1540483477+((et>>>16)*59797<<16);switch(ct){case 3:et^=(_e.charCodeAt(st+2)&255)<<16;case 2:et^=(_e.charCodeAt(st+1)&255)<<8;case 1:et^=_e.charCodeAt(st)&255,et=(et&65535)*1540483477+((et>>>16)*59797<<16)}return et^=et>>>13,et=(et&65535)*1540483477+((et>>>16)*59797<<16),((et^et>>>15)>>>0).toString(36)}function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function contains$1(_e,et){if(!_e)return!1;if(_e.contains)return _e.contains(et);for(var rt=et;rt;){if(rt===_e)return!0;rt=rt.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=_e.mark;return et?et.startsWith("data-")?et:"data-".concat(et):MARK_KEY}function getContainer(_e){if(_e.attachTo)return _e.attachTo;var et=document.querySelector("head");return et||document.body}function getOrder(_e){return _e==="queue"?"prependQueue":_e?"prepend":"append"}function findStyles(_e){return Array.from((containerCache.get(_e)||_e).children).filter(function(et){return et.tagName==="STYLE"})}function injectCSS(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom$1())return null;var rt=et.csp,st=et.prepend,ct=et.priority,ut=ct===void 0?0:ct,ft=getOrder(st),gt=ft==="prependQueue",xt=document.createElement("style");xt.setAttribute(APPEND_ORDER,ft),gt&&ut&&xt.setAttribute(APPEND_PRIORITY,"".concat(ut)),rt!=null&&rt.nonce&&(xt.nonce=rt==null?void 0:rt.nonce),xt.innerHTML=_e;var $t=getContainer(et),_t=$t.firstChild;if(st){if(gt){var wt=(et.styles||findStyles($t)).filter(function(Tt){if(!["prepend","prependQueue"].includes(Tt.getAttribute(APPEND_ORDER)))return!1;var Rt=Number(Tt.getAttribute(APPEND_PRIORITY)||0);return ut>=Rt});if(wt.length)return $t.insertBefore(xt,wt[wt.length-1].nextSibling),xt}$t.insertBefore(xt,_t)}else $t.appendChild(xt);return xt}function findExistNode(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=getContainer(et);return(et.styles||findStyles(rt)).find(function(st){return st.getAttribute(getMark(et))===_e})}function removeCSS(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=findExistNode(_e,et);if(rt){var st=getContainer(et);st.removeChild(rt)}}function syncRealContainer(_e,et){var rt=containerCache.get(_e);if(!rt||!contains$1(document,rt)){var st=injectCSS("",et),ct=st.parentNode;containerCache.set(_e,ct),_e.removeChild(st)}}function updateCSS(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},st=getContainer(rt),ct=findStyles(st),ut=_objectSpread2(_objectSpread2({},rt),{},{styles:ct});syncRealContainer(st,ut);var ft=findExistNode(et,ut);if(ft){var gt,xt;if((gt=ut.csp)!==null&>!==void 0&>.nonce&&ft.nonce!==((xt=ut.csp)===null||xt===void 0?void 0:xt.nonce)){var $t;ft.nonce=($t=ut.csp)===null||$t===void 0?void 0:$t.nonce}return ft.innerHTML!==_e&&(ft.innerHTML=_e),ft}var _t=injectCSS(_e,ut);return _t.setAttribute(getMark(ut),et),_t}function _objectWithoutPropertiesLoose$3(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}function _objectWithoutProperties$2(_e,et){if(_e==null)return{};var rt=_objectWithoutPropertiesLoose$3(_e,et),st,ct;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(_e);for(ct=0;ct=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function isEqual$1(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=new Set;function ct(ut,ft){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,xt=st.has(ut);if(warningOnce$1(!xt,"Warning: There may be circular references"),xt)return!1;if(ut===ft)return!0;if(rt&>>1)return!1;st.add(ut);var $t=gt+1;if(Array.isArray(ut)){if(!Array.isArray(ft)||ut.length!==ft.length)return!1;for(var _t=0;_t1&&arguments[1]!==void 0?arguments[1]:!1,ft={map:this.cache};return rt.forEach(function(gt){if(!ft)ft=void 0;else{var xt;ft=(xt=ft)===null||xt===void 0||(xt=xt.map)===null||xt===void 0?void 0:xt.get(gt)}}),(st=ft)!==null&&st!==void 0&&st.value&&ut&&(ft.value[1]=this.cacheCallTimes++),(ct=ft)===null||ct===void 0?void 0:ct.value}},{key:"get",value:function(rt){var st;return(st=this.internalGet(rt,!0))===null||st===void 0?void 0:st[0]}},{key:"has",value:function(rt){return!!this.internalGet(rt)}},{key:"set",value:function(rt,st){var ct=this;if(!this.has(rt)){if(this.size()+1>_e.MAX_CACHE_SIZE+_e.MAX_CACHE_OFFSET){var ut=this.keys.reduce(function($t,_t){var wt=_slicedToArray$3($t,2),Tt=wt[1];return ct.internalGet(_t)[1]0,void 0),uuid$8+=1}return _createClass$7(_e,[{key:"getDerivativeToken",value:function(rt){return this.derivatives.reduce(function(st,ct){return ct(rt,st)},void 0)}}]),_e}(),cacheThemes=new ThemeCache;function createTheme(_e){var et=Array.isArray(_e)?_e:[_e];return cacheThemes.has(et)||cacheThemes.set(et,new Theme(et)),cacheThemes.get(et)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(_e,et){for(var rt=resultCache,st=0;st3&&arguments[3]!==void 0?arguments[3]:{},ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ut)return _e;var ft=_objectSpread2(_objectSpread2({},ct),{},(st={},_defineProperty$c(st,ATTR_TOKEN,et),_defineProperty$c(st,ATTR_MARK,rt),st)),gt=Object.keys(ft).map(function(xt){var $t=ft[xt];return $t?"".concat(xt,'="').concat($t,'"'):null}).filter(function(xt){return xt}).join(" ");return"")}var token2CSSVar=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(rt?"".concat(rt,"-"):"").concat(et).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()},serializeCSSVar=function(et,rt,st){return Object.keys(et).length?".".concat(rt).concat(st!=null&&st.scope?".".concat(st.scope):"","{").concat(Object.entries(et).map(function(ct){var ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1];return"".concat(ft,":").concat(gt,";")}).join(""),"}"):""},transformToken=function(et,rt,st){var ct={},ut={};return Object.entries(et).forEach(function(ft){var gt,xt,$t=_slicedToArray$3(ft,2),_t=$t[0],wt=$t[1];if(st!=null&&(gt=st.preserve)!==null&>!==void 0&>[_t])ut[_t]=wt;else if((typeof wt=="string"||typeof wt=="number")&&!(st!=null&&(xt=st.ignore)!==null&&xt!==void 0&&xt[_t])){var Tt,Rt=token2CSSVar(_t,st==null?void 0:st.prefix);ct[Rt]=typeof wt=="number"&&!(st!=null&&(Tt=st.unitless)!==null&&Tt!==void 0&&Tt[_t])?"".concat(wt,"px"):String(wt),ut[_t]="var(".concat(Rt,")")}}),[ut,serializeCSSVar(ct,rt,{scope:st==null?void 0:st.scope})]},useInternalLayoutEffect=canUseDom$1()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect$3=function(et,rt){var st=reactExports.useRef(!0);useInternalLayoutEffect(function(){return et(st.current)},rt),useInternalLayoutEffect(function(){return st.current=!1,function(){st.current=!0}},[])},useLayoutUpdateEffect=function(et,rt){useLayoutEffect$3(function(st){if(!st)return et()},rt)},fullClone$3=_objectSpread2({},React$2),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function(et,rt,st){reactExports.useMemo(et,st),useLayoutEffect$3(function(){return rt(!0)},st)},useCompatibleInsertionEffect=useInsertionEffect$1?function(_e,et,rt){return useInsertionEffect$1(function(){return _e(),et()},rt)}:useInsertionEffectPolyfill,fullClone$2=_objectSpread2({},React$2),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function(et){var rt=[],st=!1;function ct(ut){st||rt.push(ut)}return reactExports.useEffect(function(){return st=!1,function(){st=!0,rt.length&&rt.forEach(function(ut){return ut()})}},et),ct},useRun=function(){return function(et){et()}},useEffectCleanupRegister=typeof useInsertionEffect<"u"?useCleanupRegister:useRun;function useGlobalCache(_e,et,rt,st,ct){var ut=reactExports.useContext(StyleContext),ft=ut.cache,gt=[_e].concat(_toConsumableArray$3(et)),xt=pathKey(gt),$t=useEffectCleanupRegister([xt]),_t=function(It){ft.opUpdate(xt,function(At){var jt=At||[void 0,void 0],Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=kt===void 0?0:kt,Ht=Nt[1],Wt=Ht,Vt=Wt||rt(),qt=[Ft,Vt];return It?It(qt):qt})};reactExports.useMemo(function(){_t()},[xt]);var wt=ft.opGet(xt),Tt=wt[1];return useCompatibleInsertionEffect(function(){ct==null||ct(Tt)},function(Rt){return _t(function(It){var At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1];return Rt&&jt===0&&(ct==null||ct(Tt)),[jt+1,Nt]}),function(){ft.opUpdate(xt,function(It){var At=It||[],jt=_slicedToArray$3(At,2),Nt=jt[0],kt=Nt===void 0?0:Nt,Ft=jt[1],Ht=kt-1;return Ht===0?($t(function(){(Rt||!ft.opGet(xt))&&(st==null||st(Ft,!1))}),null):[kt-1,Ft]})}},[xt]),Tt}var EMPTY_OVERRIDE={},hashPrefix="css",tokenKeys=new Map;function recordCleanToken(_e){tokenKeys.set(_e,(tokenKeys.get(_e)||0)+1)}function removeStyleTags(_e,et){if(typeof document<"u"){var rt=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(_e,'"]'));rt.forEach(function(st){if(st[CSS_IN_JS_INSTANCE]===et){var ct;(ct=st.parentNode)===null||ct===void 0||ct.removeChild(st)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(_e,et){tokenKeys.set(_e,(tokenKeys.get(_e)||0)-1);var rt=Array.from(tokenKeys.keys()),st=rt.filter(function(ct){var ut=tokenKeys.get(ct)||0;return ut<=0});rt.length-st.length>TOKEN_THRESHOLD&&st.forEach(function(ct){removeStyleTags(ct,et),tokenKeys.delete(ct)})}var getComputedToken$1=function(et,rt,st,ct){var ut=st.getDerivativeToken(et),ft=_objectSpread2(_objectSpread2({},ut),rt);return ct&&(ft=ct(ft)),ft},TOKEN_PREFIX="token";function useCacheToken(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},st=reactExports.useContext(StyleContext),ct=st.cache.instanceId,ut=st.container,ft=rt.salt,gt=ft===void 0?"":ft,xt=rt.override,$t=xt===void 0?EMPTY_OVERRIDE:xt,_t=rt.formatToken,wt=rt.getComputedToken,Tt=rt.cssVar,Rt=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray$3(et)))},et),It=flattenToken(Rt),At=flattenToken($t),jt=Tt?flattenToken(Tt):"",Nt=useGlobalCache(TOKEN_PREFIX,[gt,_e.id,It,At,jt],function(){var kt,Ft=wt?wt(Rt,$t,_e):getComputedToken$1(Rt,$t,_e,_t),Ht=_objectSpread2({},Ft),Wt="";if(Tt){var Vt=transformToken(Ft,Tt.key,{prefix:Tt.prefix,ignore:Tt.ignore,unitless:Tt.unitless,preserve:Tt.preserve}),qt=_slicedToArray$3(Vt,2);Ft=qt[0],Wt=qt[1]}var Gt=token2key(Ft,gt);Ft._tokenKey=Gt,Ht._tokenKey=token2key(Ht,gt);var Xt=(kt=Tt==null?void 0:Tt.key)!==null&&kt!==void 0?kt:Gt;Ft._themeKey=Xt,recordCleanToken(Xt);var Zt="".concat(hashPrefix,"-").concat(murmur2(Gt));return Ft._hashId=Zt,[Ft,Zt,Ht,Wt,(Tt==null?void 0:Tt.key)||""]},function(kt){cleanTokenStyle(kt[0]._themeKey,ct)},function(kt){var Ft=_slicedToArray$3(kt,4),Ht=Ft[0],Wt=Ft[3];if(Tt&&Wt){var Vt=updateCSS(Wt,murmur2("css-variables-".concat(Ht._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:ut,priority:-999});Vt[CSS_IN_JS_INSTANCE]=ct,Vt.setAttribute(ATTR_TOKEN,Ht._themeKey)}});return Nt}var extract$2=function(et,rt,st){var ct=_slicedToArray$3(et,5),ut=ct[2],ft=ct[3],gt=ct[4],xt=st||{},$t=xt.plain;if(!ft)return null;var _t=ut._tokenKey,wt=-999,Tt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(wt)},Rt=toStyleStr(ft,gt,_t,Tt,$t);return[wt,_t,Rt]},unitlessKeys={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},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from$1=String.fromCharCode;function trim$1(_e){return _e.trim()}function replace(_e,et,rt){return _e.replace(et,rt)}function indexof(_e,et,rt){return _e.indexOf(et,rt)}function charat(_e,et){return _e.charCodeAt(et)|0}function substr(_e,et,rt){return _e.slice(et,rt)}function strlen(_e){return _e.length}function sizeof(_e){return _e.length}function append(_e,et){return et.push(_e),_e}var line=1,column=1,length=0,position=0,character=0,characters="";function node(_e,et,rt,st,ct,ut,ft,gt){return{value:_e,root:et,parent:rt,type:st,props:ct,children:ut,line,column,length:ft,return:"",siblings:gt}}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$2(character)>3?"":" "}function escaping(_e,et){for(;--et&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(_e,caret()+(et<6&&peek()==32&&next()==32))}function delimiter(_e){for(;next();)switch(character){case _e:return position;case 34:case 39:_e!==34&&_e!==39&&delimiter(character);break;case 40:_e===41&&delimiter(_e);break;case 92:next();break}return position}function commenter(_e,et){for(;next()&&_e+character!==57;)if(_e+character===84&&peek()===47)break;return"/*"+slice(et,position-1)+"*"+from$1(_e===47?_e:next())}function identifier(_e){for(;!token$2(peek());)next();return slice(_e,position)}function compile$2(_e){return dealloc(parse$3("",null,null,null,[""],_e=alloc(_e),0,[0],_e))}function parse$3(_e,et,rt,st,ct,ut,ft,gt,xt){for(var $t=0,_t=0,wt=ft,Tt=0,Rt=0,It=0,At=1,jt=1,Nt=1,kt=0,Ft="",Ht=ct,Wt=ut,Vt=st,qt=Ft;jt;)switch(It=kt,kt=next()){case 40:if(It!=108&&charat(qt,wt-1)==58){indexof(qt+=replace(delimit(kt),"&","&\f"),"&\f",abs$2($t?gt[$t-1]:0))!=-1&&(Nt=-1);break}case 34:case 39:case 91:qt+=delimit(kt);break;case 9:case 10:case 13:case 32:qt+=whitespace$1(It);break;case 92:qt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),et,rt,xt),xt);break;default:qt+="/"}break;case 123*At:gt[$t++]=strlen(qt)*Nt;case 125*At:case 59:case 0:switch(kt){case 0:case 125:jt=0;case 59+_t:Nt==-1&&(qt=replace(qt,/\f/g,"")),Rt>0&&strlen(qt)-wt&&append(Rt>32?declaration(qt+";",st,rt,wt-1,xt):declaration(replace(qt," ","")+";",st,rt,wt-2,xt),xt);break;case 59:qt+=";";default:if(append(Vt=ruleset(qt,et,rt,$t,_t,ct,gt,Ft,Ht=[],Wt=[],wt,ut),ut),kt===123)if(_t===0)parse$3(qt,et,Vt,Vt,Ht,ut,wt,gt,Wt);else switch(Tt===99&&charat(qt,3)===110?100:Tt){case 100:case 108:case 109:case 115:parse$3(_e,Vt,Vt,st&&append(ruleset(_e,Vt,Vt,0,0,ct,gt,Ft,ct,Ht=[],wt,Wt),Wt),ct,Wt,wt,gt,st?Ht:Wt);break;default:parse$3(qt,Vt,Vt,Vt,[""],Wt,0,gt,Wt)}}$t=_t=Rt=0,At=Nt=1,Ft=qt="",wt=ft;break;case 58:wt=1+strlen(qt),Rt=It;default:if(At<1){if(kt==123)--At;else if(kt==125&&At++==0&&prev()==125)continue}switch(qt+=from$1(kt),kt*At){case 38:Nt=_t>0?1:(qt+="\f",-1);break;case 44:gt[$t++]=(strlen(qt)-1)*Nt,Nt=1;break;case 64:peek()===45&&(qt+=delimit(next())),Tt=peek(),_t=wt=strlen(Ft=qt+=identifier(caret())),kt++;break;case 45:It===45&&strlen(qt)==2&&(At=0)}}return ut}function ruleset(_e,et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt){for(var Tt=ct-1,Rt=ct===0?ut:[""],It=sizeof(Rt),At=0,jt=0,Nt=0;At0?Rt[kt]+" "+Ft:replace(Ft,/&\f/g,Rt[kt])))&&(xt[Nt++]=Ht);return node(_e,et,rt,ct===0?RULESET:gt,xt,$t,_t,wt)}function comment(_e,et,rt,st){return node(_e,et,rt,COMMENT,from$1(char()),substr(_e,2,-2),0,st)}function declaration(_e,et,rt,st,ct){return node(_e,et,rt,DECLARATION,substr(_e,0,st),substr(_e,st+1,-1),st,ct)}function serialize$2(_e,et){for(var rt="",st=0;st<_e.length;st++)rt+=et(_e[st],st,_e,et)||"";return rt}function stringify$4(_e,et,rt,st){switch(_e.type){case LAYER:if(_e.children.length)break;case IMPORT:case DECLARATION:return _e.return=_e.return||_e.value;case COMMENT:return"";case KEYFRAMES:return _e.return=_e.value+"{"+serialize$2(_e.children,st)+"}";case RULESET:if(!strlen(_e.value=_e.props.join(",")))return""}return strlen(rt=serialize$2(_e.children,st))?_e.return=_e.value+"{"+rt+"}":""}function lintWarning(_e,et){var rt=et.path,st=et.parentSelectors;warningOnce$1(!1,"[Ant Design CSS-in-JS] ".concat(rt?"Error in ".concat(rt,": "):"").concat(_e).concat(st.length?" Selector: ".concat(st.join(" | ")):""))}function isConcatSelector(_e){var et,rt=((et=_e.match(/:not\(([^)]*)\)/))===null||et===void 0?void 0:et[1])||"",st=rt.split(/(\[[^[]*])|(?=[.#])/).filter(function(ct){return ct});return st.length>1}function parsePath$1(_e){return _e.parentSelectors.reduce(function(et,rt){return et?rt.includes("&")?rt.replace(/&/g,et):"".concat(et," ").concat(rt):rt},"")}var linter$3=function(et,rt,st){var ct=parsePath$1(st),ut=ct.match(/:not\([^)]*\)/g)||[];ut.length>0&&ut.some(isConcatSelector)&&lintWarning("Concat ':not' selector not support in legacy browsers.",st)},linter$2=function(et,rt,st){switch(et){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":lintWarning("You seem to be using non-logical property '".concat(et,"' 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."),st);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof rt=="string"){var ct=rt.split(" ").map(function(gt){return gt.trim()});ct.length===4&&ct[1]!==ct[3]&&lintWarning("You seem to be using '".concat(et,"' property with different left ").concat(et," and right ").concat(et,", 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."),st)}return;case"clear":case"textAlign":(rt==="left"||rt==="right")&&lintWarning("You seem to be using non-logical value '".concat(rt,"' of ").concat(et,", 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."),st);return;case"borderRadius":if(typeof rt=="string"){var ut=rt.split("/").map(function(gt){return gt.trim()}),ft=ut.reduce(function(gt,xt){if(gt)return gt;var $t=xt.split(" ").map(function(_t){return _t.trim()});return $t.length>=2&&$t[0]!==$t[1]||$t.length===3&&$t[1]!==$t[2]||$t.length===4&&$t[2]!==$t[3]?!0:gt},!1);ft&&lintWarning("You seem to be using non-logical value '".concat(rt,"' of ").concat(et,", 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."),st)}return}},linter$1=function(et,rt,st){(typeof rt=="string"&&/NaN/g.test(rt)||Number.isNaN(rt))&&lintWarning("Unexpected 'NaN' in property '".concat(et,": ").concat(rt,"'."),st)},linter=function(et,rt,st){st.parentSelectors.some(function(ct){var ut=ct.split(",");return ut.some(function(ft){return ft.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",st)},ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__";function serialize$1(_e){return Object.keys(_e).map(function(et){var rt=_e[et];return"".concat(et,":").concat(rt)}).join(";")}var cachePathMap,fromCSSFile=!0;function prepare(){if(!cachePathMap&&(cachePathMap={},canUseDom$1())){var _e=document.createElement("div");_e.className=ATTR_CACHE_MAP,_e.style.position="fixed",_e.style.visibility="hidden",_e.style.top="-9999px",document.body.appendChild(_e);var et=getComputedStyle(_e).content||"";et=et.replace(/^"/,"").replace(/"$/,""),et.split(";").forEach(function(ct){var ut=ct.split(":"),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];cachePathMap[gt]=xt});var rt=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if(rt){var st;fromCSSFile=!1,(st=rt.parentNode)===null||st===void 0||st.removeChild(rt)}document.body.removeChild(_e)}}function existPath(_e){return prepare(),!!cachePathMap[_e]}function getStyleAndHash(_e){var et=cachePathMap[_e],rt=null;if(et&&canUseDom$1())if(fromCSSFile)rt=CSS_FILE_STYLE;else{var st=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[_e],'"]'));st?rt=st.innerHTML:delete cachePathMap[_e]}return[rt,et]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(_e){var et=serialize$2(compile$2(_e),stringify$4);return et.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(_e){return _typeof$e(_e)==="object"&&_e&&(SKIP_CHECK in _e||MULTI_VALUE in _e)}function injectSelectorHash(_e,et,rt){if(!et)return _e;var st=".".concat(et),ct=rt==="low"?":where(".concat(st,")"):st,ut=_e.split(",").map(function(ft){var gt,xt=ft.trim().split(/\s+/),$t=xt[0]||"",_t=((gt=$t.match(/^\w+/))===null||gt===void 0?void 0:gt[0])||"";return $t="".concat(_t).concat(ct).concat($t.slice(_t.length)),[$t].concat(_toConsumableArray$3(xt.slice(1))).join(" ")});return ut.join(",")}var parseStyle=function _e(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},ct=st.root,ut=st.injectHash,ft=st.parentSelectors,gt=rt.hashId,xt=rt.layer;rt.path;var $t=rt.hashPriority,_t=rt.transformers,wt=_t===void 0?[]:_t;rt.linters;var Tt="",Rt={};function It(Ft){var Ht=Ft.getName(gt);if(!Rt[Ht]){var Wt=_e(Ft.style,rt,{root:!1,parentSelectors:ft}),Vt=_slicedToArray$3(Wt,1),qt=Vt[0];Rt[Ht]="@keyframes ".concat(Ft.getName(gt)).concat(qt)}}function At(Ft){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Ft.forEach(function(Wt){Array.isArray(Wt)?At(Wt,Ht):Wt&&Ht.push(Wt)}),Ht}var jt=At(Array.isArray(et)?et:[et]);if(jt.forEach(function(Ft){var Ht=typeof Ft=="string"&&!ct?{}:Ft;if(typeof Ht=="string")Tt+="".concat(Ht,` -`);else if(Ht._keyframe)It(Ht);else{var Wt=wt.reduce(function(Vt,qt){var Gt;return(qt==null||(Gt=qt.visit)===null||Gt===void 0?void 0:Gt.call(qt,Vt))||Vt},Ht);Object.keys(Wt).forEach(function(Vt){var qt=Wt[Vt];if(_typeof$e(qt)==="object"&&qt&&(Vt!=="animationName"||!qt._keyframe)&&!isCompoundCSSProperty(qt)){var Gt=!1,Xt=Vt.trim(),Zt=!1;(ct||ut)&>?Xt.startsWith("@")?Gt=!0:Xt=injectSelectorHash(Vt,gt,$t):ct&&!gt&&(Xt==="&"||Xt==="")&&(Xt="",Zt=!0);var lr=_e(qt,rt,{root:Zt,injectHash:Gt,parentSelectors:[].concat(_toConsumableArray$3(ft),[Xt])}),er=_slicedToArray$3(lr,2),cr=er[0],ur=er[1];Rt=_objectSpread2(_objectSpread2({},Rt),ur),Tt+="".concat(Xt).concat(cr)}else{let fr=function(dr,yr){var $r=dr.replace(/[A-Z]/g,function(mr){return"-".concat(mr.toLowerCase())}),Er=yr;!unitlessKeys[dr]&&typeof Er=="number"&&Er!==0&&(Er="".concat(Er,"px")),dr==="animationName"&&yr!==null&&yr!==void 0&&yr._keyframe&&(It(yr),Er=yr.getName(gt)),Tt+="".concat($r,":").concat(Er,";")};var pr,hr=(pr=qt==null?void 0:qt.value)!==null&&pr!==void 0?pr:qt;_typeof$e(qt)==="object"&&qt!==null&&qt!==void 0&&qt[MULTI_VALUE]&&Array.isArray(hr)?hr.forEach(function(dr){fr(Vt,dr)}):fr(Vt,hr)}})}}),!ct)Tt="{".concat(Tt,"}");else if(xt&&supportLayer()){var Nt=xt.split(","),kt=Nt[Nt.length-1].trim();Tt="@layer ".concat(kt," {").concat(Tt,"}"),Nt.length>1&&(Tt="@layer ".concat(xt,"{%%%:%}").concat(Tt))}return[Tt,Rt]};function uniqueHash(_e,et){return murmur2("".concat(_e.join("%")).concat(et))}function Empty$3(){return null}var STYLE_PREFIX="style";function useStyleRegister(_e,et){var rt=_e.token,st=_e.path,ct=_e.hashId,ut=_e.layer,ft=_e.nonce,gt=_e.clientOnly,xt=_e.order,$t=xt===void 0?0:xt,_t=reactExports.useContext(StyleContext),wt=_t.autoClear;_t.mock;var Tt=_t.defaultCache,Rt=_t.hashPriority,It=_t.container,At=_t.ssrInline,jt=_t.transformers,Nt=_t.linters,kt=_t.cache,Ft=rt._tokenKey,Ht=[Ft].concat(_toConsumableArray$3(st)),Wt=isClientSide,Vt=useGlobalCache(STYLE_PREFIX,Ht,function(){var lr=Ht.join("|");if(existPath(lr)){var er=getStyleAndHash(lr),cr=_slicedToArray$3(er,2),ur=cr[0],pr=cr[1];if(ur)return[ur,Ft,pr,{},gt,$t]}var hr=et(),fr=parseStyle(hr,{hashId:ct,hashPriority:Rt,layer:ut,path:st.join("-"),transformers:jt,linters:Nt}),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1],Er=normalizeStyle(yr),mr=uniqueHash(Ht,Er);return[Er,Ft,mr,$r,gt,$t]},function(lr,er){var cr=_slicedToArray$3(lr,3),ur=cr[2];(er||wt)&&isClientSide&&removeCSS(ur,{mark:ATTR_MARK})},function(lr){var er=_slicedToArray$3(lr,4),cr=er[0];er[1];var ur=er[2],pr=er[3];if(Wt&&cr!==CSS_FILE_STYLE){var hr={mark:ATTR_MARK,prepend:"queue",attachTo:It,priority:$t},fr=typeof ft=="function"?ft():ft;fr&&(hr.csp={nonce:fr});var dr=updateCSS(cr,ur,hr);dr[CSS_IN_JS_INSTANCE]=kt.instanceId,dr.setAttribute(ATTR_TOKEN,Ft),Object.keys(pr).forEach(function(yr){updateCSS(normalizeStyle(pr[yr]),"_effect-".concat(yr),hr)})}}),qt=_slicedToArray$3(Vt,3),Gt=qt[0],Xt=qt[1],Zt=qt[2];return function(lr){var er;if(!At||Wt||!Tt)er=reactExports.createElement(Empty$3,null);else{var cr;er=reactExports.createElement("style",_extends$b({},(cr={},_defineProperty$c(cr,ATTR_TOKEN,Xt),_defineProperty$c(cr,ATTR_MARK,Zt),cr),{dangerouslySetInnerHTML:{__html:Gt}}))}return reactExports.createElement(reactExports.Fragment,null,er,lr)}}var extract$1=function(et,rt,st){var ct=_slicedToArray$3(et,6),ut=ct[0],ft=ct[1],gt=ct[2],xt=ct[3],$t=ct[4],_t=ct[5],wt=st||{},Tt=wt.plain;if($t)return null;var Rt=ut,It={"data-rc-order":"prependQueue","data-rc-priority":"".concat(_t)};return Rt=toStyleStr(ut,ft,gt,It,Tt),xt&&Object.keys(xt).forEach(function(At){if(!rt[At]){rt[At]=!0;var jt=normalizeStyle(xt[At]);Rt+=toStyleStr(jt,ft,"_effect-".concat(At),It,Tt)}}),[_t,gt,Rt]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function(et,rt){var st=et.key,ct=et.prefix,ut=et.unitless,ft=et.ignore,gt=et.token,xt=et.scope,$t=xt===void 0?"":xt,_t=reactExports.useContext(StyleContext),wt=_t.cache.instanceId,Tt=_t.container,Rt=gt._tokenKey,It=[].concat(_toConsumableArray$3(et.path),[st,$t,Rt]),At=useGlobalCache(CSS_VAR_PREFIX,It,function(){var jt=rt(),Nt=transformToken(jt,st,{prefix:ct,unitless:ut,ignore:ft,scope:$t}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=uniqueHash(It,Ht);return[Ft,Ht,Wt,st]},function(jt){var Nt=_slicedToArray$3(jt,3),kt=Nt[2];isClientSide&&removeCSS(kt,{mark:ATTR_MARK})},function(jt){var Nt=_slicedToArray$3(jt,3),kt=Nt[1],Ft=Nt[2];if(kt){var Ht=updateCSS(kt,Ft,{mark:ATTR_MARK,prepend:"queue",attachTo:Tt,priority:-999});Ht[CSS_IN_JS_INSTANCE]=wt,Ht.setAttribute(ATTR_TOKEN,st)}});return At},extract=function(et,rt,st){var ct=_slicedToArray$3(et,4),ut=ct[1],ft=ct[2],gt=ct[3],xt=st||{},$t=xt.plain;if(!ut)return null;var _t=-999,wt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(_t)},Tt=toStyleStr(ut,gt,ft,wt,$t);return[_t,ft,Tt]},_ExtractStyleFns,ExtractStyleFns=(_ExtractStyleFns={},_defineProperty$c(_ExtractStyleFns,STYLE_PREFIX,extract$1),_defineProperty$c(_ExtractStyleFns,TOKEN_PREFIX,extract$2),_defineProperty$c(_ExtractStyleFns,CSS_VAR_PREFIX,extract),_ExtractStyleFns);function isNotNull(_e){return _e!==null}function extractStyle(_e,et){var rt=typeof et=="boolean"?{plain:et}:et||{},st=rt.plain,ct=st===void 0?!1:st,ut=rt.types,ft=ut===void 0?["style","token","cssVar"]:ut,gt=new RegExp("^(".concat((typeof ft=="string"?[ft]:ft).join("|"),")%")),xt=Array.from(_e.cache.keys()).filter(function(Tt){return gt.test(Tt)}),$t={},_t={},wt="";return xt.map(function(Tt){var Rt=Tt.replace(gt,"").replace(/%/g,"|"),It=Tt.split("%"),At=_slicedToArray$3(It,1),jt=At[0],Nt=ExtractStyleFns[jt],kt=Nt(_e.cache.get(Tt)[1],$t,{plain:ct});if(!kt)return null;var Ft=_slicedToArray$3(kt,3),Ht=Ft[0],Wt=Ft[1],Vt=Ft[2];return Tt.startsWith("style")&&(_t[Rt]=Wt),[Ht,Vt]}).filter(isNotNull).sort(function(Tt,Rt){var It=_slicedToArray$3(Tt,1),At=It[0],jt=_slicedToArray$3(Rt,1),Nt=jt[0];return At-Nt}).forEach(function(Tt){var Rt=_slicedToArray$3(Tt,2),It=Rt[1];wt+=It}),wt+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serialize$1(_t),'";}'),void 0,void 0,_defineProperty$c({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),ct),wt}var Keyframe=function(){function _e(et,rt){_classCallCheck$9(this,_e),_defineProperty$c(this,"name",void 0),_defineProperty$c(this,"style",void 0),_defineProperty$c(this,"_keyframe",!0),this.name=et,this.style=rt}return _createClass$7(_e,[{key:"getName",value:function(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return rt?"".concat(rt,"-").concat(this.name):this.name}}]),_e}();function splitValues(_e){if(typeof _e=="number")return[[_e],!1];var et=String(_e).trim(),rt=et.match(/(.*)(!important)/),st=(rt?rt[1]:et).trim().split(/\s+/),ct="",ut=0;return[st.reduce(function(ft,gt){if(gt.includes("(")||gt.includes(")")){var xt=gt.split("(").length-1,$t=gt.split(")").length-1;ut+=xt-$t}return ut===0?(ft.push(ct+gt),ct=""):ut>0&&(ct+=gt),ft},[]),!!rt]}function noSplit(_e){return _e.notSplit=!0,_e}var keyMap={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:noSplit(["borderTop","borderBottom"]),borderBlockStart:noSplit(["borderTop"]),borderBlockEnd:noSplit(["borderBottom"]),borderInline:noSplit(["borderLeft","borderRight"]),borderInlineStart:noSplit(["borderLeft"]),borderInlineEnd:noSplit(["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 wrapImportantAndSkipCheck(_e,et){var rt=_e;return et&&(rt="".concat(rt," !important")),{_skip_check_:!0,value:rt}}var transform$1={visit:function(et){var rt={};return Object.keys(et).forEach(function(st){var ct=et[st],ut=keyMap[st];if(ut&&(typeof ct=="number"||typeof ct=="string")){var ft=splitValues(ct),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];ut.length&&ut.notSplit?ut.forEach(function(_t){rt[_t]=wrapImportantAndSkipCheck(ct,$t)}):ut.length===1?rt[ut[0]]=wrapImportantAndSkipCheck(ct,$t):ut.length===2?ut.forEach(function(_t,wt){var Tt;rt[_t]=wrapImportantAndSkipCheck((Tt=xt[wt])!==null&&Tt!==void 0?Tt:xt[0],$t)}):ut.length===4?ut.forEach(function(_t,wt){var Tt,Rt;rt[_t]=wrapImportantAndSkipCheck((Tt=(Rt=xt[wt])!==null&&Rt!==void 0?Rt:xt[wt-2])!==null&&Tt!==void 0?Tt:xt[0],$t)}):rt[st]=ct}else rt[st]=ct}),rt}},pxRegex=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function toFixed$1(_e,et){var rt=Math.pow(10,et+1),st=Math.floor(_e*rt);return Math.round(st/10)*10/rt}var transform=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},rt=et.rootValue,st=rt===void 0?16:rt,ct=et.precision,ut=ct===void 0?5:ct,ft=et.mediaQuery,gt=ft===void 0?!1:ft,xt=function(wt,Tt){if(!Tt)return wt;var Rt=parseFloat(Tt);if(Rt<=1)return wt;var It=toFixed$1(Rt/st,ut);return"".concat(It,"rem")},$t=function(wt){var Tt=_objectSpread2({},wt);return Object.entries(wt).forEach(function(Rt){var It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1];if(typeof jt=="string"&&jt.includes("px")){var Nt=jt.replace(pxRegex,xt);Tt[At]=Nt}!unitlessKeys[At]&&typeof jt=="number"&&jt!==0&&(Tt[At]="".concat(jt,"px").replace(pxRegex,xt));var kt=At.trim();if(kt.startsWith("@")&&kt.includes("px")&>){var Ft=At.replace(pxRegex,xt);Tt[Ft]=Tt[At],delete Tt[At]}}),Tt};return{visit:$t}},_experimental={supportModernCSS:function(){return supportWhere()&&supportLogicProps()}};const es$2=Object.defineProperty({__proto__:null,Keyframes:Keyframe,NaNLinter:linter$1,StyleProvider,Theme,_experimental,createCache,createTheme,extractStyle,getComputedToken:getComputedToken$1,legacyLogicalPropertiesTransformer:transform$1,legacyNotSelectorLinter:linter$3,logicalPropertiesLinter:linter$2,parentSelectorLinter:linter,px2remTransformer:transform,token2CSSVar,unit:unit$1,useCSSVarRegister,useCacheToken,useStyleRegister},Symbol.toStringTag,{value:"Module"});var IconContext$5=reactExports.createContext({});function _toArray(_e){return _arrayWithHoles$3(_e)||_iterableToArray$3(_e)||_unsupportedIterableToArray$3(_e)||_nonIterableRest$3()}function get$7(_e,et){for(var rt=_e,st=0;st3&&arguments[3]!==void 0?arguments[3]:!1;return et.length&&st&&rt===void 0&&!get$7(_e,et.slice(0,-1))?_e:internalSet(_e,et,rt,st)}function isObject$i(_e){return _typeof$e(_e)==="object"&&_e!==null&&Object.getPrototypeOf(_e)===Object.prototype}function createEmpty(_e){return Array.isArray(_e)?[]:{}}var keys$7=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function merge$8(){for(var _e=arguments.length,et=new Array(_e),rt=0;rt<_e;rt++)et[rt]=arguments[rt];var st=createEmpty(et[0]);return et.forEach(function(ct){function ut(ft,gt){var xt=new Set(gt),$t=get$7(ct,ft),_t=Array.isArray($t);if(_t||isObject$i($t)){if(!xt.has($t)){xt.add($t);var wt=get$7(st,ft);_t?st=set$2(st,ft,[]):(!wt||_typeof$e(wt)!=="object")&&(st=set$2(st,ft,createEmpty($t))),keys$7($t).forEach(function(Tt){ut([].concat(_toConsumableArray$3(ft),[Tt]),xt)})}}else st=set$2(st,ft,$t)}ut([])}),st}function noop$7(){}const WarningContext=reactExports.createContext({}),devUseWarning=()=>{const _e=()=>{};return _e.deprecated=noop$7,_e},ValidateMessagesContext=reactExports.createContext(void 0);var locale$a={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"},locale$9={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 locale$8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},TimePicker$3=locale$8,locale$7={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"]},locale$9),timePickerLocale:Object.assign({},TimePicker$3)},enUS$2=locale$7,typeTemplate$2="${label} is not a valid ${type}",localeValues$1={locale:"en",Pagination:locale$a,DatePicker:enUS$2,TimePicker:TimePicker$3,Calendar:enUS$2,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",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"},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:typeTemplate$2,method:typeTemplate$2,array:typeTemplate$2,object:typeTemplate$2,number:typeTemplate$2,date:typeTemplate$2,boolean:typeTemplate$2,integer:typeTemplate$2,float:typeTemplate$2,regexp:typeTemplate$2,email:typeTemplate$2,url:typeTemplate$2,hex:typeTemplate$2},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"}};let runtimeLocale=Object.assign({},localeValues$1.Modal),localeList=[];const generateLocale=()=>localeList.reduce((_e,et)=>Object.assign(Object.assign({},_e),et),localeValues$1.Modal);function changeConfirmLocale(_e){if(_e){const et=Object.assign({},_e);return localeList.push(et),runtimeLocale=generateLocale(),()=>{localeList=localeList.filter(rt=>rt!==et),runtimeLocale=generateLocale()}}runtimeLocale=Object.assign({},localeValues$1.Modal)}function getConfirmLocale(){return runtimeLocale}const LocaleContext=reactExports.createContext(void 0),LocaleContext$1=LocaleContext,useLocale$3=(_e,et)=>{const rt=reactExports.useContext(LocaleContext$1),st=reactExports.useMemo(()=>{var ut;const ft=et||localeValues$1[_e],gt=(ut=rt==null?void 0:rt[_e])!==null&&ut!==void 0?ut:{};return Object.assign(Object.assign({},typeof ft=="function"?ft():ft),gt||{})},[_e,et,rt]),ct=reactExports.useMemo(()=>{const ut=rt==null?void 0:rt.locale;return rt!=null&&rt.exist&&!ut?localeValues$1.locale:ut},[rt]);return[st,ct]},ANT_MARK="internalMark",LocaleProvider=_e=>{const{locale:et={},children:rt,_ANT_MARK__:st}=_e;reactExports.useEffect(()=>changeConfirmLocale(et&&et.Modal),[et]);const ct=reactExports.useMemo(()=>Object.assign(Object.assign({},et),{exist:!0}),[et]);return reactExports.createElement(LocaleContext$1.Provider,{value:ct},rt)},LocaleProvider$1=LocaleProvider;function bound01$1(_e,et){isOnePointZero$1(_e)&&(_e="100%");var rt=isPercentage$1(_e);return _e=et===360?_e:Math.min(et,Math.max(0,parseFloat(_e))),rt&&(_e=parseInt(String(_e*et),10)/100),Math.abs(_e-et)<1e-6?1:(et===360?_e=(_e<0?_e%et+et:_e%et)/parseFloat(String(et)):_e=_e%et/parseFloat(String(et)),_e)}function clamp01$1(_e){return Math.min(1,Math.max(0,_e))}function isOnePointZero$1(_e){return typeof _e=="string"&&_e.indexOf(".")!==-1&&parseFloat(_e)===1}function isPercentage$1(_e){return typeof _e=="string"&&_e.indexOf("%")!==-1}function boundAlpha$1(_e){return _e=parseFloat(_e),(isNaN(_e)||_e<0||_e>1)&&(_e=1),_e}function convertToPercentage$1(_e){return _e<=1?"".concat(Number(_e)*100,"%"):_e}function pad2$1(_e){return _e.length===1?"0"+_e:String(_e)}function rgbToRgb$1(_e,et,rt){return{r:bound01$1(_e,255)*255,g:bound01$1(et,255)*255,b:bound01$1(rt,255)*255}}function rgbToHsl$1(_e,et,rt){_e=bound01$1(_e,255),et=bound01$1(et,255),rt=bound01$1(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut=0,ft=0,gt=(st+ct)/2;if(st===ct)ft=0,ut=0;else{var xt=st-ct;switch(ft=gt>.5?xt/(2-st-ct):xt/(st+ct),st){case _e:ut=(et-rt)/xt+(et1&&(rt-=1),rt<1/6?_e+(et-_e)*(6*rt):rt<1/2?et:rt<2/3?_e+(et-_e)*(2/3-rt)*6:_e}function hslToRgb$1(_e,et,rt){var st,ct,ut;if(_e=bound01$1(_e,360),et=bound01$1(et,100),rt=bound01$1(rt,100),et===0)ct=rt,ut=rt,st=rt;else{var ft=rt<.5?rt*(1+et):rt+et-rt*et,gt=2*rt-ft;st=hue2rgb(gt,ft,_e+1/3),ct=hue2rgb(gt,ft,_e),ut=hue2rgb(gt,ft,_e-1/3)}return{r:st*255,g:ct*255,b:ut*255}}function rgbToHsv$1(_e,et,rt){_e=bound01$1(_e,255),et=bound01$1(et,255),rt=bound01$1(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut=0,ft=st,gt=st-ct,xt=st===0?0:gt/st;if(st===ct)ut=0;else{switch(st){case _e:ut=(et-rt)/gt+(et>16,g:(_e&65280)>>8,b:_e&255}}var names$1={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 inputToRGB$1(_e){var et={r:0,g:0,b:0},rt=1,st=null,ct=null,ut=null,ft=!1,gt=!1;return typeof _e=="string"&&(_e=stringInputToObject$1(_e)),typeof _e=="object"&&(isValidCSSUnit$1(_e.r)&&isValidCSSUnit$1(_e.g)&&isValidCSSUnit$1(_e.b)?(et=rgbToRgb$1(_e.r,_e.g,_e.b),ft=!0,gt=String(_e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit$1(_e.h)&&isValidCSSUnit$1(_e.s)&&isValidCSSUnit$1(_e.v)?(st=convertToPercentage$1(_e.s),ct=convertToPercentage$1(_e.v),et=hsvToRgb$1(_e.h,st,ct),ft=!0,gt="hsv"):isValidCSSUnit$1(_e.h)&&isValidCSSUnit$1(_e.s)&&isValidCSSUnit$1(_e.l)&&(st=convertToPercentage$1(_e.s),ut=convertToPercentage$1(_e.l),et=hslToRgb$1(_e.h,st,ut),ft=!0,gt="hsl"),Object.prototype.hasOwnProperty.call(_e,"a")&&(rt=_e.a)),rt=boundAlpha$1(rt),{ok:ft,format:_e.format||gt,r:Math.min(255,Math.max(et.r,0)),g:Math.min(255,Math.max(et.g,0)),b:Math.min(255,Math.max(et.b,0)),a:rt}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers$1={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject$1(_e){if(_e=_e.trim().toLowerCase(),_e.length===0)return!1;var et=!1;if(names$1[_e])_e=names$1[_e],et=!0;else if(_e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var rt=matchers$1.rgb.exec(_e);return rt?{r:rt[1],g:rt[2],b:rt[3]}:(rt=matchers$1.rgba.exec(_e),rt?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=matchers$1.hsl.exec(_e),rt?{h:rt[1],s:rt[2],l:rt[3]}:(rt=matchers$1.hsla.exec(_e),rt?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=matchers$1.hsv.exec(_e),rt?{h:rt[1],s:rt[2],v:rt[3]}:(rt=matchers$1.hsva.exec(_e),rt?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=matchers$1.hex8.exec(_e),rt?{r:parseIntFromHex$1(rt[1]),g:parseIntFromHex$1(rt[2]),b:parseIntFromHex$1(rt[3]),a:convertHexToDecimal$1(rt[4]),format:et?"name":"hex8"}:(rt=matchers$1.hex6.exec(_e),rt?{r:parseIntFromHex$1(rt[1]),g:parseIntFromHex$1(rt[2]),b:parseIntFromHex$1(rt[3]),format:et?"name":"hex"}:(rt=matchers$1.hex4.exec(_e),rt?{r:parseIntFromHex$1(rt[1]+rt[1]),g:parseIntFromHex$1(rt[2]+rt[2]),b:parseIntFromHex$1(rt[3]+rt[3]),a:convertHexToDecimal$1(rt[4]+rt[4]),format:et?"name":"hex8"}:(rt=matchers$1.hex3.exec(_e),rt?{r:parseIntFromHex$1(rt[1]+rt[1]),g:parseIntFromHex$1(rt[2]+rt[2]),b:parseIntFromHex$1(rt[3]+rt[3]),format:et?"name":"hex"}:!1)))))))))}function isValidCSSUnit$1(_e){return!!matchers$1.CSS_UNIT.exec(String(_e))}var TinyColor=function(){function _e(et,rt){et===void 0&&(et=""),rt===void 0&&(rt={});var st;if(et instanceof _e)return et;typeof et=="number"&&(et=numberInputToObject(et)),this.originalInput=et;var ct=inputToRGB$1(et);this.originalInput=et,this.r=ct.r,this.g=ct.g,this.b=ct.b,this.a=ct.a,this.roundA=Math.round(100*this.a)/100,this.format=(st=rt.format)!==null&&st!==void 0?st:ct.format,this.gradientType=rt.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=ct.ok}return _e.prototype.isDark=function(){return this.getBrightness()<128},_e.prototype.isLight=function(){return!this.isDark()},_e.prototype.getBrightness=function(){var et=this.toRgb();return(et.r*299+et.g*587+et.b*114)/1e3},_e.prototype.getLuminance=function(){var et=this.toRgb(),rt,st,ct,ut=et.r/255,ft=et.g/255,gt=et.b/255;return ut<=.03928?rt=ut/12.92:rt=Math.pow((ut+.055)/1.055,2.4),ft<=.03928?st=ft/12.92:st=Math.pow((ft+.055)/1.055,2.4),gt<=.03928?ct=gt/12.92:ct=Math.pow((gt+.055)/1.055,2.4),.2126*rt+.7152*st+.0722*ct},_e.prototype.getAlpha=function(){return this.a},_e.prototype.setAlpha=function(et){return this.a=boundAlpha$1(et),this.roundA=Math.round(100*this.a)/100,this},_e.prototype.isMonochrome=function(){var et=this.toHsl().s;return et===0},_e.prototype.toHsv=function(){var et=rgbToHsv$1(this.r,this.g,this.b);return{h:et.h*360,s:et.s,v:et.v,a:this.a}},_e.prototype.toHsvString=function(){var et=rgbToHsv$1(this.r,this.g,this.b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.v*100);return this.a===1?"hsv(".concat(rt,", ").concat(st,"%, ").concat(ct,"%)"):"hsva(".concat(rt,", ").concat(st,"%, ").concat(ct,"%, ").concat(this.roundA,")")},_e.prototype.toHsl=function(){var et=rgbToHsl$1(this.r,this.g,this.b);return{h:et.h*360,s:et.s,l:et.l,a:this.a}},_e.prototype.toHslString=function(){var et=rgbToHsl$1(this.r,this.g,this.b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.l*100);return this.a===1?"hsl(".concat(rt,", ").concat(st,"%, ").concat(ct,"%)"):"hsla(".concat(rt,", ").concat(st,"%, ").concat(ct,"%, ").concat(this.roundA,")")},_e.prototype.toHex=function(et){return et===void 0&&(et=!1),rgbToHex$1(this.r,this.g,this.b,et)},_e.prototype.toHexString=function(et){return et===void 0&&(et=!1),"#"+this.toHex(et)},_e.prototype.toHex8=function(et){return et===void 0&&(et=!1),rgbaToHex$1(this.r,this.g,this.b,this.a,et)},_e.prototype.toHex8String=function(et){return et===void 0&&(et=!1),"#"+this.toHex8(et)},_e.prototype.toHexShortString=function(et){return et===void 0&&(et=!1),this.a===1?this.toHexString(et):this.toHex8String(et)},_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 et=Math.round(this.r),rt=Math.round(this.g),st=Math.round(this.b);return this.a===1?"rgb(".concat(et,", ").concat(rt,", ").concat(st,")"):"rgba(".concat(et,", ").concat(rt,", ").concat(st,", ").concat(this.roundA,")")},_e.prototype.toPercentageRgb=function(){var et=function(rt){return"".concat(Math.round(bound01$1(rt,255)*100),"%")};return{r:et(this.r),g:et(this.g),b:et(this.b),a:this.a}},_e.prototype.toPercentageRgbString=function(){var et=function(rt){return Math.round(bound01$1(rt,255)*100)};return this.a===1?"rgb(".concat(et(this.r),"%, ").concat(et(this.g),"%, ").concat(et(this.b),"%)"):"rgba(".concat(et(this.r),"%, ").concat(et(this.g),"%, ").concat(et(this.b),"%, ").concat(this.roundA,")")},_e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var et="#"+rgbToHex$1(this.r,this.g,this.b,!1),rt=0,st=Object.entries(names$1);rt=0,ut=!rt&&ct&&(et.startsWith("hex")||et==="name");return ut?et==="name"&&this.a===0?this.toName():this.toRgbString():(et==="rgb"&&(st=this.toRgbString()),et==="prgb"&&(st=this.toPercentageRgbString()),(et==="hex"||et==="hex6")&&(st=this.toHexString()),et==="hex3"&&(st=this.toHexString(!0)),et==="hex4"&&(st=this.toHex8String(!0)),et==="hex8"&&(st=this.toHex8String()),et==="name"&&(st=this.toName()),et==="hsl"&&(st=this.toHslString()),et==="hsv"&&(st=this.toHsvString()),st||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(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.l+=et/100,rt.l=clamp01$1(rt.l),new _e(rt)},_e.prototype.brighten=function(et){et===void 0&&(et=10);var rt=this.toRgb();return rt.r=Math.max(0,Math.min(255,rt.r-Math.round(255*-(et/100)))),rt.g=Math.max(0,Math.min(255,rt.g-Math.round(255*-(et/100)))),rt.b=Math.max(0,Math.min(255,rt.b-Math.round(255*-(et/100)))),new _e(rt)},_e.prototype.darken=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.l-=et/100,rt.l=clamp01$1(rt.l),new _e(rt)},_e.prototype.tint=function(et){return et===void 0&&(et=10),this.mix("white",et)},_e.prototype.shade=function(et){return et===void 0&&(et=10),this.mix("black",et)},_e.prototype.desaturate=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.s-=et/100,rt.s=clamp01$1(rt.s),new _e(rt)},_e.prototype.saturate=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.s+=et/100,rt.s=clamp01$1(rt.s),new _e(rt)},_e.prototype.greyscale=function(){return this.desaturate(100)},_e.prototype.spin=function(et){var rt=this.toHsl(),st=(rt.h+et)%360;return rt.h=st<0?360+st:st,new _e(rt)},_e.prototype.mix=function(et,rt){rt===void 0&&(rt=50);var st=this.toRgb(),ct=new _e(et).toRgb(),ut=rt/100,ft={r:(ct.r-st.r)*ut+st.r,g:(ct.g-st.g)*ut+st.g,b:(ct.b-st.b)*ut+st.b,a:(ct.a-st.a)*ut+st.a};return new _e(ft)},_e.prototype.analogous=function(et,rt){et===void 0&&(et=6),rt===void 0&&(rt=30);var st=this.toHsl(),ct=360/rt,ut=[this];for(st.h=(st.h-(ct*et>>1)+720)%360;--et;)st.h=(st.h+ct)%360,ut.push(new _e(st));return ut},_e.prototype.complement=function(){var et=this.toHsl();return et.h=(et.h+180)%360,new _e(et)},_e.prototype.monochromatic=function(et){et===void 0&&(et=6);for(var rt=this.toHsv(),st=rt.h,ct=rt.s,ut=rt.v,ft=[],gt=1/et;et--;)ft.push(new _e({h:st,s:ct,v:ut})),ut=(ut+gt)%1;return ft},_e.prototype.splitcomplement=function(){var et=this.toHsl(),rt=et.h;return[this,new _e({h:(rt+72)%360,s:et.s,l:et.l}),new _e({h:(rt+216)%360,s:et.s,l:et.l})]},_e.prototype.onBackground=function(et){var rt=this.toRgb(),st=new _e(et).toRgb(),ct=rt.a+st.a*(1-rt.a);return new _e({r:(rt.r*rt.a+st.r*st.a*(1-rt.a))/ct,g:(rt.g*rt.a+st.g*st.a*(1-rt.a))/ct,b:(rt.b*rt.a+st.b*st.a*(1-rt.a))/ct,a:ct})},_e.prototype.triad=function(){return this.polyad(3)},_e.prototype.tetrad=function(){return this.polyad(4)},_e.prototype.polyad=function(et){for(var rt=this.toHsl(),st=rt.h,ct=[this],ut=360/et,ft=1;ft=4.5;case"AAlarge":return ut>=3;case"AAAsmall":return ut>=7;default:return!1}}function mostReadable(_e,et,rt){rt===void 0&&(rt={includeFallbackColors:!1,level:"AA",size:"small"});for(var st=null,ct=0,ut=rt.includeFallbackColors,ft=rt.level,gt=rt.size,xt=0,$t=et;xt<$t.length;xt++){var _t=$t[xt],wt=readability(_e,_t);wt>ct&&(ct=wt,st=new TinyColor(_t))}return isReadable(_e,st,{level:ft,size:gt})||!ut?st:(rt.includeFallbackColors=!1,mostReadable(_e,["#fff","#000"],rt))}function toMsFilter(_e,et){var rt=new TinyColor(_e),st="#"+rgbaToArgbHex$1(rt.r,rt.g,rt.b,rt.a),ct=st,ut=rt.gradientType?"GradientType = 1, ":"";if(et){var ft=new TinyColor(et);ct="#"+rgbaToArgbHex$1(ft.r,ft.g,ft.b,ft.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(ut,"startColorstr=").concat(st,",endColorstr=").concat(ct,")")}function fromRatio(_e,et){var rt={r:convertToPercentage$1(_e.r),g:convertToPercentage$1(_e.g),b:convertToPercentage$1(_e.b)};return _e.a!==void 0&&(rt.a=Number(_e.a)),new TinyColor(rt,et)}function legacyRandom(){return new TinyColor({r:Math.random(),g:Math.random(),b:Math.random()})}function random(_e){if(_e===void 0&&(_e={}),_e.count!==void 0&&_e.count!==null){var et=_e.count,rt=[];for(_e.count=void 0;et>rt.length;)_e.count=null,_e.seed&&(_e.seed+=1),rt.push(random(_e));return _e.count=et,rt}var st=pickHue(_e.hue,_e.seed),ct=pickSaturation(st,_e),ut=pickBrightness(st,ct,_e),ft={h:st,s:ct,v:ut};return _e.alpha!==void 0&&(ft.a=_e.alpha),new TinyColor(ft)}function pickHue(_e,et){var rt=getHueRange(_e),st=randomWithin(rt,et);return st<0&&(st=360+st),st}function pickSaturation(_e,et){if(et.hue==="monochrome")return 0;if(et.luminosity==="random")return randomWithin([0,100],et.seed);var rt=getColorInfo(_e).saturationRange,st=rt[0],ct=rt[1];switch(et.luminosity){case"bright":st=55;break;case"dark":st=ct-10;break;case"light":ct=55;break}return randomWithin([st,ct],et.seed)}function pickBrightness(_e,et,rt){var st=getMinimumBrightness(_e,et),ct=100;switch(rt.luminosity){case"dark":ct=st+20;break;case"light":st=(ct+st)/2;break;case"random":st=0,ct=100;break}return randomWithin([st,ct],rt.seed)}function getMinimumBrightness(_e,et){for(var rt=getColorInfo(_e).lowerBounds,st=0;st=ct&&et<=ft){var xt=(gt-ut)/(ft-ct),$t=ut-xt*ct;return xt*et+$t}}return 0}function getHueRange(_e){var et=parseInt(_e,10);if(!Number.isNaN(et)&&et<360&&et>0)return[et,et];if(typeof _e=="string"){var rt=bounds.find(function(ft){return ft.name===_e});if(rt){var st=defineColor(rt);if(st.hueRange)return st.hueRange}var ct=new TinyColor(_e);if(ct.isValid){var ut=ct.toHsv().h;return[ut,ut]}}return[0,360]}function getColorInfo(_e){_e>=334&&_e<=360&&(_e-=360);for(var et=0,rt=bounds;et=ct.hueRange[0]&&_e<=ct.hueRange[1])return ct}throw Error("Color not found")}function randomWithin(_e,et){if(et===void 0)return Math.floor(_e[0]+Math.random()*(_e[1]+1-_e[0]));var rt=_e[1]||1,st=_e[0]||0;et=(et*9301+49297)%233280;var ct=et/233280;return Math.floor(st+ct*(rt-st))}function defineColor(_e){var et=_e.lowerBounds[0][0],rt=_e.lowerBounds[_e.lowerBounds.length-1][0],st=_e.lowerBounds[_e.lowerBounds.length-1][1],ct=_e.lowerBounds[0][1];return{name:_e.name,hueRange:_e.hueRange,lowerBounds:_e.lowerBounds,saturationRange:[et,rt],brightnessRange:[st,ct]}}var bounds=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];const public_api=Object.defineProperty({__proto__:null,TinyColor,bounds,convertDecimalToHex:convertDecimalToHex$1,convertHexToDecimal:convertHexToDecimal$1,default:tinycolor$1,fromRatio,hslToRgb:hslToRgb$1,hsvToRgb:hsvToRgb$1,inputToRGB:inputToRGB$1,isReadable,isValidCSSUnit:isValidCSSUnit$1,legacyRandom,mostReadable,names:names$1,numberInputToObject,parseIntFromHex:parseIntFromHex$1,random,readability,rgbToHex:rgbToHex$1,rgbToHsl:rgbToHsl$1,rgbToHsv:rgbToHsv$1,rgbToRgb:rgbToRgb$1,rgbaToArgbHex:rgbaToArgbHex$1,rgbaToHex:rgbaToHex$1,stringInputToObject:stringInputToObject$1,tinycolor:tinycolor$1,toMsFilter},Symbol.toStringTag,{value:"Module"});var hueStep$5=2,saturationStep$5=.16,saturationStep2$5=.05,brightnessStep1$5=.05,brightnessStep2$5=.15,lightColorCount$5=5,darkColorCount$5=4,darkColorMap$5=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv$5(_e){var et=_e.r,rt=_e.g,st=_e.b,ct=rgbToHsv$1(et,rt,st);return{h:ct.h*360,s:ct.s,v:ct.v}}function toHex$5(_e){var et=_e.r,rt=_e.g,st=_e.b;return"#".concat(rgbToHex$1(et,rt,st,!1))}function mix$5(_e,et,rt){var st=rt/100,ct={r:(et.r-_e.r)*st+_e.r,g:(et.g-_e.g)*st+_e.g,b:(et.b-_e.b)*st+_e.b};return ct}function getHue$5(_e,et,rt){var st;return Math.round(_e.h)>=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$5*et:Math.round(_e.h)+hueStep$5*et:st=rt?Math.round(_e.h)+hueStep$5*et:Math.round(_e.h)-hueStep$5*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$5(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$5*et:et===darkColorCount$5?st=_e.s+saturationStep$5:st=_e.s+saturationStep2$5*et,st>1&&(st=1),rt&&et===lightColorCount$5&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$8(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$5*et:st=_e.v-brightnessStep2$5*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$b(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$5;ct>0;ct-=1){var ut=toHsv$5(st),ft=toHex$5(inputToRGB$1({h:getHue$5(ut,ct,!0),s:getSaturation$5(ut,ct,!0),v:getValue$8(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$5(st));for(var gt=1;gt<=darkColorCount$5;gt+=1){var xt=toHsv$5(st),$t=toHex$5(inputToRGB$1({h:getHue$5(xt,gt),s:getSaturation$5(xt,gt),v:getValue$8(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$5.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$5(mix$5(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$5={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"},presetPalettes$5={},presetDarkPalettes$5={};Object.keys(presetPrimaryColors$5).forEach(function(_e){presetPalettes$5[_e]=generate$b(presetPrimaryColors$5[_e]),presetPalettes$5[_e].primary=presetPalettes$5[_e][5],presetDarkPalettes$5[_e]=generate$b(presetPrimaryColors$5[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$5[_e].primary=presetDarkPalettes$5[_e][5]});var red=presetPalettes$5.red,volcano=presetPalettes$5.volcano,gold=presetPalettes$5.gold,orange=presetPalettes$5.orange,yellow=presetPalettes$5.yellow,lime=presetPalettes$5.lime,green=presetPalettes$5.green,cyan=presetPalettes$5.cyan,blue$4=presetPalettes$5.blue,geekblue=presetPalettes$5.geekblue,purple=presetPalettes$5.purple,magenta=presetPalettes$5.magenta,grey=presetPalettes$5.grey,gray=presetPalettes$5.grey;const es$1=Object.defineProperty({__proto__:null,blue:blue$4,cyan,geekblue,generate:generate$b,gold,gray,green,grey,lime,magenta,orange,presetDarkPalettes:presetDarkPalettes$5,presetPalettes:presetPalettes$5,presetPrimaryColors:presetPrimaryColors$5,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"}),genControlHeight$1=_e=>{const{controlHeight:et}=_e;return{controlHeightSM:et*.75,controlHeightXS:et*.5,controlHeightLG:et*1.25}};function genSizeMapToken$2(_e){const{sizeUnit:et,sizeStep:rt}=_e;return{sizeXXL:et*(rt+8),sizeXL:et*(rt+4),sizeLG:et*(rt+2),sizeMD:et*(rt+1),sizeMS:et*rt,size:et*rt,sizeSM:et*(rt-1),sizeXS:et*(rt-2),sizeXXS:et*(rt-3)}}const 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"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray$3(_e,et){return _arrayWithHoles$3(_e)||_iterableToArrayLimit$3(_e,et)||_unsupportedIterableToArray$3(_e,et)||_nonIterableRest$3()}function murmur2(_e){for(var et=0,rt,st=0,ct=_e.length;ct>=4;++st,ct-=4)rt=_e.charCodeAt(st)&255|(_e.charCodeAt(++st)&255)<<8|(_e.charCodeAt(++st)&255)<<16|(_e.charCodeAt(++st)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,et=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(et&65535)*1540483477+((et>>>16)*59797<<16);switch(ct){case 3:et^=(_e.charCodeAt(st+2)&255)<<16;case 2:et^=(_e.charCodeAt(st+1)&255)<<8;case 1:et^=_e.charCodeAt(st)&255,et=(et&65535)*1540483477+((et>>>16)*59797<<16)}return et^=et>>>13,et=(et&65535)*1540483477+((et>>>16)*59797<<16),((et^et>>>15)>>>0).toString(36)}function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function contains$1(_e,et){if(!_e)return!1;if(_e.contains)return _e.contains(et);for(var rt=et;rt;){if(rt===_e)return!0;rt=rt.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=_e.mark;return et?et.startsWith("data-")?et:"data-".concat(et):MARK_KEY}function getContainer(_e){if(_e.attachTo)return _e.attachTo;var et=document.querySelector("head");return et||document.body}function getOrder(_e){return _e==="queue"?"prependQueue":_e?"prepend":"append"}function findStyles(_e){return Array.from((containerCache.get(_e)||_e).children).filter(function(et){return et.tagName==="STYLE"})}function injectCSS(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom$1())return null;var rt=et.csp,st=et.prepend,ct=et.priority,ut=ct===void 0?0:ct,ft=getOrder(st),gt=ft==="prependQueue",xt=document.createElement("style");xt.setAttribute(APPEND_ORDER,ft),gt&&ut&&xt.setAttribute(APPEND_PRIORITY,"".concat(ut)),rt!=null&&rt.nonce&&(xt.nonce=rt==null?void 0:rt.nonce),xt.innerHTML=_e;var $t=getContainer(et),_t=$t.firstChild;if(st){if(gt){var wt=(et.styles||findStyles($t)).filter(function(Tt){if(!["prepend","prependQueue"].includes(Tt.getAttribute(APPEND_ORDER)))return!1;var Rt=Number(Tt.getAttribute(APPEND_PRIORITY)||0);return ut>=Rt});if(wt.length)return $t.insertBefore(xt,wt[wt.length-1].nextSibling),xt}$t.insertBefore(xt,_t)}else $t.appendChild(xt);return xt}function findExistNode(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=getContainer(et);return(et.styles||findStyles(rt)).find(function(st){return st.getAttribute(getMark(et))===_e})}function removeCSS(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=findExistNode(_e,et);if(rt){var st=getContainer(et);st.removeChild(rt)}}function syncRealContainer(_e,et){var rt=containerCache.get(_e);if(!rt||!contains$1(document,rt)){var st=injectCSS("",et),ct=st.parentNode;containerCache.set(_e,ct),_e.removeChild(st)}}function updateCSS(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},st=getContainer(rt),ct=findStyles(st),ut=_objectSpread2(_objectSpread2({},rt),{},{styles:ct});syncRealContainer(st,ut);var ft=findExistNode(et,ut);if(ft){var gt,xt;if((gt=ut.csp)!==null&>!==void 0&>.nonce&&ft.nonce!==((xt=ut.csp)===null||xt===void 0?void 0:xt.nonce)){var $t;ft.nonce=($t=ut.csp)===null||$t===void 0?void 0:$t.nonce}return ft.innerHTML!==_e&&(ft.innerHTML=_e),ft}var _t=injectCSS(_e,ut);return _t.setAttribute(getMark(ut),et),_t}function _objectWithoutPropertiesLoose$3(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}function _objectWithoutProperties$2(_e,et){if(_e==null)return{};var rt=_objectWithoutPropertiesLoose$3(_e,et),st,ct;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(_e);for(ct=0;ct=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function isEqual$1(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=new Set;function ct(ut,ft){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,xt=st.has(ut);if(warningOnce$1(!xt,"Warning: There may be circular references"),xt)return!1;if(ut===ft)return!0;if(rt&>>1)return!1;st.add(ut);var $t=gt+1;if(Array.isArray(ut)){if(!Array.isArray(ft)||ut.length!==ft.length)return!1;for(var _t=0;_t1&&arguments[1]!==void 0?arguments[1]:!1,ft={map:this.cache};return rt.forEach(function(gt){if(!ft)ft=void 0;else{var xt;ft=(xt=ft)===null||xt===void 0||(xt=xt.map)===null||xt===void 0?void 0:xt.get(gt)}}),(st=ft)!==null&&st!==void 0&&st.value&&ut&&(ft.value[1]=this.cacheCallTimes++),(ct=ft)===null||ct===void 0?void 0:ct.value}},{key:"get",value:function(rt){var st;return(st=this.internalGet(rt,!0))===null||st===void 0?void 0:st[0]}},{key:"has",value:function(rt){return!!this.internalGet(rt)}},{key:"set",value:function(rt,st){var ct=this;if(!this.has(rt)){if(this.size()+1>_e.MAX_CACHE_SIZE+_e.MAX_CACHE_OFFSET){var ut=this.keys.reduce(function($t,_t){var wt=_slicedToArray$3($t,2),Tt=wt[1];return ct.internalGet(_t)[1]0,void 0),uuid$8+=1}return _createClass$7(_e,[{key:"getDerivativeToken",value:function(rt){return this.derivatives.reduce(function(st,ct){return ct(rt,st)},void 0)}}]),_e}(),cacheThemes=new ThemeCache;function createTheme(_e){var et=Array.isArray(_e)?_e:[_e];return cacheThemes.has(et)||cacheThemes.set(et,new Theme(et)),cacheThemes.get(et)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(_e,et){for(var rt=resultCache,st=0;st3&&arguments[3]!==void 0?arguments[3]:{},ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(ut)return _e;var ft=_objectSpread2(_objectSpread2({},ct),{},(st={},_defineProperty$c(st,ATTR_TOKEN,et),_defineProperty$c(st,ATTR_MARK,rt),st)),gt=Object.keys(ft).map(function(xt){var $t=ft[xt];return $t?"".concat(xt,'="').concat($t,'"'):null}).filter(function(xt){return xt}).join(" ");return"")}var token2CSSVar=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(rt?"".concat(rt,"-"):"").concat(et).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()},serializeCSSVar=function(et,rt,st){return Object.keys(et).length?".".concat(rt).concat(st!=null&&st.scope?".".concat(st.scope):"","{").concat(Object.entries(et).map(function(ct){var ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1];return"".concat(ft,":").concat(gt,";")}).join(""),"}"):""},transformToken=function(et,rt,st){var ct={},ut={};return Object.entries(et).forEach(function(ft){var gt,xt,$t=_slicedToArray$3(ft,2),_t=$t[0],wt=$t[1];if(st!=null&&(gt=st.preserve)!==null&>!==void 0&>[_t])ut[_t]=wt;else if((typeof wt=="string"||typeof wt=="number")&&!(st!=null&&(xt=st.ignore)!==null&&xt!==void 0&&xt[_t])){var Tt,Rt=token2CSSVar(_t,st==null?void 0:st.prefix);ct[Rt]=typeof wt=="number"&&!(st!=null&&(Tt=st.unitless)!==null&&Tt!==void 0&&Tt[_t])?"".concat(wt,"px"):String(wt),ut[_t]="var(".concat(Rt,")")}}),[ut,serializeCSSVar(ct,rt,{scope:st==null?void 0:st.scope})]},useInternalLayoutEffect=canUseDom$1()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect$3=function(et,rt){var st=reactExports.useRef(!0);useInternalLayoutEffect(function(){return et(st.current)},rt),useInternalLayoutEffect(function(){return st.current=!1,function(){st.current=!0}},[])},useLayoutUpdateEffect=function(et,rt){useLayoutEffect$3(function(st){if(!st)return et()},rt)},fullClone$3=_objectSpread2({},React$2),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function(et,rt,st){reactExports.useMemo(et,st),useLayoutEffect$3(function(){return rt(!0)},st)},useCompatibleInsertionEffect=useInsertionEffect$1?function(_e,et,rt){return useInsertionEffect$1(function(){return _e(),et()},rt)}:useInsertionEffectPolyfill,fullClone$2=_objectSpread2({},React$2),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function(et){var rt=[],st=!1;function ct(ut){st||rt.push(ut)}return reactExports.useEffect(function(){return st=!1,function(){st=!0,rt.length&&rt.forEach(function(ut){return ut()})}},et),ct},useRun=function(){return function(et){et()}},useEffectCleanupRegister=typeof useInsertionEffect<"u"?useCleanupRegister:useRun;function useGlobalCache(_e,et,rt,st,ct){var ut=reactExports.useContext(StyleContext),ft=ut.cache,gt=[_e].concat(_toConsumableArray$3(et)),xt=pathKey(gt),$t=useEffectCleanupRegister([xt]),_t=function(It){ft.opUpdate(xt,function(At){var jt=At||[void 0,void 0],Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=kt===void 0?0:kt,Ht=Nt[1],Wt=Ht,Vt=Wt||rt(),qt=[Ft,Vt];return It?It(qt):qt})};reactExports.useMemo(function(){_t()},[xt]);var wt=ft.opGet(xt),Tt=wt[1];return useCompatibleInsertionEffect(function(){ct==null||ct(Tt)},function(Rt){return _t(function(It){var At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1];return Rt&&jt===0&&(ct==null||ct(Tt)),[jt+1,Nt]}),function(){ft.opUpdate(xt,function(It){var At=It||[],jt=_slicedToArray$3(At,2),Nt=jt[0],kt=Nt===void 0?0:Nt,Ft=jt[1],Ht=kt-1;return Ht===0?($t(function(){(Rt||!ft.opGet(xt))&&(st==null||st(Ft,!1))}),null):[kt-1,Ft]})}},[xt]),Tt}var EMPTY_OVERRIDE={},hashPrefix="css",tokenKeys=new Map;function recordCleanToken(_e){tokenKeys.set(_e,(tokenKeys.get(_e)||0)+1)}function removeStyleTags(_e,et){if(typeof document<"u"){var rt=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(_e,'"]'));rt.forEach(function(st){if(st[CSS_IN_JS_INSTANCE]===et){var ct;(ct=st.parentNode)===null||ct===void 0||ct.removeChild(st)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(_e,et){tokenKeys.set(_e,(tokenKeys.get(_e)||0)-1);var rt=Array.from(tokenKeys.keys()),st=rt.filter(function(ct){var ut=tokenKeys.get(ct)||0;return ut<=0});rt.length-st.length>TOKEN_THRESHOLD&&st.forEach(function(ct){removeStyleTags(ct,et),tokenKeys.delete(ct)})}var getComputedToken$1=function(et,rt,st,ct){var ut=st.getDerivativeToken(et),ft=_objectSpread2(_objectSpread2({},ut),rt);return ct&&(ft=ct(ft)),ft},TOKEN_PREFIX="token";function useCacheToken(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},st=reactExports.useContext(StyleContext),ct=st.cache.instanceId,ut=st.container,ft=rt.salt,gt=ft===void 0?"":ft,xt=rt.override,$t=xt===void 0?EMPTY_OVERRIDE:xt,_t=rt.formatToken,wt=rt.getComputedToken,Tt=rt.cssVar,Rt=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray$3(et)))},et),It=flattenToken(Rt),At=flattenToken($t),jt=Tt?flattenToken(Tt):"",Nt=useGlobalCache(TOKEN_PREFIX,[gt,_e.id,It,At,jt],function(){var kt,Ft=wt?wt(Rt,$t,_e):getComputedToken$1(Rt,$t,_e,_t),Ht=_objectSpread2({},Ft),Wt="";if(Tt){var Vt=transformToken(Ft,Tt.key,{prefix:Tt.prefix,ignore:Tt.ignore,unitless:Tt.unitless,preserve:Tt.preserve}),qt=_slicedToArray$3(Vt,2);Ft=qt[0],Wt=qt[1]}var Xt=token2key(Ft,gt);Ft._tokenKey=Xt,Ht._tokenKey=token2key(Ht,gt);var Gt=(kt=Tt==null?void 0:Tt.key)!==null&&kt!==void 0?kt:Xt;Ft._themeKey=Gt,recordCleanToken(Gt);var Zt="".concat(hashPrefix,"-").concat(murmur2(Xt));return Ft._hashId=Zt,[Ft,Zt,Ht,Wt,(Tt==null?void 0:Tt.key)||""]},function(kt){cleanTokenStyle(kt[0]._themeKey,ct)},function(kt){var Ft=_slicedToArray$3(kt,4),Ht=Ft[0],Wt=Ft[3];if(Tt&&Wt){var Vt=updateCSS(Wt,murmur2("css-variables-".concat(Ht._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:ut,priority:-999});Vt[CSS_IN_JS_INSTANCE]=ct,Vt.setAttribute(ATTR_TOKEN,Ht._themeKey)}});return Nt}var extract$2=function(et,rt,st){var ct=_slicedToArray$3(et,5),ut=ct[2],ft=ct[3],gt=ct[4],xt=st||{},$t=xt.plain;if(!ft)return null;var _t=ut._tokenKey,wt=-999,Tt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(wt)},Rt=toStyleStr(ft,gt,_t,Tt,$t);return[wt,_t,Rt]},unitlessKeys={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},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from$1=String.fromCharCode;function trim$1(_e){return _e.trim()}function replace(_e,et,rt){return _e.replace(et,rt)}function indexof(_e,et,rt){return _e.indexOf(et,rt)}function charat(_e,et){return _e.charCodeAt(et)|0}function substr(_e,et,rt){return _e.slice(et,rt)}function strlen(_e){return _e.length}function sizeof(_e){return _e.length}function append(_e,et){return et.push(_e),_e}var line=1,column=1,length$1=0,position=0,character=0,characters="";function node(_e,et,rt,st,ct,ut,ft,gt){return{value:_e,root:et,parent:rt,type:st,props:ct,children:ut,line,column,length:ft,return:"",siblings:gt}}function char(){return character}function prev$1(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$2(character)>3?"":" "}function escaping(_e,et){for(;--et&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(_e,caret()+(et<6&&peek()==32&&next()==32))}function delimiter(_e){for(;next();)switch(character){case _e:return position;case 34:case 39:_e!==34&&_e!==39&&delimiter(character);break;case 40:_e===41&&delimiter(_e);break;case 92:next();break}return position}function commenter(_e,et){for(;next()&&_e+character!==57;)if(_e+character===84&&peek()===47)break;return"/*"+slice(et,position-1)+"*"+from$1(_e===47?_e:next())}function identifier(_e){for(;!token$2(peek());)next();return slice(_e,position)}function compile$2(_e){return dealloc(parse$4("",null,null,null,[""],_e=alloc(_e),0,[0],_e))}function parse$4(_e,et,rt,st,ct,ut,ft,gt,xt){for(var $t=0,_t=0,wt=ft,Tt=0,Rt=0,It=0,At=1,jt=1,Nt=1,kt=0,Ft="",Ht=ct,Wt=ut,Vt=st,qt=Ft;jt;)switch(It=kt,kt=next()){case 40:if(It!=108&&charat(qt,wt-1)==58){indexof(qt+=replace(delimit(kt),"&","&\f"),"&\f",abs$2($t?gt[$t-1]:0))!=-1&&(Nt=-1);break}case 34:case 39:case 91:qt+=delimit(kt);break;case 9:case 10:case 13:case 32:qt+=whitespace$1(It);break;case 92:qt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),et,rt,xt),xt);break;default:qt+="/"}break;case 123*At:gt[$t++]=strlen(qt)*Nt;case 125*At:case 59:case 0:switch(kt){case 0:case 125:jt=0;case 59+_t:Nt==-1&&(qt=replace(qt,/\f/g,"")),Rt>0&&strlen(qt)-wt&&append(Rt>32?declaration(qt+";",st,rt,wt-1,xt):declaration(replace(qt," ","")+";",st,rt,wt-2,xt),xt);break;case 59:qt+=";";default:if(append(Vt=ruleset(qt,et,rt,$t,_t,ct,gt,Ft,Ht=[],Wt=[],wt,ut),ut),kt===123)if(_t===0)parse$4(qt,et,Vt,Vt,Ht,ut,wt,gt,Wt);else switch(Tt===99&&charat(qt,3)===110?100:Tt){case 100:case 108:case 109:case 115:parse$4(_e,Vt,Vt,st&&append(ruleset(_e,Vt,Vt,0,0,ct,gt,Ft,ct,Ht=[],wt,Wt),Wt),ct,Wt,wt,gt,st?Ht:Wt);break;default:parse$4(qt,Vt,Vt,Vt,[""],Wt,0,gt,Wt)}}$t=_t=Rt=0,At=Nt=1,Ft=qt="",wt=ft;break;case 58:wt=1+strlen(qt),Rt=It;default:if(At<1){if(kt==123)--At;else if(kt==125&&At++==0&&prev$1()==125)continue}switch(qt+=from$1(kt),kt*At){case 38:Nt=_t>0?1:(qt+="\f",-1);break;case 44:gt[$t++]=(strlen(qt)-1)*Nt,Nt=1;break;case 64:peek()===45&&(qt+=delimit(next())),Tt=peek(),_t=wt=strlen(Ft=qt+=identifier(caret())),kt++;break;case 45:It===45&&strlen(qt)==2&&(At=0)}}return ut}function ruleset(_e,et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt){for(var Tt=ct-1,Rt=ct===0?ut:[""],It=sizeof(Rt),At=0,jt=0,Nt=0;At0?Rt[kt]+" "+Ft:replace(Ft,/&\f/g,Rt[kt])))&&(xt[Nt++]=Ht);return node(_e,et,rt,ct===0?RULESET:gt,xt,$t,_t,wt)}function comment(_e,et,rt,st){return node(_e,et,rt,COMMENT,from$1(char()),substr(_e,2,-2),0,st)}function declaration(_e,et,rt,st,ct){return node(_e,et,rt,DECLARATION,substr(_e,0,st),substr(_e,st+1,-1),st,ct)}function serialize$2(_e,et){for(var rt="",st=0;st<_e.length;st++)rt+=et(_e[st],st,_e,et)||"";return rt}function stringify$4(_e,et,rt,st){switch(_e.type){case LAYER:if(_e.children.length)break;case IMPORT:case DECLARATION:return _e.return=_e.return||_e.value;case COMMENT:return"";case KEYFRAMES:return _e.return=_e.value+"{"+serialize$2(_e.children,st)+"}";case RULESET:if(!strlen(_e.value=_e.props.join(",")))return""}return strlen(rt=serialize$2(_e.children,st))?_e.return=_e.value+"{"+rt+"}":""}function lintWarning(_e,et){var rt=et.path,st=et.parentSelectors;warningOnce$1(!1,"[Ant Design CSS-in-JS] ".concat(rt?"Error in ".concat(rt,": "):"").concat(_e).concat(st.length?" Selector: ".concat(st.join(" | ")):""))}function isConcatSelector(_e){var et,rt=((et=_e.match(/:not\(([^)]*)\)/))===null||et===void 0?void 0:et[1])||"",st=rt.split(/(\[[^[]*])|(?=[.#])/).filter(function(ct){return ct});return st.length>1}function parsePath$1(_e){return _e.parentSelectors.reduce(function(et,rt){return et?rt.includes("&")?rt.replace(/&/g,et):"".concat(et," ").concat(rt):rt},"")}var linter$3=function(et,rt,st){var ct=parsePath$1(st),ut=ct.match(/:not\([^)]*\)/g)||[];ut.length>0&&ut.some(isConcatSelector)&&lintWarning("Concat ':not' selector not support in legacy browsers.",st)},linter$2=function(et,rt,st){switch(et){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":lintWarning("You seem to be using non-logical property '".concat(et,"' 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."),st);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof rt=="string"){var ct=rt.split(" ").map(function(gt){return gt.trim()});ct.length===4&&ct[1]!==ct[3]&&lintWarning("You seem to be using '".concat(et,"' property with different left ").concat(et," and right ").concat(et,", 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."),st)}return;case"clear":case"textAlign":(rt==="left"||rt==="right")&&lintWarning("You seem to be using non-logical value '".concat(rt,"' of ").concat(et,", 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."),st);return;case"borderRadius":if(typeof rt=="string"){var ut=rt.split("/").map(function(gt){return gt.trim()}),ft=ut.reduce(function(gt,xt){if(gt)return gt;var $t=xt.split(" ").map(function(_t){return _t.trim()});return $t.length>=2&&$t[0]!==$t[1]||$t.length===3&&$t[1]!==$t[2]||$t.length===4&&$t[2]!==$t[3]?!0:gt},!1);ft&&lintWarning("You seem to be using non-logical value '".concat(rt,"' of ").concat(et,", 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."),st)}return}},linter$1=function(et,rt,st){(typeof rt=="string"&&/NaN/g.test(rt)||Number.isNaN(rt))&&lintWarning("Unexpected 'NaN' in property '".concat(et,": ").concat(rt,"'."),st)},linter=function(et,rt,st){st.parentSelectors.some(function(ct){var ut=ct.split(",");return ut.some(function(ft){return ft.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",st)},ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__";function serialize$1(_e){return Object.keys(_e).map(function(et){var rt=_e[et];return"".concat(et,":").concat(rt)}).join(";")}var cachePathMap,fromCSSFile=!0;function prepare(){if(!cachePathMap&&(cachePathMap={},canUseDom$1())){var _e=document.createElement("div");_e.className=ATTR_CACHE_MAP,_e.style.position="fixed",_e.style.visibility="hidden",_e.style.top="-9999px",document.body.appendChild(_e);var et=getComputedStyle(_e).content||"";et=et.replace(/^"/,"").replace(/"$/,""),et.split(";").forEach(function(ct){var ut=ct.split(":"),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];cachePathMap[gt]=xt});var rt=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if(rt){var st;fromCSSFile=!1,(st=rt.parentNode)===null||st===void 0||st.removeChild(rt)}document.body.removeChild(_e)}}function existPath(_e){return prepare(),!!cachePathMap[_e]}function getStyleAndHash(_e){var et=cachePathMap[_e],rt=null;if(et&&canUseDom$1())if(fromCSSFile)rt=CSS_FILE_STYLE;else{var st=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[_e],'"]'));st?rt=st.innerHTML:delete cachePathMap[_e]}return[rt,et]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(_e){var et=serialize$2(compile$2(_e),stringify$4);return et.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(_e){return _typeof$e(_e)==="object"&&_e&&(SKIP_CHECK in _e||MULTI_VALUE in _e)}function injectSelectorHash(_e,et,rt){if(!et)return _e;var st=".".concat(et),ct=rt==="low"?":where(".concat(st,")"):st,ut=_e.split(",").map(function(ft){var gt,xt=ft.trim().split(/\s+/),$t=xt[0]||"",_t=((gt=$t.match(/^\w+/))===null||gt===void 0?void 0:gt[0])||"";return $t="".concat(_t).concat(ct).concat($t.slice(_t.length)),[$t].concat(_toConsumableArray$3(xt.slice(1))).join(" ")});return ut.join(",")}var parseStyle=function _e(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},ct=st.root,ut=st.injectHash,ft=st.parentSelectors,gt=rt.hashId,xt=rt.layer;rt.path;var $t=rt.hashPriority,_t=rt.transformers,wt=_t===void 0?[]:_t;rt.linters;var Tt="",Rt={};function It(Ft){var Ht=Ft.getName(gt);if(!Rt[Ht]){var Wt=_e(Ft.style,rt,{root:!1,parentSelectors:ft}),Vt=_slicedToArray$3(Wt,1),qt=Vt[0];Rt[Ht]="@keyframes ".concat(Ft.getName(gt)).concat(qt)}}function At(Ft){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Ft.forEach(function(Wt){Array.isArray(Wt)?At(Wt,Ht):Wt&&Ht.push(Wt)}),Ht}var jt=At(Array.isArray(et)?et:[et]);if(jt.forEach(function(Ft){var Ht=typeof Ft=="string"&&!ct?{}:Ft;if(typeof Ht=="string")Tt+="".concat(Ht,` +`);else if(Ht._keyframe)It(Ht);else{var Wt=wt.reduce(function(Vt,qt){var Xt;return(qt==null||(Xt=qt.visit)===null||Xt===void 0?void 0:Xt.call(qt,Vt))||Vt},Ht);Object.keys(Wt).forEach(function(Vt){var qt=Wt[Vt];if(_typeof$e(qt)==="object"&&qt&&(Vt!=="animationName"||!qt._keyframe)&&!isCompoundCSSProperty(qt)){var Xt=!1,Gt=Vt.trim(),Zt=!1;(ct||ut)&>?Gt.startsWith("@")?Xt=!0:Gt=injectSelectorHash(Vt,gt,$t):ct&&!gt&&(Gt==="&"||Gt==="")&&(Gt="",Zt=!0);var er=_e(qt,rt,{root:Zt,injectHash:Xt,parentSelectors:[].concat(_toConsumableArray$3(ft),[Gt])}),lr=_slicedToArray$3(er,2),cr=lr[0],ur=lr[1];Rt=_objectSpread2(_objectSpread2({},Rt),ur),Tt+="".concat(Gt).concat(cr)}else{let pr=function(dr,yr){var Sr=dr.replace(/[A-Z]/g,function(mr){return"-".concat(mr.toLowerCase())}),br=yr;!unitlessKeys[dr]&&typeof br=="number"&&br!==0&&(br="".concat(br,"px")),dr==="animationName"&&yr!==null&&yr!==void 0&&yr._keyframe&&(It(yr),br=yr.getName(gt)),Tt+="".concat(Sr,":").concat(br,";")};var fr,hr=(fr=qt==null?void 0:qt.value)!==null&&fr!==void 0?fr:qt;_typeof$e(qt)==="object"&&qt!==null&&qt!==void 0&&qt[MULTI_VALUE]&&Array.isArray(hr)?hr.forEach(function(dr){pr(Vt,dr)}):pr(Vt,hr)}})}}),!ct)Tt="{".concat(Tt,"}");else if(xt&&supportLayer()){var Nt=xt.split(","),kt=Nt[Nt.length-1].trim();Tt="@layer ".concat(kt," {").concat(Tt,"}"),Nt.length>1&&(Tt="@layer ".concat(xt,"{%%%:%}").concat(Tt))}return[Tt,Rt]};function uniqueHash(_e,et){return murmur2("".concat(_e.join("%")).concat(et))}function Empty$3(){return null}var STYLE_PREFIX="style";function useStyleRegister(_e,et){var rt=_e.token,st=_e.path,ct=_e.hashId,ut=_e.layer,ft=_e.nonce,gt=_e.clientOnly,xt=_e.order,$t=xt===void 0?0:xt,_t=reactExports.useContext(StyleContext),wt=_t.autoClear;_t.mock;var Tt=_t.defaultCache,Rt=_t.hashPriority,It=_t.container,At=_t.ssrInline,jt=_t.transformers,Nt=_t.linters,kt=_t.cache,Ft=rt._tokenKey,Ht=[Ft].concat(_toConsumableArray$3(st)),Wt=isClientSide,Vt=useGlobalCache(STYLE_PREFIX,Ht,function(){var er=Ht.join("|");if(existPath(er)){var lr=getStyleAndHash(er),cr=_slicedToArray$3(lr,2),ur=cr[0],fr=cr[1];if(ur)return[ur,Ft,fr,{},gt,$t]}var hr=et(),pr=parseStyle(hr,{hashId:ct,hashPriority:Rt,layer:ut,path:st.join("-"),transformers:jt,linters:Nt}),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1],br=normalizeStyle(yr),mr=uniqueHash(Ht,br);return[br,Ft,mr,Sr,gt,$t]},function(er,lr){var cr=_slicedToArray$3(er,3),ur=cr[2];(lr||wt)&&isClientSide&&removeCSS(ur,{mark:ATTR_MARK})},function(er){var lr=_slicedToArray$3(er,4),cr=lr[0];lr[1];var ur=lr[2],fr=lr[3];if(Wt&&cr!==CSS_FILE_STYLE){var hr={mark:ATTR_MARK,prepend:"queue",attachTo:It,priority:$t},pr=typeof ft=="function"?ft():ft;pr&&(hr.csp={nonce:pr});var dr=updateCSS(cr,ur,hr);dr[CSS_IN_JS_INSTANCE]=kt.instanceId,dr.setAttribute(ATTR_TOKEN,Ft),Object.keys(fr).forEach(function(yr){updateCSS(normalizeStyle(fr[yr]),"_effect-".concat(yr),hr)})}}),qt=_slicedToArray$3(Vt,3),Xt=qt[0],Gt=qt[1],Zt=qt[2];return function(er){var lr;if(!At||Wt||!Tt)lr=reactExports.createElement(Empty$3,null);else{var cr;lr=reactExports.createElement("style",_extends$b({},(cr={},_defineProperty$c(cr,ATTR_TOKEN,Gt),_defineProperty$c(cr,ATTR_MARK,Zt),cr),{dangerouslySetInnerHTML:{__html:Xt}}))}return reactExports.createElement(reactExports.Fragment,null,lr,er)}}var extract$1=function(et,rt,st){var ct=_slicedToArray$3(et,6),ut=ct[0],ft=ct[1],gt=ct[2],xt=ct[3],$t=ct[4],_t=ct[5],wt=st||{},Tt=wt.plain;if($t)return null;var Rt=ut,It={"data-rc-order":"prependQueue","data-rc-priority":"".concat(_t)};return Rt=toStyleStr(ut,ft,gt,It,Tt),xt&&Object.keys(xt).forEach(function(At){if(!rt[At]){rt[At]=!0;var jt=normalizeStyle(xt[At]);Rt+=toStyleStr(jt,ft,"_effect-".concat(At),It,Tt)}}),[_t,gt,Rt]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function(et,rt){var st=et.key,ct=et.prefix,ut=et.unitless,ft=et.ignore,gt=et.token,xt=et.scope,$t=xt===void 0?"":xt,_t=reactExports.useContext(StyleContext),wt=_t.cache.instanceId,Tt=_t.container,Rt=gt._tokenKey,It=[].concat(_toConsumableArray$3(et.path),[st,$t,Rt]),At=useGlobalCache(CSS_VAR_PREFIX,It,function(){var jt=rt(),Nt=transformToken(jt,st,{prefix:ct,unitless:ut,ignore:ft,scope:$t}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=uniqueHash(It,Ht);return[Ft,Ht,Wt,st]},function(jt){var Nt=_slicedToArray$3(jt,3),kt=Nt[2];isClientSide&&removeCSS(kt,{mark:ATTR_MARK})},function(jt){var Nt=_slicedToArray$3(jt,3),kt=Nt[1],Ft=Nt[2];if(kt){var Ht=updateCSS(kt,Ft,{mark:ATTR_MARK,prepend:"queue",attachTo:Tt,priority:-999});Ht[CSS_IN_JS_INSTANCE]=wt,Ht.setAttribute(ATTR_TOKEN,st)}});return At},extract=function(et,rt,st){var ct=_slicedToArray$3(et,4),ut=ct[1],ft=ct[2],gt=ct[3],xt=st||{},$t=xt.plain;if(!ut)return null;var _t=-999,wt={"data-rc-order":"prependQueue","data-rc-priority":"".concat(_t)},Tt=toStyleStr(ut,gt,ft,wt,$t);return[_t,ft,Tt]},_ExtractStyleFns,ExtractStyleFns=(_ExtractStyleFns={},_defineProperty$c(_ExtractStyleFns,STYLE_PREFIX,extract$1),_defineProperty$c(_ExtractStyleFns,TOKEN_PREFIX,extract$2),_defineProperty$c(_ExtractStyleFns,CSS_VAR_PREFIX,extract),_ExtractStyleFns);function isNotNull(_e){return _e!==null}function extractStyle(_e,et){var rt=typeof et=="boolean"?{plain:et}:et||{},st=rt.plain,ct=st===void 0?!1:st,ut=rt.types,ft=ut===void 0?["style","token","cssVar"]:ut,gt=new RegExp("^(".concat((typeof ft=="string"?[ft]:ft).join("|"),")%")),xt=Array.from(_e.cache.keys()).filter(function(Tt){return gt.test(Tt)}),$t={},_t={},wt="";return xt.map(function(Tt){var Rt=Tt.replace(gt,"").replace(/%/g,"|"),It=Tt.split("%"),At=_slicedToArray$3(It,1),jt=At[0],Nt=ExtractStyleFns[jt],kt=Nt(_e.cache.get(Tt)[1],$t,{plain:ct});if(!kt)return null;var Ft=_slicedToArray$3(kt,3),Ht=Ft[0],Wt=Ft[1],Vt=Ft[2];return Tt.startsWith("style")&&(_t[Rt]=Wt),[Ht,Vt]}).filter(isNotNull).sort(function(Tt,Rt){var It=_slicedToArray$3(Tt,1),At=It[0],jt=_slicedToArray$3(Rt,1),Nt=jt[0];return At-Nt}).forEach(function(Tt){var Rt=_slicedToArray$3(Tt,2),It=Rt[1];wt+=It}),wt+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serialize$1(_t),'";}'),void 0,void 0,_defineProperty$c({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),ct),wt}var Keyframe=function(){function _e(et,rt){_classCallCheck$9(this,_e),_defineProperty$c(this,"name",void 0),_defineProperty$c(this,"style",void 0),_defineProperty$c(this,"_keyframe",!0),this.name=et,this.style=rt}return _createClass$7(_e,[{key:"getName",value:function(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return rt?"".concat(rt,"-").concat(this.name):this.name}}]),_e}();function splitValues(_e){if(typeof _e=="number")return[[_e],!1];var et=String(_e).trim(),rt=et.match(/(.*)(!important)/),st=(rt?rt[1]:et).trim().split(/\s+/),ct="",ut=0;return[st.reduce(function(ft,gt){if(gt.includes("(")||gt.includes(")")){var xt=gt.split("(").length-1,$t=gt.split(")").length-1;ut+=xt-$t}return ut===0?(ft.push(ct+gt),ct=""):ut>0&&(ct+=gt),ft},[]),!!rt]}function noSplit(_e){return _e.notSplit=!0,_e}var keyMap={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:noSplit(["borderTop","borderBottom"]),borderBlockStart:noSplit(["borderTop"]),borderBlockEnd:noSplit(["borderBottom"]),borderInline:noSplit(["borderLeft","borderRight"]),borderInlineStart:noSplit(["borderLeft"]),borderInlineEnd:noSplit(["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 wrapImportantAndSkipCheck(_e,et){var rt=_e;return et&&(rt="".concat(rt," !important")),{_skip_check_:!0,value:rt}}var transform$1={visit:function(et){var rt={};return Object.keys(et).forEach(function(st){var ct=et[st],ut=keyMap[st];if(ut&&(typeof ct=="number"||typeof ct=="string")){var ft=splitValues(ct),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];ut.length&&ut.notSplit?ut.forEach(function(_t){rt[_t]=wrapImportantAndSkipCheck(ct,$t)}):ut.length===1?rt[ut[0]]=wrapImportantAndSkipCheck(ct,$t):ut.length===2?ut.forEach(function(_t,wt){var Tt;rt[_t]=wrapImportantAndSkipCheck((Tt=xt[wt])!==null&&Tt!==void 0?Tt:xt[0],$t)}):ut.length===4?ut.forEach(function(_t,wt){var Tt,Rt;rt[_t]=wrapImportantAndSkipCheck((Tt=(Rt=xt[wt])!==null&&Rt!==void 0?Rt:xt[wt-2])!==null&&Tt!==void 0?Tt:xt[0],$t)}):rt[st]=ct}else rt[st]=ct}),rt}},pxRegex=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function toFixed$1(_e,et){var rt=Math.pow(10,et+1),st=Math.floor(_e*rt);return Math.round(st/10)*10/rt}var transform=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},rt=et.rootValue,st=rt===void 0?16:rt,ct=et.precision,ut=ct===void 0?5:ct,ft=et.mediaQuery,gt=ft===void 0?!1:ft,xt=function(wt,Tt){if(!Tt)return wt;var Rt=parseFloat(Tt);if(Rt<=1)return wt;var It=toFixed$1(Rt/st,ut);return"".concat(It,"rem")},$t=function(wt){var Tt=_objectSpread2({},wt);return Object.entries(wt).forEach(function(Rt){var It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1];if(typeof jt=="string"&&jt.includes("px")){var Nt=jt.replace(pxRegex,xt);Tt[At]=Nt}!unitlessKeys[At]&&typeof jt=="number"&&jt!==0&&(Tt[At]="".concat(jt,"px").replace(pxRegex,xt));var kt=At.trim();if(kt.startsWith("@")&&kt.includes("px")&>){var Ft=At.replace(pxRegex,xt);Tt[Ft]=Tt[At],delete Tt[At]}}),Tt};return{visit:$t}},_experimental={supportModernCSS:function(){return supportWhere()&&supportLogicProps()}};const es$2=Object.defineProperty({__proto__:null,Keyframes:Keyframe,NaNLinter:linter$1,StyleProvider,Theme,_experimental,createCache,createTheme,extractStyle,getComputedToken:getComputedToken$1,legacyLogicalPropertiesTransformer:transform$1,legacyNotSelectorLinter:linter$3,logicalPropertiesLinter:linter$2,parentSelectorLinter:linter,px2remTransformer:transform,token2CSSVar,unit:unit$1,useCSSVarRegister,useCacheToken,useStyleRegister},Symbol.toStringTag,{value:"Module"});var IconContext$5=reactExports.createContext({});function _toArray(_e){return _arrayWithHoles$3(_e)||_iterableToArray$3(_e)||_unsupportedIterableToArray$3(_e)||_nonIterableRest$3()}function get$7(_e,et){for(var rt=_e,st=0;st3&&arguments[3]!==void 0?arguments[3]:!1;return et.length&&st&&rt===void 0&&!get$7(_e,et.slice(0,-1))?_e:internalSet(_e,et,rt,st)}function isObject$j(_e){return _typeof$e(_e)==="object"&&_e!==null&&Object.getPrototypeOf(_e)===Object.prototype}function createEmpty(_e){return Array.isArray(_e)?[]:{}}var keys$7=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function merge$8(){for(var _e=arguments.length,et=new Array(_e),rt=0;rt<_e;rt++)et[rt]=arguments[rt];var st=createEmpty(et[0]);return et.forEach(function(ct){function ut(ft,gt){var xt=new Set(gt),$t=get$7(ct,ft),_t=Array.isArray($t);if(_t||isObject$j($t)){if(!xt.has($t)){xt.add($t);var wt=get$7(st,ft);_t?st=set$2(st,ft,[]):(!wt||_typeof$e(wt)!=="object")&&(st=set$2(st,ft,createEmpty($t))),keys$7($t).forEach(function(Tt){ut([].concat(_toConsumableArray$3(ft),[Tt]),xt)})}}else st=set$2(st,ft,$t)}ut([])}),st}function noop$8(){}const WarningContext=reactExports.createContext({}),devUseWarning=()=>{const _e=()=>{};return _e.deprecated=noop$8,_e},ValidateMessagesContext=reactExports.createContext(void 0);var locale$a={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"},locale$9={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 locale$8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},TimePicker$3=locale$8,locale$7={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"]},locale$9),timePickerLocale:Object.assign({},TimePicker$3)},enUS$2=locale$7,typeTemplate$2="${label} is not a valid ${type}",localeValues$1={locale:"en",Pagination:locale$a,DatePicker:enUS$2,TimePicker:TimePicker$3,Calendar:enUS$2,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",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"},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:typeTemplate$2,method:typeTemplate$2,array:typeTemplate$2,object:typeTemplate$2,number:typeTemplate$2,date:typeTemplate$2,boolean:typeTemplate$2,integer:typeTemplate$2,float:typeTemplate$2,regexp:typeTemplate$2,email:typeTemplate$2,url:typeTemplate$2,hex:typeTemplate$2},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"}};let runtimeLocale=Object.assign({},localeValues$1.Modal),localeList=[];const generateLocale=()=>localeList.reduce((_e,et)=>Object.assign(Object.assign({},_e),et),localeValues$1.Modal);function changeConfirmLocale(_e){if(_e){const et=Object.assign({},_e);return localeList.push(et),runtimeLocale=generateLocale(),()=>{localeList=localeList.filter(rt=>rt!==et),runtimeLocale=generateLocale()}}runtimeLocale=Object.assign({},localeValues$1.Modal)}function getConfirmLocale(){return runtimeLocale}const LocaleContext=reactExports.createContext(void 0),LocaleContext$1=LocaleContext,useLocale$3=(_e,et)=>{const rt=reactExports.useContext(LocaleContext$1),st=reactExports.useMemo(()=>{var ut;const ft=et||localeValues$1[_e],gt=(ut=rt==null?void 0:rt[_e])!==null&&ut!==void 0?ut:{};return Object.assign(Object.assign({},typeof ft=="function"?ft():ft),gt||{})},[_e,et,rt]),ct=reactExports.useMemo(()=>{const ut=rt==null?void 0:rt.locale;return rt!=null&&rt.exist&&!ut?localeValues$1.locale:ut},[rt]);return[st,ct]},ANT_MARK="internalMark",LocaleProvider=_e=>{const{locale:et={},children:rt,_ANT_MARK__:st}=_e;reactExports.useEffect(()=>changeConfirmLocale(et&&et.Modal),[et]);const ct=reactExports.useMemo(()=>Object.assign(Object.assign({},et),{exist:!0}),[et]);return reactExports.createElement(LocaleContext$1.Provider,{value:ct},rt)},LocaleProvider$1=LocaleProvider;function bound01$1(_e,et){isOnePointZero$1(_e)&&(_e="100%");var rt=isPercentage$1(_e);return _e=et===360?_e:Math.min(et,Math.max(0,parseFloat(_e))),rt&&(_e=parseInt(String(_e*et),10)/100),Math.abs(_e-et)<1e-6?1:(et===360?_e=(_e<0?_e%et+et:_e%et)/parseFloat(String(et)):_e=_e%et/parseFloat(String(et)),_e)}function clamp01$1(_e){return Math.min(1,Math.max(0,_e))}function isOnePointZero$1(_e){return typeof _e=="string"&&_e.indexOf(".")!==-1&&parseFloat(_e)===1}function isPercentage$1(_e){return typeof _e=="string"&&_e.indexOf("%")!==-1}function boundAlpha$1(_e){return _e=parseFloat(_e),(isNaN(_e)||_e<0||_e>1)&&(_e=1),_e}function convertToPercentage$1(_e){return _e<=1?"".concat(Number(_e)*100,"%"):_e}function pad2$1(_e){return _e.length===1?"0"+_e:String(_e)}function rgbToRgb$1(_e,et,rt){return{r:bound01$1(_e,255)*255,g:bound01$1(et,255)*255,b:bound01$1(rt,255)*255}}function rgbToHsl$1(_e,et,rt){_e=bound01$1(_e,255),et=bound01$1(et,255),rt=bound01$1(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut=0,ft=0,gt=(st+ct)/2;if(st===ct)ft=0,ut=0;else{var xt=st-ct;switch(ft=gt>.5?xt/(2-st-ct):xt/(st+ct),st){case _e:ut=(et-rt)/xt+(et1&&(rt-=1),rt<1/6?_e+(et-_e)*(6*rt):rt<1/2?et:rt<2/3?_e+(et-_e)*(2/3-rt)*6:_e}function hslToRgb$1(_e,et,rt){var st,ct,ut;if(_e=bound01$1(_e,360),et=bound01$1(et,100),rt=bound01$1(rt,100),et===0)ct=rt,ut=rt,st=rt;else{var ft=rt<.5?rt*(1+et):rt+et-rt*et,gt=2*rt-ft;st=hue2rgb(gt,ft,_e+1/3),ct=hue2rgb(gt,ft,_e),ut=hue2rgb(gt,ft,_e-1/3)}return{r:st*255,g:ct*255,b:ut*255}}function rgbToHsv$1(_e,et,rt){_e=bound01$1(_e,255),et=bound01$1(et,255),rt=bound01$1(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut=0,ft=st,gt=st-ct,xt=st===0?0:gt/st;if(st===ct)ut=0;else{switch(st){case _e:ut=(et-rt)/gt+(et>16,g:(_e&65280)>>8,b:_e&255}}var names$1={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 inputToRGB$1(_e){var et={r:0,g:0,b:0},rt=1,st=null,ct=null,ut=null,ft=!1,gt=!1;return typeof _e=="string"&&(_e=stringInputToObject$1(_e)),typeof _e=="object"&&(isValidCSSUnit$1(_e.r)&&isValidCSSUnit$1(_e.g)&&isValidCSSUnit$1(_e.b)?(et=rgbToRgb$1(_e.r,_e.g,_e.b),ft=!0,gt=String(_e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit$1(_e.h)&&isValidCSSUnit$1(_e.s)&&isValidCSSUnit$1(_e.v)?(st=convertToPercentage$1(_e.s),ct=convertToPercentage$1(_e.v),et=hsvToRgb$1(_e.h,st,ct),ft=!0,gt="hsv"):isValidCSSUnit$1(_e.h)&&isValidCSSUnit$1(_e.s)&&isValidCSSUnit$1(_e.l)&&(st=convertToPercentage$1(_e.s),ut=convertToPercentage$1(_e.l),et=hslToRgb$1(_e.h,st,ut),ft=!0,gt="hsl"),Object.prototype.hasOwnProperty.call(_e,"a")&&(rt=_e.a)),rt=boundAlpha$1(rt),{ok:ft,format:_e.format||gt,r:Math.min(255,Math.max(et.r,0)),g:Math.min(255,Math.max(et.g,0)),b:Math.min(255,Math.max(et.b,0)),a:rt}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers$1={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject$1(_e){if(_e=_e.trim().toLowerCase(),_e.length===0)return!1;var et=!1;if(names$1[_e])_e=names$1[_e],et=!0;else if(_e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var rt=matchers$1.rgb.exec(_e);return rt?{r:rt[1],g:rt[2],b:rt[3]}:(rt=matchers$1.rgba.exec(_e),rt?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=matchers$1.hsl.exec(_e),rt?{h:rt[1],s:rt[2],l:rt[3]}:(rt=matchers$1.hsla.exec(_e),rt?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=matchers$1.hsv.exec(_e),rt?{h:rt[1],s:rt[2],v:rt[3]}:(rt=matchers$1.hsva.exec(_e),rt?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=matchers$1.hex8.exec(_e),rt?{r:parseIntFromHex$1(rt[1]),g:parseIntFromHex$1(rt[2]),b:parseIntFromHex$1(rt[3]),a:convertHexToDecimal$1(rt[4]),format:et?"name":"hex8"}:(rt=matchers$1.hex6.exec(_e),rt?{r:parseIntFromHex$1(rt[1]),g:parseIntFromHex$1(rt[2]),b:parseIntFromHex$1(rt[3]),format:et?"name":"hex"}:(rt=matchers$1.hex4.exec(_e),rt?{r:parseIntFromHex$1(rt[1]+rt[1]),g:parseIntFromHex$1(rt[2]+rt[2]),b:parseIntFromHex$1(rt[3]+rt[3]),a:convertHexToDecimal$1(rt[4]+rt[4]),format:et?"name":"hex8"}:(rt=matchers$1.hex3.exec(_e),rt?{r:parseIntFromHex$1(rt[1]+rt[1]),g:parseIntFromHex$1(rt[2]+rt[2]),b:parseIntFromHex$1(rt[3]+rt[3]),format:et?"name":"hex"}:!1)))))))))}function isValidCSSUnit$1(_e){return!!matchers$1.CSS_UNIT.exec(String(_e))}var TinyColor=function(){function _e(et,rt){et===void 0&&(et=""),rt===void 0&&(rt={});var st;if(et instanceof _e)return et;typeof et=="number"&&(et=numberInputToObject(et)),this.originalInput=et;var ct=inputToRGB$1(et);this.originalInput=et,this.r=ct.r,this.g=ct.g,this.b=ct.b,this.a=ct.a,this.roundA=Math.round(100*this.a)/100,this.format=(st=rt.format)!==null&&st!==void 0?st:ct.format,this.gradientType=rt.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=ct.ok}return _e.prototype.isDark=function(){return this.getBrightness()<128},_e.prototype.isLight=function(){return!this.isDark()},_e.prototype.getBrightness=function(){var et=this.toRgb();return(et.r*299+et.g*587+et.b*114)/1e3},_e.prototype.getLuminance=function(){var et=this.toRgb(),rt,st,ct,ut=et.r/255,ft=et.g/255,gt=et.b/255;return ut<=.03928?rt=ut/12.92:rt=Math.pow((ut+.055)/1.055,2.4),ft<=.03928?st=ft/12.92:st=Math.pow((ft+.055)/1.055,2.4),gt<=.03928?ct=gt/12.92:ct=Math.pow((gt+.055)/1.055,2.4),.2126*rt+.7152*st+.0722*ct},_e.prototype.getAlpha=function(){return this.a},_e.prototype.setAlpha=function(et){return this.a=boundAlpha$1(et),this.roundA=Math.round(100*this.a)/100,this},_e.prototype.isMonochrome=function(){var et=this.toHsl().s;return et===0},_e.prototype.toHsv=function(){var et=rgbToHsv$1(this.r,this.g,this.b);return{h:et.h*360,s:et.s,v:et.v,a:this.a}},_e.prototype.toHsvString=function(){var et=rgbToHsv$1(this.r,this.g,this.b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.v*100);return this.a===1?"hsv(".concat(rt,", ").concat(st,"%, ").concat(ct,"%)"):"hsva(".concat(rt,", ").concat(st,"%, ").concat(ct,"%, ").concat(this.roundA,")")},_e.prototype.toHsl=function(){var et=rgbToHsl$1(this.r,this.g,this.b);return{h:et.h*360,s:et.s,l:et.l,a:this.a}},_e.prototype.toHslString=function(){var et=rgbToHsl$1(this.r,this.g,this.b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.l*100);return this.a===1?"hsl(".concat(rt,", ").concat(st,"%, ").concat(ct,"%)"):"hsla(".concat(rt,", ").concat(st,"%, ").concat(ct,"%, ").concat(this.roundA,")")},_e.prototype.toHex=function(et){return et===void 0&&(et=!1),rgbToHex$1(this.r,this.g,this.b,et)},_e.prototype.toHexString=function(et){return et===void 0&&(et=!1),"#"+this.toHex(et)},_e.prototype.toHex8=function(et){return et===void 0&&(et=!1),rgbaToHex$1(this.r,this.g,this.b,this.a,et)},_e.prototype.toHex8String=function(et){return et===void 0&&(et=!1),"#"+this.toHex8(et)},_e.prototype.toHexShortString=function(et){return et===void 0&&(et=!1),this.a===1?this.toHexString(et):this.toHex8String(et)},_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 et=Math.round(this.r),rt=Math.round(this.g),st=Math.round(this.b);return this.a===1?"rgb(".concat(et,", ").concat(rt,", ").concat(st,")"):"rgba(".concat(et,", ").concat(rt,", ").concat(st,", ").concat(this.roundA,")")},_e.prototype.toPercentageRgb=function(){var et=function(rt){return"".concat(Math.round(bound01$1(rt,255)*100),"%")};return{r:et(this.r),g:et(this.g),b:et(this.b),a:this.a}},_e.prototype.toPercentageRgbString=function(){var et=function(rt){return Math.round(bound01$1(rt,255)*100)};return this.a===1?"rgb(".concat(et(this.r),"%, ").concat(et(this.g),"%, ").concat(et(this.b),"%)"):"rgba(".concat(et(this.r),"%, ").concat(et(this.g),"%, ").concat(et(this.b),"%, ").concat(this.roundA,")")},_e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var et="#"+rgbToHex$1(this.r,this.g,this.b,!1),rt=0,st=Object.entries(names$1);rt=0,ut=!rt&&ct&&(et.startsWith("hex")||et==="name");return ut?et==="name"&&this.a===0?this.toName():this.toRgbString():(et==="rgb"&&(st=this.toRgbString()),et==="prgb"&&(st=this.toPercentageRgbString()),(et==="hex"||et==="hex6")&&(st=this.toHexString()),et==="hex3"&&(st=this.toHexString(!0)),et==="hex4"&&(st=this.toHex8String(!0)),et==="hex8"&&(st=this.toHex8String()),et==="name"&&(st=this.toName()),et==="hsl"&&(st=this.toHslString()),et==="hsv"&&(st=this.toHsvString()),st||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(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.l+=et/100,rt.l=clamp01$1(rt.l),new _e(rt)},_e.prototype.brighten=function(et){et===void 0&&(et=10);var rt=this.toRgb();return rt.r=Math.max(0,Math.min(255,rt.r-Math.round(255*-(et/100)))),rt.g=Math.max(0,Math.min(255,rt.g-Math.round(255*-(et/100)))),rt.b=Math.max(0,Math.min(255,rt.b-Math.round(255*-(et/100)))),new _e(rt)},_e.prototype.darken=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.l-=et/100,rt.l=clamp01$1(rt.l),new _e(rt)},_e.prototype.tint=function(et){return et===void 0&&(et=10),this.mix("white",et)},_e.prototype.shade=function(et){return et===void 0&&(et=10),this.mix("black",et)},_e.prototype.desaturate=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.s-=et/100,rt.s=clamp01$1(rt.s),new _e(rt)},_e.prototype.saturate=function(et){et===void 0&&(et=10);var rt=this.toHsl();return rt.s+=et/100,rt.s=clamp01$1(rt.s),new _e(rt)},_e.prototype.greyscale=function(){return this.desaturate(100)},_e.prototype.spin=function(et){var rt=this.toHsl(),st=(rt.h+et)%360;return rt.h=st<0?360+st:st,new _e(rt)},_e.prototype.mix=function(et,rt){rt===void 0&&(rt=50);var st=this.toRgb(),ct=new _e(et).toRgb(),ut=rt/100,ft={r:(ct.r-st.r)*ut+st.r,g:(ct.g-st.g)*ut+st.g,b:(ct.b-st.b)*ut+st.b,a:(ct.a-st.a)*ut+st.a};return new _e(ft)},_e.prototype.analogous=function(et,rt){et===void 0&&(et=6),rt===void 0&&(rt=30);var st=this.toHsl(),ct=360/rt,ut=[this];for(st.h=(st.h-(ct*et>>1)+720)%360;--et;)st.h=(st.h+ct)%360,ut.push(new _e(st));return ut},_e.prototype.complement=function(){var et=this.toHsl();return et.h=(et.h+180)%360,new _e(et)},_e.prototype.monochromatic=function(et){et===void 0&&(et=6);for(var rt=this.toHsv(),st=rt.h,ct=rt.s,ut=rt.v,ft=[],gt=1/et;et--;)ft.push(new _e({h:st,s:ct,v:ut})),ut=(ut+gt)%1;return ft},_e.prototype.splitcomplement=function(){var et=this.toHsl(),rt=et.h;return[this,new _e({h:(rt+72)%360,s:et.s,l:et.l}),new _e({h:(rt+216)%360,s:et.s,l:et.l})]},_e.prototype.onBackground=function(et){var rt=this.toRgb(),st=new _e(et).toRgb(),ct=rt.a+st.a*(1-rt.a);return new _e({r:(rt.r*rt.a+st.r*st.a*(1-rt.a))/ct,g:(rt.g*rt.a+st.g*st.a*(1-rt.a))/ct,b:(rt.b*rt.a+st.b*st.a*(1-rt.a))/ct,a:ct})},_e.prototype.triad=function(){return this.polyad(3)},_e.prototype.tetrad=function(){return this.polyad(4)},_e.prototype.polyad=function(et){for(var rt=this.toHsl(),st=rt.h,ct=[this],ut=360/et,ft=1;ft=4.5;case"AAlarge":return ut>=3;case"AAAsmall":return ut>=7;default:return!1}}function mostReadable(_e,et,rt){rt===void 0&&(rt={includeFallbackColors:!1,level:"AA",size:"small"});for(var st=null,ct=0,ut=rt.includeFallbackColors,ft=rt.level,gt=rt.size,xt=0,$t=et;xt<$t.length;xt++){var _t=$t[xt],wt=readability(_e,_t);wt>ct&&(ct=wt,st=new TinyColor(_t))}return isReadable(_e,st,{level:ft,size:gt})||!ut?st:(rt.includeFallbackColors=!1,mostReadable(_e,["#fff","#000"],rt))}function toMsFilter(_e,et){var rt=new TinyColor(_e),st="#"+rgbaToArgbHex$1(rt.r,rt.g,rt.b,rt.a),ct=st,ut=rt.gradientType?"GradientType = 1, ":"";if(et){var ft=new TinyColor(et);ct="#"+rgbaToArgbHex$1(ft.r,ft.g,ft.b,ft.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(ut,"startColorstr=").concat(st,",endColorstr=").concat(ct,")")}function fromRatio(_e,et){var rt={r:convertToPercentage$1(_e.r),g:convertToPercentage$1(_e.g),b:convertToPercentage$1(_e.b)};return _e.a!==void 0&&(rt.a=Number(_e.a)),new TinyColor(rt,et)}function legacyRandom(){return new TinyColor({r:Math.random(),g:Math.random(),b:Math.random()})}function random(_e){if(_e===void 0&&(_e={}),_e.count!==void 0&&_e.count!==null){var et=_e.count,rt=[];for(_e.count=void 0;et>rt.length;)_e.count=null,_e.seed&&(_e.seed+=1),rt.push(random(_e));return _e.count=et,rt}var st=pickHue(_e.hue,_e.seed),ct=pickSaturation(st,_e),ut=pickBrightness(st,ct,_e),ft={h:st,s:ct,v:ut};return _e.alpha!==void 0&&(ft.a=_e.alpha),new TinyColor(ft)}function pickHue(_e,et){var rt=getHueRange(_e),st=randomWithin(rt,et);return st<0&&(st=360+st),st}function pickSaturation(_e,et){if(et.hue==="monochrome")return 0;if(et.luminosity==="random")return randomWithin([0,100],et.seed);var rt=getColorInfo(_e).saturationRange,st=rt[0],ct=rt[1];switch(et.luminosity){case"bright":st=55;break;case"dark":st=ct-10;break;case"light":ct=55;break}return randomWithin([st,ct],et.seed)}function pickBrightness(_e,et,rt){var st=getMinimumBrightness(_e,et),ct=100;switch(rt.luminosity){case"dark":ct=st+20;break;case"light":st=(ct+st)/2;break;case"random":st=0,ct=100;break}return randomWithin([st,ct],rt.seed)}function getMinimumBrightness(_e,et){for(var rt=getColorInfo(_e).lowerBounds,st=0;st=ct&&et<=ft){var xt=(gt-ut)/(ft-ct),$t=ut-xt*ct;return xt*et+$t}}return 0}function getHueRange(_e){var et=parseInt(_e,10);if(!Number.isNaN(et)&&et<360&&et>0)return[et,et];if(typeof _e=="string"){var rt=bounds.find(function(ft){return ft.name===_e});if(rt){var st=defineColor(rt);if(st.hueRange)return st.hueRange}var ct=new TinyColor(_e);if(ct.isValid){var ut=ct.toHsv().h;return[ut,ut]}}return[0,360]}function getColorInfo(_e){_e>=334&&_e<=360&&(_e-=360);for(var et=0,rt=bounds;et=ct.hueRange[0]&&_e<=ct.hueRange[1])return ct}throw Error("Color not found")}function randomWithin(_e,et){if(et===void 0)return Math.floor(_e[0]+Math.random()*(_e[1]+1-_e[0]));var rt=_e[1]||1,st=_e[0]||0;et=(et*9301+49297)%233280;var ct=et/233280;return Math.floor(st+ct*(rt-st))}function defineColor(_e){var et=_e.lowerBounds[0][0],rt=_e.lowerBounds[_e.lowerBounds.length-1][0],st=_e.lowerBounds[_e.lowerBounds.length-1][1],ct=_e.lowerBounds[0][1];return{name:_e.name,hueRange:_e.hueRange,lowerBounds:_e.lowerBounds,saturationRange:[et,rt],brightnessRange:[st,ct]}}var bounds=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];const public_api=Object.defineProperty({__proto__:null,TinyColor,bounds,convertDecimalToHex:convertDecimalToHex$1,convertHexToDecimal:convertHexToDecimal$1,default:tinycolor$1,fromRatio,hslToRgb:hslToRgb$1,hsvToRgb:hsvToRgb$1,inputToRGB:inputToRGB$1,isReadable,isValidCSSUnit:isValidCSSUnit$1,legacyRandom,mostReadable,names:names$1,numberInputToObject,parseIntFromHex:parseIntFromHex$1,random,readability,rgbToHex:rgbToHex$1,rgbToHsl:rgbToHsl$1,rgbToHsv:rgbToHsv$1,rgbToRgb:rgbToRgb$1,rgbaToArgbHex:rgbaToArgbHex$1,rgbaToHex:rgbaToHex$1,stringInputToObject:stringInputToObject$1,tinycolor:tinycolor$1,toMsFilter},Symbol.toStringTag,{value:"Module"});var hueStep$5=2,saturationStep$5=.16,saturationStep2$5=.05,brightnessStep1$5=.05,brightnessStep2$5=.15,lightColorCount$5=5,darkColorCount$5=4,darkColorMap$5=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv$5(_e){var et=_e.r,rt=_e.g,st=_e.b,ct=rgbToHsv$1(et,rt,st);return{h:ct.h*360,s:ct.s,v:ct.v}}function toHex$5(_e){var et=_e.r,rt=_e.g,st=_e.b;return"#".concat(rgbToHex$1(et,rt,st,!1))}function mix$5(_e,et,rt){var st=rt/100,ct={r:(et.r-_e.r)*st+_e.r,g:(et.g-_e.g)*st+_e.g,b:(et.b-_e.b)*st+_e.b};return ct}function getHue$5(_e,et,rt){var st;return Math.round(_e.h)>=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$5*et:Math.round(_e.h)+hueStep$5*et:st=rt?Math.round(_e.h)+hueStep$5*et:Math.round(_e.h)-hueStep$5*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$5(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$5*et:et===darkColorCount$5?st=_e.s+saturationStep$5:st=_e.s+saturationStep2$5*et,st>1&&(st=1),rt&&et===lightColorCount$5&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$8(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$5*et:st=_e.v-brightnessStep2$5*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$b(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$5;ct>0;ct-=1){var ut=toHsv$5(st),ft=toHex$5(inputToRGB$1({h:getHue$5(ut,ct,!0),s:getSaturation$5(ut,ct,!0),v:getValue$8(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$5(st));for(var gt=1;gt<=darkColorCount$5;gt+=1){var xt=toHsv$5(st),$t=toHex$5(inputToRGB$1({h:getHue$5(xt,gt),s:getSaturation$5(xt,gt),v:getValue$8(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$5.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$5(mix$5(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$5={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"},presetPalettes$5={},presetDarkPalettes$5={};Object.keys(presetPrimaryColors$5).forEach(function(_e){presetPalettes$5[_e]=generate$b(presetPrimaryColors$5[_e]),presetPalettes$5[_e].primary=presetPalettes$5[_e][5],presetDarkPalettes$5[_e]=generate$b(presetPrimaryColors$5[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$5[_e].primary=presetDarkPalettes$5[_e][5]});var red=presetPalettes$5.red,volcano=presetPalettes$5.volcano,gold=presetPalettes$5.gold,orange=presetPalettes$5.orange,yellow=presetPalettes$5.yellow,lime=presetPalettes$5.lime,green=presetPalettes$5.green,cyan=presetPalettes$5.cyan,blue$4=presetPalettes$5.blue,geekblue=presetPalettes$5.geekblue,purple=presetPalettes$5.purple,magenta=presetPalettes$5.magenta,grey=presetPalettes$5.grey,gray=presetPalettes$5.grey;const es$1=Object.defineProperty({__proto__:null,blue:blue$4,cyan,geekblue,generate:generate$b,gold,gray,green,grey,lime,magenta,orange,presetDarkPalettes:presetDarkPalettes$5,presetPalettes:presetPalettes$5,presetPrimaryColors:presetPrimaryColors$5,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"}),genControlHeight$1=_e=>{const{controlHeight:et}=_e;return{controlHeightSM:et*.75,controlHeightXS:et*.5,controlHeightLG:et*1.25}};function genSizeMapToken$2(_e){const{sizeUnit:et,sizeStep:rt}=_e;return{sizeXXL:et*(rt+8),sizeXL:et*(rt+4),sizeLG:et*(rt+2),sizeMD:et*(rt+1),sizeMS:et*rt,size:et*rt,sizeSM:et*(rt-1),sizeXS:et*(rt-2),sizeXXS:et*(rt-3)}}const 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"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{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 genColorMapToken$1(_e,et){let{generateColorPalettes:rt,generateNeutralColorPalettes:st}=et;const{colorSuccess:ct,colorWarning:ut,colorError:ft,colorInfo:gt,colorPrimary:xt,colorBgBase:$t,colorTextBase:_t}=_e,wt=rt(xt),Tt=rt(ct),Rt=rt(ut),It=rt(ft),At=rt(gt),jt=st($t,_t),Nt=_e.colorLink||_e.colorInfo,kt=rt(Nt);return Object.assign(Object.assign({},jt),{colorPrimaryBg:wt[1],colorPrimaryBgHover:wt[2],colorPrimaryBorder:wt[3],colorPrimaryBorderHover:wt[4],colorPrimaryHover:wt[5],colorPrimary:wt[6],colorPrimaryActive:wt[7],colorPrimaryTextHover:wt[8],colorPrimaryText:wt[9],colorPrimaryTextActive:wt[10],colorSuccessBg:Tt[1],colorSuccessBgHover:Tt[2],colorSuccessBorder:Tt[3],colorSuccessBorderHover:Tt[4],colorSuccessHover:Tt[4],colorSuccess:Tt[6],colorSuccessActive:Tt[7],colorSuccessTextHover:Tt[8],colorSuccessText:Tt[9],colorSuccessTextActive:Tt[10],colorErrorBg:It[1],colorErrorBgHover:It[2],colorErrorBorder:It[3],colorErrorBorderHover:It[4],colorErrorHover:It[5],colorError:It[6],colorErrorActive:It[7],colorErrorTextHover:It[8],colorErrorText:It[9],colorErrorTextActive:It[10],colorWarningBg:Rt[1],colorWarningBgHover:Rt[2],colorWarningBorder:Rt[3],colorWarningBorderHover:Rt[4],colorWarningHover:Rt[4],colorWarning:Rt[6],colorWarningActive:Rt[7],colorWarningTextHover:Rt[8],colorWarningText:Rt[9],colorWarningTextActive:Rt[10],colorInfoBg:At[1],colorInfoBgHover:At[2],colorInfoBorder:At[3],colorInfoBorderHover:At[4],colorInfoHover:At[4],colorInfo:At[6],colorInfoActive:At[7],colorInfoTextHover:At[8],colorInfoText:At[9],colorInfoTextActive:At[10],colorLinkHover:kt[4],colorLink:kt[6],colorLinkActive:kt[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const genRadius$1=_e=>{let et=_e,rt=_e,st=_e,ct=_e;return _e<6&&_e>=5?et=_e+1:_e<16&&_e>=6?et=_e+2:_e>=16&&(et=16),_e<7&&_e>=5?rt=4:_e<8&&_e>=7?rt=5:_e<14&&_e>=8?rt=6:_e<16&&_e>=14?rt=7:_e>=16&&(rt=8),_e<6&&_e>=2?st=1:_e>=6&&(st=2),_e>4&&_e<8?ct=4:_e>=8&&(ct=6),{borderRadius:_e,borderRadiusXS:st,borderRadiusSM:rt,borderRadiusLG:et,borderRadiusOuter:ct}};function genCommonMapToken$1(_e){const{motionUnit:et,motionBase:rt,borderRadius:st,lineWidth:ct}=_e;return Object.assign({motionDurationFast:`${(rt+et).toFixed(1)}s`,motionDurationMid:`${(rt+et*2).toFixed(1)}s`,motionDurationSlow:`${(rt+et*3).toFixed(1)}s`,lineWidthBold:ct+1},genRadius$1(st))}const getAlphaColor$4=(_e,et)=>new TinyColor(_e).setAlpha(et).toRgbString(),getSolidColor$1=(_e,et)=>new TinyColor(_e).darken(et).toHexString(),generateColorPalettes$1=_e=>{const et=generate$b(_e);return{1:et[0],2:et[1],3:et[2],4:et[3],5:et[4],6:et[5],7:et[6],8:et[4],9:et[5],10:et[6]}},generateNeutralColorPalettes$1=(_e,et)=>{const rt=_e||"#fff",st=et||"#000";return{colorBgBase:rt,colorTextBase:st,colorText:getAlphaColor$4(st,.88),colorTextSecondary:getAlphaColor$4(st,.65),colorTextTertiary:getAlphaColor$4(st,.45),colorTextQuaternary:getAlphaColor$4(st,.25),colorFill:getAlphaColor$4(st,.15),colorFillSecondary:getAlphaColor$4(st,.06),colorFillTertiary:getAlphaColor$4(st,.04),colorFillQuaternary:getAlphaColor$4(st,.02),colorBgLayout:getSolidColor$1(rt,4),colorBgContainer:getSolidColor$1(rt,0),colorBgElevated:getSolidColor$1(rt,0),colorBgSpotlight:getAlphaColor$4(st,.85),colorBgBlur:"transparent",colorBorder:getSolidColor$1(rt,15),colorBorderSecondary:getSolidColor$1(rt,6)}};function getLineHeight(_e){return(_e+8)/_e}function getFontSizes(_e){const et=new Array(10).fill(null).map((rt,st)=>{const ct=st-1,ut=_e*Math.pow(2.71828,ct/5),ft=st>1?Math.floor(ut):Math.ceil(ut);return Math.floor(ft/2)*2});return et[1]=_e,et.map(rt=>({size:rt,lineHeight:getLineHeight(rt)}))}const genFontMapToken$1=_e=>{const et=getFontSizes(_e),rt=et.map(_t=>_t.size),st=et.map(_t=>_t.lineHeight),ct=rt[1],ut=rt[0],ft=rt[2],gt=st[1],xt=st[0],$t=st[2];return{fontSizeSM:ut,fontSize:ct,fontSizeLG:ft,fontSizeXL:rt[3],fontSizeHeading1:rt[6],fontSizeHeading2:rt[5],fontSizeHeading3:rt[4],fontSizeHeading4:rt[3],fontSizeHeading5:rt[2],lineHeight:gt,lineHeightLG:$t,lineHeightSM:xt,fontHeight:Math.round(gt*ct),fontHeightLG:Math.round($t*ft),fontHeightSM:Math.round(xt*ut),lineHeightHeading1:st[6],lineHeightHeading2:st[5],lineHeightHeading3:st[4],lineHeightHeading4:st[3],lineHeightHeading5:st[2]}};function derivative$2(_e){const et=Object.keys(defaultPresetColors).map(rt=>{const st=generate$b(_e[rt]);return new Array(10).fill(1).reduce((ct,ut,ft)=>(ct[`${rt}-${ft+1}`]=st[ft],ct[`${rt}${ft+1}`]=st[ft],ct),{})}).reduce((rt,st)=>(rt=Object.assign(Object.assign({},rt),st),rt),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_e),et),genColorMapToken$1(_e,{generateColorPalettes:generateColorPalettes$1,generateNeutralColorPalettes:generateNeutralColorPalettes$1})),genFontMapToken$1(_e.fontSize)),genSizeMapToken$2(_e)),genControlHeight$1(_e)),genCommonMapToken$1(_e))}const defaultTheme=createTheme(derivative$2),defaultConfig$1={token:seedToken,override:{override:seedToken},hashed:!0},DesignTokenContext=React$1.createContext(defaultConfig$1),defaultIconPrefixCls="anticon",defaultGetPrefixCls=(_e,et)=>et||(_e?`ant-${_e}`:"ant"),ConfigContext$1=reactExports.createContext({getPrefixCls:defaultGetPrefixCls,iconPrefixCls:defaultIconPrefixCls}),dynamicStyleMark=`-ant-${Date.now()}-${Math.random()}`;function getStyle$2(_e,et){const rt={},st=(ft,gt)=>{let xt=ft.clone();return xt=(gt==null?void 0:gt(xt))||xt,xt.toRgbString()},ct=(ft,gt)=>{const xt=new TinyColor(ft),$t=generate$b(xt.toRgbString());rt[`${gt}-color`]=st(xt),rt[`${gt}-color-disabled`]=$t[1],rt[`${gt}-color-hover`]=$t[4],rt[`${gt}-color-active`]=$t[6],rt[`${gt}-color-outline`]=xt.clone().setAlpha(.2).toRgbString(),rt[`${gt}-color-deprecated-bg`]=$t[0],rt[`${gt}-color-deprecated-border`]=$t[2]};if(et.primaryColor){ct(et.primaryColor,"primary");const ft=new TinyColor(et.primaryColor),gt=generate$b(ft.toRgbString());gt.forEach(($t,_t)=>{rt[`primary-${_t+1}`]=$t}),rt["primary-color-deprecated-l-35"]=st(ft,$t=>$t.lighten(35)),rt["primary-color-deprecated-l-20"]=st(ft,$t=>$t.lighten(20)),rt["primary-color-deprecated-t-20"]=st(ft,$t=>$t.tint(20)),rt["primary-color-deprecated-t-50"]=st(ft,$t=>$t.tint(50)),rt["primary-color-deprecated-f-12"]=st(ft,$t=>$t.setAlpha($t.getAlpha()*.12));const xt=new TinyColor(gt[0]);rt["primary-color-active-deprecated-f-30"]=st(xt,$t=>$t.setAlpha($t.getAlpha()*.3)),rt["primary-color-active-deprecated-d-02"]=st(xt,$t=>$t.darken(2))}return et.successColor&&ct(et.successColor,"success"),et.warningColor&&ct(et.warningColor,"warning"),et.errorColor&&ct(et.errorColor,"error"),et.infoColor&&ct(et.infoColor,"info"),` :root { ${Object.keys(rt).map(ft=>`--${_e}-${ft}: ${rt[ft]};`).join(` `)} } - `.trim()}function registerTheme(_e,et){const rt=getStyle$2(_e,et);canUseDom$1()&&updateCSS(rt,`${dynamicStyleMark}-dynamic-theme`)}const DisabledContext$1=reactExports.createContext(!1),DisabledContextProvider=_e=>{let{children:et,disabled:rt}=_e;const st=reactExports.useContext(DisabledContext$1);return reactExports.createElement(DisabledContext$1.Provider,{value:rt??st},et)},DisabledContext$2=DisabledContext$1,SizeContext$1=reactExports.createContext(void 0),SizeContextProvider=_e=>{let{children:et,size:rt}=_e;const st=reactExports.useContext(SizeContext$1);return reactExports.createElement(SizeContext$1.Provider,{value:rt||st},et)},SizeContext$2=SizeContext$1;function useConfig$2(){const _e=reactExports.useContext(DisabledContext$2),et=reactExports.useContext(SizeContext$2);return{componentDisabled:_e,componentSize:et}}const PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],version$3="5.14.1";function isStableColor(_e){return _e>=0&&_e<=255}function getAlphaColor$3(_e,et){const{r:rt,g:st,b:ct,a:ut}=new TinyColor(_e).toRgb();if(ut<1)return _e;const{r:ft,g:gt,b:xt}=new TinyColor(et).toRgb();for(let $t=.01;$t<=1;$t+=.01){const _t=Math.round((rt-ft*(1-$t))/$t),wt=Math.round((st-gt*(1-$t))/$t),Tt=Math.round((ct-xt*(1-$t))/$t);if(isStableColor(_t)&&isStableColor(wt)&&isStableColor(Tt))return new TinyColor({r:_t,g:wt,b:Tt,a:Math.round($t*100)/100}).toRgbString()}return new TinyColor({r:rt,g:st,b:ct,a:1}).toRgbString()}var __rest$16=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{delete st[Tt]});const ct=Object.assign(Object.assign({},rt),st),ut=480,ft=576,gt=768,xt=992,$t=1200,_t=1600;if(ct.motion===!1){const Tt="0s";ct.motionDurationFast=Tt,ct.motionDurationMid=Tt,ct.motionDurationSlow=Tt}return Object.assign(Object.assign(Object.assign({},ct),{colorFillContent:ct.colorFillSecondary,colorFillContentHover:ct.colorFill,colorFillAlter:ct.colorFillQuaternary,colorBgContainerDisabled:ct.colorFillTertiary,colorBorderBg:ct.colorBgContainer,colorSplit:getAlphaColor$3(ct.colorBorderSecondary,ct.colorBgContainer),colorTextPlaceholder:ct.colorTextQuaternary,colorTextDisabled:ct.colorTextQuaternary,colorTextHeading:ct.colorText,colorTextLabel:ct.colorTextSecondary,colorTextDescription:ct.colorTextTertiary,colorTextLightSolid:ct.colorWhite,colorHighlight:ct.colorError,colorBgTextHover:ct.colorFillSecondary,colorBgTextActive:ct.colorFill,colorIcon:ct.colorTextTertiary,colorIconHover:ct.colorText,colorErrorOutline:getAlphaColor$3(ct.colorErrorBg,ct.colorBgContainer),colorWarningOutline:getAlphaColor$3(ct.colorWarningBg,ct.colorBgContainer),fontSizeIcon:ct.fontSizeSM,lineWidthFocus:ct.lineWidth*4,lineWidth:ct.lineWidth,controlOutlineWidth:ct.lineWidth*2,controlInteractiveSize:ct.controlHeight/2,controlItemBgHover:ct.colorFillTertiary,controlItemBgActive:ct.colorPrimaryBg,controlItemBgActiveHover:ct.colorPrimaryBgHover,controlItemBgActiveDisabled:ct.colorFill,controlTmpOutline:ct.colorFillQuaternary,controlOutline:getAlphaColor$3(ct.colorPrimaryBg,ct.colorBgContainer),lineType:ct.lineType,borderRadius:ct.borderRadius,borderRadiusXS:ct.borderRadiusXS,borderRadiusSM:ct.borderRadiusSM,borderRadiusLG:ct.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:ct.sizeXXS,paddingXS:ct.sizeXS,paddingSM:ct.sizeSM,padding:ct.size,paddingMD:ct.sizeMD,paddingLG:ct.sizeLG,paddingXL:ct.sizeXL,paddingContentHorizontalLG:ct.sizeLG,paddingContentVerticalLG:ct.sizeMS,paddingContentHorizontal:ct.sizeMS,paddingContentVertical:ct.sizeSM,paddingContentHorizontalSM:ct.size,paddingContentVerticalSM:ct.sizeXS,marginXXS:ct.sizeXXS,marginXS:ct.sizeXS,marginSM:ct.sizeSM,margin:ct.size,marginMD:ct.sizeMD,marginLG:ct.sizeLG,marginXL:ct.sizeXL,marginXXL:ct.sizeXXL,boxShadow:` + `.trim()}function registerTheme(_e,et){const rt=getStyle$2(_e,et);canUseDom$1()&&updateCSS(rt,`${dynamicStyleMark}-dynamic-theme`)}const DisabledContext$1=reactExports.createContext(!1),DisabledContextProvider=_e=>{let{children:et,disabled:rt}=_e;const st=reactExports.useContext(DisabledContext$1);return reactExports.createElement(DisabledContext$1.Provider,{value:rt??st},et)},DisabledContext$2=DisabledContext$1,SizeContext$1=reactExports.createContext(void 0),SizeContextProvider=_e=>{let{children:et,size:rt}=_e;const st=reactExports.useContext(SizeContext$1);return reactExports.createElement(SizeContext$1.Provider,{value:rt||st},et)},SizeContext$2=SizeContext$1;function useConfig$2(){const _e=reactExports.useContext(DisabledContext$2),et=reactExports.useContext(SizeContext$2);return{componentDisabled:_e,componentSize:et}}const PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],version$4="5.14.1";function isStableColor(_e){return _e>=0&&_e<=255}function getAlphaColor$3(_e,et){const{r:rt,g:st,b:ct,a:ut}=new TinyColor(_e).toRgb();if(ut<1)return _e;const{r:ft,g:gt,b:xt}=new TinyColor(et).toRgb();for(let $t=.01;$t<=1;$t+=.01){const _t=Math.round((rt-ft*(1-$t))/$t),wt=Math.round((st-gt*(1-$t))/$t),Tt=Math.round((ct-xt*(1-$t))/$t);if(isStableColor(_t)&&isStableColor(wt)&&isStableColor(Tt))return new TinyColor({r:_t,g:wt,b:Tt,a:Math.round($t*100)/100}).toRgbString()}return new TinyColor({r:rt,g:st,b:ct,a:1}).toRgbString()}var __rest$1a=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{delete st[Tt]});const ct=Object.assign(Object.assign({},rt),st),ut=480,ft=576,gt=768,xt=992,$t=1200,_t=1600;if(ct.motion===!1){const Tt="0s";ct.motionDurationFast=Tt,ct.motionDurationMid=Tt,ct.motionDurationSlow=Tt}return Object.assign(Object.assign(Object.assign({},ct),{colorFillContent:ct.colorFillSecondary,colorFillContentHover:ct.colorFill,colorFillAlter:ct.colorFillQuaternary,colorBgContainerDisabled:ct.colorFillTertiary,colorBorderBg:ct.colorBgContainer,colorSplit:getAlphaColor$3(ct.colorBorderSecondary,ct.colorBgContainer),colorTextPlaceholder:ct.colorTextQuaternary,colorTextDisabled:ct.colorTextQuaternary,colorTextHeading:ct.colorText,colorTextLabel:ct.colorTextSecondary,colorTextDescription:ct.colorTextTertiary,colorTextLightSolid:ct.colorWhite,colorHighlight:ct.colorError,colorBgTextHover:ct.colorFillSecondary,colorBgTextActive:ct.colorFill,colorIcon:ct.colorTextTertiary,colorIconHover:ct.colorText,colorErrorOutline:getAlphaColor$3(ct.colorErrorBg,ct.colorBgContainer),colorWarningOutline:getAlphaColor$3(ct.colorWarningBg,ct.colorBgContainer),fontSizeIcon:ct.fontSizeSM,lineWidthFocus:ct.lineWidth*4,lineWidth:ct.lineWidth,controlOutlineWidth:ct.lineWidth*2,controlInteractiveSize:ct.controlHeight/2,controlItemBgHover:ct.colorFillTertiary,controlItemBgActive:ct.colorPrimaryBg,controlItemBgActiveHover:ct.colorPrimaryBgHover,controlItemBgActiveDisabled:ct.colorFill,controlTmpOutline:ct.colorFillQuaternary,controlOutline:getAlphaColor$3(ct.colorPrimaryBg,ct.colorBgContainer),lineType:ct.lineType,borderRadius:ct.borderRadius,borderRadiusXS:ct.borderRadiusXS,borderRadiusSM:ct.borderRadiusSM,borderRadiusLG:ct.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:ct.sizeXXS,paddingXS:ct.sizeXS,paddingSM:ct.sizeSM,padding:ct.size,paddingMD:ct.sizeMD,paddingLG:ct.sizeLG,paddingXL:ct.sizeXL,paddingContentHorizontalLG:ct.sizeLG,paddingContentVerticalLG:ct.sizeMS,paddingContentHorizontal:ct.sizeMS,paddingContentVertical:ct.sizeSM,paddingContentHorizontalSM:ct.size,paddingContentVerticalSM:ct.sizeXS,marginXXS:ct.sizeXXS,marginXS:ct.sizeXS,marginSM:ct.sizeSM,margin:ct.size,marginMD:ct.sizeMD,marginLG:ct.sizeLG,marginXL:ct.sizeXL,marginXXL:ct.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) @@ -111,7 +111,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)"}),st)}var __rest$15=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const st=rt.getDerivativeToken(_e),{override:ct}=et,ut=__rest$15(et,["override"]);let ft=Object.assign(Object.assign({},st),{override:ct});return ft=formatToken(ft),ut&&Object.entries(ut).forEach(gt=>{let[xt,$t]=gt;const{theme:_t}=$t,wt=__rest$15($t,["theme"]);let Tt=wt;_t&&(Tt=getComputedToken(Object.assign(Object.assign({},ft),wt),{override:wt},_t)),ft[xt]=Tt}),ft};function useToken$4(){const{token:_e,hashed:et,theme:rt,override:st,cssVar:ct}=React$1.useContext(DesignTokenContext),ut=`${version$3}-${et||""}`,ft=rt||defaultTheme,[gt,xt,$t]=useCacheToken(ft,[seedToken,_e],{salt:ut,override:st,getComputedToken,formatToken,cssVar:ct&&{prefix:ct.prefix,key:ct.key,unitless,ignore,preserve}});return[ft,$t,et?xt:"",gt,ct]}function useEvent(_e){var et=reactExports.useRef();et.current=_e;var rt=reactExports.useCallback(function(){for(var st,ct=arguments.length,ut=new Array(ct),ft=0;ft1&&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:et?"inherit":_e.fontFamily}},resetIcon=()=>({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"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle=_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,\n &:hover":{textDecoration:_e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:_e.linkFocusDecoration,outline:0},"&[disabled]":{color:_e.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(_e,et,rt)=>{const{fontFamily:st,fontSize:ct}=_e,ut=`[class^="${et}"], [class*=" ${et}"]`;return{[rt?`.${rt}`:ut]:{fontFamily:st,fontSize:ct,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[ut]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},genFocusOutline=_e=>({outline:`${unit$1(_e.lineWidthFocus)} solid ${_e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=_e=>({"&:focus-visible":Object.assign({},genFocusOutline(_e))});let AbstractCalculator=_createClass$7(function _e(){_classCallCheck$9(this,_e)});const AbstractCalculator$1=AbstractCalculator;function _callSuper$2(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}let NumCalculator$1=function(_e){_inherits$9(et,_e);function et(rt){var st;return _classCallCheck$9(this,et),st=_callSuper$2(this,et),st.result=0,rt instanceof et?st.result=rt.result:typeof rt=="number"&&(st.result=rt),st}return _createClass$7(et,[{key:"add",value:function(st){return st instanceof et?this.result+=st.result:typeof st=="number"&&(this.result+=st),this}},{key:"sub",value:function(st){return st instanceof et?this.result-=st.result:typeof st=="number"&&(this.result-=st),this}},{key:"mul",value:function(st){return st instanceof et?this.result*=st.result:typeof st=="number"&&(this.result*=st),this}},{key:"div",value:function(st){return st instanceof et?this.result/=st.result:typeof st=="number"&&(this.result/=st),this}},{key:"equal",value:function(){return this.result}}]),et}(AbstractCalculator$1);function _callSuper$1(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}const CALC_UNIT="CALC_UNIT";function unit(_e){return typeof _e=="number"?`${_e}${CALC_UNIT}`:_e}let CSSCalculator$1=function(_e){_inherits$9(et,_e);function et(rt){var st;return _classCallCheck$9(this,et),st=_callSuper$1(this,et),st.result="",rt instanceof et?st.result=`(${rt.result})`:typeof rt=="number"?st.result=unit(rt):typeof rt=="string"&&(st.result=rt),st}return _createClass$7(et,[{key:"add",value:function(st){return st instanceof et?this.result=`${this.result} + ${st.getResult()}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} + ${unit(st)}`),this.lowPriority=!0,this}},{key:"sub",value:function(st){return st instanceof et?this.result=`${this.result} - ${st.getResult()}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} - ${unit(st)}`),this.lowPriority=!0,this}},{key:"mul",value:function(st){return this.lowPriority&&(this.result=`(${this.result})`),st instanceof et?this.result=`${this.result} * ${st.getResult(!0)}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} * ${st}`),this.lowPriority=!1,this}},{key:"div",value:function(st){return this.lowPriority&&(this.result=`(${this.result})`),st instanceof et?this.result=`${this.result} / ${st.getResult(!0)}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} / ${st}`),this.lowPriority=!1,this}},{key:"getResult",value:function(st){return this.lowPriority||st?`(${this.result})`:this.result}},{key:"equal",value:function(st){const{unit:ct=!0}=st||{},ut=new RegExp(`${CALC_UNIT}`,"g");return this.result=this.result.replace(ut,ct?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),et}(AbstractCalculator$1);const genCalc=_e=>{const et=_e==="css"?CSSCalculator$1:NumCalculator$1;return rt=>new et(rt)};function genMaxMin(_e){return _e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var et=arguments.length,rt=new Array(et),st=0;stunit$1(ct)).join(",")})`},min:function(){for(var et=arguments.length,rt=new Array(et),st=0;stunit$1(ct)).join(",")})`}}}const enableStatistic=typeof CSSINJS_STATISTIC<"u";let recording=!0;function merge$7(){for(var _e=arguments.length,et=new Array(_e),rt=0;rt<_e;rt++)et[rt]=arguments[rt];if(!enableStatistic)return Object.assign.apply(Object,[{}].concat(et));recording=!1;const st={};return et.forEach(ct=>{Object.keys(ct).forEach(ft=>{Object.defineProperty(st,ft,{configurable:!0,enumerable:!0,get:()=>ct[ft]})})}),recording=!0,st}const statistic$1={};function noop$6(){}const statisticToken=_e=>{let et,rt=_e,st=noop$6;return enableStatistic&&typeof Proxy<"u"&&(et=new Set,rt=new Proxy(_e,{get(ct,ut){return recording&&et.add(ut),ct[ut]}}),st=(ct,ut)=>{var ft;statistic$1[ct]={global:Array.from(et),component:Object.assign(Object.assign({},(ft=statistic$1[ct])===null||ft===void 0?void 0:ft.component),ut)}}),{token:rt,keys:et,flush:st}},useResetIconStyle$1=(_e,et)=>{const[rt,st]=useToken$4();return useStyleRegister({theme:rt,token:st,hashId:"",path:["ant-design-icons",_e],nonce:()=>et==null?void 0:et.nonce},()=>[{[`.${_e}`]:Object.assign(Object.assign({},resetIcon()),{[`.${_e} .${_e}-icon`]:{display:"block"}})}])},getDefaultComponentToken=(_e,et,rt)=>{var st;return typeof rt=="function"?rt(merge$7(et,(st=et[_e])!==null&&st!==void 0?st:{})):rt??{}},getComponentToken=(_e,et,rt,st)=>{const ct=Object.assign({},et[_e]);if(st!=null&&st.deprecatedTokens){const{deprecatedTokens:ft}=st;ft.forEach(gt=>{let[xt,$t]=gt;var _t;(ct!=null&&ct[xt]||ct!=null&&ct[$t])&&((_t=ct[$t])!==null&&_t!==void 0||(ct[$t]=ct==null?void 0:ct[xt]))})}const ut=Object.assign(Object.assign({},rt),ct);return Object.keys(ut).forEach(ft=>{ut[ft]===et[ft]&&delete ut[ft]}),ut},getCompVarPrefix=(_e,et)=>`${[et,_e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function genComponentStyleHook$1(_e,et,rt){let st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const ct=Array.isArray(_e)?_e:[_e,_e],[ut]=ct,ft=ct.join("-");return function(gt){let xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt;const[$t,_t,wt,Tt,Rt]=useToken$4(),{getPrefixCls:It,iconPrefixCls:At,csp:jt}=reactExports.useContext(ConfigContext$1),Nt=It(),kt=Rt?"css":"js",Ft=genCalc(kt),{max:Ht,min:Wt}=genMaxMin(kt),Vt={theme:$t,token:Tt,hashId:wt,nonce:()=>jt==null?void 0:jt.nonce,clientOnly:st.clientOnly,order:st.order||-999};return useStyleRegister(Object.assign(Object.assign({},Vt),{clientOnly:!1,path:["Shared",Nt]}),()=>[{"&":genLinkStyle(Tt)}]),useResetIconStyle$1(At,jt),[useStyleRegister(Object.assign(Object.assign({},Vt),{path:[ft,gt,At]}),()=>{if(st.injectStyle===!1)return[];const{token:Gt,flush:Xt}=statisticToken(Tt),Zt=getDefaultComponentToken(ut,_t,rt),lr=`.${gt}`,er=getComponentToken(ut,_t,Zt,{deprecatedTokens:st.deprecatedTokens});Rt&&Object.keys(Zt).forEach(pr=>{Zt[pr]=`var(${token2CSSVar(pr,getCompVarPrefix(ut,Rt.prefix))})`});const cr=merge$7(Gt,{componentCls:lr,prefixCls:gt,iconCls:`.${At}`,antCls:`.${Nt}`,calc:Ft,max:Ht,min:Wt},Rt?Zt:er),ur=et(cr,{hashId:wt,prefixCls:gt,rootPrefixCls:Nt,iconPrefixCls:At});return Xt(ut,er),[st.resetStyle===!1?null:genCommonStyle(cr,gt,xt),ur]}),wt]}}const genSubStyleComponent=(_e,et,rt,st)=>{const ct=genComponentStyleHook$1(_e,et,rt,Object.assign({resetStyle:!1,order:-998},st));return ft=>{let{prefixCls:gt,rootCls:xt=gt}=ft;return ct(gt,xt),null}},genCSSVarRegister=(_e,et,rt)=>{function st($t){return`${_e}${$t.slice(0,1).toUpperCase()}${$t.slice(1)}`}const{unitless:ct={},injectStyle:ut=!0}=rt??{},ft={[st("zIndexPopup")]:!0};Object.keys(ct).forEach($t=>{ft[st($t)]=ct[$t]});const gt=$t=>{let{rootCls:_t,cssVar:wt}=$t;const[,Tt]=useToken$4();return useCSSVarRegister({path:[_e],prefix:wt.prefix,key:wt==null?void 0:wt.key,unitless:Object.assign(Object.assign({},unitless),ft),ignore,token:Tt,scope:_t},()=>{const Rt=getDefaultComponentToken(_e,Tt,et),It=getComponentToken(_e,Tt,Rt,{deprecatedTokens:rt==null?void 0:rt.deprecatedTokens});return Object.keys(Rt).forEach(At=>{It[st(At)]=It[At],delete It[At]}),It}),null};return $t=>{const[,,,,_t]=useToken$4();return[wt=>ut&&_t?React$1.createElement(React$1.Fragment,null,React$1.createElement(gt,{rootCls:$t,cssVar:_t,component:_e}),wt):wt,_t==null?void 0:_t.key]}},genStyleHooks=(_e,et,rt,st)=>{const ct=genComponentStyleHook$1(_e,et,rt,st),ut=genCSSVarRegister(Array.isArray(_e)?_e[0]:_e,rt,st);return function(ft){let gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ft;const[,xt]=ct(ft,gt),[$t,_t]=ut(gt);return[$t,xt,_t]}};function genPresetColor$2(_e,et){return PresetColors.reduce((rt,st)=>{const ct=_e[`${st}1`],ut=_e[`${st}3`],ft=_e[`${st}6`],gt=_e[`${st}7`];return Object.assign(Object.assign({},rt),et(st,{lightColor:ct,lightBorderColor:ut,darkColor:ft,textColor:gt}))},{})}const fullClone$1=Object.assign({},React$2),{useId:useId$5}=fullClone$1,useEmptyId=()=>"",useThemeKey$1=typeof useId$5>"u"?useEmptyId:useId$5;function useTheme$1(_e,et){var rt;devUseWarning();const st=_e||{},ct=st.inherit===!1||!et?Object.assign(Object.assign({},defaultConfig$1),{hashed:(rt=et==null?void 0:et.hashed)!==null&&rt!==void 0?rt:defaultConfig$1.hashed,cssVar:et==null?void 0:et.cssVar}):et,ut=useThemeKey$1();return useMemo$1(()=>{var ft,gt;if(!_e)return et;const xt=Object.assign({},ct.components);Object.keys(_e.components||{}).forEach(wt=>{xt[wt]=Object.assign(Object.assign({},xt[wt]),_e.components[wt])});const $t=`css-var-${ut.replace(/:/g,"")}`,_t=((ft=st.cssVar)!==null&&ft!==void 0?ft:ct.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof ct.cssVar=="object"?ct.cssVar:{}),typeof st.cssVar=="object"?st.cssVar:{}),{key:typeof st.cssVar=="object"&&((gt=st.cssVar)===null||gt===void 0?void 0:gt.key)||$t});return Object.assign(Object.assign(Object.assign({},ct),st),{token:Object.assign(Object.assign({},ct.token),st.token),components:xt,cssVar:_t})},[st,ct],(ft,gt)=>ft.some((xt,$t)=>{const _t=gt[$t];return!isEqual$1(xt,_t,!0)}))}var _excluded$1Q=["children"],Context$9=reactExports.createContext({});function MotionProvider(_e){var et=_e.children,rt=_objectWithoutProperties$2(_e,_excluded$1Q);return reactExports.createElement(Context$9.Provider,{value:rt},et)}var DomWrapper=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){return _classCallCheck$9(this,rt),et.apply(this,arguments)}return _createClass$7(rt,[{key:"render",value:function(){return this.props.children}}]),rt}(reactExports.Component),STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(_e,et){var rt={};return rt[_e.toLowerCase()]=et.toLowerCase(),rt["Webkit".concat(_e)]="webkit".concat(et),rt["Moz".concat(_e)]="moz".concat(et),rt["ms".concat(_e)]="MS".concat(et),rt["O".concat(_e)]="o".concat(et.toLowerCase()),rt}function getVendorPrefixes(_e,et){var rt={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return _e&&("AnimationEvent"in et||delete rt.animationend.animation,"TransitionEvent"in et||delete rt.transitionend.transition),rt}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style$3={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style$3=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(_e){if(prefixedEventNames[_e])return prefixedEventNames[_e];var et=vendorPrefixes[_e];if(et)for(var rt=Object.keys(et),st=rt.length,ct=0;ct1&&arguments[1]!==void 0?arguments[1]:2;et();var ut=wrapperRaf(function(){ct<=1?st({isCanceled:function(){return ut!==_e.current}}):rt(st,ct-1)});_e.current=ut}return reactExports.useEffect(function(){return function(){et()}},[]),[rt,et]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(_e){return _e===STEP_ACTIVE||_e===STEP_ACTIVATED}const useStepQueue=function(_e,et,rt){var st=useSafeState(STEP_NONE),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=useNextFrame(),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1];function wt(){ft(STEP_PREPARE,!0)}var Tt=et?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$2(function(){if(ut!==STEP_NONE&&ut!==STEP_ACTIVATED){var Rt=Tt.indexOf(ut),It=Tt[Rt+1],At=rt(ut);At===SkipStep?ft(It,!0):It&&$t(function(jt){function Nt(){jt.isCanceled()||ft(It,!0)}At===!0?Nt():Promise.resolve(At).then(Nt)})}},[_e,ut]),reactExports.useEffect(function(){return function(){_t()}},[]),[wt,ut]};function useStatus$1(_e,et,rt,st){var ct=st.motionEnter,ut=ct===void 0?!0:ct,ft=st.motionAppear,gt=ft===void 0?!0:ft,xt=st.motionLeave,$t=xt===void 0?!0:xt,_t=st.motionDeadline,wt=st.motionLeaveImmediately,Tt=st.onAppearPrepare,Rt=st.onEnterPrepare,It=st.onLeavePrepare,At=st.onAppearStart,jt=st.onEnterStart,Nt=st.onLeaveStart,kt=st.onAppearActive,Ft=st.onEnterActive,Ht=st.onLeaveActive,Wt=st.onAppearEnd,Vt=st.onEnterEnd,qt=st.onLeaveEnd,Gt=st.onVisibleChanged,Xt=useSafeState(),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=useSafeState(STATUS_NONE),ur=_slicedToArray$3(cr,2),pr=ur[0],hr=ur[1],fr=useSafeState(null),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1],Er=reactExports.useRef(!1),mr=reactExports.useRef(null);function Sr(){return rt()}var Tr=reactExports.useRef(!1);function jr(){hr(STATUS_NONE,!0),$r(null,!0)}function Or(Kr){var zr=Sr();if(!(Kr&&!Kr.deadline&&Kr.target!==zr)){var qr=Tr.current,pn;pr===STATUS_APPEAR&&qr?pn=Wt==null?void 0:Wt(zr,Kr):pr===STATUS_ENTER&&qr?pn=Vt==null?void 0:Vt(zr,Kr):pr===STATUS_LEAVE&&qr&&(pn=qt==null?void 0:qt(zr,Kr)),pr!==STATUS_NONE&&qr&&pn!==!1&&jr()}}var _r=useDomMotionEvents(Or),Cr=_slicedToArray$3(_r,1),Nr=Cr[0],Rr=function(zr){var qr,pn,Qr;switch(zr){case STATUS_APPEAR:return qr={},_defineProperty$c(qr,STEP_PREPARE,Tt),_defineProperty$c(qr,STEP_START,At),_defineProperty$c(qr,STEP_ACTIVE,kt),qr;case STATUS_ENTER:return pn={},_defineProperty$c(pn,STEP_PREPARE,Rt),_defineProperty$c(pn,STEP_START,jt),_defineProperty$c(pn,STEP_ACTIVE,Ft),pn;case STATUS_LEAVE:return Qr={},_defineProperty$c(Qr,STEP_PREPARE,It),_defineProperty$c(Qr,STEP_START,Nt),_defineProperty$c(Qr,STEP_ACTIVE,Ht),Qr;default:return{}}},Pr=reactExports.useMemo(function(){return Rr(pr)},[pr]),Mr=useStepQueue(pr,!_e,function(Kr){if(Kr===STEP_PREPARE){var zr=Pr[STEP_PREPARE];return zr?zr(Sr()):SkipStep}if(wr in Pr){var qr;$r(((qr=Pr[wr])===null||qr===void 0?void 0:qr.call(Pr,Sr(),null))||null)}return wr===STEP_ACTIVE&&(Nr(Sr()),_t>0&&(clearTimeout(mr.current),mr.current=setTimeout(function(){Or({deadline:!0})},_t))),wr===STEP_PREPARED&&jr(),DoStep}),kr=_slicedToArray$3(Mr,2),Fr=kr[0],wr=kr[1],Br=isActive(wr);Tr.current=Br,useIsomorphicLayoutEffect$2(function(){er(et);var Kr=Er.current;Er.current=!0;var zr;!Kr&&et&>&&(zr=STATUS_APPEAR),Kr&&et&&ut&&(zr=STATUS_ENTER),(Kr&&!et&&$t||!Kr&&wt&&!et&&$t)&&(zr=STATUS_LEAVE);var qr=Rr(zr);zr&&(_e||qr[STEP_PREPARE])?(hr(zr),Fr()):hr(STATUS_NONE)},[et]),reactExports.useEffect(function(){(pr===STATUS_APPEAR&&!gt||pr===STATUS_ENTER&&!ut||pr===STATUS_LEAVE&&!$t)&&hr(STATUS_NONE)},[gt,ut,$t]),reactExports.useEffect(function(){return function(){Er.current=!1,clearTimeout(mr.current)}},[]);var Dr=reactExports.useRef(!1);reactExports.useEffect(function(){lr&&(Dr.current=!0),lr!==void 0&&pr===STATUS_NONE&&((Dr.current||lr)&&(Gt==null||Gt(lr)),Dr.current=!0)},[lr,pr]);var Xr=yr;return Pr[STEP_PREPARE]&&wr===STEP_START&&(Xr=_objectSpread2({transition:"none"},Xr)),[pr,wr,Xr,lr??et]}function genCSSMotion(_e){var et=_e;_typeof$e(_e)==="object"&&(et=_e.transitionSupport);function rt(ct,ut){return!!(ct.motionName&&et&&ut!==!1)}var st=reactExports.forwardRef(function(ct,ut){var ft=ct.visible,gt=ft===void 0?!0:ft,xt=ct.removeOnLeave,$t=xt===void 0?!0:xt,_t=ct.forceRender,wt=ct.children,Tt=ct.motionName,Rt=ct.leavedClassName,It=ct.eventProps,At=reactExports.useContext(Context$9),jt=At.motion,Nt=rt(ct,jt),kt=reactExports.useRef(),Ft=reactExports.useRef();function Ht(){try{return kt.current instanceof HTMLElement?kt.current:findDOMNode(Ft.current)}catch{return null}}var Wt=useStatus$1(Nt,gt,Ht,ct),Vt=_slicedToArray$3(Wt,4),qt=Vt[0],Gt=Vt[1],Xt=Vt[2],Zt=Vt[3],lr=reactExports.useRef(Zt);Zt&&(lr.current=!0);var er=reactExports.useCallback(function($r){kt.current=$r,fillRef(ut,$r)},[ut]),cr,ur=_objectSpread2(_objectSpread2({},It),{},{visible:gt});if(!wt)cr=null;else if(qt===STATUS_NONE)Zt?cr=wt(_objectSpread2({},ur),er):!$t&&lr.current&&Rt?cr=wt(_objectSpread2(_objectSpread2({},ur),{},{className:Rt}),er):_t||!$t&&!Rt?cr=wt(_objectSpread2(_objectSpread2({},ur),{},{style:{display:"none"}}),er):cr=null;else{var pr,hr;Gt===STEP_PREPARE?hr="prepare":isActive(Gt)?hr="active":Gt===STEP_START&&(hr="start");var fr=getTransitionName$1(Tt,"".concat(qt,"-").concat(hr));cr=wt(_objectSpread2(_objectSpread2({},ur),{},{className:classNames(getTransitionName$1(Tt,qt),(pr={},_defineProperty$c(pr,fr,fr&&hr),_defineProperty$c(pr,Tt,typeof Tt=="string"),pr)),style:Xt}),er)}if(reactExports.isValidElement(cr)&&supportRef(cr)){var dr=cr,yr=dr.ref;yr||(cr=reactExports.cloneElement(cr,{ref:er}))}return reactExports.createElement(DomWrapper,{ref:Ft},cr)});return st.displayName="CSSMotion",st}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(_e){var et;return _e&&_typeof$e(_e)==="object"&&"key"in _e?et=_e:et={key:_e},_objectSpread2(_objectSpread2({},et),{},{key:String(et.key)})}function parseKeys(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _e.map(wrapKeyToObject)}function diffKeys(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=[],st=0,ct=et.length,ut=parseKeys(_e),ft=parseKeys(et);ut.forEach(function($t){for(var _t=!1,wt=st;wt1});return xt.forEach(function($t){rt=rt.filter(function(_t){var wt=_t.key,Tt=_t.status;return wt!==$t||Tt!==STATUS_REMOVE}),rt.forEach(function(_t){_t.key===$t&&(_t.status=STATUS_KEEP)})}),rt}var _excluded$1P=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$s=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,rt=function(st){_inherits$9(ut,st);var ct=_createSuper$7(ut);function ut(){var ft;_classCallCheck$9(this,ut);for(var gt=arguments.length,xt=new Array(gt),$t=0;$tnull;var __rest$14=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctet.endsWith("Color"))}const setGlobalConfig=_e=>{const{prefixCls:et,iconPrefixCls:rt,theme:st,holderRender:ct}=_e;et!==void 0&&(globalPrefixCls=et),rt!==void 0&&(globalIconPrefixCls=rt),"holderRender"in _e&&(globalHolderRender=ct),st&&(isLegacyTheme(st)?registerTheme(getGlobalPrefixCls(),st):globalTheme=st)},globalConfig=()=>({getPrefixCls:(_e,et)=>et||(_e?`${getGlobalPrefixCls()}-${_e}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=_e=>{const{children:et,csp:rt,autoInsertSpaceInButton:st,alert:ct,anchor:ut,form:ft,locale:gt,componentSize:xt,direction:$t,space:_t,virtual:wt,dropdownMatchSelectWidth:Tt,popupMatchSelectWidth:Rt,popupOverflow:It,legacyLocale:At,parentContext:jt,iconPrefixCls:Nt,theme:kt,componentDisabled:Ft,segmented:Ht,statistic:Wt,spin:Vt,calendar:qt,carousel:Gt,cascader:Xt,collapse:Zt,typography:lr,checkbox:er,descriptions:cr,divider:ur,drawer:pr,skeleton:hr,steps:fr,image:dr,layout:yr,list:$r,mentions:Er,modal:mr,progress:Sr,result:Tr,slider:jr,breadcrumb:Or,menu:_r,pagination:Cr,input:Nr,empty:Rr,badge:Pr,radio:Mr,rate:kr,switch:Fr,transfer:wr,avatar:Br,message:Dr,tag:Xr,table:Kr,card:zr,tabs:qr,timeline:pn,timePicker:Qr,upload:Zr,notification:vn,tree:vr,colorPicker:gr,datePicker:br,rangePicker:Hr,flex:Vr,wave:Wr,dropdown:Gr,warning:cn,tour:mn}=_e,hn=reactExports.useCallback((wn,Tn)=>{const{prefixCls:Nn}=_e;if(Tn)return Tn;const On=Nn||jt.getPrefixCls("");return wn?`${On}-${wn}`:On},[jt.getPrefixCls,_e.prefixCls]),En=Nt||jt.iconPrefixCls||defaultIconPrefixCls,Rn=rt||jt.csp;useResetIconStyle$1(En,Rn);const Dn=useTheme$1(kt,jt.theme),Bn={csp:Rn,autoInsertSpaceInButton:st,alert:ct,anchor:ut,locale:gt||At,direction:$t,space:_t,virtual:wt,popupMatchSelectWidth:Rt??Tt,popupOverflow:It,getPrefixCls:hn,iconPrefixCls:En,theme:Dn,segmented:Ht,statistic:Wt,spin:Vt,calendar:qt,carousel:Gt,cascader:Xt,collapse:Zt,typography:lr,checkbox:er,descriptions:cr,divider:ur,drawer:pr,skeleton:hr,steps:fr,image:dr,input:Nr,layout:yr,list:$r,mentions:Er,modal:mr,progress:Sr,result:Tr,slider:jr,breadcrumb:Or,menu:_r,pagination:Cr,empty:Rr,badge:Pr,radio:Mr,rate:kr,switch:Fr,transfer:wr,avatar:Br,message:Dr,tag:Xr,table:Kr,card:zr,tabs:qr,timeline:pn,timePicker:Qr,upload:Zr,notification:vn,tree:vr,colorPicker:gr,datePicker:br,rangePicker:Hr,flex:Vr,wave:Wr,dropdown:Gr,warning:cn,tour:mn},Yn=Object.assign({},jt);Object.keys(Bn).forEach(wn=>{Bn[wn]!==void 0&&(Yn[wn]=Bn[wn])}),PASSED_PROPS.forEach(wn=>{const Tn=_e[wn];Tn&&(Yn[wn]=Tn)});const qn=useMemo$1(()=>Yn,Yn,(wn,Tn)=>{const Nn=Object.keys(wn),On=Object.keys(Tn);return Nn.length!==On.length||Nn.some(xn=>wn[xn]!==Tn[xn])}),ao=reactExports.useMemo(()=>({prefixCls:En,csp:Rn}),[En,Rn]);let dn=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(PropWarning$1,{dropdownMatchSelectWidth:Tt}),et);const gn=reactExports.useMemo(()=>{var wn,Tn,Nn,On;return merge$8(((wn=localeValues$1.Form)===null||wn===void 0?void 0:wn.defaultValidateMessages)||{},((Nn=(Tn=qn.locale)===null||Tn===void 0?void 0:Tn.Form)===null||Nn===void 0?void 0:Nn.defaultValidateMessages)||{},((On=qn.form)===null||On===void 0?void 0:On.validateMessages)||{},(ft==null?void 0:ft.validateMessages)||{})},[qn,ft==null?void 0:ft.validateMessages]);Object.keys(gn).length>0&&(dn=reactExports.createElement(ValidateMessagesContext.Provider,{value:gn},dn)),gt&&(dn=reactExports.createElement(LocaleProvider$1,{locale:gt,_ANT_MARK__:ANT_MARK},dn)),(En||Rn)&&(dn=reactExports.createElement(IconContext$5.Provider,{value:ao},dn)),xt&&(dn=reactExports.createElement(SizeContextProvider,{size:xt},dn)),dn=reactExports.createElement(MotionWrapper$1,null,dn);const yn=reactExports.useMemo(()=>{const wn=Dn||{},{algorithm:Tn,token:Nn,components:On,cssVar:xn}=wn,Cn=__rest$14(wn,["algorithm","token","components","cssVar"]),Sn=Tn&&(!Array.isArray(Tn)||Tn.length>0)?createTheme(Tn):defaultTheme,Mn={};Object.entries(On||{}).forEach(Un=>{let[Gn,eo]=Un;const io=Object.assign({},eo);"algorithm"in io&&(io.algorithm===!0?io.theme=Sn:(Array.isArray(io.algorithm)||typeof io.algorithm=="function")&&(io.theme=createTheme(io.algorithm)),delete io.algorithm),Mn[Gn]=io});const jn=Object.assign(Object.assign({},seedToken),Nn);return Object.assign(Object.assign({},Cn),{theme:Sn,token:jn,components:Mn,override:Object.assign({override:jn},Mn),cssVar:xn})},[Dn]);return kt&&(dn=reactExports.createElement(DesignTokenContext.Provider,{value:yn},dn)),qn.warning&&(dn=reactExports.createElement(WarningContext.Provider,{value:qn.warning},dn)),Ft!==void 0&&(dn=reactExports.createElement(DisabledContextProvider,{disabled:Ft},dn)),reactExports.createElement(ConfigContext$1.Provider,{value:qn},dn)},ConfigProvider$1=_e=>{const et=reactExports.useContext(ConfigContext$1),rt=reactExports.useContext(LocaleContext$1);return reactExports.createElement(ProviderChildren,Object.assign({parentContext:et,legacyLocale:rt},_e))};ConfigProvider$1.ConfigContext=ConfigContext$1;ConfigProvider$1.SizeContext=SizeContext$2;ConfigProvider$1.config=setGlobalConfig;ConfigProvider$1.useConfig=useConfig$2;Object.defineProperty(ConfigProvider$1,"SizeContext",{get:()=>SizeContext$2});var CheckCircleFilled$2={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"};const CheckCircleFilledSvg=CheckCircleFilled$2;function getRoot$1(_e){var et;return _e==null||(et=_e.getRootNode)===null||et===void 0?void 0:et.call(_e)}function inShadow$1(_e){return getRoot$1(_e)instanceof ShadowRoot}function getShadowRoot$1(_e){return inShadow$1(_e)?getRoot$1(_e):null}function camelCase$6(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$9(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$5(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$5(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$6(rt)]=st}return et},{})}function generate$a(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$5(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$a(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$5(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$a(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$5(_e){return generate$b(_e)[0]}function normalizeTwoToneColors$5(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$5=` + `,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)"}),st)}var __rest$19=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const st=rt.getDerivativeToken(_e),{override:ct}=et,ut=__rest$19(et,["override"]);let ft=Object.assign(Object.assign({},st),{override:ct});return ft=formatToken(ft),ut&&Object.entries(ut).forEach(gt=>{let[xt,$t]=gt;const{theme:_t}=$t,wt=__rest$19($t,["theme"]);let Tt=wt;_t&&(Tt=getComputedToken(Object.assign(Object.assign({},ft),wt),{override:wt},_t)),ft[xt]=Tt}),ft};function useToken$4(){const{token:_e,hashed:et,theme:rt,override:st,cssVar:ct}=React$1.useContext(DesignTokenContext),ut=`${version$4}-${et||""}`,ft=rt||defaultTheme,[gt,xt,$t]=useCacheToken(ft,[seedToken,_e],{salt:ut,override:st,getComputedToken,formatToken,cssVar:ct&&{prefix:ct.prefix,key:ct.key,unitless,ignore,preserve}});return[ft,$t,et?xt:"",gt,ct]}function useEvent(_e){var et=reactExports.useRef();et.current=_e;var rt=reactExports.useCallback(function(){for(var st,ct=arguments.length,ut=new Array(ct),ft=0;ft1&&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:et?"inherit":_e.fontFamily}},resetIcon=()=>({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"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle=_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,\n &:hover":{textDecoration:_e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:_e.linkFocusDecoration,outline:0},"&[disabled]":{color:_e.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(_e,et,rt)=>{const{fontFamily:st,fontSize:ct}=_e,ut=`[class^="${et}"], [class*=" ${et}"]`;return{[rt?`.${rt}`:ut]:{fontFamily:st,fontSize:ct,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[ut]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},genFocusOutline=_e=>({outline:`${unit$1(_e.lineWidthFocus)} solid ${_e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=_e=>({"&:focus-visible":Object.assign({},genFocusOutline(_e))});let AbstractCalculator=_createClass$7(function _e(){_classCallCheck$9(this,_e)});const AbstractCalculator$1=AbstractCalculator;function _callSuper$2(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}let NumCalculator$1=function(_e){_inherits$9(et,_e);function et(rt){var st;return _classCallCheck$9(this,et),st=_callSuper$2(this,et),st.result=0,rt instanceof et?st.result=rt.result:typeof rt=="number"&&(st.result=rt),st}return _createClass$7(et,[{key:"add",value:function(st){return st instanceof et?this.result+=st.result:typeof st=="number"&&(this.result+=st),this}},{key:"sub",value:function(st){return st instanceof et?this.result-=st.result:typeof st=="number"&&(this.result-=st),this}},{key:"mul",value:function(st){return st instanceof et?this.result*=st.result:typeof st=="number"&&(this.result*=st),this}},{key:"div",value:function(st){return st instanceof et?this.result/=st.result:typeof st=="number"&&(this.result/=st),this}},{key:"equal",value:function(){return this.result}}]),et}(AbstractCalculator$1);function _callSuper$1(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}const CALC_UNIT="CALC_UNIT";function unit(_e){return typeof _e=="number"?`${_e}${CALC_UNIT}`:_e}let CSSCalculator$1=function(_e){_inherits$9(et,_e);function et(rt){var st;return _classCallCheck$9(this,et),st=_callSuper$1(this,et),st.result="",rt instanceof et?st.result=`(${rt.result})`:typeof rt=="number"?st.result=unit(rt):typeof rt=="string"&&(st.result=rt),st}return _createClass$7(et,[{key:"add",value:function(st){return st instanceof et?this.result=`${this.result} + ${st.getResult()}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} + ${unit(st)}`),this.lowPriority=!0,this}},{key:"sub",value:function(st){return st instanceof et?this.result=`${this.result} - ${st.getResult()}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} - ${unit(st)}`),this.lowPriority=!0,this}},{key:"mul",value:function(st){return this.lowPriority&&(this.result=`(${this.result})`),st instanceof et?this.result=`${this.result} * ${st.getResult(!0)}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} * ${st}`),this.lowPriority=!1,this}},{key:"div",value:function(st){return this.lowPriority&&(this.result=`(${this.result})`),st instanceof et?this.result=`${this.result} / ${st.getResult(!0)}`:(typeof st=="number"||typeof st=="string")&&(this.result=`${this.result} / ${st}`),this.lowPriority=!1,this}},{key:"getResult",value:function(st){return this.lowPriority||st?`(${this.result})`:this.result}},{key:"equal",value:function(st){const{unit:ct=!0}=st||{},ut=new RegExp(`${CALC_UNIT}`,"g");return this.result=this.result.replace(ut,ct?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),et}(AbstractCalculator$1);const genCalc=_e=>{const et=_e==="css"?CSSCalculator$1:NumCalculator$1;return rt=>new et(rt)};function genMaxMin(_e){return _e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var et=arguments.length,rt=new Array(et),st=0;stunit$1(ct)).join(",")})`},min:function(){for(var et=arguments.length,rt=new Array(et),st=0;stunit$1(ct)).join(",")})`}}}const enableStatistic=typeof CSSINJS_STATISTIC<"u";let recording=!0;function merge$7(){for(var _e=arguments.length,et=new Array(_e),rt=0;rt<_e;rt++)et[rt]=arguments[rt];if(!enableStatistic)return Object.assign.apply(Object,[{}].concat(et));recording=!1;const st={};return et.forEach(ct=>{Object.keys(ct).forEach(ft=>{Object.defineProperty(st,ft,{configurable:!0,enumerable:!0,get:()=>ct[ft]})})}),recording=!0,st}const statistic$1={};function noop$7(){}const statisticToken=_e=>{let et,rt=_e,st=noop$7;return enableStatistic&&typeof Proxy<"u"&&(et=new Set,rt=new Proxy(_e,{get(ct,ut){return recording&&et.add(ut),ct[ut]}}),st=(ct,ut)=>{var ft;statistic$1[ct]={global:Array.from(et),component:Object.assign(Object.assign({},(ft=statistic$1[ct])===null||ft===void 0?void 0:ft.component),ut)}}),{token:rt,keys:et,flush:st}},useResetIconStyle$1=(_e,et)=>{const[rt,st]=useToken$4();return useStyleRegister({theme:rt,token:st,hashId:"",path:["ant-design-icons",_e],nonce:()=>et==null?void 0:et.nonce},()=>[{[`.${_e}`]:Object.assign(Object.assign({},resetIcon()),{[`.${_e} .${_e}-icon`]:{display:"block"}})}])},getDefaultComponentToken=(_e,et,rt)=>{var st;return typeof rt=="function"?rt(merge$7(et,(st=et[_e])!==null&&st!==void 0?st:{})):rt??{}},getComponentToken=(_e,et,rt,st)=>{const ct=Object.assign({},et[_e]);if(st!=null&&st.deprecatedTokens){const{deprecatedTokens:ft}=st;ft.forEach(gt=>{let[xt,$t]=gt;var _t;(ct!=null&&ct[xt]||ct!=null&&ct[$t])&&((_t=ct[$t])!==null&&_t!==void 0||(ct[$t]=ct==null?void 0:ct[xt]))})}const ut=Object.assign(Object.assign({},rt),ct);return Object.keys(ut).forEach(ft=>{ut[ft]===et[ft]&&delete ut[ft]}),ut},getCompVarPrefix=(_e,et)=>`${[et,_e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function genComponentStyleHook$1(_e,et,rt){let st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const ct=Array.isArray(_e)?_e:[_e,_e],[ut]=ct,ft=ct.join("-");return function(gt){let xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt;const[$t,_t,wt,Tt,Rt]=useToken$4(),{getPrefixCls:It,iconPrefixCls:At,csp:jt}=reactExports.useContext(ConfigContext$1),Nt=It(),kt=Rt?"css":"js",Ft=genCalc(kt),{max:Ht,min:Wt}=genMaxMin(kt),Vt={theme:$t,token:Tt,hashId:wt,nonce:()=>jt==null?void 0:jt.nonce,clientOnly:st.clientOnly,order:st.order||-999};return useStyleRegister(Object.assign(Object.assign({},Vt),{clientOnly:!1,path:["Shared",Nt]}),()=>[{"&":genLinkStyle(Tt)}]),useResetIconStyle$1(At,jt),[useStyleRegister(Object.assign(Object.assign({},Vt),{path:[ft,gt,At]}),()=>{if(st.injectStyle===!1)return[];const{token:Xt,flush:Gt}=statisticToken(Tt),Zt=getDefaultComponentToken(ut,_t,rt),er=`.${gt}`,lr=getComponentToken(ut,_t,Zt,{deprecatedTokens:st.deprecatedTokens});Rt&&Object.keys(Zt).forEach(fr=>{Zt[fr]=`var(${token2CSSVar(fr,getCompVarPrefix(ut,Rt.prefix))})`});const cr=merge$7(Xt,{componentCls:er,prefixCls:gt,iconCls:`.${At}`,antCls:`.${Nt}`,calc:Ft,max:Ht,min:Wt},Rt?Zt:lr),ur=et(cr,{hashId:wt,prefixCls:gt,rootPrefixCls:Nt,iconPrefixCls:At});return Gt(ut,lr),[st.resetStyle===!1?null:genCommonStyle(cr,gt,xt),ur]}),wt]}}const genSubStyleComponent=(_e,et,rt,st)=>{const ct=genComponentStyleHook$1(_e,et,rt,Object.assign({resetStyle:!1,order:-998},st));return ft=>{let{prefixCls:gt,rootCls:xt=gt}=ft;return ct(gt,xt),null}},genCSSVarRegister=(_e,et,rt)=>{function st($t){return`${_e}${$t.slice(0,1).toUpperCase()}${$t.slice(1)}`}const{unitless:ct={},injectStyle:ut=!0}=rt??{},ft={[st("zIndexPopup")]:!0};Object.keys(ct).forEach($t=>{ft[st($t)]=ct[$t]});const gt=$t=>{let{rootCls:_t,cssVar:wt}=$t;const[,Tt]=useToken$4();return useCSSVarRegister({path:[_e],prefix:wt.prefix,key:wt==null?void 0:wt.key,unitless:Object.assign(Object.assign({},unitless),ft),ignore,token:Tt,scope:_t},()=>{const Rt=getDefaultComponentToken(_e,Tt,et),It=getComponentToken(_e,Tt,Rt,{deprecatedTokens:rt==null?void 0:rt.deprecatedTokens});return Object.keys(Rt).forEach(At=>{It[st(At)]=It[At],delete It[At]}),It}),null};return $t=>{const[,,,,_t]=useToken$4();return[wt=>ut&&_t?React$1.createElement(React$1.Fragment,null,React$1.createElement(gt,{rootCls:$t,cssVar:_t,component:_e}),wt):wt,_t==null?void 0:_t.key]}},genStyleHooks=(_e,et,rt,st)=>{const ct=genComponentStyleHook$1(_e,et,rt,st),ut=genCSSVarRegister(Array.isArray(_e)?_e[0]:_e,rt,st);return function(ft){let gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ft;const[,xt]=ct(ft,gt),[$t,_t]=ut(gt);return[$t,xt,_t]}};function genPresetColor$2(_e,et){return PresetColors.reduce((rt,st)=>{const ct=_e[`${st}1`],ut=_e[`${st}3`],ft=_e[`${st}6`],gt=_e[`${st}7`];return Object.assign(Object.assign({},rt),et(st,{lightColor:ct,lightBorderColor:ut,darkColor:ft,textColor:gt}))},{})}const fullClone$1=Object.assign({},React$2),{useId:useId$5}=fullClone$1,useEmptyId=()=>"",useThemeKey$1=typeof useId$5>"u"?useEmptyId:useId$5;function useTheme$1(_e,et){var rt;devUseWarning();const st=_e||{},ct=st.inherit===!1||!et?Object.assign(Object.assign({},defaultConfig$1),{hashed:(rt=et==null?void 0:et.hashed)!==null&&rt!==void 0?rt:defaultConfig$1.hashed,cssVar:et==null?void 0:et.cssVar}):et,ut=useThemeKey$1();return useMemo$1(()=>{var ft,gt;if(!_e)return et;const xt=Object.assign({},ct.components);Object.keys(_e.components||{}).forEach(wt=>{xt[wt]=Object.assign(Object.assign({},xt[wt]),_e.components[wt])});const $t=`css-var-${ut.replace(/:/g,"")}`,_t=((ft=st.cssVar)!==null&&ft!==void 0?ft:ct.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof ct.cssVar=="object"?ct.cssVar:{}),typeof st.cssVar=="object"?st.cssVar:{}),{key:typeof st.cssVar=="object"&&((gt=st.cssVar)===null||gt===void 0?void 0:gt.key)||$t});return Object.assign(Object.assign(Object.assign({},ct),st),{token:Object.assign(Object.assign({},ct.token),st.token),components:xt,cssVar:_t})},[st,ct],(ft,gt)=>ft.some((xt,$t)=>{const _t=gt[$t];return!isEqual$1(xt,_t,!0)}))}var _excluded$1Q=["children"],Context$9=reactExports.createContext({});function MotionProvider(_e){var et=_e.children,rt=_objectWithoutProperties$2(_e,_excluded$1Q);return reactExports.createElement(Context$9.Provider,{value:rt},et)}var DomWrapper=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){return _classCallCheck$9(this,rt),et.apply(this,arguments)}return _createClass$7(rt,[{key:"render",value:function(){return this.props.children}}]),rt}(reactExports.Component),STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(_e,et){var rt={};return rt[_e.toLowerCase()]=et.toLowerCase(),rt["Webkit".concat(_e)]="webkit".concat(et),rt["Moz".concat(_e)]="moz".concat(et),rt["ms".concat(_e)]="MS".concat(et),rt["O".concat(_e)]="o".concat(et.toLowerCase()),rt}function getVendorPrefixes(_e,et){var rt={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return _e&&("AnimationEvent"in et||delete rt.animationend.animation,"TransitionEvent"in et||delete rt.transitionend.transition),rt}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style$3={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style$3=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(_e){if(prefixedEventNames[_e])return prefixedEventNames[_e];var et=vendorPrefixes[_e];if(et)for(var rt=Object.keys(et),st=rt.length,ct=0;ct1&&arguments[1]!==void 0?arguments[1]:2;et();var ut=wrapperRaf(function(){ct<=1?st({isCanceled:function(){return ut!==_e.current}}):rt(st,ct-1)});_e.current=ut}return reactExports.useEffect(function(){return function(){et()}},[]),[rt,et]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(_e){return _e===STEP_ACTIVE||_e===STEP_ACTIVATED}const useStepQueue=function(_e,et,rt){var st=useSafeState(STEP_NONE),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=useNextFrame(),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1];function wt(){ft(STEP_PREPARE,!0)}var Tt=et?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$2(function(){if(ut!==STEP_NONE&&ut!==STEP_ACTIVATED){var Rt=Tt.indexOf(ut),It=Tt[Rt+1],At=rt(ut);At===SkipStep?ft(It,!0):It&&$t(function(jt){function Nt(){jt.isCanceled()||ft(It,!0)}At===!0?Nt():Promise.resolve(At).then(Nt)})}},[_e,ut]),reactExports.useEffect(function(){return function(){_t()}},[]),[wt,ut]};function useStatus$1(_e,et,rt,st){var ct=st.motionEnter,ut=ct===void 0?!0:ct,ft=st.motionAppear,gt=ft===void 0?!0:ft,xt=st.motionLeave,$t=xt===void 0?!0:xt,_t=st.motionDeadline,wt=st.motionLeaveImmediately,Tt=st.onAppearPrepare,Rt=st.onEnterPrepare,It=st.onLeavePrepare,At=st.onAppearStart,jt=st.onEnterStart,Nt=st.onLeaveStart,kt=st.onAppearActive,Ft=st.onEnterActive,Ht=st.onLeaveActive,Wt=st.onAppearEnd,Vt=st.onEnterEnd,qt=st.onLeaveEnd,Xt=st.onVisibleChanged,Gt=useSafeState(),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=useSafeState(STATUS_NONE),ur=_slicedToArray$3(cr,2),fr=ur[0],hr=ur[1],pr=useSafeState(null),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1],br=reactExports.useRef(!1),mr=reactExports.useRef(null);function Er(){return rt()}var Tr=reactExports.useRef(!1);function Mr(){hr(STATUS_NONE,!0),Sr(null,!0)}function Or(Kr){var Hr=Er();if(!(Kr&&!Kr.deadline&&Kr.target!==Hr)){var Vr=Tr.current,ln;fr===STATUS_APPEAR&&Vr?ln=Wt==null?void 0:Wt(Hr,Kr):fr===STATUS_ENTER&&Vr?ln=Vt==null?void 0:Vt(Hr,Kr):fr===STATUS_LEAVE&&Vr&&(ln=qt==null?void 0:qt(Hr,Kr)),fr!==STATUS_NONE&&Vr&&ln!==!1&&Mr()}}var wr=useDomMotionEvents(Or),Cr=_slicedToArray$3(wr,1),Nr=Cr[0],Rr=function(Hr){var Vr,ln,Qr;switch(Hr){case STATUS_APPEAR:return Vr={},_defineProperty$c(Vr,STEP_PREPARE,Tt),_defineProperty$c(Vr,STEP_START,At),_defineProperty$c(Vr,STEP_ACTIVE,kt),Vr;case STATUS_ENTER:return ln={},_defineProperty$c(ln,STEP_PREPARE,Rt),_defineProperty$c(ln,STEP_START,jt),_defineProperty$c(ln,STEP_ACTIVE,Ft),ln;case STATUS_LEAVE:return Qr={},_defineProperty$c(Qr,STEP_PREPARE,It),_defineProperty$c(Qr,STEP_START,Nt),_defineProperty$c(Qr,STEP_ACTIVE,Ht),Qr;default:return{}}},Pr=reactExports.useMemo(function(){return Rr(fr)},[fr]),jr=useStepQueue(fr,!_e,function(Kr){if(Kr===STEP_PREPARE){var Hr=Pr[STEP_PREPARE];return Hr?Hr(Er()):SkipStep}if(_r in Pr){var Vr;Sr(((Vr=Pr[_r])===null||Vr===void 0?void 0:Vr.call(Pr,Er(),null))||null)}return _r===STEP_ACTIVE&&(Nr(Er()),_t>0&&(clearTimeout(mr.current),mr.current=setTimeout(function(){Or({deadline:!0})},_t))),_r===STEP_PREPARED&&Mr(),DoStep}),kr=_slicedToArray$3(jr,2),Fr=kr[0],_r=kr[1],Br=isActive(_r);Tr.current=Br,useIsomorphicLayoutEffect$2(function(){lr(et);var Kr=br.current;br.current=!0;var Hr;!Kr&&et&>&&(Hr=STATUS_APPEAR),Kr&&et&&ut&&(Hr=STATUS_ENTER),(Kr&&!et&&$t||!Kr&&wt&&!et&&$t)&&(Hr=STATUS_LEAVE);var Vr=Rr(Hr);Hr&&(_e||Vr[STEP_PREPARE])?(hr(Hr),Fr()):hr(STATUS_NONE)},[et]),reactExports.useEffect(function(){(fr===STATUS_APPEAR&&!gt||fr===STATUS_ENTER&&!ut||fr===STATUS_LEAVE&&!$t)&&hr(STATUS_NONE)},[gt,ut,$t]),reactExports.useEffect(function(){return function(){br.current=!1,clearTimeout(mr.current)}},[]);var Dr=reactExports.useRef(!1);reactExports.useEffect(function(){er&&(Dr.current=!0),er!==void 0&&fr===STATUS_NONE&&((Dr.current||er)&&(Xt==null||Xt(er)),Dr.current=!0)},[er,fr]);var Xr=yr;return Pr[STEP_PREPARE]&&_r===STEP_START&&(Xr=_objectSpread2({transition:"none"},Xr)),[fr,_r,Xr,er??et]}function genCSSMotion(_e){var et=_e;_typeof$e(_e)==="object"&&(et=_e.transitionSupport);function rt(ct,ut){return!!(ct.motionName&&et&&ut!==!1)}var st=reactExports.forwardRef(function(ct,ut){var ft=ct.visible,gt=ft===void 0?!0:ft,xt=ct.removeOnLeave,$t=xt===void 0?!0:xt,_t=ct.forceRender,wt=ct.children,Tt=ct.motionName,Rt=ct.leavedClassName,It=ct.eventProps,At=reactExports.useContext(Context$9),jt=At.motion,Nt=rt(ct,jt),kt=reactExports.useRef(),Ft=reactExports.useRef();function Ht(){try{return kt.current instanceof HTMLElement?kt.current:findDOMNode(Ft.current)}catch{return null}}var Wt=useStatus$1(Nt,gt,Ht,ct),Vt=_slicedToArray$3(Wt,4),qt=Vt[0],Xt=Vt[1],Gt=Vt[2],Zt=Vt[3],er=reactExports.useRef(Zt);Zt&&(er.current=!0);var lr=reactExports.useCallback(function(Sr){kt.current=Sr,fillRef(ut,Sr)},[ut]),cr,ur=_objectSpread2(_objectSpread2({},It),{},{visible:gt});if(!wt)cr=null;else if(qt===STATUS_NONE)Zt?cr=wt(_objectSpread2({},ur),lr):!$t&&er.current&&Rt?cr=wt(_objectSpread2(_objectSpread2({},ur),{},{className:Rt}),lr):_t||!$t&&!Rt?cr=wt(_objectSpread2(_objectSpread2({},ur),{},{style:{display:"none"}}),lr):cr=null;else{var fr,hr;Xt===STEP_PREPARE?hr="prepare":isActive(Xt)?hr="active":Xt===STEP_START&&(hr="start");var pr=getTransitionName$1(Tt,"".concat(qt,"-").concat(hr));cr=wt(_objectSpread2(_objectSpread2({},ur),{},{className:classNames(getTransitionName$1(Tt,qt),(fr={},_defineProperty$c(fr,pr,pr&&hr),_defineProperty$c(fr,Tt,typeof Tt=="string"),fr)),style:Gt}),lr)}if(reactExports.isValidElement(cr)&&supportRef(cr)){var dr=cr,yr=dr.ref;yr||(cr=reactExports.cloneElement(cr,{ref:lr}))}return reactExports.createElement(DomWrapper,{ref:Ft},cr)});return st.displayName="CSSMotion",st}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(_e){var et;return _e&&_typeof$e(_e)==="object"&&"key"in _e?et=_e:et={key:_e},_objectSpread2(_objectSpread2({},et),{},{key:String(et.key)})}function parseKeys(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _e.map(wrapKeyToObject)}function diffKeys(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=[],st=0,ct=et.length,ut=parseKeys(_e),ft=parseKeys(et);ut.forEach(function($t){for(var _t=!1,wt=st;wt1});return xt.forEach(function($t){rt=rt.filter(function(_t){var wt=_t.key,Tt=_t.status;return wt!==$t||Tt!==STATUS_REMOVE}),rt.forEach(function(_t){_t.key===$t&&(_t.status=STATUS_KEEP)})}),rt}var _excluded$1P=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$s=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,rt=function(st){_inherits$9(ut,st);var ct=_createSuper$7(ut);function ut(){var ft;_classCallCheck$9(this,ut);for(var gt=arguments.length,xt=new Array(gt),$t=0;$tnull;var __rest$18=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctet.endsWith("Color"))}const setGlobalConfig=_e=>{const{prefixCls:et,iconPrefixCls:rt,theme:st,holderRender:ct}=_e;et!==void 0&&(globalPrefixCls=et),rt!==void 0&&(globalIconPrefixCls=rt),"holderRender"in _e&&(globalHolderRender=ct),st&&(isLegacyTheme(st)?registerTheme(getGlobalPrefixCls(),st):globalTheme=st)},globalConfig=()=>({getPrefixCls:(_e,et)=>et||(_e?`${getGlobalPrefixCls()}-${_e}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=_e=>{const{children:et,csp:rt,autoInsertSpaceInButton:st,alert:ct,anchor:ut,form:ft,locale:gt,componentSize:xt,direction:$t,space:_t,virtual:wt,dropdownMatchSelectWidth:Tt,popupMatchSelectWidth:Rt,popupOverflow:It,legacyLocale:At,parentContext:jt,iconPrefixCls:Nt,theme:kt,componentDisabled:Ft,segmented:Ht,statistic:Wt,spin:Vt,calendar:qt,carousel:Xt,cascader:Gt,collapse:Zt,typography:er,checkbox:lr,descriptions:cr,divider:ur,drawer:fr,skeleton:hr,steps:pr,image:dr,layout:yr,list:Sr,mentions:br,modal:mr,progress:Er,result:Tr,slider:Mr,breadcrumb:Or,menu:wr,pagination:Cr,input:Nr,empty:Rr,badge:Pr,radio:jr,rate:kr,switch:Fr,transfer:_r,avatar:Br,message:Dr,tag:Xr,table:Kr,card:Hr,tabs:Vr,timeline:ln,timePicker:Qr,upload:Zr,notification:vn,tree:vr,colorPicker:gr,datePicker:$r,rangePicker:zr,flex:qr,wave:Wr,dropdown:Gr,warning:dn,tour:mn}=_e,hn=reactExports.useCallback((_n,Tn)=>{const{prefixCls:Nn}=_e;if(Tn)return Tn;const On=Nn||jt.getPrefixCls("");return _n?`${On}-${_n}`:On},[jt.getPrefixCls,_e.prefixCls]),Cn=Nt||jt.iconPrefixCls||defaultIconPrefixCls,Rn=rt||jt.csp;useResetIconStyle$1(Cn,Rn);const kn=useTheme$1(kt,jt.theme),Bn={csp:Rn,autoInsertSpaceInButton:st,alert:ct,anchor:ut,locale:gt||At,direction:$t,space:_t,virtual:wt,popupMatchSelectWidth:Rt??Tt,popupOverflow:It,getPrefixCls:hn,iconPrefixCls:Cn,theme:kn,segmented:Ht,statistic:Wt,spin:Vt,calendar:qt,carousel:Xt,cascader:Gt,collapse:Zt,typography:er,checkbox:lr,descriptions:cr,divider:ur,drawer:fr,skeleton:hr,steps:pr,image:dr,input:Nr,layout:yr,list:Sr,mentions:br,modal:mr,progress:Er,result:Tr,slider:Mr,breadcrumb:Or,menu:wr,pagination:Cr,empty:Rr,badge:Pr,radio:jr,rate:kr,switch:Fr,transfer:_r,avatar:Br,message:Dr,tag:Xr,table:Kr,card:Hr,tabs:Vr,timeline:ln,timePicker:Qr,upload:Zr,notification:vn,tree:vr,colorPicker:gr,datePicker:$r,rangePicker:zr,flex:qr,wave:Wr,dropdown:Gr,warning:dn,tour:mn},Yn=Object.assign({},jt);Object.keys(Bn).forEach(_n=>{Bn[_n]!==void 0&&(Yn[_n]=Bn[_n])}),PASSED_PROPS.forEach(_n=>{const Tn=_e[_n];Tn&&(Yn[_n]=Tn)});const Gn=useMemo$1(()=>Yn,Yn,(_n,Tn)=>{const Nn=Object.keys(_n),On=Object.keys(Tn);return Nn.length!==On.length||Nn.some($n=>_n[$n]!==Tn[$n])}),io=reactExports.useMemo(()=>({prefixCls:Cn,csp:Rn}),[Cn,Rn]);let pn=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(PropWarning$1,{dropdownMatchSelectWidth:Tt}),et);const gn=reactExports.useMemo(()=>{var _n,Tn,Nn,On;return merge$8(((_n=localeValues$1.Form)===null||_n===void 0?void 0:_n.defaultValidateMessages)||{},((Nn=(Tn=Gn.locale)===null||Tn===void 0?void 0:Tn.Form)===null||Nn===void 0?void 0:Nn.defaultValidateMessages)||{},((On=Gn.form)===null||On===void 0?void 0:On.validateMessages)||{},(ft==null?void 0:ft.validateMessages)||{})},[Gn,ft==null?void 0:ft.validateMessages]);Object.keys(gn).length>0&&(pn=reactExports.createElement(ValidateMessagesContext.Provider,{value:gn},pn)),gt&&(pn=reactExports.createElement(LocaleProvider$1,{locale:gt,_ANT_MARK__:ANT_MARK},pn)),(Cn||Rn)&&(pn=reactExports.createElement(IconContext$5.Provider,{value:io},pn)),xt&&(pn=reactExports.createElement(SizeContextProvider,{size:xt},pn)),pn=reactExports.createElement(MotionWrapper$1,null,pn);const yn=reactExports.useMemo(()=>{const _n=kn||{},{algorithm:Tn,token:Nn,components:On,cssVar:$n}=_n,Sn=__rest$18(_n,["algorithm","token","components","cssVar"]),xn=Tn&&(!Array.isArray(Tn)||Tn.length>0)?createTheme(Tn):defaultTheme,In={};Object.entries(On||{}).forEach(Hn=>{let[qn,Jn]=Hn;const ao=Object.assign({},Jn);"algorithm"in ao&&(ao.algorithm===!0?ao.theme=xn:(Array.isArray(ao.algorithm)||typeof ao.algorithm=="function")&&(ao.theme=createTheme(ao.algorithm)),delete ao.algorithm),In[qn]=ao});const jn=Object.assign(Object.assign({},seedToken),Nn);return Object.assign(Object.assign({},Sn),{theme:xn,token:jn,components:In,override:Object.assign({override:jn},In),cssVar:$n})},[kn]);return kt&&(pn=reactExports.createElement(DesignTokenContext.Provider,{value:yn},pn)),Gn.warning&&(pn=reactExports.createElement(WarningContext.Provider,{value:Gn.warning},pn)),Ft!==void 0&&(pn=reactExports.createElement(DisabledContextProvider,{disabled:Ft},pn)),reactExports.createElement(ConfigContext$1.Provider,{value:Gn},pn)},ConfigProvider$1=_e=>{const et=reactExports.useContext(ConfigContext$1),rt=reactExports.useContext(LocaleContext$1);return reactExports.createElement(ProviderChildren,Object.assign({parentContext:et,legacyLocale:rt},_e))};ConfigProvider$1.ConfigContext=ConfigContext$1;ConfigProvider$1.SizeContext=SizeContext$2;ConfigProvider$1.config=setGlobalConfig;ConfigProvider$1.useConfig=useConfig$2;Object.defineProperty(ConfigProvider$1,"SizeContext",{get:()=>SizeContext$2});var CheckCircleFilled$2={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"};const CheckCircleFilledSvg=CheckCircleFilled$2;function getRoot$1(_e){var et;return _e==null||(et=_e.getRootNode)===null||et===void 0?void 0:et.call(_e)}function inShadow$1(_e){return getRoot$1(_e)instanceof ShadowRoot}function getShadowRoot$1(_e){return inShadow$1(_e)?getRoot$1(_e):null}function camelCase$6(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$9(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$5(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$5(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$6(rt)]=st}return et},{})}function generate$a(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$5(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$a(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$5(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$a(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$5(_e){return generate$b(_e)[0]}function normalizeTwoToneColors$5(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$5=` .anticon { display: inline-block; color: inherit; @@ -182,20 +182,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(_e,et){return _e.indexOf(et)===0}function pickAttrs(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt;et===!1?rt={aria:!0,data:!0,attr:!0}:et===!0?rt={aria:!0}:rt=_objectSpread2({},et);var st={};return Object.keys(_e).forEach(function(ct){(rt.aria&&(ct==="role"||match$1(ct,ariaPrefix))||rt.data&&match$1(ct,dataPrefix)||rt.attr&&propList.includes(ct))&&(st[ct]=_e[ct])}),st}const{isValidElement}=React$2;function isFragment(_e){return _e&&isValidElement(_e)&&_e.type===reactExports.Fragment}function replaceElement(_e,et,rt){return isValidElement(_e)?reactExports.cloneElement(_e,typeof rt=="function"?rt(_e.props||{}):rt):et}function cloneElement(_e,et){return replaceElement(_e,_e,et)}const genAlertTypeStyle=(_e,et,rt,st,ct)=>({background:_e,border:`${unit$1(st.lineWidth)} ${st.lineType} ${et}`,[`${ct}-icon`]:{color:rt}}),genBaseStyle$e=_e=>{const{componentCls:et,motionDurationSlow:rt,marginXS:st,marginSM:ct,fontSize:ut,fontSizeLG:ft,lineHeight:gt,borderRadiusLG:xt,motionEaseInOutCirc:$t,withDescriptionIconSize:_t,colorText:wt,colorTextHeading:Tt,withDescriptionPadding:Rt,defaultPadding:It}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"flex",alignItems:"center",padding:It,wordWrap:"break-word",borderRadius:xt,[`&${et}-rtl`]:{direction:"rtl"},[`${et}-content`]:{flex:1,minWidth:0},[`${et}-icon`]:{marginInlineEnd:st,lineHeight:0},"&-description":{display:"none",fontSize:ut,lineHeight:gt},"&-message":{color:Tt},[`&${et}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${rt} ${$t}, opacity ${rt} ${$t}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(_e,et){return _e.indexOf(et)===0}function pickAttrs(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt;et===!1?rt={aria:!0,data:!0,attr:!0}:et===!0?rt={aria:!0}:rt=_objectSpread2({},et);var st={};return Object.keys(_e).forEach(function(ct){(rt.aria&&(ct==="role"||match$1(ct,ariaPrefix))||rt.data&&match$1(ct,dataPrefix)||rt.attr&&propList.includes(ct))&&(st[ct]=_e[ct])}),st}const{isValidElement}=React$2;function isFragment(_e){return _e&&isValidElement(_e)&&_e.type===reactExports.Fragment}function replaceElement(_e,et,rt){return isValidElement(_e)?reactExports.cloneElement(_e,typeof rt=="function"?rt(_e.props||{}):rt):et}function cloneElement(_e,et){return replaceElement(_e,_e,et)}const genAlertTypeStyle=(_e,et,rt,st,ct)=>({background:_e,border:`${unit$1(st.lineWidth)} ${st.lineType} ${et}`,[`${ct}-icon`]:{color:rt}}),genBaseStyle$f=_e=>{const{componentCls:et,motionDurationSlow:rt,marginXS:st,marginSM:ct,fontSize:ut,fontSizeLG:ft,lineHeight:gt,borderRadiusLG:xt,motionEaseInOutCirc:$t,withDescriptionIconSize:_t,colorText:wt,colorTextHeading:Tt,withDescriptionPadding:Rt,defaultPadding:It}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"flex",alignItems:"center",padding:It,wordWrap:"break-word",borderRadius:xt,[`&${et}-rtl`]:{direction:"rtl"},[`${et}-content`]:{flex:1,minWidth:0},[`${et}-icon`]:{marginInlineEnd:st,lineHeight:0},"&-description":{display:"none",fontSize:ut,lineHeight:gt},"&-message":{color:Tt},[`&${et}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${rt} ${$t}, opacity ${rt} ${$t}, padding-top ${rt} ${$t}, padding-bottom ${rt} ${$t}, - margin-bottom ${rt} ${$t}`},[`&${et}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${et}-with-description`]:{alignItems:"flex-start",padding:Rt,[`${et}-icon`]:{marginInlineEnd:ct,fontSize:_t,lineHeight:0},[`${et}-message`]:{display:"block",marginBottom:st,color:Tt,fontSize:ft},[`${et}-description`]:{display:"block",color:wt}},[`${et}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},genTypeStyle=_e=>{const{componentCls:et,colorSuccess:rt,colorSuccessBorder:st,colorSuccessBg:ct,colorWarning:ut,colorWarningBorder:ft,colorWarningBg:gt,colorError:xt,colorErrorBorder:$t,colorErrorBg:_t,colorInfo:wt,colorInfoBorder:Tt,colorInfoBg:Rt}=_e;return{[et]:{"&-success":genAlertTypeStyle(ct,st,rt,_e,et),"&-info":genAlertTypeStyle(Rt,Tt,wt,_e,et),"&-warning":genAlertTypeStyle(gt,ft,ut,_e,et),"&-error":Object.assign(Object.assign({},genAlertTypeStyle(_t,$t,xt,_e,et)),{[`${et}-description > pre`]:{margin:0,padding:0}})}}},genActionStyle=_e=>{const{componentCls:et,iconCls:rt,motionDurationMid:st,marginXS:ct,fontSizeIcon:ut,colorIcon:ft,colorIconHover:gt}=_e;return{[et]:{"&-action":{marginInlineStart:ct},[`${et}-close-icon`]:{marginInlineStart:ct,padding:0,overflow:"hidden",fontSize:ut,lineHeight:unit$1(ut),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${rt}-close`]:{color:ft,transition:`color ${st}`,"&:hover":{color:gt}}},"&-close-text":{color:ft,transition:`color ${st}`,"&:hover":{color:gt}}}}},prepareComponentToken$z=_e=>({withDescriptionIconSize:_e.fontSizeHeading3,defaultPadding:`${_e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${_e.paddingMD}px ${_e.paddingContentHorizontalLG}px`}),useStyle$X=genStyleHooks("Alert",_e=>[genBaseStyle$e(_e),genTypeStyle(_e),genActionStyle(_e)],prepareComponentToken$z);var __rest$13=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{icon:et,prefixCls:rt,type:st}=_e,ct=iconMapFilled[st]||null;return et?replaceElement(et,reactExports.createElement("span",{className:`${rt}-icon`},et),()=>({className:classNames(`${rt}-icon`,{[et.props.className]:et.props.className})})):reactExports.createElement(ct,{className:`${rt}-icon`})},CloseIconNode=_e=>{const{isClosable:et,prefixCls:rt,closeIcon:st,handleClose:ct}=_e,ut=st===!0||st===void 0?reactExports.createElement(CloseOutlined$1,null):st;return et?reactExports.createElement("button",{type:"button",onClick:ct,className:`${rt}-close-icon`,tabIndex:0},ut):null},Alert$2=_e=>{const{description:et,prefixCls:rt,message:st,banner:ct,className:ut,rootClassName:ft,style:gt,onMouseEnter:xt,onMouseLeave:$t,onClick:_t,afterClose:wt,showIcon:Tt,closable:Rt,closeText:It,closeIcon:At,action:jt}=_e,Nt=__rest$13(_e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[kt,Ft]=reactExports.useState(!1),Ht=reactExports.useRef(null),{getPrefixCls:Wt,direction:Vt,alert:qt}=reactExports.useContext(ConfigContext$1),Gt=Wt("alert",rt),[Xt,Zt,lr]=useStyle$X(Gt),er=dr=>{var yr;Ft(!0),(yr=_e.onClose)===null||yr===void 0||yr.call(_e,dr)},cr=reactExports.useMemo(()=>_e.type!==void 0?_e.type:ct?"warning":"info",[_e.type,ct]),ur=reactExports.useMemo(()=>It?!0:typeof Rt=="boolean"?Rt:At!==!1&&At!==null&&At!==void 0,[It,At,Rt]),pr=ct&&Tt===void 0?!0:Tt,hr=classNames(Gt,`${Gt}-${cr}`,{[`${Gt}-with-description`]:!!et,[`${Gt}-no-icon`]:!pr,[`${Gt}-banner`]:!!ct,[`${Gt}-rtl`]:Vt==="rtl"},qt==null?void 0:qt.className,ut,ft,lr,Zt),fr=pickAttrs(Nt,{aria:!0,data:!0});return Xt(reactExports.createElement(CSSMotion,{visible:!kt,motionName:`${Gt}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:dr=>({maxHeight:dr.offsetHeight}),onLeaveEnd:wt},dr=>{let{className:yr,style:$r}=dr;return reactExports.createElement("div",Object.assign({ref:Ht,"data-show":!kt,className:classNames(hr,yr),style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.style),gt),$r),onMouseEnter:xt,onMouseLeave:$t,onClick:_t,role:"alert"},fr),pr?reactExports.createElement(IconNode,{description:et,icon:_e.icon,prefixCls:Gt,type:cr}):null,reactExports.createElement("div",{className:`${Gt}-content`},st?reactExports.createElement("div",{className:`${Gt}-message`},st):null,et?reactExports.createElement("div",{className:`${Gt}-description`},et):null),jt?reactExports.createElement("div",{className:`${Gt}-action`},jt):null,reactExports.createElement(CloseIconNode,{isClosable:ur,prefixCls:Gt,closeIcon:It||(At??(qt==null?void 0:qt.closeIcon)),handleClose:er}))}))},InternalAlert=Alert$2;function _callSuper(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}let ErrorBoundary$2=function(_e){_inherits$9(et,_e);function et(){var rt;return _classCallCheck$9(this,et),rt=_callSuper(this,et,arguments),rt.state={error:void 0,info:{componentStack:""}},rt}return _createClass$7(et,[{key:"componentDidCatch",value:function(st,ct){this.setState({error:st,info:ct})}},{key:"render",value:function(){const{message:st,description:ct,children:ut}=this.props,{error:ft,info:gt}=this.state,xt=gt&>.componentStack?gt.componentStack:null,$t=typeof st>"u"?(ft||"").toString():st,_t=typeof ct>"u"?xt:ct;return ft?reactExports.createElement(InternalAlert,{type:"error",message:$t,description:reactExports.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},_t)}):ut}}]),et}(reactExports.Component);const ErrorBoundary$3=ErrorBoundary$2,Alert=InternalAlert;Alert.ErrorBoundary=ErrorBoundary$3;const Alert$1=Alert,t$1=_e=>typeof _e=="object"&&_e!=null&&_e.nodeType===1,e$3=(_e,et)=>(!et||_e!=="hidden")&&_e!=="visible"&&_e!=="clip",n$2=(_e,et)=>{if(_e.clientHeight<_e.scrollHeight||_e.clientWidth<_e.scrollWidth){const rt=getComputedStyle(_e,null);return e$3(rt.overflowY,et)||e$3(rt.overflowX,et)||(st=>{const ct=(ut=>{if(!ut.ownerDocument||!ut.ownerDocument.defaultView)return null;try{return ut.ownerDocument.defaultView.frameElement}catch{return null}})(st);return!!ct&&(ct.clientHeightut<_e&&ft>et||ut>_e&&ft=et&>>=rt?ut-_e-st:ft>et&>rt?ft-et+ct:0,l$1=_e=>{const et=_e.parentElement;return et??(_e.getRootNode().host||null)},r$4=(_e,et)=>{var rt,st,ct,ut;if(typeof document>"u")return[];const{scrollMode:ft,block:gt,inline:xt,boundary:$t,skipOverflowHiddenElements:_t}=et,wt=typeof $t=="function"?$t:hr=>hr!==$t;if(!t$1(_e))throw new TypeError("Invalid target");const Tt=document.scrollingElement||document.documentElement,Rt=[];let It=_e;for(;t$1(It)&&wt(It);){if(It=l$1(It),It===Tt){Rt.push(It);break}It!=null&&It===document.body&&n$2(It)&&!n$2(document.documentElement)||It!=null&&n$2(It,_t)&&Rt.push(It)}const At=(st=(rt=window.visualViewport)==null?void 0:rt.width)!=null?st:innerWidth,jt=(ut=(ct=window.visualViewport)==null?void 0:ct.height)!=null?ut:innerHeight,{scrollX:Nt,scrollY:kt}=window,{height:Ft,width:Ht,top:Wt,right:Vt,bottom:qt,left:Gt}=_e.getBoundingClientRect(),{top:Xt,right:Zt,bottom:lr,left:er}=(hr=>{const fr=window.getComputedStyle(hr);return{top:parseFloat(fr.scrollMarginTop)||0,right:parseFloat(fr.scrollMarginRight)||0,bottom:parseFloat(fr.scrollMarginBottom)||0,left:parseFloat(fr.scrollMarginLeft)||0}})(_e);let cr=gt==="start"||gt==="nearest"?Wt-Xt:gt==="end"?qt+lr:Wt+Ft/2-Xt+lr,ur=xt==="center"?Gt+Ht/2-er+Zt:xt==="end"?Vt+Zt:Gt-er;const pr=[];for(let hr=0;hr=0&&Gt>=0&&qt<=jt&&Vt<=At&&Wt>=$r&&qt<=mr&&Gt>=Sr&&Vt<=Er)return pr;const Tr=getComputedStyle(fr),jr=parseInt(Tr.borderLeftWidth,10),Or=parseInt(Tr.borderTopWidth,10),_r=parseInt(Tr.borderRightWidth,10),Cr=parseInt(Tr.borderBottomWidth,10);let Nr=0,Rr=0;const Pr="offsetWidth"in fr?fr.offsetWidth-fr.clientWidth-jr-_r:0,Mr="offsetHeight"in fr?fr.offsetHeight-fr.clientHeight-Or-Cr:0,kr="offsetWidth"in fr?fr.offsetWidth===0?0:yr/fr.offsetWidth:0,Fr="offsetHeight"in fr?fr.offsetHeight===0?0:dr/fr.offsetHeight:0;if(Tt===fr)Nr=gt==="start"?cr:gt==="end"?cr-jt:gt==="nearest"?o$1(kt,kt+jt,jt,Or,Cr,kt+cr,kt+cr+Ft,Ft):cr-jt/2,Rr=xt==="start"?ur:xt==="center"?ur-At/2:xt==="end"?ur-At:o$1(Nt,Nt+At,At,jr,_r,Nt+ur,Nt+ur+Ht,Ht),Nr=Math.max(0,Nr+kt),Rr=Math.max(0,Rr+Nt);else{Nr=gt==="start"?cr-$r-Or:gt==="end"?cr-mr+Cr+Mr:gt==="nearest"?o$1($r,mr,dr,Or,Cr+Mr,cr,cr+Ft,Ft):cr-($r+dr/2)+Mr/2,Rr=xt==="start"?ur-Sr-jr:xt==="center"?ur-(Sr+yr/2)+Pr/2:xt==="end"?ur-Er+_r+Pr:o$1(Sr,Er,yr,jr,_r+Pr,ur,ur+Ht,Ht);const{scrollLeft:wr,scrollTop:Br}=fr;Nr=Fr===0?0:Math.max(0,Math.min(Br+Nr/Fr,fr.scrollHeight-dr/Fr+Mr)),Rr=kr===0?0:Math.max(0,Math.min(wr+Rr/kr,fr.scrollWidth-yr/kr+Pr)),cr+=Br-Nr,ur+=wr-Rr}pr.push({el:fr,top:Nr,left:Rr})}return pr},o=_e=>_e===!1?{block:"end",inline:"nearest"}:(et=>et===Object(et)&&Object.keys(et).length!==0)(_e)?_e:{block:"start",inline:"nearest"};function e$2(_e,et){if(!_e.isConnected||!(ct=>{let ut=ct;for(;ut&&ut.parentNode;){if(ut.parentNode===document)return!0;ut=ut.parentNode instanceof ShadowRoot?ut.parentNode.host:ut.parentNode}return!1})(_e))return;const rt=(ct=>{const ut=window.getComputedStyle(ct);return{top:parseFloat(ut.scrollMarginTop)||0,right:parseFloat(ut.scrollMarginRight)||0,bottom:parseFloat(ut.scrollMarginBottom)||0,left:parseFloat(ut.scrollMarginLeft)||0}})(_e);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(et))return et.behavior(r$4(_e,et));const st=typeof et=="boolean"||et==null?void 0:et.behavior;for(const{el:ct,top:ut,left:ft}of r$4(_e,o(et))){const gt=ut-rt.top+rt.bottom,xt=ft-rt.left+rt.right;ct.scroll({top:gt,left:xt,behavior:st})}}const useCSSVarCls=_e=>{const[,,,,et]=useToken$4();return et?`${_e}-css-var`:""};var KeyCode={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(et){var rt=et.keyCode;if(et.altKey&&!et.ctrlKey||et.metaKey||rt>=KeyCode.F1&&rt<=KeyCode.F12)return!1;switch(rt){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(et){if(et>=KeyCode.ZERO&&et<=KeyCode.NINE||et>=KeyCode.NUM_ZERO&&et<=KeyCode.NUM_MULTIPLY||et>=KeyCode.A&&et<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&et===0)return!0;switch(et){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Notify=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.style,ct=_e.className,ut=_e.duration,ft=ut===void 0?4.5:ut,gt=_e.eventKey,xt=_e.content,$t=_e.closable,_t=_e.closeIcon,wt=_t===void 0?"x":_t,Tt=_e.props,Rt=_e.onClick,It=_e.onNoticeClose,At=_e.times,jt=_e.hovering,Nt=reactExports.useState(!1),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=jt||Ft,Vt=function(){It(gt)},qt=function(Zt){(Zt.key==="Enter"||Zt.code==="Enter"||Zt.keyCode===KeyCode.ENTER)&&Vt()};reactExports.useEffect(function(){if(!Wt&&ft>0){var Xt=setTimeout(function(){Vt()},ft*1e3);return function(){clearTimeout(Xt)}}},[ft,Wt,At]);var Gt="".concat(rt,"-notice");return reactExports.createElement("div",_extends$b({},Tt,{ref:et,className:classNames(Gt,ct,_defineProperty$c({},"".concat(Gt,"-closable"),$t)),style:st,onMouseEnter:function(Zt){var lr;Ht(!0),Tt==null||(lr=Tt.onMouseEnter)===null||lr===void 0||lr.call(Tt,Zt)},onMouseLeave:function(Zt){var lr;Ht(!1),Tt==null||(lr=Tt.onMouseLeave)===null||lr===void 0||lr.call(Tt,Zt)},onClick:Rt}),reactExports.createElement("div",{className:"".concat(Gt,"-content")},xt),$t&&reactExports.createElement("a",{tabIndex:0,className:"".concat(Gt,"-close"),onKeyDown:qt,onClick:function(Zt){Zt.preventDefault(),Zt.stopPropagation(),Vt()}},wt))}),NotificationContext=React$1.createContext({}),NotificationProvider=function(et){var rt=et.children,st=et.classNames;return React$1.createElement(NotificationContext.Provider,{value:{classNames:st}},rt)},DEFAULT_OFFSET$2=8,DEFAULT_THRESHOLD=3,DEFAULT_GAP=16,useStack=function(et){var rt={offset:DEFAULT_OFFSET$2,threshold:DEFAULT_THRESHOLD,gap:DEFAULT_GAP};if(et&&_typeof$e(et)==="object"){var st,ct,ut;rt.offset=(st=et.offset)!==null&&st!==void 0?st:DEFAULT_OFFSET$2,rt.threshold=(ct=et.threshold)!==null&&ct!==void 0?ct:DEFAULT_THRESHOLD,rt.gap=(ut=et.gap)!==null&&ut!==void 0?ut:DEFAULT_GAP}return[!!et,rt]},_excluded$1M=["className","style","classNames","styles"],NoticeList=function(et){var rt,st=et.configList,ct=et.placement,ut=et.prefixCls,ft=et.className,gt=et.style,xt=et.motion,$t=et.onAllNoticeRemoved,_t=et.onNoticeClose,wt=et.stack,Tt=reactExports.useContext(NotificationContext),Rt=Tt.classNames,It=reactExports.useRef({}),At=reactExports.useState(null),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useState([]),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=st.map(function(fr){return{config:fr,key:String(fr.key)}}),Gt=useStack(wt),Xt=_slicedToArray$3(Gt,2),Zt=Xt[0],lr=Xt[1],er=lr.offset,cr=lr.threshold,ur=lr.gap,pr=Zt&&(Wt.length>0||qt.length<=cr),hr=typeof xt=="function"?xt(ct):xt;return reactExports.useEffect(function(){Zt&&Wt.length>1&&Vt(function(fr){return fr.filter(function(dr){return qt.some(function(yr){var $r=yr.key;return dr===$r})})})},[Wt,qt,Zt]),reactExports.useEffect(function(){var fr;if(Zt&&It.current[(fr=qt[qt.length-1])===null||fr===void 0?void 0:fr.key]){var dr;kt(It.current[(dr=qt[qt.length-1])===null||dr===void 0?void 0:dr.key])}},[qt,Zt]),React$1.createElement(CSSMotionList,_extends$b({key:ct,className:classNames(ut,"".concat(ut,"-").concat(ct),Rt==null?void 0:Rt.list,ft,(rt={},_defineProperty$c(rt,"".concat(ut,"-stack"),!!Zt),_defineProperty$c(rt,"".concat(ut,"-stack-expanded"),pr),rt)),style:gt,keys:qt,motionAppear:!0},hr,{onAllRemoved:function(){$t(ct)}}),function(fr,dr){var yr=fr.config,$r=fr.className,Er=fr.style,mr=fr.index,Sr=yr,Tr=Sr.key,jr=Sr.times,Or=String(Tr),_r=yr,Cr=_r.className,Nr=_r.style,Rr=_r.classNames,Pr=_r.styles,Mr=_objectWithoutProperties$2(_r,_excluded$1M),kr=qt.findIndex(function(vn){return vn.key===Or}),Fr={};if(Zt){var wr=qt.length-1-(kr>-1?kr:mr-1),Br=ct==="top"||ct==="bottom"?"-50%":"0";if(wr>0){var Dr,Xr,Kr;Fr.height=pr?(Dr=It.current[Or])===null||Dr===void 0?void 0:Dr.offsetHeight:Nt==null?void 0:Nt.offsetHeight;for(var zr=0,qr=0;qr-1?It.current[Or]=vr:delete It.current[Or]},prefixCls:ut,classNames:Rr,styles:Pr,className:classNames(Cr,Rt==null?void 0:Rt.notice),style:Nr,times:jr,key:Tr,eventKey:Tr,onNoticeClose:_t,hovering:Zt&&Wt.length>0})))})},Notifications=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-notification":rt,ct=_e.container,ut=_e.motion,ft=_e.maxCount,gt=_e.className,xt=_e.style,$t=_e.onAllRemoved,_t=_e.stack,wt=_e.renderNotifications,Tt=reactExports.useState([]),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=function(Xt){var Zt,lr=It.find(function(er){return er.key===Xt});lr==null||(Zt=lr.onClose)===null||Zt===void 0||Zt.call(lr),At(function(er){return er.filter(function(cr){return cr.key!==Xt})})};reactExports.useImperativeHandle(et,function(){return{open:function(Xt){At(function(Zt){var lr=_toConsumableArray$3(Zt),er=lr.findIndex(function(pr){return pr.key===Xt.key}),cr=_objectSpread2({},Xt);if(er>=0){var ur;cr.times=(((ur=Zt[er])===null||ur===void 0?void 0:ur.times)||0)+1,lr[er]=cr}else cr.times=0,lr.push(cr);return ft>0&&lr.length>ft&&(lr=lr.slice(-ft)),lr})},close:function(Xt){jt(Xt)},destroy:function(){At([])}}});var Nt=reactExports.useState({}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];reactExports.useEffect(function(){var Gt={};It.forEach(function(Xt){var Zt=Xt.placement,lr=Zt===void 0?"topRight":Zt;lr&&(Gt[lr]=Gt[lr]||[],Gt[lr].push(Xt))}),Object.keys(Ft).forEach(function(Xt){Gt[Xt]=Gt[Xt]||[]}),Ht(Gt)},[It]);var Wt=function(Xt){Ht(function(Zt){var lr=_objectSpread2({},Zt),er=lr[Xt]||[];return er.length||delete lr[Xt],lr})},Vt=reactExports.useRef(!1);if(reactExports.useEffect(function(){Object.keys(Ft).length>0?Vt.current=!0:Vt.current&&($t==null||$t(),Vt.current=!1)},[Ft]),!ct)return null;var qt=Object.keys(Ft);return reactDomExports.createPortal(reactExports.createElement(reactExports.Fragment,null,qt.map(function(Gt){var Xt=Ft[Gt],Zt=reactExports.createElement(NoticeList,{key:Gt,configList:Xt,placement:Gt,prefixCls:st,className:gt==null?void 0:gt(Gt),style:xt==null?void 0:xt(Gt),motion:ut,onNoticeClose:jt,onAllNoticeRemoved:Wt,stack:_t});return wt?wt(Zt,{prefixCls:st,key:Gt}):Zt})),ct)}),_excluded$1L=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],defaultGetContainer=function(){return document.body},uniqueKey=0;function mergeConfig$2(){for(var _e={},et=arguments.length,rt=new Array(et),st=0;st0&&arguments[0]!==void 0?arguments[0]:{},et=_e.getContainer,rt=et===void 0?defaultGetContainer:et,st=_e.motion,ct=_e.prefixCls,ut=_e.maxCount,ft=_e.className,gt=_e.style,xt=_e.onAllRemoved,$t=_e.stack,_t=_e.renderNotifications,wt=_objectWithoutProperties$2(_e,_excluded$1L),Tt=reactExports.useState(),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=reactExports.useRef(),Nt=reactExports.createElement(Notifications,{container:It,ref:jt,prefixCls:ct,motion:st,maxCount:ut,className:ft,style:gt,onAllRemoved:xt,stack:$t,renderNotifications:_t}),kt=reactExports.useState([]),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=reactExports.useMemo(function(){return{open:function(Gt){var Xt=mergeConfig$2(wt,Gt);(Xt.key===null||Xt.key===void 0)&&(Xt.key="rc-notification-".concat(uniqueKey),uniqueKey+=1),Wt(function(Zt){return[].concat(_toConsumableArray$3(Zt),[{type:"open",config:Xt}])})},close:function(Gt){Wt(function(Xt){return[].concat(_toConsumableArray$3(Xt),[{type:"close",key:Gt}])})},destroy:function(){Wt(function(Gt){return[].concat(_toConsumableArray$3(Gt),[{type:"destroy"}])})}}},[]);return reactExports.useEffect(function(){At(rt())}),reactExports.useEffect(function(){jt.current&&Ht.length&&(Ht.forEach(function(qt){switch(qt.type){case"open":jt.current.open(qt.config);break;case"close":jt.current.close(qt.key);break;case"destroy":jt.current.destroy();break}}),Wt(function(qt){return qt.filter(function(Gt){return!Ht.includes(Gt)})}))},[Ht]),[Vt,Nt]}var LoadingOutlined$4={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"};const LoadingOutlinedSvg=LoadingOutlined$4;var LoadingOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:LoadingOutlinedSvg}))};const LoadingOutlined$3=reactExports.forwardRef(LoadingOutlined$2),zIndexContext=React$1.createContext(void 0),zIndexContext$1=zIndexContext,CONTAINER_OFFSET=100,CONTAINER_OFFSET_MAX_COUNT=10,CONTAINER_MAX_OFFSET=CONTAINER_OFFSET*CONTAINER_OFFSET_MAX_COUNT,containerBaseZIndexOffset={Modal:CONTAINER_OFFSET,Drawer:CONTAINER_OFFSET,Popover:CONTAINER_OFFSET,Popconfirm:CONTAINER_OFFSET,Tooltip:CONTAINER_OFFSET,Tour:CONTAINER_OFFSET},consumerBaseZIndexOffset={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function isContainerType(_e){return _e in containerBaseZIndexOffset}function useZIndex(_e,et){const[,rt]=useToken$4(),st=React$1.useContext(zIndexContext$1),ct=isContainerType(_e);if(et!==void 0)return[et,et];let ut=st??0;return ct?(ut+=(st?0:rt.zIndexPopupBase)+containerBaseZIndexOffset[_e],ut=Math.min(ut,rt.zIndexPopupBase+CONTAINER_MAX_OFFSET)):ut+=consumerBaseZIndexOffset[_e],[st===void 0?et:ut,ut]}const genMessageStyle=_e=>{const{componentCls:et,iconCls:rt,boxShadow:st,colorText:ct,colorSuccess:ut,colorError:ft,colorWarning:gt,colorInfo:xt,fontSizeLG:$t,motionEaseInOutCirc:_t,motionDurationSlow:wt,marginXS:Tt,paddingXS:Rt,borderRadiusLG:It,zIndexPopup:At,contentPadding:jt,contentBg:Nt}=_e,kt=`${et}-notice`,Ft=new Keyframe("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Rt,transform:"translateY(0)",opacity:1}}),Ht=new Keyframe("MessageMoveOut",{"0%":{maxHeight:_e.height,padding:Rt,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Wt={padding:Rt,textAlign:"center",[`${et}-custom-content > ${rt}`]:{verticalAlign:"text-bottom",marginInlineEnd:Tt,fontSize:$t},[`${kt}-content`]:{display:"inline-block",padding:jt,background:Nt,borderRadius:It,boxShadow:st,pointerEvents:"all"},[`${et}-success > ${rt}`]:{color:ut},[`${et}-error > ${rt}`]:{color:ft},[`${et}-warning > ${rt}`]:{color:gt},[`${et}-info > ${rt}, + margin-bottom ${rt} ${$t}`},[`&${et}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${et}-with-description`]:{alignItems:"flex-start",padding:Rt,[`${et}-icon`]:{marginInlineEnd:ct,fontSize:_t,lineHeight:0},[`${et}-message`]:{display:"block",marginBottom:st,color:Tt,fontSize:ft},[`${et}-description`]:{display:"block",color:wt}},[`${et}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},genTypeStyle=_e=>{const{componentCls:et,colorSuccess:rt,colorSuccessBorder:st,colorSuccessBg:ct,colorWarning:ut,colorWarningBorder:ft,colorWarningBg:gt,colorError:xt,colorErrorBorder:$t,colorErrorBg:_t,colorInfo:wt,colorInfoBorder:Tt,colorInfoBg:Rt}=_e;return{[et]:{"&-success":genAlertTypeStyle(ct,st,rt,_e,et),"&-info":genAlertTypeStyle(Rt,Tt,wt,_e,et),"&-warning":genAlertTypeStyle(gt,ft,ut,_e,et),"&-error":Object.assign(Object.assign({},genAlertTypeStyle(_t,$t,xt,_e,et)),{[`${et}-description > pre`]:{margin:0,padding:0}})}}},genActionStyle=_e=>{const{componentCls:et,iconCls:rt,motionDurationMid:st,marginXS:ct,fontSizeIcon:ut,colorIcon:ft,colorIconHover:gt}=_e;return{[et]:{"&-action":{marginInlineStart:ct},[`${et}-close-icon`]:{marginInlineStart:ct,padding:0,overflow:"hidden",fontSize:ut,lineHeight:unit$1(ut),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${rt}-close`]:{color:ft,transition:`color ${st}`,"&:hover":{color:gt}}},"&-close-text":{color:ft,transition:`color ${st}`,"&:hover":{color:gt}}}}},prepareComponentToken$B=_e=>({withDescriptionIconSize:_e.fontSizeHeading3,defaultPadding:`${_e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${_e.paddingMD}px ${_e.paddingContentHorizontalLG}px`}),useStyle$Z=genStyleHooks("Alert",_e=>[genBaseStyle$f(_e),genTypeStyle(_e),genActionStyle(_e)],prepareComponentToken$B);var __rest$17=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{icon:et,prefixCls:rt,type:st}=_e,ct=iconMapFilled[st]||null;return et?replaceElement(et,reactExports.createElement("span",{className:`${rt}-icon`},et),()=>({className:classNames(`${rt}-icon`,{[et.props.className]:et.props.className})})):reactExports.createElement(ct,{className:`${rt}-icon`})},CloseIconNode=_e=>{const{isClosable:et,prefixCls:rt,closeIcon:st,handleClose:ct}=_e,ut=st===!0||st===void 0?reactExports.createElement(CloseOutlined$1,null):st;return et?reactExports.createElement("button",{type:"button",onClick:ct,className:`${rt}-close-icon`,tabIndex:0},ut):null},Alert$2=_e=>{const{description:et,prefixCls:rt,message:st,banner:ct,className:ut,rootClassName:ft,style:gt,onMouseEnter:xt,onMouseLeave:$t,onClick:_t,afterClose:wt,showIcon:Tt,closable:Rt,closeText:It,closeIcon:At,action:jt}=_e,Nt=__rest$17(_e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[kt,Ft]=reactExports.useState(!1),Ht=reactExports.useRef(null),{getPrefixCls:Wt,direction:Vt,alert:qt}=reactExports.useContext(ConfigContext$1),Xt=Wt("alert",rt),[Gt,Zt,er]=useStyle$Z(Xt),lr=dr=>{var yr;Ft(!0),(yr=_e.onClose)===null||yr===void 0||yr.call(_e,dr)},cr=reactExports.useMemo(()=>_e.type!==void 0?_e.type:ct?"warning":"info",[_e.type,ct]),ur=reactExports.useMemo(()=>It?!0:typeof Rt=="boolean"?Rt:At!==!1&&At!==null&&At!==void 0,[It,At,Rt]),fr=ct&&Tt===void 0?!0:Tt,hr=classNames(Xt,`${Xt}-${cr}`,{[`${Xt}-with-description`]:!!et,[`${Xt}-no-icon`]:!fr,[`${Xt}-banner`]:!!ct,[`${Xt}-rtl`]:Vt==="rtl"},qt==null?void 0:qt.className,ut,ft,er,Zt),pr=pickAttrs(Nt,{aria:!0,data:!0});return Gt(reactExports.createElement(CSSMotion,{visible:!kt,motionName:`${Xt}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:dr=>({maxHeight:dr.offsetHeight}),onLeaveEnd:wt},dr=>{let{className:yr,style:Sr}=dr;return reactExports.createElement("div",Object.assign({ref:Ht,"data-show":!kt,className:classNames(hr,yr),style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.style),gt),Sr),onMouseEnter:xt,onMouseLeave:$t,onClick:_t,role:"alert"},pr),fr?reactExports.createElement(IconNode,{description:et,icon:_e.icon,prefixCls:Xt,type:cr}):null,reactExports.createElement("div",{className:`${Xt}-content`},st?reactExports.createElement("div",{className:`${Xt}-message`},st):null,et?reactExports.createElement("div",{className:`${Xt}-description`},et):null),jt?reactExports.createElement("div",{className:`${Xt}-action`},jt):null,reactExports.createElement(CloseIconNode,{isClosable:ur,prefixCls:Xt,closeIcon:It||(At??(qt==null?void 0:qt.closeIcon)),handleClose:lr}))}))},InternalAlert=Alert$2;function _callSuper(_e,et,rt){return et=_getPrototypeOf$8(et),_possibleConstructorReturn$9(_e,_isNativeReflectConstruct$8()?Reflect.construct(et,rt||[],_getPrototypeOf$8(_e).constructor):et.apply(_e,rt))}let ErrorBoundary$2=function(_e){_inherits$9(et,_e);function et(){var rt;return _classCallCheck$9(this,et),rt=_callSuper(this,et,arguments),rt.state={error:void 0,info:{componentStack:""}},rt}return _createClass$7(et,[{key:"componentDidCatch",value:function(st,ct){this.setState({error:st,info:ct})}},{key:"render",value:function(){const{message:st,description:ct,children:ut}=this.props,{error:ft,info:gt}=this.state,xt=gt&>.componentStack?gt.componentStack:null,$t=typeof st>"u"?(ft||"").toString():st,_t=typeof ct>"u"?xt:ct;return ft?reactExports.createElement(InternalAlert,{type:"error",message:$t,description:reactExports.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},_t)}):ut}}]),et}(reactExports.Component);const ErrorBoundary$3=ErrorBoundary$2,Alert=InternalAlert;Alert.ErrorBoundary=ErrorBoundary$3;const Alert$1=Alert,t$1=_e=>typeof _e=="object"&&_e!=null&&_e.nodeType===1,e$3=(_e,et)=>(!et||_e!=="hidden")&&_e!=="visible"&&_e!=="clip",n$2=(_e,et)=>{if(_e.clientHeight<_e.scrollHeight||_e.clientWidth<_e.scrollWidth){const rt=getComputedStyle(_e,null);return e$3(rt.overflowY,et)||e$3(rt.overflowX,et)||(st=>{const ct=(ut=>{if(!ut.ownerDocument||!ut.ownerDocument.defaultView)return null;try{return ut.ownerDocument.defaultView.frameElement}catch{return null}})(st);return!!ct&&(ct.clientHeightut<_e&&ft>et||ut>_e&&ft=et&>>=rt?ut-_e-st:ft>et&>rt?ft-et+ct:0,l$1=_e=>{const et=_e.parentElement;return et??(_e.getRootNode().host||null)},r$4=(_e,et)=>{var rt,st,ct,ut;if(typeof document>"u")return[];const{scrollMode:ft,block:gt,inline:xt,boundary:$t,skipOverflowHiddenElements:_t}=et,wt=typeof $t=="function"?$t:hr=>hr!==$t;if(!t$1(_e))throw new TypeError("Invalid target");const Tt=document.scrollingElement||document.documentElement,Rt=[];let It=_e;for(;t$1(It)&&wt(It);){if(It=l$1(It),It===Tt){Rt.push(It);break}It!=null&&It===document.body&&n$2(It)&&!n$2(document.documentElement)||It!=null&&n$2(It,_t)&&Rt.push(It)}const At=(st=(rt=window.visualViewport)==null?void 0:rt.width)!=null?st:innerWidth,jt=(ut=(ct=window.visualViewport)==null?void 0:ct.height)!=null?ut:innerHeight,{scrollX:Nt,scrollY:kt}=window,{height:Ft,width:Ht,top:Wt,right:Vt,bottom:qt,left:Xt}=_e.getBoundingClientRect(),{top:Gt,right:Zt,bottom:er,left:lr}=(hr=>{const pr=window.getComputedStyle(hr);return{top:parseFloat(pr.scrollMarginTop)||0,right:parseFloat(pr.scrollMarginRight)||0,bottom:parseFloat(pr.scrollMarginBottom)||0,left:parseFloat(pr.scrollMarginLeft)||0}})(_e);let cr=gt==="start"||gt==="nearest"?Wt-Gt:gt==="end"?qt+er:Wt+Ft/2-Gt+er,ur=xt==="center"?Xt+Ht/2-lr+Zt:xt==="end"?Vt+Zt:Xt-lr;const fr=[];for(let hr=0;hr=0&&Xt>=0&&qt<=jt&&Vt<=At&&Wt>=Sr&&qt<=mr&&Xt>=Er&&Vt<=br)return fr;const Tr=getComputedStyle(pr),Mr=parseInt(Tr.borderLeftWidth,10),Or=parseInt(Tr.borderTopWidth,10),wr=parseInt(Tr.borderRightWidth,10),Cr=parseInt(Tr.borderBottomWidth,10);let Nr=0,Rr=0;const Pr="offsetWidth"in pr?pr.offsetWidth-pr.clientWidth-Mr-wr:0,jr="offsetHeight"in pr?pr.offsetHeight-pr.clientHeight-Or-Cr:0,kr="offsetWidth"in pr?pr.offsetWidth===0?0:yr/pr.offsetWidth:0,Fr="offsetHeight"in pr?pr.offsetHeight===0?0:dr/pr.offsetHeight:0;if(Tt===pr)Nr=gt==="start"?cr:gt==="end"?cr-jt:gt==="nearest"?o$1(kt,kt+jt,jt,Or,Cr,kt+cr,kt+cr+Ft,Ft):cr-jt/2,Rr=xt==="start"?ur:xt==="center"?ur-At/2:xt==="end"?ur-At:o$1(Nt,Nt+At,At,Mr,wr,Nt+ur,Nt+ur+Ht,Ht),Nr=Math.max(0,Nr+kt),Rr=Math.max(0,Rr+Nt);else{Nr=gt==="start"?cr-Sr-Or:gt==="end"?cr-mr+Cr+jr:gt==="nearest"?o$1(Sr,mr,dr,Or,Cr+jr,cr,cr+Ft,Ft):cr-(Sr+dr/2)+jr/2,Rr=xt==="start"?ur-Er-Mr:xt==="center"?ur-(Er+yr/2)+Pr/2:xt==="end"?ur-br+wr+Pr:o$1(Er,br,yr,Mr,wr+Pr,ur,ur+Ht,Ht);const{scrollLeft:_r,scrollTop:Br}=pr;Nr=Fr===0?0:Math.max(0,Math.min(Br+Nr/Fr,pr.scrollHeight-dr/Fr+jr)),Rr=kr===0?0:Math.max(0,Math.min(_r+Rr/kr,pr.scrollWidth-yr/kr+Pr)),cr+=Br-Nr,ur+=_r-Rr}fr.push({el:pr,top:Nr,left:Rr})}return fr},o=_e=>_e===!1?{block:"end",inline:"nearest"}:(et=>et===Object(et)&&Object.keys(et).length!==0)(_e)?_e:{block:"start",inline:"nearest"};function e$2(_e,et){if(!_e.isConnected||!(ct=>{let ut=ct;for(;ut&&ut.parentNode;){if(ut.parentNode===document)return!0;ut=ut.parentNode instanceof ShadowRoot?ut.parentNode.host:ut.parentNode}return!1})(_e))return;const rt=(ct=>{const ut=window.getComputedStyle(ct);return{top:parseFloat(ut.scrollMarginTop)||0,right:parseFloat(ut.scrollMarginRight)||0,bottom:parseFloat(ut.scrollMarginBottom)||0,left:parseFloat(ut.scrollMarginLeft)||0}})(_e);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(et))return et.behavior(r$4(_e,et));const st=typeof et=="boolean"||et==null?void 0:et.behavior;for(const{el:ct,top:ut,left:ft}of r$4(_e,o(et))){const gt=ut-rt.top+rt.bottom,xt=ft-rt.left+rt.right;ct.scroll({top:gt,left:xt,behavior:st})}}const useCSSVarCls=_e=>{const[,,,,et]=useToken$4();return et?`${_e}-css-var`:""};var KeyCode={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(et){var rt=et.keyCode;if(et.altKey&&!et.ctrlKey||et.metaKey||rt>=KeyCode.F1&&rt<=KeyCode.F12)return!1;switch(rt){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(et){if(et>=KeyCode.ZERO&&et<=KeyCode.NINE||et>=KeyCode.NUM_ZERO&&et<=KeyCode.NUM_MULTIPLY||et>=KeyCode.A&&et<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&et===0)return!0;switch(et){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Notify=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.style,ct=_e.className,ut=_e.duration,ft=ut===void 0?4.5:ut,gt=_e.eventKey,xt=_e.content,$t=_e.closable,_t=_e.closeIcon,wt=_t===void 0?"x":_t,Tt=_e.props,Rt=_e.onClick,It=_e.onNoticeClose,At=_e.times,jt=_e.hovering,Nt=reactExports.useState(!1),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=jt||Ft,Vt=function(){It(gt)},qt=function(Zt){(Zt.key==="Enter"||Zt.code==="Enter"||Zt.keyCode===KeyCode.ENTER)&&Vt()};reactExports.useEffect(function(){if(!Wt&&ft>0){var Gt=setTimeout(function(){Vt()},ft*1e3);return function(){clearTimeout(Gt)}}},[ft,Wt,At]);var Xt="".concat(rt,"-notice");return reactExports.createElement("div",_extends$b({},Tt,{ref:et,className:classNames(Xt,ct,_defineProperty$c({},"".concat(Xt,"-closable"),$t)),style:st,onMouseEnter:function(Zt){var er;Ht(!0),Tt==null||(er=Tt.onMouseEnter)===null||er===void 0||er.call(Tt,Zt)},onMouseLeave:function(Zt){var er;Ht(!1),Tt==null||(er=Tt.onMouseLeave)===null||er===void 0||er.call(Tt,Zt)},onClick:Rt}),reactExports.createElement("div",{className:"".concat(Xt,"-content")},xt),$t&&reactExports.createElement("a",{tabIndex:0,className:"".concat(Xt,"-close"),onKeyDown:qt,onClick:function(Zt){Zt.preventDefault(),Zt.stopPropagation(),Vt()}},wt))}),NotificationContext=React$1.createContext({}),NotificationProvider=function(et){var rt=et.children,st=et.classNames;return React$1.createElement(NotificationContext.Provider,{value:{classNames:st}},rt)},DEFAULT_OFFSET$2=8,DEFAULT_THRESHOLD=3,DEFAULT_GAP=16,useStack=function(et){var rt={offset:DEFAULT_OFFSET$2,threshold:DEFAULT_THRESHOLD,gap:DEFAULT_GAP};if(et&&_typeof$e(et)==="object"){var st,ct,ut;rt.offset=(st=et.offset)!==null&&st!==void 0?st:DEFAULT_OFFSET$2,rt.threshold=(ct=et.threshold)!==null&&ct!==void 0?ct:DEFAULT_THRESHOLD,rt.gap=(ut=et.gap)!==null&&ut!==void 0?ut:DEFAULT_GAP}return[!!et,rt]},_excluded$1M=["className","style","classNames","styles"],NoticeList=function(et){var rt,st=et.configList,ct=et.placement,ut=et.prefixCls,ft=et.className,gt=et.style,xt=et.motion,$t=et.onAllNoticeRemoved,_t=et.onNoticeClose,wt=et.stack,Tt=reactExports.useContext(NotificationContext),Rt=Tt.classNames,It=reactExports.useRef({}),At=reactExports.useState(null),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useState([]),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=st.map(function(pr){return{config:pr,key:String(pr.key)}}),Xt=useStack(wt),Gt=_slicedToArray$3(Xt,2),Zt=Gt[0],er=Gt[1],lr=er.offset,cr=er.threshold,ur=er.gap,fr=Zt&&(Wt.length>0||qt.length<=cr),hr=typeof xt=="function"?xt(ct):xt;return reactExports.useEffect(function(){Zt&&Wt.length>1&&Vt(function(pr){return pr.filter(function(dr){return qt.some(function(yr){var Sr=yr.key;return dr===Sr})})})},[Wt,qt,Zt]),reactExports.useEffect(function(){var pr;if(Zt&&It.current[(pr=qt[qt.length-1])===null||pr===void 0?void 0:pr.key]){var dr;kt(It.current[(dr=qt[qt.length-1])===null||dr===void 0?void 0:dr.key])}},[qt,Zt]),React$1.createElement(CSSMotionList,_extends$b({key:ct,className:classNames(ut,"".concat(ut,"-").concat(ct),Rt==null?void 0:Rt.list,ft,(rt={},_defineProperty$c(rt,"".concat(ut,"-stack"),!!Zt),_defineProperty$c(rt,"".concat(ut,"-stack-expanded"),fr),rt)),style:gt,keys:qt,motionAppear:!0},hr,{onAllRemoved:function(){$t(ct)}}),function(pr,dr){var yr=pr.config,Sr=pr.className,br=pr.style,mr=pr.index,Er=yr,Tr=Er.key,Mr=Er.times,Or=String(Tr),wr=yr,Cr=wr.className,Nr=wr.style,Rr=wr.classNames,Pr=wr.styles,jr=_objectWithoutProperties$2(wr,_excluded$1M),kr=qt.findIndex(function(vn){return vn.key===Or}),Fr={};if(Zt){var _r=qt.length-1-(kr>-1?kr:mr-1),Br=ct==="top"||ct==="bottom"?"-50%":"0";if(_r>0){var Dr,Xr,Kr;Fr.height=fr?(Dr=It.current[Or])===null||Dr===void 0?void 0:Dr.offsetHeight:Nt==null?void 0:Nt.offsetHeight;for(var Hr=0,Vr=0;Vr<_r;Vr++){var ln;Hr+=((ln=It.current[qt[qt.length-1-Vr].key])===null||ln===void 0?void 0:ln.offsetHeight)+ur}var Qr=(fr?Hr:_r*lr)*(ct.startsWith("top")?1:-1),Zr=!fr&&Nt!==null&&Nt!==void 0&&Nt.offsetWidth&&(Xr=It.current[Or])!==null&&Xr!==void 0&&Xr.offsetWidth?((Nt==null?void 0:Nt.offsetWidth)-lr*2*(_r<3?_r:3))/((Kr=It.current[Or])===null||Kr===void 0?void 0:Kr.offsetWidth):1;Fr.transform="translate3d(".concat(Br,", ").concat(Qr,"px, 0) scaleX(").concat(Zr,")")}else Fr.transform="translate3d(".concat(Br,", 0, 0)")}return React$1.createElement("div",{ref:dr,className:classNames("".concat(ut,"-notice-wrapper"),Sr,Rr==null?void 0:Rr.wrapper),style:_objectSpread2(_objectSpread2(_objectSpread2({},br),Fr),Pr==null?void 0:Pr.wrapper),onMouseEnter:function(){return Vt(function(vr){return vr.includes(Or)?vr:[].concat(_toConsumableArray$3(vr),[Or])})},onMouseLeave:function(){return Vt(function(vr){return vr.filter(function(gr){return gr!==Or})})}},React$1.createElement(Notify,_extends$b({},jr,{ref:function(vr){kr>-1?It.current[Or]=vr:delete It.current[Or]},prefixCls:ut,classNames:Rr,styles:Pr,className:classNames(Cr,Rt==null?void 0:Rt.notice),style:Nr,times:Mr,key:Tr,eventKey:Tr,onNoticeClose:_t,hovering:Zt&&Wt.length>0})))})},Notifications=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-notification":rt,ct=_e.container,ut=_e.motion,ft=_e.maxCount,gt=_e.className,xt=_e.style,$t=_e.onAllRemoved,_t=_e.stack,wt=_e.renderNotifications,Tt=reactExports.useState([]),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=function(Gt){var Zt,er=It.find(function(lr){return lr.key===Gt});er==null||(Zt=er.onClose)===null||Zt===void 0||Zt.call(er),At(function(lr){return lr.filter(function(cr){return cr.key!==Gt})})};reactExports.useImperativeHandle(et,function(){return{open:function(Gt){At(function(Zt){var er=_toConsumableArray$3(Zt),lr=er.findIndex(function(fr){return fr.key===Gt.key}),cr=_objectSpread2({},Gt);if(lr>=0){var ur;cr.times=(((ur=Zt[lr])===null||ur===void 0?void 0:ur.times)||0)+1,er[lr]=cr}else cr.times=0,er.push(cr);return ft>0&&er.length>ft&&(er=er.slice(-ft)),er})},close:function(Gt){jt(Gt)},destroy:function(){At([])}}});var Nt=reactExports.useState({}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];reactExports.useEffect(function(){var Xt={};It.forEach(function(Gt){var Zt=Gt.placement,er=Zt===void 0?"topRight":Zt;er&&(Xt[er]=Xt[er]||[],Xt[er].push(Gt))}),Object.keys(Ft).forEach(function(Gt){Xt[Gt]=Xt[Gt]||[]}),Ht(Xt)},[It]);var Wt=function(Gt){Ht(function(Zt){var er=_objectSpread2({},Zt),lr=er[Gt]||[];return lr.length||delete er[Gt],er})},Vt=reactExports.useRef(!1);if(reactExports.useEffect(function(){Object.keys(Ft).length>0?Vt.current=!0:Vt.current&&($t==null||$t(),Vt.current=!1)},[Ft]),!ct)return null;var qt=Object.keys(Ft);return reactDomExports.createPortal(reactExports.createElement(reactExports.Fragment,null,qt.map(function(Xt){var Gt=Ft[Xt],Zt=reactExports.createElement(NoticeList,{key:Xt,configList:Gt,placement:Xt,prefixCls:st,className:gt==null?void 0:gt(Xt),style:xt==null?void 0:xt(Xt),motion:ut,onNoticeClose:jt,onAllNoticeRemoved:Wt,stack:_t});return wt?wt(Zt,{prefixCls:st,key:Xt}):Zt})),ct)}),_excluded$1L=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],defaultGetContainer=function(){return document.body},uniqueKey=0;function mergeConfig$2(){for(var _e={},et=arguments.length,rt=new Array(et),st=0;st0&&arguments[0]!==void 0?arguments[0]:{},et=_e.getContainer,rt=et===void 0?defaultGetContainer:et,st=_e.motion,ct=_e.prefixCls,ut=_e.maxCount,ft=_e.className,gt=_e.style,xt=_e.onAllRemoved,$t=_e.stack,_t=_e.renderNotifications,wt=_objectWithoutProperties$2(_e,_excluded$1L),Tt=reactExports.useState(),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=reactExports.useRef(),Nt=reactExports.createElement(Notifications,{container:It,ref:jt,prefixCls:ct,motion:st,maxCount:ut,className:ft,style:gt,onAllRemoved:xt,stack:$t,renderNotifications:_t}),kt=reactExports.useState([]),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=reactExports.useMemo(function(){return{open:function(Xt){var Gt=mergeConfig$2(wt,Xt);(Gt.key===null||Gt.key===void 0)&&(Gt.key="rc-notification-".concat(uniqueKey),uniqueKey+=1),Wt(function(Zt){return[].concat(_toConsumableArray$3(Zt),[{type:"open",config:Gt}])})},close:function(Xt){Wt(function(Gt){return[].concat(_toConsumableArray$3(Gt),[{type:"close",key:Xt}])})},destroy:function(){Wt(function(Xt){return[].concat(_toConsumableArray$3(Xt),[{type:"destroy"}])})}}},[]);return reactExports.useEffect(function(){At(rt())}),reactExports.useEffect(function(){jt.current&&Ht.length&&(Ht.forEach(function(qt){switch(qt.type){case"open":jt.current.open(qt.config);break;case"close":jt.current.close(qt.key);break;case"destroy":jt.current.destroy();break}}),Wt(function(qt){return qt.filter(function(Xt){return!Ht.includes(Xt)})}))},[Ht]),[Vt,Nt]}var LoadingOutlined$4={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"};const LoadingOutlinedSvg=LoadingOutlined$4;var LoadingOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:LoadingOutlinedSvg}))};const LoadingOutlined$3=reactExports.forwardRef(LoadingOutlined$2),zIndexContext=React$1.createContext(void 0),zIndexContext$1=zIndexContext,CONTAINER_OFFSET=100,CONTAINER_OFFSET_MAX_COUNT=10,CONTAINER_MAX_OFFSET=CONTAINER_OFFSET*CONTAINER_OFFSET_MAX_COUNT,containerBaseZIndexOffset={Modal:CONTAINER_OFFSET,Drawer:CONTAINER_OFFSET,Popover:CONTAINER_OFFSET,Popconfirm:CONTAINER_OFFSET,Tooltip:CONTAINER_OFFSET,Tour:CONTAINER_OFFSET},consumerBaseZIndexOffset={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function isContainerType(_e){return _e in containerBaseZIndexOffset}function useZIndex(_e,et){const[,rt]=useToken$4(),st=React$1.useContext(zIndexContext$1),ct=isContainerType(_e);if(et!==void 0)return[et,et];let ut=st??0;return ct?(ut+=(st?0:rt.zIndexPopupBase)+containerBaseZIndexOffset[_e],ut=Math.min(ut,rt.zIndexPopupBase+CONTAINER_MAX_OFFSET)):ut+=consumerBaseZIndexOffset[_e],[st===void 0?et:ut,ut]}const genMessageStyle=_e=>{const{componentCls:et,iconCls:rt,boxShadow:st,colorText:ct,colorSuccess:ut,colorError:ft,colorWarning:gt,colorInfo:xt,fontSizeLG:$t,motionEaseInOutCirc:_t,motionDurationSlow:wt,marginXS:Tt,paddingXS:Rt,borderRadiusLG:It,zIndexPopup:At,contentPadding:jt,contentBg:Nt}=_e,kt=`${et}-notice`,Ft=new Keyframe("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Rt,transform:"translateY(0)",opacity:1}}),Ht=new Keyframe("MessageMoveOut",{"0%":{maxHeight:_e.height,padding:Rt,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),Wt={padding:Rt,textAlign:"center",[`${et}-custom-content > ${rt}`]:{verticalAlign:"text-bottom",marginInlineEnd:Tt,fontSize:$t},[`${kt}-content`]:{display:"inline-block",padding:jt,background:Nt,borderRadius:It,boxShadow:st,pointerEvents:"all"},[`${et}-success > ${rt}`]:{color:ut},[`${et}-error > ${rt}`]:{color:ft},[`${et}-warning > ${rt}`]:{color:gt},[`${et}-info > ${rt}, ${et}-loading > ${rt}`]:{color:xt}};return[{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{color:ct,position:"fixed",top:Tt,width:"100%",pointerEvents:"none",zIndex:At,[`${et}-move-up`]:{animationFillMode:"forwards"},[` ${et}-move-up-appear, ${et}-move-up-enter `]:{animationName:Ft,animationDuration:wt,animationPlayState:"paused",animationTimingFunction:_t},[` ${et}-move-up-appear${et}-move-up-appear-active, ${et}-move-up-enter${et}-move-up-enter-active - `]:{animationPlayState:"running"},[`${et}-move-up-leave`]:{animationName:Ht,animationDuration:wt,animationPlayState:"paused",animationTimingFunction:_t},[`${et}-move-up-leave${et}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[et]:{[`${kt}-wrapper`]:Object.assign({},Wt)}},{[`${et}-notice-pure-panel`]:Object.assign(Object.assign({},Wt),{padding:0,textAlign:"start"})}]},prepareComponentToken$y=_e=>({zIndexPopup:_e.zIndexPopupBase+CONTAINER_MAX_OFFSET+10,contentBg:_e.colorBgElevated,contentPadding:`${(_e.controlHeightLG-_e.fontSize*_e.lineHeight)/2}px ${_e.paddingSM}px`}),useStyle$W=genStyleHooks("Message",_e=>{const et=merge$7(_e,{height:150});return[genMessageStyle(et)]},prepareComponentToken$y);var __rest$12=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{prefixCls:et,type:rt,icon:st,children:ct}=_e;return reactExports.createElement("div",{className:classNames(`${et}-custom-content`,`${et}-${rt}`)},st||TypeIcon[rt],reactExports.createElement("span",null,ct))},PurePanel$c=_e=>{const{prefixCls:et,className:rt,type:st,icon:ct,content:ut}=_e,ft=__rest$12(_e,["prefixCls","className","type","icon","content"]),{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=et||gt("message"),$t=useCSSVarCls(xt),[_t,wt,Tt]=useStyle$W(xt,$t);return _t(reactExports.createElement(Notify,Object.assign({},ft,{prefixCls:xt,className:classNames(rt,wt,`${xt}-notice-pure-panel`,Tt,$t),eventKey:"pure",duration:null,content:reactExports.createElement(PureContent$1,{prefixCls:xt,type:st,icon:ct},ut)})))},PurePanel$d=PurePanel$c;function getMotion$3(_e,et){return{motionName:et??`${_e}-move-up`}}function wrapPromiseFn(_e){let et;const rt=new Promise(ct=>{et=_e(()=>{ct(!0)})}),st=()=>{et==null||et()};return st.then=(ct,ut)=>rt.then(ct,ut),st.promise=rt,st}var __rest$11=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{children:et,prefixCls:rt}=_e;const st=useCSSVarCls(rt),[ct,ut,ft]=useStyle$W(rt,st);return ct(reactExports.createElement(NotificationProvider,{classNames:{list:classNames(ut,ft,st)}},et))},renderNotifications$1=(_e,et)=>{let{prefixCls:rt,key:st}=et;return reactExports.createElement(Wrapper$1,{prefixCls:rt,key:st},_e)},Holder$1=reactExports.forwardRef((_e,et)=>{const{top:rt,prefixCls:st,getContainer:ct,maxCount:ut,duration:ft=DEFAULT_DURATION$1,rtl:gt,transitionName:xt,onAllRemoved:$t}=_e,{getPrefixCls:_t,getPopupContainer:wt,message:Tt,direction:Rt}=reactExports.useContext(ConfigContext$1),It=st||_t("message"),At=()=>({left:"50%",transform:"translateX(-50%)",top:rt??DEFAULT_OFFSET$1}),jt=()=>classNames({[`${It}-rtl`]:gt??Rt==="rtl"}),Nt=()=>getMotion$3(It,xt),kt=reactExports.createElement("span",{className:`${It}-close-x`},reactExports.createElement(CloseOutlined$1,{className:`${It}-close-icon`})),[Ft,Ht]=useNotification$1({prefixCls:It,style:At,className:jt,motion:Nt,closable:!1,closeIcon:kt,duration:ft,getContainer:()=>(ct==null?void 0:ct())||(wt==null?void 0:wt())||document.body,maxCount:ut,onAllRemoved:$t,renderNotifications:renderNotifications$1});return reactExports.useImperativeHandle(et,()=>Object.assign(Object.assign({},Ft),{prefixCls:It,message:Tt})),Ht});let keyIndex=0;function useInternalMessage(_e){const et=reactExports.useRef(null);return devUseWarning(),[reactExports.useMemo(()=>{const st=xt=>{var $t;($t=et.current)===null||$t===void 0||$t.close(xt)},ct=xt=>{if(!et.current){const Vt=()=>{};return Vt.then=()=>{},Vt}const{open:$t,prefixCls:_t,message:wt}=et.current,Tt=`${_t}-notice`,{content:Rt,icon:It,type:At,key:jt,className:Nt,style:kt,onClose:Ft}=xt,Ht=__rest$11(xt,["content","icon","type","key","className","style","onClose"]);let Wt=jt;return Wt==null&&(keyIndex+=1,Wt=`antd-message-${keyIndex}`),wrapPromiseFn(Vt=>($t(Object.assign(Object.assign({},Ht),{key:Wt,content:reactExports.createElement(PureContent$1,{prefixCls:_t,type:At,icon:It},Rt),placement:"top",className:classNames(At&&`${Tt}-${At}`,Nt,wt==null?void 0:wt.className),style:Object.assign(Object.assign({},wt==null?void 0:wt.style),kt),onClose:()=>{Ft==null||Ft(),Vt()}})),()=>{st(Wt)}))},ft={open:ct,destroy:xt=>{var $t;xt!==void 0?st(xt):($t=et.current)===null||$t===void 0||$t.destroy()}};return["info","success","warning","error","loading"].forEach(xt=>{const $t=(_t,wt,Tt)=>{let Rt;_t&&typeof _t=="object"&&"content"in _t?Rt=_t:Rt={content:_t};let It,At;typeof wt=="function"?At=wt:(It=wt,At=Tt);const jt=Object.assign(Object.assign({onClose:At,duration:It},Rt),{type:xt});return ct(jt)};ft[xt]=$t}),ft},[]),reactExports.createElement(Holder$1,Object.assign({key:"message-holder"},_e,{ref:et}))]}function useMessage(_e){return useInternalMessage(_e)}function usePatchElement(){const[_e,et]=reactExports.useState([]),rt=reactExports.useCallback(st=>(et(ct=>[].concat(_toConsumableArray$3(ct),[st])),()=>{et(ct=>ct.filter(ut=>ut!==st))}),[]);return[_e,rt]}function _regeneratorRuntime(){_regeneratorRuntime=function(){return et};var _e,et={},rt=Object.prototype,st=rt.hasOwnProperty,ct=Object.defineProperty||function(hr,fr,dr){hr[fr]=dr.value},ut=typeof Symbol=="function"?Symbol:{},ft=ut.iterator||"@@iterator",gt=ut.asyncIterator||"@@asyncIterator",xt=ut.toStringTag||"@@toStringTag";function $t(hr,fr,dr){return Object.defineProperty(hr,fr,{value:dr,enumerable:!0,configurable:!0,writable:!0}),hr[fr]}try{$t({},"")}catch{$t=function(dr,yr,$r){return dr[yr]=$r}}function _t(hr,fr,dr,yr){var $r=fr&&fr.prototype instanceof Nt?fr:Nt,Er=Object.create($r.prototype),mr=new ur(yr||[]);return ct(Er,"_invoke",{value:Zt(hr,dr,mr)}),Er}function wt(hr,fr,dr){try{return{type:"normal",arg:hr.call(fr,dr)}}catch(yr){return{type:"throw",arg:yr}}}et.wrap=_t;var Tt="suspendedStart",Rt="suspendedYield",It="executing",At="completed",jt={};function Nt(){}function kt(){}function Ft(){}var Ht={};$t(Ht,ft,function(){return this});var Wt=Object.getPrototypeOf,Vt=Wt&&Wt(Wt(pr([])));Vt&&Vt!==rt&&st.call(Vt,ft)&&(Ht=Vt);var qt=Ft.prototype=Nt.prototype=Object.create(Ht);function Gt(hr){["next","throw","return"].forEach(function(fr){$t(hr,fr,function(dr){return this._invoke(fr,dr)})})}function Xt(hr,fr){function dr($r,Er,mr,Sr){var Tr=wt(hr[$r],hr,Er);if(Tr.type!=="throw"){var jr=Tr.arg,Or=jr.value;return Or&&_typeof$e(Or)=="object"&&st.call(Or,"__await")?fr.resolve(Or.__await).then(function(_r){dr("next",_r,mr,Sr)},function(_r){dr("throw",_r,mr,Sr)}):fr.resolve(Or).then(function(_r){jr.value=_r,mr(jr)},function(_r){return dr("throw",_r,mr,Sr)})}Sr(Tr.arg)}var yr;ct(this,"_invoke",{value:function(Er,mr){function Sr(){return new fr(function(Tr,jr){dr(Er,mr,Tr,jr)})}return yr=yr?yr.then(Sr,Sr):Sr()}})}function Zt(hr,fr,dr){var yr=Tt;return function($r,Er){if(yr===It)throw new Error("Generator is already running");if(yr===At){if($r==="throw")throw Er;return{value:_e,done:!0}}for(dr.method=$r,dr.arg=Er;;){var mr=dr.delegate;if(mr){var Sr=lr(mr,dr);if(Sr){if(Sr===jt)continue;return Sr}}if(dr.method==="next")dr.sent=dr._sent=dr.arg;else if(dr.method==="throw"){if(yr===Tt)throw yr=At,dr.arg;dr.dispatchException(dr.arg)}else dr.method==="return"&&dr.abrupt("return",dr.arg);yr=It;var Tr=wt(hr,fr,dr);if(Tr.type==="normal"){if(yr=dr.done?At:Rt,Tr.arg===jt)continue;return{value:Tr.arg,done:dr.done}}Tr.type==="throw"&&(yr=At,dr.method="throw",dr.arg=Tr.arg)}}}function lr(hr,fr){var dr=fr.method,yr=hr.iterator[dr];if(yr===_e)return fr.delegate=null,dr==="throw"&&hr.iterator.return&&(fr.method="return",fr.arg=_e,lr(hr,fr),fr.method==="throw")||dr!=="return"&&(fr.method="throw",fr.arg=new TypeError("The iterator does not provide a '"+dr+"' method")),jt;var $r=wt(yr,hr.iterator,fr.arg);if($r.type==="throw")return fr.method="throw",fr.arg=$r.arg,fr.delegate=null,jt;var Er=$r.arg;return Er?Er.done?(fr[hr.resultName]=Er.value,fr.next=hr.nextLoc,fr.method!=="return"&&(fr.method="next",fr.arg=_e),fr.delegate=null,jt):Er:(fr.method="throw",fr.arg=new TypeError("iterator result is not an object"),fr.delegate=null,jt)}function er(hr){var fr={tryLoc:hr[0]};1 in hr&&(fr.catchLoc=hr[1]),2 in hr&&(fr.finallyLoc=hr[2],fr.afterLoc=hr[3]),this.tryEntries.push(fr)}function cr(hr){var fr=hr.completion||{};fr.type="normal",delete fr.arg,hr.completion=fr}function ur(hr){this.tryEntries=[{tryLoc:"root"}],hr.forEach(er,this),this.reset(!0)}function pr(hr){if(hr||hr===""){var fr=hr[ft];if(fr)return fr.call(hr);if(typeof hr.next=="function")return hr;if(!isNaN(hr.length)){var dr=-1,yr=function $r(){for(;++dr=0;--$r){var Er=this.tryEntries[$r],mr=Er.completion;if(Er.tryLoc==="root")return yr("end");if(Er.tryLoc<=this.prev){var Sr=st.call(Er,"catchLoc"),Tr=st.call(Er,"finallyLoc");if(Sr&&Tr){if(this.prev=0;--yr){var $r=this.tryEntries[yr];if($r.tryLoc<=this.prev&&st.call($r,"finallyLoc")&&this.prev<$r.finallyLoc){var Er=$r;break}}Er&&(fr==="break"||fr==="continue")&&Er.tryLoc<=dr&&dr<=Er.finallyLoc&&(Er=null);var mr=Er?Er.completion:{};return mr.type=fr,mr.arg=dr,Er?(this.method="next",this.next=Er.finallyLoc,jt):this.complete(mr)},complete:function(fr,dr){if(fr.type==="throw")throw fr.arg;return fr.type==="break"||fr.type==="continue"?this.next=fr.arg:fr.type==="return"?(this.rval=this.arg=fr.arg,this.method="return",this.next="end"):fr.type==="normal"&&dr&&(this.next=dr),jt},finish:function(fr){for(var dr=this.tryEntries.length-1;dr>=0;--dr){var yr=this.tryEntries[dr];if(yr.finallyLoc===fr)return this.complete(yr.completion,yr.afterLoc),cr(yr),jt}},catch:function(fr){for(var dr=this.tryEntries.length-1;dr>=0;--dr){var yr=this.tryEntries[dr];if(yr.tryLoc===fr){var $r=yr.completion;if($r.type==="throw"){var Er=$r.arg;cr(yr)}return Er}}throw new Error("illegal catch attempt")},delegateYield:function(fr,dr,yr){return this.delegate={iterator:pr(fr),resultName:dr,nextLoc:yr},this.method==="next"&&(this.arg=_e),jt}},et}function asyncGeneratorStep(_e,et,rt,st,ct,ut,ft){try{var gt=_e[ut](ft),xt=gt.value}catch($t){rt($t);return}gt.done?et(xt):Promise.resolve(xt).then(st,ct)}function _asyncToGenerator(_e){return function(){var et=this,rt=arguments;return new Promise(function(st,ct){var ut=_e.apply(et,rt);function ft(xt){asyncGeneratorStep(ut,st,ct,ft,gt,"next",xt)}function gt(xt){asyncGeneratorStep(ut,st,ct,ft,gt,"throw",xt)}ft(void 0)})}}var fullClone=_objectSpread2({},ReactDOM$1),version$2=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode,createRoot;try{var mainVersion=Number((version$2||"").split(".")[0]);mainVersion>=18&&(createRoot=fullClone.createRoot)}catch{}function toggleWarning(_e){var et=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;et&&_typeof$e(et)==="object"&&(et.usingClientEntryPoint=_e)}var MARK="__rc_react_root__";function modernRender(_e,et){toggleWarning(!0);var rt=et[MARK]||createRoot(et);toggleWarning(!1),rt.render(_e),et[MARK]=rt}function legacyRender(_e,et){reactRender(_e,et)}function render$1(_e,et){if(createRoot){modernRender(_e,et);return}legacyRender(_e,et)}function modernUnmount(_e){return _modernUnmount.apply(this,arguments)}function _modernUnmount(){return _modernUnmount=_asyncToGenerator(_regeneratorRuntime().mark(function _e(et){return _regeneratorRuntime().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.abrupt("return",Promise.resolve().then(function(){var ct;(ct=et[MARK])===null||ct===void 0||ct.unmount(),delete et[MARK]}));case 1:case"end":return st.stop()}},_e)})),_modernUnmount.apply(this,arguments)}function legacyUnmount(_e){unmountComponentAtNode(_e)}function unmount(_e){return _unmount.apply(this,arguments)}function _unmount(){return _unmount=_asyncToGenerator(_regeneratorRuntime().mark(function _e(et){return _regeneratorRuntime().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(createRoot===void 0){st.next=2;break}return st.abrupt("return",modernUnmount(et));case 2:legacyUnmount(et);case 3:case"end":return st.stop()}},_e)})),_unmount.apply(this,arguments)}const getCollapsedHeight=()=>({height:0,opacity:0}),getRealHeight=_e=>{const{scrollHeight:et}=_e;return{height:et,opacity:1}},getCurrentHeight=_e=>({height:_e?_e.offsetHeight:0}),skipOpacityTransition=(_e,et)=>(et==null?void 0:et.deadline)===!0||et.propertyName==="height",initCollapseMotion=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:getCollapsedHeight,onEnterStart:getCollapsedHeight,onAppearActive:getRealHeight,onEnterActive:getRealHeight,onLeaveStart:getCurrentHeight,onLeaveActive:getCollapsedHeight,onAppearEnd:skipOpacityTransition,onEnterEnd:skipOpacityTransition,onLeaveEnd:skipOpacityTransition,motionDeadline:500}},getTransitionName=(_e,et,rt)=>rt!==void 0?rt:`${_e}-${et}`,initCollapseMotion$1=initCollapseMotion,isVisible$1=function(_e){if(!_e)return!1;if(_e instanceof Element){if(_e.offsetParent)return!0;if(_e.getBBox){var et=_e.getBBox(),rt=et.width,st=et.height;if(rt||st)return!0}if(_e.getBoundingClientRect){var ct=_e.getBoundingClientRect(),ut=ct.width,ft=ct.height;if(ut||ft)return!0}}return!1},genWaveStyle=_e=>{const{componentCls:et,colorPrimary:rt}=_e;return{[et]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${rt})`,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 0.3s ${_e.motionEaseInOut}`,`opacity 0.35s ${_e.motionEaseInOut}`].join(",")}}}}},useStyle$V=genComponentStyleHook$1("Wave",_e=>[genWaveStyle(_e)]);function isNotGrey(_e){const et=(_e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return et&&et[1]&&et[2]&&et[3]?!(et[1]===et[2]&&et[2]===et[3]):!0}function isValidWaveColor(_e){return _e&&_e!=="#fff"&&_e!=="#ffffff"&&_e!=="rgb(255, 255, 255)"&&_e!=="rgba(255, 255, 255, 1)"&&isNotGrey(_e)&&!/rgba\((?:\d*, ){3}0\)/.test(_e)&&_e!=="transparent"}function getTargetWaveColor(_e){const{borderTopColor:et,borderColor:rt,backgroundColor:st}=getComputedStyle(_e);return isValidWaveColor(et)?et:isValidWaveColor(rt)?rt:isValidWaveColor(st)?st:null}const TARGET_CLS="ant-wave-target";function validateNum(_e){return Number.isNaN(_e)?0:_e}const WaveEffect=_e=>{const{className:et,target:rt,component:st}=_e,ct=reactExports.useRef(null),[ut,ft]=reactExports.useState(null),[gt,xt]=reactExports.useState([]),[$t,_t]=reactExports.useState(0),[wt,Tt]=reactExports.useState(0),[Rt,It]=reactExports.useState(0),[At,jt]=reactExports.useState(0),[Nt,kt]=reactExports.useState(!1),Ft={left:$t,top:wt,width:Rt,height:At,borderRadius:gt.map(Vt=>`${Vt}px`).join(" ")};ut&&(Ft["--wave-color"]=ut);function Ht(){const Vt=getComputedStyle(rt);ft(getTargetWaveColor(rt));const qt=Vt.position==="static",{borderLeftWidth:Gt,borderTopWidth:Xt}=Vt;_t(qt?rt.offsetLeft:validateNum(-parseFloat(Gt))),Tt(qt?rt.offsetTop:validateNum(-parseFloat(Xt))),It(rt.offsetWidth),jt(rt.offsetHeight);const{borderTopLeftRadius:Zt,borderTopRightRadius:lr,borderBottomLeftRadius:er,borderBottomRightRadius:cr}=Vt;xt([Zt,lr,cr,er].map(ur=>validateNum(parseFloat(ur))))}if(reactExports.useEffect(()=>{if(rt){const Vt=wrapperRaf(()=>{Ht(),kt(!0)});let qt;return typeof ResizeObserver<"u"&&(qt=new ResizeObserver(Ht),qt.observe(rt)),()=>{wrapperRaf.cancel(Vt),qt==null||qt.disconnect()}}},[]),!Nt)return null;const Wt=(st==="Checkbox"||st==="Radio")&&(rt==null?void 0:rt.classList.contains(TARGET_CLS));return reactExports.createElement(CSSMotion,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Vt,qt)=>{var Gt;if(qt.deadline||qt.propertyName==="opacity"){const Xt=(Gt=ct.current)===null||Gt===void 0?void 0:Gt.parentElement;unmount(Xt).then(()=>{Xt==null||Xt.remove()})}return!1}},Vt=>{let{className:qt}=Vt;return reactExports.createElement("div",{ref:ct,className:classNames(et,{"wave-quick":Wt},qt),style:Ft})})},showWaveEffect=(_e,et)=>{var rt;const{component:st}=et;if(st==="Checkbox"&&!(!((rt=_e.querySelector("input"))===null||rt===void 0)&&rt.checked))return;const ct=document.createElement("div");ct.style.position="absolute",ct.style.left="0px",ct.style.top="0px",_e==null||_e.insertBefore(ct,_e==null?void 0:_e.firstChild),render$1(reactExports.createElement(WaveEffect,Object.assign({},et,{target:_e})),ct)},showWaveEffect$1=showWaveEffect;function useWave(_e,et,rt){const{wave:st}=reactExports.useContext(ConfigContext$1),[,ct,ut]=useToken$4(),ft=useEvent($t=>{const _t=_e.current;if(st!=null&&st.disabled||!_t)return;const wt=_t.querySelector(`.${TARGET_CLS}`)||_t,{showEffect:Tt}=st||{};(Tt||showWaveEffect$1)(wt,{className:et,token:ct,component:rt,event:$t,hashId:ut})}),gt=reactExports.useRef();return $t=>{wrapperRaf.cancel(gt.current),gt.current=wrapperRaf(()=>{ft($t)})}}const Wave=_e=>{const{children:et,disabled:rt,component:st}=_e,{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=reactExports.useRef(null),ft=ct("wave"),[,gt]=useStyle$V(ft),xt=useWave(ut,classNames(ft,gt),st);if(React$1.useEffect(()=>{const _t=ut.current;if(!_t||_t.nodeType!==1||rt)return;const wt=Tt=>{!isVisible$1(Tt.target)||!_t.getAttribute||_t.getAttribute("disabled")||_t.disabled||_t.className.includes("disabled")||_t.className.includes("-leave")||xt(Tt)};return _t.addEventListener("click",wt,!0),()=>{_t.removeEventListener("click",wt,!0)}},[rt]),!React$1.isValidElement(et))return et??null;const $t=supportRef(et)?composeRef(et.ref,ut):ut;return cloneElement(et,{ref:$t})},Wave$1=Wave,useSize=_e=>{const et=React$1.useContext(SizeContext$2);return React$1.useMemo(()=>_e?typeof _e=="string"?_e??et:_e instanceof Function?_e(et):et:et,[_e,et])},genSpaceCompactStyle=_e=>{const{componentCls:et}=_e;return{[et]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},genSpaceStyle=_e=>{const{componentCls:et}=_e;return{[et]:{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"}},[`${et}-item:empty`]:{display:"none"}}}},genSpaceGapStyle=_e=>{const{componentCls:et}=_e;return{[et]:{"&-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}}}},useStyle$U=genStyleHooks("Space",_e=>{const et=merge$7(_e,{spaceGapSmallSize:_e.paddingXS,spaceGapMiddleSize:_e.padding,spaceGapLargeSize:_e.paddingLG});return[genSpaceStyle(et),genSpaceGapStyle(et),genSpaceCompactStyle(et)]},()=>({}),{resetStyle:!1});var __rest$10=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const rt=reactExports.useContext(SpaceCompactItemContext),st=reactExports.useMemo(()=>{if(!rt)return"";const{compactDirection:ct,isFirstItem:ut,isLastItem:ft}=rt,gt=ct==="vertical"?"-vertical-":"-";return classNames(`${_e}-compact${gt}item`,{[`${_e}-compact${gt}first-item`]:ut,[`${_e}-compact${gt}last-item`]:ft,[`${_e}-compact${gt}item-rtl`]:et==="rtl"})},[_e,et,rt]);return{compactSize:rt==null?void 0:rt.compactSize,compactDirection:rt==null?void 0:rt.compactDirection,compactItemClassnames:st}},NoCompactStyle=_e=>{let{children:et}=_e;return reactExports.createElement(SpaceCompactItemContext.Provider,{value:null},et)},CompactItem=_e=>{var{children:et}=_e,rt=__rest$10(_e,["children"]);return reactExports.createElement(SpaceCompactItemContext.Provider,{value:rt},et)},Compact=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{size:st,direction:ct,block:ut,prefixCls:ft,className:gt,rootClassName:xt,children:$t}=_e,_t=__rest$10(_e,["size","direction","block","prefixCls","className","rootClassName","children"]),wt=useSize(Ft=>st??Ft),Tt=et("space-compact",ft),[Rt,It]=useStyle$U(Tt),At=classNames(Tt,It,{[`${Tt}-rtl`]:rt==="rtl",[`${Tt}-block`]:ut,[`${Tt}-vertical`]:ct==="vertical"},gt,xt),jt=reactExports.useContext(SpaceCompactItemContext),Nt=toArray$d($t),kt=reactExports.useMemo(()=>Nt.map((Ft,Ht)=>{const Wt=Ft&&Ft.key||`${Tt}-item-${Ht}`;return reactExports.createElement(CompactItem,{key:Wt,compactSize:wt,compactDirection:ct,isFirstItem:Ht===0&&(!jt||(jt==null?void 0:jt.isFirstItem)),isLastItem:Ht===Nt.length-1&&(!jt||(jt==null?void 0:jt.isLastItem))},Ft)}),[st,Nt,jt]);return Nt.length===0?null:Rt(reactExports.createElement("div",Object.assign({className:At},_t),kt))};var __rest$$=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,size:ct,className:ut}=_e,ft=__rest$$(_e,["prefixCls","size","className"]),gt=et("btn-group",st),[,,xt]=useToken$4();let $t="";switch(ct){case"large":$t="lg";break;case"small":$t="sm";break}const _t=classNames(gt,{[`${gt}-${$t}`]:$t,[`${gt}-rtl`]:rt==="rtl"},ut,xt);return reactExports.createElement(GroupSizeContext.Provider,{value:ct},reactExports.createElement("div",Object.assign({},ft,{className:_t})))},Group$9=ButtonGroup,rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function convertLegacyProps(_e){return _e==="danger"?{danger:!0}:{type:_e}}function isString$3(_e){return typeof _e=="string"}function isUnBorderedButtonType(_e){return _e==="text"||_e==="link"}function splitCNCharsBySpace(_e,et){if(_e==null)return;const rt=et?" ":"";return typeof _e!="string"&&typeof _e!="number"&&isString$3(_e.type)&&isTwoCNChar(_e.props.children)?cloneElement(_e,{children:_e.props.children.split("").join(rt)}):isString$3(_e)?isTwoCNChar(_e)?React$1.createElement("span",null,_e.split("").join(rt)):React$1.createElement("span",null,_e):isFragment(_e)?React$1.createElement("span",null,_e):_e}function spaceChildren(_e,et){let rt=!1;const st=[];return React$1.Children.forEach(_e,ct=>{const ut=typeof ct,ft=ut==="string"||ut==="number";if(rt&&ft){const gt=st.length-1,xt=st[gt];st[gt]=`${xt}${ct}`}else st.push(ct);rt=ft}),React$1.Children.map(st,ct=>splitCNCharsBySpace(ct,et))}const IconWrapper=reactExports.forwardRef((_e,et)=>{const{className:rt,style:st,children:ct,prefixCls:ut}=_e,ft=classNames(`${ut}-icon`,rt);return React$1.createElement("span",{ref:et,className:ft,style:st},ct)}),IconWrapper$1=IconWrapper,InnerLoadingIcon=reactExports.forwardRef((_e,et)=>{let{prefixCls:rt,className:st,style:ct,iconClassName:ut}=_e;const ft=classNames(`${rt}-loading-icon`,st);return React$1.createElement(IconWrapper$1,{prefixCls:rt,className:ft,style:ct,ref:et},React$1.createElement(LoadingOutlined$3,{className:ut}))}),getCollapsedWidth=()=>({width:0,opacity:0,transform:"scale(0)"}),getRealWidth=_e=>({width:_e.scrollWidth,opacity:1,transform:"scale(1)"}),LoadingIcon=_e=>{const{prefixCls:et,loading:rt,existIcon:st,className:ct,style:ut}=_e,ft=!!rt;return st?React$1.createElement(InnerLoadingIcon,{prefixCls:et,className:ct,style:ut}):React$1.createElement(CSSMotion,{visible:ft,motionName:`${et}-loading-icon-motion`,motionLeave:ft,removeOnLeave:!0,onAppearStart:getCollapsedWidth,onAppearActive:getRealWidth,onEnterStart:getCollapsedWidth,onEnterActive:getRealWidth,onLeaveStart:getRealWidth,onLeaveActive:getCollapsedWidth},(gt,xt)=>{let{className:$t,style:_t}=gt;return React$1.createElement(InnerLoadingIcon,{prefixCls:et,className:ct,style:Object.assign(Object.assign({},ut),_t),ref:xt,iconClassName:$t})})},LoadingIcon$1=LoadingIcon,genButtonBorderStyle=(_e,et)=>({[`> span, > ${_e}`]:{"&:not(:last-child)":{[`&, & > ${_e}`]:{"&:not(:disabled)":{borderInlineEndColor:et}}},"&:not(:first-child)":{[`&, & > ${_e}`]:{"&:not(:disabled)":{borderInlineStartColor:et}}}}}),genGroupStyle$2=_e=>{const{componentCls:et,fontSize:rt,lineWidth:st,groupBorderColor:ct,colorErrorHover:ut}=_e;return{[`${et}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${et}`]:{"&:not(:last-child)":{[`&, & > ${et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:_e.calc(st).mul(-1).equal(),[`&, & > ${et}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[et]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${et}-icon-only`]:{fontSize:rt}},genButtonBorderStyle(`${et}-primary`,ct),genButtonBorderStyle(`${et}-danger`,ut)]}},prepareToken$3=_e=>{const{paddingInline:et,onlyIconSize:rt,paddingBlock:st}=_e;return merge$7(_e,{buttonPaddingHorizontal:et,buttonPaddingVertical:st,buttonIconOnlyFontSize:rt})},prepareComponentToken$x=_e=>{var et,rt,st,ct,ut,ft;const gt=(et=_e.contentFontSize)!==null&&et!==void 0?et:_e.fontSize,xt=(rt=_e.contentFontSizeSM)!==null&&rt!==void 0?rt:_e.fontSize,$t=(st=_e.contentFontSizeLG)!==null&&st!==void 0?st:_e.fontSizeLG,_t=(ct=_e.contentLineHeight)!==null&&ct!==void 0?ct:getLineHeight(gt),wt=(ut=_e.contentLineHeightSM)!==null&&ut!==void 0?ut:getLineHeight(xt),Tt=(ft=_e.contentLineHeightLG)!==null&&ft!==void 0?ft:getLineHeight($t);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:_e.fontSizeLG,onlyIconSizeSM:_e.fontSizeLG-2,onlyIconSizeLG:_e.fontSizeLG+2,groupBorderColor:_e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:_e.colorBgTextHover,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,contentFontSize:gt,contentFontSizeSM:xt,contentFontSizeLG:$t,contentLineHeight:_t,contentLineHeightSM:wt,contentLineHeightLG:Tt,paddingBlock:Math.max((_e.controlHeight-gt*_t)/2-_e.lineWidth,0),paddingBlockSM:Math.max((_e.controlHeightSM-xt*wt)/2-_e.lineWidth,0),paddingBlockLG:Math.max((_e.controlHeightLG-$t*Tt)/2-_e.lineWidth,0)}},genSharedButtonStyle=_e=>{const{componentCls:et,iconCls:rt,fontWeight:st}=_e;return{[et]:{outline:"none",position:"relative",display:"inline-block",fontWeight:st,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,cursor:"pointer",transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:_e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${et}-icon`]:{lineHeight:0},[`> ${rt} + span, > span + ${rt}`]:{marginInlineStart:_e.marginXS},[`&:not(${et}-icon-only) > ${et}-icon`]:{[`&${et}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:_e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},genFocusStyle(_e)),[`&${et}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${et}-two-chinese-chars > *:not(${rt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${et}-compact-item`]:{flex:"none"}}}},genHoverActiveButtonStyle=(_e,et,rt)=>({[`&:not(:disabled):not(${_e}-disabled)`]:{"&:hover":et,"&:active":rt}}),genCircleButtonStyle=_e=>({minWidth:_e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),genRoundButtonStyle=_e=>({borderRadius:_e.controlHeight,paddingInlineStart:_e.calc(_e.controlHeight).div(2).equal(),paddingInlineEnd:_e.calc(_e.controlHeight).div(2).equal()}),genDisabledStyle$1=_e=>({cursor:"not-allowed",borderColor:_e.borderColorDisabled,color:_e.colorTextDisabled,background:_e.colorBgContainerDisabled,boxShadow:"none"}),genGhostButtonStyle=(_e,et,rt,st,ct,ut,ft,gt)=>({[`&${_e}-background-ghost`]:Object.assign(Object.assign({color:rt||void 0,background:et,borderColor:st||void 0,boxShadow:"none"},genHoverActiveButtonStyle(_e,Object.assign({background:et},ft),Object.assign({background:et},gt))),{"&:disabled":{cursor:"not-allowed",color:ct||void 0,borderColor:ut||void 0}})}),genSolidDisabledButtonStyle=_e=>({[`&:disabled, &${_e.componentCls}-disabled`]:Object.assign({},genDisabledStyle$1(_e))}),genSolidButtonStyle=_e=>Object.assign({},genSolidDisabledButtonStyle(_e)),genPureDisabledButtonStyle=_e=>({[`&:disabled, &${_e.componentCls}-disabled`]:{cursor:"not-allowed",color:_e.colorTextDisabled}}),genDefaultButtonStyle=_e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(_e)),{background:_e.defaultBg,borderColor:_e.defaultBorderColor,color:_e.defaultColor,boxShadow:_e.defaultShadow}),genHoverActiveButtonStyle(_e.componentCls,{color:_e.defaultHoverColor,borderColor:_e.defaultHoverBorderColor,background:_e.defaultHoverBg},{color:_e.defaultActiveColor,borderColor:_e.defaultActiveBorderColor,background:_e.defaultActiveBg})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.defaultGhostColor,_e.defaultGhostBorderColor,_e.colorTextDisabled,_e.colorBorder)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:_e.colorError,borderColor:_e.colorError},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover,borderColor:_e.colorErrorBorderHover},{color:_e.colorErrorActive,borderColor:_e.colorErrorActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorError,_e.colorError,_e.colorTextDisabled,_e.colorBorder)),genSolidDisabledButtonStyle(_e))}),genPrimaryButtonStyle=_e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(_e)),{color:_e.primaryColor,background:_e.colorPrimary,boxShadow:_e.primaryShadow}),genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorTextLightSolid,background:_e.colorPrimaryHover},{color:_e.colorTextLightSolid,background:_e.colorPrimaryActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorPrimary,_e.colorPrimary,_e.colorTextDisabled,_e.colorBorder,{color:_e.colorPrimaryHover,borderColor:_e.colorPrimaryHover},{color:_e.colorPrimaryActive,borderColor:_e.colorPrimaryActive})),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:_e.colorError,boxShadow:_e.dangerShadow,color:_e.dangerColor},genHoverActiveButtonStyle(_e.componentCls,{background:_e.colorErrorHover},{background:_e.colorErrorActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorError,_e.colorError,_e.colorTextDisabled,_e.colorBorder,{color:_e.colorErrorHover,borderColor:_e.colorErrorHover},{color:_e.colorErrorActive,borderColor:_e.colorErrorActive})),genSolidDisabledButtonStyle(_e))}),genDashedButtonStyle=_e=>Object.assign(Object.assign({},genDefaultButtonStyle(_e)),{borderStyle:"dashed"}),genLinkButtonStyle=_e=>Object.assign(Object.assign(Object.assign({color:_e.colorLink},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorLinkHover,background:_e.linkHoverBg},{color:_e.colorLinkActive})),genPureDisabledButtonStyle(_e)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign({color:_e.colorError},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover},{color:_e.colorErrorActive})),genPureDisabledButtonStyle(_e))}),genTextButtonStyle=_e=>Object.assign(Object.assign(Object.assign({},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorText,background:_e.textHoverBg},{color:_e.colorText,background:_e.colorBgTextActive})),genPureDisabledButtonStyle(_e)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign({color:_e.colorError},genPureDisabledButtonStyle(_e)),genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover,background:_e.colorErrorBg},{color:_e.colorErrorHover,background:_e.colorErrorBg}))}),genTypeButtonStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-default`]:genDefaultButtonStyle(_e),[`${et}-primary`]:genPrimaryButtonStyle(_e),[`${et}-dashed`]:genDashedButtonStyle(_e),[`${et}-link`]:genLinkButtonStyle(_e),[`${et}-text`]:genTextButtonStyle(_e),[`${et}-ghost`]:genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorBgContainer,_e.colorBgContainer,_e.colorTextDisabled,_e.colorBorder)}},genButtonStyle=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:rt,controlHeight:st,fontSize:ct,lineHeight:ut,borderRadius:ft,buttonPaddingHorizontal:gt,iconCls:xt,buttonPaddingVertical:$t}=_e,_t=`${rt}-icon-only`;return[{[`${et}`]:{fontSize:ct,lineHeight:ut,height:st,padding:`${unit$1($t)} ${unit$1(gt)}`,borderRadius:ft,[`&${_t}`]:{width:st,paddingInlineStart:0,paddingInlineEnd:0,[`&${rt}-round`]:{width:"auto"},[xt]:{fontSize:_e.buttonIconOnlyFontSize}},[`&${rt}-loading`]:{opacity:_e.opacityLoading,cursor:"default"},[`${rt}-loading-icon`]:{transition:`width ${_e.motionDurationSlow} ${_e.motionEaseInOut}, opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}`}}},{[`${rt}${rt}-circle${et}`]:genCircleButtonStyle(_e)},{[`${rt}${rt}-round${et}`]:genRoundButtonStyle(_e)}]},genSizeBaseButtonStyle=_e=>{const et=merge$7(_e,{fontSize:_e.contentFontSize,lineHeight:_e.contentLineHeight});return genButtonStyle(et,_e.componentCls)},genSizeSmallButtonStyle=_e=>{const et=merge$7(_e,{controlHeight:_e.controlHeightSM,fontSize:_e.contentFontSizeSM,lineHeight:_e.contentLineHeightSM,padding:_e.paddingXS,buttonPaddingHorizontal:_e.paddingInlineSM,buttonPaddingVertical:_e.paddingBlockSM,borderRadius:_e.borderRadiusSM,buttonIconOnlyFontSize:_e.onlyIconSizeSM});return genButtonStyle(et,`${_e.componentCls}-sm`)},genSizeLargeButtonStyle=_e=>{const et=merge$7(_e,{controlHeight:_e.controlHeightLG,fontSize:_e.contentFontSizeLG,lineHeight:_e.contentLineHeightLG,buttonPaddingHorizontal:_e.paddingInlineLG,buttonPaddingVertical:_e.paddingBlockLG,borderRadius:_e.borderRadiusLG,buttonIconOnlyFontSize:_e.onlyIconSizeLG});return genButtonStyle(et,`${_e.componentCls}-lg`)},genBlockButtonStyle=_e=>{const{componentCls:et}=_e;return{[et]:{[`&${et}-block`]:{width:"100%"}}}},useStyle$T=genStyleHooks("Button",_e=>{const et=prepareToken$3(_e);return[genSharedButtonStyle(et),genSizeBaseButtonStyle(et),genSizeSmallButtonStyle(et),genSizeLargeButtonStyle(et),genBlockButtonStyle(et),genTypeButtonStyle(et),genGroupStyle$2(et)]},prepareComponentToken$x,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function compactItemBorder(_e,et,rt){const{focusElCls:st,focus:ct,borderElCls:ut}=rt,ft=ut?"> *":"",gt=["hover",ct?"focus":null,"active"].filter(Boolean).map(xt=>`&:${xt} ${ft}`).join(",");return{[`&-item:not(${et}-last-item)`]:{marginInlineEnd:_e.calc(_e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[gt]:{zIndex:2}},st?{[`&${st}`]:{zIndex:2}}:{}),{[`&[disabled] ${ft}`]:{zIndex:0}})}}function compactItemBorderRadius(_e,et,rt){const{borderElCls:st}=rt,ct=st?`> ${st}`:"";return{[`&-item:not(${et}-first-item):not(${et}-last-item) ${ct}`]:{borderRadius:0},[`&-item:not(${et}-last-item)${et}-first-item`]:{[`& ${ct}, &${_e}-sm ${ct}, &${_e}-lg ${ct}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${et}-first-item)${et}-last-item`]:{[`& ${ct}, &${_e}-sm ${ct}, &${_e}-lg ${ct}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function genCompactItemStyle(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:rt}=_e,st=`${rt}-compact`;return{[st]:Object.assign(Object.assign({},compactItemBorder(_e,st,et)),compactItemBorderRadius(rt,st,et))}}function compactItemVerticalBorder(_e,et){return{[`&-item:not(${et}-last-item)`]:{marginBottom:_e.calc(_e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function compactItemBorderVerticalRadius(_e,et){return{[`&-item:not(${et}-first-item):not(${et}-last-item)`]:{borderRadius:0},[`&-item${et}-first-item:not(${et}-last-item)`]:{[`&, &${_e}-sm, &${_e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${et}-last-item:not(${et}-first-item)`]:{[`&, &${_e}-sm, &${_e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function genCompactItemVerticalStyle(_e){const et=`${_e.componentCls}-compact-vertical`;return{[et]:Object.assign(Object.assign({},compactItemVerticalBorder(_e,et)),compactItemBorderVerticalRadius(_e.componentCls,et))}}const genButtonCompactStyle=_e=>{const{componentCls:et,calc:rt}=_e;return{[et]:{[`&-compact-item${et}-primary`]:{[`&:not([disabled]) + ${et}-compact-item${et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:rt(_e.lineWidth).mul(-1).equal(),insetInlineStart:rt(_e.lineWidth).mul(-1).equal(),display:"inline-block",width:_e.lineWidth,height:`calc(100% + ${unit$1(_e.lineWidth)} * 2)`,backgroundColor:_e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${et}-primary`]:{[`&:not([disabled]) + ${et}-compact-vertical-item${et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:rt(_e.lineWidth).mul(-1).equal(),insetInlineStart:rt(_e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${unit$1(_e.lineWidth)} * 2)`,height:_e.lineWidth,backgroundColor:_e.colorPrimaryHover,content:'""'}}}}}}},CompactCmp=genSubStyleComponent(["Button","compact"],_e=>{const et=prepareToken$3(_e);return[genCompactItemStyle(et),genCompactItemVerticalStyle(et),genButtonCompactStyle(et)]},prepareComponentToken$x);var __rest$_=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{loading:ct=!1,prefixCls:ut,type:ft="default",danger:gt,shape:xt="default",size:$t,styles:_t,disabled:wt,className:Tt,rootClassName:Rt,children:It,icon:At,ghost:jt=!1,block:Nt=!1,htmlType:kt="button",classNames:Ft,style:Ht={}}=_e,Wt=__rest$_(_e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Vt,autoInsertSpaceInButton:qt,direction:Gt,button:Xt}=reactExports.useContext(ConfigContext$1),Zt=Vt("btn",ut),[lr,er,cr]=useStyle$T(Zt),ur=reactExports.useContext(DisabledContext$2),pr=wt??ur,hr=reactExports.useContext(GroupSizeContext),fr=reactExports.useMemo(()=>getLoadingConfig(ct),[ct]),[dr,yr]=reactExports.useState(fr.loading),[$r,Er]=reactExports.useState(!1),Sr=composeRef(et,reactExports.createRef()),Tr=reactExports.Children.count(It)===1&&!At&&!isUnBorderedButtonType(ft);reactExports.useEffect(()=>{let qr=null;fr.delay>0?qr=setTimeout(()=>{qr=null,yr(!0)},fr.delay):yr(fr.loading);function pn(){qr&&(clearTimeout(qr),qr=null)}return pn},[fr]),reactExports.useEffect(()=>{if(!Sr||!Sr.current||qt===!1)return;const qr=Sr.current.textContent;Tr&&isTwoCNChar(qr)?$r||Er(!0):$r&&Er(!1)},[Sr]);const jr=qr=>{const{onClick:pn}=_e;if(dr||pr){qr.preventDefault();return}pn==null||pn(qr)},Or=qt!==!1,{compactSize:_r,compactItemClassnames:Cr}=useCompactItemContext(Zt,Gt),Nr={large:"lg",small:"sm",middle:void 0},Rr=useSize(qr=>{var pn,Qr;return(Qr=(pn=$t??_r)!==null&&pn!==void 0?pn:hr)!==null&&Qr!==void 0?Qr:qr}),Pr=Rr&&Nr[Rr]||"",Mr=dr?"loading":At,kr=omit$2(Wt,["navigate"]),Fr=classNames(Zt,er,cr,{[`${Zt}-${xt}`]:xt!=="default"&&xt,[`${Zt}-${ft}`]:ft,[`${Zt}-${Pr}`]:Pr,[`${Zt}-icon-only`]:!It&&It!==0&&!!Mr,[`${Zt}-background-ghost`]:jt&&!isUnBorderedButtonType(ft),[`${Zt}-loading`]:dr,[`${Zt}-two-chinese-chars`]:$r&&Or&&!dr,[`${Zt}-block`]:Nt,[`${Zt}-dangerous`]:!!gt,[`${Zt}-rtl`]:Gt==="rtl"},Cr,Tt,Rt,Xt==null?void 0:Xt.className),wr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Ht),Br=classNames(Ft==null?void 0:Ft.icon,(rt=Xt==null?void 0:Xt.classNames)===null||rt===void 0?void 0:rt.icon),Dr=Object.assign(Object.assign({},(_t==null?void 0:_t.icon)||{}),((st=Xt==null?void 0:Xt.styles)===null||st===void 0?void 0:st.icon)||{}),Xr=At&&!dr?React$1.createElement(IconWrapper$1,{prefixCls:Zt,className:Br,style:Dr},At):React$1.createElement(LoadingIcon$1,{existIcon:!!At,prefixCls:Zt,loading:!!dr}),Kr=It||It===0?spaceChildren(It,Tr&&Or):null;if(kr.href!==void 0)return lr(React$1.createElement("a",Object.assign({},kr,{className:classNames(Fr,{[`${Zt}-disabled`]:pr}),href:pr?void 0:kr.href,style:wr,onClick:jr,ref:Sr,tabIndex:pr?-1:0}),Xr,Kr));let zr=React$1.createElement("button",Object.assign({},Wt,{type:kt,className:Fr,style:wr,onClick:jr,disabled:pr,ref:Sr}),Xr,Kr,!!Cr&&React$1.createElement(CompactCmp,{key:"compact",prefixCls:Zt}));return isUnBorderedButtonType(ft)||(zr=React$1.createElement(Wave$1,{component:"Button",disabled:!!dr},zr)),lr(zr)},Button$2=reactExports.forwardRef(InternalButton);Button$2.Group=Group$9;Button$2.__ANT_BUTTON=!0;const Button$3=Button$2;function isThenable$1(_e){return!!(_e&&_e.then)}const ActionButton=_e=>{const{type:et,children:rt,prefixCls:st,buttonProps:ct,close:ut,autoFocus:ft,emitEvent:gt,isSilent:xt,quitOnNullishReturnValue:$t,actionFn:_t}=_e,wt=reactExports.useRef(!1),Tt=reactExports.useRef(null),[Rt,It]=useSafeState(!1),At=function(){ut==null||ut.apply(void 0,arguments)};reactExports.useEffect(()=>{let kt=null;return ft&&(kt=setTimeout(()=>{var Ft;(Ft=Tt.current)===null||Ft===void 0||Ft.focus()})),()=>{kt&&clearTimeout(kt)}},[]);const jt=kt=>{isThenable$1(kt)&&(It(!0),kt.then(function(){It(!1,!0),At.apply(void 0,arguments),wt.current=!1},Ft=>{if(It(!1,!0),wt.current=!1,!(xt!=null&&xt()))return Promise.reject(Ft)}))},Nt=kt=>{if(wt.current)return;if(wt.current=!0,!_t){At();return}let Ft;if(gt){if(Ft=_t(kt),$t&&!isThenable$1(Ft)){wt.current=!1,At(kt);return}}else if(_t.length)Ft=_t(ut),wt.current=!1;else if(Ft=_t(),!Ft){At();return}jt(Ft)};return reactExports.createElement(Button$3,Object.assign({},convertLegacyProps(et),{onClick:Nt,loading:Rt,prefixCls:st},ct,{ref:Tt}),rt)},ActionButton$1=ActionButton,ModalContext=React$1.createContext({}),{Provider:ModalContextProvider}=ModalContext,ConfirmCancelBtn=()=>{const{autoFocusButton:_e,cancelButtonProps:et,cancelTextLocale:rt,isSilent:st,mergedOkCancel:ct,rootPrefixCls:ut,close:ft,onCancel:gt,onConfirm:xt}=reactExports.useContext(ModalContext);return ct?React$1.createElement(ActionButton$1,{isSilent:st,actionFn:gt,close:function(){ft==null||ft.apply(void 0,arguments),xt==null||xt(!1)},autoFocus:_e==="cancel",buttonProps:et,prefixCls:`${ut}-btn`},rt):null},CancelBtn=ConfirmCancelBtn,ConfirmOkBtn=()=>{const{autoFocusButton:_e,close:et,isSilent:rt,okButtonProps:st,rootPrefixCls:ct,okTextLocale:ut,okType:ft,onConfirm:gt,onOk:xt}=reactExports.useContext(ModalContext);return React$1.createElement(ActionButton$1,{isSilent:rt,type:ft||"primary",actionFn:xt,close:function(){et==null||et.apply(void 0,arguments),gt==null||gt(!0)},autoFocus:_e==="ok",buttonProps:st,prefixCls:`${ct}-btn`},ut)},OkBtn=ConfirmOkBtn;var OrderContext=reactExports.createContext(null),EMPTY_LIST$3=[];function useDom(_e,et){var rt=reactExports.useState(function(){if(!canUseDom$1())return null;var It=document.createElement("div");return It}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useRef(!1),ft=reactExports.useContext(OrderContext),gt=reactExports.useState(EMPTY_LIST$3),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1],wt=ft||(ut.current?void 0:function(It){_t(function(At){var jt=[It].concat(_toConsumableArray$3(At));return jt})});function Tt(){ct.parentElement||document.body.appendChild(ct),ut.current=!0}function Rt(){var It;(It=ct.parentElement)===null||It===void 0||It.removeChild(ct),ut.current=!1}return useLayoutEffect$3(function(){return _e?ft?ft(Tt):Tt():Rt(),Rt},[_e]),useLayoutEffect$3(function(){$t.length&&($t.forEach(function(It){return It()}),_t(EMPTY_LIST$3))},[$t]),[ct,wt]}var cached;function getScrollBarSize(_e){if(typeof document>"u")return 0;if(_e||cached===void 0){var et=document.createElement("div");et.style.width="100%",et.style.height="200px";var rt=document.createElement("div"),st=rt.style;st.position="absolute",st.top="0",st.left="0",st.pointerEvents="none",st.visibility="hidden",st.width="200px",st.height="150px",st.overflow="hidden",rt.appendChild(et),document.body.appendChild(rt);var ct=et.offsetWidth;rt.style.overflow="scroll";var ut=et.offsetWidth;ct===ut&&(ut=rt.clientWidth),document.body.removeChild(rt),cached=ct-ut}return cached}function ensureSize$1(_e){var et=_e.match(/^(.*)px$/),rt=Number(et==null?void 0:et[1]);return Number.isNaN(rt)?getScrollBarSize():rt}function getTargetScrollBarSize(_e){if(typeof document>"u"||!_e||!(_e instanceof Element))return{width:0,height:0};var et=getComputedStyle(_e,"::-webkit-scrollbar"),rt=et.width,st=et.height;return{width:ensureSize$1(rt),height:ensureSize$1(st)}}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UNIQUE_ID="rc-util-locker-".concat(Date.now()),uuid$7=0;function useScrollLocker(_e){var et=!!_e,rt=reactExports.useState(function(){return uuid$7+=1,"".concat(UNIQUE_ID,"_").concat(uuid$7)}),st=_slicedToArray$3(rt,1),ct=st[0];useLayoutEffect$3(function(){if(et){var ut=getTargetScrollBarSize(document.body).width,ft=isBodyOverflowing();updateCSS(` + `]:{animationPlayState:"running"},[`${et}-move-up-leave`]:{animationName:Ht,animationDuration:wt,animationPlayState:"paused",animationTimingFunction:_t},[`${et}-move-up-leave${et}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[et]:{[`${kt}-wrapper`]:Object.assign({},Wt)}},{[`${et}-notice-pure-panel`]:Object.assign(Object.assign({},Wt),{padding:0,textAlign:"start"})}]},prepareComponentToken$A=_e=>({zIndexPopup:_e.zIndexPopupBase+CONTAINER_MAX_OFFSET+10,contentBg:_e.colorBgElevated,contentPadding:`${(_e.controlHeightLG-_e.fontSize*_e.lineHeight)/2}px ${_e.paddingSM}px`}),useStyle$Y=genStyleHooks("Message",_e=>{const et=merge$7(_e,{height:150});return[genMessageStyle(et)]},prepareComponentToken$A);var __rest$16=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{prefixCls:et,type:rt,icon:st,children:ct}=_e;return reactExports.createElement("div",{className:classNames(`${et}-custom-content`,`${et}-${rt}`)},st||TypeIcon[rt],reactExports.createElement("span",null,ct))},PurePanel$e=_e=>{const{prefixCls:et,className:rt,type:st,icon:ct,content:ut}=_e,ft=__rest$16(_e,["prefixCls","className","type","icon","content"]),{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=et||gt("message"),$t=useCSSVarCls(xt),[_t,wt,Tt]=useStyle$Y(xt,$t);return _t(reactExports.createElement(Notify,Object.assign({},ft,{prefixCls:xt,className:classNames(rt,wt,`${xt}-notice-pure-panel`,Tt,$t),eventKey:"pure",duration:null,content:reactExports.createElement(PureContent$1,{prefixCls:xt,type:st,icon:ct},ut)})))},PurePanel$f=PurePanel$e;function getMotion$3(_e,et){return{motionName:et??`${_e}-move-up`}}function wrapPromiseFn(_e){let et;const rt=new Promise(ct=>{et=_e(()=>{ct(!0)})}),st=()=>{et==null||et()};return st.then=(ct,ut)=>rt.then(ct,ut),st.promise=rt,st}var __rest$15=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{children:et,prefixCls:rt}=_e;const st=useCSSVarCls(rt),[ct,ut,ft]=useStyle$Y(rt,st);return ct(reactExports.createElement(NotificationProvider,{classNames:{list:classNames(ut,ft,st)}},et))},renderNotifications$1=(_e,et)=>{let{prefixCls:rt,key:st}=et;return reactExports.createElement(Wrapper$1,{prefixCls:rt,key:st},_e)},Holder$1=reactExports.forwardRef((_e,et)=>{const{top:rt,prefixCls:st,getContainer:ct,maxCount:ut,duration:ft=DEFAULT_DURATION$1,rtl:gt,transitionName:xt,onAllRemoved:$t}=_e,{getPrefixCls:_t,getPopupContainer:wt,message:Tt,direction:Rt}=reactExports.useContext(ConfigContext$1),It=st||_t("message"),At=()=>({left:"50%",transform:"translateX(-50%)",top:rt??DEFAULT_OFFSET$1}),jt=()=>classNames({[`${It}-rtl`]:gt??Rt==="rtl"}),Nt=()=>getMotion$3(It,xt),kt=reactExports.createElement("span",{className:`${It}-close-x`},reactExports.createElement(CloseOutlined$1,{className:`${It}-close-icon`})),[Ft,Ht]=useNotification$1({prefixCls:It,style:At,className:jt,motion:Nt,closable:!1,closeIcon:kt,duration:ft,getContainer:()=>(ct==null?void 0:ct())||(wt==null?void 0:wt())||document.body,maxCount:ut,onAllRemoved:$t,renderNotifications:renderNotifications$1});return reactExports.useImperativeHandle(et,()=>Object.assign(Object.assign({},Ft),{prefixCls:It,message:Tt})),Ht});let keyIndex=0;function useInternalMessage(_e){const et=reactExports.useRef(null);return devUseWarning(),[reactExports.useMemo(()=>{const st=xt=>{var $t;($t=et.current)===null||$t===void 0||$t.close(xt)},ct=xt=>{if(!et.current){const Vt=()=>{};return Vt.then=()=>{},Vt}const{open:$t,prefixCls:_t,message:wt}=et.current,Tt=`${_t}-notice`,{content:Rt,icon:It,type:At,key:jt,className:Nt,style:kt,onClose:Ft}=xt,Ht=__rest$15(xt,["content","icon","type","key","className","style","onClose"]);let Wt=jt;return Wt==null&&(keyIndex+=1,Wt=`antd-message-${keyIndex}`),wrapPromiseFn(Vt=>($t(Object.assign(Object.assign({},Ht),{key:Wt,content:reactExports.createElement(PureContent$1,{prefixCls:_t,type:At,icon:It},Rt),placement:"top",className:classNames(At&&`${Tt}-${At}`,Nt,wt==null?void 0:wt.className),style:Object.assign(Object.assign({},wt==null?void 0:wt.style),kt),onClose:()=>{Ft==null||Ft(),Vt()}})),()=>{st(Wt)}))},ft={open:ct,destroy:xt=>{var $t;xt!==void 0?st(xt):($t=et.current)===null||$t===void 0||$t.destroy()}};return["info","success","warning","error","loading"].forEach(xt=>{const $t=(_t,wt,Tt)=>{let Rt;_t&&typeof _t=="object"&&"content"in _t?Rt=_t:Rt={content:_t};let It,At;typeof wt=="function"?At=wt:(It=wt,At=Tt);const jt=Object.assign(Object.assign({onClose:At,duration:It},Rt),{type:xt});return ct(jt)};ft[xt]=$t}),ft},[]),reactExports.createElement(Holder$1,Object.assign({key:"message-holder"},_e,{ref:et}))]}function useMessage(_e){return useInternalMessage(_e)}function usePatchElement(){const[_e,et]=reactExports.useState([]),rt=reactExports.useCallback(st=>(et(ct=>[].concat(_toConsumableArray$3(ct),[st])),()=>{et(ct=>ct.filter(ut=>ut!==st))}),[]);return[_e,rt]}function _regeneratorRuntime(){_regeneratorRuntime=function(){return et};var _e,et={},rt=Object.prototype,st=rt.hasOwnProperty,ct=Object.defineProperty||function(hr,pr,dr){hr[pr]=dr.value},ut=typeof Symbol=="function"?Symbol:{},ft=ut.iterator||"@@iterator",gt=ut.asyncIterator||"@@asyncIterator",xt=ut.toStringTag||"@@toStringTag";function $t(hr,pr,dr){return Object.defineProperty(hr,pr,{value:dr,enumerable:!0,configurable:!0,writable:!0}),hr[pr]}try{$t({},"")}catch{$t=function(dr,yr,Sr){return dr[yr]=Sr}}function _t(hr,pr,dr,yr){var Sr=pr&&pr.prototype instanceof Nt?pr:Nt,br=Object.create(Sr.prototype),mr=new ur(yr||[]);return ct(br,"_invoke",{value:Zt(hr,dr,mr)}),br}function wt(hr,pr,dr){try{return{type:"normal",arg:hr.call(pr,dr)}}catch(yr){return{type:"throw",arg:yr}}}et.wrap=_t;var Tt="suspendedStart",Rt="suspendedYield",It="executing",At="completed",jt={};function Nt(){}function kt(){}function Ft(){}var Ht={};$t(Ht,ft,function(){return this});var Wt=Object.getPrototypeOf,Vt=Wt&&Wt(Wt(fr([])));Vt&&Vt!==rt&&st.call(Vt,ft)&&(Ht=Vt);var qt=Ft.prototype=Nt.prototype=Object.create(Ht);function Xt(hr){["next","throw","return"].forEach(function(pr){$t(hr,pr,function(dr){return this._invoke(pr,dr)})})}function Gt(hr,pr){function dr(Sr,br,mr,Er){var Tr=wt(hr[Sr],hr,br);if(Tr.type!=="throw"){var Mr=Tr.arg,Or=Mr.value;return Or&&_typeof$e(Or)=="object"&&st.call(Or,"__await")?pr.resolve(Or.__await).then(function(wr){dr("next",wr,mr,Er)},function(wr){dr("throw",wr,mr,Er)}):pr.resolve(Or).then(function(wr){Mr.value=wr,mr(Mr)},function(wr){return dr("throw",wr,mr,Er)})}Er(Tr.arg)}var yr;ct(this,"_invoke",{value:function(br,mr){function Er(){return new pr(function(Tr,Mr){dr(br,mr,Tr,Mr)})}return yr=yr?yr.then(Er,Er):Er()}})}function Zt(hr,pr,dr){var yr=Tt;return function(Sr,br){if(yr===It)throw new Error("Generator is already running");if(yr===At){if(Sr==="throw")throw br;return{value:_e,done:!0}}for(dr.method=Sr,dr.arg=br;;){var mr=dr.delegate;if(mr){var Er=er(mr,dr);if(Er){if(Er===jt)continue;return Er}}if(dr.method==="next")dr.sent=dr._sent=dr.arg;else if(dr.method==="throw"){if(yr===Tt)throw yr=At,dr.arg;dr.dispatchException(dr.arg)}else dr.method==="return"&&dr.abrupt("return",dr.arg);yr=It;var Tr=wt(hr,pr,dr);if(Tr.type==="normal"){if(yr=dr.done?At:Rt,Tr.arg===jt)continue;return{value:Tr.arg,done:dr.done}}Tr.type==="throw"&&(yr=At,dr.method="throw",dr.arg=Tr.arg)}}}function er(hr,pr){var dr=pr.method,yr=hr.iterator[dr];if(yr===_e)return pr.delegate=null,dr==="throw"&&hr.iterator.return&&(pr.method="return",pr.arg=_e,er(hr,pr),pr.method==="throw")||dr!=="return"&&(pr.method="throw",pr.arg=new TypeError("The iterator does not provide a '"+dr+"' method")),jt;var Sr=wt(yr,hr.iterator,pr.arg);if(Sr.type==="throw")return pr.method="throw",pr.arg=Sr.arg,pr.delegate=null,jt;var br=Sr.arg;return br?br.done?(pr[hr.resultName]=br.value,pr.next=hr.nextLoc,pr.method!=="return"&&(pr.method="next",pr.arg=_e),pr.delegate=null,jt):br:(pr.method="throw",pr.arg=new TypeError("iterator result is not an object"),pr.delegate=null,jt)}function lr(hr){var pr={tryLoc:hr[0]};1 in hr&&(pr.catchLoc=hr[1]),2 in hr&&(pr.finallyLoc=hr[2],pr.afterLoc=hr[3]),this.tryEntries.push(pr)}function cr(hr){var pr=hr.completion||{};pr.type="normal",delete pr.arg,hr.completion=pr}function ur(hr){this.tryEntries=[{tryLoc:"root"}],hr.forEach(lr,this),this.reset(!0)}function fr(hr){if(hr||hr===""){var pr=hr[ft];if(pr)return pr.call(hr);if(typeof hr.next=="function")return hr;if(!isNaN(hr.length)){var dr=-1,yr=function Sr(){for(;++dr=0;--Sr){var br=this.tryEntries[Sr],mr=br.completion;if(br.tryLoc==="root")return yr("end");if(br.tryLoc<=this.prev){var Er=st.call(br,"catchLoc"),Tr=st.call(br,"finallyLoc");if(Er&&Tr){if(this.prev=0;--yr){var Sr=this.tryEntries[yr];if(Sr.tryLoc<=this.prev&&st.call(Sr,"finallyLoc")&&this.prev=0;--dr){var yr=this.tryEntries[dr];if(yr.finallyLoc===pr)return this.complete(yr.completion,yr.afterLoc),cr(yr),jt}},catch:function(pr){for(var dr=this.tryEntries.length-1;dr>=0;--dr){var yr=this.tryEntries[dr];if(yr.tryLoc===pr){var Sr=yr.completion;if(Sr.type==="throw"){var br=Sr.arg;cr(yr)}return br}}throw new Error("illegal catch attempt")},delegateYield:function(pr,dr,yr){return this.delegate={iterator:fr(pr),resultName:dr,nextLoc:yr},this.method==="next"&&(this.arg=_e),jt}},et}function asyncGeneratorStep(_e,et,rt,st,ct,ut,ft){try{var gt=_e[ut](ft),xt=gt.value}catch($t){rt($t);return}gt.done?et(xt):Promise.resolve(xt).then(st,ct)}function _asyncToGenerator(_e){return function(){var et=this,rt=arguments;return new Promise(function(st,ct){var ut=_e.apply(et,rt);function ft(xt){asyncGeneratorStep(ut,st,ct,ft,gt,"next",xt)}function gt(xt){asyncGeneratorStep(ut,st,ct,ft,gt,"throw",xt)}ft(void 0)})}}var fullClone=_objectSpread2({},ReactDOM$1),version$3=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode,createRoot;try{var mainVersion=Number((version$3||"").split(".")[0]);mainVersion>=18&&(createRoot=fullClone.createRoot)}catch{}function toggleWarning(_e){var et=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;et&&_typeof$e(et)==="object"&&(et.usingClientEntryPoint=_e)}var MARK="__rc_react_root__";function modernRender(_e,et){toggleWarning(!0);var rt=et[MARK]||createRoot(et);toggleWarning(!1),rt.render(_e),et[MARK]=rt}function legacyRender(_e,et){reactRender(_e,et)}function render$1(_e,et){if(createRoot){modernRender(_e,et);return}legacyRender(_e,et)}function modernUnmount(_e){return _modernUnmount.apply(this,arguments)}function _modernUnmount(){return _modernUnmount=_asyncToGenerator(_regeneratorRuntime().mark(function _e(et){return _regeneratorRuntime().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.abrupt("return",Promise.resolve().then(function(){var ct;(ct=et[MARK])===null||ct===void 0||ct.unmount(),delete et[MARK]}));case 1:case"end":return st.stop()}},_e)})),_modernUnmount.apply(this,arguments)}function legacyUnmount(_e){unmountComponentAtNode(_e)}function unmount(_e){return _unmount.apply(this,arguments)}function _unmount(){return _unmount=_asyncToGenerator(_regeneratorRuntime().mark(function _e(et){return _regeneratorRuntime().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(createRoot===void 0){st.next=2;break}return st.abrupt("return",modernUnmount(et));case 2:legacyUnmount(et);case 3:case"end":return st.stop()}},_e)})),_unmount.apply(this,arguments)}const getCollapsedHeight=()=>({height:0,opacity:0}),getRealHeight=_e=>{const{scrollHeight:et}=_e;return{height:et,opacity:1}},getCurrentHeight=_e=>({height:_e?_e.offsetHeight:0}),skipOpacityTransition=(_e,et)=>(et==null?void 0:et.deadline)===!0||et.propertyName==="height",initCollapseMotion=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:getCollapsedHeight,onEnterStart:getCollapsedHeight,onAppearActive:getRealHeight,onEnterActive:getRealHeight,onLeaveStart:getCurrentHeight,onLeaveActive:getCollapsedHeight,onAppearEnd:skipOpacityTransition,onEnterEnd:skipOpacityTransition,onLeaveEnd:skipOpacityTransition,motionDeadline:500}},getTransitionName=(_e,et,rt)=>rt!==void 0?rt:`${_e}-${et}`,initCollapseMotion$1=initCollapseMotion,isVisible$1=function(_e){if(!_e)return!1;if(_e instanceof Element){if(_e.offsetParent)return!0;if(_e.getBBox){var et=_e.getBBox(),rt=et.width,st=et.height;if(rt||st)return!0}if(_e.getBoundingClientRect){var ct=_e.getBoundingClientRect(),ut=ct.width,ft=ct.height;if(ut||ft)return!0}}return!1},genWaveStyle=_e=>{const{componentCls:et,colorPrimary:rt}=_e;return{[et]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${rt})`,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 0.3s ${_e.motionEaseInOut}`,`opacity 0.35s ${_e.motionEaseInOut}`].join(",")}}}}},useStyle$X=genComponentStyleHook$1("Wave",_e=>[genWaveStyle(_e)]);function isNotGrey(_e){const et=(_e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return et&&et[1]&&et[2]&&et[3]?!(et[1]===et[2]&&et[2]===et[3]):!0}function isValidWaveColor(_e){return _e&&_e!=="#fff"&&_e!=="#ffffff"&&_e!=="rgb(255, 255, 255)"&&_e!=="rgba(255, 255, 255, 1)"&&isNotGrey(_e)&&!/rgba\((?:\d*, ){3}0\)/.test(_e)&&_e!=="transparent"}function getTargetWaveColor(_e){const{borderTopColor:et,borderColor:rt,backgroundColor:st}=getComputedStyle(_e);return isValidWaveColor(et)?et:isValidWaveColor(rt)?rt:isValidWaveColor(st)?st:null}const TARGET_CLS="ant-wave-target";function validateNum(_e){return Number.isNaN(_e)?0:_e}const WaveEffect=_e=>{const{className:et,target:rt,component:st}=_e,ct=reactExports.useRef(null),[ut,ft]=reactExports.useState(null),[gt,xt]=reactExports.useState([]),[$t,_t]=reactExports.useState(0),[wt,Tt]=reactExports.useState(0),[Rt,It]=reactExports.useState(0),[At,jt]=reactExports.useState(0),[Nt,kt]=reactExports.useState(!1),Ft={left:$t,top:wt,width:Rt,height:At,borderRadius:gt.map(Vt=>`${Vt}px`).join(" ")};ut&&(Ft["--wave-color"]=ut);function Ht(){const Vt=getComputedStyle(rt);ft(getTargetWaveColor(rt));const qt=Vt.position==="static",{borderLeftWidth:Xt,borderTopWidth:Gt}=Vt;_t(qt?rt.offsetLeft:validateNum(-parseFloat(Xt))),Tt(qt?rt.offsetTop:validateNum(-parseFloat(Gt))),It(rt.offsetWidth),jt(rt.offsetHeight);const{borderTopLeftRadius:Zt,borderTopRightRadius:er,borderBottomLeftRadius:lr,borderBottomRightRadius:cr}=Vt;xt([Zt,er,cr,lr].map(ur=>validateNum(parseFloat(ur))))}if(reactExports.useEffect(()=>{if(rt){const Vt=wrapperRaf(()=>{Ht(),kt(!0)});let qt;return typeof ResizeObserver<"u"&&(qt=new ResizeObserver(Ht),qt.observe(rt)),()=>{wrapperRaf.cancel(Vt),qt==null||qt.disconnect()}}},[]),!Nt)return null;const Wt=(st==="Checkbox"||st==="Radio")&&(rt==null?void 0:rt.classList.contains(TARGET_CLS));return reactExports.createElement(CSSMotion,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Vt,qt)=>{var Xt;if(qt.deadline||qt.propertyName==="opacity"){const Gt=(Xt=ct.current)===null||Xt===void 0?void 0:Xt.parentElement;unmount(Gt).then(()=>{Gt==null||Gt.remove()})}return!1}},Vt=>{let{className:qt}=Vt;return reactExports.createElement("div",{ref:ct,className:classNames(et,{"wave-quick":Wt},qt),style:Ft})})},showWaveEffect=(_e,et)=>{var rt;const{component:st}=et;if(st==="Checkbox"&&!(!((rt=_e.querySelector("input"))===null||rt===void 0)&&rt.checked))return;const ct=document.createElement("div");ct.style.position="absolute",ct.style.left="0px",ct.style.top="0px",_e==null||_e.insertBefore(ct,_e==null?void 0:_e.firstChild),render$1(reactExports.createElement(WaveEffect,Object.assign({},et,{target:_e})),ct)},showWaveEffect$1=showWaveEffect;function useWave(_e,et,rt){const{wave:st}=reactExports.useContext(ConfigContext$1),[,ct,ut]=useToken$4(),ft=useEvent($t=>{const _t=_e.current;if(st!=null&&st.disabled||!_t)return;const wt=_t.querySelector(`.${TARGET_CLS}`)||_t,{showEffect:Tt}=st||{};(Tt||showWaveEffect$1)(wt,{className:et,token:ct,component:rt,event:$t,hashId:ut})}),gt=reactExports.useRef();return $t=>{wrapperRaf.cancel(gt.current),gt.current=wrapperRaf(()=>{ft($t)})}}const Wave=_e=>{const{children:et,disabled:rt,component:st}=_e,{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=reactExports.useRef(null),ft=ct("wave"),[,gt]=useStyle$X(ft),xt=useWave(ut,classNames(ft,gt),st);if(React$1.useEffect(()=>{const _t=ut.current;if(!_t||_t.nodeType!==1||rt)return;const wt=Tt=>{!isVisible$1(Tt.target)||!_t.getAttribute||_t.getAttribute("disabled")||_t.disabled||_t.className.includes("disabled")||_t.className.includes("-leave")||xt(Tt)};return _t.addEventListener("click",wt,!0),()=>{_t.removeEventListener("click",wt,!0)}},[rt]),!React$1.isValidElement(et))return et??null;const $t=supportRef(et)?composeRef(et.ref,ut):ut;return cloneElement(et,{ref:$t})},Wave$1=Wave,useSize=_e=>{const et=React$1.useContext(SizeContext$2);return React$1.useMemo(()=>_e?typeof _e=="string"?_e??et:_e instanceof Function?_e(et):et:et,[_e,et])},genSpaceCompactStyle=_e=>{const{componentCls:et}=_e;return{[et]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},genSpaceStyle=_e=>{const{componentCls:et}=_e;return{[et]:{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"}},[`${et}-item:empty`]:{display:"none"}}}},genSpaceGapStyle=_e=>{const{componentCls:et}=_e;return{[et]:{"&-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}}}},useStyle$W=genStyleHooks("Space",_e=>{const et=merge$7(_e,{spaceGapSmallSize:_e.paddingXS,spaceGapMiddleSize:_e.padding,spaceGapLargeSize:_e.paddingLG});return[genSpaceStyle(et),genSpaceGapStyle(et),genSpaceCompactStyle(et)]},()=>({}),{resetStyle:!1});var __rest$14=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const rt=reactExports.useContext(SpaceCompactItemContext),st=reactExports.useMemo(()=>{if(!rt)return"";const{compactDirection:ct,isFirstItem:ut,isLastItem:ft}=rt,gt=ct==="vertical"?"-vertical-":"-";return classNames(`${_e}-compact${gt}item`,{[`${_e}-compact${gt}first-item`]:ut,[`${_e}-compact${gt}last-item`]:ft,[`${_e}-compact${gt}item-rtl`]:et==="rtl"})},[_e,et,rt]);return{compactSize:rt==null?void 0:rt.compactSize,compactDirection:rt==null?void 0:rt.compactDirection,compactItemClassnames:st}},NoCompactStyle=_e=>{let{children:et}=_e;return reactExports.createElement(SpaceCompactItemContext.Provider,{value:null},et)},CompactItem=_e=>{var{children:et}=_e,rt=__rest$14(_e,["children"]);return reactExports.createElement(SpaceCompactItemContext.Provider,{value:rt},et)},Compact=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{size:st,direction:ct,block:ut,prefixCls:ft,className:gt,rootClassName:xt,children:$t}=_e,_t=__rest$14(_e,["size","direction","block","prefixCls","className","rootClassName","children"]),wt=useSize(Ft=>st??Ft),Tt=et("space-compact",ft),[Rt,It]=useStyle$W(Tt),At=classNames(Tt,It,{[`${Tt}-rtl`]:rt==="rtl",[`${Tt}-block`]:ut,[`${Tt}-vertical`]:ct==="vertical"},gt,xt),jt=reactExports.useContext(SpaceCompactItemContext),Nt=toArray$e($t),kt=reactExports.useMemo(()=>Nt.map((Ft,Ht)=>{const Wt=Ft&&Ft.key||`${Tt}-item-${Ht}`;return reactExports.createElement(CompactItem,{key:Wt,compactSize:wt,compactDirection:ct,isFirstItem:Ht===0&&(!jt||(jt==null?void 0:jt.isFirstItem)),isLastItem:Ht===Nt.length-1&&(!jt||(jt==null?void 0:jt.isLastItem))},Ft)}),[st,Nt,jt]);return Nt.length===0?null:Rt(reactExports.createElement("div",Object.assign({className:At},_t),kt))};var __rest$13=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,size:ct,className:ut}=_e,ft=__rest$13(_e,["prefixCls","size","className"]),gt=et("btn-group",st),[,,xt]=useToken$4();let $t="";switch(ct){case"large":$t="lg";break;case"small":$t="sm";break}const _t=classNames(gt,{[`${gt}-${$t}`]:$t,[`${gt}-rtl`]:rt==="rtl"},ut,xt);return reactExports.createElement(GroupSizeContext.Provider,{value:ct},reactExports.createElement("div",Object.assign({},ft,{className:_t})))},Group$9=ButtonGroup,rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function convertLegacyProps(_e){return _e==="danger"?{danger:!0}:{type:_e}}function isString$3(_e){return typeof _e=="string"}function isUnBorderedButtonType(_e){return _e==="text"||_e==="link"}function splitCNCharsBySpace(_e,et){if(_e==null)return;const rt=et?" ":"";return typeof _e!="string"&&typeof _e!="number"&&isString$3(_e.type)&&isTwoCNChar(_e.props.children)?cloneElement(_e,{children:_e.props.children.split("").join(rt)}):isString$3(_e)?isTwoCNChar(_e)?React$1.createElement("span",null,_e.split("").join(rt)):React$1.createElement("span",null,_e):isFragment(_e)?React$1.createElement("span",null,_e):_e}function spaceChildren(_e,et){let rt=!1;const st=[];return React$1.Children.forEach(_e,ct=>{const ut=typeof ct,ft=ut==="string"||ut==="number";if(rt&&ft){const gt=st.length-1,xt=st[gt];st[gt]=`${xt}${ct}`}else st.push(ct);rt=ft}),React$1.Children.map(st,ct=>splitCNCharsBySpace(ct,et))}const IconWrapper=reactExports.forwardRef((_e,et)=>{const{className:rt,style:st,children:ct,prefixCls:ut}=_e,ft=classNames(`${ut}-icon`,rt);return React$1.createElement("span",{ref:et,className:ft,style:st},ct)}),IconWrapper$1=IconWrapper,InnerLoadingIcon=reactExports.forwardRef((_e,et)=>{let{prefixCls:rt,className:st,style:ct,iconClassName:ut}=_e;const ft=classNames(`${rt}-loading-icon`,st);return React$1.createElement(IconWrapper$1,{prefixCls:rt,className:ft,style:ct,ref:et},React$1.createElement(LoadingOutlined$3,{className:ut}))}),getCollapsedWidth=()=>({width:0,opacity:0,transform:"scale(0)"}),getRealWidth=_e=>({width:_e.scrollWidth,opacity:1,transform:"scale(1)"}),LoadingIcon=_e=>{const{prefixCls:et,loading:rt,existIcon:st,className:ct,style:ut}=_e,ft=!!rt;return st?React$1.createElement(InnerLoadingIcon,{prefixCls:et,className:ct,style:ut}):React$1.createElement(CSSMotion,{visible:ft,motionName:`${et}-loading-icon-motion`,motionLeave:ft,removeOnLeave:!0,onAppearStart:getCollapsedWidth,onAppearActive:getRealWidth,onEnterStart:getCollapsedWidth,onEnterActive:getRealWidth,onLeaveStart:getRealWidth,onLeaveActive:getCollapsedWidth},(gt,xt)=>{let{className:$t,style:_t}=gt;return React$1.createElement(InnerLoadingIcon,{prefixCls:et,className:ct,style:Object.assign(Object.assign({},ut),_t),ref:xt,iconClassName:$t})})},LoadingIcon$1=LoadingIcon,genButtonBorderStyle=(_e,et)=>({[`> span, > ${_e}`]:{"&:not(:last-child)":{[`&, & > ${_e}`]:{"&:not(:disabled)":{borderInlineEndColor:et}}},"&:not(:first-child)":{[`&, & > ${_e}`]:{"&:not(:disabled)":{borderInlineStartColor:et}}}}}),genGroupStyle$2=_e=>{const{componentCls:et,fontSize:rt,lineWidth:st,groupBorderColor:ct,colorErrorHover:ut}=_e;return{[`${et}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${et}`]:{"&:not(:last-child)":{[`&, & > ${et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:_e.calc(st).mul(-1).equal(),[`&, & > ${et}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[et]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${et}-icon-only`]:{fontSize:rt}},genButtonBorderStyle(`${et}-primary`,ct),genButtonBorderStyle(`${et}-danger`,ut)]}},prepareToken$4=_e=>{const{paddingInline:et,onlyIconSize:rt,paddingBlock:st}=_e;return merge$7(_e,{buttonPaddingHorizontal:et,buttonPaddingVertical:st,buttonIconOnlyFontSize:rt})},prepareComponentToken$z=_e=>{var et,rt,st,ct,ut,ft;const gt=(et=_e.contentFontSize)!==null&&et!==void 0?et:_e.fontSize,xt=(rt=_e.contentFontSizeSM)!==null&&rt!==void 0?rt:_e.fontSize,$t=(st=_e.contentFontSizeLG)!==null&&st!==void 0?st:_e.fontSizeLG,_t=(ct=_e.contentLineHeight)!==null&&ct!==void 0?ct:getLineHeight(gt),wt=(ut=_e.contentLineHeightSM)!==null&&ut!==void 0?ut:getLineHeight(xt),Tt=(ft=_e.contentLineHeightLG)!==null&&ft!==void 0?ft:getLineHeight($t);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:_e.fontSizeLG,onlyIconSizeSM:_e.fontSizeLG-2,onlyIconSizeLG:_e.fontSizeLG+2,groupBorderColor:_e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:_e.colorBgTextHover,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,contentFontSize:gt,contentFontSizeSM:xt,contentFontSizeLG:$t,contentLineHeight:_t,contentLineHeightSM:wt,contentLineHeightLG:Tt,paddingBlock:Math.max((_e.controlHeight-gt*_t)/2-_e.lineWidth,0),paddingBlockSM:Math.max((_e.controlHeightSM-xt*wt)/2-_e.lineWidth,0),paddingBlockLG:Math.max((_e.controlHeightLG-$t*Tt)/2-_e.lineWidth,0)}},genSharedButtonStyle=_e=>{const{componentCls:et,iconCls:rt,fontWeight:st}=_e;return{[et]:{outline:"none",position:"relative",display:"inline-block",fontWeight:st,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,cursor:"pointer",transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:_e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${et}-icon`]:{lineHeight:0},[`> ${rt} + span, > span + ${rt}`]:{marginInlineStart:_e.marginXS},[`&:not(${et}-icon-only) > ${et}-icon`]:{[`&${et}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:_e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},genFocusStyle(_e)),[`&${et}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${et}-two-chinese-chars > *:not(${rt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${et}-compact-item`]:{flex:"none"}}}},genHoverActiveButtonStyle=(_e,et,rt)=>({[`&:not(:disabled):not(${_e}-disabled)`]:{"&:hover":et,"&:active":rt}}),genCircleButtonStyle=_e=>({minWidth:_e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),genRoundButtonStyle=_e=>({borderRadius:_e.controlHeight,paddingInlineStart:_e.calc(_e.controlHeight).div(2).equal(),paddingInlineEnd:_e.calc(_e.controlHeight).div(2).equal()}),genDisabledStyle$1=_e=>({cursor:"not-allowed",borderColor:_e.borderColorDisabled,color:_e.colorTextDisabled,background:_e.colorBgContainerDisabled,boxShadow:"none"}),genGhostButtonStyle=(_e,et,rt,st,ct,ut,ft,gt)=>({[`&${_e}-background-ghost`]:Object.assign(Object.assign({color:rt||void 0,background:et,borderColor:st||void 0,boxShadow:"none"},genHoverActiveButtonStyle(_e,Object.assign({background:et},ft),Object.assign({background:et},gt))),{"&:disabled":{cursor:"not-allowed",color:ct||void 0,borderColor:ut||void 0}})}),genSolidDisabledButtonStyle=_e=>({[`&:disabled, &${_e.componentCls}-disabled`]:Object.assign({},genDisabledStyle$1(_e))}),genSolidButtonStyle=_e=>Object.assign({},genSolidDisabledButtonStyle(_e)),genPureDisabledButtonStyle=_e=>({[`&:disabled, &${_e.componentCls}-disabled`]:{cursor:"not-allowed",color:_e.colorTextDisabled}}),genDefaultButtonStyle=_e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(_e)),{background:_e.defaultBg,borderColor:_e.defaultBorderColor,color:_e.defaultColor,boxShadow:_e.defaultShadow}),genHoverActiveButtonStyle(_e.componentCls,{color:_e.defaultHoverColor,borderColor:_e.defaultHoverBorderColor,background:_e.defaultHoverBg},{color:_e.defaultActiveColor,borderColor:_e.defaultActiveBorderColor,background:_e.defaultActiveBg})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.defaultGhostColor,_e.defaultGhostBorderColor,_e.colorTextDisabled,_e.colorBorder)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:_e.colorError,borderColor:_e.colorError},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover,borderColor:_e.colorErrorBorderHover},{color:_e.colorErrorActive,borderColor:_e.colorErrorActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorError,_e.colorError,_e.colorTextDisabled,_e.colorBorder)),genSolidDisabledButtonStyle(_e))}),genPrimaryButtonStyle=_e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genSolidButtonStyle(_e)),{color:_e.primaryColor,background:_e.colorPrimary,boxShadow:_e.primaryShadow}),genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorTextLightSolid,background:_e.colorPrimaryHover},{color:_e.colorTextLightSolid,background:_e.colorPrimaryActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorPrimary,_e.colorPrimary,_e.colorTextDisabled,_e.colorBorder,{color:_e.colorPrimaryHover,borderColor:_e.colorPrimaryHover},{color:_e.colorPrimaryActive,borderColor:_e.colorPrimaryActive})),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:_e.colorError,boxShadow:_e.dangerShadow,color:_e.dangerColor},genHoverActiveButtonStyle(_e.componentCls,{background:_e.colorErrorHover},{background:_e.colorErrorActive})),genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorError,_e.colorError,_e.colorTextDisabled,_e.colorBorder,{color:_e.colorErrorHover,borderColor:_e.colorErrorHover},{color:_e.colorErrorActive,borderColor:_e.colorErrorActive})),genSolidDisabledButtonStyle(_e))}),genDashedButtonStyle=_e=>Object.assign(Object.assign({},genDefaultButtonStyle(_e)),{borderStyle:"dashed"}),genLinkButtonStyle=_e=>Object.assign(Object.assign(Object.assign({color:_e.colorLink},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorLinkHover,background:_e.linkHoverBg},{color:_e.colorLinkActive})),genPureDisabledButtonStyle(_e)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign({color:_e.colorError},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover},{color:_e.colorErrorActive})),genPureDisabledButtonStyle(_e))}),genTextButtonStyle=_e=>Object.assign(Object.assign(Object.assign({},genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorText,background:_e.textHoverBg},{color:_e.colorText,background:_e.colorBgTextActive})),genPureDisabledButtonStyle(_e)),{[`&${_e.componentCls}-dangerous`]:Object.assign(Object.assign({color:_e.colorError},genPureDisabledButtonStyle(_e)),genHoverActiveButtonStyle(_e.componentCls,{color:_e.colorErrorHover,background:_e.colorErrorBg},{color:_e.colorErrorHover,background:_e.colorErrorBg}))}),genTypeButtonStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-default`]:genDefaultButtonStyle(_e),[`${et}-primary`]:genPrimaryButtonStyle(_e),[`${et}-dashed`]:genDashedButtonStyle(_e),[`${et}-link`]:genLinkButtonStyle(_e),[`${et}-text`]:genTextButtonStyle(_e),[`${et}-ghost`]:genGhostButtonStyle(_e.componentCls,_e.ghostBg,_e.colorBgContainer,_e.colorBgContainer,_e.colorTextDisabled,_e.colorBorder)}},genButtonStyle=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:rt,controlHeight:st,fontSize:ct,lineHeight:ut,borderRadius:ft,buttonPaddingHorizontal:gt,iconCls:xt,buttonPaddingVertical:$t}=_e,_t=`${rt}-icon-only`;return[{[`${et}`]:{fontSize:ct,lineHeight:ut,height:st,padding:`${unit$1($t)} ${unit$1(gt)}`,borderRadius:ft,[`&${_t}`]:{width:st,paddingInlineStart:0,paddingInlineEnd:0,[`&${rt}-round`]:{width:"auto"},[xt]:{fontSize:_e.buttonIconOnlyFontSize}},[`&${rt}-loading`]:{opacity:_e.opacityLoading,cursor:"default"},[`${rt}-loading-icon`]:{transition:`width ${_e.motionDurationSlow} ${_e.motionEaseInOut}, opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}`}}},{[`${rt}${rt}-circle${et}`]:genCircleButtonStyle(_e)},{[`${rt}${rt}-round${et}`]:genRoundButtonStyle(_e)}]},genSizeBaseButtonStyle=_e=>{const et=merge$7(_e,{fontSize:_e.contentFontSize,lineHeight:_e.contentLineHeight});return genButtonStyle(et,_e.componentCls)},genSizeSmallButtonStyle=_e=>{const et=merge$7(_e,{controlHeight:_e.controlHeightSM,fontSize:_e.contentFontSizeSM,lineHeight:_e.contentLineHeightSM,padding:_e.paddingXS,buttonPaddingHorizontal:_e.paddingInlineSM,buttonPaddingVertical:_e.paddingBlockSM,borderRadius:_e.borderRadiusSM,buttonIconOnlyFontSize:_e.onlyIconSizeSM});return genButtonStyle(et,`${_e.componentCls}-sm`)},genSizeLargeButtonStyle=_e=>{const et=merge$7(_e,{controlHeight:_e.controlHeightLG,fontSize:_e.contentFontSizeLG,lineHeight:_e.contentLineHeightLG,buttonPaddingHorizontal:_e.paddingInlineLG,buttonPaddingVertical:_e.paddingBlockLG,borderRadius:_e.borderRadiusLG,buttonIconOnlyFontSize:_e.onlyIconSizeLG});return genButtonStyle(et,`${_e.componentCls}-lg`)},genBlockButtonStyle=_e=>{const{componentCls:et}=_e;return{[et]:{[`&${et}-block`]:{width:"100%"}}}},useStyle$V=genStyleHooks("Button",_e=>{const et=prepareToken$4(_e);return[genSharedButtonStyle(et),genSizeBaseButtonStyle(et),genSizeSmallButtonStyle(et),genSizeLargeButtonStyle(et),genBlockButtonStyle(et),genTypeButtonStyle(et),genGroupStyle$2(et)]},prepareComponentToken$z,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function compactItemBorder(_e,et,rt){const{focusElCls:st,focus:ct,borderElCls:ut}=rt,ft=ut?"> *":"",gt=["hover",ct?"focus":null,"active"].filter(Boolean).map(xt=>`&:${xt} ${ft}`).join(",");return{[`&-item:not(${et}-last-item)`]:{marginInlineEnd:_e.calc(_e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[gt]:{zIndex:2}},st?{[`&${st}`]:{zIndex:2}}:{}),{[`&[disabled] ${ft}`]:{zIndex:0}})}}function compactItemBorderRadius(_e,et,rt){const{borderElCls:st}=rt,ct=st?`> ${st}`:"";return{[`&-item:not(${et}-first-item):not(${et}-last-item) ${ct}`]:{borderRadius:0},[`&-item:not(${et}-last-item)${et}-first-item`]:{[`& ${ct}, &${_e}-sm ${ct}, &${_e}-lg ${ct}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${et}-first-item)${et}-last-item`]:{[`& ${ct}, &${_e}-sm ${ct}, &${_e}-lg ${ct}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function genCompactItemStyle(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:rt}=_e,st=`${rt}-compact`;return{[st]:Object.assign(Object.assign({},compactItemBorder(_e,st,et)),compactItemBorderRadius(rt,st,et))}}function compactItemVerticalBorder(_e,et){return{[`&-item:not(${et}-last-item)`]:{marginBottom:_e.calc(_e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function compactItemBorderVerticalRadius(_e,et){return{[`&-item:not(${et}-first-item):not(${et}-last-item)`]:{borderRadius:0},[`&-item${et}-first-item:not(${et}-last-item)`]:{[`&, &${_e}-sm, &${_e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${et}-last-item:not(${et}-first-item)`]:{[`&, &${_e}-sm, &${_e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function genCompactItemVerticalStyle(_e){const et=`${_e.componentCls}-compact-vertical`;return{[et]:Object.assign(Object.assign({},compactItemVerticalBorder(_e,et)),compactItemBorderVerticalRadius(_e.componentCls,et))}}const genButtonCompactStyle=_e=>{const{componentCls:et,calc:rt}=_e;return{[et]:{[`&-compact-item${et}-primary`]:{[`&:not([disabled]) + ${et}-compact-item${et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:rt(_e.lineWidth).mul(-1).equal(),insetInlineStart:rt(_e.lineWidth).mul(-1).equal(),display:"inline-block",width:_e.lineWidth,height:`calc(100% + ${unit$1(_e.lineWidth)} * 2)`,backgroundColor:_e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${et}-primary`]:{[`&:not([disabled]) + ${et}-compact-vertical-item${et}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:rt(_e.lineWidth).mul(-1).equal(),insetInlineStart:rt(_e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${unit$1(_e.lineWidth)} * 2)`,height:_e.lineWidth,backgroundColor:_e.colorPrimaryHover,content:'""'}}}}}}},CompactCmp=genSubStyleComponent(["Button","compact"],_e=>{const et=prepareToken$4(_e);return[genCompactItemStyle(et),genCompactItemVerticalStyle(et),genButtonCompactStyle(et)]},prepareComponentToken$z);var __rest$12=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{loading:ct=!1,prefixCls:ut,type:ft="default",danger:gt,shape:xt="default",size:$t,styles:_t,disabled:wt,className:Tt,rootClassName:Rt,children:It,icon:At,ghost:jt=!1,block:Nt=!1,htmlType:kt="button",classNames:Ft,style:Ht={}}=_e,Wt=__rest$12(_e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Vt,autoInsertSpaceInButton:qt,direction:Xt,button:Gt}=reactExports.useContext(ConfigContext$1),Zt=Vt("btn",ut),[er,lr,cr]=useStyle$V(Zt),ur=reactExports.useContext(DisabledContext$2),fr=wt??ur,hr=reactExports.useContext(GroupSizeContext),pr=reactExports.useMemo(()=>getLoadingConfig(ct),[ct]),[dr,yr]=reactExports.useState(pr.loading),[Sr,br]=reactExports.useState(!1),Er=composeRef(et,reactExports.createRef()),Tr=reactExports.Children.count(It)===1&&!At&&!isUnBorderedButtonType(ft);reactExports.useEffect(()=>{let Vr=null;pr.delay>0?Vr=setTimeout(()=>{Vr=null,yr(!0)},pr.delay):yr(pr.loading);function ln(){Vr&&(clearTimeout(Vr),Vr=null)}return ln},[pr]),reactExports.useEffect(()=>{if(!Er||!Er.current||qt===!1)return;const Vr=Er.current.textContent;Tr&&isTwoCNChar(Vr)?Sr||br(!0):Sr&&br(!1)},[Er]);const Mr=Vr=>{const{onClick:ln}=_e;if(dr||fr){Vr.preventDefault();return}ln==null||ln(Vr)},Or=qt!==!1,{compactSize:wr,compactItemClassnames:Cr}=useCompactItemContext(Zt,Xt),Nr={large:"lg",small:"sm",middle:void 0},Rr=useSize(Vr=>{var ln,Qr;return(Qr=(ln=$t??wr)!==null&&ln!==void 0?ln:hr)!==null&&Qr!==void 0?Qr:Vr}),Pr=Rr&&Nr[Rr]||"",jr=dr?"loading":At,kr=omit$2(Wt,["navigate"]),Fr=classNames(Zt,lr,cr,{[`${Zt}-${xt}`]:xt!=="default"&&xt,[`${Zt}-${ft}`]:ft,[`${Zt}-${Pr}`]:Pr,[`${Zt}-icon-only`]:!It&&It!==0&&!!jr,[`${Zt}-background-ghost`]:jt&&!isUnBorderedButtonType(ft),[`${Zt}-loading`]:dr,[`${Zt}-two-chinese-chars`]:Sr&&Or&&!dr,[`${Zt}-block`]:Nt,[`${Zt}-dangerous`]:!!gt,[`${Zt}-rtl`]:Xt==="rtl"},Cr,Tt,Rt,Gt==null?void 0:Gt.className),_r=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Ht),Br=classNames(Ft==null?void 0:Ft.icon,(rt=Gt==null?void 0:Gt.classNames)===null||rt===void 0?void 0:rt.icon),Dr=Object.assign(Object.assign({},(_t==null?void 0:_t.icon)||{}),((st=Gt==null?void 0:Gt.styles)===null||st===void 0?void 0:st.icon)||{}),Xr=At&&!dr?React$1.createElement(IconWrapper$1,{prefixCls:Zt,className:Br,style:Dr},At):React$1.createElement(LoadingIcon$1,{existIcon:!!At,prefixCls:Zt,loading:!!dr}),Kr=It||It===0?spaceChildren(It,Tr&&Or):null;if(kr.href!==void 0)return er(React$1.createElement("a",Object.assign({},kr,{className:classNames(Fr,{[`${Zt}-disabled`]:fr}),href:fr?void 0:kr.href,style:_r,onClick:Mr,ref:Er,tabIndex:fr?-1:0}),Xr,Kr));let Hr=React$1.createElement("button",Object.assign({},Wt,{type:kt,className:Fr,style:_r,onClick:Mr,disabled:fr,ref:Er}),Xr,Kr,!!Cr&&React$1.createElement(CompactCmp,{key:"compact",prefixCls:Zt}));return isUnBorderedButtonType(ft)||(Hr=React$1.createElement(Wave$1,{component:"Button",disabled:!!dr},Hr)),er(Hr)},Button$2=reactExports.forwardRef(InternalButton);Button$2.Group=Group$9;Button$2.__ANT_BUTTON=!0;const Button$3=Button$2;function isThenable$1(_e){return!!(_e&&_e.then)}const ActionButton=_e=>{const{type:et,children:rt,prefixCls:st,buttonProps:ct,close:ut,autoFocus:ft,emitEvent:gt,isSilent:xt,quitOnNullishReturnValue:$t,actionFn:_t}=_e,wt=reactExports.useRef(!1),Tt=reactExports.useRef(null),[Rt,It]=useSafeState(!1),At=function(){ut==null||ut.apply(void 0,arguments)};reactExports.useEffect(()=>{let kt=null;return ft&&(kt=setTimeout(()=>{var Ft;(Ft=Tt.current)===null||Ft===void 0||Ft.focus()})),()=>{kt&&clearTimeout(kt)}},[]);const jt=kt=>{isThenable$1(kt)&&(It(!0),kt.then(function(){It(!1,!0),At.apply(void 0,arguments),wt.current=!1},Ft=>{if(It(!1,!0),wt.current=!1,!(xt!=null&&xt()))return Promise.reject(Ft)}))},Nt=kt=>{if(wt.current)return;if(wt.current=!0,!_t){At();return}let Ft;if(gt){if(Ft=_t(kt),$t&&!isThenable$1(Ft)){wt.current=!1,At(kt);return}}else if(_t.length)Ft=_t(ut),wt.current=!1;else if(Ft=_t(),!Ft){At();return}jt(Ft)};return reactExports.createElement(Button$3,Object.assign({},convertLegacyProps(et),{onClick:Nt,loading:Rt,prefixCls:st},ct,{ref:Tt}),rt)},ActionButton$1=ActionButton,ModalContext=React$1.createContext({}),{Provider:ModalContextProvider}=ModalContext,ConfirmCancelBtn=()=>{const{autoFocusButton:_e,cancelButtonProps:et,cancelTextLocale:rt,isSilent:st,mergedOkCancel:ct,rootPrefixCls:ut,close:ft,onCancel:gt,onConfirm:xt}=reactExports.useContext(ModalContext);return ct?React$1.createElement(ActionButton$1,{isSilent:st,actionFn:gt,close:function(){ft==null||ft.apply(void 0,arguments),xt==null||xt(!1)},autoFocus:_e==="cancel",buttonProps:et,prefixCls:`${ut}-btn`},rt):null},CancelBtn=ConfirmCancelBtn,ConfirmOkBtn=()=>{const{autoFocusButton:_e,close:et,isSilent:rt,okButtonProps:st,rootPrefixCls:ct,okTextLocale:ut,okType:ft,onConfirm:gt,onOk:xt}=reactExports.useContext(ModalContext);return React$1.createElement(ActionButton$1,{isSilent:rt,type:ft||"primary",actionFn:xt,close:function(){et==null||et.apply(void 0,arguments),gt==null||gt(!0)},autoFocus:_e==="ok",buttonProps:st,prefixCls:`${ct}-btn`},ut)},OkBtn=ConfirmOkBtn;var OrderContext=reactExports.createContext(null),EMPTY_LIST$3=[];function useDom(_e,et){var rt=reactExports.useState(function(){if(!canUseDom$1())return null;var It=document.createElement("div");return It}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useRef(!1),ft=reactExports.useContext(OrderContext),gt=reactExports.useState(EMPTY_LIST$3),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1],wt=ft||(ut.current?void 0:function(It){_t(function(At){var jt=[It].concat(_toConsumableArray$3(At));return jt})});function Tt(){ct.parentElement||document.body.appendChild(ct),ut.current=!0}function Rt(){var It;(It=ct.parentElement)===null||It===void 0||It.removeChild(ct),ut.current=!1}return useLayoutEffect$3(function(){return _e?ft?ft(Tt):Tt():Rt(),Rt},[_e]),useLayoutEffect$3(function(){$t.length&&($t.forEach(function(It){return It()}),_t(EMPTY_LIST$3))},[$t]),[ct,wt]}var cached;function getScrollBarSize(_e){if(typeof document>"u")return 0;if(_e||cached===void 0){var et=document.createElement("div");et.style.width="100%",et.style.height="200px";var rt=document.createElement("div"),st=rt.style;st.position="absolute",st.top="0",st.left="0",st.pointerEvents="none",st.visibility="hidden",st.width="200px",st.height="150px",st.overflow="hidden",rt.appendChild(et),document.body.appendChild(rt);var ct=et.offsetWidth;rt.style.overflow="scroll";var ut=et.offsetWidth;ct===ut&&(ut=rt.clientWidth),document.body.removeChild(rt),cached=ct-ut}return cached}function ensureSize$1(_e){var et=_e.match(/^(.*)px$/),rt=Number(et==null?void 0:et[1]);return Number.isNaN(rt)?getScrollBarSize():rt}function getTargetScrollBarSize(_e){if(typeof document>"u"||!_e||!(_e instanceof Element))return{width:0,height:0};var et=getComputedStyle(_e,"::-webkit-scrollbar"),rt=et.width,st=et.height;return{width:ensureSize$1(rt),height:ensureSize$1(st)}}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UNIQUE_ID="rc-util-locker-".concat(Date.now()),uuid$7=0;function useScrollLocker(_e){var et=!!_e,rt=reactExports.useState(function(){return uuid$7+=1,"".concat(UNIQUE_ID,"_").concat(uuid$7)}),st=_slicedToArray$3(rt,1),ct=st[0];useLayoutEffect$3(function(){if(et){var ut=getTargetScrollBarSize(document.body).width,ft=isBodyOverflowing();updateCSS(` html body { overflow-y: hidden; `.concat(ft?"width: calc(100% - ".concat(ut,"px);"):"",` -}`),ct)}else removeCSS(ct);return function(){removeCSS(ct)}},[et,ct])}var inline=!1;function inlineMock(_e){return typeof _e=="boolean"&&(inline=_e),inline}var getPortalContainer=function(et){return et===!1?!1:!canUseDom$1()||!et?null:typeof et=="string"?document.querySelector(et):typeof et=="function"?et():et},Portal=reactExports.forwardRef(function(_e,et){var rt=_e.open,st=_e.autoLock,ct=_e.getContainer;_e.debug;var ut=_e.autoDestroy,ft=ut===void 0?!0:ut,gt=_e.children,xt=reactExports.useState(rt),$t=_slicedToArray$3(xt,2),_t=$t[0],wt=$t[1],Tt=_t||rt;reactExports.useEffect(function(){(ft||rt)&&wt(rt)},[rt,ft]);var Rt=reactExports.useState(function(){return getPortalContainer(ct)}),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1];reactExports.useEffect(function(){var lr=getPortalContainer(ct);jt(lr??null)});var Nt=useDom(Tt&&!At),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=At??Ft;useScrollLocker(st&&rt&&canUseDom$1()&&(Wt===Ft||Wt===document.body));var Vt=null;if(gt&&supportRef(gt)&&et){var qt=gt;Vt=qt.ref}var Gt=useComposeRef(Vt,et);if(!Tt||!canUseDom$1()||At===void 0)return null;var Xt=Wt===!1||inlineMock(),Zt=gt;return et&&(Zt=reactExports.cloneElement(gt,{ref:Gt})),reactExports.createElement(OrderContext.Provider,{value:Ht},Xt?Zt:reactDomExports.createPortal(Zt,Wt))}),RefContext$2=reactExports.createContext({});function getUseId(){var _e=_objectSpread2({},React$2);return _e.useId}var uuid$6=0,useOriginId=getUseId();const useId$4=useOriginId?function(et){var rt=useOriginId();return et||rt}:function(et){var rt=reactExports.useState("ssr-id"),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return reactExports.useEffect(function(){var ft=uuid$6;uuid$6+=1,ut("rc_unique_".concat(ft))},[]),et||ct};function getMotionName$1(_e,et,rt){var st=et;return!st&&rt&&(st="".concat(_e,"-").concat(rt)),st}function getScroll$2(_e,et){var rt=_e["page".concat(et?"Y":"X","Offset")],st="scroll".concat(et?"Top":"Left");if(typeof rt!="number"){var ct=_e.document;rt=ct.documentElement[st],typeof rt!="number"&&(rt=ct.body[st])}return rt}function offset$2(_e){var et=_e.getBoundingClientRect(),rt={left:et.left,top:et.top},st=_e.ownerDocument,ct=st.defaultView||st.parentWindow;return rt.left+=getScroll$2(ct),rt.top+=getScroll$2(ct,!0),rt}const MemoChildren$1=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){var rt=et.shouldUpdate;return!rt});var sentinelStyle$2={width:0,height:0,overflow:"hidden",outline:"none"},Panel$2=React$1.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.className,ct=_e.style,ut=_e.title,ft=_e.ariaId,gt=_e.footer,xt=_e.closable,$t=_e.closeIcon,_t=_e.onClose,wt=_e.children,Tt=_e.bodyStyle,Rt=_e.bodyProps,It=_e.modalRender,At=_e.onMouseDown,jt=_e.onMouseUp,Nt=_e.holderRef,kt=_e.visible,Ft=_e.forceRender,Ht=_e.width,Wt=_e.height,Vt=_e.classNames,qt=_e.styles,Gt=React$1.useContext(RefContext$2),Xt=Gt.panel,Zt=useComposeRef(Nt,Xt),lr=reactExports.useRef(),er=reactExports.useRef();React$1.useImperativeHandle(et,function(){return{focus:function(){var yr;(yr=lr.current)===null||yr===void 0||yr.focus()},changeActive:function(yr){var $r=document,Er=$r.activeElement;yr&&Er===er.current?lr.current.focus():!yr&&Er===lr.current&&er.current.focus()}}});var cr={};Ht!==void 0&&(cr.width=Ht),Wt!==void 0&&(cr.height=Wt);var ur;gt&&(ur=React$1.createElement("div",{className:classNames("".concat(rt,"-footer"),Vt==null?void 0:Vt.footer),style:_objectSpread2({},qt==null?void 0:qt.footer)},gt));var pr;ut&&(pr=React$1.createElement("div",{className:classNames("".concat(rt,"-header"),Vt==null?void 0:Vt.header),style:_objectSpread2({},qt==null?void 0:qt.header)},React$1.createElement("div",{className:"".concat(rt,"-title"),id:ft},ut)));var hr;xt&&(hr=React$1.createElement("button",{type:"button",onClick:_t,"aria-label":"Close",className:"".concat(rt,"-close")},$t||React$1.createElement("span",{className:"".concat(rt,"-close-x")})));var fr=React$1.createElement("div",{className:classNames("".concat(rt,"-content"),Vt==null?void 0:Vt.content),style:qt==null?void 0:qt.content},hr,pr,React$1.createElement("div",_extends$b({className:classNames("".concat(rt,"-body"),Vt==null?void 0:Vt.body),style:_objectSpread2(_objectSpread2({},Tt),qt==null?void 0:qt.body)},Rt),wt),ur);return React$1.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":ut?ft:null,"aria-modal":"true",ref:Zt,style:_objectSpread2(_objectSpread2({},ct),cr),className:classNames(rt,st),onMouseDown:At,onMouseUp:jt},React$1.createElement("div",{tabIndex:0,ref:lr,style:sentinelStyle$2,"aria-hidden":"true"}),React$1.createElement(MemoChildren$1,{shouldUpdate:kt||Ft},It?It(fr):fr),React$1.createElement("div",{tabIndex:0,ref:er,style:sentinelStyle$2,"aria-hidden":"true"}))}),Content$7=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.title,ct=_e.style,ut=_e.className,ft=_e.visible,gt=_e.forceRender,xt=_e.destroyOnClose,$t=_e.motionName,_t=_e.ariaId,wt=_e.onVisibleChanged,Tt=_e.mousePosition,Rt=reactExports.useRef(),It=reactExports.useState(),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt={};jt&&(kt.transformOrigin=jt);function Ft(){var Ht=offset$2(Rt.current);Nt(Tt?"".concat(Tt.x-Ht.left,"px ").concat(Tt.y-Ht.top,"px"):"")}return reactExports.createElement(CSSMotion,{visible:ft,onVisibleChanged:wt,onAppearPrepare:Ft,onEnterPrepare:Ft,forceRender:gt,motionName:$t,removeOnLeave:xt,ref:Rt},function(Ht,Wt){var Vt=Ht.className,qt=Ht.style;return reactExports.createElement(Panel$2,_extends$b({},_e,{ref:et,title:st,ariaId:_t,prefixCls:rt,holderRef:Wt,style:_objectSpread2(_objectSpread2(_objectSpread2({},qt),ct),kt),className:classNames(ut,Vt)}))})});Content$7.displayName="Content";function Mask$2(_e){var et=_e.prefixCls,rt=_e.style,st=_e.visible,ct=_e.maskProps,ut=_e.motionName,ft=_e.className;return reactExports.createElement(CSSMotion,{key:"mask",visible:st,motionName:ut,leavedClassName:"".concat(et,"-mask-hidden")},function(gt,xt){var $t=gt.className,_t=gt.style;return reactExports.createElement("div",_extends$b({ref:xt,style:_objectSpread2(_objectSpread2({},_t),rt),className:classNames("".concat(et,"-mask"),$t,ft)},ct))})}function Dialog$1(_e){var et=_e.prefixCls,rt=et===void 0?"rc-dialog":et,st=_e.zIndex,ct=_e.visible,ut=ct===void 0?!1:ct,ft=_e.keyboard,gt=ft===void 0?!0:ft,xt=_e.focusTriggerAfterClose,$t=xt===void 0?!0:xt,_t=_e.wrapStyle,wt=_e.wrapClassName,Tt=_e.wrapProps,Rt=_e.onClose,It=_e.afterOpenChange,At=_e.afterClose,jt=_e.transitionName,Nt=_e.animation,kt=_e.closable,Ft=kt===void 0?!0:kt,Ht=_e.mask,Wt=Ht===void 0?!0:Ht,Vt=_e.maskTransitionName,qt=_e.maskAnimation,Gt=_e.maskClosable,Xt=Gt===void 0?!0:Gt,Zt=_e.maskStyle,lr=_e.maskProps,er=_e.rootClassName,cr=_e.classNames,ur=_e.styles,pr=reactExports.useRef(),hr=reactExports.useRef(),fr=reactExports.useRef(),dr=reactExports.useState(ut),yr=_slicedToArray$3(dr,2),$r=yr[0],Er=yr[1],mr=useId$4();function Sr(){contains$1(hr.current,document.activeElement)||(pr.current=document.activeElement)}function Tr(){if(!contains$1(hr.current,document.activeElement)){var kr;(kr=fr.current)===null||kr===void 0||kr.focus()}}function jr(kr){if(kr)Tr();else{if(Er(!1),Wt&&pr.current&&$t){try{pr.current.focus({preventScroll:!0})}catch{}pr.current=null}$r&&(At==null||At())}It==null||It(kr)}function Or(kr){Rt==null||Rt(kr)}var _r=reactExports.useRef(!1),Cr=reactExports.useRef(),Nr=function(){clearTimeout(Cr.current),_r.current=!0},Rr=function(){Cr.current=setTimeout(function(){_r.current=!1})},Pr=null;Xt&&(Pr=function(Fr){_r.current?_r.current=!1:hr.current===Fr.target&&Or(Fr)});function Mr(kr){if(gt&&kr.keyCode===KeyCode.ESC){kr.stopPropagation(),Or(kr);return}ut&&kr.keyCode===KeyCode.TAB&&fr.current.changeActive(!kr.shiftKey)}return reactExports.useEffect(function(){ut&&(Er(!0),Sr())},[ut]),reactExports.useEffect(function(){return function(){clearTimeout(Cr.current)}},[]),reactExports.createElement("div",_extends$b({className:classNames("".concat(rt,"-root"),er)},pickAttrs(_e,{data:!0})),reactExports.createElement(Mask$2,{prefixCls:rt,visible:Wt&&ut,motionName:getMotionName$1(rt,Vt,qt),style:_objectSpread2(_objectSpread2({zIndex:st},Zt),ur==null?void 0:ur.mask),maskProps:lr,className:cr==null?void 0:cr.mask}),reactExports.createElement("div",_extends$b({tabIndex:-1,onKeyDown:Mr,className:classNames("".concat(rt,"-wrap"),wt,cr==null?void 0:cr.wrapper),ref:hr,onClick:Pr,style:_objectSpread2(_objectSpread2(_objectSpread2({zIndex:st},_t),ur==null?void 0:ur.wrapper),{},{display:$r?null:"none"})},Tt),reactExports.createElement(Content$7,_extends$b({},_e,{onMouseDown:Nr,onMouseUp:Rr,ref:fr,closable:Ft,ariaId:mr,prefixCls:rt,visible:ut&&$r,onClose:Or,onVisibleChanged:jr,motionName:getMotionName$1(rt,jt,Nt)}))))}var DialogWrap$1=function(et){var rt=et.visible,st=et.getContainer,ct=et.forceRender,ut=et.destroyOnClose,ft=ut===void 0?!1:ut,gt=et.afterClose,xt=et.panelRef,$t=reactExports.useState(rt),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1],Rt=reactExports.useMemo(function(){return{panel:xt}},[xt]);return reactExports.useEffect(function(){rt&&Tt(!0)},[rt]),!ct&&ft&&!wt?null:reactExports.createElement(RefContext$2.Provider,{value:Rt},reactExports.createElement(Portal,{open:rt||ct||wt,autoDestroy:!1,getContainer:st,autoLock:rt||wt},reactExports.createElement(Dialog$1,_extends$b({},et,{destroyOnClose:ft,afterClose:function(){gt==null||gt(),Tt(!1)}}))))};DialogWrap$1.displayName="Dialog";function useInnerClosable(_e,et,rt){return typeof _e=="boolean"?_e:et===void 0?!!rt:et!==!1&&et!==null}function useClosable(_e,et,rt){let st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:React$1.createElement(CloseOutlined$1,null),ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!useInnerClosable(_e,et,ct))return[!1,null];const ft=typeof et=="boolean"||et===void 0||et===null?st:et;return[!0,rt?rt(ft):ft]}const canUseDocElement=()=>canUseDom$1()&&window.document.documentElement;var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce$1(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context$8=reactExports.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}}),ListContext=reactExports.createContext(null);function toArray$c(_e){return _e==null?[]:Array.isArray(_e)?_e:[_e]}function isFormInstance(_e){return _e&&!!_e._init}var define_process_env_default={};function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _construct$1(_e,et,rt){return _isNativeReflectConstruct$7()?_construct$1=Reflect.construct.bind():_construct$1=function(ct,ut,ft){var gt=[null];gt.push.apply(gt,ut);var xt=Function.bind.apply(ct,gt),$t=new xt;return ft&&_setPrototypeOf$7($t,ft.prototype),$t},_construct$1.apply(null,arguments)}function _isNativeFunction$1(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(st){if(st===null||!_isNativeFunction$1(st))return st;if(typeof st!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(st))return et.get(st);et.set(st,ct)}function ct(){return _construct$1(st,arguments,_getPrototypeOf$7(this).constructor)}return ct.prototype=Object.create(st.prototype,{constructor:{value:ct,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$7(ct,st)},_wrapNativeSuper$1(_e)}var formatRegExp=/%[sdj%]/g,warning$8=function(){};typeof process<"u";function convertFieldsError(_e){if(!_e||!_e.length)return null;var et={};return _e.forEach(function(rt){var st=rt.field;et[st]=et[st]||[],et[st].push(rt)}),et}function format$1(_e){for(var et=arguments.length,rt=new Array(et>1?et-1:0),st=1;st=ut)return gt;switch(gt){case"%s":return String(rt[ct++]);case"%d":return Number(rt[ct++]);case"%j":try{return JSON.stringify(rt[ct++])}catch{return"[Circular]"}break;default:return gt}});return ft}return _e}function isNativeStringType(_e){return _e==="string"||_e==="url"||_e==="hex"||_e==="email"||_e==="date"||_e==="pattern"}function isEmptyValue(_e,et){return!!(_e==null||et==="array"&&Array.isArray(_e)&&!_e.length||isNativeStringType(et)&&typeof _e=="string"&&!_e)}function asyncParallelArray(_e,et,rt){var st=[],ct=0,ut=_e.length;function ft(gt){st.push.apply(st,gt||[]),ct++,ct===ut&&rt(st)}_e.forEach(function(gt){et(gt,ft)})}function asyncSerialArray(_e,et,rt){var st=0,ct=_e.length;function ut(ft){if(ft&&ft.length){rt(ft);return}var gt=st;st=st+1,gt3&&arguments[3]!==void 0?arguments[3]:React$1.createElement(CloseOutlined$1,null),ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!useInnerClosable(_e,et,ct))return[!1,null];const ft=typeof et=="boolean"||et===void 0||et===null?st:et;return[!0,rt?rt(ft):ft]}const canUseDocElement=()=>canUseDom$1()&&window.document.documentElement;var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce$1(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context$8=reactExports.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}}),ListContext$1=reactExports.createContext(null);function toArray$d(_e){return _e==null?[]:Array.isArray(_e)?_e:[_e]}function isFormInstance(_e){return _e&&!!_e._init}var define_process_env_default={};function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _construct$1(_e,et,rt){return _isNativeReflectConstruct$7()?_construct$1=Reflect.construct.bind():_construct$1=function(ct,ut,ft){var gt=[null];gt.push.apply(gt,ut);var xt=Function.bind.apply(ct,gt),$t=new xt;return ft&&_setPrototypeOf$7($t,ft.prototype),$t},_construct$1.apply(null,arguments)}function _isNativeFunction$1(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(st){if(st===null||!_isNativeFunction$1(st))return st;if(typeof st!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(st))return et.get(st);et.set(st,ct)}function ct(){return _construct$1(st,arguments,_getPrototypeOf$7(this).constructor)}return ct.prototype=Object.create(st.prototype,{constructor:{value:ct,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$7(ct,st)},_wrapNativeSuper$1(_e)}var formatRegExp=/%[sdj%]/g,warning$8=function(){};typeof process<"u";function convertFieldsError(_e){if(!_e||!_e.length)return null;var et={};return _e.forEach(function(rt){var st=rt.field;et[st]=et[st]||[],et[st].push(rt)}),et}function format$1(_e){for(var et=arguments.length,rt=new Array(et>1?et-1:0),st=1;st=ut)return gt;switch(gt){case"%s":return String(rt[ct++]);case"%d":return Number(rt[ct++]);case"%j":try{return JSON.stringify(rt[ct++])}catch{return"[Circular]"}break;default:return gt}});return ft}return _e}function isNativeStringType(_e){return _e==="string"||_e==="url"||_e==="hex"||_e==="email"||_e==="date"||_e==="pattern"}function isEmptyValue(_e,et){return!!(_e==null||et==="array"&&Array.isArray(_e)&&!_e.length||isNativeStringType(et)&&typeof _e=="string"&&!_e)}function asyncParallelArray(_e,et,rt){var st=[],ct=0,ut=_e.length;function ft(gt){st.push.apply(st,gt||[]),ct++,ct===ut&&rt(st)}_e.forEach(function(gt){et(gt,ft)})}function asyncSerialArray(_e,et,rt){var st=0,ct=_e.length;function ut(ft){if(ft&&ft.length){rt(ft);return}var gt=st;st=st+1,gt()\[\]\\.,;:\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},types={integer:function(et){return types.number(et)&&parseInt(et,10)===et},float:function(et){return types.number(et)&&!types.integer(et)},array:function(et){return Array.isArray(et)},regexp:function(et){if(et instanceof RegExp)return!0;try{return!!new RegExp(et)}catch{return!1}},date:function(et){return typeof et.getTime=="function"&&typeof et.getMonth=="function"&&typeof et.getYear=="function"&&!isNaN(et.getTime())},number:function(et){return isNaN(et)?!1:typeof et=="number"},object:function(et){return typeof et=="object"&&!types.array(et)},method:function(et){return typeof et=="function"},email:function(et){return typeof et=="string"&&et.length<=320&&!!et.match(pattern$2.email)},url:function(et){return typeof et=="string"&&et.length<=2048&&!!et.match(getUrlRegex())},hex:function(et){return typeof et=="string"&&!!et.match(pattern$2.hex)}},type$1=function(et,rt,st,ct,ut){if(et.required&&rt===void 0){required$1(et,rt,st,ct,ut);return}var ft=["integer","float","array","regexp","object","method","email","number","date","url","hex"],gt=et.type;ft.indexOf(gt)>-1?types[gt](rt)||ct.push(format$1(ut.messages.types[gt],et.fullField,et.type)):gt&&typeof rt!==et.type&&ct.push(format$1(ut.messages.types[gt],et.fullField,et.type))},range=function(et,rt,st,ct,ut){var ft=typeof et.len=="number",gt=typeof et.min=="number",xt=typeof et.max=="number",$t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_t=rt,wt=null,Tt=typeof rt=="number",Rt=typeof rt=="string",It=Array.isArray(rt);if(Tt?wt="number":Rt?wt="string":It&&(wt="array"),!wt)return!1;It&&(_t=rt.length),Rt&&(_t=rt.replace($t,"_").length),ft?_t!==et.len&&ct.push(format$1(ut.messages[wt].len,et.fullField,et.len)):gt&&!xt&&_tet.max?ct.push(format$1(ut.messages[wt].max,et.fullField,et.max)):gt&&xt&&(_tet.max)&&ct.push(format$1(ut.messages[wt].range,et.fullField,et.min,et.max))},ENUM$1="enum",enumerable$1=function(et,rt,st,ct,ut){et[ENUM$1]=Array.isArray(et[ENUM$1])?et[ENUM$1]:[],et[ENUM$1].indexOf(rt)===-1&&ct.push(format$1(ut.messages[ENUM$1],et.fullField,et[ENUM$1].join(", ")))},pattern$1=function(et,rt,st,ct,ut){if(et.pattern){if(et.pattern instanceof RegExp)et.pattern.lastIndex=0,et.pattern.test(rt)||ct.push(format$1(ut.messages.pattern.mismatch,et.fullField,rt,et.pattern));else if(typeof et.pattern=="string"){var ft=new RegExp(et.pattern);ft.test(rt)||ct.push(format$1(ut.messages.pattern.mismatch,et.fullField,rt,et.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"string")&&!et.required)return st();rules.required(et,rt,ct,ft,ut,"string"),isEmptyValue(rt,"string")||(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut),rules.pattern(et,rt,ct,ft,ut),et.whitespace===!0&&rules.whitespace(et,rt,ct,ft,ut))}st(ft)},method2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},number2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(rt===""&&(rt=void 0),isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},_boolean=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},regexp2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),isEmptyValue(rt)||rules.type(et,rt,ct,ft,ut)}st(ft)},integer2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},floatFn=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},array2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(rt==null&&!et.required)return st();rules.required(et,rt,ct,ft,ut,"array"),rt!=null&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},object2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},ENUM="enum",enumerable2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules[ENUM](et,rt,ct,ft,ut)}st(ft)},pattern2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"string")&&!et.required)return st();rules.required(et,rt,ct,ft,ut),isEmptyValue(rt,"string")||rules.pattern(et,rt,ct,ft,ut)}st(ft)},date2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"date")&&!et.required)return st();if(rules.required(et,rt,ct,ft,ut),!isEmptyValue(rt,"date")){var xt;rt instanceof Date?xt=rt:xt=new Date(rt),rules.type(et,xt,ct,ft,ut),xt&&rules.range(et,xt.getTime(),ct,ft,ut)}}st(ft)},required2=function(et,rt,st,ct,ut){var ft=[],gt=Array.isArray(rt)?"array":typeof rt;rules.required(et,rt,ct,ft,ut,gt),st(ft)},type2=function(et,rt,st,ct,ut){var ft=et.type,gt=[],xt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(xt){if(isEmptyValue(rt,ft)&&!et.required)return st();rules.required(et,rt,ct,gt,ut,ft),isEmptyValue(rt,ft)||rules.type(et,rt,ct,gt,ut)}st(gt)},any=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut)}st(ft)},validators$2={string,method:method2,number:number2,boolean:_boolean,regexp:regexp2,integer:integer2,float:floatFn,array:array2,object:object2,enum:enumerable2,pattern:pattern2,date:date2,url:type2,hex:type2,email:type2,required:required2,any};function newMessages(){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 et=JSON.parse(JSON.stringify(this));return et.clone=this.clone,et}}}var messages=newMessages(),Schema=function(){function _e(rt){this.rules=null,this._messages=messages,this.define(rt)}var et=_e.prototype;return et.define=function(st){var ct=this;if(!st)throw new Error("Cannot configure a schema with no rules");if(typeof st!="object"||Array.isArray(st))throw new Error("Rules must be an object");this.rules={},Object.keys(st).forEach(function(ut){var ft=st[ut];ct.rules[ut]=Array.isArray(ft)?ft:[ft]})},et.messages=function(st){return st&&(this._messages=deepMerge(newMessages(),st)),this._messages},et.validate=function(st,ct,ut){var ft=this;ct===void 0&&(ct={}),ut===void 0&&(ut=function(){});var gt=st,xt=ct,$t=ut;if(typeof xt=="function"&&($t=xt,xt={}),!this.rules||Object.keys(this.rules).length===0)return $t&&$t(null,gt),Promise.resolve(gt);function _t(At){var jt=[],Nt={};function kt(Ht){if(Array.isArray(Ht)){var Wt;jt=(Wt=jt).concat.apply(Wt,Ht)}else jt.push(Ht)}for(var Ft=0;Ft2&&arguments[2]!==void 0?arguments[2]:!1;return _e&&_e.some(function(st){return matchNamePath(et,st,rt)})}function matchNamePath(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!_e||!et||!rt&&_e.length!==et.length?!1:et.every(function(st,ct){return _e[ct]===st})}function isSimilar(_e,et){if(_e===et)return!0;if(!_e&&et||_e&&!et||!_e||!et||_typeof$e(_e)!=="object"||_typeof$e(et)!=="object")return!1;var rt=Object.keys(_e),st=Object.keys(et),ct=new Set([].concat(rt,st));return _toConsumableArray$3(ct).every(function(ut){var ft=_e[ut],gt=et[ut];return typeof ft=="function"&&typeof gt=="function"?!0:ft===gt})}function defaultGetValueFromEvent(_e){var et=arguments.length<=1?void 0:arguments[1];return et&&et.target&&_typeof$e(et.target)==="object"&&_e in et.target?et.target[_e]:et}function move(_e,et,rt){var st=_e.length;if(et<0||et>=st||rt<0||rt>=st)return _e;var ct=_e[et],ut=et-rt;return ut>0?[].concat(_toConsumableArray$3(_e.slice(0,rt)),[ct],_toConsumableArray$3(_e.slice(rt,et)),_toConsumableArray$3(_e.slice(et+1,st))):ut<0?[].concat(_toConsumableArray$3(_e.slice(0,et)),_toConsumableArray$3(_e.slice(et+1,rt+1)),[ct],_toConsumableArray$3(_e.slice(rt+1,st))):_e}var _excluded$1K=["name"],EMPTY_ERRORS=[];function requireUpdate(_e,et,rt,st,ct,ut){return typeof _e=="function"?_e(et,rt,"source"in ut?{source:ut.source}:{}):st!==ct}var Field=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(st){var ct;if(_classCallCheck$9(this,rt),ct=et.call(this,st),_defineProperty$c(_assertThisInitialized$7(ct),"state",{resetCount:0}),_defineProperty$c(_assertThisInitialized$7(ct),"cancelRegisterFunc",null),_defineProperty$c(_assertThisInitialized$7(ct),"mounted",!1),_defineProperty$c(_assertThisInitialized$7(ct),"touched",!1),_defineProperty$c(_assertThisInitialized$7(ct),"dirty",!1),_defineProperty$c(_assertThisInitialized$7(ct),"validatePromise",void 0),_defineProperty$c(_assertThisInitialized$7(ct),"prevValidating",void 0),_defineProperty$c(_assertThisInitialized$7(ct),"errors",EMPTY_ERRORS),_defineProperty$c(_assertThisInitialized$7(ct),"warnings",EMPTY_ERRORS),_defineProperty$c(_assertThisInitialized$7(ct),"cancelRegister",function(){var xt=ct.props,$t=xt.preserve,_t=xt.isListField,wt=xt.name;ct.cancelRegisterFunc&&ct.cancelRegisterFunc(_t,$t,getNamePath(wt)),ct.cancelRegisterFunc=null}),_defineProperty$c(_assertThisInitialized$7(ct),"getNamePath",function(){var xt=ct.props,$t=xt.name,_t=xt.fieldContext,wt=_t.prefixName,Tt=wt===void 0?[]:wt;return $t!==void 0?[].concat(_toConsumableArray$3(Tt),_toConsumableArray$3($t)):[]}),_defineProperty$c(_assertThisInitialized$7(ct),"getRules",function(){var xt=ct.props,$t=xt.rules,_t=$t===void 0?[]:$t,wt=xt.fieldContext;return _t.map(function(Tt){return typeof Tt=="function"?Tt(wt):Tt})}),_defineProperty$c(_assertThisInitialized$7(ct),"refresh",function(){ct.mounted&&ct.setState(function(xt){var $t=xt.resetCount;return{resetCount:$t+1}})}),_defineProperty$c(_assertThisInitialized$7(ct),"metaCache",null),_defineProperty$c(_assertThisInitialized$7(ct),"triggerMetaEvent",function(xt){var $t=ct.props.onMetaChange;if($t){var _t=_objectSpread2(_objectSpread2({},ct.getMeta()),{},{destroy:xt});isEqual$1(ct.metaCache,_t)||$t(_t),ct.metaCache=_t}else ct.metaCache=null}),_defineProperty$c(_assertThisInitialized$7(ct),"onStoreChange",function(xt,$t,_t){var wt=ct.props,Tt=wt.shouldUpdate,Rt=wt.dependencies,It=Rt===void 0?[]:Rt,At=wt.onReset,jt=_t.store,Nt=ct.getNamePath(),kt=ct.getValue(xt),Ft=ct.getValue(jt),Ht=$t&&containsNamePath($t,Nt);switch(_t.type==="valueUpdate"&&_t.source==="external"&&kt!==Ft&&(ct.touched=!0,ct.dirty=!0,ct.validatePromise=null,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent()),_t.type){case"reset":if(!$t||Ht){ct.touched=!1,ct.dirty=!1,ct.validatePromise=void 0,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent(),At==null||At(),ct.refresh();return}break;case"remove":{if(Tt){ct.reRender();return}break}case"setField":{var Wt=_t.data;if(Ht){"touched"in Wt&&(ct.touched=Wt.touched),"validating"in Wt&&!("originRCField"in Wt)&&(ct.validatePromise=Wt.validating?Promise.resolve([]):null),"errors"in Wt&&(ct.errors=Wt.errors||EMPTY_ERRORS),"warnings"in Wt&&(ct.warnings=Wt.warnings||EMPTY_ERRORS),ct.dirty=!0,ct.triggerMetaEvent(),ct.reRender();return}else if("value"in Wt&&containsNamePath($t,Nt,!0)){ct.reRender();return}if(Tt&&!Nt.length&&requireUpdate(Tt,xt,jt,kt,Ft,_t)){ct.reRender();return}break}case"dependenciesUpdate":{var Vt=It.map(getNamePath);if(Vt.some(function(qt){return containsNamePath(_t.relatedFields,qt)})){ct.reRender();return}break}default:if(Ht||(!It.length||Nt.length||Tt)&&requireUpdate(Tt,xt,jt,kt,Ft,_t)){ct.reRender();return}break}Tt===!0&&ct.reRender()}),_defineProperty$c(_assertThisInitialized$7(ct),"validateRules",function(xt){var $t=ct.getNamePath(),_t=ct.getValue(),wt=xt||{},Tt=wt.triggerName,Rt=wt.validateOnly,It=Rt===void 0?!1:Rt,At=Promise.resolve().then(_asyncToGenerator(_regeneratorRuntime().mark(function jt(){var Nt,kt,Ft,Ht,Wt,Vt,qt;return _regeneratorRuntime().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(ct.mounted){Xt.next=2;break}return Xt.abrupt("return",[]);case 2:if(Nt=ct.props,kt=Nt.validateFirst,Ft=kt===void 0?!1:kt,Ht=Nt.messageVariables,Wt=Nt.validateDebounce,Vt=ct.getRules(),Tt&&(Vt=Vt.filter(function(Zt){return Zt}).filter(function(Zt){var lr=Zt.validateTrigger;if(!lr)return!0;var er=toArray$c(lr);return er.includes(Tt)})),!(Wt&&Tt)){Xt.next=10;break}return Xt.next=8,new Promise(function(Zt){setTimeout(Zt,Wt)});case 8:if(ct.validatePromise===At){Xt.next=10;break}return Xt.abrupt("return",[]);case 10:return qt=validateRules($t,_t,Vt,xt,Ft,Ht),qt.catch(function(Zt){return Zt}).then(function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EMPTY_ERRORS;if(ct.validatePromise===At){var lr;ct.validatePromise=null;var er=[],cr=[];(lr=Zt.forEach)===null||lr===void 0||lr.call(Zt,function(ur){var pr=ur.rule.warningOnly,hr=ur.errors,fr=hr===void 0?EMPTY_ERRORS:hr;pr?cr.push.apply(cr,_toConsumableArray$3(fr)):er.push.apply(er,_toConsumableArray$3(fr))}),ct.errors=er,ct.warnings=cr,ct.triggerMetaEvent(),ct.reRender()}}),Xt.abrupt("return",qt);case 13:case"end":return Xt.stop()}},jt)})));return It||(ct.validatePromise=At,ct.dirty=!0,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent(),ct.reRender()),At}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldValidating",function(){return!!ct.validatePromise}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldTouched",function(){return ct.touched}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldDirty",function(){if(ct.dirty||ct.props.initialValue!==void 0)return!0;var xt=ct.props.fieldContext,$t=xt.getInternalHooks(HOOK_MARK),_t=$t.getInitialValue;return _t(ct.getNamePath())!==void 0}),_defineProperty$c(_assertThisInitialized$7(ct),"getErrors",function(){return ct.errors}),_defineProperty$c(_assertThisInitialized$7(ct),"getWarnings",function(){return ct.warnings}),_defineProperty$c(_assertThisInitialized$7(ct),"isListField",function(){return ct.props.isListField}),_defineProperty$c(_assertThisInitialized$7(ct),"isList",function(){return ct.props.isList}),_defineProperty$c(_assertThisInitialized$7(ct),"isPreserve",function(){return ct.props.preserve}),_defineProperty$c(_assertThisInitialized$7(ct),"getMeta",function(){ct.prevValidating=ct.isFieldValidating();var xt={touched:ct.isFieldTouched(),validating:ct.prevValidating,errors:ct.errors,warnings:ct.warnings,name:ct.getNamePath(),validated:ct.validatePromise===null};return xt}),_defineProperty$c(_assertThisInitialized$7(ct),"getOnlyChild",function(xt){if(typeof xt=="function"){var $t=ct.getMeta();return _objectSpread2(_objectSpread2({},ct.getOnlyChild(xt(ct.getControlled(),$t,ct.props.fieldContext))),{},{isFunction:!0})}var _t=toArray$d(xt);return _t.length!==1||!reactExports.isValidElement(_t[0])?{child:_t,isFunction:!1}:{child:_t[0],isFunction:!1}}),_defineProperty$c(_assertThisInitialized$7(ct),"getValue",function(xt){var $t=ct.props.fieldContext.getFieldsValue,_t=ct.getNamePath();return get$7(xt||$t(!0),_t)}),_defineProperty$c(_assertThisInitialized$7(ct),"getControlled",function(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=ct.props,_t=$t.trigger,wt=$t.validateTrigger,Tt=$t.getValueFromEvent,Rt=$t.normalize,It=$t.valuePropName,At=$t.getValueProps,jt=$t.fieldContext,Nt=wt!==void 0?wt:jt.validateTrigger,kt=ct.getNamePath(),Ft=jt.getInternalHooks,Ht=jt.getFieldsValue,Wt=Ft(HOOK_MARK),Vt=Wt.dispatch,qt=ct.getValue(),Gt=At||function(er){return _defineProperty$c({},It,er)},Xt=xt[_t],Zt=_objectSpread2(_objectSpread2({},xt),Gt(qt));Zt[_t]=function(){ct.touched=!0,ct.dirty=!0,ct.triggerMetaEvent();for(var er,cr=arguments.length,ur=new Array(cr),pr=0;pr=0&&Zt<=lr.length?(_t.keys=[].concat(_toConsumableArray$3(_t.keys.slice(0,Zt)),[_t.id],_toConsumableArray$3(_t.keys.slice(Zt))),Ft([].concat(_toConsumableArray$3(lr.slice(0,Zt)),[Xt],_toConsumableArray$3(lr.slice(Zt))))):(_t.keys=[].concat(_toConsumableArray$3(_t.keys),[_t.id]),Ft([].concat(_toConsumableArray$3(lr),[Xt]))),_t.id+=1},remove:function(Xt){var Zt=Wt(),lr=new Set(Array.isArray(Xt)?Xt:[Xt]);lr.size<=0||(_t.keys=_t.keys.filter(function(er,cr){return!lr.has(cr)}),Ft(Zt.filter(function(er,cr){return!lr.has(cr)})))},move:function(Xt,Zt){if(Xt!==Zt){var lr=Wt();Xt<0||Xt>=lr.length||Zt<0||Zt>=lr.length||(_t.keys=move(_t.keys,Xt,Zt),Ft(move(lr,Xt,Zt)))}}},qt=kt||[];return Array.isArray(qt)||(qt=[]),st(qt.map(function(Gt,Xt){var Zt=_t.keys[Xt];return Zt===void 0&&(_t.keys[Xt]=_t.id,Zt=_t.keys[Xt],_t.id+=1),{name:Xt,key:Zt,isListField:!0}}),Vt,jt)})))}function allPromiseFinish(_e){var et=!1,rt=_e.length,st=[];return _e.length?new Promise(function(ct,ut){_e.forEach(function(ft,gt){ft.catch(function(xt){return et=!0,xt}).then(function(xt){rt-=1,st[gt]=xt,!(rt>0)&&(et&&ut(st),ct(st))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize$1(_e){return _e.map(function(et){return"".concat(_typeof$e(et),":").concat(et)}).join(SPLIT)}var NameMap=function(){function _e(){_classCallCheck$9(this,_e),_defineProperty$c(this,"kvs",new Map)}return _createClass$7(_e,[{key:"set",value:function(rt,st){this.kvs.set(normalize$1(rt),st)}},{key:"get",value:function(rt){return this.kvs.get(normalize$1(rt))}},{key:"update",value:function(rt,st){var ct=this.get(rt),ut=st(ct);ut?this.set(rt,ut):this.delete(rt)}},{key:"delete",value:function(rt){this.kvs.delete(normalize$1(rt))}},{key:"map",value:function(rt){return _toConsumableArray$3(this.kvs.entries()).map(function(st){var ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=ut.split(SPLIT);return rt({key:gt.map(function(xt){var $t=xt.match(/^([^:]*):(.*)$/),_t=_slicedToArray$3($t,3),wt=_t[1],Tt=_t[2];return wt==="number"?Number(Tt):Tt}),value:ft})})}},{key:"toJSON",value:function(){var rt={};return this.map(function(st){var ct=st.key,ut=st.value;return rt[ct.join(".")]=ut,null}),rt}}]),_e}(),_excluded$1J=["name"],FormStore=_createClass$7(function _e(et){var rt=this;_classCallCheck$9(this,_e),_defineProperty$c(this,"formHooked",!1),_defineProperty$c(this,"forceRootUpdate",void 0),_defineProperty$c(this,"subscribable",!0),_defineProperty$c(this,"store",{}),_defineProperty$c(this,"fieldEntities",[]),_defineProperty$c(this,"initialValues",{}),_defineProperty$c(this,"callbacks",{}),_defineProperty$c(this,"validateMessages",null),_defineProperty$c(this,"preserve",null),_defineProperty$c(this,"lastValidatePromise",null),_defineProperty$c(this,"getForm",function(){return{getFieldValue:rt.getFieldValue,getFieldsValue:rt.getFieldsValue,getFieldError:rt.getFieldError,getFieldWarning:rt.getFieldWarning,getFieldsError:rt.getFieldsError,isFieldsTouched:rt.isFieldsTouched,isFieldTouched:rt.isFieldTouched,isFieldValidating:rt.isFieldValidating,isFieldsValidating:rt.isFieldsValidating,resetFields:rt.resetFields,setFields:rt.setFields,setFieldValue:rt.setFieldValue,setFieldsValue:rt.setFieldsValue,validateFields:rt.validateFields,submit:rt.submit,_init:!0,getInternalHooks:rt.getInternalHooks}}),_defineProperty$c(this,"getInternalHooks",function(st){return st===HOOK_MARK?(rt.formHooked=!0,{dispatch:rt.dispatch,initEntityValue:rt.initEntityValue,registerField:rt.registerField,useSubscribe:rt.useSubscribe,setInitialValues:rt.setInitialValues,destroyForm:rt.destroyForm,setCallbacks:rt.setCallbacks,setValidateMessages:rt.setValidateMessages,getFields:rt.getFields,setPreserve:rt.setPreserve,getInitialValue:rt.getInitialValue,registerWatch:rt.registerWatch}):(warningOnce$1(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_defineProperty$c(this,"useSubscribe",function(st){rt.subscribable=st}),_defineProperty$c(this,"prevWithoutPreserves",null),_defineProperty$c(this,"setInitialValues",function(st,ct){if(rt.initialValues=st||{},ct){var ut,ft=merge$8(st,rt.store);(ut=rt.prevWithoutPreserves)===null||ut===void 0||ut.map(function(gt){var xt=gt.key;ft=set$2(ft,xt,get$7(st,xt))}),rt.prevWithoutPreserves=null,rt.updateStore(ft)}}),_defineProperty$c(this,"destroyForm",function(){var st=new NameMap;rt.getFieldEntities(!0).forEach(function(ct){rt.isMergedPreserve(ct.isPreserve())||st.set(ct.getNamePath(),!0)}),rt.prevWithoutPreserves=st}),_defineProperty$c(this,"getInitialValue",function(st){var ct=get$7(rt.initialValues,st);return st.length?merge$8(ct):ct}),_defineProperty$c(this,"setCallbacks",function(st){rt.callbacks=st}),_defineProperty$c(this,"setValidateMessages",function(st){rt.validateMessages=st}),_defineProperty$c(this,"setPreserve",function(st){rt.preserve=st}),_defineProperty$c(this,"watchList",[]),_defineProperty$c(this,"registerWatch",function(st){return rt.watchList.push(st),function(){rt.watchList=rt.watchList.filter(function(ct){return ct!==st})}}),_defineProperty$c(this,"notifyWatch",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(rt.watchList.length){var ct=rt.getFieldsValue(),ut=rt.getFieldsValue(!0);rt.watchList.forEach(function(ft){ft(ct,ut,st)})}}),_defineProperty$c(this,"timeoutId",null),_defineProperty$c(this,"warningUnhooked",function(){}),_defineProperty$c(this,"updateStore",function(st){rt.store=st}),_defineProperty$c(this,"getFieldEntities",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return st?rt.fieldEntities.filter(function(ct){return ct.getNamePath().length}):rt.fieldEntities}),_defineProperty$c(this,"getFieldsMap",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ct=new NameMap;return rt.getFieldEntities(st).forEach(function(ut){var ft=ut.getNamePath();ct.set(ft,ut)}),ct}),_defineProperty$c(this,"getFieldEntitiesForNamePathList",function(st){if(!st)return rt.getFieldEntities(!0);var ct=rt.getFieldsMap(!0);return st.map(function(ut){var ft=getNamePath(ut);return ct.get(ft)||{INVALIDATE_NAME_PATH:getNamePath(ut)}})}),_defineProperty$c(this,"getFieldsValue",function(st,ct){rt.warningUnhooked();var ut,ft,gt;if(st===!0||Array.isArray(st)?(ut=st,ft=ct):st&&_typeof$e(st)==="object"&&(gt=st.strict,ft=st.filter),ut===!0&&!ft)return rt.store;var xt=rt.getFieldEntitiesForNamePathList(Array.isArray(ut)?ut:null),$t=[];return xt.forEach(function(_t){var wt,Tt,Rt="INVALIDATE_NAME_PATH"in _t?_t.INVALIDATE_NAME_PATH:_t.getNamePath();if(gt){var It,At;if((It=(At=_t).isList)!==null&&It!==void 0&&It.call(At))return}else if(!ut&&(wt=(Tt=_t).isListField)!==null&&wt!==void 0&&wt.call(Tt))return;if(!ft)$t.push(Rt);else{var jt="getMeta"in _t?_t.getMeta():null;ft(jt)&&$t.push(Rt)}}),cloneByNamePathList(rt.store,$t.map(getNamePath))}),_defineProperty$c(this,"getFieldValue",function(st){rt.warningUnhooked();var ct=getNamePath(st);return get$7(rt.store,ct)}),_defineProperty$c(this,"getFieldsError",function(st){rt.warningUnhooked();var ct=rt.getFieldEntitiesForNamePathList(st);return ct.map(function(ut,ft){return ut&&!("INVALIDATE_NAME_PATH"in ut)?{name:ut.getNamePath(),errors:ut.getErrors(),warnings:ut.getWarnings()}:{name:getNamePath(st[ft]),errors:[],warnings:[]}})}),_defineProperty$c(this,"getFieldError",function(st){rt.warningUnhooked();var ct=getNamePath(st),ut=rt.getFieldsError([ct])[0];return ut.errors}),_defineProperty$c(this,"getFieldWarning",function(st){rt.warningUnhooked();var ct=getNamePath(st),ut=rt.getFieldsError([ct])[0];return ut.warnings}),_defineProperty$c(this,"isFieldsTouched",function(){rt.warningUnhooked();for(var st=arguments.length,ct=new Array(st),ut=0;ut0&&arguments[0]!==void 0?arguments[0]:{},ct=new NameMap,ut=rt.getFieldEntities(!0);ut.forEach(function(xt){var $t=xt.props.initialValue,_t=xt.getNamePath();if($t!==void 0){var wt=ct.get(_t)||new Set;wt.add({entity:xt,value:$t}),ct.set(_t,wt)}});var ft=function($t){$t.forEach(function(_t){var wt=_t.props.initialValue;if(wt!==void 0){var Tt=_t.getNamePath(),Rt=rt.getInitialValue(Tt);if(Rt!==void 0)warningOnce$1(!1,"Form already set 'initialValues' with path '".concat(Tt.join("."),"'. Field can not overwrite it."));else{var It=ct.get(Tt);if(It&&It.size>1)warningOnce$1(!1,"Multiple Field with path '".concat(Tt.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(It){var At=rt.getFieldValue(Tt),jt=_t.isListField();!jt&&(!st.skipExist||At===void 0)&&rt.updateStore(set$2(rt.store,Tt,_toConsumableArray$3(It)[0].value))}}}})},gt;st.entities?gt=st.entities:st.namePathList?(gt=[],st.namePathList.forEach(function(xt){var $t=ct.get(xt);if($t){var _t;(_t=gt).push.apply(_t,_toConsumableArray$3(_toConsumableArray$3($t).map(function(wt){return wt.entity})))}})):gt=ut,ft(gt)}),_defineProperty$c(this,"resetFields",function(st){rt.warningUnhooked();var ct=rt.store;if(!st){rt.updateStore(merge$8(rt.initialValues)),rt.resetWithFieldInitialValue(),rt.notifyObservers(ct,null,{type:"reset"}),rt.notifyWatch();return}var ut=st.map(getNamePath);ut.forEach(function(ft){var gt=rt.getInitialValue(ft);rt.updateStore(set$2(rt.store,ft,gt))}),rt.resetWithFieldInitialValue({namePathList:ut}),rt.notifyObservers(ct,ut,{type:"reset"}),rt.notifyWatch(ut)}),_defineProperty$c(this,"setFields",function(st){rt.warningUnhooked();var ct=rt.store,ut=[];st.forEach(function(ft){var gt=ft.name,xt=_objectWithoutProperties$2(ft,_excluded$1J),$t=getNamePath(gt);ut.push($t),"value"in xt&&rt.updateStore(set$2(rt.store,$t,xt.value)),rt.notifyObservers(ct,[$t],{type:"setField",data:ft})}),rt.notifyWatch(ut)}),_defineProperty$c(this,"getFields",function(){var st=rt.getFieldEntities(!0),ct=st.map(function(ut){var ft=ut.getNamePath(),gt=ut.getMeta(),xt=_objectSpread2(_objectSpread2({},gt),{},{name:ft,value:rt.getFieldValue(ft)});return Object.defineProperty(xt,"originRCField",{value:!0}),xt});return ct}),_defineProperty$c(this,"initEntityValue",function(st){var ct=st.props.initialValue;if(ct!==void 0){var ut=st.getNamePath(),ft=get$7(rt.store,ut);ft===void 0&&rt.updateStore(set$2(rt.store,ut,ct))}}),_defineProperty$c(this,"isMergedPreserve",function(st){var ct=st!==void 0?st:rt.preserve;return ct??!0}),_defineProperty$c(this,"registerField",function(st){rt.fieldEntities.push(st);var ct=st.getNamePath();if(rt.notifyWatch([ct]),st.props.initialValue!==void 0){var ut=rt.store;rt.resetWithFieldInitialValue({entities:[st],skipExist:!0}),rt.notifyObservers(ut,[st.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(ft,gt){var xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(rt.fieldEntities=rt.fieldEntities.filter(function(wt){return wt!==st}),!rt.isMergedPreserve(gt)&&(!ft||xt.length>1)){var $t=ft?void 0:rt.getInitialValue(ct);if(ct.length&&rt.getFieldValue(ct)!==$t&&rt.fieldEntities.every(function(wt){return!matchNamePath(wt.getNamePath(),ct)})){var _t=rt.store;rt.updateStore(set$2(_t,ct,$t,!0)),rt.notifyObservers(_t,[ct],{type:"remove"}),rt.triggerDependenciesUpdate(_t,ct)}}rt.notifyWatch([ct])}}),_defineProperty$c(this,"dispatch",function(st){switch(st.type){case"updateValue":{var ct=st.namePath,ut=st.value;rt.updateValue(ct,ut);break}case"validateField":{var ft=st.namePath,gt=st.triggerName;rt.validateFields([ft],{triggerName:gt});break}}}),_defineProperty$c(this,"notifyObservers",function(st,ct,ut){if(rt.subscribable){var ft=_objectSpread2(_objectSpread2({},ut),{},{store:rt.getFieldsValue(!0)});rt.getFieldEntities().forEach(function(gt){var xt=gt.onStoreChange;xt(st,ct,ft)})}else rt.forceRootUpdate()}),_defineProperty$c(this,"triggerDependenciesUpdate",function(st,ct){var ut=rt.getDependencyChildrenFields(ct);return ut.length&&rt.validateFields(ut),rt.notifyObservers(st,ut,{type:"dependenciesUpdate",relatedFields:[ct].concat(_toConsumableArray$3(ut))}),ut}),_defineProperty$c(this,"updateValue",function(st,ct){var ut=getNamePath(st),ft=rt.store;rt.updateStore(set$2(rt.store,ut,ct)),rt.notifyObservers(ft,[ut],{type:"valueUpdate",source:"internal"}),rt.notifyWatch([ut]);var gt=rt.triggerDependenciesUpdate(ft,ut),xt=rt.callbacks.onValuesChange;if(xt){var $t=cloneByNamePathList(rt.store,[ut]);xt($t,rt.getFieldsValue())}rt.triggerOnFieldsChange([ut].concat(_toConsumableArray$3(gt)))}),_defineProperty$c(this,"setFieldsValue",function(st){rt.warningUnhooked();var ct=rt.store;if(st){var ut=merge$8(rt.store,st);rt.updateStore(ut)}rt.notifyObservers(ct,null,{type:"valueUpdate",source:"external"}),rt.notifyWatch()}),_defineProperty$c(this,"setFieldValue",function(st,ct){rt.setFields([{name:st,value:ct}])}),_defineProperty$c(this,"getDependencyChildrenFields",function(st){var ct=new Set,ut=[],ft=new NameMap;rt.getFieldEntities().forEach(function(xt){var $t=xt.props.dependencies;($t||[]).forEach(function(_t){var wt=getNamePath(_t);ft.update(wt,function(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Tt.add(xt),Tt})})});var gt=function xt($t){var _t=ft.get($t)||new Set;_t.forEach(function(wt){if(!ct.has(wt)){ct.add(wt);var Tt=wt.getNamePath();wt.isFieldDirty()&&Tt.length&&(ut.push(Tt),xt(Tt))}})};return gt(st),ut}),_defineProperty$c(this,"triggerOnFieldsChange",function(st,ct){var ut=rt.callbacks.onFieldsChange;if(ut){var ft=rt.getFields();if(ct){var gt=new NameMap;ct.forEach(function($t){var _t=$t.name,wt=$t.errors;gt.set(_t,wt)}),ft.forEach(function($t){$t.errors=gt.get($t.name)||$t.errors})}var xt=ft.filter(function($t){var _t=$t.name;return containsNamePath(st,_t)});xt.length&&ut(xt,ft)}}),_defineProperty$c(this,"validateFields",function(st,ct){rt.warningUnhooked();var ut,ft;Array.isArray(st)||typeof st=="string"||typeof ct=="string"?(ut=st,ft=ct):ft=st;var gt=!!ut,xt=gt?ut.map(getNamePath):[],$t=[],_t=String(Date.now()),wt=new Set,Tt=ft||{},Rt=Tt.recursive,It=Tt.dirty;rt.getFieldEntities(!0).forEach(function(kt){if(gt||xt.push(kt.getNamePath()),!(!kt.props.rules||!kt.props.rules.length)&&!(It&&!kt.isFieldDirty())){var Ft=kt.getNamePath();if(wt.add(Ft.join(_t)),!gt||containsNamePath(xt,Ft,Rt)){var Ht=kt.validateRules(_objectSpread2({validateMessages:_objectSpread2(_objectSpread2({},defaultValidateMessages),rt.validateMessages)},ft));$t.push(Ht.then(function(){return{name:Ft,errors:[],warnings:[]}}).catch(function(Wt){var Vt,qt=[],Gt=[];return(Vt=Wt.forEach)===null||Vt===void 0||Vt.call(Wt,function(Xt){var Zt=Xt.rule.warningOnly,lr=Xt.errors;Zt?Gt.push.apply(Gt,_toConsumableArray$3(lr)):qt.push.apply(qt,_toConsumableArray$3(lr))}),qt.length?Promise.reject({name:Ft,errors:qt,warnings:Gt}):{name:Ft,errors:qt,warnings:Gt}}))}}});var At=allPromiseFinish($t);rt.lastValidatePromise=At,At.catch(function(kt){return kt}).then(function(kt){var Ft=kt.map(function(Ht){var Wt=Ht.name;return Wt});rt.notifyObservers(rt.store,Ft,{type:"validateFinish"}),rt.triggerOnFieldsChange(Ft,kt)});var jt=At.then(function(){return rt.lastValidatePromise===At?Promise.resolve(rt.getFieldsValue(xt)):Promise.reject([])}).catch(function(kt){var Ft=kt.filter(function(Ht){return Ht&&Ht.errors.length});return Promise.reject({values:rt.getFieldsValue(xt),errorFields:Ft,outOfDate:rt.lastValidatePromise!==At})});jt.catch(function(kt){return kt});var Nt=xt.filter(function(kt){return wt.has(kt.join(_t))});return rt.triggerOnFieldsChange(Nt),jt}),_defineProperty$c(this,"submit",function(){rt.warningUnhooked(),rt.validateFields().then(function(st){var ct=rt.callbacks.onFinish;if(ct)try{ct(st)}catch(ut){console.error(ut)}}).catch(function(st){var ct=rt.callbacks.onFinishFailed;ct&&ct(st)})}),this.forceRootUpdate=et});function useForm$1(_e){var et=reactExports.useRef(),rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[1];if(!et.current)if(_e)et.current=_e;else{var ut=function(){ct({})},ft=new FormStore(ut);et.current=ft.getForm()}return[et.current]}var FormContext$1=reactExports.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider$1=function(et){var rt=et.validateMessages,st=et.onFormChange,ct=et.onFormFinish,ut=et.children,ft=reactExports.useContext(FormContext$1),gt=reactExports.useRef({});return reactExports.createElement(FormContext$1.Provider,{value:_objectSpread2(_objectSpread2({},ft),{},{validateMessages:_objectSpread2(_objectSpread2({},ft.validateMessages),rt),triggerFormChange:function($t,_t){st&&st($t,{changedFields:_t,forms:gt.current}),ft.triggerFormChange($t,_t)},triggerFormFinish:function($t,_t){ct&&ct($t,{values:_t,forms:gt.current}),ft.triggerFormFinish($t,_t)},registerForm:function($t,_t){$t&&(gt.current=_objectSpread2(_objectSpread2({},gt.current),{},_defineProperty$c({},$t,_t))),ft.registerForm($t,_t)},unregisterForm:function($t){var _t=_objectSpread2({},gt.current);delete _t[$t],gt.current=_t,ft.unregisterForm($t)}})},ut)},_excluded$1I=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Form$2=function(et,rt){var st=et.name,ct=et.initialValues,ut=et.fields,ft=et.form,gt=et.preserve,xt=et.children,$t=et.component,_t=$t===void 0?"form":$t,wt=et.validateMessages,Tt=et.validateTrigger,Rt=Tt===void 0?"onChange":Tt,It=et.onValuesChange,At=et.onFieldsChange,jt=et.onFinish,Nt=et.onFinishFailed,kt=_objectWithoutProperties$2(et,_excluded$1I),Ft=reactExports.useContext(FormContext$1),Ht=useForm$1(ft),Wt=_slicedToArray$3(Ht,1),Vt=Wt[0],qt=Vt.getInternalHooks(HOOK_MARK),Gt=qt.useSubscribe,Xt=qt.setInitialValues,Zt=qt.setCallbacks,lr=qt.setValidateMessages,er=qt.setPreserve,cr=qt.destroyForm;reactExports.useImperativeHandle(rt,function(){return Vt}),reactExports.useEffect(function(){return Ft.registerForm(st,Vt),function(){Ft.unregisterForm(st)}},[Ft,Vt,st]),lr(_objectSpread2(_objectSpread2({},Ft.validateMessages),wt)),Zt({onValuesChange:It,onFieldsChange:function(mr){if(Ft.triggerFormChange(st,mr),At){for(var Sr=arguments.length,Tr=new Array(Sr>1?Sr-1:0),jr=1;jr{}}),NoStyleItemContext=reactExports.createContext(null),FormProvider=_e=>{const et=omit$2(_e,["prefixCls"]);return reactExports.createElement(FormProvider$1,Object.assign({},et))},FormItemPrefixContext=reactExports.createContext({prefixCls:""}),FormItemInputContext=reactExports.createContext({}),NoFormStyle=_e=>{let{children:et,status:rt,override:st}=_e;const ct=reactExports.useContext(FormItemInputContext),ut=reactExports.useMemo(()=>{const ft=Object.assign({},ct);return st&&delete ft.isFormItemInput,rt&&(delete ft.status,delete ft.hasFeedback,delete ft.feedbackIcon),ft},[rt,st,ct]);return reactExports.createElement(FormItemInputContext.Provider,{value:ut},et)},VariantContext=reactExports.createContext(void 0);function voidFunc(){}const WatermarkContext=reactExports.createContext({add:voidFunc,remove:voidFunc});function usePanelRef(_e){const et=reactExports.useContext(WatermarkContext),rt=reactExports.useRef();return useEvent(ct=>{if(ct){const ut=_e?ct.querySelector(_e):ct;et.add(ut),rt.current=ut}else et.remove(rt.current)})}const NormalCancelBtn=()=>{const{cancelButtonProps:_e,cancelTextLocale:et,onCancel:rt}=reactExports.useContext(ModalContext);return React$1.createElement(Button$3,Object.assign({onClick:rt},_e),et)},NormalCancelBtn$1=NormalCancelBtn,NormalOkBtn=()=>{const{confirmLoading:_e,okButtonProps:et,okType:rt,okTextLocale:st,onOk:ct}=reactExports.useContext(ModalContext);return React$1.createElement(Button$3,Object.assign({},convertLegacyProps(rt),{loading:_e,onClick:ct},et),st)},NormalOkBtn$1=NormalOkBtn;function renderCloseIcon(_e,et){return React$1.createElement("span",{className:`${_e}-close-x`},et||React$1.createElement(CloseOutlined$1,{className:`${_e}-close-icon`}))}const Footer$4=_e=>{const{okText:et,okType:rt="primary",cancelText:st,confirmLoading:ct,onOk:ut,onCancel:ft,okButtonProps:gt,cancelButtonProps:xt,footer:$t}=_e,[_t]=useLocale$3("Modal",getConfirmLocale()),wt=et||(_t==null?void 0:_t.okText),Tt=st||(_t==null?void 0:_t.cancelText),Rt={confirmLoading:ct,okButtonProps:gt,cancelButtonProps:xt,okTextLocale:wt,cancelTextLocale:Tt,okType:rt,onOk:ut,onCancel:ft},It=React$1.useMemo(()=>Rt,_toConsumableArray$3(Object.values(Rt)));let At;return typeof $t=="function"||typeof $t>"u"?(At=React$1.createElement(React$1.Fragment,null,React$1.createElement(NormalCancelBtn$1,null),React$1.createElement(NormalOkBtn$1,null)),typeof $t=="function"&&(At=$t(At,{OkBtn:NormalOkBtn$1,CancelBtn:NormalCancelBtn$1})),At=React$1.createElement(ModalContextProvider,{value:It},At)):At=$t,React$1.createElement(DisabledContextProvider,{disabled:!1},At)},initMotionCommon=_e=>({animationDuration:_e,animationFillMode:"both"}),initMotionCommonLeave=_e=>({animationDuration:_e,animationFillMode:"both"}),initMotion=function(_e,et,rt,st){const ut=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),ut=new RegExp("(?:^"+rt+"$)|(?:^"+ct+"$)"),ft=new RegExp("^"+rt+"$"),gt=new RegExp("^"+ct+"$"),xt=function(Ht){return Ht&&Ht.exact?ut:new RegExp("(?:"+et(Ht)+rt+et(Ht)+")|(?:"+et(Ht)+ct+et(Ht)+")","g")};xt.v4=function(Ft){return Ft&&Ft.exact?ft:new RegExp(""+et(Ft)+rt+et(Ft),"g")},xt.v6=function(Ft){return Ft&&Ft.exact?gt:new RegExp(""+et(Ft)+ct+et(Ft),"g")};var $t="(?:(?:[a-z]+:)?//)",_t="(?:\\S+(?::\\S*)?@)?",wt=xt.v4().source,Tt=xt.v6().source,Rt="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",It="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",At="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",jt="(?::\\d{2,5})?",Nt='(?:[/?#][^\\s"]*)?',kt="(?:"+$t+"|www\\.)"+_t+"(?:localhost|"+wt+"|"+Tt+"|"+Rt+It+At+")"+jt+Nt;return urlReg=new RegExp("(?:^"+kt+"$)","i"),urlReg},pattern$2={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},types={integer:function(et){return types.number(et)&&parseInt(et,10)===et},float:function(et){return types.number(et)&&!types.integer(et)},array:function(et){return Array.isArray(et)},regexp:function(et){if(et instanceof RegExp)return!0;try{return!!new RegExp(et)}catch{return!1}},date:function(et){return typeof et.getTime=="function"&&typeof et.getMonth=="function"&&typeof et.getYear=="function"&&!isNaN(et.getTime())},number:function(et){return isNaN(et)?!1:typeof et=="number"},object:function(et){return typeof et=="object"&&!types.array(et)},method:function(et){return typeof et=="function"},email:function(et){return typeof et=="string"&&et.length<=320&&!!et.match(pattern$2.email)},url:function(et){return typeof et=="string"&&et.length<=2048&&!!et.match(getUrlRegex())},hex:function(et){return typeof et=="string"&&!!et.match(pattern$2.hex)}},type$1=function(et,rt,st,ct,ut){if(et.required&&rt===void 0){required$1(et,rt,st,ct,ut);return}var ft=["integer","float","array","regexp","object","method","email","number","date","url","hex"],gt=et.type;ft.indexOf(gt)>-1?types[gt](rt)||ct.push(format$1(ut.messages.types[gt],et.fullField,et.type)):gt&&typeof rt!==et.type&&ct.push(format$1(ut.messages.types[gt],et.fullField,et.type))},range=function(et,rt,st,ct,ut){var ft=typeof et.len=="number",gt=typeof et.min=="number",xt=typeof et.max=="number",$t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_t=rt,wt=null,Tt=typeof rt=="number",Rt=typeof rt=="string",It=Array.isArray(rt);if(Tt?wt="number":Rt?wt="string":It&&(wt="array"),!wt)return!1;It&&(_t=rt.length),Rt&&(_t=rt.replace($t,"_").length),ft?_t!==et.len&&ct.push(format$1(ut.messages[wt].len,et.fullField,et.len)):gt&&!xt&&_tet.max?ct.push(format$1(ut.messages[wt].max,et.fullField,et.max)):gt&&xt&&(_tet.max)&&ct.push(format$1(ut.messages[wt].range,et.fullField,et.min,et.max))},ENUM$1="enum",enumerable$1=function(et,rt,st,ct,ut){et[ENUM$1]=Array.isArray(et[ENUM$1])?et[ENUM$1]:[],et[ENUM$1].indexOf(rt)===-1&&ct.push(format$1(ut.messages[ENUM$1],et.fullField,et[ENUM$1].join(", ")))},pattern$1=function(et,rt,st,ct,ut){if(et.pattern){if(et.pattern instanceof RegExp)et.pattern.lastIndex=0,et.pattern.test(rt)||ct.push(format$1(ut.messages.pattern.mismatch,et.fullField,rt,et.pattern));else if(typeof et.pattern=="string"){var ft=new RegExp(et.pattern);ft.test(rt)||ct.push(format$1(ut.messages.pattern.mismatch,et.fullField,rt,et.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"string")&&!et.required)return st();rules.required(et,rt,ct,ft,ut,"string"),isEmptyValue(rt,"string")||(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut),rules.pattern(et,rt,ct,ft,ut),et.whitespace===!0&&rules.whitespace(et,rt,ct,ft,ut))}st(ft)},method2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},number2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(rt===""&&(rt=void 0),isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},_boolean=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},regexp2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),isEmptyValue(rt)||rules.type(et,rt,ct,ft,ut)}st(ft)},integer2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},floatFn=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},array2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(rt==null&&!et.required)return st();rules.required(et,rt,ct,ft,ut,"array"),rt!=null&&(rules.type(et,rt,ct,ft,ut),rules.range(et,rt,ct,ft,ut))}st(ft)},object2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules.type(et,rt,ct,ft,ut)}st(ft)},ENUM="enum",enumerable2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut),rt!==void 0&&rules[ENUM](et,rt,ct,ft,ut)}st(ft)},pattern2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"string")&&!et.required)return st();rules.required(et,rt,ct,ft,ut),isEmptyValue(rt,"string")||rules.pattern(et,rt,ct,ft,ut)}st(ft)},date2=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt,"date")&&!et.required)return st();if(rules.required(et,rt,ct,ft,ut),!isEmptyValue(rt,"date")){var xt;rt instanceof Date?xt=rt:xt=new Date(rt),rules.type(et,xt,ct,ft,ut),xt&&rules.range(et,xt.getTime(),ct,ft,ut)}}st(ft)},required2=function(et,rt,st,ct,ut){var ft=[],gt=Array.isArray(rt)?"array":typeof rt;rules.required(et,rt,ct,ft,ut,gt),st(ft)},type2=function(et,rt,st,ct,ut){var ft=et.type,gt=[],xt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(xt){if(isEmptyValue(rt,ft)&&!et.required)return st();rules.required(et,rt,ct,gt,ut,ft),isEmptyValue(rt,ft)||rules.type(et,rt,ct,gt,ut)}st(gt)},any=function(et,rt,st,ct,ut){var ft=[],gt=et.required||!et.required&&ct.hasOwnProperty(et.field);if(gt){if(isEmptyValue(rt)&&!et.required)return st();rules.required(et,rt,ct,ft,ut)}st(ft)},validators$2={string,method:method2,number:number2,boolean:_boolean,regexp:regexp2,integer:integer2,float:floatFn,array:array2,object:object2,enum:enumerable2,pattern:pattern2,date:date2,url:type2,hex:type2,email:type2,required:required2,any};function newMessages(){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 et=JSON.parse(JSON.stringify(this));return et.clone=this.clone,et}}}var messages=newMessages(),Schema=function(){function _e(rt){this.rules=null,this._messages=messages,this.define(rt)}var et=_e.prototype;return et.define=function(st){var ct=this;if(!st)throw new Error("Cannot configure a schema with no rules");if(typeof st!="object"||Array.isArray(st))throw new Error("Rules must be an object");this.rules={},Object.keys(st).forEach(function(ut){var ft=st[ut];ct.rules[ut]=Array.isArray(ft)?ft:[ft]})},et.messages=function(st){return st&&(this._messages=deepMerge(newMessages(),st)),this._messages},et.validate=function(st,ct,ut){var ft=this;ct===void 0&&(ct={}),ut===void 0&&(ut=function(){});var gt=st,xt=ct,$t=ut;if(typeof xt=="function"&&($t=xt,xt={}),!this.rules||Object.keys(this.rules).length===0)return $t&&$t(null,gt),Promise.resolve(gt);function _t(At){var jt=[],Nt={};function kt(Ht){if(Array.isArray(Ht)){var Wt;jt=(Wt=jt).concat.apply(Wt,Ht)}else jt.push(Ht)}for(var Ft=0;Ft2&&arguments[2]!==void 0?arguments[2]:!1;return _e&&_e.some(function(st){return matchNamePath(et,st,rt)})}function matchNamePath(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!_e||!et||!rt&&_e.length!==et.length?!1:et.every(function(st,ct){return _e[ct]===st})}function isSimilar(_e,et){if(_e===et)return!0;if(!_e&&et||_e&&!et||!_e||!et||_typeof$e(_e)!=="object"||_typeof$e(et)!=="object")return!1;var rt=Object.keys(_e),st=Object.keys(et),ct=new Set([].concat(rt,st));return _toConsumableArray$3(ct).every(function(ut){var ft=_e[ut],gt=et[ut];return typeof ft=="function"&&typeof gt=="function"?!0:ft===gt})}function defaultGetValueFromEvent(_e){var et=arguments.length<=1?void 0:arguments[1];return et&&et.target&&_typeof$e(et.target)==="object"&&_e in et.target?et.target[_e]:et}function move(_e,et,rt){var st=_e.length;if(et<0||et>=st||rt<0||rt>=st)return _e;var ct=_e[et],ut=et-rt;return ut>0?[].concat(_toConsumableArray$3(_e.slice(0,rt)),[ct],_toConsumableArray$3(_e.slice(rt,et)),_toConsumableArray$3(_e.slice(et+1,st))):ut<0?[].concat(_toConsumableArray$3(_e.slice(0,et)),_toConsumableArray$3(_e.slice(et+1,rt+1)),[ct],_toConsumableArray$3(_e.slice(rt+1,st))):_e}var _excluded$1K=["name"],EMPTY_ERRORS=[];function requireUpdate(_e,et,rt,st,ct,ut){return typeof _e=="function"?_e(et,rt,"source"in ut?{source:ut.source}:{}):st!==ct}var Field=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(st){var ct;if(_classCallCheck$9(this,rt),ct=et.call(this,st),_defineProperty$c(_assertThisInitialized$7(ct),"state",{resetCount:0}),_defineProperty$c(_assertThisInitialized$7(ct),"cancelRegisterFunc",null),_defineProperty$c(_assertThisInitialized$7(ct),"mounted",!1),_defineProperty$c(_assertThisInitialized$7(ct),"touched",!1),_defineProperty$c(_assertThisInitialized$7(ct),"dirty",!1),_defineProperty$c(_assertThisInitialized$7(ct),"validatePromise",void 0),_defineProperty$c(_assertThisInitialized$7(ct),"prevValidating",void 0),_defineProperty$c(_assertThisInitialized$7(ct),"errors",EMPTY_ERRORS),_defineProperty$c(_assertThisInitialized$7(ct),"warnings",EMPTY_ERRORS),_defineProperty$c(_assertThisInitialized$7(ct),"cancelRegister",function(){var xt=ct.props,$t=xt.preserve,_t=xt.isListField,wt=xt.name;ct.cancelRegisterFunc&&ct.cancelRegisterFunc(_t,$t,getNamePath(wt)),ct.cancelRegisterFunc=null}),_defineProperty$c(_assertThisInitialized$7(ct),"getNamePath",function(){var xt=ct.props,$t=xt.name,_t=xt.fieldContext,wt=_t.prefixName,Tt=wt===void 0?[]:wt;return $t!==void 0?[].concat(_toConsumableArray$3(Tt),_toConsumableArray$3($t)):[]}),_defineProperty$c(_assertThisInitialized$7(ct),"getRules",function(){var xt=ct.props,$t=xt.rules,_t=$t===void 0?[]:$t,wt=xt.fieldContext;return _t.map(function(Tt){return typeof Tt=="function"?Tt(wt):Tt})}),_defineProperty$c(_assertThisInitialized$7(ct),"refresh",function(){ct.mounted&&ct.setState(function(xt){var $t=xt.resetCount;return{resetCount:$t+1}})}),_defineProperty$c(_assertThisInitialized$7(ct),"metaCache",null),_defineProperty$c(_assertThisInitialized$7(ct),"triggerMetaEvent",function(xt){var $t=ct.props.onMetaChange;if($t){var _t=_objectSpread2(_objectSpread2({},ct.getMeta()),{},{destroy:xt});isEqual$1(ct.metaCache,_t)||$t(_t),ct.metaCache=_t}else ct.metaCache=null}),_defineProperty$c(_assertThisInitialized$7(ct),"onStoreChange",function(xt,$t,_t){var wt=ct.props,Tt=wt.shouldUpdate,Rt=wt.dependencies,It=Rt===void 0?[]:Rt,At=wt.onReset,jt=_t.store,Nt=ct.getNamePath(),kt=ct.getValue(xt),Ft=ct.getValue(jt),Ht=$t&&containsNamePath($t,Nt);switch(_t.type==="valueUpdate"&&_t.source==="external"&&kt!==Ft&&(ct.touched=!0,ct.dirty=!0,ct.validatePromise=null,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent()),_t.type){case"reset":if(!$t||Ht){ct.touched=!1,ct.dirty=!1,ct.validatePromise=void 0,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent(),At==null||At(),ct.refresh();return}break;case"remove":{if(Tt){ct.reRender();return}break}case"setField":{var Wt=_t.data;if(Ht){"touched"in Wt&&(ct.touched=Wt.touched),"validating"in Wt&&!("originRCField"in Wt)&&(ct.validatePromise=Wt.validating?Promise.resolve([]):null),"errors"in Wt&&(ct.errors=Wt.errors||EMPTY_ERRORS),"warnings"in Wt&&(ct.warnings=Wt.warnings||EMPTY_ERRORS),ct.dirty=!0,ct.triggerMetaEvent(),ct.reRender();return}else if("value"in Wt&&containsNamePath($t,Nt,!0)){ct.reRender();return}if(Tt&&!Nt.length&&requireUpdate(Tt,xt,jt,kt,Ft,_t)){ct.reRender();return}break}case"dependenciesUpdate":{var Vt=It.map(getNamePath);if(Vt.some(function(qt){return containsNamePath(_t.relatedFields,qt)})){ct.reRender();return}break}default:if(Ht||(!It.length||Nt.length||Tt)&&requireUpdate(Tt,xt,jt,kt,Ft,_t)){ct.reRender();return}break}Tt===!0&&ct.reRender()}),_defineProperty$c(_assertThisInitialized$7(ct),"validateRules",function(xt){var $t=ct.getNamePath(),_t=ct.getValue(),wt=xt||{},Tt=wt.triggerName,Rt=wt.validateOnly,It=Rt===void 0?!1:Rt,At=Promise.resolve().then(_asyncToGenerator(_regeneratorRuntime().mark(function jt(){var Nt,kt,Ft,Ht,Wt,Vt,qt;return _regeneratorRuntime().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(ct.mounted){Gt.next=2;break}return Gt.abrupt("return",[]);case 2:if(Nt=ct.props,kt=Nt.validateFirst,Ft=kt===void 0?!1:kt,Ht=Nt.messageVariables,Wt=Nt.validateDebounce,Vt=ct.getRules(),Tt&&(Vt=Vt.filter(function(Zt){return Zt}).filter(function(Zt){var er=Zt.validateTrigger;if(!er)return!0;var lr=toArray$d(er);return lr.includes(Tt)})),!(Wt&&Tt)){Gt.next=10;break}return Gt.next=8,new Promise(function(Zt){setTimeout(Zt,Wt)});case 8:if(ct.validatePromise===At){Gt.next=10;break}return Gt.abrupt("return",[]);case 10:return qt=validateRules($t,_t,Vt,xt,Ft,Ht),qt.catch(function(Zt){return Zt}).then(function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EMPTY_ERRORS;if(ct.validatePromise===At){var er;ct.validatePromise=null;var lr=[],cr=[];(er=Zt.forEach)===null||er===void 0||er.call(Zt,function(ur){var fr=ur.rule.warningOnly,hr=ur.errors,pr=hr===void 0?EMPTY_ERRORS:hr;fr?cr.push.apply(cr,_toConsumableArray$3(pr)):lr.push.apply(lr,_toConsumableArray$3(pr))}),ct.errors=lr,ct.warnings=cr,ct.triggerMetaEvent(),ct.reRender()}}),Gt.abrupt("return",qt);case 13:case"end":return Gt.stop()}},jt)})));return It||(ct.validatePromise=At,ct.dirty=!0,ct.errors=EMPTY_ERRORS,ct.warnings=EMPTY_ERRORS,ct.triggerMetaEvent(),ct.reRender()),At}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldValidating",function(){return!!ct.validatePromise}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldTouched",function(){return ct.touched}),_defineProperty$c(_assertThisInitialized$7(ct),"isFieldDirty",function(){if(ct.dirty||ct.props.initialValue!==void 0)return!0;var xt=ct.props.fieldContext,$t=xt.getInternalHooks(HOOK_MARK),_t=$t.getInitialValue;return _t(ct.getNamePath())!==void 0}),_defineProperty$c(_assertThisInitialized$7(ct),"getErrors",function(){return ct.errors}),_defineProperty$c(_assertThisInitialized$7(ct),"getWarnings",function(){return ct.warnings}),_defineProperty$c(_assertThisInitialized$7(ct),"isListField",function(){return ct.props.isListField}),_defineProperty$c(_assertThisInitialized$7(ct),"isList",function(){return ct.props.isList}),_defineProperty$c(_assertThisInitialized$7(ct),"isPreserve",function(){return ct.props.preserve}),_defineProperty$c(_assertThisInitialized$7(ct),"getMeta",function(){ct.prevValidating=ct.isFieldValidating();var xt={touched:ct.isFieldTouched(),validating:ct.prevValidating,errors:ct.errors,warnings:ct.warnings,name:ct.getNamePath(),validated:ct.validatePromise===null};return xt}),_defineProperty$c(_assertThisInitialized$7(ct),"getOnlyChild",function(xt){if(typeof xt=="function"){var $t=ct.getMeta();return _objectSpread2(_objectSpread2({},ct.getOnlyChild(xt(ct.getControlled(),$t,ct.props.fieldContext))),{},{isFunction:!0})}var _t=toArray$e(xt);return _t.length!==1||!reactExports.isValidElement(_t[0])?{child:_t,isFunction:!1}:{child:_t[0],isFunction:!1}}),_defineProperty$c(_assertThisInitialized$7(ct),"getValue",function(xt){var $t=ct.props.fieldContext.getFieldsValue,_t=ct.getNamePath();return get$7(xt||$t(!0),_t)}),_defineProperty$c(_assertThisInitialized$7(ct),"getControlled",function(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=ct.props,_t=$t.trigger,wt=$t.validateTrigger,Tt=$t.getValueFromEvent,Rt=$t.normalize,It=$t.valuePropName,At=$t.getValueProps,jt=$t.fieldContext,Nt=wt!==void 0?wt:jt.validateTrigger,kt=ct.getNamePath(),Ft=jt.getInternalHooks,Ht=jt.getFieldsValue,Wt=Ft(HOOK_MARK),Vt=Wt.dispatch,qt=ct.getValue(),Xt=At||function(lr){return _defineProperty$c({},It,lr)},Gt=xt[_t],Zt=_objectSpread2(_objectSpread2({},xt),Xt(qt));Zt[_t]=function(){ct.touched=!0,ct.dirty=!0,ct.triggerMetaEvent();for(var lr,cr=arguments.length,ur=new Array(cr),fr=0;fr=0&&Zt<=er.length?(_t.keys=[].concat(_toConsumableArray$3(_t.keys.slice(0,Zt)),[_t.id],_toConsumableArray$3(_t.keys.slice(Zt))),Ft([].concat(_toConsumableArray$3(er.slice(0,Zt)),[Gt],_toConsumableArray$3(er.slice(Zt))))):(_t.keys=[].concat(_toConsumableArray$3(_t.keys),[_t.id]),Ft([].concat(_toConsumableArray$3(er),[Gt]))),_t.id+=1},remove:function(Gt){var Zt=Wt(),er=new Set(Array.isArray(Gt)?Gt:[Gt]);er.size<=0||(_t.keys=_t.keys.filter(function(lr,cr){return!er.has(cr)}),Ft(Zt.filter(function(lr,cr){return!er.has(cr)})))},move:function(Gt,Zt){if(Gt!==Zt){var er=Wt();Gt<0||Gt>=er.length||Zt<0||Zt>=er.length||(_t.keys=move(_t.keys,Gt,Zt),Ft(move(er,Gt,Zt)))}}},qt=kt||[];return Array.isArray(qt)||(qt=[]),st(qt.map(function(Xt,Gt){var Zt=_t.keys[Gt];return Zt===void 0&&(_t.keys[Gt]=_t.id,Zt=_t.keys[Gt],_t.id+=1),{name:Gt,key:Zt,isListField:!0}}),Vt,jt)})))}function allPromiseFinish(_e){var et=!1,rt=_e.length,st=[];return _e.length?new Promise(function(ct,ut){_e.forEach(function(ft,gt){ft.catch(function(xt){return et=!0,xt}).then(function(xt){rt-=1,st[gt]=xt,!(rt>0)&&(et&&ut(st),ct(st))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize$1(_e){return _e.map(function(et){return"".concat(_typeof$e(et),":").concat(et)}).join(SPLIT)}var NameMap=function(){function _e(){_classCallCheck$9(this,_e),_defineProperty$c(this,"kvs",new Map)}return _createClass$7(_e,[{key:"set",value:function(rt,st){this.kvs.set(normalize$1(rt),st)}},{key:"get",value:function(rt){return this.kvs.get(normalize$1(rt))}},{key:"update",value:function(rt,st){var ct=this.get(rt),ut=st(ct);ut?this.set(rt,ut):this.delete(rt)}},{key:"delete",value:function(rt){this.kvs.delete(normalize$1(rt))}},{key:"map",value:function(rt){return _toConsumableArray$3(this.kvs.entries()).map(function(st){var ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=ut.split(SPLIT);return rt({key:gt.map(function(xt){var $t=xt.match(/^([^:]*):(.*)$/),_t=_slicedToArray$3($t,3),wt=_t[1],Tt=_t[2];return wt==="number"?Number(Tt):Tt}),value:ft})})}},{key:"toJSON",value:function(){var rt={};return this.map(function(st){var ct=st.key,ut=st.value;return rt[ct.join(".")]=ut,null}),rt}}]),_e}(),_excluded$1J=["name"],FormStore=_createClass$7(function _e(et){var rt=this;_classCallCheck$9(this,_e),_defineProperty$c(this,"formHooked",!1),_defineProperty$c(this,"forceRootUpdate",void 0),_defineProperty$c(this,"subscribable",!0),_defineProperty$c(this,"store",{}),_defineProperty$c(this,"fieldEntities",[]),_defineProperty$c(this,"initialValues",{}),_defineProperty$c(this,"callbacks",{}),_defineProperty$c(this,"validateMessages",null),_defineProperty$c(this,"preserve",null),_defineProperty$c(this,"lastValidatePromise",null),_defineProperty$c(this,"getForm",function(){return{getFieldValue:rt.getFieldValue,getFieldsValue:rt.getFieldsValue,getFieldError:rt.getFieldError,getFieldWarning:rt.getFieldWarning,getFieldsError:rt.getFieldsError,isFieldsTouched:rt.isFieldsTouched,isFieldTouched:rt.isFieldTouched,isFieldValidating:rt.isFieldValidating,isFieldsValidating:rt.isFieldsValidating,resetFields:rt.resetFields,setFields:rt.setFields,setFieldValue:rt.setFieldValue,setFieldsValue:rt.setFieldsValue,validateFields:rt.validateFields,submit:rt.submit,_init:!0,getInternalHooks:rt.getInternalHooks}}),_defineProperty$c(this,"getInternalHooks",function(st){return st===HOOK_MARK?(rt.formHooked=!0,{dispatch:rt.dispatch,initEntityValue:rt.initEntityValue,registerField:rt.registerField,useSubscribe:rt.useSubscribe,setInitialValues:rt.setInitialValues,destroyForm:rt.destroyForm,setCallbacks:rt.setCallbacks,setValidateMessages:rt.setValidateMessages,getFields:rt.getFields,setPreserve:rt.setPreserve,getInitialValue:rt.getInitialValue,registerWatch:rt.registerWatch}):(warningOnce$1(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_defineProperty$c(this,"useSubscribe",function(st){rt.subscribable=st}),_defineProperty$c(this,"prevWithoutPreserves",null),_defineProperty$c(this,"setInitialValues",function(st,ct){if(rt.initialValues=st||{},ct){var ut,ft=merge$8(st,rt.store);(ut=rt.prevWithoutPreserves)===null||ut===void 0||ut.map(function(gt){var xt=gt.key;ft=set$2(ft,xt,get$7(st,xt))}),rt.prevWithoutPreserves=null,rt.updateStore(ft)}}),_defineProperty$c(this,"destroyForm",function(){var st=new NameMap;rt.getFieldEntities(!0).forEach(function(ct){rt.isMergedPreserve(ct.isPreserve())||st.set(ct.getNamePath(),!0)}),rt.prevWithoutPreserves=st}),_defineProperty$c(this,"getInitialValue",function(st){var ct=get$7(rt.initialValues,st);return st.length?merge$8(ct):ct}),_defineProperty$c(this,"setCallbacks",function(st){rt.callbacks=st}),_defineProperty$c(this,"setValidateMessages",function(st){rt.validateMessages=st}),_defineProperty$c(this,"setPreserve",function(st){rt.preserve=st}),_defineProperty$c(this,"watchList",[]),_defineProperty$c(this,"registerWatch",function(st){return rt.watchList.push(st),function(){rt.watchList=rt.watchList.filter(function(ct){return ct!==st})}}),_defineProperty$c(this,"notifyWatch",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(rt.watchList.length){var ct=rt.getFieldsValue(),ut=rt.getFieldsValue(!0);rt.watchList.forEach(function(ft){ft(ct,ut,st)})}}),_defineProperty$c(this,"timeoutId",null),_defineProperty$c(this,"warningUnhooked",function(){}),_defineProperty$c(this,"updateStore",function(st){rt.store=st}),_defineProperty$c(this,"getFieldEntities",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return st?rt.fieldEntities.filter(function(ct){return ct.getNamePath().length}):rt.fieldEntities}),_defineProperty$c(this,"getFieldsMap",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ct=new NameMap;return rt.getFieldEntities(st).forEach(function(ut){var ft=ut.getNamePath();ct.set(ft,ut)}),ct}),_defineProperty$c(this,"getFieldEntitiesForNamePathList",function(st){if(!st)return rt.getFieldEntities(!0);var ct=rt.getFieldsMap(!0);return st.map(function(ut){var ft=getNamePath(ut);return ct.get(ft)||{INVALIDATE_NAME_PATH:getNamePath(ut)}})}),_defineProperty$c(this,"getFieldsValue",function(st,ct){rt.warningUnhooked();var ut,ft,gt;if(st===!0||Array.isArray(st)?(ut=st,ft=ct):st&&_typeof$e(st)==="object"&&(gt=st.strict,ft=st.filter),ut===!0&&!ft)return rt.store;var xt=rt.getFieldEntitiesForNamePathList(Array.isArray(ut)?ut:null),$t=[];return xt.forEach(function(_t){var wt,Tt,Rt="INVALIDATE_NAME_PATH"in _t?_t.INVALIDATE_NAME_PATH:_t.getNamePath();if(gt){var It,At;if((It=(At=_t).isList)!==null&&It!==void 0&&It.call(At))return}else if(!ut&&(wt=(Tt=_t).isListField)!==null&&wt!==void 0&&wt.call(Tt))return;if(!ft)$t.push(Rt);else{var jt="getMeta"in _t?_t.getMeta():null;ft(jt)&&$t.push(Rt)}}),cloneByNamePathList(rt.store,$t.map(getNamePath))}),_defineProperty$c(this,"getFieldValue",function(st){rt.warningUnhooked();var ct=getNamePath(st);return get$7(rt.store,ct)}),_defineProperty$c(this,"getFieldsError",function(st){rt.warningUnhooked();var ct=rt.getFieldEntitiesForNamePathList(st);return ct.map(function(ut,ft){return ut&&!("INVALIDATE_NAME_PATH"in ut)?{name:ut.getNamePath(),errors:ut.getErrors(),warnings:ut.getWarnings()}:{name:getNamePath(st[ft]),errors:[],warnings:[]}})}),_defineProperty$c(this,"getFieldError",function(st){rt.warningUnhooked();var ct=getNamePath(st),ut=rt.getFieldsError([ct])[0];return ut.errors}),_defineProperty$c(this,"getFieldWarning",function(st){rt.warningUnhooked();var ct=getNamePath(st),ut=rt.getFieldsError([ct])[0];return ut.warnings}),_defineProperty$c(this,"isFieldsTouched",function(){rt.warningUnhooked();for(var st=arguments.length,ct=new Array(st),ut=0;ut0&&arguments[0]!==void 0?arguments[0]:{},ct=new NameMap,ut=rt.getFieldEntities(!0);ut.forEach(function(xt){var $t=xt.props.initialValue,_t=xt.getNamePath();if($t!==void 0){var wt=ct.get(_t)||new Set;wt.add({entity:xt,value:$t}),ct.set(_t,wt)}});var ft=function($t){$t.forEach(function(_t){var wt=_t.props.initialValue;if(wt!==void 0){var Tt=_t.getNamePath(),Rt=rt.getInitialValue(Tt);if(Rt!==void 0)warningOnce$1(!1,"Form already set 'initialValues' with path '".concat(Tt.join("."),"'. Field can not overwrite it."));else{var It=ct.get(Tt);if(It&&It.size>1)warningOnce$1(!1,"Multiple Field with path '".concat(Tt.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(It){var At=rt.getFieldValue(Tt),jt=_t.isListField();!jt&&(!st.skipExist||At===void 0)&&rt.updateStore(set$2(rt.store,Tt,_toConsumableArray$3(It)[0].value))}}}})},gt;st.entities?gt=st.entities:st.namePathList?(gt=[],st.namePathList.forEach(function(xt){var $t=ct.get(xt);if($t){var _t;(_t=gt).push.apply(_t,_toConsumableArray$3(_toConsumableArray$3($t).map(function(wt){return wt.entity})))}})):gt=ut,ft(gt)}),_defineProperty$c(this,"resetFields",function(st){rt.warningUnhooked();var ct=rt.store;if(!st){rt.updateStore(merge$8(rt.initialValues)),rt.resetWithFieldInitialValue(),rt.notifyObservers(ct,null,{type:"reset"}),rt.notifyWatch();return}var ut=st.map(getNamePath);ut.forEach(function(ft){var gt=rt.getInitialValue(ft);rt.updateStore(set$2(rt.store,ft,gt))}),rt.resetWithFieldInitialValue({namePathList:ut}),rt.notifyObservers(ct,ut,{type:"reset"}),rt.notifyWatch(ut)}),_defineProperty$c(this,"setFields",function(st){rt.warningUnhooked();var ct=rt.store,ut=[];st.forEach(function(ft){var gt=ft.name,xt=_objectWithoutProperties$2(ft,_excluded$1J),$t=getNamePath(gt);ut.push($t),"value"in xt&&rt.updateStore(set$2(rt.store,$t,xt.value)),rt.notifyObservers(ct,[$t],{type:"setField",data:ft})}),rt.notifyWatch(ut)}),_defineProperty$c(this,"getFields",function(){var st=rt.getFieldEntities(!0),ct=st.map(function(ut){var ft=ut.getNamePath(),gt=ut.getMeta(),xt=_objectSpread2(_objectSpread2({},gt),{},{name:ft,value:rt.getFieldValue(ft)});return Object.defineProperty(xt,"originRCField",{value:!0}),xt});return ct}),_defineProperty$c(this,"initEntityValue",function(st){var ct=st.props.initialValue;if(ct!==void 0){var ut=st.getNamePath(),ft=get$7(rt.store,ut);ft===void 0&&rt.updateStore(set$2(rt.store,ut,ct))}}),_defineProperty$c(this,"isMergedPreserve",function(st){var ct=st!==void 0?st:rt.preserve;return ct??!0}),_defineProperty$c(this,"registerField",function(st){rt.fieldEntities.push(st);var ct=st.getNamePath();if(rt.notifyWatch([ct]),st.props.initialValue!==void 0){var ut=rt.store;rt.resetWithFieldInitialValue({entities:[st],skipExist:!0}),rt.notifyObservers(ut,[st.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(ft,gt){var xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(rt.fieldEntities=rt.fieldEntities.filter(function(wt){return wt!==st}),!rt.isMergedPreserve(gt)&&(!ft||xt.length>1)){var $t=ft?void 0:rt.getInitialValue(ct);if(ct.length&&rt.getFieldValue(ct)!==$t&&rt.fieldEntities.every(function(wt){return!matchNamePath(wt.getNamePath(),ct)})){var _t=rt.store;rt.updateStore(set$2(_t,ct,$t,!0)),rt.notifyObservers(_t,[ct],{type:"remove"}),rt.triggerDependenciesUpdate(_t,ct)}}rt.notifyWatch([ct])}}),_defineProperty$c(this,"dispatch",function(st){switch(st.type){case"updateValue":{var ct=st.namePath,ut=st.value;rt.updateValue(ct,ut);break}case"validateField":{var ft=st.namePath,gt=st.triggerName;rt.validateFields([ft],{triggerName:gt});break}}}),_defineProperty$c(this,"notifyObservers",function(st,ct,ut){if(rt.subscribable){var ft=_objectSpread2(_objectSpread2({},ut),{},{store:rt.getFieldsValue(!0)});rt.getFieldEntities().forEach(function(gt){var xt=gt.onStoreChange;xt(st,ct,ft)})}else rt.forceRootUpdate()}),_defineProperty$c(this,"triggerDependenciesUpdate",function(st,ct){var ut=rt.getDependencyChildrenFields(ct);return ut.length&&rt.validateFields(ut),rt.notifyObservers(st,ut,{type:"dependenciesUpdate",relatedFields:[ct].concat(_toConsumableArray$3(ut))}),ut}),_defineProperty$c(this,"updateValue",function(st,ct){var ut=getNamePath(st),ft=rt.store;rt.updateStore(set$2(rt.store,ut,ct)),rt.notifyObservers(ft,[ut],{type:"valueUpdate",source:"internal"}),rt.notifyWatch([ut]);var gt=rt.triggerDependenciesUpdate(ft,ut),xt=rt.callbacks.onValuesChange;if(xt){var $t=cloneByNamePathList(rt.store,[ut]);xt($t,rt.getFieldsValue())}rt.triggerOnFieldsChange([ut].concat(_toConsumableArray$3(gt)))}),_defineProperty$c(this,"setFieldsValue",function(st){rt.warningUnhooked();var ct=rt.store;if(st){var ut=merge$8(rt.store,st);rt.updateStore(ut)}rt.notifyObservers(ct,null,{type:"valueUpdate",source:"external"}),rt.notifyWatch()}),_defineProperty$c(this,"setFieldValue",function(st,ct){rt.setFields([{name:st,value:ct}])}),_defineProperty$c(this,"getDependencyChildrenFields",function(st){var ct=new Set,ut=[],ft=new NameMap;rt.getFieldEntities().forEach(function(xt){var $t=xt.props.dependencies;($t||[]).forEach(function(_t){var wt=getNamePath(_t);ft.update(wt,function(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Tt.add(xt),Tt})})});var gt=function xt($t){var _t=ft.get($t)||new Set;_t.forEach(function(wt){if(!ct.has(wt)){ct.add(wt);var Tt=wt.getNamePath();wt.isFieldDirty()&&Tt.length&&(ut.push(Tt),xt(Tt))}})};return gt(st),ut}),_defineProperty$c(this,"triggerOnFieldsChange",function(st,ct){var ut=rt.callbacks.onFieldsChange;if(ut){var ft=rt.getFields();if(ct){var gt=new NameMap;ct.forEach(function($t){var _t=$t.name,wt=$t.errors;gt.set(_t,wt)}),ft.forEach(function($t){$t.errors=gt.get($t.name)||$t.errors})}var xt=ft.filter(function($t){var _t=$t.name;return containsNamePath(st,_t)});xt.length&&ut(xt,ft)}}),_defineProperty$c(this,"validateFields",function(st,ct){rt.warningUnhooked();var ut,ft;Array.isArray(st)||typeof st=="string"||typeof ct=="string"?(ut=st,ft=ct):ft=st;var gt=!!ut,xt=gt?ut.map(getNamePath):[],$t=[],_t=String(Date.now()),wt=new Set,Tt=ft||{},Rt=Tt.recursive,It=Tt.dirty;rt.getFieldEntities(!0).forEach(function(kt){if(gt||xt.push(kt.getNamePath()),!(!kt.props.rules||!kt.props.rules.length)&&!(It&&!kt.isFieldDirty())){var Ft=kt.getNamePath();if(wt.add(Ft.join(_t)),!gt||containsNamePath(xt,Ft,Rt)){var Ht=kt.validateRules(_objectSpread2({validateMessages:_objectSpread2(_objectSpread2({},defaultValidateMessages),rt.validateMessages)},ft));$t.push(Ht.then(function(){return{name:Ft,errors:[],warnings:[]}}).catch(function(Wt){var Vt,qt=[],Xt=[];return(Vt=Wt.forEach)===null||Vt===void 0||Vt.call(Wt,function(Gt){var Zt=Gt.rule.warningOnly,er=Gt.errors;Zt?Xt.push.apply(Xt,_toConsumableArray$3(er)):qt.push.apply(qt,_toConsumableArray$3(er))}),qt.length?Promise.reject({name:Ft,errors:qt,warnings:Xt}):{name:Ft,errors:qt,warnings:Xt}}))}}});var At=allPromiseFinish($t);rt.lastValidatePromise=At,At.catch(function(kt){return kt}).then(function(kt){var Ft=kt.map(function(Ht){var Wt=Ht.name;return Wt});rt.notifyObservers(rt.store,Ft,{type:"validateFinish"}),rt.triggerOnFieldsChange(Ft,kt)});var jt=At.then(function(){return rt.lastValidatePromise===At?Promise.resolve(rt.getFieldsValue(xt)):Promise.reject([])}).catch(function(kt){var Ft=kt.filter(function(Ht){return Ht&&Ht.errors.length});return Promise.reject({values:rt.getFieldsValue(xt),errorFields:Ft,outOfDate:rt.lastValidatePromise!==At})});jt.catch(function(kt){return kt});var Nt=xt.filter(function(kt){return wt.has(kt.join(_t))});return rt.triggerOnFieldsChange(Nt),jt}),_defineProperty$c(this,"submit",function(){rt.warningUnhooked(),rt.validateFields().then(function(st){var ct=rt.callbacks.onFinish;if(ct)try{ct(st)}catch(ut){console.error(ut)}}).catch(function(st){var ct=rt.callbacks.onFinishFailed;ct&&ct(st)})}),this.forceRootUpdate=et});function useForm$1(_e){var et=reactExports.useRef(),rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[1];if(!et.current)if(_e)et.current=_e;else{var ut=function(){ct({})},ft=new FormStore(ut);et.current=ft.getForm()}return[et.current]}var FormContext$1=reactExports.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider$1=function(et){var rt=et.validateMessages,st=et.onFormChange,ct=et.onFormFinish,ut=et.children,ft=reactExports.useContext(FormContext$1),gt=reactExports.useRef({});return reactExports.createElement(FormContext$1.Provider,{value:_objectSpread2(_objectSpread2({},ft),{},{validateMessages:_objectSpread2(_objectSpread2({},ft.validateMessages),rt),triggerFormChange:function($t,_t){st&&st($t,{changedFields:_t,forms:gt.current}),ft.triggerFormChange($t,_t)},triggerFormFinish:function($t,_t){ct&&ct($t,{values:_t,forms:gt.current}),ft.triggerFormFinish($t,_t)},registerForm:function($t,_t){$t&&(gt.current=_objectSpread2(_objectSpread2({},gt.current),{},_defineProperty$c({},$t,_t))),ft.registerForm($t,_t)},unregisterForm:function($t){var _t=_objectSpread2({},gt.current);delete _t[$t],gt.current=_t,ft.unregisterForm($t)}})},ut)},_excluded$1I=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Form$2=function(et,rt){var st=et.name,ct=et.initialValues,ut=et.fields,ft=et.form,gt=et.preserve,xt=et.children,$t=et.component,_t=$t===void 0?"form":$t,wt=et.validateMessages,Tt=et.validateTrigger,Rt=Tt===void 0?"onChange":Tt,It=et.onValuesChange,At=et.onFieldsChange,jt=et.onFinish,Nt=et.onFinishFailed,kt=_objectWithoutProperties$2(et,_excluded$1I),Ft=reactExports.useContext(FormContext$1),Ht=useForm$1(ft),Wt=_slicedToArray$3(Ht,1),Vt=Wt[0],qt=Vt.getInternalHooks(HOOK_MARK),Xt=qt.useSubscribe,Gt=qt.setInitialValues,Zt=qt.setCallbacks,er=qt.setValidateMessages,lr=qt.setPreserve,cr=qt.destroyForm;reactExports.useImperativeHandle(rt,function(){return Vt}),reactExports.useEffect(function(){return Ft.registerForm(st,Vt),function(){Ft.unregisterForm(st)}},[Ft,Vt,st]),er(_objectSpread2(_objectSpread2({},Ft.validateMessages),wt)),Zt({onValuesChange:It,onFieldsChange:function(mr){if(Ft.triggerFormChange(st,mr),At){for(var Er=arguments.length,Tr=new Array(Er>1?Er-1:0),Mr=1;Mr{}}),NoStyleItemContext=reactExports.createContext(null),FormProvider=_e=>{const et=omit$2(_e,["prefixCls"]);return reactExports.createElement(FormProvider$1,Object.assign({},et))},FormItemPrefixContext=reactExports.createContext({prefixCls:""}),FormItemInputContext=reactExports.createContext({}),NoFormStyle=_e=>{let{children:et,status:rt,override:st}=_e;const ct=reactExports.useContext(FormItemInputContext),ut=reactExports.useMemo(()=>{const ft=Object.assign({},ct);return st&&delete ft.isFormItemInput,rt&&(delete ft.status,delete ft.hasFeedback,delete ft.feedbackIcon),ft},[rt,st,ct]);return reactExports.createElement(FormItemInputContext.Provider,{value:ut},et)},VariantContext=reactExports.createContext(void 0);function voidFunc(){}const WatermarkContext=reactExports.createContext({add:voidFunc,remove:voidFunc});function usePanelRef(_e){const et=reactExports.useContext(WatermarkContext),rt=reactExports.useRef();return useEvent(ct=>{if(ct){const ut=_e?ct.querySelector(_e):ct;et.add(ut),rt.current=ut}else et.remove(rt.current)})}const NormalCancelBtn=()=>{const{cancelButtonProps:_e,cancelTextLocale:et,onCancel:rt}=reactExports.useContext(ModalContext);return React$1.createElement(Button$3,Object.assign({onClick:rt},_e),et)},NormalCancelBtn$1=NormalCancelBtn,NormalOkBtn=()=>{const{confirmLoading:_e,okButtonProps:et,okType:rt,okTextLocale:st,onOk:ct}=reactExports.useContext(ModalContext);return React$1.createElement(Button$3,Object.assign({},convertLegacyProps(rt),{loading:_e,onClick:ct},et),st)},NormalOkBtn$1=NormalOkBtn;function renderCloseIcon(_e,et){return React$1.createElement("span",{className:`${_e}-close-x`},et||React$1.createElement(CloseOutlined$1,{className:`${_e}-close-icon`}))}const Footer$4=_e=>{const{okText:et,okType:rt="primary",cancelText:st,confirmLoading:ct,onOk:ut,onCancel:ft,okButtonProps:gt,cancelButtonProps:xt,footer:$t}=_e,[_t]=useLocale$3("Modal",getConfirmLocale()),wt=et||(_t==null?void 0:_t.okText),Tt=st||(_t==null?void 0:_t.cancelText),Rt={confirmLoading:ct,okButtonProps:gt,cancelButtonProps:xt,okTextLocale:wt,cancelTextLocale:Tt,okType:rt,onOk:ut,onCancel:ft},It=React$1.useMemo(()=>Rt,_toConsumableArray$3(Object.values(Rt)));let At;return typeof $t=="function"||typeof $t>"u"?(At=React$1.createElement(React$1.Fragment,null,React$1.createElement(NormalCancelBtn$1,null),React$1.createElement(NormalOkBtn$1,null)),typeof $t=="function"&&(At=$t(At,{OkBtn:NormalOkBtn$1,CancelBtn:NormalCancelBtn$1})),At=React$1.createElement(ModalContextProvider,{value:It},At)):At=$t,React$1.createElement(DisabledContextProvider,{disabled:!1},At)},initMotionCommon=_e=>({animationDuration:_e,animationFillMode:"both"}),initMotionCommonLeave=_e=>({animationDuration:_e,animationFillMode:"both"}),initMotion=function(_e,et,rt,st){const ut=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${ut}${_e}-enter, ${ut}${_e}-appear `]:Object.assign(Object.assign({},initMotionCommon(st)),{animationPlayState:"paused"}),[`${ut}${_e}-leave`]:Object.assign(Object.assign({},initMotionCommonLeave(st)),{animationPlayState:"paused"}),[` @@ -228,10 +228,10 @@ html body { opacity ${_e.motionDurationMid} ${_e.motionEaseInOut} !important`}},[`${_e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${_e.motionDurationMid} ${_e.motionEaseInOut}, opacity ${_e.motionDurationMid} ${_e.motionEaseInOut} !important`}}});function box(_e){return{position:_e,inset:0}}const genModalMaskStyle=_e=>{const{componentCls:et,antCls:rt}=_e;return[{[`${et}-root`]:{[`${et}${rt}-zoom-enter, ${et}${rt}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:_e.motionDurationSlow,userSelect:"none"},[`${et}${rt}-zoom-leave ${et}-content`]:{pointerEvents:"none"},[`${et}-mask`]:Object.assign(Object.assign({},box("fixed")),{zIndex:_e.zIndexPopupBase,height:"100%",backgroundColor:_e.colorBgMask,pointerEvents:"none",[`${et}-hidden`]:{display:"none"}}),[`${et}-wrap`]:Object.assign(Object.assign({},box("fixed")),{zIndex:_e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${et}${rt}-zoom-enter), &:has(${et}${rt}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${et}-root`]:initFadeMotion(_e)}]},genModalStyle=_e=>{const{componentCls:et}=_e;return[{[`${et}-root`]:{[`${et}-wrap-rtl`]:{direction:"rtl"},[`${et}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[et]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${_e.screenSMMax}px)`]:{[et]:{maxWidth:"calc(100vw - 16px)",margin:`${unit$1(_e.marginXS)} auto`},[`${et}-centered`]:{[et]:{flex:1}}}}},{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit$1(_e.calc(_e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:_e.paddingLG,[`${et}-title`]:{margin:0,color:_e.titleColor,fontWeight:_e.fontWeightStrong,fontSize:_e.titleFontSize,lineHeight:_e.titleLineHeight,wordWrap:"break-word"},[`${et}-content`]:{position:"relative",backgroundColor:_e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:_e.borderRadiusLG,boxShadow:_e.boxShadow,pointerEvents:"auto",padding:_e.contentPadding},[`${et}-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:`${unit$1(_e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:_e.modalIconHoverColor,backgroundColor:_e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:_e.closeBtnActiveBg}},genFocusStyle(_e)),[`${et}-header`]:{color:_e.colorText,background:_e.headerBg,borderRadius:`${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0 0`,marginBottom:_e.headerMarginBottom,padding:_e.headerPadding,borderBottom:_e.headerBorderBottom},[`${et}-body`]:{fontSize:_e.fontSize,lineHeight:_e.lineHeight,wordWrap:"break-word",padding:_e.bodyPadding},[`${et}-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}},[`${et}-open`]:{overflow:"hidden"}})},{[`${et}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${et}-content, ${et}-body, - ${et}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${et}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-root`]:{[`${et}-wrap-rtl`]:{direction:"rtl",[`${et}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$2=_e=>{const et=_e.padding,rt=_e.fontSizeHeading5,st=_e.lineHeightHeading5;return merge$7(_e,{modalHeaderHeight:_e.calc(_e.calc(st).mul(rt).equal()).add(_e.calc(et).mul(2).equal()).equal(),modalFooterBorderColorSplit:_e.colorSplit,modalFooterBorderStyle:_e.lineType,modalFooterBorderWidth:_e.lineWidth,modalIconHoverColor:_e.colorIconHover,modalCloseIconColor:_e.colorIcon,modalCloseBtnSize:_e.fontHeight,modalConfirmIconSize:_e.fontHeight,modalTitleHeight:_e.calc(_e.titleFontSize).mul(_e.titleLineHeight).equal()})},prepareComponentToken$w=_e=>({footerBg:"transparent",headerBg:_e.colorBgElevated,titleLineHeight:_e.lineHeightHeading5,titleFontSize:_e.fontSizeHeading5,contentBg:_e.colorBgElevated,titleColor:_e.colorTextHeading,closeBtnHoverBg:_e.wireframe?"transparent":_e.colorFillContent,closeBtnActiveBg:_e.wireframe?"transparent":_e.colorFillContentHover,contentPadding:_e.wireframe?0:`${unit$1(_e.paddingMD)} ${unit$1(_e.paddingContentHorizontalLG)}`,headerPadding:_e.wireframe?`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`:0,headerBorderBottom:_e.wireframe?`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`:"none",headerMarginBottom:_e.wireframe?0:_e.marginXS,bodyPadding:_e.wireframe?_e.paddingLG:0,footerPadding:_e.wireframe?`${unit$1(_e.paddingXS)} ${unit$1(_e.padding)}`:0,footerBorderTop:_e.wireframe?`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`:"none",footerBorderRadius:_e.wireframe?`0 0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)}`:0,footerMarginTop:_e.wireframe?0:_e.marginSM,confirmBodyPadding:_e.wireframe?`${unit$1(_e.padding*2)} ${unit$1(_e.padding*2)} ${unit$1(_e.paddingLG)}`:0,confirmIconMarginInlineEnd:_e.wireframe?_e.margin:_e.marginSM,confirmBtnsMarginTop:_e.wireframe?_e.marginLG:_e.marginSM}),useStyle$S=genStyleHooks("Modal",_e=>{const et=prepareToken$2(_e);return[genModalStyle(et),genRTLStyle(et),genModalMaskStyle(et),initZoomMotion(et,"zoom")]},prepareComponentToken$w,{unitless:{titleLineHeight:!0}});var __rest$Z=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{mousePosition={x:_e.pageX,y:_e.pageY},setTimeout(()=>{mousePosition=null},100)};canUseDocElement()&&document.documentElement.addEventListener("click",getClickPosition,!0);const Modal$1=_e=>{var et;const{getPopupContainer:rt,getPrefixCls:st,direction:ct,modal:ut}=reactExports.useContext(ConfigContext$1),ft=mr=>{const{onCancel:Sr}=_e;Sr==null||Sr(mr)},gt=mr=>{const{onOk:Sr}=_e;Sr==null||Sr(mr)},{prefixCls:xt,className:$t,rootClassName:_t,open:wt,wrapClassName:Tt,centered:Rt,getContainer:It,closeIcon:At,closable:jt,focusTriggerAfterClose:Nt=!0,style:kt,visible:Ft,width:Ht=520,footer:Wt,classNames:Vt,styles:qt}=_e,Gt=__rest$Z(_e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Xt=st("modal",xt),Zt=st(),lr=useCSSVarCls(Xt),[er,cr,ur]=useStyle$S(Xt,lr),pr=classNames(Tt,{[`${Xt}-centered`]:!!Rt,[`${Xt}-wrap-rtl`]:ct==="rtl"}),hr=Wt!==null&&reactExports.createElement(Footer$4,Object.assign({},_e,{onOk:gt,onCancel:ft})),[fr,dr]=useClosable(jt,typeof At<"u"?At:ut==null?void 0:ut.closeIcon,mr=>renderCloseIcon(Xt,mr),reactExports.createElement(CloseOutlined$1,{className:`${Xt}-close-icon`}),!0),yr=usePanelRef(`.${Xt}-content`),[$r,Er]=useZIndex("Modal",Gt.zIndex);return er(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{status:!0,override:!0},reactExports.createElement(zIndexContext$1.Provider,{value:Er},reactExports.createElement(DialogWrap$1,Object.assign({width:Ht},Gt,{zIndex:$r,getContainer:It===void 0?rt:It,prefixCls:Xt,rootClassName:classNames(cr,_t,ur,lr),footer:hr,visible:wt??Ft,mousePosition:(et=Gt.mousePosition)!==null&&et!==void 0?et:mousePosition,onClose:ft,closable:fr,closeIcon:dr,focusTriggerAfterClose:Nt,transitionName:getTransitionName(Zt,"zoom",_e.transitionName),maskTransitionName:getTransitionName(Zt,"fade",_e.maskTransitionName),className:classNames(cr,$t,ut==null?void 0:ut.className),style:Object.assign(Object.assign({},ut==null?void 0:ut.style),kt),classNames:Object.assign(Object.assign(Object.assign({},ut==null?void 0:ut.classNames),Vt),{wrapper:classNames(pr,Vt==null?void 0:Vt.wrapper)}),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),qt),panelRef:yr}))))))},OriginModal=Modal$1,genModalConfirmStyle=_e=>{const{componentCls:et,titleFontSize:rt,titleLineHeight:st,modalConfirmIconSize:ct,fontSize:ut,lineHeight:ft,modalTitleHeight:gt,fontHeight:xt,confirmBodyPadding:$t}=_e,_t=`${et}-confirm`;return{[_t]:{"&-rtl":{direction:"rtl"},[`${_e.antCls}-modal-header`]:{display:"none"},[`${_t}-body-wrapper`]:Object.assign({},clearFix()),[`&${et} ${et}-body`]:{padding:$t},[`${_t}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${_e.iconCls}`]:{flex:"none",fontSize:ct,marginInlineEnd:_e.confirmIconMarginInlineEnd,marginTop:_e.calc(_e.calc(xt).sub(ct).equal()).div(2).equal()},[`&-has-title > ${_e.iconCls}`]:{marginTop:_e.calc(_e.calc(gt).sub(ct).equal()).div(2).equal()}},[`${_t}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:_e.marginXS,maxWidth:`calc(100% - ${unit$1(_e.calc(_e.modalConfirmIconSize).add(_e.marginSM).equal())})`},[`${_t}-title`]:{color:_e.colorTextHeading,fontWeight:_e.fontWeightStrong,fontSize:rt,lineHeight:st},[`${_t}-content`]:{color:_e.colorText,fontSize:ut,lineHeight:ft},[`${_t}-btns`]:{textAlign:"end",marginTop:_e.confirmBtnsMarginTop,[`${_e.antCls}-btn + ${_e.antCls}-btn`]:{marginBottom:0,marginInlineStart:_e.marginXS}}},[`${_t}-error ${_t}-body > ${_e.iconCls}`]:{color:_e.colorError},[`${_t}-warning ${_t}-body > ${_e.iconCls}, - ${_t}-confirm ${_t}-body > ${_e.iconCls}`]:{color:_e.colorWarning},[`${_t}-info ${_t}-body > ${_e.iconCls}`]:{color:_e.colorInfo},[`${_t}-success ${_t}-body > ${_e.iconCls}`]:{color:_e.colorSuccess}}},Confirm=genSubStyleComponent(["Modal","confirm"],_e=>{const et=prepareToken$2(_e);return[genModalConfirmStyle(et)]},prepareComponentToken$w,{order:-1e3});var __rest$Y=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctkt,_toConsumableArray$3(Object.values(kt))),Ht=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(CancelBtn,null),reactExports.createElement(OkBtn,null)),Wt=_e.title!==void 0&&_e.title!==null,Vt=`${ut}-body`;return reactExports.createElement("div",{className:`${ut}-body-wrapper`},reactExports.createElement("div",{className:classNames(Vt,{[`${Vt}-has-title`]:Wt})},wt,reactExports.createElement("div",{className:`${ut}-paragraph`},Wt&&reactExports.createElement("span",{className:`${ut}-title`},_e.title),reactExports.createElement("div",{className:`${ut}-content`},_e.content))),xt===void 0||typeof xt=="function"?reactExports.createElement(ModalContextProvider,{value:Ft},reactExports.createElement("div",{className:`${ut}-btns`},typeof xt=="function"?xt(Ht,{OkBtn,CancelBtn}):Ht)):xt,reactExports.createElement(Confirm,{prefixCls:et}))}const ConfirmDialog=_e=>{const{close:et,zIndex:rt,afterClose:st,open:ct,keyboard:ut,centered:ft,getContainer:gt,maskStyle:xt,direction:$t,prefixCls:_t,wrapClassName:wt,rootPrefixCls:Tt,bodyStyle:Rt,closable:It=!1,closeIcon:At,modalRender:jt,focusTriggerAfterClose:Nt,onConfirm:kt,styles:Ft}=_e,Ht=`${_t}-confirm`,Wt=_e.width||416,Vt=_e.style||{},qt=_e.mask===void 0?!0:_e.mask,Gt=_e.maskClosable===void 0?!1:_e.maskClosable,Xt=classNames(Ht,`${Ht}-${_e.type}`,{[`${Ht}-rtl`]:$t==="rtl"},_e.className),[,Zt]=useToken$4(),lr=reactExports.useMemo(()=>rt!==void 0?rt:Zt.zIndexPopupBase+CONTAINER_MAX_OFFSET,[rt,Zt]);return reactExports.createElement(OriginModal,{prefixCls:_t,className:Xt,wrapClassName:classNames({[`${Ht}-centered`]:!!_e.centered},wt),onCancel:()=>{et==null||et({triggerCancel:!0}),kt==null||kt(!1)},open:ct,title:"",footer:null,transitionName:getTransitionName(Tt||"","zoom",_e.transitionName),maskTransitionName:getTransitionName(Tt||"","fade",_e.maskTransitionName),mask:qt,maskClosable:Gt,style:Vt,styles:Object.assign({body:Rt,mask:xt},Ft),width:Wt,zIndex:lr,afterClose:st,keyboard:ut,centered:ft,getContainer:gt,closable:It,closeIcon:At,modalRender:jt,focusTriggerAfterClose:Nt},reactExports.createElement(ConfirmContent,Object.assign({},_e,{confirmPrefixCls:Ht})))},ConfirmDialogWrapper=_e=>{const{rootPrefixCls:et,iconPrefixCls:rt,direction:st,theme:ct}=_e;return reactExports.createElement(ConfigProvider$1,{prefixCls:et,iconPrefixCls:rt,direction:st,theme:ct},reactExports.createElement(ConfirmDialog,Object.assign({},_e)))},ConfirmDialog$1=ConfirmDialogWrapper;function withWarn(_e){return Object.assign(Object.assign({},_e),{type:"warning"})}function withInfo(_e){return Object.assign(Object.assign({},_e),{type:"info"})}function withSuccess(_e){return Object.assign(Object.assign({},_e),{type:"success"})}function withError(_e){return Object.assign(Object.assign({},_e),{type:"error"})}function withConfirm(_e){return Object.assign(Object.assign({},_e),{type:"confirm"})}var __rest$X=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,{afterClose:st,config:ct}=_e,ut=__rest$X(_e,["afterClose","config"]);const[ft,gt]=reactExports.useState(!0),[xt,$t]=reactExports.useState(ct),{direction:_t,getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Tt=wt("modal"),Rt=wt(),It=()=>{var kt;st(),(kt=xt.afterClose)===null||kt===void 0||kt.call(xt)},At=function(){gt(!1);for(var kt=arguments.length,Ft=new Array(kt),Ht=0;HtVt&&Vt.triggerCancel);xt.onCancel&&Wt&&xt.onCancel.apply(xt,[()=>{}].concat(_toConsumableArray$3(Ft.slice(1))))};reactExports.useImperativeHandle(et,()=>({destroy:At,update:kt=>{$t(Ft=>Object.assign(Object.assign({},Ft),kt))}}));const jt=(rt=xt.okCancel)!==null&&rt!==void 0?rt:xt.type==="confirm",[Nt]=useLocale$3("Modal",localeValues$1.Modal);return reactExports.createElement(ConfirmDialog$1,Object.assign({prefixCls:Tt,rootPrefixCls:Rt},xt,{close:At,open:ft,afterClose:It,okText:xt.okText||(jt?Nt==null?void 0:Nt.okText:Nt==null?void 0:Nt.justOkText),direction:xt.direction||_t,cancelText:xt.cancelText||(Nt==null?void 0:Nt.cancelText)},ut))},HookModal$1=reactExports.forwardRef(HookModal);let uuid$5=0;const ElementsHolder=reactExports.memo(reactExports.forwardRef((_e,et)=>{const[rt,st]=usePatchElement();return reactExports.useImperativeHandle(et,()=>({patchElement:st}),[]),reactExports.createElement(reactExports.Fragment,null,rt)}));function useModal(){const _e=reactExports.useRef(null),[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{et.length&&(_toConsumableArray$3(et).forEach(ft=>{ft()}),rt([]))},[et]);const st=reactExports.useCallback(ut=>function(gt){var xt;uuid$5+=1;const $t=reactExports.createRef();let _t;const wt=new Promise(jt=>{_t=jt});let Tt=!1,Rt;const It=reactExports.createElement(HookModal$1,{key:`modal-${uuid$5}`,config:ut(gt),ref:$t,afterClose:()=>{Rt==null||Rt()},isSilent:()=>Tt,onConfirm:jt=>{_t(jt)}});return Rt=(xt=_e.current)===null||xt===void 0?void 0:xt.patchElement(It),{destroy:()=>{function jt(){var Nt;(Nt=$t.current)===null||Nt===void 0||Nt.destroy()}$t.current?jt():rt(Nt=>[].concat(_toConsumableArray$3(Nt),[jt]))},update:jt=>{function Nt(){var kt;(kt=$t.current)===null||kt===void 0||kt.update(jt)}$t.current?Nt():rt(kt=>[].concat(_toConsumableArray$3(kt),[Nt]))},then:jt=>(Tt=!0,wt.then(jt))}},[]);return[reactExports.useMemo(()=>({info:st(withInfo),success:st(withSuccess),error:st(withError),warning:st(withWarn),confirm:st(withConfirm)}),[]),reactExports.createElement(ElementsHolder,{key:"modal-holder",ref:_e})]}const genNotificationPlacementStyle=_e=>{const{componentCls:et,notificationMarginEdge:rt,animationMaxHeight:st}=_e,ct=`${et}-notice`,ut=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),ft=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-st,opacity:0},"100%":{top:0,opacity:1}}),gt=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:_e.calc(st).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),xt=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[et]:{[`&${et}-top, &${et}-bottom`]:{marginInline:0,[ct]:{marginInline:"auto auto"}},[`&${et}-top`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:ft}},[`&${et}-bottom`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:gt}},[`&${et}-topRight, &${et}-bottomRight`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:ut}},[`&${et}-topLeft, &${et}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:rt,_skip_check_:!0},[ct]:{marginInlineEnd:"auto",marginInlineStart:0},[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:xt}}}}},NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(_e,et)=>{const{componentCls:rt}=_e;return{[`${rt}-${et}`]:{[`&${rt}-stack > ${rt}-notice-wrapper`]:{[et.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[et]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=_e=>{const et={};for(let rt=1;rt<_e.notificationStackLayer;rt++)et[`&:nth-last-child(${rt+1})`]={overflow:"hidden",[`& > ${_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"}},et)},genStackedNoticeStyle=_e=>{const et={};for(let rt=1;rt<_e.notificationStackLayer;rt++)et[`&:nth-last-child(${rt+1})`]={background:_e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},et)},genStackStyle=_e=>{const{componentCls:et}=_e;return Object.assign({[`${et}-stack`]:{[`& > ${et}-notice-wrapper`]:Object.assign({transition:`all ${_e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},genStackChildrenStyle(_e))},[`${et}-stack:not(${et}-stack-expanded)`]:{[`& > ${et}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(_e))},[`${et}-stack${et}-stack-expanded`]:{[`& > ${et}-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"}}}},NotificationPlacements.map(rt=>genPlacementStackStyle(_e,rt)).reduce((rt,st)=>Object.assign(Object.assign({},rt),st),{}))},genNoticeStyle=_e=>{const{iconCls:et,componentCls:rt,boxShadow:st,fontSizeLG:ct,notificationMarginBottom:ut,borderRadiusLG:ft,colorSuccess:gt,colorInfo:xt,colorWarning:$t,colorError:_t,colorTextHeading:wt,notificationBg:Tt,notificationPadding:Rt,notificationMarginEdge:It,fontSize:At,lineHeight:jt,width:Nt,notificationIconSize:kt,colorText:Ft}=_e,Ht=`${rt}-notice`;return{position:"relative",marginBottom:ut,marginInlineStart:"auto",background:Tt,borderRadius:ft,boxShadow:st,[Ht]:{padding:Rt,width:Nt,maxWidth:`calc(100vw - ${unit$1(_e.calc(It).mul(2).equal())})`,overflow:"hidden",lineHeight:jt,wordWrap:"break-word"},[`${rt}-close-icon`]:{fontSize:At,cursor:"pointer"},[`${Ht}-message`]:{marginBottom:_e.marginXS,color:wt,fontSize:ct,lineHeight:_e.lineHeightLG},[`${Ht}-description`]:{fontSize:At,color:Ft},[`${Ht}-closable ${Ht}-message`]:{paddingInlineEnd:_e.paddingLG},[`${Ht}-with-icon ${Ht}-message`]:{marginBottom:_e.marginXS,marginInlineStart:_e.calc(_e.marginSM).add(kt).equal(),fontSize:ct},[`${Ht}-with-icon ${Ht}-description`]:{marginInlineStart:_e.calc(_e.marginSM).add(kt).equal(),fontSize:At},[`${Ht}-icon`]:{position:"absolute",fontSize:kt,lineHeight:1,[`&-success${et}`]:{color:gt},[`&-info${et}`]:{color:xt},[`&-warning${et}`]:{color:$t},[`&-error${et}`]:{color:_t}},[`${Ht}-close`]:{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.closeBtnHoverBg}},[`${Ht}-btn`]:{float:"right",marginTop:_e.marginSM}}},genNotificationStyle=_e=>{const{componentCls:et,notificationMarginBottom:rt,notificationMarginEdge:st,motionDurationMid:ct,motionEaseInOut:ut}=_e,ft=`${et}-notice`,gt=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:_e.animationMaxHeight,marginBottom:rt},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"fixed",zIndex:_e.zIndexPopup,marginRight:{value:st,_skip_check_:!0},[`${et}-hook-holder`]:{position:"relative"},[`${et}-fade-appear-prepare`]:{opacity:"0 !important"},[`${et}-fade-enter, ${et}-fade-appear`]:{animationDuration:_e.motionDurationMid,animationTimingFunction:ut,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${et}-fade-leave`]:{animationTimingFunction:ut,animationFillMode:"both",animationDuration:ct,animationPlayState:"paused"},[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationPlayState:"running"},[`${et}-fade-leave${et}-fade-leave-active`]:{animationName:gt,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${ft}-btn`]:{float:"left"}}})},{[et]:{[`${ft}-wrapper`]:Object.assign({},genNoticeStyle(_e))}}]},prepareComponentToken$v=_e=>({zIndexPopup:_e.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384,closeBtnHoverBg:_e.wireframe?"transparent":_e.colorFillContent}),prepareNotificationToken=_e=>{const et=_e.paddingMD,rt=_e.paddingLG;return merge$7(_e,{notificationBg:_e.colorBgElevated,notificationPaddingVertical:et,notificationPaddingHorizontal:rt,notificationIconSize:_e.calc(_e.fontSizeLG).mul(_e.lineHeightLG).equal(),notificationCloseButtonSize:_e.calc(_e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:_e.margin,notificationPadding:`${unit$1(_e.paddingMD)} ${unit$1(_e.paddingContentHorizontalLG)}`,notificationMarginEdge:_e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},useStyle$R=genStyleHooks("Notification",_e=>{const et=prepareNotificationToken(_e);return[genNotificationStyle(et),genNotificationPlacementStyle(et),genStackStyle(et)]},prepareComponentToken$v);function getCloseIcon(_e,et){return et===null||et===!1?null:et||reactExports.createElement("span",{className:`${_e}-close-x`},reactExports.createElement(CloseOutlined$1,{className:`${_e}-close-icon`}))}const typeToIcon={success:CheckCircleFilled$1,info:InfoCircleFilled$1,error:CloseCircleFilled$3,warning:ExclamationCircleFilled$1},PureContent=_e=>{const{prefixCls:et,icon:rt,type:st,message:ct,description:ut,btn:ft,role:gt="alert"}=_e;let xt=null;return rt?xt=reactExports.createElement("span",{className:`${et}-icon`},rt):st&&(xt=reactExports.createElement(typeToIcon[st]||null,{className:classNames(`${et}-icon`,`${et}-icon-${st}`)})),reactExports.createElement("div",{className:classNames({[`${et}-with-icon`]:xt}),role:gt},xt,reactExports.createElement("div",{className:`${et}-message`},ct),reactExports.createElement("div",{className:`${et}-description`},ut),ft&&reactExports.createElement("div",{className:`${et}-btn`},ft))};function getPlacementStyle(_e,et,rt){let st;switch(_e){case"top":st={left:"50%",transform:"translateX(-50%)",right:"auto",top:et,bottom:"auto"};break;case"topLeft":st={left:0,top:et,bottom:"auto"};break;case"topRight":st={right:0,top:et,bottom:"auto"};break;case"bottom":st={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:rt};break;case"bottomLeft":st={left:0,top:"auto",bottom:rt};break;default:st={right:0,top:"auto",bottom:rt};break}return st}function getMotion$2(_e){return{motionName:`${_e}-fade`}}var __rest$W=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{children:et,prefixCls:rt}=_e;const st=useCSSVarCls(rt),[ct,ut,ft]=useStyle$R(rt,st);return ct(React$1.createElement(NotificationProvider,{classNames:{list:classNames(ut,ft,st)}},et))},renderNotifications=(_e,et)=>{let{prefixCls:rt,key:st}=et;return React$1.createElement(Wrapper,{prefixCls:rt,key:st},_e)},Holder=React$1.forwardRef((_e,et)=>{const{top:rt,bottom:st,prefixCls:ct,getContainer:ut,maxCount:ft,rtl:gt,onAllRemoved:xt,stack:$t,duration:_t}=_e,{getPrefixCls:wt,getPopupContainer:Tt,notification:Rt,direction:It}=reactExports.useContext(ConfigContext$1),[,At]=useToken$4(),jt=ct||wt("notification"),Nt=Vt=>getPlacementStyle(Vt,rt??DEFAULT_OFFSET,st??DEFAULT_OFFSET),kt=()=>classNames({[`${jt}-rtl`]:gt??It==="rtl"}),Ft=()=>getMotion$2(jt),[Ht,Wt]=useNotification$1({prefixCls:jt,style:Nt,className:kt,motion:Ft,closable:!0,closeIcon:getCloseIcon(jt),duration:_t??DEFAULT_DURATION,getContainer:()=>(ut==null?void 0:ut())||(Tt==null?void 0:Tt())||document.body,maxCount:ft,onAllRemoved:xt,renderNotifications,stack:$t===!1?!1:{threshold:typeof $t=="object"?$t==null?void 0:$t.threshold:void 0,offset:8,gap:At.margin}});return React$1.useImperativeHandle(et,()=>Object.assign(Object.assign({},Ht),{prefixCls:jt,notification:Rt})),Wt});function useInternalNotification(_e){const et=React$1.useRef(null);return devUseWarning(),[React$1.useMemo(()=>{const st=gt=>{var xt;if(!et.current)return;const{open:$t,prefixCls:_t,notification:wt}=et.current,Tt=`${_t}-notice`,{message:Rt,description:It,icon:At,type:jt,btn:Nt,className:kt,style:Ft,role:Ht="alert",closeIcon:Wt}=gt,Vt=__rest$W(gt,["message","description","icon","type","btn","className","style","role","closeIcon"]),qt=getCloseIcon(Tt,typeof Wt<"u"?Wt:wt==null?void 0:wt.closeIcon);return $t(Object.assign(Object.assign({placement:(xt=_e==null?void 0:_e.placement)!==null&&xt!==void 0?xt:DEFAULT_PLACEMENT},Vt),{content:React$1.createElement(PureContent,{prefixCls:Tt,icon:At,type:jt,message:Rt,description:It,btn:Nt,role:Ht}),className:classNames(jt&&`${Tt}-${jt}`,kt,wt==null?void 0:wt.className),style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Ft),closeIcon:qt,closable:!!qt}))},ut={open:st,destroy:gt=>{var xt,$t;gt!==void 0?(xt=et.current)===null||xt===void 0||xt.close(gt):($t=et.current)===null||$t===void 0||$t.destroy()}};return["success","info","warning","error"].forEach(gt=>{ut[gt]=xt=>st(Object.assign(Object.assign({},xt),{type:gt}))}),ut},[]),React$1.createElement(Holder,Object.assign({key:"notification-holder"},_e,{ref:et}))]}function useNotification(_e){return useInternalNotification(_e)}const AppConfigContext=React$1.createContext({}),AppContext=React$1.createContext({message:{},notification:{},modal:{}}),AppContext$1=AppContext,genBaseStyle$d=_e=>{const{componentCls:et,colorText:rt,fontSize:st,lineHeight:ct,fontFamily:ut}=_e;return{[et]:{color:rt,fontSize:st,lineHeight:ct,fontFamily:ut}}},prepareComponentToken$u=()=>({}),useStyle$Q=genStyleHooks("App",genBaseStyle$d,prepareComponentToken$u),useApp=()=>React$1.useContext(AppContext$1),App$1=_e=>{const{prefixCls:et,children:rt,className:st,rootClassName:ct,message:ut,notification:ft,style:gt,component:xt="div"}=_e,{getPrefixCls:$t}=reactExports.useContext(ConfigContext$1),_t=$t("app",et),[wt,Tt,Rt]=useStyle$Q(_t),It=classNames(Tt,_t,st,ct,Rt),At=reactExports.useContext(AppConfigContext),jt=React$1.useMemo(()=>({message:Object.assign(Object.assign({},At.message),ut),notification:Object.assign(Object.assign({},At.notification),ft)}),[ut,ft,At.message,At.notification]),[Nt,kt]=useMessage(jt.message),[Ft,Ht]=useNotification(jt.notification),[Wt,Vt]=useModal(),qt=React$1.useMemo(()=>({message:Nt,notification:Ft,modal:Wt}),[Nt,Ft,Wt]),Gt=xt===!1?React$1.Fragment:xt,Xt={className:It,style:gt};return wt(React$1.createElement(AppContext$1.Provider,{value:qt},React$1.createElement(AppConfigContext.Provider,{value:jt},React$1.createElement(Gt,Object.assign({},xt===!1?void 0:Xt),Vt,kt,Ht,rt))))};App$1.useApp=useApp;const AntdApp=App$1;function withPureRenderTheme(_e){return et=>reactExports.createElement(ConfigProvider$1,{theme:{token:{motion:!1,zIndexPopupBase:0}}},reactExports.createElement(_e,Object.assign({},et)))}const genPurePanel=(_e,et,rt,st)=>withPureRenderTheme(ut=>{const{prefixCls:ft,style:gt}=ut,xt=reactExports.useRef(null),[$t,_t]=reactExports.useState(0),[wt,Tt]=reactExports.useState(0),[Rt,It]=useMergedState(!1,{value:ut.open}),{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),jt=At(et||"select",ft);reactExports.useEffect(()=>{if(It(!0),typeof ResizeObserver<"u"){const Ft=new ResizeObserver(Wt=>{const Vt=Wt[0].target;_t(Vt.offsetHeight+8),Tt(Vt.offsetWidth)}),Ht=setInterval(()=>{var Wt;const Vt=rt?`.${rt(jt)}`:`.${jt}-dropdown`,qt=(Wt=xt.current)===null||Wt===void 0?void 0:Wt.querySelector(Vt);qt&&(clearInterval(Ht),Ft.observe(qt))},10);return()=>{clearInterval(Ht),Ft.disconnect()}}},[]);let Nt=Object.assign(Object.assign({},ut),{style:Object.assign(Object.assign({},gt),{margin:0}),open:Rt,visible:Rt,getPopupContainer:()=>xt.current});st&&(Nt=st(Nt));const kt={paddingBottom:$t,position:"relative",minWidth:wt};return reactExports.createElement("div",{ref:xt,style:kt},reactExports.createElement(_e,Object.assign({},Nt)))}),isMobile=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 TransBtn$2=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear$2=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn$2,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext$2=reactExports.createContext(null);function useBaseProps$2(){return reactExports.useContext(BaseSelectContext$2)}function useDelayReset$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl$2(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var _excluded$1H=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED$1=void 0;function InternalItem(_e,et){var rt=_e.prefixCls,st=_e.invalidate,ct=_e.item,ut=_e.renderItem,ft=_e.responsive,gt=_e.responsiveDisabled,xt=_e.registerSize,$t=_e.itemKey,_t=_e.className,wt=_e.style,Tt=_e.children,Rt=_e.display,It=_e.order,At=_e.component,jt=At===void 0?"div":At,Nt=_objectWithoutProperties$2(_e,_excluded$1H),kt=ft&&!Rt;function Ft(Gt){xt($t,Gt)}reactExports.useEffect(function(){return function(){Ft(null)}},[]);var Ht=ut&&ct!==UNDEFINED$1?ut(ct):Tt,Wt;st||(Wt={opacity:kt?0:1,height:kt?0:UNDEFINED$1,overflowY:kt?"hidden":UNDEFINED$1,order:ft?It:UNDEFINED$1,pointerEvents:kt?"none":UNDEFINED$1,position:kt?"absolute":UNDEFINED$1});var Vt={};kt&&(Vt["aria-hidden"]=!0);var qt=reactExports.createElement(jt,_extends$b({className:classNames(!st&&rt,_t),style:_objectSpread2(_objectSpread2({},Wt),wt)},Vt,Nt,{ref:et}),Ht);return ft&&(qt=reactExports.createElement(RefResizeObserver,{onResize:function(Xt){var Zt=Xt.offsetWidth;Ft(Zt)},disabled:gt},qt)),qt}var Item$6=reactExports.forwardRef(InternalItem);Item$6.displayName="Item";function channelUpdate(_e){if(typeof MessageChannel>"u")wrapperRaf(_e);else{var et=new MessageChannel;et.port1.onmessage=function(){return _e()},et.port2.postMessage(void 0)}}function useBatcher(){var _e=reactExports.useRef(null),et=function(st){_e.current||(_e.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){_e.current.forEach(function(ct){ct()}),_e.current=null})})),_e.current.push(st)};return et}function useEffectState(_e,et){var rt=reactExports.useState(et),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=useEvent(function(gt){_e(function(){ut(gt)})});return[ct,ft]}var OverflowContext=React$1.createContext(null),_excluded$1G=["component"],_excluded2$r=["className"],_excluded3$4=["className"],InternalRawItem=function(et,rt){var st=reactExports.useContext(OverflowContext);if(!st){var ct=et.component,ut=ct===void 0?"div":ct,ft=_objectWithoutProperties$2(et,_excluded$1G);return reactExports.createElement(ut,_extends$b({},ft,{ref:rt}))}var gt=st.className,xt=_objectWithoutProperties$2(st,_excluded2$r),$t=et.className,_t=_objectWithoutProperties$2(et,_excluded3$4);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$6,_extends$b({ref:rt,className:classNames(gt,$t)},xt,_t)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$1F=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(_e){return"+ ".concat(_e.length," ...")}function Overflow(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-overflow":rt,ct=_e.data,ut=ct===void 0?[]:ct,ft=_e.renderItem,gt=_e.renderRawItem,xt=_e.itemKey,$t=_e.itemWidth,_t=$t===void 0?10:$t,wt=_e.ssr,Tt=_e.style,Rt=_e.className,It=_e.maxCount,At=_e.renderRest,jt=_e.renderRawRest,Nt=_e.suffix,kt=_e.component,Ft=kt===void 0?"div":kt,Ht=_e.itemComponent,Wt=_e.onVisibleChange,Vt=_objectWithoutProperties$2(_e,_excluded$1F),qt=wt==="full",Gt=useBatcher(),Xt=useEffectState(Gt,null),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=lr||0,ur=useEffectState(Gt,new Map),pr=_slicedToArray$3(ur,2),hr=pr[0],fr=pr[1],dr=useEffectState(Gt,0),yr=_slicedToArray$3(dr,2),$r=yr[0],Er=yr[1],mr=useEffectState(Gt,0),Sr=_slicedToArray$3(mr,2),Tr=Sr[0],jr=Sr[1],Or=useEffectState(Gt,0),_r=_slicedToArray$3(Or,2),Cr=_r[0],Nr=_r[1],Rr=reactExports.useState(null),Pr=_slicedToArray$3(Rr,2),Mr=Pr[0],kr=Pr[1],Fr=reactExports.useState(null),wr=_slicedToArray$3(Fr,2),Br=wr[0],Dr=wr[1],Xr=reactExports.useMemo(function(){return Br===null&&qt?Number.MAX_SAFE_INTEGER:Br||0},[Br,lr]),Kr=reactExports.useState(!1),zr=_slicedToArray$3(Kr,2),qr=zr[0],pn=zr[1],Qr="".concat(st,"-item"),Zr=Math.max($r,Tr),vn=It===RESPONSIVE,vr=ut.length&&vn,gr=It===INVALIDATE,br=vr||typeof It=="number"&&ut.length>It,Hr=reactExports.useMemo(function(){var Tn=ut;return vr?lr===null&&qt?Tn=ut:Tn=ut.slice(0,Math.min(ut.length,cr/_t)):typeof It=="number"&&(Tn=ut.slice(0,It)),Tn},[ut,_t,lr,It,vr]),Vr=reactExports.useMemo(function(){return vr?ut.slice(Xr+1):ut.slice(Hr.length)},[ut,Hr,vr,Xr]),Wr=reactExports.useCallback(function(Tn,Nn){var On;return typeof xt=="function"?xt(Tn):(On=xt&&(Tn==null?void 0:Tn[xt]))!==null&&On!==void 0?On:Nn},[xt]),Gr=reactExports.useCallback(ft||function(Tn){return Tn},[ft]);function cn(Tn,Nn,On){Br===Tn&&(Nn===void 0||Nn===Mr)||(Dr(Tn),On||(pn(Tncr){cn(xn-1,Tn-Cn-Cr+Tr);break}}Nt&&Dn(0)+Cr>cr&&kr(null)}},[cr,hr,Tr,Cr,Wr,Hr]);var Bn=qr&&!!Vr.length,Yn={};Mr!==null&&vr&&(Yn={position:"absolute",left:Mr,top:0});var qn={prefixCls:Qr,responsive:vr,component:Ht,invalidate:gr},ao=gt?function(Tn,Nn){var On=Wr(Tn,Nn);return reactExports.createElement(OverflowContext.Provider,{key:On,value:_objectSpread2(_objectSpread2({},qn),{},{order:Nn,item:Tn,itemKey:On,registerSize:hn,display:Nn<=Xr})},gt(Tn,Nn))}:function(Tn,Nn){var On=Wr(Tn,Nn);return reactExports.createElement(Item$6,_extends$b({},qn,{order:Nn,key:On,item:Tn,renderItem:Gr,itemKey:On,registerSize:hn,display:Nn<=Xr}))},dn,gn={order:Bn?Xr:Number.MAX_SAFE_INTEGER,className:"".concat(Qr,"-rest"),registerSize:En,display:Bn};if(jt)jt&&(dn=reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},qn),gn)},jt(Vr)));else{var yn=At||defaultRenderRest;dn=reactExports.createElement(Item$6,_extends$b({},qn,gn),typeof yn=="function"?yn(Vr):yn)}var wn=reactExports.createElement(Ft,_extends$b({className:classNames(!gr&&st,Rt),style:Tt,ref:et},Vt),Hr.map(ao),br?dn:null,Nt&&reactExports.createElement(Item$6,_extends$b({},qn,{responsive:vn,responsiveDisabled:!vr,order:Xr,className:"".concat(Qr,"-suffix"),registerSize:Rn,display:!0,style:Yn}),Nt));return vn&&(wn=reactExports.createElement(RefResizeObserver,{onResize:mn,disabled:!vr},wn)),wn}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$8=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Gt=qt,Xt=Gt.ref,Zt=Gt.props,lr=Zt.onKeyDown,er=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,pr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Xt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),lr&&lr(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),er&&er(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),pr&&pr(dr)},onPaste:kt})),qt},RefInput$2=reactExports.forwardRef(Input$8);function toArray$b(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient$2=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$6=isClient$2;function hasValue$4(_e){return _e!=null}function isComboNoValue$2(_e){return!_e&&_e!==0}function isTitleType$5(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle$2(_e){var et=void 0;return _e&&(isTitleType$5(_e.title)?et=_e.title.toString():isTitleType$5(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect$2(_e,et){isBrowserClient$6?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$3(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown$2=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector$2=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Gt=et.onRemove,Xt=et.onInputChange,Zt=et.onInputPaste,lr=et.onInputKeyDown,er=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,pr=reactExports.useRef(null),hr=reactExports.useState(0),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState(!1),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr="".concat(st,"-selection"),jr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect$2(function(){yr(pr.current.scrollWidth)},[jr]);var _r=function(Fr,wr,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle$2(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},wr),Dr&&reactExports.createElement(TransBtn$2,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown$2,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,wr,Br,Dr,Xr){var Kr=function(qr){onPreventMouseDown$2(qr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:wr,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var wr=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!wr,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var zr=String(Kr);zr.length>Ft&&(Kr="".concat(zr.slice(0,Ft),"..."))}var qr=function(Qr){Qr&&Qr.stopPropagation(),Gt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,wr,Xr,qr):_r(Fr,Kr,wr,Xr,qr)},Rr=function(Fr){var wr=typeof Wt=="function"?Wt(Fr):Wt;return _r({title:wr},wr,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Sr(!0)},onBlur:function(){Sr(!1)}},reactExports.createElement(RefInput$2,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:jr,onKeyDown:lr,onMouseDown:er,onChange:Xt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:pr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},jr," ")),Mr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$3,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,Mr,!ct.length&&!jr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector$3=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Gt=et.onInputCompositionEnd,Xt=et.title,Zt=reactExports.useState(!1),lr=_slicedToArray$3(Zt,2),er=lr[0],cr=lr[1],ur=_t==="combobox",pr=ur||At,hr=Tt[0],fr=jt||"";ur&&Nt&&!er&&(fr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!fr,yr=Xt===void 0?getTitle$2(hr):Xt,$r=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput$2,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:pr,activeDescendantId:$t,value:fr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Gt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,$r)};function isValidateOpenKey$2(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector$2=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock$2(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(fr){var dr=fr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&fr.preventDefault(),It&&It(fr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(fr.target.value)),isValidateOpenKey$2(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(fr){wt(fr,!0,ct.current)!==!1&&Rt(!0)},Gt=function(){ct.current=!0},Xt=function(fr){ct.current=!1,gt!=="combobox"&&qt(fr.target.value)},Zt=function(fr){var dr=fr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},lr=function(fr){var dr=fr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},er=function(fr){var dr=fr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(fr){var dr=kt();fr.target!==st.current&&!dr&>!=="combobox"&&fr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:lr,onInputCompositionStart:Gt,onInputCompositionEnd:Xt},pr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector$2,_extends$b({},et,ur)):reactExports.createElement(SingleSelector$3,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:er,onMouseDown:cr},pr)},ForwardSelector$2=reactExports.forwardRef(Selector$2);function Arrow(_e){var et=_e.prefixCls,rt=_e.align,st=_e.arrow,ct=_e.arrowPos,ut=st||{},ft=ut.className,gt=ut.content,xt=ct.x,$t=xt===void 0?0:xt,_t=ct.y,wt=_t===void 0?0:_t,Tt=reactExports.useRef();if(!rt||!rt.points)return null;var Rt={position:"absolute"};if(rt.autoArrow!==!1){var It=rt.points[0],At=rt.points[1],jt=It[0],Nt=It[1],kt=At[0],Ft=At[1];jt===kt||!["t","b"].includes(jt)?Rt.top=wt:jt==="t"?Rt.top=0:Rt.bottom=0,Nt===Ft||!["l","r"].includes(Nt)?Rt.left=$t:Nt==="l"?Rt.left=0:Rt.right=0}return reactExports.createElement("div",{ref:Tt,className:classNames("".concat(et,"-arrow"),ft),style:Rt},gt)}function Mask$1(_e){var et=_e.prefixCls,rt=_e.open,st=_e.zIndex,ct=_e.mask,ut=_e.motion;return ct?reactExports.createElement(CSSMotion,_extends$b({},ut,{motionAppear:!0,visible:rt,removeOnLeave:!0}),function(ft){var gt=ft.className;return reactExports.createElement("div",{style:{zIndex:st},className:classNames("".concat(et,"-mask"),gt)})}):null}var PopupContent=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){return et.cache}),Popup$2=reactExports.forwardRef(function(_e,et){var rt=_e.popup,st=_e.className,ct=_e.prefixCls,ut=_e.style,ft=_e.target,gt=_e.onVisibleChanged,xt=_e.open,$t=_e.keepDom,_t=_e.fresh,wt=_e.onClick,Tt=_e.mask,Rt=_e.arrow,It=_e.arrowPos,At=_e.align,jt=_e.motion,Nt=_e.maskMotion,kt=_e.forceRender,Ft=_e.getPopupContainer,Ht=_e.autoDestroy,Wt=_e.portal,Vt=_e.zIndex,qt=_e.onMouseEnter,Gt=_e.onMouseLeave,Xt=_e.onPointerEnter,Zt=_e.ready,lr=_e.offsetX,er=_e.offsetY,cr=_e.offsetR,ur=_e.offsetB,pr=_e.onAlign,hr=_e.onPrepare,fr=_e.stretch,dr=_e.targetWidth,yr=_e.targetHeight,$r=typeof rt=="function"?rt():rt,Er=xt||$t,mr=(Ft==null?void 0:Ft.length)>0,Sr=reactExports.useState(!Ft||!mr),Tr=_slicedToArray$3(Sr,2),jr=Tr[0],Or=Tr[1];if(useLayoutEffect$3(function(){!jr&&mr&&ft&&Or(!0)},[jr,mr,ft]),!jr)return null;var _r="auto",Cr={left:"-1000vw",top:"-1000vh",right:_r,bottom:_r};if(Zt||!xt){var Nr,Rr=At.points,Pr=At.dynamicInset||((Nr=At._experimental)===null||Nr===void 0?void 0:Nr.dynamicInset),Mr=Pr&&Rr[0][1]==="r",kr=Pr&&Rr[0][0]==="b";Mr?(Cr.right=cr,Cr.left=_r):(Cr.left=lr,Cr.right=_r),kr?(Cr.bottom=ur,Cr.top=_r):(Cr.top=er,Cr.bottom=_r)}var Fr={};return fr&&(fr.includes("height")&&yr?Fr.height=yr:fr.includes("minHeight")&&yr&&(Fr.minHeight=yr),fr.includes("width")&&dr?Fr.width=dr:fr.includes("minWidth")&&dr&&(Fr.minWidth=dr)),xt||(Fr.pointerEvents="none"),reactExports.createElement(Wt,{open:kt||Er,getContainer:Ft&&function(){return Ft(ft)},autoDestroy:Ht},reactExports.createElement(Mask$1,{prefixCls:ct,open:xt,zIndex:Vt,mask:Tt,motion:Nt}),reactExports.createElement(RefResizeObserver,{onResize:pr,disabled:!xt},function(wr){return reactExports.createElement(CSSMotion,_extends$b({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:kt,leavedClassName:"".concat(ct,"-hidden")},jt,{onAppearPrepare:hr,onEnterPrepare:hr,visible:xt,onVisibleChanged:function(Dr){var Xr;jt==null||(Xr=jt.onVisibleChanged)===null||Xr===void 0||Xr.call(jt,Dr),gt(Dr)}}),function(Br,Dr){var Xr=Br.className,Kr=Br.style,zr=classNames(ct,Xr,st);return reactExports.createElement("div",{ref:composeRef(wr,et,Dr),className:zr,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(It.x||0,"px"),"--arrow-y":"".concat(It.y||0,"px")},Cr),Fr),Kr),{},{boxSizing:"border-box",zIndex:Vt},ut),onMouseEnter:qt,onMouseLeave:Gt,onPointerEnter:Xt,onClick:wt},Rt&&reactExports.createElement(Arrow,{prefixCls:ct,arrow:Rt,arrowPos:It,align:At}),reactExports.createElement(PopupContent,{cache:!xt&&!_t},$r))})}))}),TriggerWrapper=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_e.getTriggerDOMNode,ct=supportRef(rt),ut=reactExports.useCallback(function(gt){fillRef(et,st?st(gt):gt)},[st]),ft=useComposeRef(ut,rt.ref);return ct?reactExports.cloneElement(rt,{ref:ft}):rt}),TriggerContext=reactExports.createContext(null);function toArray$a(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function useAction(_e,et,rt,st){return reactExports.useMemo(function(){var ct=toArray$a(rt??et),ut=toArray$a(st??et),ft=new Set(ct),gt=new Set(ut);return _e&&(ft.has("hover")&&(ft.delete("hover"),ft.add("click")),gt.has("hover")&&(gt.delete("hover"),gt.add("click"))),[ft,gt]},[_e,et,rt,st])}function isPointsEq(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=arguments.length>2?arguments[2]:void 0;return rt?_e[0]===et[0]:_e[0]===et[0]&&_e[1]===et[1]}function getAlignPopupClassName(_e,et,rt,st){for(var ct=rt.points,ut=Object.keys(_e),ft=0;ft1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(_e)?et:_e}function getPxValue(_e){return toNum(parseFloat(_e),0)}function getVisibleArea(_e,et){var rt=_objectSpread2({},_e);return(et||[]).forEach(function(st){if(!(st instanceof HTMLBodyElement||st instanceof HTMLHtmlElement)){var ct=getWin(st).getComputedStyle(st),ut=ct.overflow,ft=ct.overflowClipMargin,gt=ct.borderTopWidth,xt=ct.borderBottomWidth,$t=ct.borderLeftWidth,_t=ct.borderRightWidth,wt=st.getBoundingClientRect(),Tt=st.offsetHeight,Rt=st.clientHeight,It=st.offsetWidth,At=st.clientWidth,jt=getPxValue(gt),Nt=getPxValue(xt),kt=getPxValue($t),Ft=getPxValue(_t),Ht=toNum(Math.round(wt.width/It*1e3)/1e3),Wt=toNum(Math.round(wt.height/Tt*1e3)/1e3),Vt=(It-At-kt-Ft)*Ht,qt=(Tt-Rt-jt-Nt)*Wt,Gt=jt*Wt,Xt=Nt*Wt,Zt=kt*Ht,lr=Ft*Ht,er=0,cr=0;if(ut==="clip"){var ur=getPxValue(ft);er=ur*Ht,cr=ur*Wt}var pr=wt.x+Zt-er,hr=wt.y+Gt-cr,fr=pr+wt.width+2*er-Zt-lr-Vt,dr=hr+wt.height+2*cr-Gt-Xt-qt;rt.left=Math.max(rt.left,pr),rt.top=Math.max(rt.top,hr),rt.right=Math.min(rt.right,fr),rt.bottom=Math.min(rt.bottom,dr)}}),rt}function getUnitOffset(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rt="".concat(et),st=rt.match(/^(.*)\%$/);return st?_e*(parseFloat(st[1])/100):parseFloat(rt)}function getNumberOffset(_e,et){var rt=et||[],st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return[getUnitOffset(_e.width,ct),getUnitOffset(_e.height,ut)]}function splitPoints(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[_e[0],_e[1]]}function getAlignPoint(_e,et){var rt=et[0],st=et[1],ct,ut;return rt==="t"?ut=_e.y:rt==="b"?ut=_e.y+_e.height:ut=_e.y+_e.height/2,st==="l"?ct=_e.x:st==="r"?ct=_e.x+_e.width:ct=_e.x+_e.width/2,{x:ct,y:ut}}function reversePoints(_e,et){var rt={t:"b",b:"t",l:"r",r:"l"};return _e.map(function(st,ct){return ct===et?rt[st]||"c":st}).join("")}function useAlign(_e,et,rt,st,ct,ut,ft){var gt=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ct[st]||{}}),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1],wt=reactExports.useRef(0),Tt=reactExports.useMemo(function(){return et?collectScroller(et):[]},[et]),Rt=reactExports.useRef({}),It=function(){Rt.current={}};_e||It();var At=useEvent(function(){if(et&&rt&&_e){let Do=function(Os,Ss){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zr,Is=$r.x+Os,Cs=$r.y+Ss,Xs=Is+Nr,Zs=Cs+Cr,Js=Math.max(Is,Rs.left),cp=Math.max(Cs,Rs.top),bo=Math.min(Xs,Rs.right),Ro=Math.min(Zs,Rs.bottom);return Math.max(0,(bo-Js)*(Ro-cp))},us=function(){io=$r.y+yn,Kn=io+Cr,Wn=$r.x+gn,zn=Wn+Nr};var $o=Do,Mo=us,kt,Ft,Ht=et,Wt=Ht.ownerDocument,Vt=getWin(Ht),qt=Vt.getComputedStyle(Ht),Gt=qt.width,Xt=qt.height,Zt=qt.position,lr=Ht.style.left,er=Ht.style.top,cr=Ht.style.right,ur=Ht.style.bottom,pr=Ht.style.overflow,hr=_objectSpread2(_objectSpread2({},ct[st]),ut),fr=Wt.createElement("div");(kt=Ht.parentElement)===null||kt===void 0||kt.appendChild(fr),fr.style.left="".concat(Ht.offsetLeft,"px"),fr.style.top="".concat(Ht.offsetTop,"px"),fr.style.position=Zt,fr.style.height="".concat(Ht.offsetHeight,"px"),fr.style.width="".concat(Ht.offsetWidth,"px"),Ht.style.left="0",Ht.style.top="0",Ht.style.right="auto",Ht.style.bottom="auto",Ht.style.overflow="hidden";var dr;if(Array.isArray(rt))dr={x:rt[0],y:rt[1],width:0,height:0};else{var yr=rt.getBoundingClientRect();dr={x:yr.x,y:yr.y,width:yr.width,height:yr.height}}var $r=Ht.getBoundingClientRect(),Er=Wt.documentElement,mr=Er.clientWidth,Sr=Er.clientHeight,Tr=Er.scrollWidth,jr=Er.scrollHeight,Or=Er.scrollTop,_r=Er.scrollLeft,Cr=$r.height,Nr=$r.width,Rr=dr.height,Pr=dr.width,Mr={left:0,top:0,right:mr,bottom:Sr},kr={left:-_r,top:-Or,right:Tr-_r,bottom:jr-Or},Fr=hr.htmlRegion,wr="visible",Br="visibleFirst";Fr!=="scroll"&&Fr!==Br&&(Fr=wr);var Dr=Fr===Br,Xr=getVisibleArea(kr,Tt),Kr=getVisibleArea(Mr,Tt),zr=Fr===wr?Kr:Xr,qr=Dr?Kr:zr;Ht.style.left="auto",Ht.style.top="auto",Ht.style.right="0",Ht.style.bottom="0";var pn=Ht.getBoundingClientRect();Ht.style.left=lr,Ht.style.top=er,Ht.style.right=cr,Ht.style.bottom=ur,Ht.style.overflow=pr,(Ft=Ht.parentElement)===null||Ft===void 0||Ft.removeChild(fr);var Qr=toNum(Math.round(Nr/parseFloat(Gt)*1e3)/1e3),Zr=toNum(Math.round(Cr/parseFloat(Xt)*1e3)/1e3);if(Qr===0||Zr===0||isDOM(rt)&&!isVisible$1(rt))return;var vn=hr.offset,vr=hr.targetOffset,gr=getNumberOffset($r,vn),br=_slicedToArray$3(gr,2),Hr=br[0],Vr=br[1],Wr=getNumberOffset(dr,vr),Gr=_slicedToArray$3(Wr,2),cn=Gr[0],mn=Gr[1];dr.x-=cn,dr.y-=mn;var hn=hr.points||[],En=_slicedToArray$3(hn,2),Rn=En[0],Dn=En[1],Bn=splitPoints(Dn),Yn=splitPoints(Rn),qn=getAlignPoint(dr,Bn),ao=getAlignPoint($r,Yn),dn=_objectSpread2({},hr),gn=qn.x-ao.x+Hr,yn=qn.y-ao.y+Vr,wn=Do(gn,yn),Tn=Do(gn,yn,Kr),Nn=getAlignPoint(dr,["t","l"]),On=getAlignPoint($r,["t","l"]),xn=getAlignPoint(dr,["b","r"]),Cn=getAlignPoint($r,["b","r"]),Sn=hr.overflow||{},Mn=Sn.adjustX,jn=Sn.adjustY,Un=Sn.shiftX,Gn=Sn.shiftY,eo=function(Ss){return typeof Ss=="boolean"?Ss:Ss>=0},io,Kn,Wn,zn;us();var _n=eo(jn),ln=Yn[0]===Bn[0];if(_n&&Yn[0]==="t"&&(Kn>qr.bottom||Rt.current.bt)){var Pn=yn;ln?Pn-=Cr-Rr:Pn=Nn.y-Cn.y-Vr;var An=Do(gn,Pn),Qn=Do(gn,Pn,Kr);An>wn||An===wn&&(!Dr||Qn>=Tn)?(Rt.current.bt=!0,yn=Pn,Vr=-Vr,dn.points=[reversePoints(Yn,0),reversePoints(Bn,0)]):Rt.current.bt=!1}if(_n&&Yn[0]==="b"&&(iown||oo===wn&&(!Dr||Vn>=Tn)?(Rt.current.tb=!0,yn=ro,Vr=-Vr,dn.points=[reversePoints(Yn,0),reversePoints(Bn,0)]):Rt.current.tb=!1}var uo=eo(Mn),po=Yn[1]===Bn[1];if(uo&&Yn[1]==="l"&&(zn>qr.right||Rt.current.rl)){var _o=gn;po?_o-=Nr-Pr:_o=Nn.x-Cn.x-Hr;var Uo=Do(_o,yn),Bo=Do(_o,yn,Kr);Uo>wn||Uo===wn&&(!Dr||Bo>=Tn)?(Rt.current.rl=!0,gn=_o,Hr=-Hr,dn.points=[reversePoints(Yn,1),reversePoints(Bn,1)]):Rt.current.rl=!1}if(uo&&Yn[1]==="r"&&(Wnwn||Ko===wn&&(!Dr||Ao>=Tn)?(Rt.current.lr=!0,gn=Oo,Hr=-Hr,dn.points=[reversePoints(Yn,1),reversePoints(Bn,1)]):Rt.current.lr=!1}us();var No=Un===!0?0:Un;typeof No=="number"&&(WnKr.right&&(gn-=zn-Kr.right-Hr,dr.x>Kr.right-No&&(gn+=dr.x-Kr.right+No)));var qo=Gn===!0?0:Gn;typeof qo=="number"&&(ioKr.bottom&&(yn-=Kn-Kr.bottom-Vr,dr.y>Kr.bottom-qo&&(yn+=dr.y-Kr.bottom+qo)));var Wo=$r.x+gn,os=Wo+Nr,Io=$r.y+yn,ss=Io+Cr,_i=dr.x,vo=_i+Pr,mo=dr.y,Fn=mo+Rr,kn=Math.max(Wo,_i),co=Math.min(os,vo),Eo=(kn+co)/2,so=Eo-Wo,Xn=Math.max(Io,mo),no=Math.min(ss,Fn),To=(Xn+no)/2,Po=To-Io;ft==null||ft(et,dn);var Fo=pn.right-$r.x-(gn+$r.width),fo=pn.bottom-$r.y-(yn+$r.height);_t({ready:!0,offsetX:gn/Qr,offsetY:yn/Zr,offsetR:Fo/Qr,offsetB:fo/Zr,arrowX:so/Qr,arrowY:Po/Zr,scaleX:Qr,scaleY:Zr,align:dn})}}),jt=function(){wt.current+=1;var Ft=wt.current;Promise.resolve().then(function(){wt.current===Ft&&At()})},Nt=function(){_t(function(Ft){return _objectSpread2(_objectSpread2({},Ft),{},{ready:!1})})};return useLayoutEffect$3(Nt,[st]),useLayoutEffect$3(function(){_e||Nt()},[_e]),[$t.ready,$t.offsetX,$t.offsetY,$t.offsetR,$t.offsetB,$t.arrowX,$t.arrowY,$t.scaleX,$t.scaleY,$t.align,jt]}function useWatch(_e,et,rt,st,ct){useLayoutEffect$3(function(){if(_e&&et&&rt){let Tt=function(){st(),ct()};var wt=Tt,ut=et,ft=rt,gt=collectScroller(ut),xt=collectScroller(ft),$t=getWin(ft),_t=new Set([$t].concat(_toConsumableArray$3(gt),_toConsumableArray$3(xt)));return _t.forEach(function(Rt){Rt.addEventListener("scroll",Tt,{passive:!0})}),$t.addEventListener("resize",Tt,{passive:!0}),st(),function(){_t.forEach(function(Rt){Rt.removeEventListener("scroll",Tt),$t.removeEventListener("resize",Tt)})}}},[_e,et,rt])}function useWinClick(_e,et,rt,st,ct,ut,ft,gt){var xt=reactExports.useRef(_e),$t=reactExports.useRef(!1);xt.current!==_e&&($t.current=!0,xt.current=_e),reactExports.useEffect(function(){var _t=wrapperRaf(function(){$t.current=!1});return function(){wrapperRaf.cancel(_t)}},[_e]),reactExports.useEffect(function(){if(et&&st&&(!ct||ut)){var _t=function(){var Vt=!1,qt=function(Zt){var lr=Zt.target;Vt=ft(lr)},Gt=function(Zt){var lr=Zt.target;!$t.current&&xt.current&&!Vt&&!ft(lr)&>(!1)};return[qt,Gt]},wt=_t(),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=_t(),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=getWin(st);Ft.addEventListener("mousedown",Rt,!0),Ft.addEventListener("click",It,!0),Ft.addEventListener("contextmenu",It,!0);var Ht=getShadowRoot$1(rt);return Ht&&(Ht.addEventListener("mousedown",Nt,!0),Ht.addEventListener("click",kt,!0),Ht.addEventListener("contextmenu",kt,!0)),function(){Ft.removeEventListener("mousedown",Rt,!0),Ft.removeEventListener("click",It,!0),Ft.removeEventListener("contextmenu",It,!0),Ht&&(Ht.removeEventListener("mousedown",Nt,!0),Ht.removeEventListener("click",kt,!0),Ht.removeEventListener("contextmenu",kt,!0))}}},[et,rt,st,ct,ut])}var _excluded$1E=["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 generateTrigger(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,et=reactExports.forwardRef(function(rt,st){var ct=rt.prefixCls,ut=ct===void 0?"rc-trigger-popup":ct,ft=rt.children,gt=rt.action,xt=gt===void 0?"hover":gt,$t=rt.showAction,_t=rt.hideAction,wt=rt.popupVisible,Tt=rt.defaultPopupVisible,Rt=rt.onPopupVisibleChange,It=rt.afterPopupVisibleChange,At=rt.mouseEnterDelay,jt=rt.mouseLeaveDelay,Nt=jt===void 0?.1:jt,kt=rt.focusDelay,Ft=rt.blurDelay,Ht=rt.mask,Wt=rt.maskClosable,Vt=Wt===void 0?!0:Wt,qt=rt.getPopupContainer,Gt=rt.forceRender,Xt=rt.autoDestroy,Zt=rt.destroyPopupOnHide,lr=rt.popup,er=rt.popupClassName,cr=rt.popupStyle,ur=rt.popupPlacement,pr=rt.builtinPlacements,hr=pr===void 0?{}:pr,fr=rt.popupAlign,dr=rt.zIndex,yr=rt.stretch,$r=rt.getPopupClassNameFromAlign,Er=rt.fresh,mr=rt.alignPoint,Sr=rt.onPopupClick,Tr=rt.onPopupAlign,jr=rt.arrow,Or=rt.popupMotion,_r=rt.maskMotion,Cr=rt.popupTransitionName,Nr=rt.popupAnimation,Rr=rt.maskTransitionName,Pr=rt.maskAnimation,Mr=rt.className,kr=rt.getTriggerDOMNode,Fr=_objectWithoutProperties$2(rt,_excluded$1E),wr=Xt||Zt||!1,Br=reactExports.useState(!1),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1];useLayoutEffect$3(function(){Kr(isMobile())},[]);var zr=reactExports.useRef({}),qr=reactExports.useContext(TriggerContext),pn=reactExports.useMemo(function(){return{registerSubPopup:function(Ro,Jo){zr.current[Ro]=Jo,qr==null||qr.registerSubPopup(Ro,Jo)}}},[qr]),Qr=useId$4(),Zr=reactExports.useState(null),vn=_slicedToArray$3(Zr,2),vr=vn[0],gr=vn[1],br=useEvent(function(bo){isDOM(bo)&&vr!==bo&&gr(bo),qr==null||qr.registerSubPopup(Qr,bo)}),Hr=reactExports.useState(null),Vr=_slicedToArray$3(Hr,2),Wr=Vr[0],Gr=Vr[1],cn=reactExports.useRef(null),mn=useEvent(function(bo){isDOM(bo)&&Wr!==bo&&(Gr(bo),cn.current=bo)}),hn=reactExports.Children.only(ft),En=(hn==null?void 0:hn.props)||{},Rn={},Dn=useEvent(function(bo){var Ro,Jo,Yo=Wr;return(Yo==null?void 0:Yo.contains(bo))||((Ro=getShadowRoot$1(Yo))===null||Ro===void 0?void 0:Ro.host)===bo||bo===Yo||(vr==null?void 0:vr.contains(bo))||((Jo=getShadowRoot$1(vr))===null||Jo===void 0?void 0:Jo.host)===bo||bo===vr||Object.values(zr.current).some(function(Go){return(Go==null?void 0:Go.contains(bo))||bo===Go})}),Bn=getMotion$1(ut,Or,Nr,Cr),Yn=getMotion$1(ut,_r,Pr,Rr),qn=reactExports.useState(Tt||!1),ao=_slicedToArray$3(qn,2),dn=ao[0],gn=ao[1],yn=wt??dn,wn=useEvent(function(bo){wt===void 0&&gn(bo)});useLayoutEffect$3(function(){gn(wt||!1)},[wt]);var Tn=reactExports.useRef(yn);Tn.current=yn;var Nn=reactExports.useRef([]);Nn.current=[];var On=useEvent(function(bo){var Ro;wn(bo),((Ro=Nn.current[Nn.current.length-1])!==null&&Ro!==void 0?Ro:yn)!==bo&&(Nn.current.push(bo),Rt==null||Rt(bo))}),xn=reactExports.useRef(),Cn=function(){clearTimeout(xn.current)},Sn=function(Ro){var Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Cn(),Jo===0?On(Ro):xn.current=setTimeout(function(){On(Ro)},Jo*1e3)};reactExports.useEffect(function(){return Cn},[]);var Mn=reactExports.useState(!1),jn=_slicedToArray$3(Mn,2),Un=jn[0],Gn=jn[1];useLayoutEffect$3(function(bo){(!bo||yn)&&Gn(!0)},[yn]);var eo=reactExports.useState(null),io=_slicedToArray$3(eo,2),Kn=io[0],Wn=io[1],zn=reactExports.useState([0,0]),_n=_slicedToArray$3(zn,2),ln=_n[0],Pn=_n[1],An=function(Ro){Pn([Ro.clientX,Ro.clientY])},Qn=useAlign(yn,vr,mr?ln:Wr,ur,hr,fr,Tr),ro=_slicedToArray$3(Qn,11),oo=ro[0],Vn=ro[1],uo=ro[2],po=ro[3],_o=ro[4],Uo=ro[5],Bo=ro[6],Oo=ro[7],Ko=ro[8],Ao=ro[9],No=ro[10],qo=useAction(Xr,xt,$t,_t),Wo=_slicedToArray$3(qo,2),os=Wo[0],Io=Wo[1],ss=os.has("click"),_i=Io.has("click")||Io.has("contextMenu"),vo=useEvent(function(){Un||No()}),mo=function(){Tn.current&&mr&&_i&&Sn(!1)};useWatch(yn,Wr,vr,vo,mo),useLayoutEffect$3(function(){vo()},[ln,ur]),useLayoutEffect$3(function(){yn&&!(hr!=null&&hr[ur])&&vo()},[JSON.stringify(fr)]);var Fn=reactExports.useMemo(function(){var bo=getAlignPopupClassName(hr,ut,Ao,mr);return classNames(bo,$r==null?void 0:$r(Ao))},[Ao,$r,hr,ut,mr]);reactExports.useImperativeHandle(st,function(){return{nativeElement:cn.current,forceAlign:vo}});var kn=reactExports.useState(0),co=_slicedToArray$3(kn,2),Eo=co[0],so=co[1],Xn=reactExports.useState(0),no=_slicedToArray$3(Xn,2),To=no[0],Po=no[1],Fo=function(){if(yr&&Wr){var Ro=Wr.getBoundingClientRect();so(Ro.width),Po(Ro.height)}},fo=function(){Fo(),vo()},$o=function(Ro){Gn(!1),No(),It==null||It(Ro)},Mo=function(){return new Promise(function(Ro){Fo(),Wn(function(){return Ro})})};useLayoutEffect$3(function(){Kn&&(No(),Kn(),Wn(null))},[Kn]);function Do(bo,Ro,Jo,Yo){Rn[bo]=function(Go){var Al;Yo==null||Yo(Go),Sn(Ro,Jo);for(var Ku=arguments.length,Tp=new Array(Ku>1?Ku-1:0),yl=1;yl1?Jo-1:0),Go=1;Go1?Jo-1:0),Go=1;Go1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$6(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$4(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$4(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption$2(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent$2=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext$2=reactExports.createContext(null),_excluded$1C=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS$2=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple$2=function(et){return et==="tags"||et==="multiple"},BaseSelect$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Gt=_e.onDropdownVisibleChange,Xt=_e.activeValue,Zt=_e.onActiveValueChange,lr=_e.activeDescendantId,er=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,pr=_e.onSearchSplit,hr=_e.tokenSeparators,fr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,$r=_e.OptionList,Er=_e.animation,mr=_e.transitionName,Sr=_e.dropdownStyle,Tr=_e.dropdownClassName,jr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,_r=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,Mr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,wr=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$1C),Kr=isMultiple$2(Nt),zr=(gt!==void 0?gt:Kr)||Nt==="combobox",qr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS$2.forEach(function(Fn){delete qr[Fn]}),_t==null||_t.forEach(function(Fn){delete qr[Fn]});var pn=reactExports.useState(!1),Qr=_slicedToArray$3(pn,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),br=reactExports.useRef(null),Hr=reactExports.useRef(null),Vr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset$2(),cn=_slicedToArray$3(Gr,3),mn=cn[0],hn=cn[1],En=cn[2];reactExports.useImperativeHandle(et,function(){var Fn,kn;return{focus:(Fn=Hr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(kn=Hr.current)===null||kn===void 0?void 0:kn.blur,scrollTo:function(Eo){var so;return(so=Vr.current)===null||so===void 0?void 0:so.scrollTo(Eo)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return er;var kn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof kn=="string"||typeof kn=="number"?String(kn):""},[er,Nt,wt]),Dn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),qn=reactExports.useState(!1),ao=_slicedToArray$3(qn,2),dn=ao[0],gn=ao[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),wn=_slicedToArray$3(yn,2),Tn=wn[0],Nn=wn[1],On=dn?Tn:!1,xn=!At&&Rt;(kt||xn&&On&&Nt==="combobox")&&(On=!1);var Cn=xn?!1:On,Sn=reactExports.useCallback(function(Fn){var kn=Fn!==void 0?Fn:!On;kt||(Nn(kn),On!==kn&&(Gt==null||Gt(kn)))},[kt,On,Nn,Gt]),Mn=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` + ${et}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${et}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-root`]:{[`${et}-wrap-rtl`]:{direction:"rtl",[`${et}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$3=_e=>{const et=_e.padding,rt=_e.fontSizeHeading5,st=_e.lineHeightHeading5;return merge$7(_e,{modalHeaderHeight:_e.calc(_e.calc(st).mul(rt).equal()).add(_e.calc(et).mul(2).equal()).equal(),modalFooterBorderColorSplit:_e.colorSplit,modalFooterBorderStyle:_e.lineType,modalFooterBorderWidth:_e.lineWidth,modalIconHoverColor:_e.colorIconHover,modalCloseIconColor:_e.colorIcon,modalCloseBtnSize:_e.fontHeight,modalConfirmIconSize:_e.fontHeight,modalTitleHeight:_e.calc(_e.titleFontSize).mul(_e.titleLineHeight).equal()})},prepareComponentToken$y=_e=>({footerBg:"transparent",headerBg:_e.colorBgElevated,titleLineHeight:_e.lineHeightHeading5,titleFontSize:_e.fontSizeHeading5,contentBg:_e.colorBgElevated,titleColor:_e.colorTextHeading,closeBtnHoverBg:_e.wireframe?"transparent":_e.colorFillContent,closeBtnActiveBg:_e.wireframe?"transparent":_e.colorFillContentHover,contentPadding:_e.wireframe?0:`${unit$1(_e.paddingMD)} ${unit$1(_e.paddingContentHorizontalLG)}`,headerPadding:_e.wireframe?`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`:0,headerBorderBottom:_e.wireframe?`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`:"none",headerMarginBottom:_e.wireframe?0:_e.marginXS,bodyPadding:_e.wireframe?_e.paddingLG:0,footerPadding:_e.wireframe?`${unit$1(_e.paddingXS)} ${unit$1(_e.padding)}`:0,footerBorderTop:_e.wireframe?`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`:"none",footerBorderRadius:_e.wireframe?`0 0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)}`:0,footerMarginTop:_e.wireframe?0:_e.marginSM,confirmBodyPadding:_e.wireframe?`${unit$1(_e.padding*2)} ${unit$1(_e.padding*2)} ${unit$1(_e.paddingLG)}`:0,confirmIconMarginInlineEnd:_e.wireframe?_e.margin:_e.marginSM,confirmBtnsMarginTop:_e.wireframe?_e.marginLG:_e.marginSM}),useStyle$U=genStyleHooks("Modal",_e=>{const et=prepareToken$3(_e);return[genModalStyle(et),genRTLStyle(et),genModalMaskStyle(et),initZoomMotion(et,"zoom")]},prepareComponentToken$y,{unitless:{titleLineHeight:!0}});var __rest$11=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{mousePosition={x:_e.pageX,y:_e.pageY},setTimeout(()=>{mousePosition=null},100)};canUseDocElement()&&document.documentElement.addEventListener("click",getClickPosition,!0);const Modal$3=_e=>{var et;const{getPopupContainer:rt,getPrefixCls:st,direction:ct,modal:ut}=reactExports.useContext(ConfigContext$1),ft=mr=>{const{onCancel:Er}=_e;Er==null||Er(mr)},gt=mr=>{const{onOk:Er}=_e;Er==null||Er(mr)},{prefixCls:xt,className:$t,rootClassName:_t,open:wt,wrapClassName:Tt,centered:Rt,getContainer:It,closeIcon:At,closable:jt,focusTriggerAfterClose:Nt=!0,style:kt,visible:Ft,width:Ht=520,footer:Wt,classNames:Vt,styles:qt}=_e,Xt=__rest$11(_e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Gt=st("modal",xt),Zt=st(),er=useCSSVarCls(Gt),[lr,cr,ur]=useStyle$U(Gt,er),fr=classNames(Tt,{[`${Gt}-centered`]:!!Rt,[`${Gt}-wrap-rtl`]:ct==="rtl"}),hr=Wt!==null&&reactExports.createElement(Footer$4,Object.assign({},_e,{onOk:gt,onCancel:ft})),[pr,dr]=useClosable(jt,typeof At<"u"?At:ut==null?void 0:ut.closeIcon,mr=>renderCloseIcon(Gt,mr),reactExports.createElement(CloseOutlined$1,{className:`${Gt}-close-icon`}),!0),yr=usePanelRef(`.${Gt}-content`),[Sr,br]=useZIndex("Modal",Xt.zIndex);return lr(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{status:!0,override:!0},reactExports.createElement(zIndexContext$1.Provider,{value:br},reactExports.createElement(DialogWrap$1,Object.assign({width:Ht},Xt,{zIndex:Sr,getContainer:It===void 0?rt:It,prefixCls:Gt,rootClassName:classNames(cr,_t,ur,er),footer:hr,visible:wt??Ft,mousePosition:(et=Xt.mousePosition)!==null&&et!==void 0?et:mousePosition,onClose:ft,closable:pr,closeIcon:dr,focusTriggerAfterClose:Nt,transitionName:getTransitionName(Zt,"zoom",_e.transitionName),maskTransitionName:getTransitionName(Zt,"fade",_e.maskTransitionName),className:classNames(cr,$t,ut==null?void 0:ut.className),style:Object.assign(Object.assign({},ut==null?void 0:ut.style),kt),classNames:Object.assign(Object.assign(Object.assign({},ut==null?void 0:ut.classNames),Vt),{wrapper:classNames(fr,Vt==null?void 0:Vt.wrapper)}),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),qt),panelRef:yr}))))))},OriginModal=Modal$3,genModalConfirmStyle=_e=>{const{componentCls:et,titleFontSize:rt,titleLineHeight:st,modalConfirmIconSize:ct,fontSize:ut,lineHeight:ft,modalTitleHeight:gt,fontHeight:xt,confirmBodyPadding:$t}=_e,_t=`${et}-confirm`;return{[_t]:{"&-rtl":{direction:"rtl"},[`${_e.antCls}-modal-header`]:{display:"none"},[`${_t}-body-wrapper`]:Object.assign({},clearFix()),[`&${et} ${et}-body`]:{padding:$t},[`${_t}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${_e.iconCls}`]:{flex:"none",fontSize:ct,marginInlineEnd:_e.confirmIconMarginInlineEnd,marginTop:_e.calc(_e.calc(xt).sub(ct).equal()).div(2).equal()},[`&-has-title > ${_e.iconCls}`]:{marginTop:_e.calc(_e.calc(gt).sub(ct).equal()).div(2).equal()}},[`${_t}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:_e.marginXS,maxWidth:`calc(100% - ${unit$1(_e.calc(_e.modalConfirmIconSize).add(_e.marginSM).equal())})`},[`${_t}-title`]:{color:_e.colorTextHeading,fontWeight:_e.fontWeightStrong,fontSize:rt,lineHeight:st},[`${_t}-content`]:{color:_e.colorText,fontSize:ut,lineHeight:ft},[`${_t}-btns`]:{textAlign:"end",marginTop:_e.confirmBtnsMarginTop,[`${_e.antCls}-btn + ${_e.antCls}-btn`]:{marginBottom:0,marginInlineStart:_e.marginXS}}},[`${_t}-error ${_t}-body > ${_e.iconCls}`]:{color:_e.colorError},[`${_t}-warning ${_t}-body > ${_e.iconCls}, + ${_t}-confirm ${_t}-body > ${_e.iconCls}`]:{color:_e.colorWarning},[`${_t}-info ${_t}-body > ${_e.iconCls}`]:{color:_e.colorInfo},[`${_t}-success ${_t}-body > ${_e.iconCls}`]:{color:_e.colorSuccess}}},Confirm=genSubStyleComponent(["Modal","confirm"],_e=>{const et=prepareToken$3(_e);return[genModalConfirmStyle(et)]},prepareComponentToken$y,{order:-1e3});var __rest$10=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctkt,_toConsumableArray$3(Object.values(kt))),Ht=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(CancelBtn,null),reactExports.createElement(OkBtn,null)),Wt=_e.title!==void 0&&_e.title!==null,Vt=`${ut}-body`;return reactExports.createElement("div",{className:`${ut}-body-wrapper`},reactExports.createElement("div",{className:classNames(Vt,{[`${Vt}-has-title`]:Wt})},wt,reactExports.createElement("div",{className:`${ut}-paragraph`},Wt&&reactExports.createElement("span",{className:`${ut}-title`},_e.title),reactExports.createElement("div",{className:`${ut}-content`},_e.content))),xt===void 0||typeof xt=="function"?reactExports.createElement(ModalContextProvider,{value:Ft},reactExports.createElement("div",{className:`${ut}-btns`},typeof xt=="function"?xt(Ht,{OkBtn,CancelBtn}):Ht)):xt,reactExports.createElement(Confirm,{prefixCls:et}))}const ConfirmDialog=_e=>{const{close:et,zIndex:rt,afterClose:st,open:ct,keyboard:ut,centered:ft,getContainer:gt,maskStyle:xt,direction:$t,prefixCls:_t,wrapClassName:wt,rootPrefixCls:Tt,bodyStyle:Rt,closable:It=!1,closeIcon:At,modalRender:jt,focusTriggerAfterClose:Nt,onConfirm:kt,styles:Ft}=_e,Ht=`${_t}-confirm`,Wt=_e.width||416,Vt=_e.style||{},qt=_e.mask===void 0?!0:_e.mask,Xt=_e.maskClosable===void 0?!1:_e.maskClosable,Gt=classNames(Ht,`${Ht}-${_e.type}`,{[`${Ht}-rtl`]:$t==="rtl"},_e.className),[,Zt]=useToken$4(),er=reactExports.useMemo(()=>rt!==void 0?rt:Zt.zIndexPopupBase+CONTAINER_MAX_OFFSET,[rt,Zt]);return reactExports.createElement(OriginModal,{prefixCls:_t,className:Gt,wrapClassName:classNames({[`${Ht}-centered`]:!!_e.centered},wt),onCancel:()=>{et==null||et({triggerCancel:!0}),kt==null||kt(!1)},open:ct,title:"",footer:null,transitionName:getTransitionName(Tt||"","zoom",_e.transitionName),maskTransitionName:getTransitionName(Tt||"","fade",_e.maskTransitionName),mask:qt,maskClosable:Xt,style:Vt,styles:Object.assign({body:Rt,mask:xt},Ft),width:Wt,zIndex:er,afterClose:st,keyboard:ut,centered:ft,getContainer:gt,closable:It,closeIcon:At,modalRender:jt,focusTriggerAfterClose:Nt},reactExports.createElement(ConfirmContent,Object.assign({},_e,{confirmPrefixCls:Ht})))},ConfirmDialogWrapper$1=_e=>{const{rootPrefixCls:et,iconPrefixCls:rt,direction:st,theme:ct}=_e;return reactExports.createElement(ConfigProvider$1,{prefixCls:et,iconPrefixCls:rt,direction:st,theme:ct},reactExports.createElement(ConfirmDialog,Object.assign({},_e)))},ConfirmDialog$1=ConfirmDialogWrapper$1,destroyFns=[];let defaultRootPrefixCls="";function getRootPrefixCls(){return defaultRootPrefixCls}const ConfirmDialogWrapper=_e=>{var et,rt;const{prefixCls:st,getContainer:ct,direction:ut}=_e,ft=getConfirmLocale(),gt=reactExports.useContext(ConfigContext$1),xt=getRootPrefixCls()||gt.getPrefixCls(),$t=st||`${xt}-modal`;let _t=ct;return _t===!1&&(_t=void 0),React$1.createElement(ConfirmDialog$1,Object.assign({},_e,{rootPrefixCls:xt,prefixCls:$t,iconPrefixCls:gt.iconPrefixCls,theme:gt.theme,direction:ut??gt.direction,locale:(rt=(et=gt.locale)===null||et===void 0?void 0:et.Modal)!==null&&rt!==void 0?rt:ft,getContainer:_t}))};function confirm(_e){const et=globalConfig(),rt=document.createDocumentFragment();let st=Object.assign(Object.assign({},_e),{close:gt,open:!0}),ct;function ut(){for(var $t=arguments.length,_t=new Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];const Tt=_t.some(Rt=>Rt&&Rt.triggerCancel);_e.onCancel&&Tt&&_e.onCancel.apply(_e,[()=>{}].concat(_toConsumableArray$3(_t.slice(1))));for(let Rt=0;Rt{const _t=et.getPrefixCls(void 0,getRootPrefixCls()),wt=et.getIconPrefixCls(),Tt=et.getTheme(),Rt=React$1.createElement(ConfirmDialogWrapper,Object.assign({},$t));render$1(React$1.createElement(ConfigProvider$1,{prefixCls:_t,iconPrefixCls:wt,theme:Tt},et.holderRender?et.holderRender(Rt):Rt),rt)})}function gt(){for(var $t=arguments.length,_t=new Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];st=Object.assign(Object.assign({},st),{open:!1,afterClose:()=>{typeof _e.afterClose=="function"&&_e.afterClose(),ut.apply(this,_t)}}),st.visible&&delete st.visible,ft(st)}function xt($t){typeof $t=="function"?st=$t(st):st=Object.assign(Object.assign({},st),$t),ft(st)}return ft(st),destroyFns.push(gt),{destroy:gt,update:xt}}function withWarn(_e){return Object.assign(Object.assign({},_e),{type:"warning"})}function withInfo(_e){return Object.assign(Object.assign({},_e),{type:"info"})}function withSuccess(_e){return Object.assign(Object.assign({},_e),{type:"success"})}function withError(_e){return Object.assign(Object.assign({},_e),{type:"error"})}function withConfirm(_e){return Object.assign(Object.assign({},_e),{type:"confirm"})}function modalGlobalConfig(_e){let{rootPrefixCls:et}=_e;defaultRootPrefixCls=et}var __rest$$=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,{afterClose:st,config:ct}=_e,ut=__rest$$(_e,["afterClose","config"]);const[ft,gt]=reactExports.useState(!0),[xt,$t]=reactExports.useState(ct),{direction:_t,getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Tt=wt("modal"),Rt=wt(),It=()=>{var kt;st(),(kt=xt.afterClose)===null||kt===void 0||kt.call(xt)},At=function(){gt(!1);for(var kt=arguments.length,Ft=new Array(kt),Ht=0;HtVt&&Vt.triggerCancel);xt.onCancel&&Wt&&xt.onCancel.apply(xt,[()=>{}].concat(_toConsumableArray$3(Ft.slice(1))))};reactExports.useImperativeHandle(et,()=>({destroy:At,update:kt=>{$t(Ft=>Object.assign(Object.assign({},Ft),kt))}}));const jt=(rt=xt.okCancel)!==null&&rt!==void 0?rt:xt.type==="confirm",[Nt]=useLocale$3("Modal",localeValues$1.Modal);return reactExports.createElement(ConfirmDialog$1,Object.assign({prefixCls:Tt,rootPrefixCls:Rt},xt,{close:At,open:ft,afterClose:It,okText:xt.okText||(jt?Nt==null?void 0:Nt.okText:Nt==null?void 0:Nt.justOkText),direction:xt.direction||_t,cancelText:xt.cancelText||(Nt==null?void 0:Nt.cancelText)},ut))},HookModal$1=reactExports.forwardRef(HookModal);let uuid$5=0;const ElementsHolder=reactExports.memo(reactExports.forwardRef((_e,et)=>{const[rt,st]=usePatchElement();return reactExports.useImperativeHandle(et,()=>({patchElement:st}),[]),reactExports.createElement(reactExports.Fragment,null,rt)}));function useModal(){const _e=reactExports.useRef(null),[et,rt]=reactExports.useState([]);reactExports.useEffect(()=>{et.length&&(_toConsumableArray$3(et).forEach(ft=>{ft()}),rt([]))},[et]);const st=reactExports.useCallback(ut=>function(gt){var xt;uuid$5+=1;const $t=reactExports.createRef();let _t;const wt=new Promise(jt=>{_t=jt});let Tt=!1,Rt;const It=reactExports.createElement(HookModal$1,{key:`modal-${uuid$5}`,config:ut(gt),ref:$t,afterClose:()=>{Rt==null||Rt()},isSilent:()=>Tt,onConfirm:jt=>{_t(jt)}});return Rt=(xt=_e.current)===null||xt===void 0?void 0:xt.patchElement(It),Rt&&destroyFns.push(Rt),{destroy:()=>{function jt(){var Nt;(Nt=$t.current)===null||Nt===void 0||Nt.destroy()}$t.current?jt():rt(Nt=>[].concat(_toConsumableArray$3(Nt),[jt]))},update:jt=>{function Nt(){var kt;(kt=$t.current)===null||kt===void 0||kt.update(jt)}$t.current?Nt():rt(kt=>[].concat(_toConsumableArray$3(kt),[Nt]))},then:jt=>(Tt=!0,wt.then(jt))}},[]);return[reactExports.useMemo(()=>({info:st(withInfo),success:st(withSuccess),error:st(withError),warning:st(withWarn),confirm:st(withConfirm)}),[]),reactExports.createElement(ElementsHolder,{key:"modal-holder",ref:_e})]}const genNotificationPlacementStyle=_e=>{const{componentCls:et,notificationMarginEdge:rt,animationMaxHeight:st}=_e,ct=`${et}-notice`,ut=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),ft=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-st,opacity:0},"100%":{top:0,opacity:1}}),gt=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:_e.calc(st).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),xt=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[et]:{[`&${et}-top, &${et}-bottom`]:{marginInline:0,[ct]:{marginInline:"auto auto"}},[`&${et}-top`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:ft}},[`&${et}-bottom`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:gt}},[`&${et}-topRight, &${et}-bottomRight`]:{[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:ut}},[`&${et}-topLeft, &${et}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:rt,_skip_check_:!0},[ct]:{marginInlineEnd:"auto",marginInlineStart:0},[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationName:xt}}}}},NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(_e,et)=>{const{componentCls:rt}=_e;return{[`${rt}-${et}`]:{[`&${rt}-stack > ${rt}-notice-wrapper`]:{[et.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[et]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=_e=>{const et={};for(let rt=1;rt<_e.notificationStackLayer;rt++)et[`&:nth-last-child(${rt+1})`]={overflow:"hidden",[`& > ${_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"}},et)},genStackedNoticeStyle=_e=>{const et={};for(let rt=1;rt<_e.notificationStackLayer;rt++)et[`&:nth-last-child(${rt+1})`]={background:_e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},et)},genStackStyle=_e=>{const{componentCls:et}=_e;return Object.assign({[`${et}-stack`]:{[`& > ${et}-notice-wrapper`]:Object.assign({transition:`all ${_e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},genStackChildrenStyle(_e))},[`${et}-stack:not(${et}-stack-expanded)`]:{[`& > ${et}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(_e))},[`${et}-stack${et}-stack-expanded`]:{[`& > ${et}-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"}}}},NotificationPlacements.map(rt=>genPlacementStackStyle(_e,rt)).reduce((rt,st)=>Object.assign(Object.assign({},rt),st),{}))},genNoticeStyle=_e=>{const{iconCls:et,componentCls:rt,boxShadow:st,fontSizeLG:ct,notificationMarginBottom:ut,borderRadiusLG:ft,colorSuccess:gt,colorInfo:xt,colorWarning:$t,colorError:_t,colorTextHeading:wt,notificationBg:Tt,notificationPadding:Rt,notificationMarginEdge:It,fontSize:At,lineHeight:jt,width:Nt,notificationIconSize:kt,colorText:Ft}=_e,Ht=`${rt}-notice`;return{position:"relative",marginBottom:ut,marginInlineStart:"auto",background:Tt,borderRadius:ft,boxShadow:st,[Ht]:{padding:Rt,width:Nt,maxWidth:`calc(100vw - ${unit$1(_e.calc(It).mul(2).equal())})`,overflow:"hidden",lineHeight:jt,wordWrap:"break-word"},[`${rt}-close-icon`]:{fontSize:At,cursor:"pointer"},[`${Ht}-message`]:{marginBottom:_e.marginXS,color:wt,fontSize:ct,lineHeight:_e.lineHeightLG},[`${Ht}-description`]:{fontSize:At,color:Ft},[`${Ht}-closable ${Ht}-message`]:{paddingInlineEnd:_e.paddingLG},[`${Ht}-with-icon ${Ht}-message`]:{marginBottom:_e.marginXS,marginInlineStart:_e.calc(_e.marginSM).add(kt).equal(),fontSize:ct},[`${Ht}-with-icon ${Ht}-description`]:{marginInlineStart:_e.calc(_e.marginSM).add(kt).equal(),fontSize:At},[`${Ht}-icon`]:{position:"absolute",fontSize:kt,lineHeight:1,[`&-success${et}`]:{color:gt},[`&-info${et}`]:{color:xt},[`&-warning${et}`]:{color:$t},[`&-error${et}`]:{color:_t}},[`${Ht}-close`]:{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.closeBtnHoverBg}},[`${Ht}-btn`]:{float:"right",marginTop:_e.marginSM}}},genNotificationStyle=_e=>{const{componentCls:et,notificationMarginBottom:rt,notificationMarginEdge:st,motionDurationMid:ct,motionEaseInOut:ut}=_e,ft=`${et}-notice`,gt=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:_e.animationMaxHeight,marginBottom:rt},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"fixed",zIndex:_e.zIndexPopup,marginRight:{value:st,_skip_check_:!0},[`${et}-hook-holder`]:{position:"relative"},[`${et}-fade-appear-prepare`]:{opacity:"0 !important"},[`${et}-fade-enter, ${et}-fade-appear`]:{animationDuration:_e.motionDurationMid,animationTimingFunction:ut,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${et}-fade-leave`]:{animationTimingFunction:ut,animationFillMode:"both",animationDuration:ct,animationPlayState:"paused"},[`${et}-fade-enter${et}-fade-enter-active, ${et}-fade-appear${et}-fade-appear-active`]:{animationPlayState:"running"},[`${et}-fade-leave${et}-fade-leave-active`]:{animationName:gt,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${ft}-btn`]:{float:"left"}}})},{[et]:{[`${ft}-wrapper`]:Object.assign({},genNoticeStyle(_e))}}]},prepareComponentToken$x=_e=>({zIndexPopup:_e.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384,closeBtnHoverBg:_e.wireframe?"transparent":_e.colorFillContent}),prepareNotificationToken=_e=>{const et=_e.paddingMD,rt=_e.paddingLG;return merge$7(_e,{notificationBg:_e.colorBgElevated,notificationPaddingVertical:et,notificationPaddingHorizontal:rt,notificationIconSize:_e.calc(_e.fontSizeLG).mul(_e.lineHeightLG).equal(),notificationCloseButtonSize:_e.calc(_e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:_e.margin,notificationPadding:`${unit$1(_e.paddingMD)} ${unit$1(_e.paddingContentHorizontalLG)}`,notificationMarginEdge:_e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},useStyle$T=genStyleHooks("Notification",_e=>{const et=prepareNotificationToken(_e);return[genNotificationStyle(et),genNotificationPlacementStyle(et),genStackStyle(et)]},prepareComponentToken$x);function getCloseIcon(_e,et){return et===null||et===!1?null:et||reactExports.createElement("span",{className:`${_e}-close-x`},reactExports.createElement(CloseOutlined$1,{className:`${_e}-close-icon`}))}const typeToIcon={success:CheckCircleFilled$1,info:InfoCircleFilled$1,error:CloseCircleFilled$3,warning:ExclamationCircleFilled$1},PureContent=_e=>{const{prefixCls:et,icon:rt,type:st,message:ct,description:ut,btn:ft,role:gt="alert"}=_e;let xt=null;return rt?xt=reactExports.createElement("span",{className:`${et}-icon`},rt):st&&(xt=reactExports.createElement(typeToIcon[st]||null,{className:classNames(`${et}-icon`,`${et}-icon-${st}`)})),reactExports.createElement("div",{className:classNames({[`${et}-with-icon`]:xt}),role:gt},xt,reactExports.createElement("div",{className:`${et}-message`},ct),reactExports.createElement("div",{className:`${et}-description`},ut),ft&&reactExports.createElement("div",{className:`${et}-btn`},ft))};function getPlacementStyle(_e,et,rt){let st;switch(_e){case"top":st={left:"50%",transform:"translateX(-50%)",right:"auto",top:et,bottom:"auto"};break;case"topLeft":st={left:0,top:et,bottom:"auto"};break;case"topRight":st={right:0,top:et,bottom:"auto"};break;case"bottom":st={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:rt};break;case"bottomLeft":st={left:0,top:"auto",bottom:rt};break;default:st={right:0,top:"auto",bottom:rt};break}return st}function getMotion$2(_e){return{motionName:`${_e}-fade`}}var __rest$_=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{children:et,prefixCls:rt}=_e;const st=useCSSVarCls(rt),[ct,ut,ft]=useStyle$T(rt,st);return ct(React$1.createElement(NotificationProvider,{classNames:{list:classNames(ut,ft,st)}},et))},renderNotifications=(_e,et)=>{let{prefixCls:rt,key:st}=et;return React$1.createElement(Wrapper,{prefixCls:rt,key:st},_e)},Holder=React$1.forwardRef((_e,et)=>{const{top:rt,bottom:st,prefixCls:ct,getContainer:ut,maxCount:ft,rtl:gt,onAllRemoved:xt,stack:$t,duration:_t}=_e,{getPrefixCls:wt,getPopupContainer:Tt,notification:Rt,direction:It}=reactExports.useContext(ConfigContext$1),[,At]=useToken$4(),jt=ct||wt("notification"),Nt=Vt=>getPlacementStyle(Vt,rt??DEFAULT_OFFSET,st??DEFAULT_OFFSET),kt=()=>classNames({[`${jt}-rtl`]:gt??It==="rtl"}),Ft=()=>getMotion$2(jt),[Ht,Wt]=useNotification$1({prefixCls:jt,style:Nt,className:kt,motion:Ft,closable:!0,closeIcon:getCloseIcon(jt),duration:_t??DEFAULT_DURATION,getContainer:()=>(ut==null?void 0:ut())||(Tt==null?void 0:Tt())||document.body,maxCount:ft,onAllRemoved:xt,renderNotifications,stack:$t===!1?!1:{threshold:typeof $t=="object"?$t==null?void 0:$t.threshold:void 0,offset:8,gap:At.margin}});return React$1.useImperativeHandle(et,()=>Object.assign(Object.assign({},Ht),{prefixCls:jt,notification:Rt})),Wt});function useInternalNotification(_e){const et=React$1.useRef(null);return devUseWarning(),[React$1.useMemo(()=>{const st=gt=>{var xt;if(!et.current)return;const{open:$t,prefixCls:_t,notification:wt}=et.current,Tt=`${_t}-notice`,{message:Rt,description:It,icon:At,type:jt,btn:Nt,className:kt,style:Ft,role:Ht="alert",closeIcon:Wt}=gt,Vt=__rest$_(gt,["message","description","icon","type","btn","className","style","role","closeIcon"]),qt=getCloseIcon(Tt,typeof Wt<"u"?Wt:wt==null?void 0:wt.closeIcon);return $t(Object.assign(Object.assign({placement:(xt=_e==null?void 0:_e.placement)!==null&&xt!==void 0?xt:DEFAULT_PLACEMENT},Vt),{content:React$1.createElement(PureContent,{prefixCls:Tt,icon:At,type:jt,message:Rt,description:It,btn:Nt,role:Ht}),className:classNames(jt&&`${Tt}-${jt}`,kt,wt==null?void 0:wt.className),style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Ft),closeIcon:qt,closable:!!qt}))},ut={open:st,destroy:gt=>{var xt,$t;gt!==void 0?(xt=et.current)===null||xt===void 0||xt.close(gt):($t=et.current)===null||$t===void 0||$t.destroy()}};return["success","info","warning","error"].forEach(gt=>{ut[gt]=xt=>st(Object.assign(Object.assign({},xt),{type:gt}))}),ut},[]),React$1.createElement(Holder,Object.assign({key:"notification-holder"},_e,{ref:et}))]}function useNotification(_e){return useInternalNotification(_e)}const AppConfigContext=React$1.createContext({}),AppContext=React$1.createContext({message:{},notification:{},modal:{}}),AppContext$1=AppContext,genBaseStyle$e=_e=>{const{componentCls:et,colorText:rt,fontSize:st,lineHeight:ct,fontFamily:ut}=_e;return{[et]:{color:rt,fontSize:st,lineHeight:ct,fontFamily:ut}}},prepareComponentToken$w=()=>({}),useStyle$S=genStyleHooks("App",genBaseStyle$e,prepareComponentToken$w),useApp=()=>React$1.useContext(AppContext$1),App$1=_e=>{const{prefixCls:et,children:rt,className:st,rootClassName:ct,message:ut,notification:ft,style:gt,component:xt="div"}=_e,{getPrefixCls:$t}=reactExports.useContext(ConfigContext$1),_t=$t("app",et),[wt,Tt,Rt]=useStyle$S(_t),It=classNames(Tt,_t,st,ct,Rt),At=reactExports.useContext(AppConfigContext),jt=React$1.useMemo(()=>({message:Object.assign(Object.assign({},At.message),ut),notification:Object.assign(Object.assign({},At.notification),ft)}),[ut,ft,At.message,At.notification]),[Nt,kt]=useMessage(jt.message),[Ft,Ht]=useNotification(jt.notification),[Wt,Vt]=useModal(),qt=React$1.useMemo(()=>({message:Nt,notification:Ft,modal:Wt}),[Nt,Ft,Wt]),Xt=xt===!1?React$1.Fragment:xt,Gt={className:It,style:gt};return wt(React$1.createElement(AppContext$1.Provider,{value:qt},React$1.createElement(AppConfigContext.Provider,{value:jt},React$1.createElement(Xt,Object.assign({},xt===!1?void 0:Gt),Vt,kt,Ht,rt))))};App$1.useApp=useApp;const AntdApp=App$1;function withPureRenderTheme(_e){return et=>reactExports.createElement(ConfigProvider$1,{theme:{token:{motion:!1,zIndexPopupBase:0}}},reactExports.createElement(_e,Object.assign({},et)))}const genPurePanel=(_e,et,rt,st)=>withPureRenderTheme(ut=>{const{prefixCls:ft,style:gt}=ut,xt=reactExports.useRef(null),[$t,_t]=reactExports.useState(0),[wt,Tt]=reactExports.useState(0),[Rt,It]=useMergedState(!1,{value:ut.open}),{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),jt=At(et||"select",ft);reactExports.useEffect(()=>{if(It(!0),typeof ResizeObserver<"u"){const Ft=new ResizeObserver(Wt=>{const Vt=Wt[0].target;_t(Vt.offsetHeight+8),Tt(Vt.offsetWidth)}),Ht=setInterval(()=>{var Wt;const Vt=rt?`.${rt(jt)}`:`.${jt}-dropdown`,qt=(Wt=xt.current)===null||Wt===void 0?void 0:Wt.querySelector(Vt);qt&&(clearInterval(Ht),Ft.observe(qt))},10);return()=>{clearInterval(Ht),Ft.disconnect()}}},[]);let Nt=Object.assign(Object.assign({},ut),{style:Object.assign(Object.assign({},gt),{margin:0}),open:Rt,visible:Rt,getPopupContainer:()=>xt.current});st&&(Nt=st(Nt));const kt={paddingBottom:$t,position:"relative",minWidth:wt};return reactExports.createElement("div",{ref:xt,style:kt},reactExports.createElement(_e,Object.assign({},Nt)))}),isMobile=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 TransBtn$2=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear$2=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn$2,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext$2=reactExports.createContext(null);function useBaseProps$2(){return reactExports.useContext(BaseSelectContext$2)}function useDelayReset$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl$2(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var _excluded$1H=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED$1=void 0;function InternalItem$1(_e,et){var rt=_e.prefixCls,st=_e.invalidate,ct=_e.item,ut=_e.renderItem,ft=_e.responsive,gt=_e.responsiveDisabled,xt=_e.registerSize,$t=_e.itemKey,_t=_e.className,wt=_e.style,Tt=_e.children,Rt=_e.display,It=_e.order,At=_e.component,jt=At===void 0?"div":At,Nt=_objectWithoutProperties$2(_e,_excluded$1H),kt=ft&&!Rt;function Ft(Xt){xt($t,Xt)}reactExports.useEffect(function(){return function(){Ft(null)}},[]);var Ht=ut&&ct!==UNDEFINED$1?ut(ct):Tt,Wt;st||(Wt={opacity:kt?0:1,height:kt?0:UNDEFINED$1,overflowY:kt?"hidden":UNDEFINED$1,order:ft?It:UNDEFINED$1,pointerEvents:kt?"none":UNDEFINED$1,position:kt?"absolute":UNDEFINED$1});var Vt={};kt&&(Vt["aria-hidden"]=!0);var qt=reactExports.createElement(jt,_extends$b({className:classNames(!st&&rt,_t),style:_objectSpread2(_objectSpread2({},Wt),wt)},Vt,Nt,{ref:et}),Ht);return ft&&(qt=reactExports.createElement(RefResizeObserver,{onResize:function(Gt){var Zt=Gt.offsetWidth;Ft(Zt)},disabled:gt},qt)),qt}var Item$8=reactExports.forwardRef(InternalItem$1);Item$8.displayName="Item";function channelUpdate(_e){if(typeof MessageChannel>"u")wrapperRaf(_e);else{var et=new MessageChannel;et.port1.onmessage=function(){return _e()},et.port2.postMessage(void 0)}}function useBatcher(){var _e=reactExports.useRef(null),et=function(st){_e.current||(_e.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){_e.current.forEach(function(ct){ct()}),_e.current=null})})),_e.current.push(st)};return et}function useEffectState(_e,et){var rt=reactExports.useState(et),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=useEvent(function(gt){_e(function(){ut(gt)})});return[ct,ft]}var OverflowContext=React$1.createContext(null),_excluded$1G=["component"],_excluded2$r=["className"],_excluded3$4=["className"],InternalRawItem=function(et,rt){var st=reactExports.useContext(OverflowContext);if(!st){var ct=et.component,ut=ct===void 0?"div":ct,ft=_objectWithoutProperties$2(et,_excluded$1G);return reactExports.createElement(ut,_extends$b({},ft,{ref:rt}))}var gt=st.className,xt=_objectWithoutProperties$2(st,_excluded2$r),$t=et.className,_t=_objectWithoutProperties$2(et,_excluded3$4);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$8,_extends$b({ref:rt,className:classNames(gt,$t)},xt,_t)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$1F=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(_e){return"+ ".concat(_e.length," ...")}function Overflow(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-overflow":rt,ct=_e.data,ut=ct===void 0?[]:ct,ft=_e.renderItem,gt=_e.renderRawItem,xt=_e.itemKey,$t=_e.itemWidth,_t=$t===void 0?10:$t,wt=_e.ssr,Tt=_e.style,Rt=_e.className,It=_e.maxCount,At=_e.renderRest,jt=_e.renderRawRest,Nt=_e.suffix,kt=_e.component,Ft=kt===void 0?"div":kt,Ht=_e.itemComponent,Wt=_e.onVisibleChange,Vt=_objectWithoutProperties$2(_e,_excluded$1F),qt=wt==="full",Xt=useBatcher(),Gt=useEffectState(Xt,null),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=er||0,ur=useEffectState(Xt,new Map),fr=_slicedToArray$3(ur,2),hr=fr[0],pr=fr[1],dr=useEffectState(Xt,0),yr=_slicedToArray$3(dr,2),Sr=yr[0],br=yr[1],mr=useEffectState(Xt,0),Er=_slicedToArray$3(mr,2),Tr=Er[0],Mr=Er[1],Or=useEffectState(Xt,0),wr=_slicedToArray$3(Or,2),Cr=wr[0],Nr=wr[1],Rr=reactExports.useState(null),Pr=_slicedToArray$3(Rr,2),jr=Pr[0],kr=Pr[1],Fr=reactExports.useState(null),_r=_slicedToArray$3(Fr,2),Br=_r[0],Dr=_r[1],Xr=reactExports.useMemo(function(){return Br===null&&qt?Number.MAX_SAFE_INTEGER:Br||0},[Br,er]),Kr=reactExports.useState(!1),Hr=_slicedToArray$3(Kr,2),Vr=Hr[0],ln=Hr[1],Qr="".concat(st,"-item"),Zr=Math.max(Sr,Tr),vn=It===RESPONSIVE,vr=ut.length&&vn,gr=It===INVALIDATE,$r=vr||typeof It=="number"&&ut.length>It,zr=reactExports.useMemo(function(){var Tn=ut;return vr?er===null&&qt?Tn=ut:Tn=ut.slice(0,Math.min(ut.length,cr/_t)):typeof It=="number"&&(Tn=ut.slice(0,It)),Tn},[ut,_t,er,It,vr]),qr=reactExports.useMemo(function(){return vr?ut.slice(Xr+1):ut.slice(zr.length)},[ut,zr,vr,Xr]),Wr=reactExports.useCallback(function(Tn,Nn){var On;return typeof xt=="function"?xt(Tn):(On=xt&&(Tn==null?void 0:Tn[xt]))!==null&&On!==void 0?On:Nn},[xt]),Gr=reactExports.useCallback(ft||function(Tn){return Tn},[ft]);function dn(Tn,Nn,On){Br===Tn&&(Nn===void 0||Nn===jr)||(Dr(Tn),On||(ln(Tncr){dn($n-1,Tn-Sn-Cr+Tr);break}}Nt&&kn(0)+Cr>cr&&kr(null)}},[cr,hr,Tr,Cr,Wr,zr]);var Bn=Vr&&!!qr.length,Yn={};jr!==null&&vr&&(Yn={position:"absolute",left:jr,top:0});var Gn={prefixCls:Qr,responsive:vr,component:Ht,invalidate:gr},io=gt?function(Tn,Nn){var On=Wr(Tn,Nn);return reactExports.createElement(OverflowContext.Provider,{key:On,value:_objectSpread2(_objectSpread2({},Gn),{},{order:Nn,item:Tn,itemKey:On,registerSize:hn,display:Nn<=Xr})},gt(Tn,Nn))}:function(Tn,Nn){var On=Wr(Tn,Nn);return reactExports.createElement(Item$8,_extends$b({},Gn,{order:Nn,key:On,item:Tn,renderItem:Gr,itemKey:On,registerSize:hn,display:Nn<=Xr}))},pn,gn={order:Bn?Xr:Number.MAX_SAFE_INTEGER,className:"".concat(Qr,"-rest"),registerSize:Cn,display:Bn};if(jt)jt&&(pn=reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},Gn),gn)},jt(qr)));else{var yn=At||defaultRenderRest;pn=reactExports.createElement(Item$8,_extends$b({},Gn,gn),typeof yn=="function"?yn(qr):yn)}var _n=reactExports.createElement(Ft,_extends$b({className:classNames(!gr&&st,Rt),style:Tt,ref:et},Vt),zr.map(io),$r?pn:null,Nt&&reactExports.createElement(Item$8,_extends$b({},Gn,{responsive:vn,responsiveDisabled:!vr,order:Xr,className:"".concat(Qr,"-suffix"),registerSize:Rn,display:!0,style:Yn}),Nt));return vn&&(_n=reactExports.createElement(RefResizeObserver,{onResize:mn,disabled:!vr},_n)),_n}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$8=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Xt=qt,Gt=Xt.ref,Zt=Xt.props,er=Zt.onKeyDown,lr=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,fr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Gt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),er&&er(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),lr&&lr(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),fr&&fr(dr)},onPaste:kt})),qt},RefInput$2=reactExports.forwardRef(Input$8);function toArray$c(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient$2=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$6=isClient$2;function hasValue$4(_e){return _e!=null}function isComboNoValue$2(_e){return!_e&&_e!==0}function isTitleType$5(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle$2(_e){var et=void 0;return _e&&(isTitleType$5(_e.title)?et=_e.title.toString():isTitleType$5(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect$2(_e,et){isBrowserClient$6?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$3(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown$2=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector$2=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Xt=et.onRemove,Gt=et.onInputChange,Zt=et.onInputPaste,er=et.onInputKeyDown,lr=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,fr=reactExports.useRef(null),hr=reactExports.useState(0),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState(!1),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr="".concat(st,"-selection"),Mr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect$2(function(){yr(fr.current.scrollWidth)},[Mr]);var wr=function(Fr,_r,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle$2(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},_r),Dr&&reactExports.createElement(TransBtn$2,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown$2,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,_r,Br,Dr,Xr){var Kr=function(Vr){onPreventMouseDown$2(Vr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:_r,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var _r=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!_r,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var Hr=String(Kr);Hr.length>Ft&&(Kr="".concat(Hr.slice(0,Ft),"..."))}var Vr=function(Qr){Qr&&Qr.stopPropagation(),Xt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,_r,Xr,Vr):wr(Fr,Kr,_r,Xr,Vr)},Rr=function(Fr){var _r=typeof Wt=="function"?Wt(Fr):Wt;return wr({title:_r},_r,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Er(!0)},onBlur:function(){Er(!1)}},reactExports.createElement(RefInput$2,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:Mr,onKeyDown:er,onMouseDown:lr,onChange:Gt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:fr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},Mr," ")),jr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$3,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,jr,!ct.length&&!Mr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector$3=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Xt=et.onInputCompositionEnd,Gt=et.title,Zt=reactExports.useState(!1),er=_slicedToArray$3(Zt,2),lr=er[0],cr=er[1],ur=_t==="combobox",fr=ur||At,hr=Tt[0],pr=jt||"";ur&&Nt&&!lr&&(pr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!pr,yr=Gt===void 0?getTitle$2(hr):Gt,Sr=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput$2,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:fr,activeDescendantId:$t,value:pr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Xt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,Sr)};function isValidateOpenKey$2(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector$2=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock$2(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(pr){var dr=pr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&pr.preventDefault(),It&&It(pr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(pr.target.value)),isValidateOpenKey$2(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(pr){wt(pr,!0,ct.current)!==!1&&Rt(!0)},Xt=function(){ct.current=!0},Gt=function(pr){ct.current=!1,gt!=="combobox"&&qt(pr.target.value)},Zt=function(pr){var dr=pr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},er=function(pr){var dr=pr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},lr=function(pr){var dr=pr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(pr){var dr=kt();pr.target!==st.current&&!dr&>!=="combobox"&&pr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:er,onInputCompositionStart:Xt,onInputCompositionEnd:Gt},fr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector$2,_extends$b({},et,ur)):reactExports.createElement(SingleSelector$3,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:lr,onMouseDown:cr},fr)},ForwardSelector$2=reactExports.forwardRef(Selector$2);function Arrow(_e){var et=_e.prefixCls,rt=_e.align,st=_e.arrow,ct=_e.arrowPos,ut=st||{},ft=ut.className,gt=ut.content,xt=ct.x,$t=xt===void 0?0:xt,_t=ct.y,wt=_t===void 0?0:_t,Tt=reactExports.useRef();if(!rt||!rt.points)return null;var Rt={position:"absolute"};if(rt.autoArrow!==!1){var It=rt.points[0],At=rt.points[1],jt=It[0],Nt=It[1],kt=At[0],Ft=At[1];jt===kt||!["t","b"].includes(jt)?Rt.top=wt:jt==="t"?Rt.top=0:Rt.bottom=0,Nt===Ft||!["l","r"].includes(Nt)?Rt.left=$t:Nt==="l"?Rt.left=0:Rt.right=0}return reactExports.createElement("div",{ref:Tt,className:classNames("".concat(et,"-arrow"),ft),style:Rt},gt)}function Mask$1(_e){var et=_e.prefixCls,rt=_e.open,st=_e.zIndex,ct=_e.mask,ut=_e.motion;return ct?reactExports.createElement(CSSMotion,_extends$b({},ut,{motionAppear:!0,visible:rt,removeOnLeave:!0}),function(ft){var gt=ft.className;return reactExports.createElement("div",{style:{zIndex:st},className:classNames("".concat(et,"-mask"),gt)})}):null}var PopupContent=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){return et.cache}),Popup$2=reactExports.forwardRef(function(_e,et){var rt=_e.popup,st=_e.className,ct=_e.prefixCls,ut=_e.style,ft=_e.target,gt=_e.onVisibleChanged,xt=_e.open,$t=_e.keepDom,_t=_e.fresh,wt=_e.onClick,Tt=_e.mask,Rt=_e.arrow,It=_e.arrowPos,At=_e.align,jt=_e.motion,Nt=_e.maskMotion,kt=_e.forceRender,Ft=_e.getPopupContainer,Ht=_e.autoDestroy,Wt=_e.portal,Vt=_e.zIndex,qt=_e.onMouseEnter,Xt=_e.onMouseLeave,Gt=_e.onPointerEnter,Zt=_e.ready,er=_e.offsetX,lr=_e.offsetY,cr=_e.offsetR,ur=_e.offsetB,fr=_e.onAlign,hr=_e.onPrepare,pr=_e.stretch,dr=_e.targetWidth,yr=_e.targetHeight,Sr=typeof rt=="function"?rt():rt,br=xt||$t,mr=(Ft==null?void 0:Ft.length)>0,Er=reactExports.useState(!Ft||!mr),Tr=_slicedToArray$3(Er,2),Mr=Tr[0],Or=Tr[1];if(useLayoutEffect$3(function(){!Mr&&mr&&ft&&Or(!0)},[Mr,mr,ft]),!Mr)return null;var wr="auto",Cr={left:"-1000vw",top:"-1000vh",right:wr,bottom:wr};if(Zt||!xt){var Nr,Rr=At.points,Pr=At.dynamicInset||((Nr=At._experimental)===null||Nr===void 0?void 0:Nr.dynamicInset),jr=Pr&&Rr[0][1]==="r",kr=Pr&&Rr[0][0]==="b";jr?(Cr.right=cr,Cr.left=wr):(Cr.left=er,Cr.right=wr),kr?(Cr.bottom=ur,Cr.top=wr):(Cr.top=lr,Cr.bottom=wr)}var Fr={};return pr&&(pr.includes("height")&&yr?Fr.height=yr:pr.includes("minHeight")&&yr&&(Fr.minHeight=yr),pr.includes("width")&&dr?Fr.width=dr:pr.includes("minWidth")&&dr&&(Fr.minWidth=dr)),xt||(Fr.pointerEvents="none"),reactExports.createElement(Wt,{open:kt||br,getContainer:Ft&&function(){return Ft(ft)},autoDestroy:Ht},reactExports.createElement(Mask$1,{prefixCls:ct,open:xt,zIndex:Vt,mask:Tt,motion:Nt}),reactExports.createElement(RefResizeObserver,{onResize:fr,disabled:!xt},function(_r){return reactExports.createElement(CSSMotion,_extends$b({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:kt,leavedClassName:"".concat(ct,"-hidden")},jt,{onAppearPrepare:hr,onEnterPrepare:hr,visible:xt,onVisibleChanged:function(Dr){var Xr;jt==null||(Xr=jt.onVisibleChanged)===null||Xr===void 0||Xr.call(jt,Dr),gt(Dr)}}),function(Br,Dr){var Xr=Br.className,Kr=Br.style,Hr=classNames(ct,Xr,st);return reactExports.createElement("div",{ref:composeRef(_r,et,Dr),className:Hr,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(It.x||0,"px"),"--arrow-y":"".concat(It.y||0,"px")},Cr),Fr),Kr),{},{boxSizing:"border-box",zIndex:Vt},ut),onMouseEnter:qt,onMouseLeave:Xt,onPointerEnter:Gt,onClick:wt},Rt&&reactExports.createElement(Arrow,{prefixCls:ct,arrow:Rt,arrowPos:It,align:At}),reactExports.createElement(PopupContent,{cache:!xt&&!_t},Sr))})}))}),TriggerWrapper=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_e.getTriggerDOMNode,ct=supportRef(rt),ut=reactExports.useCallback(function(gt){fillRef(et,st?st(gt):gt)},[st]),ft=useComposeRef(ut,rt.ref);return ct?reactExports.cloneElement(rt,{ref:ft}):rt}),TriggerContext=reactExports.createContext(null);function toArray$b(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function useAction(_e,et,rt,st){return reactExports.useMemo(function(){var ct=toArray$b(rt??et),ut=toArray$b(st??et),ft=new Set(ct),gt=new Set(ut);return _e&&(ft.has("hover")&&(ft.delete("hover"),ft.add("click")),gt.has("hover")&&(gt.delete("hover"),gt.add("click"))),[ft,gt]},[_e,et,rt,st])}function isPointsEq(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=arguments.length>2?arguments[2]:void 0;return rt?_e[0]===et[0]:_e[0]===et[0]&&_e[1]===et[1]}function getAlignPopupClassName(_e,et,rt,st){for(var ct=rt.points,ut=Object.keys(_e),ft=0;ft1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(_e)?et:_e}function getPxValue(_e){return toNum(parseFloat(_e),0)}function getVisibleArea(_e,et){var rt=_objectSpread2({},_e);return(et||[]).forEach(function(st){if(!(st instanceof HTMLBodyElement||st instanceof HTMLHtmlElement)){var ct=getWin(st).getComputedStyle(st),ut=ct.overflow,ft=ct.overflowClipMargin,gt=ct.borderTopWidth,xt=ct.borderBottomWidth,$t=ct.borderLeftWidth,_t=ct.borderRightWidth,wt=st.getBoundingClientRect(),Tt=st.offsetHeight,Rt=st.clientHeight,It=st.offsetWidth,At=st.clientWidth,jt=getPxValue(gt),Nt=getPxValue(xt),kt=getPxValue($t),Ft=getPxValue(_t),Ht=toNum(Math.round(wt.width/It*1e3)/1e3),Wt=toNum(Math.round(wt.height/Tt*1e3)/1e3),Vt=(It-At-kt-Ft)*Ht,qt=(Tt-Rt-jt-Nt)*Wt,Xt=jt*Wt,Gt=Nt*Wt,Zt=kt*Ht,er=Ft*Ht,lr=0,cr=0;if(ut==="clip"){var ur=getPxValue(ft);lr=ur*Ht,cr=ur*Wt}var fr=wt.x+Zt-lr,hr=wt.y+Xt-cr,pr=fr+wt.width+2*lr-Zt-er-Vt,dr=hr+wt.height+2*cr-Xt-Gt-qt;rt.left=Math.max(rt.left,fr),rt.top=Math.max(rt.top,hr),rt.right=Math.min(rt.right,pr),rt.bottom=Math.min(rt.bottom,dr)}}),rt}function getUnitOffset(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rt="".concat(et),st=rt.match(/^(.*)\%$/);return st?_e*(parseFloat(st[1])/100):parseFloat(rt)}function getNumberOffset(_e,et){var rt=et||[],st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return[getUnitOffset(_e.width,ct),getUnitOffset(_e.height,ut)]}function splitPoints(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[_e[0],_e[1]]}function getAlignPoint(_e,et){var rt=et[0],st=et[1],ct,ut;return rt==="t"?ut=_e.y:rt==="b"?ut=_e.y+_e.height:ut=_e.y+_e.height/2,st==="l"?ct=_e.x:st==="r"?ct=_e.x+_e.width:ct=_e.x+_e.width/2,{x:ct,y:ut}}function reversePoints(_e,et){var rt={t:"b",b:"t",l:"r",r:"l"};return _e.map(function(st,ct){return ct===et?rt[st]||"c":st}).join("")}function useAlign(_e,et,rt,st,ct,ut,ft){var gt=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ct[st]||{}}),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1],wt=reactExports.useRef(0),Tt=reactExports.useMemo(function(){return et?collectScroller(et):[]},[et]),Rt=reactExports.useRef({}),It=function(){Rt.current={}};_e||It();var At=useEvent(function(){if(et&&rt&&_e){let Fo=function(Os,Ss){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hr,Is=Sr.x+Os,Cs=Sr.y+Ss,Xs=Is+Nr,Zs=Cs+Cr,Js=Math.max(Is,Rs.left),dp=Math.max(Cs,Rs.top),So=Math.min(Xs,Rs.right),Io=Math.min(Zs,Rs.bottom);return Math.max(0,(So-Js)*(Io-dp))},us=function(){ao=Sr.y+yn,Vn=ao+Cr,Wn=Sr.x+gn,zn=Wn+Nr};var Eo=Fo,Do=us,kt,Ft,Ht=et,Wt=Ht.ownerDocument,Vt=getWin(Ht),qt=Vt.getComputedStyle(Ht),Xt=qt.width,Gt=qt.height,Zt=qt.position,er=Ht.style.left,lr=Ht.style.top,cr=Ht.style.right,ur=Ht.style.bottom,fr=Ht.style.overflow,hr=_objectSpread2(_objectSpread2({},ct[st]),ut),pr=Wt.createElement("div");(kt=Ht.parentElement)===null||kt===void 0||kt.appendChild(pr),pr.style.left="".concat(Ht.offsetLeft,"px"),pr.style.top="".concat(Ht.offsetTop,"px"),pr.style.position=Zt,pr.style.height="".concat(Ht.offsetHeight,"px"),pr.style.width="".concat(Ht.offsetWidth,"px"),Ht.style.left="0",Ht.style.top="0",Ht.style.right="auto",Ht.style.bottom="auto",Ht.style.overflow="hidden";var dr;if(Array.isArray(rt))dr={x:rt[0],y:rt[1],width:0,height:0};else{var yr=rt.getBoundingClientRect();dr={x:yr.x,y:yr.y,width:yr.width,height:yr.height}}var Sr=Ht.getBoundingClientRect(),br=Wt.documentElement,mr=br.clientWidth,Er=br.clientHeight,Tr=br.scrollWidth,Mr=br.scrollHeight,Or=br.scrollTop,wr=br.scrollLeft,Cr=Sr.height,Nr=Sr.width,Rr=dr.height,Pr=dr.width,jr={left:0,top:0,right:mr,bottom:Er},kr={left:-wr,top:-Or,right:Tr-wr,bottom:Mr-Or},Fr=hr.htmlRegion,_r="visible",Br="visibleFirst";Fr!=="scroll"&&Fr!==Br&&(Fr=_r);var Dr=Fr===Br,Xr=getVisibleArea(kr,Tt),Kr=getVisibleArea(jr,Tt),Hr=Fr===_r?Kr:Xr,Vr=Dr?Kr:Hr;Ht.style.left="auto",Ht.style.top="auto",Ht.style.right="0",Ht.style.bottom="0";var ln=Ht.getBoundingClientRect();Ht.style.left=er,Ht.style.top=lr,Ht.style.right=cr,Ht.style.bottom=ur,Ht.style.overflow=fr,(Ft=Ht.parentElement)===null||Ft===void 0||Ft.removeChild(pr);var Qr=toNum(Math.round(Nr/parseFloat(Xt)*1e3)/1e3),Zr=toNum(Math.round(Cr/parseFloat(Gt)*1e3)/1e3);if(Qr===0||Zr===0||isDOM(rt)&&!isVisible$1(rt))return;var vn=hr.offset,vr=hr.targetOffset,gr=getNumberOffset(Sr,vn),$r=_slicedToArray$3(gr,2),zr=$r[0],qr=$r[1],Wr=getNumberOffset(dr,vr),Gr=_slicedToArray$3(Wr,2),dn=Gr[0],mn=Gr[1];dr.x-=dn,dr.y-=mn;var hn=hr.points||[],Cn=_slicedToArray$3(hn,2),Rn=Cn[0],kn=Cn[1],Bn=splitPoints(kn),Yn=splitPoints(Rn),Gn=getAlignPoint(dr,Bn),io=getAlignPoint(Sr,Yn),pn=_objectSpread2({},hr),gn=Gn.x-io.x+zr,yn=Gn.y-io.y+qr,_n=Fo(gn,yn),Tn=Fo(gn,yn,Kr),Nn=getAlignPoint(dr,["t","l"]),On=getAlignPoint(Sr,["t","l"]),$n=getAlignPoint(dr,["b","r"]),Sn=getAlignPoint(Sr,["b","r"]),xn=hr.overflow||{},In=xn.adjustX,jn=xn.adjustY,Hn=xn.shiftX,qn=xn.shiftY,Jn=function(Ss){return typeof Ss=="boolean"?Ss:Ss>=0},ao,Vn,Wn,zn;us();var wn=Jn(jn),cn=Yn[0]===Bn[0];if(wn&&Yn[0]==="t"&&(Vn>Vr.bottom||Rt.current.bt)){var Pn=yn;cn?Pn-=Cr-Rr:Pn=Nn.y-Sn.y-qr;var An=Fo(gn,Pn),Xn=Fo(gn,Pn,Kr);An>_n||An===_n&&(!Dr||Xn>=Tn)?(Rt.current.bt=!0,yn=Pn,qr=-qr,pn.points=[reversePoints(Yn,0),reversePoints(Bn,0)]):Rt.current.bt=!1}if(wn&&Yn[0]==="b"&&(ao_n||ro===_n&&(!Dr||Kn>=Tn)?(Rt.current.tb=!0,yn=eo,qr=-qr,pn.points=[reversePoints(Yn,0),reversePoints(Bn,0)]):Rt.current.tb=!1}var co=Jn(In),uo=Yn[1]===Bn[1];if(co&&Yn[1]==="l"&&(zn>Vr.right||Rt.current.rl)){var vo=gn;uo?vo-=Nr-Pr:vo=Nn.x-Sn.x-zr;var Bo=Fo(vo,yn),Ho=Fo(vo,yn,Kr);Bo>_n||Bo===_n&&(!Dr||Ho>=Tn)?(Rt.current.rl=!0,gn=vo,zr=-zr,pn.points=[reversePoints(Yn,1),reversePoints(Bn,1)]):Rt.current.rl=!1}if(co&&Yn[1]==="r"&&(Wn_n||Ro===_n&&(!Dr||Po>=Tn)?(Rt.current.lr=!0,gn=so,zr=-zr,pn.points=[reversePoints(Yn,1),reversePoints(Bn,1)]):Rt.current.lr=!1}us();var Ao=Hn===!0?0:Hn;typeof Ao=="number"&&(WnKr.right&&(gn-=zn-Kr.right-zr,dr.x>Kr.right-Ao&&(gn+=dr.x-Kr.right+Ao)));var Wo=qn===!0?0:qn;typeof Wo=="number"&&(aoKr.bottom&&(yn-=Vn-Kr.bottom-qr,dr.y>Kr.bottom-Wo&&(yn+=dr.y-Kr.bottom+Wo)));var qo=Sr.x+gn,os=qo+Nr,No=Sr.y+yn,ss=No+Cr,_i=dr.x,$o=_i+Pr,bo=dr.y,Fn=bo+Rr,Dn=Math.max(qo,_i),po=Math.min(os,$o),To=(Dn+po)/2,fo=To-qo,Qn=Math.max(No,bo),oo=Math.min(ss,Fn),Oo=(Qn+oo)/2,Mo=Oo-No;ft==null||ft(et,pn);var Lo=ln.right-Sr.x-(gn+Sr.width),go=ln.bottom-Sr.y-(yn+Sr.height);_t({ready:!0,offsetX:gn/Qr,offsetY:yn/Zr,offsetR:Lo/Qr,offsetB:go/Zr,arrowX:fo/Qr,arrowY:Mo/Zr,scaleX:Qr,scaleY:Zr,align:pn})}}),jt=function(){wt.current+=1;var Ft=wt.current;Promise.resolve().then(function(){wt.current===Ft&&At()})},Nt=function(){_t(function(Ft){return _objectSpread2(_objectSpread2({},Ft),{},{ready:!1})})};return useLayoutEffect$3(Nt,[st]),useLayoutEffect$3(function(){_e||Nt()},[_e]),[$t.ready,$t.offsetX,$t.offsetY,$t.offsetR,$t.offsetB,$t.arrowX,$t.arrowY,$t.scaleX,$t.scaleY,$t.align,jt]}function useWatch(_e,et,rt,st,ct){useLayoutEffect$3(function(){if(_e&&et&&rt){let Tt=function(){st(),ct()};var wt=Tt,ut=et,ft=rt,gt=collectScroller(ut),xt=collectScroller(ft),$t=getWin(ft),_t=new Set([$t].concat(_toConsumableArray$3(gt),_toConsumableArray$3(xt)));return _t.forEach(function(Rt){Rt.addEventListener("scroll",Tt,{passive:!0})}),$t.addEventListener("resize",Tt,{passive:!0}),st(),function(){_t.forEach(function(Rt){Rt.removeEventListener("scroll",Tt),$t.removeEventListener("resize",Tt)})}}},[_e,et,rt])}function useWinClick(_e,et,rt,st,ct,ut,ft,gt){var xt=reactExports.useRef(_e),$t=reactExports.useRef(!1);xt.current!==_e&&($t.current=!0,xt.current=_e),reactExports.useEffect(function(){var _t=wrapperRaf(function(){$t.current=!1});return function(){wrapperRaf.cancel(_t)}},[_e]),reactExports.useEffect(function(){if(et&&st&&(!ct||ut)){var _t=function(){var Vt=!1,qt=function(Zt){var er=Zt.target;Vt=ft(er)},Xt=function(Zt){var er=Zt.target;!$t.current&&xt.current&&!Vt&&!ft(er)&>(!1)};return[qt,Xt]},wt=_t(),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=_t(),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=getWin(st);Ft.addEventListener("mousedown",Rt,!0),Ft.addEventListener("click",It,!0),Ft.addEventListener("contextmenu",It,!0);var Ht=getShadowRoot$1(rt);return Ht&&(Ht.addEventListener("mousedown",Nt,!0),Ht.addEventListener("click",kt,!0),Ht.addEventListener("contextmenu",kt,!0)),function(){Ft.removeEventListener("mousedown",Rt,!0),Ft.removeEventListener("click",It,!0),Ft.removeEventListener("contextmenu",It,!0),Ht&&(Ht.removeEventListener("mousedown",Nt,!0),Ht.removeEventListener("click",kt,!0),Ht.removeEventListener("contextmenu",kt,!0))}}},[et,rt,st,ct,ut])}var _excluded$1E=["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 generateTrigger(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,et=reactExports.forwardRef(function(rt,st){var ct=rt.prefixCls,ut=ct===void 0?"rc-trigger-popup":ct,ft=rt.children,gt=rt.action,xt=gt===void 0?"hover":gt,$t=rt.showAction,_t=rt.hideAction,wt=rt.popupVisible,Tt=rt.defaultPopupVisible,Rt=rt.onPopupVisibleChange,It=rt.afterPopupVisibleChange,At=rt.mouseEnterDelay,jt=rt.mouseLeaveDelay,Nt=jt===void 0?.1:jt,kt=rt.focusDelay,Ft=rt.blurDelay,Ht=rt.mask,Wt=rt.maskClosable,Vt=Wt===void 0?!0:Wt,qt=rt.getPopupContainer,Xt=rt.forceRender,Gt=rt.autoDestroy,Zt=rt.destroyPopupOnHide,er=rt.popup,lr=rt.popupClassName,cr=rt.popupStyle,ur=rt.popupPlacement,fr=rt.builtinPlacements,hr=fr===void 0?{}:fr,pr=rt.popupAlign,dr=rt.zIndex,yr=rt.stretch,Sr=rt.getPopupClassNameFromAlign,br=rt.fresh,mr=rt.alignPoint,Er=rt.onPopupClick,Tr=rt.onPopupAlign,Mr=rt.arrow,Or=rt.popupMotion,wr=rt.maskMotion,Cr=rt.popupTransitionName,Nr=rt.popupAnimation,Rr=rt.maskTransitionName,Pr=rt.maskAnimation,jr=rt.className,kr=rt.getTriggerDOMNode,Fr=_objectWithoutProperties$2(rt,_excluded$1E),_r=Gt||Zt||!1,Br=reactExports.useState(!1),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1];useLayoutEffect$3(function(){Kr(isMobile())},[]);var Hr=reactExports.useRef({}),Vr=reactExports.useContext(TriggerContext),ln=reactExports.useMemo(function(){return{registerSubPopup:function(Io,Jo){Hr.current[Io]=Jo,Vr==null||Vr.registerSubPopup(Io,Jo)}}},[Vr]),Qr=useId$4(),Zr=reactExports.useState(null),vn=_slicedToArray$3(Zr,2),vr=vn[0],gr=vn[1],$r=useEvent(function(So){isDOM(So)&&vr!==So&&gr(So),Vr==null||Vr.registerSubPopup(Qr,So)}),zr=reactExports.useState(null),qr=_slicedToArray$3(zr,2),Wr=qr[0],Gr=qr[1],dn=reactExports.useRef(null),mn=useEvent(function(So){isDOM(So)&&Wr!==So&&(Gr(So),dn.current=So)}),hn=reactExports.Children.only(ft),Cn=(hn==null?void 0:hn.props)||{},Rn={},kn=useEvent(function(So){var Io,Jo,Yo=Wr;return(Yo==null?void 0:Yo.contains(So))||((Io=getShadowRoot$1(Yo))===null||Io===void 0?void 0:Io.host)===So||So===Yo||(vr==null?void 0:vr.contains(So))||((Jo=getShadowRoot$1(vr))===null||Jo===void 0?void 0:Jo.host)===So||So===vr||Object.values(Hr.current).some(function(Go){return(Go==null?void 0:Go.contains(So))||So===Go})}),Bn=getMotion$1(ut,Or,Nr,Cr),Yn=getMotion$1(ut,wr,Pr,Rr),Gn=reactExports.useState(Tt||!1),io=_slicedToArray$3(Gn,2),pn=io[0],gn=io[1],yn=wt??pn,_n=useEvent(function(So){wt===void 0&&gn(So)});useLayoutEffect$3(function(){gn(wt||!1)},[wt]);var Tn=reactExports.useRef(yn);Tn.current=yn;var Nn=reactExports.useRef([]);Nn.current=[];var On=useEvent(function(So){var Io;_n(So),((Io=Nn.current[Nn.current.length-1])!==null&&Io!==void 0?Io:yn)!==So&&(Nn.current.push(So),Rt==null||Rt(So))}),$n=reactExports.useRef(),Sn=function(){clearTimeout($n.current)},xn=function(Io){var Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Sn(),Jo===0?On(Io):$n.current=setTimeout(function(){On(Io)},Jo*1e3)};reactExports.useEffect(function(){return Sn},[]);var In=reactExports.useState(!1),jn=_slicedToArray$3(In,2),Hn=jn[0],qn=jn[1];useLayoutEffect$3(function(So){(!So||yn)&&qn(!0)},[yn]);var Jn=reactExports.useState(null),ao=_slicedToArray$3(Jn,2),Vn=ao[0],Wn=ao[1],zn=reactExports.useState([0,0]),wn=_slicedToArray$3(zn,2),cn=wn[0],Pn=wn[1],An=function(Io){Pn([Io.clientX,Io.clientY])},Xn=useAlign(yn,vr,mr?cn:Wr,ur,hr,pr,Tr),eo=_slicedToArray$3(Xn,11),ro=eo[0],Kn=eo[1],co=eo[2],uo=eo[3],vo=eo[4],Bo=eo[5],Ho=eo[6],so=eo[7],Ro=eo[8],Po=eo[9],Ao=eo[10],Wo=useAction(Xr,xt,$t,_t),qo=_slicedToArray$3(Wo,2),os=qo[0],No=qo[1],ss=os.has("click"),_i=No.has("click")||No.has("contextMenu"),$o=useEvent(function(){Hn||Ao()}),bo=function(){Tn.current&&mr&&_i&&xn(!1)};useWatch(yn,Wr,vr,$o,bo),useLayoutEffect$3(function(){$o()},[cn,ur]),useLayoutEffect$3(function(){yn&&!(hr!=null&&hr[ur])&&$o()},[JSON.stringify(pr)]);var Fn=reactExports.useMemo(function(){var So=getAlignPopupClassName(hr,ut,Po,mr);return classNames(So,Sr==null?void 0:Sr(Po))},[Po,Sr,hr,ut,mr]);reactExports.useImperativeHandle(st,function(){return{nativeElement:dn.current,forceAlign:$o}});var Dn=reactExports.useState(0),po=_slicedToArray$3(Dn,2),To=po[0],fo=po[1],Qn=reactExports.useState(0),oo=_slicedToArray$3(Qn,2),Oo=oo[0],Mo=oo[1],Lo=function(){if(yr&&Wr){var Io=Wr.getBoundingClientRect();fo(Io.width),Mo(Io.height)}},go=function(){Lo(),$o()},Eo=function(Io){qn(!1),Ao(),It==null||It(Io)},Do=function(){return new Promise(function(Io){Lo(),Wn(function(){return Io})})};useLayoutEffect$3(function(){Vn&&(Ao(),Vn(),Wn(null))},[Vn]);function Fo(So,Io,Jo,Yo){Rn[So]=function(Go){var Al;Yo==null||Yo(Go),xn(Io,Jo);for(var Ku=arguments.length,Pp=new Array(Ku>1?Ku-1:0),yl=1;yl1?Jo-1:0),Go=1;Go1?Jo-1:0),Go=1;Go1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$6(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$4(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$4(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption$2(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent$2=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext$2=reactExports.createContext(null),_excluded$1C=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS$2=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple$2=function(et){return et==="tags"||et==="multiple"},BaseSelect$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Xt=_e.onDropdownVisibleChange,Gt=_e.activeValue,Zt=_e.onActiveValueChange,er=_e.activeDescendantId,lr=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,fr=_e.onSearchSplit,hr=_e.tokenSeparators,pr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,Sr=_e.OptionList,br=_e.animation,mr=_e.transitionName,Er=_e.dropdownStyle,Tr=_e.dropdownClassName,Mr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,wr=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,jr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,_r=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$1C),Kr=isMultiple$2(Nt),Hr=(gt!==void 0?gt:Kr)||Nt==="combobox",Vr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS$2.forEach(function(Fn){delete Vr[Fn]}),_t==null||_t.forEach(function(Fn){delete Vr[Fn]});var ln=reactExports.useState(!1),Qr=_slicedToArray$3(ln,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),$r=reactExports.useRef(null),zr=reactExports.useRef(null),qr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset$2(),dn=_slicedToArray$3(Gr,3),mn=dn[0],hn=dn[1],Cn=dn[2];reactExports.useImperativeHandle(et,function(){var Fn,Dn;return{focus:(Fn=zr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(Dn=zr.current)===null||Dn===void 0?void 0:Dn.blur,scrollTo:function(To){var fo;return(fo=qr.current)===null||fo===void 0?void 0:fo.scrollTo(To)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return lr;var Dn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof Dn=="string"||typeof Dn=="number"?String(Dn):""},[lr,Nt,wt]),kn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),Gn=reactExports.useState(!1),io=_slicedToArray$3(Gn,2),pn=io[0],gn=io[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),_n=_slicedToArray$3(yn,2),Tn=_n[0],Nn=_n[1],On=pn?Tn:!1,$n=!At&&Rt;(kt||$n&&On&&Nt==="combobox")&&(On=!1);var Sn=$n?!1:On,xn=reactExports.useCallback(function(Fn){var Dn=Fn!==void 0?Fn:!On;kt||(Nn(Dn),On!==Dn&&(Xt==null||Xt(Dn)))},[kt,On,Nn,Xt]),In=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` `,`\r -`].includes(Fn)})},[hr]),jn=reactExports.useContext(SelectContext$2)||{},Un=jn.maxCount,Gn=jn.rawValues,eo=function(kn,co,Eo){if(!((Gn==null?void 0:Gn.size)>=Un)){var so=!0,Xn=kn;Zt==null||Zt(null);var no=getSeparatedContent$2(kn,hr,Un&&Un-Gn.size),To=Eo?null:no;return Nt!=="combobox"&&To&&(Xn="",pr==null||pr(To),Sn(!1),so=!1),ur&&Rn!==Xn&&ur(Xn,{source:co?"typing":"effect"}),so}},io=function(kn){!kn||!kn.trim()||ur(kn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&eo("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Kn=useLock$2(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1],ln=function(kn){var co=zn(),Eo=kn.which;if(Eo===KeyCode.ENTER&&(Nt!=="combobox"&&kn.preventDefault(),On||Sn(!0)),_n(!!Rn),Eo===KeyCode.BACKSPACE&&!co&&Kr&&!Rn&&wt.length){for(var so=_toConsumableArray$3(wt),Xn=null,no=so.length-1;no>=0;no-=1){var To=so[no];if(!To.disabled){so.splice(no,1),Xn=To;break}}Xn&&Tt(so,{type:"remove",values:[Xn]})}for(var Po=arguments.length,Fo=new Array(Po>1?Po-1:0),fo=1;fo1?co-1:0),so=1;so1?no-1:0),Po=1;Po0&&arguments[0]!==void 0?arguments[0]:!1;_t();var It=function(){gt.current.forEach(function(jt,Nt){if(jt&&jt.offsetParent){var kt=findDOMNode(jt),Ft=kt.offsetHeight;xt.current.get(Nt)!==Ft&&xt.current.set(Nt,kt.offsetHeight)}}),ft(function(jt){return jt+1})};Rt?It():$t.current=wrapperRaf(It)}function Tt(Rt,It){var At=_e(Rt),jt=gt.current.get(At);It?(gt.current.set(At,It),wt()):gt.current.delete(At),!jt!=!It&&(It?et==null||et(Rt):rt==null||rt(Rt))}return reactExports.useEffect(function(){return _t},[]),[Tt,wt,xt.current,ut]}var MAX_TIMES=10;function useScrollTo$1(_e,et,rt,st,ct,ut,ft,gt){var xt=reactExports.useRef(),$t=reactExports.useState(null),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1];return useLayoutEffect$3(function(){if(wt&&wt.times=0;ur-=1){var pr=ct(et[ur]),hr=rt.get(pr);if(hr===void 0){kt=!0;break}if(cr-=hr,cr<=0)break}switch(Wt){case"top":Ht=qt-jt;break;case"bottom":Ht=Gt-Nt+jt;break;default:{var fr=_e.current.scrollTop,dr=fr+Nt;qtdr&&(Ft="bottom")}}Ht!==null&&ft(Ht),Ht!==wt.lastTop&&(kt=!0)}kt&&Tt(_objectSpread2(_objectSpread2({},wt),{},{times:wt.times+1,targetAlign:Ft,lastTop:Ht}))}},[wt,_e.current]),function(Rt){if(Rt==null){gt();return}if(wrapperRaf.cancel(xt.current),typeof Rt=="number")ft(Rt);else if(Rt&&_typeof$e(Rt)==="object"){var It,At=Rt.align;"index"in Rt?It=Rt.index:It=et.findIndex(function(kt){return ct(kt)===Rt.key});var jt=Rt.offset,Nt=jt===void 0?0:jt;Tt({times:0,index:It,offset:Nt,originAlign:At})}}}function findListDiffIndex(_e,et,rt){var st=_e.length,ct=et.length,ut,ft;if(st===0&&ct===0)return null;st"u"?"undefined":_typeof$e(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(_e,et){var rt=reactExports.useRef(!1),st=reactExports.useRef(null);function ct(){clearTimeout(st.current),rt.current=!0,st.current=setTimeout(function(){rt.current=!1},50)}var ut=reactExports.useRef({top:_e,bottom:et});return ut.current.top=_e,ut.current.bottom=et,function(ft){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=ft<0&&ut.current.top||ft>0&&ut.current.bottom;return gt&&xt?(clearTimeout(st.current),rt.current=!1):(!xt||rt.current)&&ct(),!rt.current&&xt}};function useFrameWheel(_e,et,rt,st,ct){var ut=reactExports.useRef(0),ft=reactExports.useRef(null),gt=reactExports.useRef(null),xt=reactExports.useRef(!1),$t=useOriginScroll(et,rt);function _t(jt,Nt){wrapperRaf.cancel(ft.current),ut.current+=Nt,gt.current=Nt,!$t(Nt)&&(isFF||jt.preventDefault(),ft.current=wrapperRaf(function(){var kt=xt.current?10:1;ct(ut.current*kt),ut.current=0}))}function wt(jt,Nt){ct(Nt,!0),isFF||jt.preventDefault()}var Tt=reactExports.useRef(null),Rt=reactExports.useRef(null);function It(jt){if(_e){wrapperRaf.cancel(Rt.current),Rt.current=wrapperRaf(function(){Tt.current=null},2);var Nt=jt.deltaX,kt=jt.deltaY,Ft=jt.shiftKey,Ht=Nt,Wt=kt;(Tt.current==="sx"||!Tt.current&&Ft&&kt&&!Nt)&&(Ht=kt,Wt=0,Tt.current="sx");var Vt=Math.abs(Ht),qt=Math.abs(Wt);Tt.current===null&&(Tt.current=st&&Vt>qt?"x":"y"),Tt.current==="y"?_t(jt,Wt):wt(jt,Ht)}}function At(jt){_e&&(xt.current=jt.detail===gt.current)}return[It,At]}var SMOOTH_PTG=14/15;function useMobileTouchMove(_e,et,rt){var st=reactExports.useRef(!1),ct=reactExports.useRef(0),ut=reactExports.useRef(null),ft=reactExports.useRef(null),gt,xt=function(Tt){if(st.current){var Rt=Math.ceil(Tt.touches[0].pageY),It=ct.current-Rt;ct.current=Rt,rt(It)&&Tt.preventDefault(),clearInterval(ft.current),ft.current=setInterval(function(){It*=SMOOTH_PTG,(!rt(It,!0)||Math.abs(It)<=.1)&&clearInterval(ft.current)},16)}},$t=function(){st.current=!1,gt()},_t=function(Tt){gt(),Tt.touches.length===1&&!st.current&&(st.current=!0,ct.current=Math.ceil(Tt.touches[0].pageY),ut.current=Tt.target,ut.current.addEventListener("touchmove",xt),ut.current.addEventListener("touchend",$t))};gt=function(){ut.current&&(ut.current.removeEventListener("touchmove",xt),ut.current.removeEventListener("touchend",$t))},useLayoutEffect$3(function(){return _e&&et.current.addEventListener("touchstart",_t),function(){var wt;(wt=et.current)===null||wt===void 0||wt.removeEventListener("touchstart",_t),gt(),clearInterval(ft.current)}},[_e])}var MIN_SIZE=20;function getSpinSize(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rt=_e/et*_e;return isNaN(rt)&&(rt=0),rt=Math.max(rt,MIN_SIZE),Math.floor(rt)}function useGetSize(_e,et,rt,st){var ct=reactExports.useMemo(function(){return[new Map,[]]},[_e,rt.id,st]),ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1],xt=function(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,Tt=ft.get(_t),Rt=ft.get(wt);if(Tt===void 0||Rt===void 0)for(var It=_e.length,At=gt.length;Atut||!!At),lr=It==="rtl",er=classNames(st,_defineProperty$c({},"".concat(st,"-rtl"),lr),ct),cr=_t||EMPTY_DATA,ur=reactExports.useRef(),pr=reactExports.useRef(),hr=reactExports.useState(0),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState(0),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useState(!1),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1],Cr=function(){_r(!0)},Nr=function(){_r(!1)},Rr=reactExports.useCallback(function(_n){return typeof Tt=="function"?Tt(_n):_n==null?void 0:_n[Tt]},[Tt]),Pr={getKey:Rr};function Mr(_n){yr(function(ln){var Pn;typeof _n=="function"?Pn=_n(ln):Pn=_n;var An=Yn(Pn);return ur.current.scrollTop=An,An})}var kr=reactExports.useRef({start:0,end:cr.length}),Fr=reactExports.useRef(),wr=useDiffItem(cr,Rr),Br=_slicedToArray$3(wr,1),Dr=Br[0];Fr.current=Dr;var Xr=useHeights(Rr,null,null),Kr=_slicedToArray$3(Xr,4),zr=Kr[0],qr=Kr[1],pn=Kr[2],Qr=Kr[3],Zr=reactExports.useMemo(function(){if(!Xt)return{scrollHeight:void 0,start:0,end:cr.length-1,offset:void 0};if(!Zt){var _n;return{scrollHeight:((_n=pr.current)===null||_n===void 0?void 0:_n.offsetHeight)||0,start:0,end:cr.length-1,offset:void 0}}for(var ln=0,Pn,An,Qn,ro=cr.length,oo=0;oo=dr&&Pn===void 0&&(Pn=oo,An=ln),_o>dr+ut&&Qn===void 0&&(Qn=oo),ln=_o}return Pn===void 0&&(Pn=0,An=0,Qn=Math.ceil(ut/ft)),Qn===void 0&&(Qn=cr.length-1),Qn=Math.min(Qn+1,cr.length-1),{scrollHeight:ln,start:Pn,end:Qn,offset:An}},[Zt,Xt,dr,cr,Qr,ut]),vn=Zr.scrollHeight,vr=Zr.start,gr=Zr.end,br=Zr.offset;kr.current.start=vr,kr.current.end=gr;var Hr=reactExports.useState({width:0,height:ut}),Vr=_slicedToArray$3(Hr,2),Wr=Vr[0],Gr=Vr[1],cn=function(ln){Gr({width:ln.width||ln.offsetWidth,height:ln.height||ln.offsetHeight})},mn=reactExports.useRef(),hn=reactExports.useRef(),En=reactExports.useMemo(function(){return getSpinSize(Wr.width,At)},[Wr.width,At]),Rn=reactExports.useMemo(function(){return getSpinSize(Wr.height,vn)},[Wr.height,vn]),Dn=vn-ut,Bn=reactExports.useRef(Dn);Bn.current=Dn;function Yn(_n){var ln=_n;return Number.isNaN(Bn.current)||(ln=Math.min(ln,Bn.current)),ln=Math.max(ln,0),ln}var qn=dr<=0,ao=dr>=Dn,dn=useOriginScroll(qn,ao),gn=function(){return{x:lr?-mr:mr,y:dr}},yn=reactExports.useRef(gn()),wn=useEvent(function(){if(Ft){var _n=gn();(yn.current.x!==_n.x||yn.current.y!==_n.y)&&(Ft(_n),yn.current=_n)}});function Tn(_n,ln){var Pn=_n;ln?(reactDomExports.flushSync(function(){Sr(Pn)}),wn()):Mr(Pn)}function Nn(_n){var ln=_n.currentTarget.scrollTop;ln!==dr&&Mr(ln),kt==null||kt(_n),wn()}var On=function(ln){var Pn=ln,An=At-Wr.width;return Pn=Math.max(Pn,0),Pn=Math.min(Pn,An),Pn},xn=useEvent(function(_n,ln){ln?(reactDomExports.flushSync(function(){Sr(function(Pn){var An=Pn+(lr?-_n:_n);return On(An)})}),wn()):Mr(function(Pn){var An=Pn+_n;return An})}),Cn=useFrameWheel(Xt,qn,ao,!!At,xn),Sn=_slicedToArray$3(Cn,2),Mn=Sn[0],jn=Sn[1];useMobileTouchMove(Xt,ur,function(_n,ln){return dn(_n,ln)?!1:(Mn({preventDefault:function(){},deltaY:_n}),!0)}),useLayoutEffect$3(function(){function _n(Pn){Xt&&Pn.preventDefault()}var ln=ur.current;return ln.addEventListener("wheel",Mn),ln.addEventListener("DOMMouseScroll",jn),ln.addEventListener("MozMousePixelScroll",_n),function(){ln.removeEventListener("wheel",Mn),ln.removeEventListener("DOMMouseScroll",jn),ln.removeEventListener("MozMousePixelScroll",_n)}},[Xt]),useLayoutEffect$3(function(){At&&Sr(function(_n){return On(_n)})},[Wr.width,At]);var Un=function(){var ln,Pn;(ln=mn.current)===null||ln===void 0||ln.delayHidden(),(Pn=hn.current)===null||Pn===void 0||Pn.delayHidden()},Gn=useScrollTo$1(ur,cr,pn,ft,Rr,function(){return qr(!0)},Mr,Un);reactExports.useImperativeHandle(et,function(){return{getScrollInfo:gn,scrollTo:function(ln){function Pn(An){return An&&_typeof$e(An)==="object"&&("left"in An||"top"in An)}Pn(ln)?(ln.left!==void 0&&Sr(On(ln.left)),Gn(ln.top)):Gn(ln)}}}),useLayoutEffect$3(function(){if(Ht){var _n=cr.slice(vr,gr+1);Ht(_n,cr)}},[vr,gr,cr]);var eo=useGetSize(cr,Rr,pn,ft),io=Vt==null?void 0:Vt({start:vr,end:gr,virtual:Zt,offsetX:mr,offsetY:br,rtl:lr,getSize:eo}),Kn=useChildren$1(cr,vr,gr,At,zr,wt,Pr),Wn=null;ut&&(Wn=_objectSpread2(_defineProperty$c({},xt?"height":"maxHeight",ut),ScrollStyle),Xt&&(Wn.overflowY="hidden",At&&(Wn.overflowX="hidden"),Or&&(Wn.pointerEvents="none")));var zn={};return lr&&(zn.dir="rtl"),reactExports.createElement("div",_extends$b({style:_objectSpread2(_objectSpread2({},$t),{},{position:"relative"}),className:er},zn,Gt),reactExports.createElement(RefResizeObserver,{onResize:cn},reactExports.createElement(Nt,{className:"".concat(st,"-holder"),style:Wn,ref:ur,onScroll:Nn,onMouseEnter:Un},reactExports.createElement(Filler,{prefixCls:st,height:vn,offsetX:mr,offsetY:br,scrollWidth:At,onInnerResize:qr,ref:pr,innerProps:Wt,rtl:lr,extra:io},Kn))),Zt&&vn>ut&&reactExports.createElement(ScrollBar,{ref:mn,prefixCls:st,scrollOffset:dr,scrollRange:vn,rtl:lr,onScroll:Tn,onStartMove:Cr,onStopMove:Nr,spinSize:Rn,containerSize:Wr.height,style:qt==null?void 0:qt.verticalScrollBar,thumbStyle:qt==null?void 0:qt.verticalScrollBarThumb}),Zt&&At>Wr.width&&reactExports.createElement(ScrollBar,{ref:hn,prefixCls:st,scrollOffset:mr,scrollRange:At,rtl:lr,onScroll:Tn,onStartMove:Cr,onStopMove:Nr,spinSize:En,containerSize:Wr.width,horizontal:!0,style:qt==null?void 0:qt.horizontalScrollBar,thumbStyle:qt==null?void 0:qt.horizontalScrollBarThumb}))}var List$1=reactExports.forwardRef(RawList);List$1.displayName="List";function isPlatformMac$2(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$1A=["disabled","title","children","style","className"];function isTitleType$4(_e){return typeof _e=="string"||typeof _e=="number"}var OptionList$3=function(et,rt){var st=useBaseProps$2(),ct=st.prefixCls,ut=st.id,ft=st.open,gt=st.multiple,xt=st.mode,$t=st.searchValue,_t=st.toggleOpen,wt=st.notFoundContent,Tt=st.onPopupScroll,Rt=reactExports.useContext(SelectContext$2),It=Rt.maxCount,At=Rt.flattenOptions,jt=Rt.onActiveValue,Nt=Rt.defaultActiveFirstOption,kt=Rt.onSelect,Ft=Rt.menuItemSelectedIcon,Ht=Rt.rawValues,Wt=Rt.fieldNames,Vt=Rt.virtual,qt=Rt.direction,Gt=Rt.listHeight,Xt=Rt.listItemHeight,Zt=Rt.optionRender,lr="".concat(ct,"-item"),er=useMemo$1(function(){return At},[ft,At],function(Rr,Pr){return Pr[0]&&Rr[1]!==Pr[1]}),cr=reactExports.useRef(null),ur=reactExports.useMemo(function(){return gt&&typeof It<"u"&&(Ht==null?void 0:Ht.size)>=It},[gt,It,Ht==null?void 0:Ht.size]),pr=function(Pr){Pr.preventDefault()},hr=function(Pr){var Mr;(Mr=cr.current)===null||Mr===void 0||Mr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},fr=function(Pr){for(var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=er.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;Er(Pr);var kr={source:Mr?"keyboard":"mouse"},Fr=er[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?fr(0):-1)},[er.length,$t]);var Sr=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var Mr=Array.from(Ht)[0],kr=er.findIndex(function(Fr){var wr=Fr.data;return wr.value===Mr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var Mr=Pr.which,kr=Pr.ctrlKey;switch(Mr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(Mr===KeyCode.UP?Fr=-1:Mr===KeyCode.DOWN?Fr=1:isPlatformMac$2()&&kr&&(Mr===KeyCode.N?Fr=1:Mr===KeyCode.P&&(Fr=-1)),Fr!==0){var wr=fr($r+Fr,Fr);hr(wr),mr(wr,!0)}break}case KeyCode.ENTER:{var Br,Dr=er[$r];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),er.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(lr,"-empty"),onMouseDown:pr},wt);var jr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function _r(Rr,Pr){var Mr=Rr.group;return{role:Mr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var Mr=er[Pr];if(!Mr)return null;var kr=Mr.data||{},Fr=kr.value,wr=Mr.group,Br=pickAttrs(kr,!0),Dr=Or(Mr);return Mr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!wr?Dr:null},Br,{key:Pr},_r(Mr,Pr),{"aria-selected":Sr(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr($r-1),Cr($r),Cr($r+1)),reactExports.createElement(List$1,{itemKey:"key",ref:cr,data:er,height:Gt,itemHeight:Xt,fullHeight:!1,onMouseDown:pr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var Mr,kr=Rr.group,Fr=Rr.groupOption,wr=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=wr.key;if(kr){var Kr,zr=(Kr=wr.title)!==null&&Kr!==void 0?Kr:isTitleType$4(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(lr,"".concat(lr,"-group")),title:zr},Br!==void 0?Br:Xr)}var qr=wr.disabled,pn=wr.title;wr.children;var Qr=wr.style,Zr=wr.className,vn=_objectWithoutProperties$2(wr,_excluded$1A),vr=omit$2(vn,jr),gr=Sr(Dr),br=qr||!gr&&ur,Hr="".concat(lr,"-option"),Vr=classNames(lr,Hr,Zr,(Mr={},_defineProperty$c(Mr,"".concat(Hr,"-grouped"),Fr),_defineProperty$c(Mr,"".concat(Hr,"-active"),$r===Pr&&!br),_defineProperty$c(Mr,"".concat(Hr,"-disabled"),br),_defineProperty$c(Mr,"".concat(Hr,"-selected"),gr),Mr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,cn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType$4(cn)?cn.toString():void 0;return pn!==void 0&&(mn=pn),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:_r(Rr,Pr),{"aria-selected":gr,className:Vr,title:mn,onMouseMove:function(){$r===Pr||br||mr(Pr)},onClick:function(){br||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(Hr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):cn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn$2,{className:"".concat(lr,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:br,isSelected:gr}},gr?"✓":null))}))},RefOptionList$4=reactExports.forwardRef(OptionList$3);const useCache$3=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes$2(_e,et){return toArray$b(_e).join("").toUpperCase().includes(et)}const useFilterOptions$2=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes$2(It[ct],_t):It[ut]?includes$2(It[ft!=="children"?ft:"label"],_t):includes$2(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption$2(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid$4=0,isBrowserClient$5=canUseDom$1();function getUUID$3(){var _e;return isBrowserClient$5?(_e=uuid$4,uuid$4+=1):_e="TEST_OR_SSR",_e}function useId$3(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID$3()))},[]),_e||st}var _excluded$1z=["children","value"],_excluded2$q=["children"];function convertNodeToOption$2(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$1z);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$3(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$d(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$q);return et||!ut?convertNodeToOption$2(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$3(xt)})}).filter(function(rt){return rt})}var useOptions$3=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$3(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},Mn=Sn.source,jn=Mn===void 0?"keyboard":Mn;qn(Cn),ft&&st==="combobox"&&xn!==null&&jn==="keyboard"&&Rn(String(xn))},[ft,st]),gn=function(Cn,Sn,Mn){var jn=function(){var Pn,An=Zr(Cn);return[dr?{label:An==null?void 0:An[Or.label],value:Cn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Cn}:Cn,injectPropsWithOption$2(An)]};if(Sn&&Rt){var Un=jn(),Gn=_slicedToArray$3(Un,2),eo=Gn[0],io=Gn[1];Rt(eo,io)}else if(!Sn&&It&&Mn!=="clear"){var Kn=jn(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1];It(zn,_n)}},yn=useRefFunc$3(function(xn,Cn){var Sn,Mn=Sr?Cn.selected:!0;Mn?Sn=Sr?[].concat(_toConsumableArray$3(Qr),[xn]):[xn]:Sn=Qr.filter(function(jn){return jn.value!==xn}),cn(Sn),gn(xn,Mn),st==="combobox"?Rn(""):(!isMultiple$2||Tt)&&(Rr(""),Rn(""))}),wn=function(Cn,Sn){cn(Cn);var Mn=Sn.type,jn=Sn.values;(Mn==="remove"||Mn==="clear")&&jn.forEach(function(Un){gn(Un.value,!1,Mn)})},Tn=function(Cn,Sn){if(Rr(Cn),Rn(null),Sn.source==="submit"){var Mn=(Cn||"").trim();if(Mn){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[Mn])));cn(jn),gn(Mn,!0),Rr("")}return}Sn.source!=="blur"&&(st==="combobox"&&cn(Cn),_t==null||_t(Cn))},Nn=function(Cn){var Sn=Cn;st!=="tags"&&(Sn=Cn.map(function(jn){var Un=kr.get(jn);return Un==null?void 0:Un.value}).filter(function(jn){return jn!==void 0}));var Mn=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(Sn))));cn(Mn),Mn.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var xn=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:dn,defaultActiveFirstOption:ao,onSelect:yn,menuItemSelectedIcon:Xt,rawValues:vr,fieldNames:Or,virtual:xn,direction:lr,listHeight:cr,listItemHeight:pr,childrenAsData:Tr,maxCount:$r,optionRender:Vt})},[$r,Pr,Gr,dn,ao,yn,Xt,vr,Or,Zt,jt,lr,cr,pr,Tr,Vt]);return reactExports.createElement(SelectContext$2.Provider,{value:On},reactExports.createElement(BaseSelect$2,_extends$b({},Er,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS$2,mode:st,displayValues:vn,onDisplayValuesChange:wn,direction:lr,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$4,emptyOptions:!Gr.length,activeValue:En,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect$2=Select$4;TypedSelect$2.Option=Option$2;TypedSelect$2.OptGroup=OptGroup$2;function getStatusClassNames(_e,et,rt){return classNames({[`${_e}-status-success`]:et==="success",[`${_e}-status-warning`]:et==="warning",[`${_e}-status-error`]:et==="error",[`${_e}-status-validating`]:et==="validating",[`${_e}-has-feedback`]:rt})}const getMergedStatus=(_e,et)=>et||_e,Empty$2=()=>{const[,_e]=useToken$4(),rt=new TinyColor(_e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:rt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.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"}),reactExports.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)"}),reactExports.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"}),reactExports.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"})),reactExports.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"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},DefaultEmptyImg=Empty$2,Simple=()=>{const[,_e]=useToken$4(),{colorFill:et,colorFillTertiary:rt,colorFillQuaternary:st,colorBgContainer:ct}=_e,{borderColor:ut,shadowColor:ft,contentColor:gt}=reactExports.useMemo(()=>({borderColor:new TinyColor(et).onBackground(ct).toHexShortString(),shadowColor:new TinyColor(rt).onBackground(ct).toHexShortString(),contentColor:new TinyColor(st).onBackground(ct).toHexShortString()}),[et,rt,st,ct]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:ft,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:ut},reactExports.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"}),reactExports.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:gt}))))},SimpleEmptyImg=Simple,genSharedEmptyStyle=_e=>{const{componentCls:et,margin:rt,marginXS:st,marginXL:ct,fontSize:ut,lineHeight:ft}=_e;return{[et]:{marginInline:st,fontSize:ut,lineHeight:ft,textAlign:"center",[`${et}-image`]:{height:_e.emptyImgHeight,marginBottom:st,opacity:_e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${et}-description`]:{color:_e.colorText},[`${et}-footer`]:{marginTop:rt},"&-normal":{marginBlock:ct,color:_e.colorTextDisabled,[`${et}-description`]:{color:_e.colorTextDisabled},[`${et}-image`]:{height:_e.emptyImgHeightMD}},"&-small":{marginBlock:st,color:_e.colorTextDisabled,[`${et}-image`]:{height:_e.emptyImgHeightSM}}}}},useStyle$P=genStyleHooks("Empty",_e=>{const{componentCls:et,controlHeightLG:rt,calc:st}=_e,ct=merge$7(_e,{emptyImgCls:`${et}-img`,emptyImgHeight:st(rt).mul(2.5).equal(),emptyImgHeightMD:rt,emptyImgHeightSM:st(rt).mul(.875).equal()});return[genSharedEmptyStyle(ct)]});var __rest$V=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{className:et,rootClassName:rt,prefixCls:st,image:ct=defaultEmptyImg,description:ut,children:ft,imageStyle:gt,style:xt}=_e,$t=__rest$V(_e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:_t,direction:wt,empty:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("empty",st),[It,At,jt]=useStyle$P(Rt),[Nt]=useLocale$3("Empty"),kt=typeof ut<"u"?ut:Nt==null?void 0:Nt.description,Ft=typeof kt=="string"?kt:"empty";let Ht=null;return typeof ct=="string"?Ht=reactExports.createElement("img",{alt:Ft,src:ct}):Ht=ct,It(reactExports.createElement("div",Object.assign({className:classNames(At,jt,Rt,Tt==null?void 0:Tt.className,{[`${Rt}-normal`]:ct===simpleEmptyImg,[`${Rt}-rtl`]:wt==="rtl"},et,rt),style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),xt)},$t),reactExports.createElement("div",{className:`${Rt}-image`,style:gt},Ht),kt&&reactExports.createElement("div",{className:`${Rt}-description`},kt),ft&&reactExports.createElement("div",{className:`${Rt}-footer`},ft)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const Empty$1=Empty,DefaultRenderEmpty=_e=>{const{componentName:et}=_e,{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),st=rt("empty");switch(et){case"Table":case"List":return React$1.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React$1.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,className:`${st}-small`});default:return React$1.createElement(Empty$1,null)}},DefaultRenderEmpty$1=DefaultRenderEmpty,Variants=["outlined","borderless","filled"],useVariant=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const rt=reactExports.useContext(VariantContext);let st;typeof _e<"u"?st=_e:et===!1?st="borderless":st=rt??"outlined";const ct=Variants.includes(st);return[st,ct]},getBuiltInPlacements$2=_e=>{const rt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:_e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},rt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},rt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},rt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},rt),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(_e,et){return _e||getBuiltInPlacements$2(et)}const genItemStyle=_e=>{const{optionHeight:et,optionFontSize:rt,optionLineHeight:st,optionPadding:ct}=_e;return{position:"relative",display:"block",minHeight:et,padding:ct,color:_e.colorText,fontWeight:"normal",fontSize:rt,lineHeight:st,boxSizing:"border-box"}},genSingleStyle$1=_e=>{const{antCls:et,componentCls:rt}=_e,st=`${rt}-item`,ct=`&${et}-slide-up-enter${et}-slide-up-enter-active`,ut=`&${et}-slide-up-appear${et}-slide-up-appear-active`,ft=`&${et}-slide-up-leave${et}-slide-up-leave-active`,gt=`${rt}-dropdown-placement-`;return[{[`${rt}-dropdown`]:Object.assign(Object.assign({},resetComponent$1(_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(Fn)})},[hr]),jn=reactExports.useContext(SelectContext$2)||{},Hn=jn.maxCount,qn=jn.rawValues,Jn=function(Dn,po,To){if(!((qn==null?void 0:qn.size)>=Hn)){var fo=!0,Qn=Dn;Zt==null||Zt(null);var oo=getSeparatedContent$2(Dn,hr,Hn&&Hn-qn.size),Oo=To?null:oo;return Nt!=="combobox"&&Oo&&(Qn="",fr==null||fr(Oo),xn(!1),fo=!1),ur&&Rn!==Qn&&ur(Qn,{source:po?"typing":"effect"}),fo}},ao=function(Dn){!Dn||!Dn.trim()||ur(Dn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&Jn("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Vn=useLock$2(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1],cn=function(Dn){var po=zn(),To=Dn.which;if(To===KeyCode.ENTER&&(Nt!=="combobox"&&Dn.preventDefault(),On||xn(!0)),wn(!!Rn),To===KeyCode.BACKSPACE&&!po&&Kr&&!Rn&&wt.length){for(var fo=_toConsumableArray$3(wt),Qn=null,oo=fo.length-1;oo>=0;oo-=1){var Oo=fo[oo];if(!Oo.disabled){fo.splice(oo,1),Qn=Oo;break}}Qn&&Tt(fo,{type:"remove",values:[Qn]})}for(var Mo=arguments.length,Lo=new Array(Mo>1?Mo-1:0),go=1;go1?po-1:0),fo=1;fo1?oo-1:0),Mo=1;Mo0&&arguments[0]!==void 0?arguments[0]:!1;_t();var It=function(){gt.current.forEach(function(jt,Nt){if(jt&&jt.offsetParent){var kt=findDOMNode(jt),Ft=kt.offsetHeight;xt.current.get(Nt)!==Ft&&xt.current.set(Nt,kt.offsetHeight)}}),ft(function(jt){return jt+1})};Rt?It():$t.current=wrapperRaf(It)}function Tt(Rt,It){var At=_e(Rt),jt=gt.current.get(At);It?(gt.current.set(At,It),wt()):gt.current.delete(At),!jt!=!It&&(It?et==null||et(Rt):rt==null||rt(Rt))}return reactExports.useEffect(function(){return _t},[]),[Tt,wt,xt.current,ut]}var MAX_TIMES=10;function useScrollTo$1(_e,et,rt,st,ct,ut,ft,gt){var xt=reactExports.useRef(),$t=reactExports.useState(null),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1];return useLayoutEffect$3(function(){if(wt&&wt.times=0;ur-=1){var fr=ct(et[ur]),hr=rt.get(fr);if(hr===void 0){kt=!0;break}if(cr-=hr,cr<=0)break}switch(Wt){case"top":Ht=qt-jt;break;case"bottom":Ht=Xt-Nt+jt;break;default:{var pr=_e.current.scrollTop,dr=pr+Nt;qtdr&&(Ft="bottom")}}Ht!==null&&ft(Ht),Ht!==wt.lastTop&&(kt=!0)}kt&&Tt(_objectSpread2(_objectSpread2({},wt),{},{times:wt.times+1,targetAlign:Ft,lastTop:Ht}))}},[wt,_e.current]),function(Rt){if(Rt==null){gt();return}if(wrapperRaf.cancel(xt.current),typeof Rt=="number")ft(Rt);else if(Rt&&_typeof$e(Rt)==="object"){var It,At=Rt.align;"index"in Rt?It=Rt.index:It=et.findIndex(function(kt){return ct(kt)===Rt.key});var jt=Rt.offset,Nt=jt===void 0?0:jt;Tt({times:0,index:It,offset:Nt,originAlign:At})}}}function findListDiffIndex(_e,et,rt){var st=_e.length,ct=et.length,ut,ft;if(st===0&&ct===0)return null;st"u"?"undefined":_typeof$e(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(_e,et){var rt=reactExports.useRef(!1),st=reactExports.useRef(null);function ct(){clearTimeout(st.current),rt.current=!0,st.current=setTimeout(function(){rt.current=!1},50)}var ut=reactExports.useRef({top:_e,bottom:et});return ut.current.top=_e,ut.current.bottom=et,function(ft){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=ft<0&&ut.current.top||ft>0&&ut.current.bottom;return gt&&xt?(clearTimeout(st.current),rt.current=!1):(!xt||rt.current)&&ct(),!rt.current&&xt}};function useFrameWheel(_e,et,rt,st,ct){var ut=reactExports.useRef(0),ft=reactExports.useRef(null),gt=reactExports.useRef(null),xt=reactExports.useRef(!1),$t=useOriginScroll(et,rt);function _t(jt,Nt){wrapperRaf.cancel(ft.current),ut.current+=Nt,gt.current=Nt,!$t(Nt)&&(isFF||jt.preventDefault(),ft.current=wrapperRaf(function(){var kt=xt.current?10:1;ct(ut.current*kt),ut.current=0}))}function wt(jt,Nt){ct(Nt,!0),isFF||jt.preventDefault()}var Tt=reactExports.useRef(null),Rt=reactExports.useRef(null);function It(jt){if(_e){wrapperRaf.cancel(Rt.current),Rt.current=wrapperRaf(function(){Tt.current=null},2);var Nt=jt.deltaX,kt=jt.deltaY,Ft=jt.shiftKey,Ht=Nt,Wt=kt;(Tt.current==="sx"||!Tt.current&&Ft&&kt&&!Nt)&&(Ht=kt,Wt=0,Tt.current="sx");var Vt=Math.abs(Ht),qt=Math.abs(Wt);Tt.current===null&&(Tt.current=st&&Vt>qt?"x":"y"),Tt.current==="y"?_t(jt,Wt):wt(jt,Ht)}}function At(jt){_e&&(xt.current=jt.detail===gt.current)}return[It,At]}var SMOOTH_PTG=14/15;function useMobileTouchMove(_e,et,rt){var st=reactExports.useRef(!1),ct=reactExports.useRef(0),ut=reactExports.useRef(null),ft=reactExports.useRef(null),gt,xt=function(Tt){if(st.current){var Rt=Math.ceil(Tt.touches[0].pageY),It=ct.current-Rt;ct.current=Rt,rt(It)&&Tt.preventDefault(),clearInterval(ft.current),ft.current=setInterval(function(){It*=SMOOTH_PTG,(!rt(It,!0)||Math.abs(It)<=.1)&&clearInterval(ft.current)},16)}},$t=function(){st.current=!1,gt()},_t=function(Tt){gt(),Tt.touches.length===1&&!st.current&&(st.current=!0,ct.current=Math.ceil(Tt.touches[0].pageY),ut.current=Tt.target,ut.current.addEventListener("touchmove",xt),ut.current.addEventListener("touchend",$t))};gt=function(){ut.current&&(ut.current.removeEventListener("touchmove",xt),ut.current.removeEventListener("touchend",$t))},useLayoutEffect$3(function(){return _e&&et.current.addEventListener("touchstart",_t),function(){var wt;(wt=et.current)===null||wt===void 0||wt.removeEventListener("touchstart",_t),gt(),clearInterval(ft.current)}},[_e])}var MIN_SIZE=20;function getSpinSize(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,rt=_e/et*_e;return isNaN(rt)&&(rt=0),rt=Math.max(rt,MIN_SIZE),Math.floor(rt)}function useGetSize(_e,et,rt,st){var ct=reactExports.useMemo(function(){return[new Map,[]]},[_e,rt.id,st]),ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1],xt=function(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,Tt=ft.get(_t),Rt=ft.get(wt);if(Tt===void 0||Rt===void 0)for(var It=_e.length,At=gt.length;Atut||!!At),er=It==="rtl",lr=classNames(st,_defineProperty$c({},"".concat(st,"-rtl"),er),ct),cr=_t||EMPTY_DATA,ur=reactExports.useRef(),fr=reactExports.useRef(),hr=reactExports.useState(0),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState(0),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useState(!1),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1],Cr=function(){wr(!0)},Nr=function(){wr(!1)},Rr=reactExports.useCallback(function(wn){return typeof Tt=="function"?Tt(wn):wn==null?void 0:wn[Tt]},[Tt]),Pr={getKey:Rr};function jr(wn){yr(function(cn){var Pn;typeof wn=="function"?Pn=wn(cn):Pn=wn;var An=Yn(Pn);return ur.current.scrollTop=An,An})}var kr=reactExports.useRef({start:0,end:cr.length}),Fr=reactExports.useRef(),_r=useDiffItem(cr,Rr),Br=_slicedToArray$3(_r,1),Dr=Br[0];Fr.current=Dr;var Xr=useHeights(Rr,null,null),Kr=_slicedToArray$3(Xr,4),Hr=Kr[0],Vr=Kr[1],ln=Kr[2],Qr=Kr[3],Zr=reactExports.useMemo(function(){if(!Gt)return{scrollHeight:void 0,start:0,end:cr.length-1,offset:void 0};if(!Zt){var wn;return{scrollHeight:((wn=fr.current)===null||wn===void 0?void 0:wn.offsetHeight)||0,start:0,end:cr.length-1,offset:void 0}}for(var cn=0,Pn,An,Xn,eo=cr.length,ro=0;ro=dr&&Pn===void 0&&(Pn=ro,An=cn),vo>dr+ut&&Xn===void 0&&(Xn=ro),cn=vo}return Pn===void 0&&(Pn=0,An=0,Xn=Math.ceil(ut/ft)),Xn===void 0&&(Xn=cr.length-1),Xn=Math.min(Xn+1,cr.length-1),{scrollHeight:cn,start:Pn,end:Xn,offset:An}},[Zt,Gt,dr,cr,Qr,ut]),vn=Zr.scrollHeight,vr=Zr.start,gr=Zr.end,$r=Zr.offset;kr.current.start=vr,kr.current.end=gr;var zr=reactExports.useState({width:0,height:ut}),qr=_slicedToArray$3(zr,2),Wr=qr[0],Gr=qr[1],dn=function(cn){Gr({width:cn.width||cn.offsetWidth,height:cn.height||cn.offsetHeight})},mn=reactExports.useRef(),hn=reactExports.useRef(),Cn=reactExports.useMemo(function(){return getSpinSize(Wr.width,At)},[Wr.width,At]),Rn=reactExports.useMemo(function(){return getSpinSize(Wr.height,vn)},[Wr.height,vn]),kn=vn-ut,Bn=reactExports.useRef(kn);Bn.current=kn;function Yn(wn){var cn=wn;return Number.isNaN(Bn.current)||(cn=Math.min(cn,Bn.current)),cn=Math.max(cn,0),cn}var Gn=dr<=0,io=dr>=kn,pn=useOriginScroll(Gn,io),gn=function(){return{x:er?-mr:mr,y:dr}},yn=reactExports.useRef(gn()),_n=useEvent(function(){if(Ft){var wn=gn();(yn.current.x!==wn.x||yn.current.y!==wn.y)&&(Ft(wn),yn.current=wn)}});function Tn(wn,cn){var Pn=wn;cn?(reactDomExports.flushSync(function(){Er(Pn)}),_n()):jr(Pn)}function Nn(wn){var cn=wn.currentTarget.scrollTop;cn!==dr&&jr(cn),kt==null||kt(wn),_n()}var On=function(cn){var Pn=cn,An=At-Wr.width;return Pn=Math.max(Pn,0),Pn=Math.min(Pn,An),Pn},$n=useEvent(function(wn,cn){cn?(reactDomExports.flushSync(function(){Er(function(Pn){var An=Pn+(er?-wn:wn);return On(An)})}),_n()):jr(function(Pn){var An=Pn+wn;return An})}),Sn=useFrameWheel(Gt,Gn,io,!!At,$n),xn=_slicedToArray$3(Sn,2),In=xn[0],jn=xn[1];useMobileTouchMove(Gt,ur,function(wn,cn){return pn(wn,cn)?!1:(In({preventDefault:function(){},deltaY:wn}),!0)}),useLayoutEffect$3(function(){function wn(Pn){Gt&&Pn.preventDefault()}var cn=ur.current;return cn.addEventListener("wheel",In),cn.addEventListener("DOMMouseScroll",jn),cn.addEventListener("MozMousePixelScroll",wn),function(){cn.removeEventListener("wheel",In),cn.removeEventListener("DOMMouseScroll",jn),cn.removeEventListener("MozMousePixelScroll",wn)}},[Gt]),useLayoutEffect$3(function(){At&&Er(function(wn){return On(wn)})},[Wr.width,At]);var Hn=function(){var cn,Pn;(cn=mn.current)===null||cn===void 0||cn.delayHidden(),(Pn=hn.current)===null||Pn===void 0||Pn.delayHidden()},qn=useScrollTo$1(ur,cr,ln,ft,Rr,function(){return Vr(!0)},jr,Hn);reactExports.useImperativeHandle(et,function(){return{getScrollInfo:gn,scrollTo:function(cn){function Pn(An){return An&&_typeof$e(An)==="object"&&("left"in An||"top"in An)}Pn(cn)?(cn.left!==void 0&&Er(On(cn.left)),qn(cn.top)):qn(cn)}}}),useLayoutEffect$3(function(){if(Ht){var wn=cr.slice(vr,gr+1);Ht(wn,cr)}},[vr,gr,cr]);var Jn=useGetSize(cr,Rr,ln,ft),ao=Vt==null?void 0:Vt({start:vr,end:gr,virtual:Zt,offsetX:mr,offsetY:$r,rtl:er,getSize:Jn}),Vn=useChildren$1(cr,vr,gr,At,Hr,wt,Pr),Wn=null;ut&&(Wn=_objectSpread2(_defineProperty$c({},xt?"height":"maxHeight",ut),ScrollStyle),Gt&&(Wn.overflowY="hidden",At&&(Wn.overflowX="hidden"),Or&&(Wn.pointerEvents="none")));var zn={};return er&&(zn.dir="rtl"),reactExports.createElement("div",_extends$b({style:_objectSpread2(_objectSpread2({},$t),{},{position:"relative"}),className:lr},zn,Xt),reactExports.createElement(RefResizeObserver,{onResize:dn},reactExports.createElement(Nt,{className:"".concat(st,"-holder"),style:Wn,ref:ur,onScroll:Nn,onMouseEnter:Hn},reactExports.createElement(Filler,{prefixCls:st,height:vn,offsetX:mr,offsetY:$r,scrollWidth:At,onInnerResize:Vr,ref:fr,innerProps:Wt,rtl:er,extra:ao},Vn))),Zt&&vn>ut&&reactExports.createElement(ScrollBar,{ref:mn,prefixCls:st,scrollOffset:dr,scrollRange:vn,rtl:er,onScroll:Tn,onStartMove:Cr,onStopMove:Nr,spinSize:Rn,containerSize:Wr.height,style:qt==null?void 0:qt.verticalScrollBar,thumbStyle:qt==null?void 0:qt.verticalScrollBarThumb}),Zt&&At>Wr.width&&reactExports.createElement(ScrollBar,{ref:hn,prefixCls:st,scrollOffset:mr,scrollRange:At,rtl:er,onScroll:Tn,onStartMove:Cr,onStopMove:Nr,spinSize:Cn,containerSize:Wr.width,horizontal:!0,style:qt==null?void 0:qt.horizontalScrollBar,thumbStyle:qt==null?void 0:qt.horizontalScrollBarThumb}))}var List$2=reactExports.forwardRef(RawList);List$2.displayName="List";function isPlatformMac$2(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$1A=["disabled","title","children","style","className"];function isTitleType$4(_e){return typeof _e=="string"||typeof _e=="number"}var OptionList$3=function(et,rt){var st=useBaseProps$2(),ct=st.prefixCls,ut=st.id,ft=st.open,gt=st.multiple,xt=st.mode,$t=st.searchValue,_t=st.toggleOpen,wt=st.notFoundContent,Tt=st.onPopupScroll,Rt=reactExports.useContext(SelectContext$2),It=Rt.maxCount,At=Rt.flattenOptions,jt=Rt.onActiveValue,Nt=Rt.defaultActiveFirstOption,kt=Rt.onSelect,Ft=Rt.menuItemSelectedIcon,Ht=Rt.rawValues,Wt=Rt.fieldNames,Vt=Rt.virtual,qt=Rt.direction,Xt=Rt.listHeight,Gt=Rt.listItemHeight,Zt=Rt.optionRender,er="".concat(ct,"-item"),lr=useMemo$1(function(){return At},[ft,At],function(Rr,Pr){return Pr[0]&&Rr[1]!==Pr[1]}),cr=reactExports.useRef(null),ur=reactExports.useMemo(function(){return gt&&typeof It<"u"&&(Ht==null?void 0:Ht.size)>=It},[gt,It,Ht==null?void 0:Ht.size]),fr=function(Pr){Pr.preventDefault()},hr=function(Pr){var jr;(jr=cr.current)===null||jr===void 0||jr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},pr=function(Pr){for(var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=lr.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;br(Pr);var kr={source:jr?"keyboard":"mouse"},Fr=lr[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?pr(0):-1)},[lr.length,$t]);var Er=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var jr=Array.from(Ht)[0],kr=lr.findIndex(function(Fr){var _r=Fr.data;return _r.value===jr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var jr=Pr.which,kr=Pr.ctrlKey;switch(jr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(jr===KeyCode.UP?Fr=-1:jr===KeyCode.DOWN?Fr=1:isPlatformMac$2()&&kr&&(jr===KeyCode.N?Fr=1:jr===KeyCode.P&&(Fr=-1)),Fr!==0){var _r=pr(Sr+Fr,Fr);hr(_r),mr(_r,!0)}break}case KeyCode.ENTER:{var Br,Dr=lr[Sr];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),lr.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(er,"-empty"),onMouseDown:fr},wt);var Mr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function wr(Rr,Pr){var jr=Rr.group;return{role:jr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var jr=lr[Pr];if(!jr)return null;var kr=jr.data||{},Fr=kr.value,_r=jr.group,Br=pickAttrs(kr,!0),Dr=Or(jr);return jr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!_r?Dr:null},Br,{key:Pr},wr(jr,Pr),{"aria-selected":Er(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr(Sr-1),Cr(Sr),Cr(Sr+1)),reactExports.createElement(List$2,{itemKey:"key",ref:cr,data:lr,height:Xt,itemHeight:Gt,fullHeight:!1,onMouseDown:fr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var jr,kr=Rr.group,Fr=Rr.groupOption,_r=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=_r.key;if(kr){var Kr,Hr=(Kr=_r.title)!==null&&Kr!==void 0?Kr:isTitleType$4(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(er,"".concat(er,"-group")),title:Hr},Br!==void 0?Br:Xr)}var Vr=_r.disabled,ln=_r.title;_r.children;var Qr=_r.style,Zr=_r.className,vn=_objectWithoutProperties$2(_r,_excluded$1A),vr=omit$2(vn,Mr),gr=Er(Dr),$r=Vr||!gr&&ur,zr="".concat(er,"-option"),qr=classNames(er,zr,Zr,(jr={},_defineProperty$c(jr,"".concat(zr,"-grouped"),Fr),_defineProperty$c(jr,"".concat(zr,"-active"),Sr===Pr&&!$r),_defineProperty$c(jr,"".concat(zr,"-disabled"),$r),_defineProperty$c(jr,"".concat(zr,"-selected"),gr),jr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,dn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType$4(dn)?dn.toString():void 0;return ln!==void 0&&(mn=ln),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:wr(Rr,Pr),{"aria-selected":gr,className:qr,title:mn,onMouseMove:function(){Sr===Pr||$r||mr(Pr)},onClick:function(){$r||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(zr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):dn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn$2,{className:"".concat(er,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:$r,isSelected:gr}},gr?"✓":null))}))},RefOptionList$4=reactExports.forwardRef(OptionList$3);const useCache$3=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes$2(_e,et){return toArray$c(_e).join("").toUpperCase().includes(et)}const useFilterOptions$2=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes$2(It[ct],_t):It[ut]?includes$2(It[ft!=="children"?ft:"label"],_t):includes$2(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption$2(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid$4=0,isBrowserClient$5=canUseDom$1();function getUUID$3(){var _e;return isBrowserClient$5?(_e=uuid$4,uuid$4+=1):_e="TEST_OR_SSR",_e}function useId$3(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID$3()))},[]),_e||st}var _excluded$1z=["children","value"],_excluded2$q=["children"];function convertNodeToOption$2(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$1z);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$3(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$e(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$q);return et||!ut?convertNodeToOption$2(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$3(xt)})}).filter(function(rt){return rt})}var useOptions$3=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$3(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},In=xn.source,jn=In===void 0?"keyboard":In;Gn(Sn),ft&&st==="combobox"&&$n!==null&&jn==="keyboard"&&Rn(String($n))},[ft,st]),gn=function(Sn,xn,In){var jn=function(){var Pn,An=Zr(Sn);return[dr?{label:An==null?void 0:An[Or.label],value:Sn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Sn}:Sn,injectPropsWithOption$2(An)]};if(xn&&Rt){var Hn=jn(),qn=_slicedToArray$3(Hn,2),Jn=qn[0],ao=qn[1];Rt(Jn,ao)}else if(!xn&&It&&In!=="clear"){var Vn=jn(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1];It(zn,wn)}},yn=useRefFunc$3(function($n,Sn){var xn,In=Er?Sn.selected:!0;In?xn=Er?[].concat(_toConsumableArray$3(Qr),[$n]):[$n]:xn=Qr.filter(function(jn){return jn.value!==$n}),dn(xn),gn($n,In),st==="combobox"?Rn(""):(!isMultiple$2||Tt)&&(Rr(""),Rn(""))}),_n=function(Sn,xn){dn(Sn);var In=xn.type,jn=xn.values;(In==="remove"||In==="clear")&&jn.forEach(function(Hn){gn(Hn.value,!1,In)})},Tn=function(Sn,xn){if(Rr(Sn),Rn(null),xn.source==="submit"){var In=(Sn||"").trim();if(In){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[In])));dn(jn),gn(In,!0),Rr("")}return}xn.source!=="blur"&&(st==="combobox"&&dn(Sn),_t==null||_t(Sn))},Nn=function(Sn){var xn=Sn;st!=="tags"&&(xn=Sn.map(function(jn){var Hn=kr.get(jn);return Hn==null?void 0:Hn.value}).filter(function(jn){return jn!==void 0}));var In=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(xn))));dn(In),In.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var $n=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:pn,defaultActiveFirstOption:io,onSelect:yn,menuItemSelectedIcon:Gt,rawValues:vr,fieldNames:Or,virtual:$n,direction:er,listHeight:cr,listItemHeight:fr,childrenAsData:Tr,maxCount:Sr,optionRender:Vt})},[Sr,Pr,Gr,pn,io,yn,Gt,vr,Or,Zt,jt,er,cr,fr,Tr,Vt]);return reactExports.createElement(SelectContext$2.Provider,{value:On},reactExports.createElement(BaseSelect$2,_extends$b({},br,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS$2,mode:st,displayValues:vn,onDisplayValuesChange:_n,direction:er,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$4,emptyOptions:!Gr.length,activeValue:Cn,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect$2=Select$4;TypedSelect$2.Option=Option$2;TypedSelect$2.OptGroup=OptGroup$2;function getStatusClassNames(_e,et,rt){return classNames({[`${_e}-status-success`]:et==="success",[`${_e}-status-warning`]:et==="warning",[`${_e}-status-error`]:et==="error",[`${_e}-status-validating`]:et==="validating",[`${_e}-has-feedback`]:rt})}const getMergedStatus=(_e,et)=>et||_e,Empty$2=()=>{const[,_e]=useToken$4(),rt=new TinyColor(_e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:rt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.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"}),reactExports.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)"}),reactExports.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"}),reactExports.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"})),reactExports.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"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},DefaultEmptyImg=Empty$2,Simple=()=>{const[,_e]=useToken$4(),{colorFill:et,colorFillTertiary:rt,colorFillQuaternary:st,colorBgContainer:ct}=_e,{borderColor:ut,shadowColor:ft,contentColor:gt}=reactExports.useMemo(()=>({borderColor:new TinyColor(et).onBackground(ct).toHexShortString(),shadowColor:new TinyColor(rt).onBackground(ct).toHexShortString(),contentColor:new TinyColor(st).onBackground(ct).toHexShortString()}),[et,rt,st,ct]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:ft,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:ut},reactExports.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"}),reactExports.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:gt}))))},SimpleEmptyImg=Simple,genSharedEmptyStyle=_e=>{const{componentCls:et,margin:rt,marginXS:st,marginXL:ct,fontSize:ut,lineHeight:ft}=_e;return{[et]:{marginInline:st,fontSize:ut,lineHeight:ft,textAlign:"center",[`${et}-image`]:{height:_e.emptyImgHeight,marginBottom:st,opacity:_e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${et}-description`]:{color:_e.colorText},[`${et}-footer`]:{marginTop:rt},"&-normal":{marginBlock:ct,color:_e.colorTextDisabled,[`${et}-description`]:{color:_e.colorTextDisabled},[`${et}-image`]:{height:_e.emptyImgHeightMD}},"&-small":{marginBlock:st,color:_e.colorTextDisabled,[`${et}-image`]:{height:_e.emptyImgHeightSM}}}}},useStyle$R=genStyleHooks("Empty",_e=>{const{componentCls:et,controlHeightLG:rt,calc:st}=_e,ct=merge$7(_e,{emptyImgCls:`${et}-img`,emptyImgHeight:st(rt).mul(2.5).equal(),emptyImgHeightMD:rt,emptyImgHeightSM:st(rt).mul(.875).equal()});return[genSharedEmptyStyle(ct)]});var __rest$Z=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{className:et,rootClassName:rt,prefixCls:st,image:ct=defaultEmptyImg,description:ut,children:ft,imageStyle:gt,style:xt}=_e,$t=__rest$Z(_e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:_t,direction:wt,empty:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("empty",st),[It,At,jt]=useStyle$R(Rt),[Nt]=useLocale$3("Empty"),kt=typeof ut<"u"?ut:Nt==null?void 0:Nt.description,Ft=typeof kt=="string"?kt:"empty";let Ht=null;return typeof ct=="string"?Ht=reactExports.createElement("img",{alt:Ft,src:ct}):Ht=ct,It(reactExports.createElement("div",Object.assign({className:classNames(At,jt,Rt,Tt==null?void 0:Tt.className,{[`${Rt}-normal`]:ct===simpleEmptyImg,[`${Rt}-rtl`]:wt==="rtl"},et,rt),style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),xt)},$t),reactExports.createElement("div",{className:`${Rt}-image`,style:gt},Ht),kt&&reactExports.createElement("div",{className:`${Rt}-description`},kt),ft&&reactExports.createElement("div",{className:`${Rt}-footer`},ft)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const Empty$1=Empty,DefaultRenderEmpty=_e=>{const{componentName:et}=_e,{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),st=rt("empty");switch(et){case"Table":case"List":return React$1.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React$1.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,className:`${st}-small`});default:return React$1.createElement(Empty$1,null)}},DefaultRenderEmpty$1=DefaultRenderEmpty,Variants=["outlined","borderless","filled"],useVariant=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const rt=reactExports.useContext(VariantContext);let st;typeof _e<"u"?st=_e:et===!1?st="borderless":st=rt??"outlined";const ct=Variants.includes(st);return[st,ct]},getBuiltInPlacements$2=_e=>{const rt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:_e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},rt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},rt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},rt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},rt),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(_e,et){return _e||getBuiltInPlacements$2(et)}const genItemStyle=_e=>{const{optionHeight:et,optionFontSize:rt,optionLineHeight:st,optionPadding:ct}=_e;return{position:"relative",display:"block",minHeight:et,padding:ct,color:_e.colorText,fontWeight:"normal",fontSize:rt,lineHeight:st,boxSizing:"border-box"}},genSingleStyle$1=_e=>{const{antCls:et,componentCls:rt}=_e,st=`${rt}-item`,ct=`&${et}-slide-up-enter${et}-slide-up-enter-active`,ut=`&${et}-slide-up-appear${et}-slide-up-appear-active`,ft=`&${et}-slide-up-leave${et}-slide-up-leave-active`,gt=`${rt}-dropdown-placement-`;return[{[`${rt}-dropdown`]:Object.assign(Object.assign({},resetComponent$1(_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,[` ${ct}${gt}bottomLeft, ${ut}${gt}bottomLeft `]:{animationName:slideUpIn},[` @@ -254,10 +254,10 @@ html body { `]:{paddingInlineEnd:_e.showArrowPaddingInlineEnd},[`&${rt}-open ${rt}-selection-item`]:{color:_e.colorTextPlaceholder},[`&:not(${rt}-customize-input)`]:{[`${rt}-selector`]:{width:"100%",height:"100%",padding:`0 ${unit$1(st)}`,[`${rt}-selection-search-input`]:{height:ut},"&:after":{lineHeight:unit$1(ut)}}},[`&${rt}-customize-input`]:{[`${rt}-selector`]:{"&:after":{display:"none"},[`${rt}-selection-search`]:{position:"static",width:"100%"},[`${rt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit$1(st)}`,"&:after":{display:"none"}}}}}}}function genSingleStyle(_e){const{componentCls:et}=_e,rt=_e.calc(_e.controlPaddingHorizontalSM).sub(_e.lineWidth).equal();return[genSizeStyle$2(_e),genSizeStyle$2(merge$7(_e,{controlHeight:_e.controlHeightSM,borderRadius:_e.borderRadiusSM}),"sm"),{[`${et}-single${et}-sm`]:{[`&:not(${et}-customize-input)`]:{[`${et}-selection-search`]:{insetInlineStart:rt,insetInlineEnd:rt},[`${et}-selector`]:{padding:`0 ${unit$1(rt)}`},[`&${et}-show-arrow ${et}-selection-search`]:{insetInlineEnd:_e.calc(rt).add(_e.calc(_e.fontSize).mul(1.5)).equal()},[` &${et}-show-arrow ${et}-selection-item, &${et}-show-arrow ${et}-selection-placeholder - `]:{paddingInlineEnd:_e.calc(_e.fontSize).mul(1.5).equal()}}}},genSizeStyle$2(merge$7(_e,{controlHeight:_e.singleItemHeightLG,fontSize:_e.fontSizeLG,borderRadius:_e.borderRadiusLG}),"lg")]}const prepareComponentToken$t=_e=>{const{fontSize:et,lineHeight:rt,controlHeight:st,controlPaddingHorizontal:ct,zIndexPopupBase:ut,colorText:ft,fontWeightStrong:gt,controlItemBgActive:xt,controlItemBgHover:$t,colorBgContainer:_t,colorFillSecondary:wt,controlHeightLG:Tt,controlHeightSM:Rt,colorBgContainerDisabled:It,colorTextDisabled:At}=_e;return{zIndexPopup:ut+50,optionSelectedColor:ft,optionSelectedFontWeight:gt,optionSelectedBg:xt,optionActiveBg:$t,optionPadding:`${(st-et*rt)/2}px ${ct}px`,optionFontSize:et,optionLineHeight:rt,optionHeight:st,selectorBg:_t,clearBg:_t,singleItemHeightLG:Tt,multipleItemBg:wt,multipleItemBorderColor:"transparent",multipleItemHeight:Rt,multipleItemHeightLG:st,multipleSelectorBgDisabled:It,multipleItemColorDisabled:At,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(_e.fontSize*1.25)}},genBaseOutlinedStyle$1=(_e,et)=>{const{componentCls:rt,antCls:st,controlOutlineWidth:ct}=_e;return{[`&:not(${rt}-customize-input) ${rt}-selector`]:{border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${et.borderColor}`,background:_e.selectorBg},[`&:not(${rt}-disabled):not(${rt}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${rt}-selector`]:{borderColor:et.hoverBorderHover},[`${rt}-focused& ${rt}-selector`]:{borderColor:et.activeBorderColor,boxShadow:`0 0 0 ${unit$1(ct)} ${et.activeShadowColor}`,outline:0}}}},genOutlinedStatusStyle$1=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}`]:Object.assign({},genBaseOutlinedStyle$1(_e,et))}),genOutlinedStyle$1=_e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(_e,{borderColor:_e.colorBorder,hoverBorderHover:_e.colorPrimaryHover,activeBorderColor:_e.colorPrimary,activeShadowColor:_e.controlOutline})),genOutlinedStatusStyle$1(_e,{status:"error",borderColor:_e.colorError,hoverBorderHover:_e.colorErrorHover,activeBorderColor:_e.colorError,activeShadowColor:_e.colorErrorOutline})),genOutlinedStatusStyle$1(_e,{status:"warning",borderColor:_e.colorWarning,hoverBorderHover:_e.colorWarningHover,activeBorderColor:_e.colorWarning,activeShadowColor:_e.colorWarningOutline})),{[`&${_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(_e,et)=>{const{componentCls:rt,antCls:st}=_e;return{[`&:not(${rt}-customize-input) ${rt}-selector`]:{background:et.bg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,color:et.color},[`&:not(${rt}-disabled):not(${rt}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${rt}-selector`]:{background:et.hoverBg},[`${rt}-focused& ${rt}-selector`]:{background:_e.selectorBg,borderColor:et.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}`]:Object.assign({},genBaseFilledStyle$1(_e,et))}),genFilledStyle$1=_e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(_e,{bg:_e.colorFillTertiary,hoverBg:_e.colorFillSecondary,activeBorderColor:_e.colorPrimary,color:_e.colorText})),genFilledStatusStyle$1(_e,{status:"error",bg:_e.colorErrorBg,hoverBg:_e.colorErrorBgHover,activeBorderColor:_e.colorError,color:_e.colorError})),genFilledStatusStyle$1(_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}})}),genBorderlessStyle$2=_e=>({"&-borderless":{[`${_e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}}}),genVariantsStyle$1=_e=>({[_e.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(_e)),genFilledStyle$1(_e)),genBorderlessStyle$2(_e))}),genSelectorStyle=_e=>{const{componentCls:et}=_e;return{position:"relative",transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,input:{cursor:"pointer"},[`${et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-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"}}}},genBaseStyle$c=_e=>{const{antCls:et,componentCls:rt,inputPaddingHorizontalBase:st,iconCls:ct}=_e;return{[rt]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${rt}-customize-input) ${rt}-selector`]:Object.assign(Object.assign({},genSelectorStyle(_e)),getSearchInputWithoutBorderStyle(_e)),[`${rt}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${et}-typography`]:{display:"inline"}}),[`${rt}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:_e.colorTextPlaceholder,pointerEvents:"none"}),[`${rt}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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`,[ct]:{verticalAlign:"top",transition:`transform ${_e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${rt}-suffix)`]:{pointerEvents:"auto"}},[`${rt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${rt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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":{[`${rt}-clear`]:{opacity:1},[`${rt}-arrow:not(:last-child)`]:{opacity:0}}}),[`${rt}-has-feedback`]:{[`${rt}-clear`]:{insetInlineEnd:_e.calc(st).add(_e.fontSize).add(_e.paddingXS).equal()}}}},genSelectStyle=_e=>{const{componentCls:et}=_e;return[{[et]:{[`&${et}-in-form-item`]:{width:"100%"}}},genBaseStyle$c(_e),genSingleStyle(_e),genMultipleStyle(_e),genSingleStyle$1(_e),{[`${et}-rtl`]:{direction:"rtl"}},genCompactItemStyle(_e,{borderElCls:`${et}-selector`,focusElCls:`${et}-focused`})]},useSelectStyle=genStyleHooks("Select",(_e,et)=>{let{rootPrefixCls:rt}=et;const st=merge$7(_e,{rootPrefixCls:rt,inputPaddingHorizontalBase:_e.calc(_e.paddingSM).sub(1).equal(),multipleSelectItemHeight:_e.multipleItemHeight,selectHeight:_e.controlHeight});return[genSelectStyle(st),genVariantsStyle$1(st)]},prepareComponentToken$t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$2={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"};const CheckOutlinedSvg=CheckOutlined$2;var CheckOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CheckOutlinedSvg}))};const CheckOutlined$1=reactExports.forwardRef(CheckOutlined);var DownOutlined$4={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"};const DownOutlinedSvg=DownOutlined$4;var DownOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DownOutlinedSvg}))};const DownOutlined$3=reactExports.forwardRef(DownOutlined$2);var SearchOutlined$4={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"};const SearchOutlinedSvg=SearchOutlined$4;var SearchOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:SearchOutlinedSvg}))};const SearchOutlined$3=reactExports.forwardRef(SearchOutlined$2);function useIcons$1(_e){let{suffixIcon:et,clearIcon:rt,menuItemSelectedIcon:st,removeIcon:ct,loading:ut,multiple:ft,hasFeedback:gt,prefixCls:xt,showSuffixIcon:$t,feedbackIcon:_t,showArrow:wt,componentName:Tt}=_e;const Rt=rt??reactExports.createElement(CloseCircleFilled$3,null),It=kt=>et===null&&!gt&&!wt?null:reactExports.createElement(reactExports.Fragment,null,$t!==!1&&kt,gt&&_t);let At=null;if(et!==void 0)At=It(et);else if(ut)At=It(reactExports.createElement(LoadingOutlined$3,{spin:!0}));else{const kt=`${xt}-suffix`;At=Ft=>{let{open:Ht,showSearch:Wt}=Ft;return It(Ht&&Wt?reactExports.createElement(SearchOutlined$3,{className:kt}):reactExports.createElement(DownOutlined$3,{className:kt}))}}let jt=null;st!==void 0?jt=st:ft?jt=reactExports.createElement(CheckOutlined$1,null):jt=null;let Nt=null;return ct!==void 0?Nt=ct:Nt=reactExports.createElement(CloseOutlined$1,null),{clearIcon:Rt,suffixIcon:At,itemIcon:jt,removeIcon:Nt}}function useShowArrow(_e,et){return et!==void 0?et:_e!==null}var __rest$U=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct,className:ut,rootClassName:ft,getPopupContainer:gt,popupClassName:xt,dropdownClassName:$t,listHeight:_t=256,placement:wt,listItemHeight:Tt,size:Rt,disabled:It,notFoundContent:At,status:jt,builtinPlacements:Nt,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:Ft,direction:Ht,style:Wt,allowClear:Vt,variant:qt,dropdownStyle:Gt,transitionName:Xt,tagRender:Zt,maxCount:lr}=_e,er=__rest$U(_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"]),{getPopupContainer:cr,getPrefixCls:ur,renderEmpty:pr,direction:hr,virtual:fr,popupMatchSelectWidth:dr,popupOverflow:yr,select:$r}=reactExports.useContext(ConfigContext$1),[,Er]=useToken$4(),mr=Tt??(Er==null?void 0:Er.controlHeight),Sr=ur("select",st),Tr=ur(),jr=Ht??hr,{compactSize:Or,compactItemClassnames:_r}=useCompactItemContext(Sr,jr),[Cr,Nr]=useVariant(qt,ct),Rr=useCSSVarCls(Sr),[Pr,Mr,kr]=useSelectStyle(Sr,Rr),Fr=reactExports.useMemo(()=>{const{mode:Rn}=_e;if(Rn!=="combobox")return Rn===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Rn},[_e.mode]),wr=Fr==="multiple"||Fr==="tags",Br=useShowArrow(_e.suffixIcon,_e.showArrow),Dr=(rt=Ft??kt)!==null&&rt!==void 0?rt:dr,{status:Xr,hasFeedback:Kr,isFormItemInput:zr,feedbackIcon:qr}=reactExports.useContext(FormItemInputContext),pn=getMergedStatus(Xr,jt);let Qr;At!==void 0?Qr=At:Fr==="combobox"?Qr=null:Qr=(pr==null?void 0:pr("Select"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Select"});const{suffixIcon:Zr,itemIcon:vn,removeIcon:vr,clearIcon:gr}=useIcons$1(Object.assign(Object.assign({},er),{multiple:wr,hasFeedback:Kr,feedbackIcon:qr,showSuffixIcon:Br,prefixCls:Sr,componentName:"Select"})),br=Vt===!0?{clearIcon:gr}:Vt,Hr=omit$2(er,["suffixIcon","itemIcon"]),Vr=classNames(xt||$t,{[`${Sr}-dropdown-${jr}`]:jr==="rtl"},ft,kr,Rr,Mr),Wr=useSize(Rn=>{var Dn;return(Dn=Rt??Or)!==null&&Dn!==void 0?Dn:Rn}),Gr=reactExports.useContext(DisabledContext$2),cn=It??Gr,mn=classNames({[`${Sr}-lg`]:Wr==="large",[`${Sr}-sm`]:Wr==="small",[`${Sr}-rtl`]:jr==="rtl",[`${Sr}-${Cr}`]:Nr,[`${Sr}-in-form-item`]:zr},getStatusClassNames(Sr,pn,Kr),_r,$r==null?void 0:$r.className,ut,ft,kr,Rr,Mr),hn=reactExports.useMemo(()=>wt!==void 0?wt:jr==="rtl"?"bottomRight":"bottomLeft",[wt,jr]),[En]=useZIndex("SelectLike",Gt==null?void 0:Gt.zIndex);return Pr(reactExports.createElement(TypedSelect$2,Object.assign({ref:et,virtual:fr,showSearch:$r==null?void 0:$r.showSearch},Hr,{style:Object.assign(Object.assign({},$r==null?void 0:$r.style),Wt),dropdownMatchSelectWidth:Dr,transitionName:getTransitionName(Tr,"slide-up",Xt),builtinPlacements:mergedBuiltinPlacements(Nt,yr),listHeight:_t,listItemHeight:mr,mode:Fr,prefixCls:Sr,placement:hn,direction:jr,suffixIcon:Zr,menuItemSelectedIcon:vn,removeIcon:vr,allowClear:br,notFoundContent:Qr,className:mn,getPopupContainer:gt||cr,dropdownClassName:Vr,disabled:cn,dropdownStyle:Object.assign(Object.assign({},Gt),{zIndex:En}),maxCount:wr?lr:void 0,tagRender:wr?Zt:void 0})))},Select$2=reactExports.forwardRef(InternalSelect),PurePanel$b=genPurePanel(Select$2);Select$2.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select$2.Option=Option$2;Select$2.OptGroup=OptGroup$2;Select$2._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$b;const Select$3=Select$2,responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=_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)`}),validateBreakpoints=_e=>{const et=_e,rt=[].concat(responsiveArray).reverse();return rt.forEach((st,ct)=>{const ut=st.toUpperCase(),ft=`screen${ut}Min`,gt=`screen${ut}`;if(!(et[ft]<=et[gt]))throw new Error(`${ft}<=${gt} fails : !(${et[ft]}<=${et[gt]})`);if(ct{const rt=new Map;let st=-1,ct={};return{matchHandlers:{},dispatch(ut){return ct=ut,rt.forEach(ft=>ft(ct)),rt.size>=1},subscribe(ut){return rt.size||this.register(),st+=1,rt.set(st,ut),ut(ct),st},unsubscribe(ut){rt.delete(ut),rt.size||this.unregister()},unregister(){Object.keys(et).forEach(ut=>{const ft=et[ut],gt=this.matchHandlers[ft];gt==null||gt.mql.removeListener(gt==null?void 0:gt.listener)}),rt.clear()},register(){Object.keys(et).forEach(ut=>{const ft=et[ut],gt=$t=>{let{matches:_t}=$t;this.dispatch(Object.assign(Object.assign({},ct),{[ut]:_t}))},xt=window.matchMedia(ft);xt.addListener(gt),this.matchHandlers[ft]={mql:xt,listener:gt},gt(xt)})},responsiveMap:et}},[_e])}const matchScreen=(_e,et)=>{if(et&&typeof et=="object")for(let rt=0;rtet+1,0);return _e}function useBreakpoint$1(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const et=reactExports.useRef({}),rt=useForceUpdate(),st=useResponsiveObserver();return useLayoutEffect$3(()=>{const ct=st.subscribe(ut=>{et.current=ut,_e&&rt()});return()=>st.unsubscribe(ct)},[]),et.current}const AvatarContext=reactExports.createContext({}),AvatarContext$1=AvatarContext,genBaseStyle$b=_e=>{const{antCls:et,componentCls:rt,iconCls:st,avatarBg:ct,avatarColor:ut,containerSize:ft,containerSizeLG:gt,containerSizeSM:xt,textFontSize:$t,textFontSizeLG:_t,textFontSizeSM:wt,borderRadius:Tt,borderRadiusLG:Rt,borderRadiusSM:It,lineWidth:At,lineType:jt}=_e,Nt=(kt,Ft,Ht)=>({width:kt,height:kt,borderRadius:"50%",[`&${rt}-square`]:{borderRadius:Ht},[`&${rt}-icon`]:{fontSize:Ft,[`> ${st}`]:{margin:0}}});return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:ut,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:ct,border:`${unit$1(At)} ${jt} transparent`,"&-image":{background:"transparent"},[`${et}-image-img`]:{display:"block"}}),Nt(ft,$t,Tt)),{"&-lg":Object.assign({},Nt(gt,_t,Rt)),"&-sm":Object.assign({},Nt(xt,wt,It)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},genGroupStyle$1=_e=>{const{componentCls:et,groupBorderColor:rt,groupOverlapping:st,groupSpace:ct}=_e;return{[`${et}-group`]:{display:"inline-flex",[`${et}`]:{borderColor:rt},"> *:not(:first-child)":{marginInlineStart:st}},[`${et}-group-popover`]:{[`${et} + ${et}`]:{marginInlineStart:ct}}}},prepareComponentToken$s=_e=>{const{controlHeight:et,controlHeightLG:rt,controlHeightSM:st,fontSize:ct,fontSizeLG:ut,fontSizeXL:ft,fontSizeHeading3:gt,marginXS:xt,marginXXS:$t,colorBorderBg:_t}=_e;return{containerSize:et,containerSizeLG:rt,containerSizeSM:st,textFontSize:Math.round((ut+ft)/2),textFontSizeLG:gt,textFontSizeSM:ct,groupSpace:$t,groupOverlapping:-xt,groupBorderColor:_t}},useStyle$O=genStyleHooks("Avatar",_e=>{const{colorTextLightSolid:et,colorTextPlaceholder:rt}=_e,st=merge$7(_e,{avatarBg:rt,avatarColor:et});return[genBaseStyle$b(st),genGroupStyle$1(st)]},prepareComponentToken$s);var __rest$T=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const[rt,st]=reactExports.useState(1),[ct,ut]=reactExports.useState(!1),[ft,gt]=reactExports.useState(!0),xt=reactExports.useRef(null),$t=reactExports.useRef(null),_t=composeRef(et,xt),{getPrefixCls:wt,avatar:Tt}=reactExports.useContext(ConfigContext$1),Rt=reactExports.useContext(AvatarContext$1),It=()=>{if(!$t.current||!xt.current)return;const Cr=$t.current.offsetWidth,Nr=xt.current.offsetWidth;if(Cr!==0&&Nr!==0){const{gap:Rr=4}=_e;Rr*2{ut(!0)},[]),reactExports.useEffect(()=>{gt(!0),st(1)},[_e.src]),reactExports.useEffect(It,[_e.gap]);const At=()=>{const{onError:Cr}=_e;(Cr==null?void 0:Cr())!==!1&>(!1)},{prefixCls:jt,shape:Nt,size:kt,src:Ft,srcSet:Ht,icon:Wt,className:Vt,rootClassName:qt,alt:Gt,draggable:Xt,children:Zt,crossOrigin:lr}=_e,er=__rest$T(_e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),cr=useSize(Cr=>{var Nr,Rr;return(Rr=(Nr=kt??(Rt==null?void 0:Rt.size))!==null&&Nr!==void 0?Nr:Cr)!==null&&Rr!==void 0?Rr:"default"}),ur=Object.keys(typeof cr=="object"?cr||{}:{}).some(Cr=>["xs","sm","md","lg","xl","xxl"].includes(Cr)),pr=useBreakpoint$1(ur),hr=reactExports.useMemo(()=>{if(typeof cr!="object")return{};const Cr=responsiveArray.find(Rr=>pr[Rr]),Nr=cr[Cr];return Nr?{width:Nr,height:Nr,fontSize:Nr&&(Wt||Zt)?Nr/2:18}:{}},[pr,cr]),fr=wt("avatar",jt),dr=useCSSVarCls(fr),[yr,$r,Er]=useStyle$O(fr,dr),mr=classNames({[`${fr}-lg`]:cr==="large",[`${fr}-sm`]:cr==="small"}),Sr=reactExports.isValidElement(Ft),Tr=Nt||(Rt==null?void 0:Rt.shape)||"circle",jr=classNames(fr,mr,Tt==null?void 0:Tt.className,`${fr}-${Tr}`,{[`${fr}-image`]:Sr||Ft&&ft,[`${fr}-icon`]:!!Wt},Er,dr,Vt,qt,$r),Or=typeof cr=="number"?{width:cr,height:cr,fontSize:Wt?cr/2:18}:{};let _r;if(typeof Ft=="string"&&ft)_r=reactExports.createElement("img",{src:Ft,draggable:Xt,srcSet:Ht,onError:At,alt:Gt,crossOrigin:lr});else if(Sr)_r=Ft;else if(Wt)_r=Wt;else if(ct||rt!==1){const Cr=`scale(${rt})`,Nr={msTransform:Cr,WebkitTransform:Cr,transform:Cr};_r=reactExports.createElement(RefResizeObserver,{onResize:It},reactExports.createElement("span",{className:`${fr}-string`,ref:$t,style:Object.assign({},Nr)},Zt))}else _r=reactExports.createElement("span",{className:`${fr}-string`,style:{opacity:0},ref:$t},Zt);return delete er.onError,delete er.gap,yr(reactExports.createElement("span",Object.assign({},er,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Or),hr),Tt==null?void 0:Tt.style),er.style),className:jr,ref:_t}),_r))},Avatar$3=reactExports.forwardRef(InternalAvatar),InternalAvatar$1=Avatar$3,getRenderPropValue=_e=>_e?typeof _e=="function"?_e():_e:null;function Popup$1(_e){var et=_e.children,rt=_e.prefixCls,st=_e.id,ct=_e.overlayInnerStyle,ut=_e.className,ft=_e.style;return reactExports.createElement("div",{className:classNames("".concat(rt,"-content"),ut),style:ft},reactExports.createElement("div",{className:"".concat(rt,"-inner"),id:st,role:"tooltip",style:ct},typeof et=="function"?et():et))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset$1=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1}},_excluded$1x=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$2=function(et,rt){var st=et.overlayClassName,ct=et.trigger,ut=ct===void 0?["hover"]:ct,ft=et.mouseEnterDelay,gt=ft===void 0?0:ft,xt=et.mouseLeaveDelay,$t=xt===void 0?.1:xt,_t=et.overlayStyle,wt=et.prefixCls,Tt=wt===void 0?"rc-tooltip":wt,Rt=et.children,It=et.onVisibleChange,At=et.afterVisibleChange,jt=et.transitionName,Nt=et.animation,kt=et.motion,Ft=et.placement,Ht=Ft===void 0?"right":Ft,Wt=et.align,Vt=Wt===void 0?{}:Wt,qt=et.destroyTooltipOnHide,Gt=qt===void 0?!1:qt,Xt=et.defaultVisible,Zt=et.getTooltipContainer,lr=et.overlayInnerStyle;et.arrowContent;var er=et.overlay,cr=et.id,ur=et.showArrow,pr=ur===void 0?!0:ur,hr=_objectWithoutProperties$2(et,_excluded$1x),fr=reactExports.useRef(null);reactExports.useImperativeHandle(rt,function(){return fr.current});var dr=_objectSpread2({},hr);"visible"in et&&(dr.popupVisible=et.visible);var yr=function(){return reactExports.createElement(Popup$1,{key:"content",prefixCls:Tt,id:cr,overlayInnerStyle:lr},er)};return reactExports.createElement(Trigger,_extends$b({popupClassName:st,prefixCls:Tt,popup:yr,action:ut,builtinPlacements:placements$2,popupPlacement:Ht,ref:fr,popupAlign:Vt,getPopupContainer:Zt,onPopupVisibleChange:It,afterPopupVisibleChange:At,popupTransitionName:jt,popupAnimation:Nt,popupMotion:kt,defaultPopupVisible:Xt,autoDestroy:Gt,mouseLeaveDelay:$t,popupStyle:_t,mouseEnterDelay:gt,arrow:pr},dr),Rt)};const Tooltip$3=reactExports.forwardRef(Tooltip$2);function getArrowToken(_e){const{sizePopupArrow:et,borderRadiusXS:rt,borderRadiusOuter:st}=_e,ct=et/2,ut=0,ft=ct,gt=st*1/Math.sqrt(2),xt=ct-st*(1-1/Math.sqrt(2)),$t=ct-rt*(1/Math.sqrt(2)),_t=st*(Math.sqrt(2)-1)+rt*(1/Math.sqrt(2)),wt=2*ct-$t,Tt=_t,Rt=2*ct-gt,It=xt,At=2*ct-ut,jt=ft,Nt=ct*Math.sqrt(2)+st*(Math.sqrt(2)-2),kt=st*(Math.sqrt(2)-1),Ft=`polygon(${kt}px 100%, 50% ${kt}px, ${2*ct-kt}px 100%, ${kt}px 100%)`,Ht=`path('M ${ut} ${ft} A ${st} ${st} 0 0 0 ${gt} ${xt} L ${$t} ${_t} A ${rt} ${rt} 0 0 1 ${wt} ${Tt} L ${Rt} ${It} A ${st} ${st} 0 0 0 ${At} ${jt} Z')`;return{arrowShadowWidth:Nt,arrowPath:Ht,arrowPolygon:Ft}}const genRoundedArrow=(_e,et,rt)=>{const{sizePopupArrow:st,arrowPolygon:ct,arrowPath:ut,arrowShadowWidth:ft,borderRadiusXS:gt,calc:xt}=_e;return{pointerEvents:"none",width:st,height:st,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:st,height:xt(st).div(2).equal(),background:et,clipPath:{_multi_value_:!0,value:[ct,ut]},content:'""'},"&::after":{content:'""',position:"absolute",width:ft,height:ft,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit$1(gt)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:rt,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(_e){const{contentRadius:et,limitVerticalRadius:rt}=_e,st=et>12?et+2:12;return{arrowOffsetHorizontal:st,arrowOffsetVertical:rt?MAX_VERTICAL_CONTENT_RADIUS:st}}function isInject(_e,et){return _e?et:{}}function getArrowStyle(_e,et,rt){const{componentCls:st,boxShadowPopoverArrow:ct,arrowOffsetVertical:ut,arrowOffsetHorizontal:ft}=_e,{arrowDistance:gt=0,arrowPlacement:xt={left:!0,right:!0,top:!0,bottom:!0}}=rt||{};return{[st]:Object.assign(Object.assign(Object.assign(Object.assign({[`${st}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(_e,et,ct)),{"&:before":{background:et}})]},isInject(!!xt.top,{[[`&-placement-top > ${st}-arrow`,`&-placement-topLeft > ${st}-arrow`,`&-placement-topRight > ${st}-arrow`].join(",")]:{bottom:gt,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${st}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${st}-arrow`]:{left:{_skip_check_:!0,value:ft}},[`&-placement-topRight > ${st}-arrow`]:{right:{_skip_check_:!0,value:ft}}})),isInject(!!xt.bottom,{[[`&-placement-bottom > ${st}-arrow`,`&-placement-bottomLeft > ${st}-arrow`,`&-placement-bottomRight > ${st}-arrow`].join(",")]:{top:gt,transform:"translateY(-100%)"},[`&-placement-bottom > ${st}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${st}-arrow`]:{left:{_skip_check_:!0,value:ft}},[`&-placement-bottomRight > ${st}-arrow`]:{right:{_skip_check_:!0,value:ft}}})),isInject(!!xt.left,{[[`&-placement-left > ${st}-arrow`,`&-placement-leftTop > ${st}-arrow`,`&-placement-leftBottom > ${st}-arrow`].join(",")]:{right:{_skip_check_:!0,value:gt},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${st}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${st}-arrow`]:{top:ut},[`&-placement-leftBottom > ${st}-arrow`]:{bottom:ut}})),isInject(!!xt.right,{[[`&-placement-right > ${st}-arrow`,`&-placement-rightTop > ${st}-arrow`,`&-placement-rightBottom > ${st}-arrow`].join(",")]:{left:{_skip_check_:!0,value:gt},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${st}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${st}-arrow`]:{top:ut},[`&-placement-rightBottom > ${st}-arrow`]:{bottom:ut}}))}}function getOverflowOptions(_e,et,rt,st){if(st===!1)return{adjustX:!1,adjustY:!1};const ct=st&&typeof st=="object"?st:{},ut={};switch(_e){case"top":case"bottom":ut.shiftX=et.arrowOffsetHorizontal*2+rt,ut.shiftY=!0,ut.adjustY=!0;break;case"left":case"right":ut.shiftY=et.arrowOffsetVertical*2+rt,ut.shiftX=!0,ut.adjustX=!0;break}const ft=Object.assign(Object.assign({},ut),ct);return ft.shiftX||(ft.adjustX=!0),ft.shiftY||(ft.adjustY=!0),ft}const PlacementAlignMap={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"]}},ArrowCenterPlacementAlignMap={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"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(_e){const{arrowWidth:et,autoAdjustOverflow:rt,arrowPointAtCenter:st,offset:ct,borderRadius:ut,visibleFirst:ft}=_e,gt=et/2,xt={};return Object.keys(PlacementAlignMap).forEach($t=>{const _t=st&&ArrowCenterPlacementAlignMap[$t]||PlacementAlignMap[$t],wt=Object.assign(Object.assign({},_t),{offset:[0,0],dynamicInset:!0});switch(xt[$t]=wt,DisableAutoArrowList.has($t)&&(wt.autoArrow=!1),$t){case"top":case"topLeft":case"topRight":wt.offset[1]=-gt-ct;break;case"bottom":case"bottomLeft":case"bottomRight":wt.offset[1]=gt+ct;break;case"left":case"leftTop":case"leftBottom":wt.offset[0]=-gt-ct;break;case"right":case"rightTop":case"rightBottom":wt.offset[0]=gt+ct;break}const Tt=getArrowOffsetToken({contentRadius:ut,limitVerticalRadius:!0});if(st)switch($t){case"topLeft":case"bottomLeft":wt.offset[0]=-Tt.arrowOffsetHorizontal-gt;break;case"topRight":case"bottomRight":wt.offset[0]=Tt.arrowOffsetHorizontal+gt;break;case"leftTop":case"rightTop":wt.offset[1]=-Tt.arrowOffsetHorizontal-gt;break;case"leftBottom":case"rightBottom":wt.offset[1]=Tt.arrowOffsetHorizontal+gt;break}wt.overflow=getOverflowOptions($t,Tt,et,rt),ft&&(wt.htmlRegion="visibleFirst")}),xt}const genTooltipStyle=_e=>{const{componentCls:et,tooltipMaxWidth:rt,tooltipColor:st,tooltipBg:ct,tooltipBorderRadius:ut,zIndexPopup:ft,controlHeight:gt,boxShadowSecondary:xt,paddingSM:$t,paddingXS:_t}=_e;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",zIndex:ft,display:"block",width:"max-content",maxWidth:rt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ct,[`${et}-inner`]:{minWidth:gt,minHeight:gt,padding:`${unit$1(_e.calc($t).div(2).equal())} ${unit$1(_t)}`,color:st,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ct,borderRadius:ut,boxShadow:xt,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${et}-inner`]:{borderRadius:_e.min(ut,MAX_VERTICAL_CONTENT_RADIUS)}},[`${et}-content`]:{position:"relative"}}),genPresetColor$2(_e,(wt,Tt)=>{let{darkColor:Rt}=Tt;return{[`&${et}-${wt}`]:{[`${et}-inner`]:{backgroundColor:Rt},[`${et}-arrow`]:{"--antd-arrow-background-color":Rt}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(_e,"var(--antd-arrow-background-color)"),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow}}]},prepareComponentToken$r=_e=>Object.assign(Object.assign({zIndexPopup:_e.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:_e.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge$7(_e,{borderRadiusOuter:Math.min(_e.borderRadiusOuter,4)}))),useStyle$N=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",st=>{const{borderRadius:ct,colorTextLightSolid:ut,colorBgSpotlight:ft}=st,gt=merge$7(st,{tooltipMaxWidth:250,tooltipColor:ut,tooltipBorderRadius:ct,tooltipBg:ft});return[genTooltipStyle(gt),initZoomMotion(st,"zoom-big-fast")]},prepareComponentToken$r,{resetStyle:!1,injectStyle:et})(_e)},inverseColors=PresetColors.map(_e=>`${_e}-inverse`);function isPresetColor(_e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray$3(inverseColors),_toConsumableArray$3(PresetColors)).includes(_e):PresetColors.includes(_e)}function parseColor(_e,et){const rt=isPresetColor(et),st=classNames({[`${_e}-${et}`]:et&&rt}),ct={},ut={};return et&&!rt&&(ct.background=et,ut["--antd-arrow-background-color"]=et),{className:st,overlayStyle:ct,arrowStyle:ut}}const PurePanel$9=_e=>{const{prefixCls:et,className:rt,placement:st="top",title:ct,color:ut,overlayInnerStyle:ft}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("tooltip",et),[$t,_t,wt]=useStyle$N(xt),Tt=parseColor(xt,ut),Rt=Tt.arrowStyle,It=Object.assign(Object.assign({},ft),Tt.overlayStyle),At=classNames(_t,wt,xt,`${xt}-pure`,`${xt}-placement-${st}`,rt,Tt.className);return $t(reactExports.createElement("div",{className:At,style:Rt},reactExports.createElement("div",{className:`${xt}-arrow`}),reactExports.createElement(Popup$1,Object.assign({},_e,{className:_t,prefixCls:xt,overlayInnerStyle:It}),ct)))},PurePanel$a=PurePanel$9;var __rest$S=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{prefixCls:ct,openClassName:ut,getTooltipContainer:ft,overlayClassName:gt,color:xt,overlayInnerStyle:$t,children:_t,afterOpenChange:wt,afterVisibleChange:Tt,destroyTooltipOnHide:Rt,arrow:It=!0,title:At,overlay:jt,builtinPlacements:Nt,arrowPointAtCenter:kt=!1,autoAdjustOverflow:Ft=!0}=_e,Ht=!!It,[,Wt]=useToken$4(),{getPopupContainer:Vt,getPrefixCls:qt,direction:Gt}=reactExports.useContext(ConfigContext$1),Xt=devUseWarning(),Zt=reactExports.useRef(null),lr=()=>{var Qr;(Qr=Zt.current)===null||Qr===void 0||Qr.forceAlign()};reactExports.useImperativeHandle(et,()=>({forceAlign:lr,forcePopupAlign:()=>{Xt.deprecated(!1,"forcePopupAlign","forceAlign"),lr()}}));const[er,cr]=useMergedState(!1,{value:(rt=_e.open)!==null&&rt!==void 0?rt:_e.visible,defaultValue:(st=_e.defaultOpen)!==null&&st!==void 0?st:_e.defaultVisible}),ur=!At&&!jt&&At!==0,pr=Qr=>{var Zr,vn;cr(ur?!1:Qr),ur||((Zr=_e.onOpenChange)===null||Zr===void 0||Zr.call(_e,Qr),(vn=_e.onVisibleChange)===null||vn===void 0||vn.call(_e,Qr))},hr=reactExports.useMemo(()=>{var Qr,Zr;let vn=kt;return typeof It=="object"&&(vn=(Zr=(Qr=It.pointAtCenter)!==null&&Qr!==void 0?Qr:It.arrowPointAtCenter)!==null&&Zr!==void 0?Zr:kt),Nt||getPlacements({arrowPointAtCenter:vn,autoAdjustOverflow:Ft,arrowWidth:Ht?Wt.sizePopupArrow:0,borderRadius:Wt.borderRadius,offset:Wt.marginXXS,visibleFirst:!0})},[kt,It,Nt,Wt]),fr=reactExports.useMemo(()=>At===0?At:jt||At||"",[jt,At]),dr=reactExports.createElement(NoCompactStyle,null,typeof fr=="function"?fr():fr),{getPopupContainer:yr,placement:$r="top",mouseEnterDelay:Er=.1,mouseLeaveDelay:mr=.1,overlayStyle:Sr,rootClassName:Tr}=_e,jr=__rest$S(_e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Or=qt("tooltip",ct),_r=qt(),Cr=_e["data-popover-inject"];let Nr=er;!("open"in _e)&&!("visible"in _e)&&ur&&(Nr=!1);const Rr=isValidElement(_t)&&!isFragment(_t)?_t:reactExports.createElement("span",null,_t),Pr=Rr.props,Mr=!Pr.className||typeof Pr.className=="string"?classNames(Pr.className,ut||`${Or}-open`):Pr.className,[kr,Fr,wr]=useStyle$N(Or,!Cr),Br=parseColor(Or,xt),Dr=Br.arrowStyle,Xr=Object.assign(Object.assign({},$t),Br.overlayStyle),Kr=classNames(gt,{[`${Or}-rtl`]:Gt==="rtl"},Br.className,Tr,Fr,wr),[zr,qr]=useZIndex("Tooltip",jr.zIndex),pn=reactExports.createElement(Tooltip$3,Object.assign({},jr,{zIndex:zr,showArrow:Ht,placement:$r,mouseEnterDelay:Er,mouseLeaveDelay:mr,prefixCls:Or,overlayClassName:Kr,overlayStyle:Object.assign(Object.assign({},Dr),Sr),getTooltipContainer:yr||ft||Vt,ref:Zt,builtinPlacements:hr,overlay:dr,visible:Nr,onVisibleChange:pr,afterVisibleChange:wt??Tt,overlayInnerStyle:Xr,arrowContent:reactExports.createElement("span",{className:`${Or}-arrow-content`}),motion:{motionName:getTransitionName(_r,"zoom-big-fast",_e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Rt}),Nr?cloneElement(Rr,{className:Mr}):Rr);return kr(reactExports.createElement(zIndexContext$1.Provider,{value:qr},pn))});Tooltip._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$a;const Tooltip$1=Tooltip,genBaseStyle$a=_e=>{const{componentCls:et,popoverColor:rt,titleMinWidth:st,fontWeightStrong:ct,innerPadding:ut,boxShadowSecondary:ft,colorTextHeading:gt,borderRadiusLG:xt,zIndexPopup:$t,titleMarginBottom:_t,colorBgElevated:wt,popoverBg:Tt,titleBorderBottom:Rt,innerContentPadding:It,titlePadding:At}=_e;return[{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:$t,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${et}-content`]:{position:"relative"},[`${et}-inner`]:{backgroundColor:Tt,backgroundClip:"padding-box",borderRadius:xt,boxShadow:ft,padding:ut},[`${et}-title`]:{minWidth:st,marginBottom:_t,color:gt,fontWeight:ct,borderBottom:Rt,padding:At},[`${et}-inner-content`]:{color:rt,padding:It}})},getArrowStyle(_e,"var(--antd-arrow-background-color)"),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow,display:"inline-block",[`${et}-content`]:{display:"inline-block"}}}]},genColorStyle=_e=>{const{componentCls:et}=_e;return{[et]:PresetColors.map(rt=>{const st=_e[`${rt}6`];return{[`&${et}-${rt}`]:{"--antd-arrow-background-color":st,[`${et}-inner`]:{backgroundColor:st},[`${et}-arrow`]:{background:"transparent"}}}})}},prepareComponentToken$q=_e=>{const{lineWidth:et,controlHeight:rt,fontHeight:st,padding:ct,wireframe:ut,zIndexPopupBase:ft,borderRadiusLG:gt,marginXS:xt,lineType:$t,colorSplit:_t,paddingSM:wt}=_e,Tt=rt-st,Rt=Tt/2,It=Tt/2-et,At=ct;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ft+30},getArrowToken(_e)),getArrowOffsetToken({contentRadius:gt,limitVerticalRadius:!0})),{innerPadding:ut?0:12,titleMarginBottom:ut?0:xt,titlePadding:ut?`${Rt}px ${At}px ${It}px`:0,titleBorderBottom:ut?`${et}px ${$t} ${_t}`:"none",innerContentPadding:ut?`${wt}px ${At}px`:0})},useStyle$M=genStyleHooks("Popover",_e=>{const{colorBgElevated:et,colorText:rt}=_e,st=merge$7(_e,{popoverBg:et,popoverColor:rt});return[genBaseStyle$a(st),genColorStyle(st),initZoomMotion(st,"zoom-big")]},prepareComponentToken$q,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var __rest$R=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct!et&&!rt?null:reactExports.createElement(reactExports.Fragment,null,et&&reactExports.createElement("div",{className:`${_e}-title`},getRenderPropValue(et)),reactExports.createElement("div",{className:`${_e}-inner-content`},getRenderPropValue(rt))),RawPurePanel=_e=>{const{hashId:et,prefixCls:rt,className:st,style:ct,placement:ut="top",title:ft,content:gt,children:xt}=_e;return reactExports.createElement("div",{className:classNames(et,rt,`${rt}-pure`,`${rt}-placement-${ut}`,st),style:ct},reactExports.createElement("div",{className:`${rt}-arrow`}),reactExports.createElement(Popup$1,Object.assign({},_e,{className:et,prefixCls:rt}),xt||getOverlay(rt,ft,gt)))},PurePanel$8=_e=>{const{prefixCls:et,className:rt}=_e,st=__rest$R(_e,["prefixCls","className"]),{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("popover",et),[ft,gt,xt]=useStyle$M(ut);return ft(reactExports.createElement(RawPurePanel,Object.assign({},st,{prefixCls:ut,hashId:gt,className:classNames(rt,xt)})))},PopoverPurePanel=PurePanel$8;var __rest$Q=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{title:et,content:rt,prefixCls:st}=_e;return reactExports.createElement(reactExports.Fragment,null,et&&reactExports.createElement("div",{className:`${st}-title`},getRenderPropValue(et)),reactExports.createElement("div",{className:`${st}-inner-content`},getRenderPropValue(rt)))},Popover$1=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,title:st,content:ct,overlayClassName:ut,placement:ft="top",trigger:gt="hover",mouseEnterDelay:xt=.1,mouseLeaveDelay:$t=.1,overlayStyle:_t={}}=_e,wt=__rest$Q(_e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Tt}=reactExports.useContext(ConfigContext$1),Rt=Tt("popover",rt),[It,At,jt]=useStyle$M(Rt),Nt=Tt(),kt=classNames(ut,At,jt);return It(reactExports.createElement(Tooltip$1,Object.assign({placement:ft,trigger:gt,mouseEnterDelay:xt,mouseLeaveDelay:$t,overlayStyle:_t},wt,{prefixCls:Rt,overlayClassName:kt,ref:et,overlay:st||ct?reactExports.createElement(Overlay$2,{prefixCls:Rt,title:st,content:ct}):null,transitionName:getTransitionName(Nt,"zoom-big",wt.transitionName),"data-popover-inject":!0})))});Popover$1._InternalPanelDoNotUseOrYouWillBeFired=PopoverPurePanel;const Popover$2=Popover$1,AvatarContextProvider=_e=>{const{size:et,shape:rt}=reactExports.useContext(AvatarContext$1),st=reactExports.useMemo(()=>({size:_e.size||et,shape:_e.shape||rt}),[_e.size,_e.shape,et,rt]);return reactExports.createElement(AvatarContext$1.Provider,{value:st},_e.children)},Group$7=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct,rootClassName:ut,style:ft,maxCount:gt,maxStyle:xt,size:$t,shape:_t,maxPopoverPlacement:wt="top",maxPopoverTrigger:Tt="hover",children:Rt}=_e,It=et("avatar",st),At=`${It}-group`,jt=useCSSVarCls(It),[Nt,kt,Ft]=useStyle$O(It,jt),Ht=classNames(At,{[`${At}-rtl`]:rt==="rtl"},Ft,jt,ct,ut,kt),Wt=toArray$d(Rt).map((qt,Gt)=>cloneElement(qt,{key:`avatar-key-${Gt}`})),Vt=Wt.length;if(gt&>{const{componentCls:et,iconCls:rt,antCls:st,badgeShadowSize:ct,motionDurationSlow:ut,textFontSize:ft,textFontSizeSM:gt,statusSize:xt,dotSize:$t,textFontWeight:_t,indicatorHeight:wt,indicatorHeightSM:Tt,marginXS:Rt,calc:It}=_e,At=`${st}-scroll-number`,jt=genPresetColor$2(_e,(Nt,kt)=>{let{darkColor:Ft}=kt;return{[`&${et} ${et}-color-${Nt}`]:{background:Ft,[`&:not(${et}-count)`]:{color:Ft}}}});return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${et}-count`]:{zIndex:_e.indicatorZIndex,minWidth:wt,height:wt,color:_e.badgeTextColor,fontWeight:_t,fontSize:ft,lineHeight:unit$1(wt),whiteSpace:"nowrap",textAlign:"center",background:_e.badgeColor,borderRadius:It(wt).div(2).equal(),boxShadow:`0 0 0 ${unit$1(ct)} ${_e.badgeShadowColor}`,transition:`background ${_e.motionDurationMid}`,a:{color:_e.badgeTextColor},"a:hover":{color:_e.badgeTextColor},"a:hover &":{background:_e.badgeColorHover}},[`${et}-count-sm`]:{minWidth:Tt,height:Tt,fontSize:gt,lineHeight:unit$1(Tt),borderRadius:It(Tt).div(2).equal()},[`${et}-multiple-words`]:{padding:`0 ${unit$1(_e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${et}-dot`]:{zIndex:_e.indicatorZIndex,width:$t,minWidth:$t,height:$t,background:_e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit$1(ct)} ${_e.badgeShadowColor}`},[`${et}-dot${At}`]:{transition:`background ${ut}`},[`${et}-count, ${et}-dot, ${At}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${rt}-spin`]:{animationName:antBadgeLoadingCircle,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${et}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${et}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:xt,height:xt,verticalAlign:"middle",borderRadius:"50%"},[`${et}-status-success`]:{backgroundColor:_e.colorSuccess},[`${et}-status-processing`]:{overflow:"visible",color:_e.colorPrimary,backgroundColor:_e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ct,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:antStatusProcessing,animationDuration:_e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${et}-status-default`]:{backgroundColor:_e.colorTextPlaceholder},[`${et}-status-error`]:{backgroundColor:_e.colorError},[`${et}-status-warning`]:{backgroundColor:_e.colorWarning},[`${et}-status-text`]:{marginInlineStart:Rt,color:_e.colorText,fontSize:_e.fontSize}}}),jt),{[`${et}-zoom-appear, ${et}-zoom-enter`]:{animationName:antZoomBadgeIn,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack,animationFillMode:"both"},[`${et}-zoom-leave`]:{animationName:antZoomBadgeOut,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack,animationFillMode:"both"},[`&${et}-not-a-wrapper`]:{[`${et}-zoom-appear, ${et}-zoom-enter`]:{animationName:antNoWrapperZoomBadgeIn,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack},[`${et}-zoom-leave`]:{animationName:antNoWrapperZoomBadgeOut,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack},[`&:not(${et}-status)`]:{verticalAlign:"middle"},[`${At}-custom-component, ${et}-count`]:{transform:"none"},[`${At}-custom-component, ${At}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${At}`]:{overflow:"hidden",[`${At}-only`]:{position:"relative",display:"inline-block",height:wt,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${At}-only-unit`]:{height:wt,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${At}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${et}-count, ${et}-dot, ${At}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},prepareToken$1=_e=>{const{fontHeight:et,lineWidth:rt,marginXS:st,colorBorderBg:ct}=_e,ut=et,ft=rt,gt=_e.colorBgContainer,xt=_e.colorError,$t=_e.colorErrorHover;return merge$7(_e,{badgeFontHeight:ut,badgeShadowSize:ft,badgeTextColor:gt,badgeColor:xt,badgeColorHover:$t,badgeShadowColor:ct,badgeProcessingDuration:"1.2s",badgeRibbonOffset:st,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},prepareComponentToken$p=_e=>{const{fontSize:et,lineHeight:rt,fontSizeSM:st,lineWidth:ct}=_e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(et*rt)-2*ct,indicatorHeightSM:et,dotSize:st/2,textFontSize:st,textFontSizeSM:st,textFontWeight:"normal",statusSize:st/2}},useStyle$L=genStyleHooks("Badge",_e=>{const et=prepareToken$1(_e);return genSharedBadgeStyle(et)},prepareComponentToken$p),genRibbonStyle=_e=>{const{antCls:et,badgeFontHeight:rt,marginXS:st,badgeRibbonOffset:ct,calc:ut}=_e,ft=`${et}-ribbon`,gt=`${et}-ribbon-wrapper`,xt=genPresetColor$2(_e,($t,_t)=>{let{darkColor:wt}=_t;return{[`&${ft}-color-${$t}`]:{background:wt,color:wt}}});return{[`${gt}`]:{position:"relative"},[`${ft}`]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:st,padding:`0 ${unit$1(_e.paddingXS)}`,color:_e.colorPrimary,lineHeight:unit$1(rt),whiteSpace:"nowrap",backgroundColor:_e.colorPrimary,borderRadius:_e.borderRadiusSM,[`${ft}-text`]:{color:_e.colorTextLightSolid},[`${ft}-corner`]:{position:"absolute",top:"100%",width:ct,height:ct,color:"currentcolor",border:`${unit$1(ut(ct).div(2).equal())} solid`,transform:_e.badgeRibbonCornerTransform,transformOrigin:"top",filter:_e.badgeRibbonCornerFilter}}),xt),{[`&${ft}-placement-end`]:{insetInlineEnd:ut(ct).mul(-1).equal(),borderEndEndRadius:0,[`${ft}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${ft}-placement-start`]:{insetInlineStart:ut(ct).mul(-1).equal(),borderEndStartRadius:0,[`${ft}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},useStyle$K=genStyleHooks(["Badge","Ribbon"],_e=>{const et=prepareToken$1(_e);return genRibbonStyle(et)},prepareComponentToken$p),Ribbon=_e=>{const{className:et,prefixCls:rt,style:st,color:ct,children:ut,text:ft,placement:gt="end",rootClassName:xt}=_e,{getPrefixCls:$t,direction:_t}=reactExports.useContext(ConfigContext$1),wt=$t("ribbon",rt),Tt=`${wt}-wrapper`,[Rt,It,At]=useStyle$K(wt,Tt),jt=isPresetColor(ct,!1),Nt=classNames(wt,`${wt}-placement-${gt}`,{[`${wt}-rtl`]:_t==="rtl",[`${wt}-color-${ct}`]:jt},et),kt={},Ft={};return ct&&!jt&&(kt.background=ct,Ft.color=ct),Rt(reactExports.createElement("div",{className:classNames(Tt,xt,It,At)},ut,reactExports.createElement("div",{className:classNames(Nt,It),style:Object.assign(Object.assign({},kt),st)},reactExports.createElement("span",{className:`${wt}-text`},ft),reactExports.createElement("div",{className:`${wt}-corner`,style:Ft}))))},Ribbon$1=Ribbon;function UnitNumber(_e){let{prefixCls:et,value:rt,current:st,offset:ct=0}=_e,ut;return ct&&(ut={position:"absolute",top:`${ct}00%`,left:0}),reactExports.createElement("span",{style:ut,className:classNames(`${et}-only-unit`,{current:st})},rt)}function getOffset$3(_e,et,rt){let st=_e,ct=0;for(;(st+10)%10!==et;)st+=rt,ct+=rt;return ct}function SingleNumber(_e){const{prefixCls:et,count:rt,value:st}=_e,ct=Number(st),ut=Math.abs(rt),[ft,gt]=reactExports.useState(ct),[xt,$t]=reactExports.useState(ut),_t=()=>{gt(ct),$t(ut)};reactExports.useEffect(()=>{const Rt=setTimeout(()=>{_t()},1e3);return()=>{clearTimeout(Rt)}},[ct]);let wt,Tt;if(ft===ct||Number.isNaN(ct)||Number.isNaN(ft))wt=[reactExports.createElement(UnitNumber,Object.assign({},_e,{key:ct,current:!0}))],Tt={transition:"none"};else{wt=[];const Rt=ct+10,It=[];for(let Nt=ct;Nt<=Rt;Nt+=1)It.push(Nt);const At=It.findIndex(Nt=>Nt%10===ft);wt=It.map((Nt,kt)=>{const Ft=Nt%10;return reactExports.createElement(UnitNumber,Object.assign({},_e,{key:Nt,value:Ft,offset:kt-At,current:kt===At}))});const jt=xt{const{prefixCls:rt,count:st,className:ct,motionClassName:ut,style:ft,title:gt,show:xt,component:$t="sup",children:_t}=_e,wt=__rest$P(_e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:Tt}=reactExports.useContext(ConfigContext$1),Rt=Tt("scroll-number",rt),It=Object.assign(Object.assign({},wt),{"data-show":xt,style:ft,className:classNames(Rt,ct,ut),title:gt});let At=st;if(st&&Number(st)%1===0){const jt=String(st).split("");At=reactExports.createElement("bdi",null,jt.map((Nt,kt)=>reactExports.createElement(SingleNumber,{prefixCls:Rt,count:Number(st),value:Nt,key:jt.length-kt})))}return ft&&ft.borderColor&&(It.style=Object.assign(Object.assign({},ft),{boxShadow:`0 0 0 1px ${ft.borderColor} inset`})),_t?cloneElement(_t,jt=>({className:classNames(`${Rt}-custom-component`,jt==null?void 0:jt.className,ut)})):reactExports.createElement($t,Object.assign({},It,{ref:et}),At)}),ScrollNumber$1=ScrollNumber;var __rest$O=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st,ct,ut,ft;const{prefixCls:gt,scrollNumberPrefixCls:xt,children:$t,status:_t,text:wt,color:Tt,count:Rt=null,overflowCount:It=99,dot:At=!1,size:jt="default",title:Nt,offset:kt,style:Ft,className:Ht,rootClassName:Wt,classNames:Vt,styles:qt,showZero:Gt=!1}=_e,Xt=__rest$O(_e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:Zt,direction:lr,badge:er}=reactExports.useContext(ConfigContext$1),cr=Zt("badge",gt),[ur,pr,hr]=useStyle$L(cr),fr=Rt>It?`${It}+`:Rt,dr=fr==="0"||fr===0,yr=Rt===null||dr&&!Gt,$r=(_t!=null||Tt!=null)&&yr,Er=At&&!dr,mr=Er?"":fr,Sr=reactExports.useMemo(()=>(mr==null||mr===""||dr&&!Gt)&&!Er,[mr,dr,Gt,Er]),Tr=reactExports.useRef(Rt);Sr||(Tr.current=Rt);const jr=Tr.current,Or=reactExports.useRef(mr);Sr||(Or.current=mr);const _r=Or.current,Cr=reactExports.useRef(Er);Sr||(Cr.current=Er);const Nr=reactExports.useMemo(()=>{if(!kt)return Object.assign(Object.assign({},er==null?void 0:er.style),Ft);const Dr={marginTop:kt[1]};return lr==="rtl"?Dr.left=parseInt(kt[0],10):Dr.right=-parseInt(kt[0],10),Object.assign(Object.assign(Object.assign({},Dr),er==null?void 0:er.style),Ft)},[lr,kt,Ft,er==null?void 0:er.style]),Rr=Nt??(typeof jr=="string"||typeof jr=="number"?jr:void 0),Pr=Sr||!wt?null:reactExports.createElement("span",{className:`${cr}-status-text`},wt),Mr=!jr||typeof jr!="object"?void 0:cloneElement(jr,Dr=>({style:Object.assign(Object.assign({},Nr),Dr.style)})),kr=isPresetColor(Tt,!1),Fr=classNames(Vt==null?void 0:Vt.indicator,(rt=er==null?void 0:er.classNames)===null||rt===void 0?void 0:rt.indicator,{[`${cr}-status-dot`]:$r,[`${cr}-status-${_t}`]:!!_t,[`${cr}-color-${Tt}`]:kr}),wr={};Tt&&!kr&&(wr.color=Tt,wr.background=Tt);const Br=classNames(cr,{[`${cr}-status`]:$r,[`${cr}-not-a-wrapper`]:!$t,[`${cr}-rtl`]:lr==="rtl"},Ht,Wt,er==null?void 0:er.className,(st=er==null?void 0:er.classNames)===null||st===void 0?void 0:st.root,Vt==null?void 0:Vt.root,pr,hr);if(!$t&&$r){const Dr=Nr.color;return ur(reactExports.createElement("span",Object.assign({},Xt,{className:Br,style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.root),(ct=er==null?void 0:er.styles)===null||ct===void 0?void 0:ct.root),Nr)}),reactExports.createElement("span",{className:Fr,style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.indicator),(ut=er==null?void 0:er.styles)===null||ut===void 0?void 0:ut.indicator),wr)}),wt&&reactExports.createElement("span",{style:{color:Dr},className:`${cr}-status-text`},wt)))}return ur(reactExports.createElement("span",Object.assign({ref:et},Xt,{className:Br,style:Object.assign(Object.assign({},(ft=er==null?void 0:er.styles)===null||ft===void 0?void 0:ft.root),qt==null?void 0:qt.root)}),$t,reactExports.createElement(CSSMotion,{visible:!Sr,motionName:`${cr}-zoom`,motionAppear:!1,motionDeadline:1e3},Dr=>{let{className:Xr,ref:Kr}=Dr;var zr,qr;const pn=Zt("scroll-number",xt),Qr=Cr.current,Zr=classNames(Vt==null?void 0:Vt.indicator,(zr=er==null?void 0:er.classNames)===null||zr===void 0?void 0:zr.indicator,{[`${cr}-dot`]:Qr,[`${cr}-count`]:!Qr,[`${cr}-count-sm`]:jt==="small",[`${cr}-multiple-words`]:!Qr&&_r&&_r.toString().length>1,[`${cr}-status-${_t}`]:!!_t,[`${cr}-color-${Tt}`]:kr});let vn=Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.indicator),(qr=er==null?void 0:er.styles)===null||qr===void 0?void 0:qr.indicator),Nr);return Tt&&!kr&&(vn=vn||{},vn.background=Tt),reactExports.createElement(ScrollNumber$1,{prefixCls:pn,show:!Sr,motionClassName:Xr,className:Zr,count:_r,title:Rr,style:vn,key:"scrollNumber",ref:Kr},Mr)}),Pr))},Badge=reactExports.forwardRef(InternalBadge);Badge.Ribbon=Ribbon$1;const Badge$1=Badge;var RightOutlined$7={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"};const RightOutlinedSvg=RightOutlined$7;var RightOutlined$5=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:RightOutlinedSvg}))};const RightOutlined$6=reactExports.forwardRef(RightOutlined$5);var IdContext=reactExports.createContext(null);function getMenuId(_e,et){return _e===void 0?null:"".concat(_e,"-").concat(et)}function useMenuId(_e){var et=reactExports.useContext(IdContext);return getMenuId(et,_e)}var _excluded$1w=["children","locked"],MenuContext$2=reactExports.createContext(null);function mergeProps(_e,et){var rt=_objectSpread2({},_e);return Object.keys(et).forEach(function(st){var ct=et[st];ct!==void 0&&(rt[st]=ct)}),rt}function InheritableContextProvider(_e){var et=_e.children,rt=_e.locked,st=_objectWithoutProperties$2(_e,_excluded$1w),ct=reactExports.useContext(MenuContext$2),ut=useMemo$1(function(){return mergeProps(ct,st)},[ct,st],function(ft,gt){return!rt&&(ft[0]!==gt[0]||!isEqual$1(ft[1],gt[1],!0))});return reactExports.createElement(MenuContext$2.Provider,{value:ut},et)}var EmptyList=[],PathRegisterContext=reactExports.createContext(null);function useMeasure(){return reactExports.useContext(PathRegisterContext)}var PathTrackerContext=reactExports.createContext(EmptyList);function useFullPath(_e){var et=reactExports.useContext(PathTrackerContext);return reactExports.useMemo(function(){return _e!==void 0?[].concat(_toConsumableArray$3(et),[_e]):et},[et,_e])}var PathUserContext=reactExports.createContext(null),PrivateContext=reactExports.createContext({});function focusable(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isVisible$1(_e)){var rt=_e.nodeName.toLowerCase(),st=["input","select","textarea","button"].includes(rt)||_e.isContentEditable||rt==="a"&&!!_e.getAttribute("href"),ct=_e.getAttribute("tabindex"),ut=Number(ct),ft=null;return ct&&!Number.isNaN(ut)?ft=ut:st&&ft===null&&(ft=0),st&&_e.disabled&&(ft=null),ft!==null&&(ft>=0||et&&ft<0)}return!1}function getFocusNodeList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=_toConsumableArray$3(_e.querySelectorAll("*")).filter(function(st){return focusable(st,et)});return focusable(_e,et)&&rt.unshift(_e),rt}var LEFT=KeyCode.LEFT,RIGHT=KeyCode.RIGHT,UP=KeyCode.UP,DOWN=KeyCode.DOWN,ENTER$1=KeyCode.ENTER,ESC$1=KeyCode.ESC,HOME=KeyCode.HOME,END=KeyCode.END,ArrowKeys=[UP,DOWN,LEFT,RIGHT];function getOffset$2(_e,et,rt,st){var ct,ut,ft,gt,xt="prev",$t="next",_t="children",wt="parent";if(_e==="inline"&&st===ENTER$1)return{inlineTrigger:!0};var Tt=(ct={},_defineProperty$c(ct,UP,xt),_defineProperty$c(ct,DOWN,$t),ct),Rt=(ut={},_defineProperty$c(ut,LEFT,rt?$t:xt),_defineProperty$c(ut,RIGHT,rt?xt:$t),_defineProperty$c(ut,DOWN,_t),_defineProperty$c(ut,ENTER$1,_t),ut),It=(ft={},_defineProperty$c(ft,UP,xt),_defineProperty$c(ft,DOWN,$t),_defineProperty$c(ft,ENTER$1,_t),_defineProperty$c(ft,ESC$1,wt),_defineProperty$c(ft,LEFT,rt?_t:wt),_defineProperty$c(ft,RIGHT,rt?wt:_t),ft),At={inline:Tt,horizontal:Rt,vertical:It,inlineSub:Tt,horizontalSub:It,verticalSub:It},jt=(gt=At["".concat(_e).concat(et?"":"Sub")])===null||gt===void 0?void 0:gt[st];switch(jt){case xt:return{offset:-1,sibling:!0};case $t:return{offset:1,sibling:!0};case wt:return{offset:-1,sibling:!1};case _t:return{offset:1,sibling:!1};default:return null}}function findContainerUL(_e){for(var et=_e;et;){if(et.getAttribute("data-menu-list"))return et;et=et.parentElement}return null}function getFocusElement(_e,et){for(var rt=_e||document.activeElement;rt;){if(et.has(rt))return rt;rt=rt.parentElement}return null}function getFocusableElements(_e,et){var rt=getFocusNodeList(_e,!0);return rt.filter(function(st){return et.has(st)})}function getNextFocusElement(_e,et,rt){var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!_e)return null;var ct=getFocusableElements(_e,et),ut=ct.length,ft=ct.findIndex(function(gt){return rt===gt});return st<0?ft===-1?ft=ut-1:ft-=1:st>0&&(ft+=1),ft=(ft+ut)%ut,ct[ft]}var refreshElements=function(et,rt){var st=new Set,ct=new Map,ut=new Map;return et.forEach(function(ft){var gt=document.querySelector("[data-menu-id='".concat(getMenuId(rt,ft),"']"));gt&&(st.add(gt),ut.set(gt,ft),ct.set(ft,gt))}),{elements:st,key2element:ct,element2key:ut}};function useAccessibility$1(_e,et,rt,st,ct,ut,ft,gt,xt,$t){var _t=reactExports.useRef(),wt=reactExports.useRef();wt.current=et;var Tt=function(){wrapperRaf.cancel(_t.current)};return reactExports.useEffect(function(){return function(){Tt()}},[]),function(Rt){var It=Rt.which;if([].concat(ArrowKeys,[ENTER$1,ESC$1,HOME,END]).includes(It)){var At=ut(),jt=refreshElements(At,st),Nt=jt,kt=Nt.elements,Ft=Nt.key2element,Ht=Nt.element2key,Wt=Ft.get(et),Vt=getFocusElement(Wt,kt),qt=Ht.get(Vt),Gt=getOffset$2(_e,ft(qt,!0).length===1,rt,It);if(!Gt&&It!==HOME&&It!==END)return;(ArrowKeys.includes(It)||[HOME,END].includes(It))&&Rt.preventDefault();var Xt=function(fr){if(fr){var dr=fr,yr=fr.querySelector("a");yr!=null&&yr.getAttribute("href")&&(dr=yr);var $r=Ht.get(fr);gt($r),Tt(),_t.current=wrapperRaf(function(){wt.current===$r&&dr.focus()})}};if([HOME,END].includes(It)||Gt.sibling||!Vt){var Zt;!Vt||_e==="inline"?Zt=ct.current:Zt=findContainerUL(Vt);var lr,er=getFocusableElements(Zt,kt);It===HOME?lr=er[0]:It===END?lr=er[er.length-1]:lr=getNextFocusElement(Zt,kt,Vt,Gt.offset),Xt(lr)}else if(Gt.inlineTrigger)xt(qt);else if(Gt.offset>0)xt(qt,!0),Tt(),_t.current=wrapperRaf(function(){jt=refreshElements(At,st);var hr=Vt.getAttribute("aria-controls"),fr=document.getElementById(hr),dr=getNextFocusElement(fr,jt.elements);Xt(dr)},5);else if(Gt.offset<0){var cr=ft(qt,!0),ur=cr[cr.length-2],pr=Ft.get(ur);xt(ur,!1),Xt(pr)}}$t==null||$t(Rt)}}function nextSlice(_e){Promise.resolve().then(_e)}var PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function(et){return et.join(PATH_SPLIT)},getPathKeys=function(et){return et.split(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more";function useKeyRecords(){var _e=reactExports.useState({}),et=_slicedToArray$3(_e,2),rt=et[1],st=reactExports.useRef(new Map),ct=reactExports.useRef(new Map),ut=reactExports.useState([]),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1],$t=reactExports.useRef(0),_t=reactExports.useRef(!1),wt=function(){_t.current||rt({})},Tt=reactExports.useCallback(function(Ft,Ht){var Wt=getPathStr(Ht);ct.current.set(Wt,Ft),st.current.set(Ft,Wt),$t.current+=1;var Vt=$t.current;nextSlice(function(){Vt===$t.current&&wt()})},[]),Rt=reactExports.useCallback(function(Ft,Ht){var Wt=getPathStr(Ht);ct.current.delete(Wt),st.current.delete(Ft)},[]),It=reactExports.useCallback(function(Ft){xt(Ft)},[]),At=reactExports.useCallback(function(Ft,Ht){var Wt=st.current.get(Ft)||"",Vt=getPathKeys(Wt);return Ht&>.includes(Vt[0])&&Vt.unshift(OVERFLOW_KEY),Vt},[gt]),jt=reactExports.useCallback(function(Ft,Ht){return Ft.some(function(Wt){var Vt=At(Wt,!0);return Vt.includes(Ht)})},[At]),Nt=function(){var Ht=_toConsumableArray$3(st.current.keys());return gt.length&&Ht.push(OVERFLOW_KEY),Ht},kt=reactExports.useCallback(function(Ft){var Ht="".concat(st.current.get(Ft)).concat(PATH_SPLIT),Wt=new Set;return _toConsumableArray$3(ct.current.keys()).forEach(function(Vt){Vt.startsWith(Ht)&&Wt.add(ct.current.get(Vt))}),Wt},[]);return reactExports.useEffect(function(){return function(){_t.current=!0}},[]),{registerPath:Tt,unregisterPath:Rt,refreshOverflowKeys:It,isSubPathKey:jt,getKeyPath:At,getKeys:Nt,getSubPathKeys:kt}}function useMemoCallback(_e){var et=reactExports.useRef(_e);et.current=_e;var rt=reactExports.useCallback(function(){for(var st,ct=arguments.length,ut=new Array(ct),ft=0;ft1&&(kt.motionAppear=!1);var Ft=kt.onVisibleChanged;return kt.onVisibleChanged=function(Ht){return!Tt.current&&!Ht&&jt(!0),Ft==null?void 0:Ft(Ht)},At?null:reactExports.createElement(InheritableContextProvider,{mode:ut,locked:!Tt.current},reactExports.createElement(CSSMotion,_extends$b({visible:Nt},kt,{forceRender:xt,removeOnLeave:!1,leavedClassName:"".concat(gt,"-hidden")}),function(Ht){var Wt=Ht.className,Vt=Ht.style;return reactExports.createElement(SubMenuList,{id:et,className:Wt,style:Vt},ct)}))}var _excluded$1s=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_excluded2$o=["active"],InternalSubMenu=function(et){var rt,st=et.style,ct=et.className,ut=et.title,ft=et.eventKey;et.warnKey;var gt=et.disabled,xt=et.internalPopupClose,$t=et.children,_t=et.itemIcon,wt=et.expandIcon,Tt=et.popupClassName,Rt=et.popupOffset,It=et.popupStyle,At=et.onClick,jt=et.onMouseEnter,Nt=et.onMouseLeave,kt=et.onTitleClick,Ft=et.onTitleMouseEnter,Ht=et.onTitleMouseLeave,Wt=_objectWithoutProperties$2(et,_excluded$1s),Vt=useMenuId(ft),qt=reactExports.useContext(MenuContext$2),Gt=qt.prefixCls,Xt=qt.mode,Zt=qt.openKeys,lr=qt.disabled,er=qt.overflowDisabled,cr=qt.activeKey,ur=qt.selectedKeys,pr=qt.itemIcon,hr=qt.expandIcon,fr=qt.onItemClick,dr=qt.onOpenChange,yr=qt.onActive,$r=reactExports.useContext(PrivateContext),Er=$r._internalRenderSubMenuItem,mr=reactExports.useContext(PathUserContext),Sr=mr.isSubPathKey,Tr=useFullPath(),jr="".concat(Gt,"-submenu"),Or=lr||gt,_r=reactExports.useRef(),Cr=reactExports.useRef(),Nr=_t??pr,Rr=wt??hr,Pr=Zt.includes(ft),Mr=!er&&Pr,kr=Sr(ur,ft),Fr=useActive$1(ft,Or,Ft,Ht),wr=Fr.active,Br=_objectWithoutProperties$2(Fr,_excluded2$o),Dr=reactExports.useState(!1),Xr=_slicedToArray$3(Dr,2),Kr=Xr[0],zr=Xr[1],qr=function(En){Or||zr(En)},pn=function(En){qr(!0),jt==null||jt({key:ft,domEvent:En})},Qr=function(En){qr(!1),Nt==null||Nt({key:ft,domEvent:En})},Zr=reactExports.useMemo(function(){return wr||(Xt!=="inline"?Kr||Sr([cr],ft):!1)},[Xt,wr,cr,Kr,ft,Sr]),vn=useDirectionStyle(Tr.length),vr=function(En){Or||(kt==null||kt({key:ft,domEvent:En}),Xt==="inline"&&dr(ft,!Pr))},gr=useMemoCallback(function(hn){At==null||At(warnItemProp(hn)),fr(hn)}),br=function(En){Xt!=="inline"&&dr(ft,En)},Hr=function(){yr(ft)},Vr=Vt&&"".concat(Vt,"-popup"),Wr=reactExports.createElement("div",_extends$b({role:"menuitem",style:vn,className:"".concat(jr,"-title"),tabIndex:Or?null:-1,ref:_r,title:typeof ut=="string"?ut:null,"data-menu-id":er&&Vt?null:Vt,"aria-expanded":Mr,"aria-haspopup":!0,"aria-controls":Vr,"aria-disabled":Or,onClick:vr,onFocus:Hr},Br),ut,reactExports.createElement(Icon$a,{icon:Xt!=="horizontal"?Rr:void 0,props:_objectSpread2(_objectSpread2({},et),{},{isOpen:Mr,isSubMenu:!0})},reactExports.createElement("i",{className:"".concat(jr,"-arrow")}))),Gr=reactExports.useRef(Xt);if(Xt!=="inline"&&Tr.length>1?Gr.current="vertical":Gr.current=Xt,!er){var cn=Gr.current;Wr=reactExports.createElement(PopupTrigger,{mode:cn,prefixCls:jr,visible:!xt&&Mr&&Xt!=="inline",popupClassName:Tt,popupOffset:Rt,popupStyle:It,popup:reactExports.createElement(InheritableContextProvider,{mode:cn==="horizontal"?"vertical":cn},reactExports.createElement(SubMenuList,{id:Vr,ref:Cr},$t)),disabled:Or,onVisibleChange:br},Wr)}var mn=reactExports.createElement(ForwardOverflow.Item,_extends$b({role:"none"},Wt,{component:"li",style:st,className:classNames(jr,"".concat(jr,"-").concat(Xt),ct,(rt={},_defineProperty$c(rt,"".concat(jr,"-open"),Mr),_defineProperty$c(rt,"".concat(jr,"-active"),Zr),_defineProperty$c(rt,"".concat(jr,"-selected"),kr),_defineProperty$c(rt,"".concat(jr,"-disabled"),Or),rt)),onMouseEnter:pn,onMouseLeave:Qr}),Wr,!er&&reactExports.createElement(InlineSubMenuList,{id:Vr,open:Mr,keyPath:Tr},$t));return Er&&(mn=Er(mn,et,{selected:kr,active:Zr,open:Mr,disabled:Or})),reactExports.createElement(InheritableContextProvider,{onItemClick:gr,mode:Xt==="horizontal"?"vertical":Xt,itemIcon:Nr,expandIcon:Rr},mn)};function SubMenu$2(_e){var et=_e.eventKey,rt=_e.children,st=useFullPath(et),ct=parseChildren(rt,st),ut=useMeasure();reactExports.useEffect(function(){if(ut)return ut.registerPath(et,st),function(){ut.unregisterPath(et,st)}},[st]);var ft;return ut?ft=ct:ft=reactExports.createElement(InternalSubMenu,_e,ct),reactExports.createElement(PathTrackerContext.Provider,{value:st},ft)}var _excluded$1r=["className","title","eventKey","children"],_excluded2$n=["children"],InternalMenuItemGroup=function(et){var rt=et.className,st=et.title;et.eventKey;var ct=et.children,ut=_objectWithoutProperties$2(et,_excluded$1r),ft=reactExports.useContext(MenuContext$2),gt=ft.prefixCls,xt="".concat(gt,"-item-group");return reactExports.createElement("li",_extends$b({role:"presentation"},ut,{onClick:function(_t){return _t.stopPropagation()},className:classNames(xt,rt)}),reactExports.createElement("div",{role:"presentation",className:"".concat(xt,"-title"),title:typeof st=="string"?st:void 0},st),reactExports.createElement("ul",{role:"group",className:"".concat(xt,"-list")},ct))};function MenuItemGroup(_e){var et=_e.children,rt=_objectWithoutProperties$2(_e,_excluded2$n),st=useFullPath(rt.eventKey),ct=parseChildren(et,st),ut=useMeasure();return ut?ct:reactExports.createElement(InternalMenuItemGroup,omit$2(rt,["warnKey"]),ct)}function Divider$2(_e){var et=_e.className,rt=_e.style,st=reactExports.useContext(MenuContext$2),ct=st.prefixCls,ut=useMeasure();return ut?null:reactExports.createElement("li",{role:"separator",className:classNames("".concat(ct,"-item-divider"),et),style:rt})}var _excluded$1q=["label","children","key","type"];function convertItemsToNodes$2(_e){return(_e||[]).map(function(et,rt){if(et&&_typeof$e(et)==="object"){var st=et,ct=st.label,ut=st.children,ft=st.key,gt=st.type,xt=_objectWithoutProperties$2(st,_excluded$1q),$t=ft??"tmp-".concat(rt);return ut||gt==="group"?gt==="group"?reactExports.createElement(MenuItemGroup,_extends$b({key:$t},xt,{title:ct}),convertItemsToNodes$2(ut)):reactExports.createElement(SubMenu$2,_extends$b({key:$t},xt,{title:ct}),convertItemsToNodes$2(ut)):gt==="divider"?reactExports.createElement(Divider$2,_extends$b({key:$t},xt)):reactExports.createElement(MenuItem$2,_extends$b({key:$t},xt),ct)}return null}).filter(function(et){return et})}function parseItems(_e,et,rt){var st=_e;return et&&(st=convertItemsToNodes$2(et)),parseChildren(st,rt)}var _excluded$1p=["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"],EMPTY_LIST$2=[],Menu$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e,ut=ct.prefixCls,ft=ut===void 0?"rc-menu":ut,gt=ct.rootClassName,xt=ct.style,$t=ct.className,_t=ct.tabIndex,wt=_t===void 0?0:_t,Tt=ct.items,Rt=ct.children,It=ct.direction,At=ct.id,jt=ct.mode,Nt=jt===void 0?"vertical":jt,kt=ct.inlineCollapsed,Ft=ct.disabled,Ht=ct.disabledOverflow,Wt=ct.subMenuOpenDelay,Vt=Wt===void 0?.1:Wt,qt=ct.subMenuCloseDelay,Gt=qt===void 0?.1:qt,Xt=ct.forceSubMenuRender,Zt=ct.defaultOpenKeys,lr=ct.openKeys,er=ct.activeKey,cr=ct.defaultActiveFirst,ur=ct.selectable,pr=ur===void 0?!0:ur,hr=ct.multiple,fr=hr===void 0?!1:hr,dr=ct.defaultSelectedKeys,yr=ct.selectedKeys,$r=ct.onSelect,Er=ct.onDeselect,mr=ct.inlineIndent,Sr=mr===void 0?24:mr,Tr=ct.motion,jr=ct.defaultMotions,Or=ct.triggerSubMenuAction,_r=Or===void 0?"hover":Or,Cr=ct.builtinPlacements,Nr=ct.itemIcon,Rr=ct.expandIcon,Pr=ct.overflowedIndicator,Mr=Pr===void 0?"...":Pr,kr=ct.overflowedIndicatorPopupClassName,Fr=ct.getPopupContainer,wr=ct.onClick,Br=ct.onOpenChange,Dr=ct.onKeyDown;ct.openAnimation,ct.openTransitionName;var Xr=ct._internalRenderMenuItem,Kr=ct._internalRenderSubMenuItem,zr=_objectWithoutProperties$2(ct,_excluded$1p),qr=reactExports.useMemo(function(){return parseItems(Rt,Tt,EMPTY_LIST$2)},[Rt,Tt]),pn=reactExports.useState(!1),Qr=_slicedToArray$3(pn,2),Zr=Qr[0],vn=Qr[1],vr=reactExports.useRef(),gr=useUUID(At),br=It==="rtl",Hr=useMergedState(Zt,{value:lr,postState:function(mo){return mo||EMPTY_LIST$2}}),Vr=_slicedToArray$3(Hr,2),Wr=Vr[0],Gr=Vr[1],cn=function(mo){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function kn(){Gr(mo),Br==null||Br(mo)}Fn?reactDomExports.flushSync(kn):kn()},mn=reactExports.useState(Wr),hn=_slicedToArray$3(mn,2),En=hn[0],Rn=hn[1],Dn=reactExports.useRef(!1),Bn=reactExports.useMemo(function(){return(Nt==="inline"||Nt==="vertical")&&kt?["vertical",kt]:[Nt,!1]},[Nt,kt]),Yn=_slicedToArray$3(Bn,2),qn=Yn[0],ao=Yn[1],dn=qn==="inline",gn=reactExports.useState(qn),yn=_slicedToArray$3(gn,2),wn=yn[0],Tn=yn[1],Nn=reactExports.useState(ao),On=_slicedToArray$3(Nn,2),xn=On[0],Cn=On[1];reactExports.useEffect(function(){Tn(qn),Cn(ao),Dn.current&&(dn?Gr(En):cn(EMPTY_LIST$2))},[qn,ao]);var Sn=reactExports.useState(0),Mn=_slicedToArray$3(Sn,2),jn=Mn[0],Un=Mn[1],Gn=jn>=qr.length-1||wn!=="horizontal"||Ht;reactExports.useEffect(function(){dn&&Rn(Wr)},[Wr]),reactExports.useEffect(function(){return Dn.current=!0,function(){Dn.current=!1}},[]);var eo=useKeyRecords(),io=eo.registerPath,Kn=eo.unregisterPath,Wn=eo.refreshOverflowKeys,zn=eo.isSubPathKey,_n=eo.getKeyPath,ln=eo.getKeys,Pn=eo.getSubPathKeys,An=reactExports.useMemo(function(){return{registerPath:io,unregisterPath:Kn}},[io,Kn]),Qn=reactExports.useMemo(function(){return{isSubPathKey:zn}},[zn]);reactExports.useEffect(function(){Wn(Gn?EMPTY_LIST$2:qr.slice(jn+1).map(function(vo){return vo.key}))},[jn,Gn]);var ro=useMergedState(er||cr&&((rt=qr[0])===null||rt===void 0?void 0:rt.key),{value:er}),oo=_slicedToArray$3(ro,2),Vn=oo[0],uo=oo[1],po=useMemoCallback(function(vo){uo(vo)}),_o=useMemoCallback(function(){uo(void 0)});reactExports.useImperativeHandle(et,function(){return{list:vr.current,focus:function(mo){var Fn,kn=ln(),co=refreshElements(kn,gr),Eo=co.elements,so=co.key2element,Xn=co.element2key,no=getFocusableElements(vr.current,Eo),To=Vn??(no[0]?Xn.get(no[0]):(Fn=qr.find(function(fo){return!fo.props.disabled}))===null||Fn===void 0?void 0:Fn.key),Po=so.get(To);if(To&&Po){var Fo;Po==null||(Fo=Po.focus)===null||Fo===void 0||Fo.call(Po,mo)}}}});var Uo=useMergedState(dr||[],{value:yr,postState:function(mo){return Array.isArray(mo)?mo:mo==null?EMPTY_LIST$2:[mo]}}),Bo=_slicedToArray$3(Uo,2),Oo=Bo[0],Ko=Bo[1],Ao=function(mo){if(pr){var Fn=mo.key,kn=Oo.includes(Fn),co;fr?kn?co=Oo.filter(function(so){return so!==Fn}):co=[].concat(_toConsumableArray$3(Oo),[Fn]):co=[Fn],Ko(co);var Eo=_objectSpread2(_objectSpread2({},mo),{},{selectedKeys:co});kn?Er==null||Er(Eo):$r==null||$r(Eo)}!fr&&Wr.length&&wn!=="inline"&&cn(EMPTY_LIST$2)},No=useMemoCallback(function(vo){wr==null||wr(warnItemProp(vo)),Ao(vo)}),qo=useMemoCallback(function(vo,mo){var Fn=Wr.filter(function(co){return co!==vo});if(mo)Fn.push(vo);else if(wn!=="inline"){var kn=Pn(vo);Fn=Fn.filter(function(co){return!kn.has(co)})}isEqual$1(Wr,Fn,!0)||cn(Fn,!0)}),Wo=function(mo,Fn){var kn=Fn??!Wr.includes(mo);qo(mo,kn)},os=useAccessibility$1(wn,Vn,br,gr,vr,ln,_n,uo,Wo,Dr);reactExports.useEffect(function(){vn(!0)},[]);var Io=reactExports.useMemo(function(){return{_internalRenderMenuItem:Xr,_internalRenderSubMenuItem:Kr}},[Xr,Kr]),ss=wn!=="horizontal"||Ht?qr:qr.map(function(vo,mo){return reactExports.createElement(InheritableContextProvider,{key:vo.key,overflowDisabled:mo>jn},vo)}),_i=reactExports.createElement(ForwardOverflow,_extends$b({id:At,ref:vr,prefixCls:"".concat(ft,"-overflow"),component:"ul",itemComponent:MenuItem$2,className:classNames(ft,"".concat(ft,"-root"),"".concat(ft,"-").concat(wn),$t,(st={},_defineProperty$c(st,"".concat(ft,"-inline-collapsed"),xn),_defineProperty$c(st,"".concat(ft,"-rtl"),br),st),gt),dir:It,style:xt,role:"menu",tabIndex:wt,data:ss,renderRawItem:function(mo){return mo},renderRawRest:function(mo){var Fn=mo.length,kn=Fn?qr.slice(-Fn):null;return reactExports.createElement(SubMenu$2,{eventKey:OVERFLOW_KEY,title:Mr,disabled:Gn,internalPopupClose:Fn===0,popupClassName:kr},kn)},maxCount:wn!=="horizontal"||Ht?ForwardOverflow.INVALIDATE:ForwardOverflow.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(mo){Un(mo)},onKeyDown:os},zr));return reactExports.createElement(PrivateContext.Provider,{value:Io},reactExports.createElement(IdContext.Provider,{value:gr},reactExports.createElement(InheritableContextProvider,{prefixCls:ft,rootClassName:gt,mode:wn,openKeys:Wr,rtl:br,disabled:Ft,motion:Zr?Tr:null,defaultMotions:Zr?jr:null,activeKey:Vn,onActive:po,onInactive:_o,selectedKeys:Oo,inlineIndent:Sr,subMenuOpenDelay:Vt,subMenuCloseDelay:Gt,forceSubMenuRender:Xt,builtinPlacements:Cr,triggerSubMenuAction:_r,getPopupContainer:Fr,itemIcon:Nr,expandIcon:Rr,onItemClick:No,onOpenChange:qo},reactExports.createElement(PathUserContext.Provider,{value:Qn},_i),reactExports.createElement("div",{style:{display:"none"},"aria-hidden":!0},reactExports.createElement(PathRegisterContext.Provider,{value:An},qr)))))}),ExportMenu=Menu$2;ExportMenu.Item=MenuItem$2;ExportMenu.SubMenu=SubMenu$2;ExportMenu.ItemGroup=MenuItemGroup;ExportMenu.Divider=Divider$2;var BarsOutlined$5={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"};const BarsOutlinedSvg=BarsOutlined$5;var BarsOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:BarsOutlinedSvg}))};const BarsOutlined$4=reactExports.forwardRef(BarsOutlined$3);var LeftOutlined$5={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"};const LeftOutlinedSvg=LeftOutlined$5;var LeftOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:LeftOutlinedSvg}))};const LeftOutlined$4=reactExports.forwardRef(LeftOutlined$3),isNumeric$1=_e=>!isNaN(parseFloat(_e))&&isFinite(_e),LayoutContext=reactExports.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var __rest$N=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let _e=0;return function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _e+=1,`${et}${_e}`}})(),Sider$7=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,className:st,trigger:ct,children:ut,defaultCollapsed:ft=!1,theme:gt="dark",style:xt={},collapsible:$t=!1,reverseArrow:_t=!1,width:wt=200,collapsedWidth:Tt=80,zeroWidthTriggerStyle:Rt,breakpoint:It,onCollapse:At,onBreakpoint:jt}=_e,Nt=__rest$N(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=reactExports.useContext(LayoutContext),[Ft,Ht]=reactExports.useState("collapsed"in _e?_e.collapsed:ft),[Wt,Vt]=reactExports.useState(!1);reactExports.useEffect(()=>{"collapsed"in _e&&Ht(_e.collapsed)},[_e.collapsed]);const qt=(cr,ur)=>{"collapsed"in _e||Ht(cr),At==null||At(cr,ur)},Gt=reactExports.useRef();Gt.current=cr=>{Vt(cr.matches),jt==null||jt(cr.matches),Ft!==cr.matches&&qt(cr.matches,"responsive")},reactExports.useEffect(()=>{function cr(pr){return Gt.current(pr)}let ur;if(typeof window<"u"){const{matchMedia:pr}=window;if(pr&&It&&It in dimensionMaxMap){ur=pr(`screen and (max-width: ${dimensionMaxMap[It]})`);try{ur.addEventListener("change",cr)}catch{ur.addListener(cr)}cr(ur)}}return()=>{try{ur==null||ur.removeEventListener("change",cr)}catch{ur==null||ur.removeListener(cr)}}},[It]),reactExports.useEffect(()=>{const cr=generateId("ant-sider-");return kt.addSider(cr),()=>kt.removeSider(cr)},[]);const Xt=()=>{qt(!Ft,"clickTrigger")},{getPrefixCls:Zt}=reactExports.useContext(ConfigContext$1),lr=()=>{const cr=Zt("layout-sider",rt),ur=omit$2(Nt,["collapsed"]),pr=Ft?Tt:wt,hr=isNumeric$1(pr)?`${pr}px`:String(pr),fr=parseFloat(String(Tt||0))===0?reactExports.createElement("span",{onClick:Xt,className:classNames(`${cr}-zero-width-trigger`,`${cr}-zero-width-trigger-${_t?"right":"left"}`),style:Rt},ct||reactExports.createElement(BarsOutlined$4,null)):null,$r={expanded:_t?reactExports.createElement(RightOutlined$6,null):reactExports.createElement(LeftOutlined$4,null),collapsed:_t?reactExports.createElement(LeftOutlined$4,null):reactExports.createElement(RightOutlined$6,null)}[Ft?"collapsed":"expanded"],Er=ct!==null?fr||reactExports.createElement("div",{className:`${cr}-trigger`,onClick:Xt,style:{width:hr}},ct||$r):null,mr=Object.assign(Object.assign({},xt),{flex:`0 0 ${hr}`,maxWidth:hr,minWidth:hr,width:hr}),Sr=classNames(cr,`${cr}-${gt}`,{[`${cr}-collapsed`]:!!Ft,[`${cr}-has-trigger`]:$t&&ct!==null&&!fr,[`${cr}-below`]:!!Wt,[`${cr}-zero-width`]:parseFloat(hr)===0},st);return reactExports.createElement("aside",Object.assign({className:Sr},ur,{style:mr,ref:et}),reactExports.createElement("div",{className:`${cr}-children`},ut),$t||Wt&&fr?Er:null)},er=reactExports.useMemo(()=>({siderCollapsed:Ft}),[Ft]);return reactExports.createElement(SiderContext$1.Provider,{value:er},lr())}),Sider$8=Sider$7;var EllipsisOutlined$2={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"};const EllipsisOutlinedSvg=EllipsisOutlined$2;var EllipsisOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EllipsisOutlinedSvg}))};const EllipsisOutlined$1=reactExports.forwardRef(EllipsisOutlined);var __rest$M=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,className:rt,dashed:st}=_e,ct=__rest$M(_e,["prefixCls","className","dashed"]),{getPrefixCls:ut}=reactExports.useContext(ConfigContext$1),ft=ut("menu",et),gt=classNames({[`${ft}-item-divider-dashed`]:!!st},rt);return reactExports.createElement(Divider$2,Object.assign({className:gt},ct))},MenuDivider$1=MenuDivider,MenuContext=reactExports.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),MenuContext$1=MenuContext,MenuItem=_e=>{var et;const{className:rt,children:st,icon:ct,title:ut,danger:ft}=_e,{prefixCls:gt,firstLevel:xt,direction:$t,disableMenuItemTitleTooltip:_t,inlineCollapsed:wt}=reactExports.useContext(MenuContext$1),Tt=kt=>{const Ft=reactExports.createElement("span",{className:`${gt}-title-content`},st);return(!ct||isValidElement(st)&&st.type==="span")&&st&&kt&&xt&&typeof st=="string"?reactExports.createElement("div",{className:`${gt}-inline-collapsed-noicon`},st.charAt(0)):Ft},{siderCollapsed:Rt}=reactExports.useContext(SiderContext$1);let It=ut;typeof ut>"u"?It=xt?st:"":ut===!1&&(It="");const At={title:It};!Rt&&!wt&&(At.title=null,At.open=!1);const jt=toArray$d(st).length;let Nt=reactExports.createElement(MenuItem$2,Object.assign({},omit$2(_e,["title","icon","danger"]),{className:classNames({[`${gt}-item-danger`]:ft,[`${gt}-item-only-child`]:(ct?jt+1:jt)===1},rt),title:typeof ut=="string"?ut:void 0}),cloneElement(ct,{className:classNames(isValidElement(ct)?(et=ct.props)===null||et===void 0?void 0:et.className:"",`${gt}-item-icon`)}),Tt(wt));return _t||(Nt=reactExports.createElement(Tooltip$1,Object.assign({},At,{placement:$t==="rtl"?"left":"right",overlayClassName:`${gt}-inline-collapsed-tooltip`}),Nt)),Nt},Item$4=MenuItem,SubMenu=_e=>{var et;const{popupClassName:rt,icon:st,title:ct,theme:ut}=_e,ft=reactExports.useContext(MenuContext$1),{prefixCls:gt,inlineCollapsed:xt,theme:$t}=ft,_t=useFullPath();let wt;if(!st)wt=xt&&!_t.length&&ct&&typeof ct=="string"?reactExports.createElement("div",{className:`${gt}-inline-collapsed-noicon`},ct.charAt(0)):reactExports.createElement("span",{className:`${gt}-title-content`},ct);else{const It=isValidElement(ct)&&ct.type==="span";wt=reactExports.createElement(reactExports.Fragment,null,cloneElement(st,{className:classNames(isValidElement(st)?(et=st.props)===null||et===void 0?void 0:et.className:"",`${gt}-item-icon`)}),It?ct:reactExports.createElement("span",{className:`${gt}-title-content`},ct))}const Tt=reactExports.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]),[Rt]=useZIndex("Menu");return reactExports.createElement(MenuContext$1.Provider,{value:Tt},reactExports.createElement(SubMenu$2,Object.assign({},omit$2(_e,["icon"]),{title:wt,popupClassName:classNames(gt,rt,`${gt}-${ut||$t}`),popupStyle:{zIndex:Rt}})))},SubMenu$1=SubMenu;var __rest$L=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(et&&typeof et=="object"){const st=et,{label:ct,children:ut,key:ft,type:gt}=st,xt=__rest$L(st,["label","children","key","type"]),$t=ft??`tmp-${rt}`;return ut||gt==="group"?gt==="group"?reactExports.createElement(MenuItemGroup,Object.assign({key:$t},xt,{title:ct}),convertItemsToNodes$1(ut)):reactExports.createElement(SubMenu$1,Object.assign({key:$t},xt,{title:ct}),convertItemsToNodes$1(ut)):gt==="divider"?reactExports.createElement(MenuDivider$1,Object.assign({key:$t},xt)):reactExports.createElement(Item$4,Object.assign({key:$t},xt),ct)}return null}).filter(et=>et)}function useItems$2(_e){return reactExports.useMemo(()=>_e&&convertItemsToNodes$1(_e),[_e])}const OverrideContext=reactExports.createContext(null),OverrideContext$1=OverrideContext,getHorizontalStyle=_e=>{const{componentCls:et,motionDurationSlow:rt,horizontalLineHeight:st,colorSplit:ct,lineWidth:ut,lineType:ft,itemPaddingInline:gt}=_e;return{[`${et}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${unit$1(ut)} ${ft} ${ct}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${et}-item, ${et}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:gt},[`> ${et}-item:hover, + `]:{paddingInlineEnd:_e.calc(_e.fontSize).mul(1.5).equal()}}}},genSizeStyle$2(merge$7(_e,{controlHeight:_e.singleItemHeightLG,fontSize:_e.fontSizeLG,borderRadius:_e.borderRadiusLG}),"lg")]}const prepareComponentToken$v=_e=>{const{fontSize:et,lineHeight:rt,controlHeight:st,controlPaddingHorizontal:ct,zIndexPopupBase:ut,colorText:ft,fontWeightStrong:gt,controlItemBgActive:xt,controlItemBgHover:$t,colorBgContainer:_t,colorFillSecondary:wt,controlHeightLG:Tt,controlHeightSM:Rt,colorBgContainerDisabled:It,colorTextDisabled:At}=_e;return{zIndexPopup:ut+50,optionSelectedColor:ft,optionSelectedFontWeight:gt,optionSelectedBg:xt,optionActiveBg:$t,optionPadding:`${(st-et*rt)/2}px ${ct}px`,optionFontSize:et,optionLineHeight:rt,optionHeight:st,selectorBg:_t,clearBg:_t,singleItemHeightLG:Tt,multipleItemBg:wt,multipleItemBorderColor:"transparent",multipleItemHeight:Rt,multipleItemHeightLG:st,multipleSelectorBgDisabled:It,multipleItemColorDisabled:At,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(_e.fontSize*1.25)}},genBaseOutlinedStyle$1=(_e,et)=>{const{componentCls:rt,antCls:st,controlOutlineWidth:ct}=_e;return{[`&:not(${rt}-customize-input) ${rt}-selector`]:{border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${et.borderColor}`,background:_e.selectorBg},[`&:not(${rt}-disabled):not(${rt}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${rt}-selector`]:{borderColor:et.hoverBorderHover},[`${rt}-focused& ${rt}-selector`]:{borderColor:et.activeBorderColor,boxShadow:`0 0 0 ${unit$1(ct)} ${et.activeShadowColor}`,outline:0}}}},genOutlinedStatusStyle$1=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}`]:Object.assign({},genBaseOutlinedStyle$1(_e,et))}),genOutlinedStyle$1=_e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(_e,{borderColor:_e.colorBorder,hoverBorderHover:_e.colorPrimaryHover,activeBorderColor:_e.colorPrimary,activeShadowColor:_e.controlOutline})),genOutlinedStatusStyle$1(_e,{status:"error",borderColor:_e.colorError,hoverBorderHover:_e.colorErrorHover,activeBorderColor:_e.colorError,activeShadowColor:_e.colorErrorOutline})),genOutlinedStatusStyle$1(_e,{status:"warning",borderColor:_e.colorWarning,hoverBorderHover:_e.colorWarningHover,activeBorderColor:_e.colorWarning,activeShadowColor:_e.colorWarningOutline})),{[`&${_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(_e,et)=>{const{componentCls:rt,antCls:st}=_e;return{[`&:not(${rt}-customize-input) ${rt}-selector`]:{background:et.bg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,color:et.color},[`&:not(${rt}-disabled):not(${rt}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${rt}-selector`]:{background:et.hoverBg},[`${rt}-focused& ${rt}-selector`]:{background:_e.selectorBg,borderColor:et.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}`]:Object.assign({},genBaseFilledStyle$1(_e,et))}),genFilledStyle$1=_e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(_e,{bg:_e.colorFillTertiary,hoverBg:_e.colorFillSecondary,activeBorderColor:_e.colorPrimary,color:_e.colorText})),genFilledStatusStyle$1(_e,{status:"error",bg:_e.colorErrorBg,hoverBg:_e.colorErrorBgHover,activeBorderColor:_e.colorError,color:_e.colorError})),genFilledStatusStyle$1(_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}})}),genBorderlessStyle$2=_e=>({"&-borderless":{[`${_e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}}}),genVariantsStyle$1=_e=>({[_e.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(_e)),genFilledStyle$1(_e)),genBorderlessStyle$2(_e))}),genSelectorStyle=_e=>{const{componentCls:et}=_e;return{position:"relative",transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,input:{cursor:"pointer"},[`${et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-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"}}}},genBaseStyle$d=_e=>{const{antCls:et,componentCls:rt,inputPaddingHorizontalBase:st,iconCls:ct}=_e;return{[rt]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${rt}-customize-input) ${rt}-selector`]:Object.assign(Object.assign({},genSelectorStyle(_e)),getSearchInputWithoutBorderStyle(_e)),[`${rt}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${et}-typography`]:{display:"inline"}}),[`${rt}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:_e.colorTextPlaceholder,pointerEvents:"none"}),[`${rt}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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`,[ct]:{verticalAlign:"top",transition:`transform ${_e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${rt}-suffix)`]:{pointerEvents:"auto"}},[`${rt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${rt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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":{[`${rt}-clear`]:{opacity:1},[`${rt}-arrow:not(:last-child)`]:{opacity:0}}}),[`${rt}-has-feedback`]:{[`${rt}-clear`]:{insetInlineEnd:_e.calc(st).add(_e.fontSize).add(_e.paddingXS).equal()}}}},genSelectStyle=_e=>{const{componentCls:et}=_e;return[{[et]:{[`&${et}-in-form-item`]:{width:"100%"}}},genBaseStyle$d(_e),genSingleStyle(_e),genMultipleStyle(_e),genSingleStyle$1(_e),{[`${et}-rtl`]:{direction:"rtl"}},genCompactItemStyle(_e,{borderElCls:`${et}-selector`,focusElCls:`${et}-focused`})]},useSelectStyle=genStyleHooks("Select",(_e,et)=>{let{rootPrefixCls:rt}=et;const st=merge$7(_e,{rootPrefixCls:rt,inputPaddingHorizontalBase:_e.calc(_e.paddingSM).sub(1).equal(),multipleSelectItemHeight:_e.multipleItemHeight,selectHeight:_e.controlHeight});return[genSelectStyle(st),genVariantsStyle$1(st)]},prepareComponentToken$v,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$2={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"};const CheckOutlinedSvg=CheckOutlined$2;var CheckOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CheckOutlinedSvg}))};const CheckOutlined$1=reactExports.forwardRef(CheckOutlined);var DownOutlined$4={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"};const DownOutlinedSvg=DownOutlined$4;var DownOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DownOutlinedSvg}))};const DownOutlined$3=reactExports.forwardRef(DownOutlined$2);var SearchOutlined$4={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"};const SearchOutlinedSvg=SearchOutlined$4;var SearchOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:SearchOutlinedSvg}))};const SearchOutlined$3=reactExports.forwardRef(SearchOutlined$2);function useIcons$1(_e){let{suffixIcon:et,clearIcon:rt,menuItemSelectedIcon:st,removeIcon:ct,loading:ut,multiple:ft,hasFeedback:gt,prefixCls:xt,showSuffixIcon:$t,feedbackIcon:_t,showArrow:wt,componentName:Tt}=_e;const Rt=rt??reactExports.createElement(CloseCircleFilled$3,null),It=kt=>et===null&&!gt&&!wt?null:reactExports.createElement(reactExports.Fragment,null,$t!==!1&&kt,gt&&_t);let At=null;if(et!==void 0)At=It(et);else if(ut)At=It(reactExports.createElement(LoadingOutlined$3,{spin:!0}));else{const kt=`${xt}-suffix`;At=Ft=>{let{open:Ht,showSearch:Wt}=Ft;return It(Ht&&Wt?reactExports.createElement(SearchOutlined$3,{className:kt}):reactExports.createElement(DownOutlined$3,{className:kt}))}}let jt=null;st!==void 0?jt=st:ft?jt=reactExports.createElement(CheckOutlined$1,null):jt=null;let Nt=null;return ct!==void 0?Nt=ct:Nt=reactExports.createElement(CloseOutlined$1,null),{clearIcon:Rt,suffixIcon:At,itemIcon:jt,removeIcon:Nt}}function useShowArrow(_e,et){return et!==void 0?et:_e!==null}var __rest$Y=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct,className:ut,rootClassName:ft,getPopupContainer:gt,popupClassName:xt,dropdownClassName:$t,listHeight:_t=256,placement:wt,listItemHeight:Tt,size:Rt,disabled:It,notFoundContent:At,status:jt,builtinPlacements:Nt,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:Ft,direction:Ht,style:Wt,allowClear:Vt,variant:qt,dropdownStyle:Xt,transitionName:Gt,tagRender:Zt,maxCount:er}=_e,lr=__rest$Y(_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"]),{getPopupContainer:cr,getPrefixCls:ur,renderEmpty:fr,direction:hr,virtual:pr,popupMatchSelectWidth:dr,popupOverflow:yr,select:Sr}=reactExports.useContext(ConfigContext$1),[,br]=useToken$4(),mr=Tt??(br==null?void 0:br.controlHeight),Er=ur("select",st),Tr=ur(),Mr=Ht??hr,{compactSize:Or,compactItemClassnames:wr}=useCompactItemContext(Er,Mr),[Cr,Nr]=useVariant(qt,ct),Rr=useCSSVarCls(Er),[Pr,jr,kr]=useSelectStyle(Er,Rr),Fr=reactExports.useMemo(()=>{const{mode:Rn}=_e;if(Rn!=="combobox")return Rn===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Rn},[_e.mode]),_r=Fr==="multiple"||Fr==="tags",Br=useShowArrow(_e.suffixIcon,_e.showArrow),Dr=(rt=Ft??kt)!==null&&rt!==void 0?rt:dr,{status:Xr,hasFeedback:Kr,isFormItemInput:Hr,feedbackIcon:Vr}=reactExports.useContext(FormItemInputContext),ln=getMergedStatus(Xr,jt);let Qr;At!==void 0?Qr=At:Fr==="combobox"?Qr=null:Qr=(fr==null?void 0:fr("Select"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Select"});const{suffixIcon:Zr,itemIcon:vn,removeIcon:vr,clearIcon:gr}=useIcons$1(Object.assign(Object.assign({},lr),{multiple:_r,hasFeedback:Kr,feedbackIcon:Vr,showSuffixIcon:Br,prefixCls:Er,componentName:"Select"})),$r=Vt===!0?{clearIcon:gr}:Vt,zr=omit$2(lr,["suffixIcon","itemIcon"]),qr=classNames(xt||$t,{[`${Er}-dropdown-${Mr}`]:Mr==="rtl"},ft,kr,Rr,jr),Wr=useSize(Rn=>{var kn;return(kn=Rt??Or)!==null&&kn!==void 0?kn:Rn}),Gr=reactExports.useContext(DisabledContext$2),dn=It??Gr,mn=classNames({[`${Er}-lg`]:Wr==="large",[`${Er}-sm`]:Wr==="small",[`${Er}-rtl`]:Mr==="rtl",[`${Er}-${Cr}`]:Nr,[`${Er}-in-form-item`]:Hr},getStatusClassNames(Er,ln,Kr),wr,Sr==null?void 0:Sr.className,ut,ft,kr,Rr,jr),hn=reactExports.useMemo(()=>wt!==void 0?wt:Mr==="rtl"?"bottomRight":"bottomLeft",[wt,Mr]),[Cn]=useZIndex("SelectLike",Xt==null?void 0:Xt.zIndex);return Pr(reactExports.createElement(TypedSelect$2,Object.assign({ref:et,virtual:pr,showSearch:Sr==null?void 0:Sr.showSearch},zr,{style:Object.assign(Object.assign({},Sr==null?void 0:Sr.style),Wt),dropdownMatchSelectWidth:Dr,transitionName:getTransitionName(Tr,"slide-up",Gt),builtinPlacements:mergedBuiltinPlacements(Nt,yr),listHeight:_t,listItemHeight:mr,mode:Fr,prefixCls:Er,placement:hn,direction:Mr,suffixIcon:Zr,menuItemSelectedIcon:vn,removeIcon:vr,allowClear:$r,notFoundContent:Qr,className:mn,getPopupContainer:gt||cr,dropdownClassName:qr,disabled:dn,dropdownStyle:Object.assign(Object.assign({},Xt),{zIndex:Cn}),maxCount:_r?er:void 0,tagRender:_r?Zt:void 0})))},Select$2=reactExports.forwardRef(InternalSelect),PurePanel$d=genPurePanel(Select$2);Select$2.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select$2.Option=Option$2;Select$2.OptGroup=OptGroup$2;Select$2._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$d;const Select$3=Select$2,responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=_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)`}),validateBreakpoints=_e=>{const et=_e,rt=[].concat(responsiveArray).reverse();return rt.forEach((st,ct)=>{const ut=st.toUpperCase(),ft=`screen${ut}Min`,gt=`screen${ut}`;if(!(et[ft]<=et[gt]))throw new Error(`${ft}<=${gt} fails : !(${et[ft]}<=${et[gt]})`);if(ct{const rt=new Map;let st=-1,ct={};return{matchHandlers:{},dispatch(ut){return ct=ut,rt.forEach(ft=>ft(ct)),rt.size>=1},subscribe(ut){return rt.size||this.register(),st+=1,rt.set(st,ut),ut(ct),st},unsubscribe(ut){rt.delete(ut),rt.size||this.unregister()},unregister(){Object.keys(et).forEach(ut=>{const ft=et[ut],gt=this.matchHandlers[ft];gt==null||gt.mql.removeListener(gt==null?void 0:gt.listener)}),rt.clear()},register(){Object.keys(et).forEach(ut=>{const ft=et[ut],gt=$t=>{let{matches:_t}=$t;this.dispatch(Object.assign(Object.assign({},ct),{[ut]:_t}))},xt=window.matchMedia(ft);xt.addListener(gt),this.matchHandlers[ft]={mql:xt,listener:gt},gt(xt)})},responsiveMap:et}},[_e])}const matchScreen=(_e,et)=>{if(et&&typeof et=="object")for(let rt=0;rtet+1,0);return _e}function useBreakpoint$1(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const et=reactExports.useRef({}),rt=useForceUpdate(),st=useResponsiveObserver();return useLayoutEffect$3(()=>{const ct=st.subscribe(ut=>{et.current=ut,_e&&rt()});return()=>st.unsubscribe(ct)},[]),et.current}const AvatarContext=reactExports.createContext({}),AvatarContext$1=AvatarContext,genBaseStyle$c=_e=>{const{antCls:et,componentCls:rt,iconCls:st,avatarBg:ct,avatarColor:ut,containerSize:ft,containerSizeLG:gt,containerSizeSM:xt,textFontSize:$t,textFontSizeLG:_t,textFontSizeSM:wt,borderRadius:Tt,borderRadiusLG:Rt,borderRadiusSM:It,lineWidth:At,lineType:jt}=_e,Nt=(kt,Ft,Ht)=>({width:kt,height:kt,borderRadius:"50%",[`&${rt}-square`]:{borderRadius:Ht},[`&${rt}-icon`]:{fontSize:Ft,[`> ${st}`]:{margin:0}}});return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:ut,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:ct,border:`${unit$1(At)} ${jt} transparent`,"&-image":{background:"transparent"},[`${et}-image-img`]:{display:"block"}}),Nt(ft,$t,Tt)),{"&-lg":Object.assign({},Nt(gt,_t,Rt)),"&-sm":Object.assign({},Nt(xt,wt,It)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},genGroupStyle$1=_e=>{const{componentCls:et,groupBorderColor:rt,groupOverlapping:st,groupSpace:ct}=_e;return{[`${et}-group`]:{display:"inline-flex",[`${et}`]:{borderColor:rt},"> *:not(:first-child)":{marginInlineStart:st}},[`${et}-group-popover`]:{[`${et} + ${et}`]:{marginInlineStart:ct}}}},prepareComponentToken$u=_e=>{const{controlHeight:et,controlHeightLG:rt,controlHeightSM:st,fontSize:ct,fontSizeLG:ut,fontSizeXL:ft,fontSizeHeading3:gt,marginXS:xt,marginXXS:$t,colorBorderBg:_t}=_e;return{containerSize:et,containerSizeLG:rt,containerSizeSM:st,textFontSize:Math.round((ut+ft)/2),textFontSizeLG:gt,textFontSizeSM:ct,groupSpace:$t,groupOverlapping:-xt,groupBorderColor:_t}},useStyle$Q=genStyleHooks("Avatar",_e=>{const{colorTextLightSolid:et,colorTextPlaceholder:rt}=_e,st=merge$7(_e,{avatarBg:rt,avatarColor:et});return[genBaseStyle$c(st),genGroupStyle$1(st)]},prepareComponentToken$u);var __rest$X=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const[rt,st]=reactExports.useState(1),[ct,ut]=reactExports.useState(!1),[ft,gt]=reactExports.useState(!0),xt=reactExports.useRef(null),$t=reactExports.useRef(null),_t=composeRef(et,xt),{getPrefixCls:wt,avatar:Tt}=reactExports.useContext(ConfigContext$1),Rt=reactExports.useContext(AvatarContext$1),It=()=>{if(!$t.current||!xt.current)return;const Cr=$t.current.offsetWidth,Nr=xt.current.offsetWidth;if(Cr!==0&&Nr!==0){const{gap:Rr=4}=_e;Rr*2{ut(!0)},[]),reactExports.useEffect(()=>{gt(!0),st(1)},[_e.src]),reactExports.useEffect(It,[_e.gap]);const At=()=>{const{onError:Cr}=_e;(Cr==null?void 0:Cr())!==!1&>(!1)},{prefixCls:jt,shape:Nt,size:kt,src:Ft,srcSet:Ht,icon:Wt,className:Vt,rootClassName:qt,alt:Xt,draggable:Gt,children:Zt,crossOrigin:er}=_e,lr=__rest$X(_e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),cr=useSize(Cr=>{var Nr,Rr;return(Rr=(Nr=kt??(Rt==null?void 0:Rt.size))!==null&&Nr!==void 0?Nr:Cr)!==null&&Rr!==void 0?Rr:"default"}),ur=Object.keys(typeof cr=="object"?cr||{}:{}).some(Cr=>["xs","sm","md","lg","xl","xxl"].includes(Cr)),fr=useBreakpoint$1(ur),hr=reactExports.useMemo(()=>{if(typeof cr!="object")return{};const Cr=responsiveArray.find(Rr=>fr[Rr]),Nr=cr[Cr];return Nr?{width:Nr,height:Nr,fontSize:Nr&&(Wt||Zt)?Nr/2:18}:{}},[fr,cr]),pr=wt("avatar",jt),dr=useCSSVarCls(pr),[yr,Sr,br]=useStyle$Q(pr,dr),mr=classNames({[`${pr}-lg`]:cr==="large",[`${pr}-sm`]:cr==="small"}),Er=reactExports.isValidElement(Ft),Tr=Nt||(Rt==null?void 0:Rt.shape)||"circle",Mr=classNames(pr,mr,Tt==null?void 0:Tt.className,`${pr}-${Tr}`,{[`${pr}-image`]:Er||Ft&&ft,[`${pr}-icon`]:!!Wt},br,dr,Vt,qt,Sr),Or=typeof cr=="number"?{width:cr,height:cr,fontSize:Wt?cr/2:18}:{};let wr;if(typeof Ft=="string"&&ft)wr=reactExports.createElement("img",{src:Ft,draggable:Gt,srcSet:Ht,onError:At,alt:Xt,crossOrigin:er});else if(Er)wr=Ft;else if(Wt)wr=Wt;else if(ct||rt!==1){const Cr=`scale(${rt})`,Nr={msTransform:Cr,WebkitTransform:Cr,transform:Cr};wr=reactExports.createElement(RefResizeObserver,{onResize:It},reactExports.createElement("span",{className:`${pr}-string`,ref:$t,style:Object.assign({},Nr)},Zt))}else wr=reactExports.createElement("span",{className:`${pr}-string`,style:{opacity:0},ref:$t},Zt);return delete lr.onError,delete lr.gap,yr(reactExports.createElement("span",Object.assign({},lr,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Or),hr),Tt==null?void 0:Tt.style),lr.style),className:Mr,ref:_t}),wr))},Avatar$3=reactExports.forwardRef(InternalAvatar),InternalAvatar$1=Avatar$3,getRenderPropValue=_e=>_e?typeof _e=="function"?_e():_e:null;function Popup$1(_e){var et=_e.children,rt=_e.prefixCls,st=_e.id,ct=_e.overlayInnerStyle,ut=_e.className,ft=_e.style;return reactExports.createElement("div",{className:classNames("".concat(rt,"-content"),ut),style:ft},reactExports.createElement("div",{className:"".concat(rt,"-inner"),id:st,role:"tooltip",style:ct},typeof et=="function"?et():et))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset$1=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1}},_excluded$1x=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$2=function(et,rt){var st=et.overlayClassName,ct=et.trigger,ut=ct===void 0?["hover"]:ct,ft=et.mouseEnterDelay,gt=ft===void 0?0:ft,xt=et.mouseLeaveDelay,$t=xt===void 0?.1:xt,_t=et.overlayStyle,wt=et.prefixCls,Tt=wt===void 0?"rc-tooltip":wt,Rt=et.children,It=et.onVisibleChange,At=et.afterVisibleChange,jt=et.transitionName,Nt=et.animation,kt=et.motion,Ft=et.placement,Ht=Ft===void 0?"right":Ft,Wt=et.align,Vt=Wt===void 0?{}:Wt,qt=et.destroyTooltipOnHide,Xt=qt===void 0?!1:qt,Gt=et.defaultVisible,Zt=et.getTooltipContainer,er=et.overlayInnerStyle;et.arrowContent;var lr=et.overlay,cr=et.id,ur=et.showArrow,fr=ur===void 0?!0:ur,hr=_objectWithoutProperties$2(et,_excluded$1x),pr=reactExports.useRef(null);reactExports.useImperativeHandle(rt,function(){return pr.current});var dr=_objectSpread2({},hr);"visible"in et&&(dr.popupVisible=et.visible);var yr=function(){return reactExports.createElement(Popup$1,{key:"content",prefixCls:Tt,id:cr,overlayInnerStyle:er},lr)};return reactExports.createElement(Trigger,_extends$b({popupClassName:st,prefixCls:Tt,popup:yr,action:ut,builtinPlacements:placements$2,popupPlacement:Ht,ref:pr,popupAlign:Vt,getPopupContainer:Zt,onPopupVisibleChange:It,afterPopupVisibleChange:At,popupTransitionName:jt,popupAnimation:Nt,popupMotion:kt,defaultPopupVisible:Gt,autoDestroy:Xt,mouseLeaveDelay:$t,popupStyle:_t,mouseEnterDelay:gt,arrow:fr},dr),Rt)};const Tooltip$3=reactExports.forwardRef(Tooltip$2);function getArrowToken(_e){const{sizePopupArrow:et,borderRadiusXS:rt,borderRadiusOuter:st}=_e,ct=et/2,ut=0,ft=ct,gt=st*1/Math.sqrt(2),xt=ct-st*(1-1/Math.sqrt(2)),$t=ct-rt*(1/Math.sqrt(2)),_t=st*(Math.sqrt(2)-1)+rt*(1/Math.sqrt(2)),wt=2*ct-$t,Tt=_t,Rt=2*ct-gt,It=xt,At=2*ct-ut,jt=ft,Nt=ct*Math.sqrt(2)+st*(Math.sqrt(2)-2),kt=st*(Math.sqrt(2)-1),Ft=`polygon(${kt}px 100%, 50% ${kt}px, ${2*ct-kt}px 100%, ${kt}px 100%)`,Ht=`path('M ${ut} ${ft} A ${st} ${st} 0 0 0 ${gt} ${xt} L ${$t} ${_t} A ${rt} ${rt} 0 0 1 ${wt} ${Tt} L ${Rt} ${It} A ${st} ${st} 0 0 0 ${At} ${jt} Z')`;return{arrowShadowWidth:Nt,arrowPath:Ht,arrowPolygon:Ft}}const genRoundedArrow=(_e,et,rt)=>{const{sizePopupArrow:st,arrowPolygon:ct,arrowPath:ut,arrowShadowWidth:ft,borderRadiusXS:gt,calc:xt}=_e;return{pointerEvents:"none",width:st,height:st,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:st,height:xt(st).div(2).equal(),background:et,clipPath:{_multi_value_:!0,value:[ct,ut]},content:'""'},"&::after":{content:'""',position:"absolute",width:ft,height:ft,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit$1(gt)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:rt,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(_e){const{contentRadius:et,limitVerticalRadius:rt}=_e,st=et>12?et+2:12;return{arrowOffsetHorizontal:st,arrowOffsetVertical:rt?MAX_VERTICAL_CONTENT_RADIUS:st}}function isInject(_e,et){return _e?et:{}}function getArrowStyle(_e,et,rt){const{componentCls:st,boxShadowPopoverArrow:ct,arrowOffsetVertical:ut,arrowOffsetHorizontal:ft}=_e,{arrowDistance:gt=0,arrowPlacement:xt={left:!0,right:!0,top:!0,bottom:!0}}=rt||{};return{[st]:Object.assign(Object.assign(Object.assign(Object.assign({[`${st}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(_e,et,ct)),{"&:before":{background:et}})]},isInject(!!xt.top,{[[`&-placement-top > ${st}-arrow`,`&-placement-topLeft > ${st}-arrow`,`&-placement-topRight > ${st}-arrow`].join(",")]:{bottom:gt,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${st}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${st}-arrow`]:{left:{_skip_check_:!0,value:ft}},[`&-placement-topRight > ${st}-arrow`]:{right:{_skip_check_:!0,value:ft}}})),isInject(!!xt.bottom,{[[`&-placement-bottom > ${st}-arrow`,`&-placement-bottomLeft > ${st}-arrow`,`&-placement-bottomRight > ${st}-arrow`].join(",")]:{top:gt,transform:"translateY(-100%)"},[`&-placement-bottom > ${st}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${st}-arrow`]:{left:{_skip_check_:!0,value:ft}},[`&-placement-bottomRight > ${st}-arrow`]:{right:{_skip_check_:!0,value:ft}}})),isInject(!!xt.left,{[[`&-placement-left > ${st}-arrow`,`&-placement-leftTop > ${st}-arrow`,`&-placement-leftBottom > ${st}-arrow`].join(",")]:{right:{_skip_check_:!0,value:gt},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${st}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${st}-arrow`]:{top:ut},[`&-placement-leftBottom > ${st}-arrow`]:{bottom:ut}})),isInject(!!xt.right,{[[`&-placement-right > ${st}-arrow`,`&-placement-rightTop > ${st}-arrow`,`&-placement-rightBottom > ${st}-arrow`].join(",")]:{left:{_skip_check_:!0,value:gt},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${st}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${st}-arrow`]:{top:ut},[`&-placement-rightBottom > ${st}-arrow`]:{bottom:ut}}))}}function getOverflowOptions(_e,et,rt,st){if(st===!1)return{adjustX:!1,adjustY:!1};const ct=st&&typeof st=="object"?st:{},ut={};switch(_e){case"top":case"bottom":ut.shiftX=et.arrowOffsetHorizontal*2+rt,ut.shiftY=!0,ut.adjustY=!0;break;case"left":case"right":ut.shiftY=et.arrowOffsetVertical*2+rt,ut.shiftX=!0,ut.adjustX=!0;break}const ft=Object.assign(Object.assign({},ut),ct);return ft.shiftX||(ft.adjustX=!0),ft.shiftY||(ft.adjustY=!0),ft}const PlacementAlignMap={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"]}},ArrowCenterPlacementAlignMap={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"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(_e){const{arrowWidth:et,autoAdjustOverflow:rt,arrowPointAtCenter:st,offset:ct,borderRadius:ut,visibleFirst:ft}=_e,gt=et/2,xt={};return Object.keys(PlacementAlignMap).forEach($t=>{const _t=st&&ArrowCenterPlacementAlignMap[$t]||PlacementAlignMap[$t],wt=Object.assign(Object.assign({},_t),{offset:[0,0],dynamicInset:!0});switch(xt[$t]=wt,DisableAutoArrowList.has($t)&&(wt.autoArrow=!1),$t){case"top":case"topLeft":case"topRight":wt.offset[1]=-gt-ct;break;case"bottom":case"bottomLeft":case"bottomRight":wt.offset[1]=gt+ct;break;case"left":case"leftTop":case"leftBottom":wt.offset[0]=-gt-ct;break;case"right":case"rightTop":case"rightBottom":wt.offset[0]=gt+ct;break}const Tt=getArrowOffsetToken({contentRadius:ut,limitVerticalRadius:!0});if(st)switch($t){case"topLeft":case"bottomLeft":wt.offset[0]=-Tt.arrowOffsetHorizontal-gt;break;case"topRight":case"bottomRight":wt.offset[0]=Tt.arrowOffsetHorizontal+gt;break;case"leftTop":case"rightTop":wt.offset[1]=-Tt.arrowOffsetHorizontal-gt;break;case"leftBottom":case"rightBottom":wt.offset[1]=Tt.arrowOffsetHorizontal+gt;break}wt.overflow=getOverflowOptions($t,Tt,et,rt),ft&&(wt.htmlRegion="visibleFirst")}),xt}const genTooltipStyle=_e=>{const{componentCls:et,tooltipMaxWidth:rt,tooltipColor:st,tooltipBg:ct,tooltipBorderRadius:ut,zIndexPopup:ft,controlHeight:gt,boxShadowSecondary:xt,paddingSM:$t,paddingXS:_t}=_e;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",zIndex:ft,display:"block",width:"max-content",maxWidth:rt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ct,[`${et}-inner`]:{minWidth:gt,minHeight:gt,padding:`${unit$1(_e.calc($t).div(2).equal())} ${unit$1(_t)}`,color:st,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ct,borderRadius:ut,boxShadow:xt,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${et}-inner`]:{borderRadius:_e.min(ut,MAX_VERTICAL_CONTENT_RADIUS)}},[`${et}-content`]:{position:"relative"}}),genPresetColor$2(_e,(wt,Tt)=>{let{darkColor:Rt}=Tt;return{[`&${et}-${wt}`]:{[`${et}-inner`]:{backgroundColor:Rt},[`${et}-arrow`]:{"--antd-arrow-background-color":Rt}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(_e,"var(--antd-arrow-background-color)"),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow}}]},prepareComponentToken$t=_e=>Object.assign(Object.assign({zIndexPopup:_e.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:_e.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge$7(_e,{borderRadiusOuter:Math.min(_e.borderRadiusOuter,4)}))),useStyle$P=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",st=>{const{borderRadius:ct,colorTextLightSolid:ut,colorBgSpotlight:ft}=st,gt=merge$7(st,{tooltipMaxWidth:250,tooltipColor:ut,tooltipBorderRadius:ct,tooltipBg:ft});return[genTooltipStyle(gt),initZoomMotion(st,"zoom-big-fast")]},prepareComponentToken$t,{resetStyle:!1,injectStyle:et})(_e)},inverseColors=PresetColors.map(_e=>`${_e}-inverse`);function isPresetColor(_e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray$3(inverseColors),_toConsumableArray$3(PresetColors)).includes(_e):PresetColors.includes(_e)}function parseColor(_e,et){const rt=isPresetColor(et),st=classNames({[`${_e}-${et}`]:et&&rt}),ct={},ut={};return et&&!rt&&(ct.background=et,ut["--antd-arrow-background-color"]=et),{className:st,overlayStyle:ct,arrowStyle:ut}}const PurePanel$b=_e=>{const{prefixCls:et,className:rt,placement:st="top",title:ct,color:ut,overlayInnerStyle:ft}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("tooltip",et),[$t,_t,wt]=useStyle$P(xt),Tt=parseColor(xt,ut),Rt=Tt.arrowStyle,It=Object.assign(Object.assign({},ft),Tt.overlayStyle),At=classNames(_t,wt,xt,`${xt}-pure`,`${xt}-placement-${st}`,rt,Tt.className);return $t(reactExports.createElement("div",{className:At,style:Rt},reactExports.createElement("div",{className:`${xt}-arrow`}),reactExports.createElement(Popup$1,Object.assign({},_e,{className:_t,prefixCls:xt,overlayInnerStyle:It}),ct)))},PurePanel$c=PurePanel$b;var __rest$W=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{prefixCls:ct,openClassName:ut,getTooltipContainer:ft,overlayClassName:gt,color:xt,overlayInnerStyle:$t,children:_t,afterOpenChange:wt,afterVisibleChange:Tt,destroyTooltipOnHide:Rt,arrow:It=!0,title:At,overlay:jt,builtinPlacements:Nt,arrowPointAtCenter:kt=!1,autoAdjustOverflow:Ft=!0}=_e,Ht=!!It,[,Wt]=useToken$4(),{getPopupContainer:Vt,getPrefixCls:qt,direction:Xt}=reactExports.useContext(ConfigContext$1),Gt=devUseWarning(),Zt=reactExports.useRef(null),er=()=>{var Qr;(Qr=Zt.current)===null||Qr===void 0||Qr.forceAlign()};reactExports.useImperativeHandle(et,()=>({forceAlign:er,forcePopupAlign:()=>{Gt.deprecated(!1,"forcePopupAlign","forceAlign"),er()}}));const[lr,cr]=useMergedState(!1,{value:(rt=_e.open)!==null&&rt!==void 0?rt:_e.visible,defaultValue:(st=_e.defaultOpen)!==null&&st!==void 0?st:_e.defaultVisible}),ur=!At&&!jt&&At!==0,fr=Qr=>{var Zr,vn;cr(ur?!1:Qr),ur||((Zr=_e.onOpenChange)===null||Zr===void 0||Zr.call(_e,Qr),(vn=_e.onVisibleChange)===null||vn===void 0||vn.call(_e,Qr))},hr=reactExports.useMemo(()=>{var Qr,Zr;let vn=kt;return typeof It=="object"&&(vn=(Zr=(Qr=It.pointAtCenter)!==null&&Qr!==void 0?Qr:It.arrowPointAtCenter)!==null&&Zr!==void 0?Zr:kt),Nt||getPlacements({arrowPointAtCenter:vn,autoAdjustOverflow:Ft,arrowWidth:Ht?Wt.sizePopupArrow:0,borderRadius:Wt.borderRadius,offset:Wt.marginXXS,visibleFirst:!0})},[kt,It,Nt,Wt]),pr=reactExports.useMemo(()=>At===0?At:jt||At||"",[jt,At]),dr=reactExports.createElement(NoCompactStyle,null,typeof pr=="function"?pr():pr),{getPopupContainer:yr,placement:Sr="top",mouseEnterDelay:br=.1,mouseLeaveDelay:mr=.1,overlayStyle:Er,rootClassName:Tr}=_e,Mr=__rest$W(_e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Or=qt("tooltip",ct),wr=qt(),Cr=_e["data-popover-inject"];let Nr=lr;!("open"in _e)&&!("visible"in _e)&&ur&&(Nr=!1);const Rr=isValidElement(_t)&&!isFragment(_t)?_t:reactExports.createElement("span",null,_t),Pr=Rr.props,jr=!Pr.className||typeof Pr.className=="string"?classNames(Pr.className,ut||`${Or}-open`):Pr.className,[kr,Fr,_r]=useStyle$P(Or,!Cr),Br=parseColor(Or,xt),Dr=Br.arrowStyle,Xr=Object.assign(Object.assign({},$t),Br.overlayStyle),Kr=classNames(gt,{[`${Or}-rtl`]:Xt==="rtl"},Br.className,Tr,Fr,_r),[Hr,Vr]=useZIndex("Tooltip",Mr.zIndex),ln=reactExports.createElement(Tooltip$3,Object.assign({},Mr,{zIndex:Hr,showArrow:Ht,placement:Sr,mouseEnterDelay:br,mouseLeaveDelay:mr,prefixCls:Or,overlayClassName:Kr,overlayStyle:Object.assign(Object.assign({},Dr),Er),getTooltipContainer:yr||ft||Vt,ref:Zt,builtinPlacements:hr,overlay:dr,visible:Nr,onVisibleChange:fr,afterVisibleChange:wt??Tt,overlayInnerStyle:Xr,arrowContent:reactExports.createElement("span",{className:`${Or}-arrow-content`}),motion:{motionName:getTransitionName(wr,"zoom-big-fast",_e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Rt}),Nr?cloneElement(Rr,{className:jr}):Rr);return kr(reactExports.createElement(zIndexContext$1.Provider,{value:Vr},ln))});Tooltip._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$c;const Tooltip$1=Tooltip,genBaseStyle$b=_e=>{const{componentCls:et,popoverColor:rt,titleMinWidth:st,fontWeightStrong:ct,innerPadding:ut,boxShadowSecondary:ft,colorTextHeading:gt,borderRadiusLG:xt,zIndexPopup:$t,titleMarginBottom:_t,colorBgElevated:wt,popoverBg:Tt,titleBorderBottom:Rt,innerContentPadding:It,titlePadding:At}=_e;return[{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:$t,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":wt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${et}-content`]:{position:"relative"},[`${et}-inner`]:{backgroundColor:Tt,backgroundClip:"padding-box",borderRadius:xt,boxShadow:ft,padding:ut},[`${et}-title`]:{minWidth:st,marginBottom:_t,color:gt,fontWeight:ct,borderBottom:Rt,padding:At},[`${et}-inner-content`]:{color:rt,padding:It}})},getArrowStyle(_e,"var(--antd-arrow-background-color)"),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow,display:"inline-block",[`${et}-content`]:{display:"inline-block"}}}]},genColorStyle=_e=>{const{componentCls:et}=_e;return{[et]:PresetColors.map(rt=>{const st=_e[`${rt}6`];return{[`&${et}-${rt}`]:{"--antd-arrow-background-color":st,[`${et}-inner`]:{backgroundColor:st},[`${et}-arrow`]:{background:"transparent"}}}})}},prepareComponentToken$s=_e=>{const{lineWidth:et,controlHeight:rt,fontHeight:st,padding:ct,wireframe:ut,zIndexPopupBase:ft,borderRadiusLG:gt,marginXS:xt,lineType:$t,colorSplit:_t,paddingSM:wt}=_e,Tt=rt-st,Rt=Tt/2,It=Tt/2-et,At=ct;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ft+30},getArrowToken(_e)),getArrowOffsetToken({contentRadius:gt,limitVerticalRadius:!0})),{innerPadding:ut?0:12,titleMarginBottom:ut?0:xt,titlePadding:ut?`${Rt}px ${At}px ${It}px`:0,titleBorderBottom:ut?`${et}px ${$t} ${_t}`:"none",innerContentPadding:ut?`${wt}px ${At}px`:0})},useStyle$O=genStyleHooks("Popover",_e=>{const{colorBgElevated:et,colorText:rt}=_e,st=merge$7(_e,{popoverBg:et,popoverColor:rt});return[genBaseStyle$b(st),genColorStyle(st),initZoomMotion(st,"zoom-big")]},prepareComponentToken$s,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var __rest$V=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct!et&&!rt?null:reactExports.createElement(reactExports.Fragment,null,et&&reactExports.createElement("div",{className:`${_e}-title`},getRenderPropValue(et)),reactExports.createElement("div",{className:`${_e}-inner-content`},getRenderPropValue(rt))),RawPurePanel=_e=>{const{hashId:et,prefixCls:rt,className:st,style:ct,placement:ut="top",title:ft,content:gt,children:xt}=_e;return reactExports.createElement("div",{className:classNames(et,rt,`${rt}-pure`,`${rt}-placement-${ut}`,st),style:ct},reactExports.createElement("div",{className:`${rt}-arrow`}),reactExports.createElement(Popup$1,Object.assign({},_e,{className:et,prefixCls:rt}),xt||getOverlay(rt,ft,gt)))},PurePanel$a=_e=>{const{prefixCls:et,className:rt}=_e,st=__rest$V(_e,["prefixCls","className"]),{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("popover",et),[ft,gt,xt]=useStyle$O(ut);return ft(reactExports.createElement(RawPurePanel,Object.assign({},st,{prefixCls:ut,hashId:gt,className:classNames(rt,xt)})))},PopoverPurePanel=PurePanel$a;var __rest$U=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{title:et,content:rt,prefixCls:st}=_e;return reactExports.createElement(reactExports.Fragment,null,et&&reactExports.createElement("div",{className:`${st}-title`},getRenderPropValue(et)),reactExports.createElement("div",{className:`${st}-inner-content`},getRenderPropValue(rt)))},Popover$1=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,title:st,content:ct,overlayClassName:ut,placement:ft="top",trigger:gt="hover",mouseEnterDelay:xt=.1,mouseLeaveDelay:$t=.1,overlayStyle:_t={}}=_e,wt=__rest$U(_e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Tt}=reactExports.useContext(ConfigContext$1),Rt=Tt("popover",rt),[It,At,jt]=useStyle$O(Rt),Nt=Tt(),kt=classNames(ut,At,jt);return It(reactExports.createElement(Tooltip$1,Object.assign({placement:ft,trigger:gt,mouseEnterDelay:xt,mouseLeaveDelay:$t,overlayStyle:_t},wt,{prefixCls:Rt,overlayClassName:kt,ref:et,overlay:st||ct?reactExports.createElement(Overlay$2,{prefixCls:Rt,title:st,content:ct}):null,transitionName:getTransitionName(Nt,"zoom-big",wt.transitionName),"data-popover-inject":!0})))});Popover$1._InternalPanelDoNotUseOrYouWillBeFired=PopoverPurePanel;const Popover$2=Popover$1,AvatarContextProvider=_e=>{const{size:et,shape:rt}=reactExports.useContext(AvatarContext$1),st=reactExports.useMemo(()=>({size:_e.size||et,shape:_e.shape||rt}),[_e.size,_e.shape,et,rt]);return reactExports.createElement(AvatarContext$1.Provider,{value:st},_e.children)},Group$7=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct,rootClassName:ut,style:ft,maxCount:gt,maxStyle:xt,size:$t,shape:_t,maxPopoverPlacement:wt="top",maxPopoverTrigger:Tt="hover",children:Rt}=_e,It=et("avatar",st),At=`${It}-group`,jt=useCSSVarCls(It),[Nt,kt,Ft]=useStyle$Q(It,jt),Ht=classNames(At,{[`${At}-rtl`]:rt==="rtl"},Ft,jt,ct,ut,kt),Wt=toArray$e(Rt).map((qt,Xt)=>cloneElement(qt,{key:`avatar-key-${Xt}`})),Vt=Wt.length;if(gt&>{const{componentCls:et,iconCls:rt,antCls:st,badgeShadowSize:ct,motionDurationSlow:ut,textFontSize:ft,textFontSizeSM:gt,statusSize:xt,dotSize:$t,textFontWeight:_t,indicatorHeight:wt,indicatorHeightSM:Tt,marginXS:Rt,calc:It}=_e,At=`${st}-scroll-number`,jt=genPresetColor$2(_e,(Nt,kt)=>{let{darkColor:Ft}=kt;return{[`&${et} ${et}-color-${Nt}`]:{background:Ft,[`&:not(${et}-count)`]:{color:Ft}}}});return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${et}-count`]:{zIndex:_e.indicatorZIndex,minWidth:wt,height:wt,color:_e.badgeTextColor,fontWeight:_t,fontSize:ft,lineHeight:unit$1(wt),whiteSpace:"nowrap",textAlign:"center",background:_e.badgeColor,borderRadius:It(wt).div(2).equal(),boxShadow:`0 0 0 ${unit$1(ct)} ${_e.badgeShadowColor}`,transition:`background ${_e.motionDurationMid}`,a:{color:_e.badgeTextColor},"a:hover":{color:_e.badgeTextColor},"a:hover &":{background:_e.badgeColorHover}},[`${et}-count-sm`]:{minWidth:Tt,height:Tt,fontSize:gt,lineHeight:unit$1(Tt),borderRadius:It(Tt).div(2).equal()},[`${et}-multiple-words`]:{padding:`0 ${unit$1(_e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${et}-dot`]:{zIndex:_e.indicatorZIndex,width:$t,minWidth:$t,height:$t,background:_e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit$1(ct)} ${_e.badgeShadowColor}`},[`${et}-dot${At}`]:{transition:`background ${ut}`},[`${et}-count, ${et}-dot, ${At}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${rt}-spin`]:{animationName:antBadgeLoadingCircle,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${et}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${et}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:xt,height:xt,verticalAlign:"middle",borderRadius:"50%"},[`${et}-status-success`]:{backgroundColor:_e.colorSuccess},[`${et}-status-processing`]:{overflow:"visible",color:_e.colorPrimary,backgroundColor:_e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ct,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:antStatusProcessing,animationDuration:_e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${et}-status-default`]:{backgroundColor:_e.colorTextPlaceholder},[`${et}-status-error`]:{backgroundColor:_e.colorError},[`${et}-status-warning`]:{backgroundColor:_e.colorWarning},[`${et}-status-text`]:{marginInlineStart:Rt,color:_e.colorText,fontSize:_e.fontSize}}}),jt),{[`${et}-zoom-appear, ${et}-zoom-enter`]:{animationName:antZoomBadgeIn,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack,animationFillMode:"both"},[`${et}-zoom-leave`]:{animationName:antZoomBadgeOut,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack,animationFillMode:"both"},[`&${et}-not-a-wrapper`]:{[`${et}-zoom-appear, ${et}-zoom-enter`]:{animationName:antNoWrapperZoomBadgeIn,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack},[`${et}-zoom-leave`]:{animationName:antNoWrapperZoomBadgeOut,animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseOutBack},[`&:not(${et}-status)`]:{verticalAlign:"middle"},[`${At}-custom-component, ${et}-count`]:{transform:"none"},[`${At}-custom-component, ${At}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${At}`]:{overflow:"hidden",[`${At}-only`]:{position:"relative",display:"inline-block",height:wt,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${At}-only-unit`]:{height:wt,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${At}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${et}-count, ${et}-dot, ${At}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},prepareToken$2=_e=>{const{fontHeight:et,lineWidth:rt,marginXS:st,colorBorderBg:ct}=_e,ut=et,ft=rt,gt=_e.colorBgContainer,xt=_e.colorError,$t=_e.colorErrorHover;return merge$7(_e,{badgeFontHeight:ut,badgeShadowSize:ft,badgeTextColor:gt,badgeColor:xt,badgeColorHover:$t,badgeShadowColor:ct,badgeProcessingDuration:"1.2s",badgeRibbonOffset:st,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},prepareComponentToken$r=_e=>{const{fontSize:et,lineHeight:rt,fontSizeSM:st,lineWidth:ct}=_e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(et*rt)-2*ct,indicatorHeightSM:et,dotSize:st/2,textFontSize:st,textFontSizeSM:st,textFontWeight:"normal",statusSize:st/2}},useStyle$N=genStyleHooks("Badge",_e=>{const et=prepareToken$2(_e);return genSharedBadgeStyle(et)},prepareComponentToken$r),genRibbonStyle=_e=>{const{antCls:et,badgeFontHeight:rt,marginXS:st,badgeRibbonOffset:ct,calc:ut}=_e,ft=`${et}-ribbon`,gt=`${et}-ribbon-wrapper`,xt=genPresetColor$2(_e,($t,_t)=>{let{darkColor:wt}=_t;return{[`&${ft}-color-${$t}`]:{background:wt,color:wt}}});return{[`${gt}`]:{position:"relative"},[`${ft}`]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:st,padding:`0 ${unit$1(_e.paddingXS)}`,color:_e.colorPrimary,lineHeight:unit$1(rt),whiteSpace:"nowrap",backgroundColor:_e.colorPrimary,borderRadius:_e.borderRadiusSM,[`${ft}-text`]:{color:_e.colorTextLightSolid},[`${ft}-corner`]:{position:"absolute",top:"100%",width:ct,height:ct,color:"currentcolor",border:`${unit$1(ut(ct).div(2).equal())} solid`,transform:_e.badgeRibbonCornerTransform,transformOrigin:"top",filter:_e.badgeRibbonCornerFilter}}),xt),{[`&${ft}-placement-end`]:{insetInlineEnd:ut(ct).mul(-1).equal(),borderEndEndRadius:0,[`${ft}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${ft}-placement-start`]:{insetInlineStart:ut(ct).mul(-1).equal(),borderEndStartRadius:0,[`${ft}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},useStyle$M=genStyleHooks(["Badge","Ribbon"],_e=>{const et=prepareToken$2(_e);return genRibbonStyle(et)},prepareComponentToken$r),Ribbon=_e=>{const{className:et,prefixCls:rt,style:st,color:ct,children:ut,text:ft,placement:gt="end",rootClassName:xt}=_e,{getPrefixCls:$t,direction:_t}=reactExports.useContext(ConfigContext$1),wt=$t("ribbon",rt),Tt=`${wt}-wrapper`,[Rt,It,At]=useStyle$M(wt,Tt),jt=isPresetColor(ct,!1),Nt=classNames(wt,`${wt}-placement-${gt}`,{[`${wt}-rtl`]:_t==="rtl",[`${wt}-color-${ct}`]:jt},et),kt={},Ft={};return ct&&!jt&&(kt.background=ct,Ft.color=ct),Rt(reactExports.createElement("div",{className:classNames(Tt,xt,It,At)},ut,reactExports.createElement("div",{className:classNames(Nt,It),style:Object.assign(Object.assign({},kt),st)},reactExports.createElement("span",{className:`${wt}-text`},ft),reactExports.createElement("div",{className:`${wt}-corner`,style:Ft}))))},Ribbon$1=Ribbon;function UnitNumber(_e){let{prefixCls:et,value:rt,current:st,offset:ct=0}=_e,ut;return ct&&(ut={position:"absolute",top:`${ct}00%`,left:0}),reactExports.createElement("span",{style:ut,className:classNames(`${et}-only-unit`,{current:st})},rt)}function getOffset$3(_e,et,rt){let st=_e,ct=0;for(;(st+10)%10!==et;)st+=rt,ct+=rt;return ct}function SingleNumber(_e){const{prefixCls:et,count:rt,value:st}=_e,ct=Number(st),ut=Math.abs(rt),[ft,gt]=reactExports.useState(ct),[xt,$t]=reactExports.useState(ut),_t=()=>{gt(ct),$t(ut)};reactExports.useEffect(()=>{const Rt=setTimeout(()=>{_t()},1e3);return()=>{clearTimeout(Rt)}},[ct]);let wt,Tt;if(ft===ct||Number.isNaN(ct)||Number.isNaN(ft))wt=[reactExports.createElement(UnitNumber,Object.assign({},_e,{key:ct,current:!0}))],Tt={transition:"none"};else{wt=[];const Rt=ct+10,It=[];for(let Nt=ct;Nt<=Rt;Nt+=1)It.push(Nt);const At=It.findIndex(Nt=>Nt%10===ft);wt=It.map((Nt,kt)=>{const Ft=Nt%10;return reactExports.createElement(UnitNumber,Object.assign({},_e,{key:Nt,value:Ft,offset:kt-At,current:kt===At}))});const jt=xt{const{prefixCls:rt,count:st,className:ct,motionClassName:ut,style:ft,title:gt,show:xt,component:$t="sup",children:_t}=_e,wt=__rest$T(_e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:Tt}=reactExports.useContext(ConfigContext$1),Rt=Tt("scroll-number",rt),It=Object.assign(Object.assign({},wt),{"data-show":xt,style:ft,className:classNames(Rt,ct,ut),title:gt});let At=st;if(st&&Number(st)%1===0){const jt=String(st).split("");At=reactExports.createElement("bdi",null,jt.map((Nt,kt)=>reactExports.createElement(SingleNumber,{prefixCls:Rt,count:Number(st),value:Nt,key:jt.length-kt})))}return ft&&ft.borderColor&&(It.style=Object.assign(Object.assign({},ft),{boxShadow:`0 0 0 1px ${ft.borderColor} inset`})),_t?cloneElement(_t,jt=>({className:classNames(`${Rt}-custom-component`,jt==null?void 0:jt.className,ut)})):reactExports.createElement($t,Object.assign({},It,{ref:et}),At)}),ScrollNumber$1=ScrollNumber;var __rest$S=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st,ct,ut,ft;const{prefixCls:gt,scrollNumberPrefixCls:xt,children:$t,status:_t,text:wt,color:Tt,count:Rt=null,overflowCount:It=99,dot:At=!1,size:jt="default",title:Nt,offset:kt,style:Ft,className:Ht,rootClassName:Wt,classNames:Vt,styles:qt,showZero:Xt=!1}=_e,Gt=__rest$S(_e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:Zt,direction:er,badge:lr}=reactExports.useContext(ConfigContext$1),cr=Zt("badge",gt),[ur,fr,hr]=useStyle$N(cr),pr=Rt>It?`${It}+`:Rt,dr=pr==="0"||pr===0,yr=Rt===null||dr&&!Xt,Sr=(_t!=null||Tt!=null)&&yr,br=At&&!dr,mr=br?"":pr,Er=reactExports.useMemo(()=>(mr==null||mr===""||dr&&!Xt)&&!br,[mr,dr,Xt,br]),Tr=reactExports.useRef(Rt);Er||(Tr.current=Rt);const Mr=Tr.current,Or=reactExports.useRef(mr);Er||(Or.current=mr);const wr=Or.current,Cr=reactExports.useRef(br);Er||(Cr.current=br);const Nr=reactExports.useMemo(()=>{if(!kt)return Object.assign(Object.assign({},lr==null?void 0:lr.style),Ft);const Dr={marginTop:kt[1]};return er==="rtl"?Dr.left=parseInt(kt[0],10):Dr.right=-parseInt(kt[0],10),Object.assign(Object.assign(Object.assign({},Dr),lr==null?void 0:lr.style),Ft)},[er,kt,Ft,lr==null?void 0:lr.style]),Rr=Nt??(typeof Mr=="string"||typeof Mr=="number"?Mr:void 0),Pr=Er||!wt?null:reactExports.createElement("span",{className:`${cr}-status-text`},wt),jr=!Mr||typeof Mr!="object"?void 0:cloneElement(Mr,Dr=>({style:Object.assign(Object.assign({},Nr),Dr.style)})),kr=isPresetColor(Tt,!1),Fr=classNames(Vt==null?void 0:Vt.indicator,(rt=lr==null?void 0:lr.classNames)===null||rt===void 0?void 0:rt.indicator,{[`${cr}-status-dot`]:Sr,[`${cr}-status-${_t}`]:!!_t,[`${cr}-color-${Tt}`]:kr}),_r={};Tt&&!kr&&(_r.color=Tt,_r.background=Tt);const Br=classNames(cr,{[`${cr}-status`]:Sr,[`${cr}-not-a-wrapper`]:!$t,[`${cr}-rtl`]:er==="rtl"},Ht,Wt,lr==null?void 0:lr.className,(st=lr==null?void 0:lr.classNames)===null||st===void 0?void 0:st.root,Vt==null?void 0:Vt.root,fr,hr);if(!$t&&Sr){const Dr=Nr.color;return ur(reactExports.createElement("span",Object.assign({},Gt,{className:Br,style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.root),(ct=lr==null?void 0:lr.styles)===null||ct===void 0?void 0:ct.root),Nr)}),reactExports.createElement("span",{className:Fr,style:Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.indicator),(ut=lr==null?void 0:lr.styles)===null||ut===void 0?void 0:ut.indicator),_r)}),wt&&reactExports.createElement("span",{style:{color:Dr},className:`${cr}-status-text`},wt)))}return ur(reactExports.createElement("span",Object.assign({ref:et},Gt,{className:Br,style:Object.assign(Object.assign({},(ft=lr==null?void 0:lr.styles)===null||ft===void 0?void 0:ft.root),qt==null?void 0:qt.root)}),$t,reactExports.createElement(CSSMotion,{visible:!Er,motionName:`${cr}-zoom`,motionAppear:!1,motionDeadline:1e3},Dr=>{let{className:Xr,ref:Kr}=Dr;var Hr,Vr;const ln=Zt("scroll-number",xt),Qr=Cr.current,Zr=classNames(Vt==null?void 0:Vt.indicator,(Hr=lr==null?void 0:lr.classNames)===null||Hr===void 0?void 0:Hr.indicator,{[`${cr}-dot`]:Qr,[`${cr}-count`]:!Qr,[`${cr}-count-sm`]:jt==="small",[`${cr}-multiple-words`]:!Qr&&wr&&wr.toString().length>1,[`${cr}-status-${_t}`]:!!_t,[`${cr}-color-${Tt}`]:kr});let vn=Object.assign(Object.assign(Object.assign({},qt==null?void 0:qt.indicator),(Vr=lr==null?void 0:lr.styles)===null||Vr===void 0?void 0:Vr.indicator),Nr);return Tt&&!kr&&(vn=vn||{},vn.background=Tt),reactExports.createElement(ScrollNumber$1,{prefixCls:ln,show:!Er,motionClassName:Xr,className:Zr,count:wr,title:Rr,style:vn,key:"scrollNumber",ref:Kr},jr)}),Pr))},Badge=reactExports.forwardRef(InternalBadge);Badge.Ribbon=Ribbon$1;const Badge$1=Badge;var RightOutlined$7={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"};const RightOutlinedSvg=RightOutlined$7;var RightOutlined$5=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:RightOutlinedSvg}))};const RightOutlined$6=reactExports.forwardRef(RightOutlined$5);var IdContext=reactExports.createContext(null);function getMenuId(_e,et){return _e===void 0?null:"".concat(_e,"-").concat(et)}function useMenuId(_e){var et=reactExports.useContext(IdContext);return getMenuId(et,_e)}var _excluded$1w=["children","locked"],MenuContext$2=reactExports.createContext(null);function mergeProps(_e,et){var rt=_objectSpread2({},_e);return Object.keys(et).forEach(function(st){var ct=et[st];ct!==void 0&&(rt[st]=ct)}),rt}function InheritableContextProvider(_e){var et=_e.children,rt=_e.locked,st=_objectWithoutProperties$2(_e,_excluded$1w),ct=reactExports.useContext(MenuContext$2),ut=useMemo$1(function(){return mergeProps(ct,st)},[ct,st],function(ft,gt){return!rt&&(ft[0]!==gt[0]||!isEqual$1(ft[1],gt[1],!0))});return reactExports.createElement(MenuContext$2.Provider,{value:ut},et)}var EmptyList=[],PathRegisterContext=reactExports.createContext(null);function useMeasure(){return reactExports.useContext(PathRegisterContext)}var PathTrackerContext=reactExports.createContext(EmptyList);function useFullPath(_e){var et=reactExports.useContext(PathTrackerContext);return reactExports.useMemo(function(){return _e!==void 0?[].concat(_toConsumableArray$3(et),[_e]):et},[et,_e])}var PathUserContext=reactExports.createContext(null),PrivateContext=reactExports.createContext({});function focusable(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isVisible$1(_e)){var rt=_e.nodeName.toLowerCase(),st=["input","select","textarea","button"].includes(rt)||_e.isContentEditable||rt==="a"&&!!_e.getAttribute("href"),ct=_e.getAttribute("tabindex"),ut=Number(ct),ft=null;return ct&&!Number.isNaN(ut)?ft=ut:st&&ft===null&&(ft=0),st&&_e.disabled&&(ft=null),ft!==null&&(ft>=0||et&&ft<0)}return!1}function getFocusNodeList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=_toConsumableArray$3(_e.querySelectorAll("*")).filter(function(st){return focusable(st,et)});return focusable(_e,et)&&rt.unshift(_e),rt}var LEFT=KeyCode.LEFT,RIGHT=KeyCode.RIGHT,UP=KeyCode.UP,DOWN=KeyCode.DOWN,ENTER$1=KeyCode.ENTER,ESC$1=KeyCode.ESC,HOME=KeyCode.HOME,END=KeyCode.END,ArrowKeys=[UP,DOWN,LEFT,RIGHT];function getOffset$2(_e,et,rt,st){var ct,ut,ft,gt,xt="prev",$t="next",_t="children",wt="parent";if(_e==="inline"&&st===ENTER$1)return{inlineTrigger:!0};var Tt=(ct={},_defineProperty$c(ct,UP,xt),_defineProperty$c(ct,DOWN,$t),ct),Rt=(ut={},_defineProperty$c(ut,LEFT,rt?$t:xt),_defineProperty$c(ut,RIGHT,rt?xt:$t),_defineProperty$c(ut,DOWN,_t),_defineProperty$c(ut,ENTER$1,_t),ut),It=(ft={},_defineProperty$c(ft,UP,xt),_defineProperty$c(ft,DOWN,$t),_defineProperty$c(ft,ENTER$1,_t),_defineProperty$c(ft,ESC$1,wt),_defineProperty$c(ft,LEFT,rt?_t:wt),_defineProperty$c(ft,RIGHT,rt?wt:_t),ft),At={inline:Tt,horizontal:Rt,vertical:It,inlineSub:Tt,horizontalSub:It,verticalSub:It},jt=(gt=At["".concat(_e).concat(et?"":"Sub")])===null||gt===void 0?void 0:gt[st];switch(jt){case xt:return{offset:-1,sibling:!0};case $t:return{offset:1,sibling:!0};case wt:return{offset:-1,sibling:!1};case _t:return{offset:1,sibling:!1};default:return null}}function findContainerUL(_e){for(var et=_e;et;){if(et.getAttribute("data-menu-list"))return et;et=et.parentElement}return null}function getFocusElement(_e,et){for(var rt=_e||document.activeElement;rt;){if(et.has(rt))return rt;rt=rt.parentElement}return null}function getFocusableElements(_e,et){var rt=getFocusNodeList(_e,!0);return rt.filter(function(st){return et.has(st)})}function getNextFocusElement(_e,et,rt){var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!_e)return null;var ct=getFocusableElements(_e,et),ut=ct.length,ft=ct.findIndex(function(gt){return rt===gt});return st<0?ft===-1?ft=ut-1:ft-=1:st>0&&(ft+=1),ft=(ft+ut)%ut,ct[ft]}var refreshElements=function(et,rt){var st=new Set,ct=new Map,ut=new Map;return et.forEach(function(ft){var gt=document.querySelector("[data-menu-id='".concat(getMenuId(rt,ft),"']"));gt&&(st.add(gt),ut.set(gt,ft),ct.set(ft,gt))}),{elements:st,key2element:ct,element2key:ut}};function useAccessibility$1(_e,et,rt,st,ct,ut,ft,gt,xt,$t){var _t=reactExports.useRef(),wt=reactExports.useRef();wt.current=et;var Tt=function(){wrapperRaf.cancel(_t.current)};return reactExports.useEffect(function(){return function(){Tt()}},[]),function(Rt){var It=Rt.which;if([].concat(ArrowKeys,[ENTER$1,ESC$1,HOME,END]).includes(It)){var At=ut(),jt=refreshElements(At,st),Nt=jt,kt=Nt.elements,Ft=Nt.key2element,Ht=Nt.element2key,Wt=Ft.get(et),Vt=getFocusElement(Wt,kt),qt=Ht.get(Vt),Xt=getOffset$2(_e,ft(qt,!0).length===1,rt,It);if(!Xt&&It!==HOME&&It!==END)return;(ArrowKeys.includes(It)||[HOME,END].includes(It))&&Rt.preventDefault();var Gt=function(pr){if(pr){var dr=pr,yr=pr.querySelector("a");yr!=null&&yr.getAttribute("href")&&(dr=yr);var Sr=Ht.get(pr);gt(Sr),Tt(),_t.current=wrapperRaf(function(){wt.current===Sr&&dr.focus()})}};if([HOME,END].includes(It)||Xt.sibling||!Vt){var Zt;!Vt||_e==="inline"?Zt=ct.current:Zt=findContainerUL(Vt);var er,lr=getFocusableElements(Zt,kt);It===HOME?er=lr[0]:It===END?er=lr[lr.length-1]:er=getNextFocusElement(Zt,kt,Vt,Xt.offset),Gt(er)}else if(Xt.inlineTrigger)xt(qt);else if(Xt.offset>0)xt(qt,!0),Tt(),_t.current=wrapperRaf(function(){jt=refreshElements(At,st);var hr=Vt.getAttribute("aria-controls"),pr=document.getElementById(hr),dr=getNextFocusElement(pr,jt.elements);Gt(dr)},5);else if(Xt.offset<0){var cr=ft(qt,!0),ur=cr[cr.length-2],fr=Ft.get(ur);xt(ur,!1),Gt(fr)}}$t==null||$t(Rt)}}function nextSlice(_e){Promise.resolve().then(_e)}var PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function(et){return et.join(PATH_SPLIT)},getPathKeys=function(et){return et.split(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more";function useKeyRecords(){var _e=reactExports.useState({}),et=_slicedToArray$3(_e,2),rt=et[1],st=reactExports.useRef(new Map),ct=reactExports.useRef(new Map),ut=reactExports.useState([]),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1],$t=reactExports.useRef(0),_t=reactExports.useRef(!1),wt=function(){_t.current||rt({})},Tt=reactExports.useCallback(function(Ft,Ht){var Wt=getPathStr(Ht);ct.current.set(Wt,Ft),st.current.set(Ft,Wt),$t.current+=1;var Vt=$t.current;nextSlice(function(){Vt===$t.current&&wt()})},[]),Rt=reactExports.useCallback(function(Ft,Ht){var Wt=getPathStr(Ht);ct.current.delete(Wt),st.current.delete(Ft)},[]),It=reactExports.useCallback(function(Ft){xt(Ft)},[]),At=reactExports.useCallback(function(Ft,Ht){var Wt=st.current.get(Ft)||"",Vt=getPathKeys(Wt);return Ht&>.includes(Vt[0])&&Vt.unshift(OVERFLOW_KEY),Vt},[gt]),jt=reactExports.useCallback(function(Ft,Ht){return Ft.some(function(Wt){var Vt=At(Wt,!0);return Vt.includes(Ht)})},[At]),Nt=function(){var Ht=_toConsumableArray$3(st.current.keys());return gt.length&&Ht.push(OVERFLOW_KEY),Ht},kt=reactExports.useCallback(function(Ft){var Ht="".concat(st.current.get(Ft)).concat(PATH_SPLIT),Wt=new Set;return _toConsumableArray$3(ct.current.keys()).forEach(function(Vt){Vt.startsWith(Ht)&&Wt.add(ct.current.get(Vt))}),Wt},[]);return reactExports.useEffect(function(){return function(){_t.current=!0}},[]),{registerPath:Tt,unregisterPath:Rt,refreshOverflowKeys:It,isSubPathKey:jt,getKeyPath:At,getKeys:Nt,getSubPathKeys:kt}}function useMemoCallback(_e){var et=reactExports.useRef(_e);et.current=_e;var rt=reactExports.useCallback(function(){for(var st,ct=arguments.length,ut=new Array(ct),ft=0;ft1&&(kt.motionAppear=!1);var Ft=kt.onVisibleChanged;return kt.onVisibleChanged=function(Ht){return!Tt.current&&!Ht&&jt(!0),Ft==null?void 0:Ft(Ht)},At?null:reactExports.createElement(InheritableContextProvider,{mode:ut,locked:!Tt.current},reactExports.createElement(CSSMotion,_extends$b({visible:Nt},kt,{forceRender:xt,removeOnLeave:!1,leavedClassName:"".concat(gt,"-hidden")}),function(Ht){var Wt=Ht.className,Vt=Ht.style;return reactExports.createElement(SubMenuList,{id:et,className:Wt,style:Vt},ct)}))}var _excluded$1s=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_excluded2$o=["active"],InternalSubMenu=function(et){var rt,st=et.style,ct=et.className,ut=et.title,ft=et.eventKey;et.warnKey;var gt=et.disabled,xt=et.internalPopupClose,$t=et.children,_t=et.itemIcon,wt=et.expandIcon,Tt=et.popupClassName,Rt=et.popupOffset,It=et.popupStyle,At=et.onClick,jt=et.onMouseEnter,Nt=et.onMouseLeave,kt=et.onTitleClick,Ft=et.onTitleMouseEnter,Ht=et.onTitleMouseLeave,Wt=_objectWithoutProperties$2(et,_excluded$1s),Vt=useMenuId(ft),qt=reactExports.useContext(MenuContext$2),Xt=qt.prefixCls,Gt=qt.mode,Zt=qt.openKeys,er=qt.disabled,lr=qt.overflowDisabled,cr=qt.activeKey,ur=qt.selectedKeys,fr=qt.itemIcon,hr=qt.expandIcon,pr=qt.onItemClick,dr=qt.onOpenChange,yr=qt.onActive,Sr=reactExports.useContext(PrivateContext),br=Sr._internalRenderSubMenuItem,mr=reactExports.useContext(PathUserContext),Er=mr.isSubPathKey,Tr=useFullPath(),Mr="".concat(Xt,"-submenu"),Or=er||gt,wr=reactExports.useRef(),Cr=reactExports.useRef(),Nr=_t??fr,Rr=wt??hr,Pr=Zt.includes(ft),jr=!lr&&Pr,kr=Er(ur,ft),Fr=useActive$1(ft,Or,Ft,Ht),_r=Fr.active,Br=_objectWithoutProperties$2(Fr,_excluded2$o),Dr=reactExports.useState(!1),Xr=_slicedToArray$3(Dr,2),Kr=Xr[0],Hr=Xr[1],Vr=function(Cn){Or||Hr(Cn)},ln=function(Cn){Vr(!0),jt==null||jt({key:ft,domEvent:Cn})},Qr=function(Cn){Vr(!1),Nt==null||Nt({key:ft,domEvent:Cn})},Zr=reactExports.useMemo(function(){return _r||(Gt!=="inline"?Kr||Er([cr],ft):!1)},[Gt,_r,cr,Kr,ft,Er]),vn=useDirectionStyle(Tr.length),vr=function(Cn){Or||(kt==null||kt({key:ft,domEvent:Cn}),Gt==="inline"&&dr(ft,!Pr))},gr=useMemoCallback(function(hn){At==null||At(warnItemProp(hn)),pr(hn)}),$r=function(Cn){Gt!=="inline"&&dr(ft,Cn)},zr=function(){yr(ft)},qr=Vt&&"".concat(Vt,"-popup"),Wr=reactExports.createElement("div",_extends$b({role:"menuitem",style:vn,className:"".concat(Mr,"-title"),tabIndex:Or?null:-1,ref:wr,title:typeof ut=="string"?ut:null,"data-menu-id":lr&&Vt?null:Vt,"aria-expanded":jr,"aria-haspopup":!0,"aria-controls":qr,"aria-disabled":Or,onClick:vr,onFocus:zr},Br),ut,reactExports.createElement(Icon$a,{icon:Gt!=="horizontal"?Rr:void 0,props:_objectSpread2(_objectSpread2({},et),{},{isOpen:jr,isSubMenu:!0})},reactExports.createElement("i",{className:"".concat(Mr,"-arrow")}))),Gr=reactExports.useRef(Gt);if(Gt!=="inline"&&Tr.length>1?Gr.current="vertical":Gr.current=Gt,!lr){var dn=Gr.current;Wr=reactExports.createElement(PopupTrigger,{mode:dn,prefixCls:Mr,visible:!xt&&jr&&Gt!=="inline",popupClassName:Tt,popupOffset:Rt,popupStyle:It,popup:reactExports.createElement(InheritableContextProvider,{mode:dn==="horizontal"?"vertical":dn},reactExports.createElement(SubMenuList,{id:qr,ref:Cr},$t)),disabled:Or,onVisibleChange:$r},Wr)}var mn=reactExports.createElement(ForwardOverflow.Item,_extends$b({role:"none"},Wt,{component:"li",style:st,className:classNames(Mr,"".concat(Mr,"-").concat(Gt),ct,(rt={},_defineProperty$c(rt,"".concat(Mr,"-open"),jr),_defineProperty$c(rt,"".concat(Mr,"-active"),Zr),_defineProperty$c(rt,"".concat(Mr,"-selected"),kr),_defineProperty$c(rt,"".concat(Mr,"-disabled"),Or),rt)),onMouseEnter:ln,onMouseLeave:Qr}),Wr,!lr&&reactExports.createElement(InlineSubMenuList,{id:qr,open:jr,keyPath:Tr},$t));return br&&(mn=br(mn,et,{selected:kr,active:Zr,open:jr,disabled:Or})),reactExports.createElement(InheritableContextProvider,{onItemClick:gr,mode:Gt==="horizontal"?"vertical":Gt,itemIcon:Nr,expandIcon:Rr},mn)};function SubMenu$2(_e){var et=_e.eventKey,rt=_e.children,st=useFullPath(et),ct=parseChildren(rt,st),ut=useMeasure();reactExports.useEffect(function(){if(ut)return ut.registerPath(et,st),function(){ut.unregisterPath(et,st)}},[st]);var ft;return ut?ft=ct:ft=reactExports.createElement(InternalSubMenu,_e,ct),reactExports.createElement(PathTrackerContext.Provider,{value:st},ft)}var _excluded$1r=["className","title","eventKey","children"],_excluded2$n=["children"],InternalMenuItemGroup=function(et){var rt=et.className,st=et.title;et.eventKey;var ct=et.children,ut=_objectWithoutProperties$2(et,_excluded$1r),ft=reactExports.useContext(MenuContext$2),gt=ft.prefixCls,xt="".concat(gt,"-item-group");return reactExports.createElement("li",_extends$b({role:"presentation"},ut,{onClick:function(_t){return _t.stopPropagation()},className:classNames(xt,rt)}),reactExports.createElement("div",{role:"presentation",className:"".concat(xt,"-title"),title:typeof st=="string"?st:void 0},st),reactExports.createElement("ul",{role:"group",className:"".concat(xt,"-list")},ct))};function MenuItemGroup(_e){var et=_e.children,rt=_objectWithoutProperties$2(_e,_excluded2$n),st=useFullPath(rt.eventKey),ct=parseChildren(et,st),ut=useMeasure();return ut?ct:reactExports.createElement(InternalMenuItemGroup,omit$2(rt,["warnKey"]),ct)}function Divider$2(_e){var et=_e.className,rt=_e.style,st=reactExports.useContext(MenuContext$2),ct=st.prefixCls,ut=useMeasure();return ut?null:reactExports.createElement("li",{role:"separator",className:classNames("".concat(ct,"-item-divider"),et),style:rt})}var _excluded$1q=["label","children","key","type"];function convertItemsToNodes$2(_e){return(_e||[]).map(function(et,rt){if(et&&_typeof$e(et)==="object"){var st=et,ct=st.label,ut=st.children,ft=st.key,gt=st.type,xt=_objectWithoutProperties$2(st,_excluded$1q),$t=ft??"tmp-".concat(rt);return ut||gt==="group"?gt==="group"?reactExports.createElement(MenuItemGroup,_extends$b({key:$t},xt,{title:ct}),convertItemsToNodes$2(ut)):reactExports.createElement(SubMenu$2,_extends$b({key:$t},xt,{title:ct}),convertItemsToNodes$2(ut)):gt==="divider"?reactExports.createElement(Divider$2,_extends$b({key:$t},xt)):reactExports.createElement(MenuItem$2,_extends$b({key:$t},xt),ct)}return null}).filter(function(et){return et})}function parseItems(_e,et,rt){var st=_e;return et&&(st=convertItemsToNodes$2(et)),parseChildren(st,rt)}var _excluded$1p=["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"],EMPTY_LIST$2=[],Menu$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e,ut=ct.prefixCls,ft=ut===void 0?"rc-menu":ut,gt=ct.rootClassName,xt=ct.style,$t=ct.className,_t=ct.tabIndex,wt=_t===void 0?0:_t,Tt=ct.items,Rt=ct.children,It=ct.direction,At=ct.id,jt=ct.mode,Nt=jt===void 0?"vertical":jt,kt=ct.inlineCollapsed,Ft=ct.disabled,Ht=ct.disabledOverflow,Wt=ct.subMenuOpenDelay,Vt=Wt===void 0?.1:Wt,qt=ct.subMenuCloseDelay,Xt=qt===void 0?.1:qt,Gt=ct.forceSubMenuRender,Zt=ct.defaultOpenKeys,er=ct.openKeys,lr=ct.activeKey,cr=ct.defaultActiveFirst,ur=ct.selectable,fr=ur===void 0?!0:ur,hr=ct.multiple,pr=hr===void 0?!1:hr,dr=ct.defaultSelectedKeys,yr=ct.selectedKeys,Sr=ct.onSelect,br=ct.onDeselect,mr=ct.inlineIndent,Er=mr===void 0?24:mr,Tr=ct.motion,Mr=ct.defaultMotions,Or=ct.triggerSubMenuAction,wr=Or===void 0?"hover":Or,Cr=ct.builtinPlacements,Nr=ct.itemIcon,Rr=ct.expandIcon,Pr=ct.overflowedIndicator,jr=Pr===void 0?"...":Pr,kr=ct.overflowedIndicatorPopupClassName,Fr=ct.getPopupContainer,_r=ct.onClick,Br=ct.onOpenChange,Dr=ct.onKeyDown;ct.openAnimation,ct.openTransitionName;var Xr=ct._internalRenderMenuItem,Kr=ct._internalRenderSubMenuItem,Hr=_objectWithoutProperties$2(ct,_excluded$1p),Vr=reactExports.useMemo(function(){return parseItems(Rt,Tt,EMPTY_LIST$2)},[Rt,Tt]),ln=reactExports.useState(!1),Qr=_slicedToArray$3(ln,2),Zr=Qr[0],vn=Qr[1],vr=reactExports.useRef(),gr=useUUID(At),$r=It==="rtl",zr=useMergedState(Zt,{value:er,postState:function(bo){return bo||EMPTY_LIST$2}}),qr=_slicedToArray$3(zr,2),Wr=qr[0],Gr=qr[1],dn=function(bo){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Dn(){Gr(bo),Br==null||Br(bo)}Fn?reactDomExports.flushSync(Dn):Dn()},mn=reactExports.useState(Wr),hn=_slicedToArray$3(mn,2),Cn=hn[0],Rn=hn[1],kn=reactExports.useRef(!1),Bn=reactExports.useMemo(function(){return(Nt==="inline"||Nt==="vertical")&&kt?["vertical",kt]:[Nt,!1]},[Nt,kt]),Yn=_slicedToArray$3(Bn,2),Gn=Yn[0],io=Yn[1],pn=Gn==="inline",gn=reactExports.useState(Gn),yn=_slicedToArray$3(gn,2),_n=yn[0],Tn=yn[1],Nn=reactExports.useState(io),On=_slicedToArray$3(Nn,2),$n=On[0],Sn=On[1];reactExports.useEffect(function(){Tn(Gn),Sn(io),kn.current&&(pn?Gr(Cn):dn(EMPTY_LIST$2))},[Gn,io]);var xn=reactExports.useState(0),In=_slicedToArray$3(xn,2),jn=In[0],Hn=In[1],qn=jn>=Vr.length-1||_n!=="horizontal"||Ht;reactExports.useEffect(function(){pn&&Rn(Wr)},[Wr]),reactExports.useEffect(function(){return kn.current=!0,function(){kn.current=!1}},[]);var Jn=useKeyRecords(),ao=Jn.registerPath,Vn=Jn.unregisterPath,Wn=Jn.refreshOverflowKeys,zn=Jn.isSubPathKey,wn=Jn.getKeyPath,cn=Jn.getKeys,Pn=Jn.getSubPathKeys,An=reactExports.useMemo(function(){return{registerPath:ao,unregisterPath:Vn}},[ao,Vn]),Xn=reactExports.useMemo(function(){return{isSubPathKey:zn}},[zn]);reactExports.useEffect(function(){Wn(qn?EMPTY_LIST$2:Vr.slice(jn+1).map(function($o){return $o.key}))},[jn,qn]);var eo=useMergedState(lr||cr&&((rt=Vr[0])===null||rt===void 0?void 0:rt.key),{value:lr}),ro=_slicedToArray$3(eo,2),Kn=ro[0],co=ro[1],uo=useMemoCallback(function($o){co($o)}),vo=useMemoCallback(function(){co(void 0)});reactExports.useImperativeHandle(et,function(){return{list:vr.current,focus:function(bo){var Fn,Dn=cn(),po=refreshElements(Dn,gr),To=po.elements,fo=po.key2element,Qn=po.element2key,oo=getFocusableElements(vr.current,To),Oo=Kn??(oo[0]?Qn.get(oo[0]):(Fn=Vr.find(function(go){return!go.props.disabled}))===null||Fn===void 0?void 0:Fn.key),Mo=fo.get(Oo);if(Oo&&Mo){var Lo;Mo==null||(Lo=Mo.focus)===null||Lo===void 0||Lo.call(Mo,bo)}}}});var Bo=useMergedState(dr||[],{value:yr,postState:function(bo){return Array.isArray(bo)?bo:bo==null?EMPTY_LIST$2:[bo]}}),Ho=_slicedToArray$3(Bo,2),so=Ho[0],Ro=Ho[1],Po=function(bo){if(fr){var Fn=bo.key,Dn=so.includes(Fn),po;pr?Dn?po=so.filter(function(fo){return fo!==Fn}):po=[].concat(_toConsumableArray$3(so),[Fn]):po=[Fn],Ro(po);var To=_objectSpread2(_objectSpread2({},bo),{},{selectedKeys:po});Dn?br==null||br(To):Sr==null||Sr(To)}!pr&&Wr.length&&_n!=="inline"&&dn(EMPTY_LIST$2)},Ao=useMemoCallback(function($o){_r==null||_r(warnItemProp($o)),Po($o)}),Wo=useMemoCallback(function($o,bo){var Fn=Wr.filter(function(po){return po!==$o});if(bo)Fn.push($o);else if(_n!=="inline"){var Dn=Pn($o);Fn=Fn.filter(function(po){return!Dn.has(po)})}isEqual$1(Wr,Fn,!0)||dn(Fn,!0)}),qo=function(bo,Fn){var Dn=Fn??!Wr.includes(bo);Wo(bo,Dn)},os=useAccessibility$1(_n,Kn,$r,gr,vr,cn,wn,co,qo,Dr);reactExports.useEffect(function(){vn(!0)},[]);var No=reactExports.useMemo(function(){return{_internalRenderMenuItem:Xr,_internalRenderSubMenuItem:Kr}},[Xr,Kr]),ss=_n!=="horizontal"||Ht?Vr:Vr.map(function($o,bo){return reactExports.createElement(InheritableContextProvider,{key:$o.key,overflowDisabled:bo>jn},$o)}),_i=reactExports.createElement(ForwardOverflow,_extends$b({id:At,ref:vr,prefixCls:"".concat(ft,"-overflow"),component:"ul",itemComponent:MenuItem$2,className:classNames(ft,"".concat(ft,"-root"),"".concat(ft,"-").concat(_n),$t,(st={},_defineProperty$c(st,"".concat(ft,"-inline-collapsed"),$n),_defineProperty$c(st,"".concat(ft,"-rtl"),$r),st),gt),dir:It,style:xt,role:"menu",tabIndex:wt,data:ss,renderRawItem:function(bo){return bo},renderRawRest:function(bo){var Fn=bo.length,Dn=Fn?Vr.slice(-Fn):null;return reactExports.createElement(SubMenu$2,{eventKey:OVERFLOW_KEY,title:jr,disabled:qn,internalPopupClose:Fn===0,popupClassName:kr},Dn)},maxCount:_n!=="horizontal"||Ht?ForwardOverflow.INVALIDATE:ForwardOverflow.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(bo){Hn(bo)},onKeyDown:os},Hr));return reactExports.createElement(PrivateContext.Provider,{value:No},reactExports.createElement(IdContext.Provider,{value:gr},reactExports.createElement(InheritableContextProvider,{prefixCls:ft,rootClassName:gt,mode:_n,openKeys:Wr,rtl:$r,disabled:Ft,motion:Zr?Tr:null,defaultMotions:Zr?Mr:null,activeKey:Kn,onActive:uo,onInactive:vo,selectedKeys:so,inlineIndent:Er,subMenuOpenDelay:Vt,subMenuCloseDelay:Xt,forceSubMenuRender:Gt,builtinPlacements:Cr,triggerSubMenuAction:wr,getPopupContainer:Fr,itemIcon:Nr,expandIcon:Rr,onItemClick:Ao,onOpenChange:Wo},reactExports.createElement(PathUserContext.Provider,{value:Xn},_i),reactExports.createElement("div",{style:{display:"none"},"aria-hidden":!0},reactExports.createElement(PathRegisterContext.Provider,{value:An},Vr)))))}),ExportMenu=Menu$2;ExportMenu.Item=MenuItem$2;ExportMenu.SubMenu=SubMenu$2;ExportMenu.ItemGroup=MenuItemGroup;ExportMenu.Divider=Divider$2;var BarsOutlined$5={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"};const BarsOutlinedSvg=BarsOutlined$5;var BarsOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:BarsOutlinedSvg}))};const BarsOutlined$4=reactExports.forwardRef(BarsOutlined$3);var LeftOutlined$5={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"};const LeftOutlinedSvg=LeftOutlined$5;var LeftOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:LeftOutlinedSvg}))};const LeftOutlined$4=reactExports.forwardRef(LeftOutlined$3),isNumeric$1=_e=>!isNaN(parseFloat(_e))&&isFinite(_e),LayoutContext=reactExports.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var __rest$R=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let _e=0;return function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _e+=1,`${et}${_e}`}})(),Sider$7=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,className:st,trigger:ct,children:ut,defaultCollapsed:ft=!1,theme:gt="dark",style:xt={},collapsible:$t=!1,reverseArrow:_t=!1,width:wt=200,collapsedWidth:Tt=80,zeroWidthTriggerStyle:Rt,breakpoint:It,onCollapse:At,onBreakpoint:jt}=_e,Nt=__rest$R(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=reactExports.useContext(LayoutContext),[Ft,Ht]=reactExports.useState("collapsed"in _e?_e.collapsed:ft),[Wt,Vt]=reactExports.useState(!1);reactExports.useEffect(()=>{"collapsed"in _e&&Ht(_e.collapsed)},[_e.collapsed]);const qt=(cr,ur)=>{"collapsed"in _e||Ht(cr),At==null||At(cr,ur)},Xt=reactExports.useRef();Xt.current=cr=>{Vt(cr.matches),jt==null||jt(cr.matches),Ft!==cr.matches&&qt(cr.matches,"responsive")},reactExports.useEffect(()=>{function cr(fr){return Xt.current(fr)}let ur;if(typeof window<"u"){const{matchMedia:fr}=window;if(fr&&It&&It in dimensionMaxMap){ur=fr(`screen and (max-width: ${dimensionMaxMap[It]})`);try{ur.addEventListener("change",cr)}catch{ur.addListener(cr)}cr(ur)}}return()=>{try{ur==null||ur.removeEventListener("change",cr)}catch{ur==null||ur.removeListener(cr)}}},[It]),reactExports.useEffect(()=>{const cr=generateId("ant-sider-");return kt.addSider(cr),()=>kt.removeSider(cr)},[]);const Gt=()=>{qt(!Ft,"clickTrigger")},{getPrefixCls:Zt}=reactExports.useContext(ConfigContext$1),er=()=>{const cr=Zt("layout-sider",rt),ur=omit$2(Nt,["collapsed"]),fr=Ft?Tt:wt,hr=isNumeric$1(fr)?`${fr}px`:String(fr),pr=parseFloat(String(Tt||0))===0?reactExports.createElement("span",{onClick:Gt,className:classNames(`${cr}-zero-width-trigger`,`${cr}-zero-width-trigger-${_t?"right":"left"}`),style:Rt},ct||reactExports.createElement(BarsOutlined$4,null)):null,Sr={expanded:_t?reactExports.createElement(RightOutlined$6,null):reactExports.createElement(LeftOutlined$4,null),collapsed:_t?reactExports.createElement(LeftOutlined$4,null):reactExports.createElement(RightOutlined$6,null)}[Ft?"collapsed":"expanded"],br=ct!==null?pr||reactExports.createElement("div",{className:`${cr}-trigger`,onClick:Gt,style:{width:hr}},ct||Sr):null,mr=Object.assign(Object.assign({},xt),{flex:`0 0 ${hr}`,maxWidth:hr,minWidth:hr,width:hr}),Er=classNames(cr,`${cr}-${gt}`,{[`${cr}-collapsed`]:!!Ft,[`${cr}-has-trigger`]:$t&&ct!==null&&!pr,[`${cr}-below`]:!!Wt,[`${cr}-zero-width`]:parseFloat(hr)===0},st);return reactExports.createElement("aside",Object.assign({className:Er},ur,{style:mr,ref:et}),reactExports.createElement("div",{className:`${cr}-children`},ut),$t||Wt&&pr?br:null)},lr=reactExports.useMemo(()=>({siderCollapsed:Ft}),[Ft]);return reactExports.createElement(SiderContext$1.Provider,{value:lr},er())}),Sider$8=Sider$7;var EllipsisOutlined$2={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"};const EllipsisOutlinedSvg=EllipsisOutlined$2;var EllipsisOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EllipsisOutlinedSvg}))};const EllipsisOutlined$1=reactExports.forwardRef(EllipsisOutlined);var __rest$Q=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,className:rt,dashed:st}=_e,ct=__rest$Q(_e,["prefixCls","className","dashed"]),{getPrefixCls:ut}=reactExports.useContext(ConfigContext$1),ft=ut("menu",et),gt=classNames({[`${ft}-item-divider-dashed`]:!!st},rt);return reactExports.createElement(Divider$2,Object.assign({className:gt},ct))},MenuDivider$1=MenuDivider,MenuContext=reactExports.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),MenuContext$1=MenuContext,MenuItem=_e=>{var et;const{className:rt,children:st,icon:ct,title:ut,danger:ft}=_e,{prefixCls:gt,firstLevel:xt,direction:$t,disableMenuItemTitleTooltip:_t,inlineCollapsed:wt}=reactExports.useContext(MenuContext$1),Tt=kt=>{const Ft=reactExports.createElement("span",{className:`${gt}-title-content`},st);return(!ct||isValidElement(st)&&st.type==="span")&&st&&kt&&xt&&typeof st=="string"?reactExports.createElement("div",{className:`${gt}-inline-collapsed-noicon`},st.charAt(0)):Ft},{siderCollapsed:Rt}=reactExports.useContext(SiderContext$1);let It=ut;typeof ut>"u"?It=xt?st:"":ut===!1&&(It="");const At={title:It};!Rt&&!wt&&(At.title=null,At.open=!1);const jt=toArray$e(st).length;let Nt=reactExports.createElement(MenuItem$2,Object.assign({},omit$2(_e,["title","icon","danger"]),{className:classNames({[`${gt}-item-danger`]:ft,[`${gt}-item-only-child`]:(ct?jt+1:jt)===1},rt),title:typeof ut=="string"?ut:void 0}),cloneElement(ct,{className:classNames(isValidElement(ct)?(et=ct.props)===null||et===void 0?void 0:et.className:"",`${gt}-item-icon`)}),Tt(wt));return _t||(Nt=reactExports.createElement(Tooltip$1,Object.assign({},At,{placement:$t==="rtl"?"left":"right",overlayClassName:`${gt}-inline-collapsed-tooltip`}),Nt)),Nt},Item$6=MenuItem,SubMenu=_e=>{var et;const{popupClassName:rt,icon:st,title:ct,theme:ut}=_e,ft=reactExports.useContext(MenuContext$1),{prefixCls:gt,inlineCollapsed:xt,theme:$t}=ft,_t=useFullPath();let wt;if(!st)wt=xt&&!_t.length&&ct&&typeof ct=="string"?reactExports.createElement("div",{className:`${gt}-inline-collapsed-noicon`},ct.charAt(0)):reactExports.createElement("span",{className:`${gt}-title-content`},ct);else{const It=isValidElement(ct)&&ct.type==="span";wt=reactExports.createElement(reactExports.Fragment,null,cloneElement(st,{className:classNames(isValidElement(st)?(et=st.props)===null||et===void 0?void 0:et.className:"",`${gt}-item-icon`)}),It?ct:reactExports.createElement("span",{className:`${gt}-title-content`},ct))}const Tt=reactExports.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]),[Rt]=useZIndex("Menu");return reactExports.createElement(MenuContext$1.Provider,{value:Tt},reactExports.createElement(SubMenu$2,Object.assign({},omit$2(_e,["icon"]),{title:wt,popupClassName:classNames(gt,rt,`${gt}-${ut||$t}`),popupStyle:{zIndex:Rt}})))},SubMenu$1=SubMenu;var __rest$P=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(et&&typeof et=="object"){const st=et,{label:ct,children:ut,key:ft,type:gt}=st,xt=__rest$P(st,["label","children","key","type"]),$t=ft??`tmp-${rt}`;return ut||gt==="group"?gt==="group"?reactExports.createElement(MenuItemGroup,Object.assign({key:$t},xt,{title:ct}),convertItemsToNodes$1(ut)):reactExports.createElement(SubMenu$1,Object.assign({key:$t},xt,{title:ct}),convertItemsToNodes$1(ut)):gt==="divider"?reactExports.createElement(MenuDivider$1,Object.assign({key:$t},xt)):reactExports.createElement(Item$6,Object.assign({key:$t},xt),ct)}return null}).filter(et=>et)}function useItems$2(_e){return reactExports.useMemo(()=>_e&&convertItemsToNodes$1(_e),[_e])}const OverrideContext=reactExports.createContext(null),OverrideContext$1=OverrideContext,getHorizontalStyle=_e=>{const{componentCls:et,motionDurationSlow:rt,horizontalLineHeight:st,colorSplit:ct,lineWidth:ut,lineType:ft,itemPaddingInline:gt}=_e;return{[`${et}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${unit$1(ut)} ${ft} ${ct}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${et}-item, ${et}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:gt},[`> ${et}-item:hover, > ${et}-item-active, > ${et}-submenu ${et}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${et}-item, ${et}-submenu-title`]:{transition:[`border-color ${rt}`,`background ${rt}`].join(",")},[`${et}-submenu-arrow`]:{display:"none"}}}},getRTLStyle=_e=>{let{componentCls:et,menuArrowOffset:rt,calc:st}=_e;return{[`${et}-rtl`]:{direction:"rtl"},[`${et}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${et}-rtl${et}-vertical, - ${et}-submenu-rtl ${et}-vertical`]:{[`${et}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit$1(st(rt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit$1(rt)})`}}}}},accessibilityFocus=_e=>Object.assign({},genFocusOutline(_e)),getThemeStyle=(_e,et)=>{const{componentCls:rt,itemColor:st,itemSelectedColor:ct,groupTitleColor:ut,itemBg:ft,subMenuItemBg:gt,itemSelectedBg:xt,activeBarHeight:$t,activeBarWidth:_t,activeBarBorderWidth:wt,motionDurationSlow:Tt,motionEaseInOut:Rt,motionEaseOut:It,itemPaddingInline:At,motionDurationMid:jt,itemHoverColor:Nt,lineType:kt,colorSplit:Ft,itemDisabledColor:Ht,dangerItemColor:Wt,dangerItemHoverColor:Vt,dangerItemSelectedColor:qt,dangerItemActiveBg:Gt,dangerItemSelectedBg:Xt,popupBg:Zt,itemHoverBg:lr,itemActiveBg:er,menuSubMenuBg:cr,horizontalItemSelectedColor:ur,horizontalItemSelectedBg:pr,horizontalItemBorderRadius:hr,horizontalItemHoverBg:fr}=_e;return{[`${rt}-${et}, ${rt}-${et} > ${rt}`]:{color:st,background:ft,[`&${rt}-root:focus-visible`]:Object.assign({},accessibilityFocus(_e)),[`${rt}-item-group-title`]:{color:ut},[`${rt}-submenu-selected`]:{[`> ${rt}-submenu-title`]:{color:ct}},[`${rt}-item, ${rt}-submenu-title`]:{color:st,[`&:not(${rt}-item-disabled):focus-visible`]:Object.assign({},accessibilityFocus(_e))},[`${rt}-item-disabled, ${rt}-submenu-disabled`]:{color:`${Ht} !important`},[`${rt}-item:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{[`&:hover, > ${rt}-submenu-title:hover`]:{color:Nt}},[`&:not(${rt}-horizontal)`]:{[`${rt}-item:not(${rt}-item-selected)`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:er}},[`${rt}-submenu-title`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:er}}},[`${rt}-item-danger`]:{color:Wt,[`&${rt}-item:hover`]:{[`&:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{color:Vt}},[`&${rt}-item:active`]:{background:Gt}},[`${rt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${rt}-item-selected`]:{color:ct,[`&${rt}-item-danger`]:{color:qt},"a, a:hover":{color:"inherit"}},[`& ${rt}-item-selected`]:{backgroundColor:xt,[`&${rt}-item-danger`]:{backgroundColor:Xt}},[`&${rt}-submenu > ${rt}`]:{backgroundColor:cr},[`&${rt}-popup > ${rt}`]:{backgroundColor:Zt},[`&${rt}-submenu-popup > ${rt}`]:{backgroundColor:Zt},[`&${rt}-horizontal`]:Object.assign(Object.assign({},et==="dark"?{borderBottom:0}:{}),{[`> ${rt}-item, > ${rt}-submenu`]:{top:wt,marginTop:_e.calc(wt).mul(-1).equal(),marginBottom:0,borderRadius:hr,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${unit$1($t)} solid transparent`,transition:`border-color ${Tt} ${Rt}`,content:'""'},"&:hover, &-active, &-open":{background:fr,"&::after":{borderBottomWidth:$t,borderBottomColor:ur}},"&-selected":{color:ur,backgroundColor:pr,"&:hover":{backgroundColor:pr},"&::after":{borderBottomWidth:$t,borderBottomColor:ur}}}}),[`&${rt}-root`]:{[`&${rt}-inline, &${rt}-vertical`]:{borderInlineEnd:`${unit$1(wt)} ${kt} ${Ft}`}},[`&${rt}-inline`]:{[`${rt}-sub${rt}-inline`]:{background:gt},[`${rt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit$1(_t)} solid ${ct}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${jt} ${It}`,`opacity ${jt} ${It}`].join(","),content:'""'},[`&${rt}-item-danger`]:{"&::after":{borderInlineEndColor:qt}}},[`${rt}-selected, ${rt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${jt} ${Rt}`,`opacity ${jt} ${Rt}`].join(",")}}}}}},getVerticalInlineStyle=_e=>{const{componentCls:et,itemHeight:rt,itemMarginInline:st,padding:ct,menuArrowSize:ut,marginXS:ft,itemMarginBlock:gt,itemWidth:xt}=_e,$t=_e.calc(ut).add(ct).add(ft).equal();return{[`${et}-item`]:{position:"relative",overflow:"hidden"},[`${et}-item, ${et}-submenu-title`]:{height:rt,lineHeight:unit$1(rt),paddingInline:ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:gt,width:xt},[`> ${et}-item, + ${et}-submenu-rtl ${et}-vertical`]:{[`${et}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit$1(st(rt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit$1(rt)})`}}}}},accessibilityFocus=_e=>Object.assign({},genFocusOutline(_e)),getThemeStyle=(_e,et)=>{const{componentCls:rt,itemColor:st,itemSelectedColor:ct,groupTitleColor:ut,itemBg:ft,subMenuItemBg:gt,itemSelectedBg:xt,activeBarHeight:$t,activeBarWidth:_t,activeBarBorderWidth:wt,motionDurationSlow:Tt,motionEaseInOut:Rt,motionEaseOut:It,itemPaddingInline:At,motionDurationMid:jt,itemHoverColor:Nt,lineType:kt,colorSplit:Ft,itemDisabledColor:Ht,dangerItemColor:Wt,dangerItemHoverColor:Vt,dangerItemSelectedColor:qt,dangerItemActiveBg:Xt,dangerItemSelectedBg:Gt,popupBg:Zt,itemHoverBg:er,itemActiveBg:lr,menuSubMenuBg:cr,horizontalItemSelectedColor:ur,horizontalItemSelectedBg:fr,horizontalItemBorderRadius:hr,horizontalItemHoverBg:pr}=_e;return{[`${rt}-${et}, ${rt}-${et} > ${rt}`]:{color:st,background:ft,[`&${rt}-root:focus-visible`]:Object.assign({},accessibilityFocus(_e)),[`${rt}-item-group-title`]:{color:ut},[`${rt}-submenu-selected`]:{[`> ${rt}-submenu-title`]:{color:ct}},[`${rt}-item, ${rt}-submenu-title`]:{color:st,[`&:not(${rt}-item-disabled):focus-visible`]:Object.assign({},accessibilityFocus(_e))},[`${rt}-item-disabled, ${rt}-submenu-disabled`]:{color:`${Ht} !important`},[`${rt}-item:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{[`&:hover, > ${rt}-submenu-title:hover`]:{color:Nt}},[`&:not(${rt}-horizontal)`]:{[`${rt}-item:not(${rt}-item-selected)`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:lr}},[`${rt}-submenu-title`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:lr}}},[`${rt}-item-danger`]:{color:Wt,[`&${rt}-item:hover`]:{[`&:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{color:Vt}},[`&${rt}-item:active`]:{background:Xt}},[`${rt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${rt}-item-selected`]:{color:ct,[`&${rt}-item-danger`]:{color:qt},"a, a:hover":{color:"inherit"}},[`& ${rt}-item-selected`]:{backgroundColor:xt,[`&${rt}-item-danger`]:{backgroundColor:Gt}},[`&${rt}-submenu > ${rt}`]:{backgroundColor:cr},[`&${rt}-popup > ${rt}`]:{backgroundColor:Zt},[`&${rt}-submenu-popup > ${rt}`]:{backgroundColor:Zt},[`&${rt}-horizontal`]:Object.assign(Object.assign({},et==="dark"?{borderBottom:0}:{}),{[`> ${rt}-item, > ${rt}-submenu`]:{top:wt,marginTop:_e.calc(wt).mul(-1).equal(),marginBottom:0,borderRadius:hr,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${unit$1($t)} solid transparent`,transition:`border-color ${Tt} ${Rt}`,content:'""'},"&:hover, &-active, &-open":{background:pr,"&::after":{borderBottomWidth:$t,borderBottomColor:ur}},"&-selected":{color:ur,backgroundColor:fr,"&:hover":{backgroundColor:fr},"&::after":{borderBottomWidth:$t,borderBottomColor:ur}}}}),[`&${rt}-root`]:{[`&${rt}-inline, &${rt}-vertical`]:{borderInlineEnd:`${unit$1(wt)} ${kt} ${Ft}`}},[`&${rt}-inline`]:{[`${rt}-sub${rt}-inline`]:{background:gt},[`${rt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit$1(_t)} solid ${ct}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${jt} ${It}`,`opacity ${jt} ${It}`].join(","),content:'""'},[`&${rt}-item-danger`]:{"&::after":{borderInlineEndColor:qt}}},[`${rt}-selected, ${rt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${jt} ${Rt}`,`opacity ${jt} ${Rt}`].join(",")}}}}}},getVerticalInlineStyle=_e=>{const{componentCls:et,itemHeight:rt,itemMarginInline:st,padding:ct,menuArrowSize:ut,marginXS:ft,itemMarginBlock:gt,itemWidth:xt}=_e,$t=_e.calc(ut).add(ct).add(ft).equal();return{[`${et}-item`]:{position:"relative",overflow:"hidden"},[`${et}-item, ${et}-submenu-title`]:{height:rt,lineHeight:unit$1(rt),paddingInline:ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:gt,width:xt},[`> ${et}-item, > ${et}-submenu > ${et}-submenu-title`]:{height:rt,lineHeight:unit$1(rt)},[`${et}-item-group-list ${et}-submenu-title, ${et}-submenu-title`]:{paddingInlineEnd:$t}}},getVerticalStyle=_e=>{const{componentCls:et,iconCls:rt,itemHeight:st,colorTextLightSolid:ct,dropdownWidth:ut,controlHeightLG:ft,motionDurationMid:gt,motionEaseOut:xt,paddingXL:$t,itemMarginInline:_t,fontSizeLG:wt,motionDurationSlow:Tt,paddingXS:Rt,boxShadowSecondary:It,collapsedWidth:At,collapsedIconSize:jt}=_e,Nt={height:st,lineHeight:unit$1(st),listStylePosition:"inside",listStyleType:"disc"};return[{[et]:{"&-inline, &-vertical":Object.assign({[`&${et}-root`]:{boxShadow:"none"}},getVerticalInlineStyle(_e))},[`${et}-submenu-popup`]:{[`${et}-vertical`]:Object.assign(Object.assign({},getVerticalInlineStyle(_e)),{boxShadow:It})}},{[`${et}-submenu-popup ${et}-vertical${et}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${unit$1(_e.calc(ft).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${et}-inline`]:{width:"100%",[`&${et}-root`]:{[`${et}-item, ${et}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Tt}`,`background ${Tt}`,`padding ${gt} ${xt}`].join(","),[`> ${et}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${et}-sub${et}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${et}-submenu > ${et}-submenu-title`]:Nt,[`& ${et}-item-group-title`]:{paddingInlineStart:$t}},[`${et}-item`]:Nt}},{[`${et}-inline-collapsed`]:{width:At,[`&${et}-root`]:{[`${et}-item, ${et}-submenu ${et}-submenu-title`]:{[`> ${et}-inline-collapsed-noicon`]:{fontSize:wt,textAlign:"center"}}},[`> ${et}-item, > ${et}-item-group > ${et}-item-group-list > ${et}-item, @@ -266,8 +266,8 @@ html body { ${et}-submenu-arrow, ${et}-submenu-expand-icon `]:{opacity:0},[`${et}-item-icon, ${rt}`]:{margin:0,fontSize:jt,lineHeight:unit$1(st),"+ span":{display:"inline-block",opacity:0}}},[`${et}-item-icon, ${rt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${et}-item-icon, ${rt}`]:{display:"none"},"a, a:hover":{color:ct}},[`${et}-item-group-title`]:Object.assign(Object.assign({},textEllipsis),{paddingInline:Rt})}}]},genMenuItemStyle=_e=>{const{componentCls:et,motionDurationSlow:rt,motionDurationMid:st,motionEaseInOut:ct,motionEaseOut:ut,iconCls:ft,iconSize:gt,iconMarginInlineEnd:xt}=_e;return{[`${et}-item, ${et}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${rt}`,`background ${rt}`,`padding ${rt} ${ct}`].join(","),[`${et}-item-icon, ${ft}`]:{minWidth:gt,fontSize:gt,transition:[`font-size ${st} ${ut}`,`margin ${rt} ${ct}`,`color ${rt}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${rt} ${ct}`,`margin ${rt}`,`color ${rt}`].join(",")}},[`${et}-item-icon`]:Object.assign({},resetIcon()),[`&${et}-item-only-child`]:{[`> ${ft}, > ${et}-item-icon`]:{marginInlineEnd:0}}},[`${et}-item-disabled, ${et}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${et}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},genSubMenuArrowStyle=_e=>{const{componentCls:et,motionDurationSlow:rt,motionEaseInOut:st,borderRadius:ct,menuArrowSize:ut,menuArrowOffset:ft}=_e;return{[`${et}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:_e.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${rt} ${st}, opacity ${rt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:_e.calc(ut).mul(.6).equal(),height:_e.calc(ut).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ct,transition:[`background ${rt} ${st}`,`transform ${rt} ${st}`,`top ${rt} ${st}`,`color ${rt} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit$1(_e.calc(ft).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit$1(ft)})`}}}}},getBaseStyle=_e=>{const{antCls:et,componentCls:rt,fontSize:st,motionDurationSlow:ct,motionDurationMid:ut,motionEaseInOut:ft,paddingXS:gt,padding:xt,colorSplit:$t,lineWidth:_t,zIndexPopup:wt,borderRadiusLG:Tt,subMenuItemBorderRadius:Rt,menuArrowSize:It,menuArrowOffset:At,lineType:jt,groupTitleLineHeight:Nt,groupTitleFontSize:kt}=_e;return[{"":{[`${rt}`]:Object.assign(Object.assign({},clearFix()),{"&-hidden":{display:"none"}})},[`${rt}-submenu-hidden`]:{display:"none"}},{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),clearFix()),{marginBottom:0,paddingInlineStart:0,fontSize:st,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ct} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${rt}-item`]:{flex:"none"}},[`${rt}-item, ${rt}-submenu, ${rt}-submenu-title`]:{borderRadius:_e.itemBorderRadius},[`${rt}-item-group-title`]:{padding:`${unit$1(gt)} ${unit$1(xt)}`,fontSize:kt,lineHeight:Nt,transition:`all ${ct}`},[`&-horizontal ${rt}-submenu`]:{transition:[`border-color ${ct} ${ft}`,`background ${ct} ${ft}`].join(",")},[`${rt}-submenu, ${rt}-submenu-inline`]:{transition:[`border-color ${ct} ${ft}`,`background ${ct} ${ft}`,`padding ${ut} ${ft}`].join(",")},[`${rt}-submenu ${rt}-sub`]:{cursor:"initial",transition:[`background ${ct} ${ft}`,`padding ${ct} ${ft}`].join(",")},[`${rt}-title-content`]:{transition:`color ${ct}`,[`> ${et}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${rt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${rt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$t,borderStyle:jt,borderWidth:0,borderTopWidth:_t,marginBlock:_t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),genMenuItemStyle(_e)),{[`${rt}-item-group`]:{[`${rt}-item-group-list`]:{margin:0,padding:0,[`${rt}-item, ${rt}-submenu-title`]:{paddingInline:`${unit$1(_e.calc(st).mul(2).equal())} ${unit$1(xt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:wt,borderRadius:Tt,boxShadow:"none",transformOrigin:"0 0",[`&${rt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${rt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Tt},genMenuItemStyle(_e)),genSubMenuArrowStyle(_e)),{[`${rt}-item, ${rt}-submenu > ${rt}-submenu-title`]:{borderRadius:Rt},[`${rt}-submenu-title::after`]:{transition:`transform ${ct} ${ft}`}})},"\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}}}),genSubMenuArrowStyle(_e)),{[`&-inline-collapsed ${rt}-submenu-arrow, - &-inline ${rt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit$1(At)})`},"&::after":{transform:`rotate(45deg) translateX(${unit$1(_e.calc(At).mul(-1).equal())})`}},[`${rt}-submenu-open${rt}-submenu-inline > ${rt}-submenu-title > ${rt}-submenu-arrow`]:{transform:`translateY(${unit$1(_e.calc(It).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit$1(_e.calc(At).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit$1(At)})`}}})},{[`${et}-layout-header`]:{[rt]:{lineHeight:"inherit"}}}]},prepareComponentToken$o=_e=>{var et,rt,st;const{colorPrimary:ct,colorError:ut,colorTextDisabled:ft,colorErrorBg:gt,colorText:xt,colorTextDescription:$t,colorBgContainer:_t,colorFillAlter:wt,colorFillContent:Tt,lineWidth:Rt,lineWidthBold:It,controlItemBgActive:At,colorBgTextHover:jt,controlHeightLG:Nt,lineHeight:kt,colorBgElevated:Ft,marginXXS:Ht,padding:Wt,fontSize:Vt,controlHeightSM:qt,fontSizeLG:Gt,colorTextLightSolid:Xt,colorErrorHover:Zt}=_e,lr=(et=_e.activeBarWidth)!==null&&et!==void 0?et:0,er=(rt=_e.activeBarBorderWidth)!==null&&rt!==void 0?rt:Rt,cr=(st=_e.itemMarginInline)!==null&&st!==void 0?st:_e.marginXXS,ur=new TinyColor(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:ct,horizontalItemHoverColor:ct,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:ct,itemSelectedColor:ct,colorItemTextSelectedHorizontal:ct,horizontalItemSelectedColor:ct,colorItemBg:_t,itemBg:_t,colorItemBgHover:jt,itemHoverBg:jt,colorItemBgActive:Tt,itemActiveBg:At,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:lr,colorActiveBarHeight:It,activeBarHeight:It,colorActiveBarBorderSize:Rt,activeBarBorderWidth:er,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:gt,dangerItemActiveBg:gt,colorDangerItemBgSelected:gt,dangerItemSelectedBg:gt,itemMarginInline:cr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:kt,collapsedWidth:Nt*2,popupBg:Ft,itemMarginBlock:Ht,itemPaddingInline:Wt,horizontalLineHeight:`${Nt*1.15}px`,iconSize:Vt,iconMarginInlineEnd:qt-Vt,collapsedIconSize:Gt,groupTitleFontSize:Vt,darkItemDisabledColor:new TinyColor(Xt).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:ut,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:ct,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Xt,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:ut,itemWidth:lr?`calc(100% + ${er}px)`:`calc(100% - ${cr*2}px)`}},useStyle$J=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_e,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return genStyleHooks("Menu",ct=>{const{colorBgElevated:ut,colorPrimary:ft,colorTextLightSolid:gt,controlHeightLG:xt,fontSize:$t,darkItemColor:_t,darkDangerItemColor:wt,darkItemBg:Tt,darkSubMenuItemBg:Rt,darkItemSelectedColor:It,darkItemSelectedBg:At,darkDangerItemSelectedBg:jt,darkItemHoverBg:Nt,darkGroupTitleColor:kt,darkItemHoverColor:Ft,darkItemDisabledColor:Ht,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:qt,popupBg:Gt,darkPopupBg:Xt}=ct,Zt=ct.calc($t).div(7).mul(5).equal(),lr=merge$7(ct,{menuArrowSize:Zt,menuHorizontalHeight:ct.calc(xt).mul(1.15).equal(),menuArrowOffset:ct.calc(Zt).mul(.25).equal(),menuSubMenuBg:ut,calc:ct.calc,popupBg:Gt}),er=merge$7(lr,{itemColor:_t,itemHoverColor:Ft,groupTitleColor:kt,itemSelectedColor:It,itemBg:Tt,popupBg:Xt,subMenuItemBg:Rt,itemActiveBg:"transparent",itemSelectedBg:At,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Nt,itemDisabledColor:Ht,dangerItemColor:wt,dangerItemHoverColor:Wt,dangerItemSelectedColor:Vt,dangerItemActiveBg:qt,dangerItemSelectedBg:jt,menuSubMenuBg:Rt,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:ft});return[getBaseStyle(lr),getHorizontalStyle(lr),getVerticalStyle(lr),getThemeStyle(lr,"light"),getThemeStyle(er,"dark"),getRTLStyle(lr),genCollapseMotion(lr),initSlideMotion(lr,"slide-up"),initSlideMotion(lr,"slide-down"),initZoomMotion(lr,"zoom-big")]},prepareComponentToken$o,{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:rt,unitless:{groupTitleLineHeight:!0}})(_e,et)};var __rest$K=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const ct=reactExports.useContext(OverrideContext$1),ut=ct||{},{getPrefixCls:ft,getPopupContainer:gt,direction:xt,menu:$t}=reactExports.useContext(ConfigContext$1),_t=ft(),{prefixCls:wt,className:Tt,style:Rt,theme:It="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:jt,inlineCollapsed:Nt,siderCollapsed:kt,items:Ft,children:Ht,rootClassName:Wt,mode:Vt,selectable:qt,onClick:Gt,overflowedIndicatorPopupClassName:Xt}=_e,Zt=__rest$K(_e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lr=omit$2(Zt,["collapsedWidth"]),er=useItems$2(Ft)||Ht;(rt=ut.validator)===null||rt===void 0||rt.call(ut,{mode:Vt});const cr=useEvent(function(){var Or;Gt==null||Gt.apply(void 0,arguments),(Or=ut.onClick)===null||Or===void 0||Or.call(ut)}),ur=ut.mode||Vt,pr=qt??ut.selectable,hr=reactExports.useMemo(()=>kt!==void 0?kt:Nt,[Nt,kt]),fr={horizontal:{motionName:`${_t}-slide-up`},inline:initCollapseMotion$1(_t),other:{motionName:`${_t}-zoom-big`}},dr=ft("menu",wt||ut.prefixCls),yr=useCSSVarCls(dr),[$r,Er,mr]=useStyle$J(dr,yr,!ct),Sr=classNames(`${dr}-${It}`,$t==null?void 0:$t.className,Tt);let Tr;if(typeof At=="function")Tr=At;else if(At===null||At===!1)Tr=null;else if(ut.expandIcon===null||ut.expandIcon===!1)Tr=null;else{const Or=At??ut.expandIcon;Tr=cloneElement(Or,{className:classNames(`${dr}-submenu-expand-icon`,isValidElement(Or)?(st=Or.props)===null||st===void 0?void 0:st.className:"")})}const jr=reactExports.useMemo(()=>({prefixCls:dr,inlineCollapsed:hr||!1,direction:xt,firstLevel:!0,theme:It,mode:ur,disableMenuItemTitleTooltip:jt}),[dr,hr,xt,jt,It]);return $r(reactExports.createElement(OverrideContext$1.Provider,{value:null},reactExports.createElement(MenuContext$1.Provider,{value:jr},reactExports.createElement(ExportMenu,Object.assign({getPopupContainer:gt,overflowedIndicator:reactExports.createElement(EllipsisOutlined$1,null),overflowedIndicatorPopupClassName:classNames(dr,`${dr}-${It}`,Xt),mode:ur,selectable:pr,onClick:cr},lr,{inlineCollapsed:hr,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Rt),className:Sr,prefixCls:dr,direction:xt,defaultMotions:fr,expandIcon:Tr,ref:et,rootClassName:classNames(Wt,Er,ut.rootClassName,mr,yr)}),er))))}),InternalMenu$1=InternalMenu,Menu=reactExports.forwardRef((_e,et)=>{const rt=reactExports.useRef(null),st=reactExports.useContext(SiderContext$1);return reactExports.useImperativeHandle(et,()=>({menu:rt.current,focus:ct=>{var ut;(ut=rt.current)===null||ut===void 0||ut.focus(ct)}})),reactExports.createElement(InternalMenu$1,Object.assign({ref:rt},_e,st))});Menu.Item=Item$4;Menu.SubMenu=SubMenu$1;Menu.Divider=MenuDivider$1;Menu.ItemGroup=MenuItemGroup;const Menu$1=Menu;var dayjs_min={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt=1e3,st=6e4,ct=36e5,ut="millisecond",ft="second",gt="minute",xt="hour",$t="day",_t="week",wt="month",Tt="quarter",Rt="year",It="date",At="Invalid Date",jt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Nt=/\[([^\]]+)]|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,kt={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(ur){var pr=["th","st","nd","rd"],hr=ur%100;return"["+ur+(pr[(hr-20)%10]||pr[hr]||pr[0])+"]"}},Ft=function(ur,pr,hr){var fr=String(ur);return!fr||fr.length>=pr?ur:""+Array(pr+1-fr.length).join(hr)+ur},Ht={s:Ft,z:function(ur){var pr=-ur.utcOffset(),hr=Math.abs(pr),fr=Math.floor(hr/60),dr=hr%60;return(pr<=0?"+":"-")+Ft(fr,2,"0")+":"+Ft(dr,2,"0")},m:function ur(pr,hr){if(pr.date()1)return ur($r[0])}else{var Er=pr.name;Vt[Er]=pr,dr=Er}return!fr&&dr&&(Wt=dr),dr||!fr&&Wt},Zt=function(ur,pr){if(Gt(ur))return ur.clone();var hr=typeof pr=="object"?pr:{};return hr.date=ur,hr.args=arguments,new er(hr)},lr=Ht;lr.l=Xt,lr.i=Gt,lr.w=function(ur,pr){return Zt(ur,{locale:pr.$L,utc:pr.$u,x:pr.$x,$offset:pr.$offset})};var er=function(){function ur(hr){this.$L=Xt(hr.locale,null,!0),this.parse(hr),this.$x=this.$x||hr.x||{},this[qt]=!0}var pr=ur.prototype;return pr.parse=function(hr){this.$d=function(fr){var dr=fr.date,yr=fr.utc;if(dr===null)return new Date(NaN);if(lr.u(dr))return new Date;if(dr instanceof Date)return new Date(dr);if(typeof dr=="string"&&!/Z$/i.test(dr)){var $r=dr.match(jt);if($r){var Er=$r[2]-1||0,mr=($r[7]||"0").substring(0,3);return yr?new Date(Date.UTC($r[1],Er,$r[3]||1,$r[4]||0,$r[5]||0,$r[6]||0,mr)):new Date($r[1],Er,$r[3]||1,$r[4]||0,$r[5]||0,$r[6]||0,mr)}}return new Date(dr)}(hr),this.init()},pr.init=function(){var hr=this.$d;this.$y=hr.getFullYear(),this.$M=hr.getMonth(),this.$D=hr.getDate(),this.$W=hr.getDay(),this.$H=hr.getHours(),this.$m=hr.getMinutes(),this.$s=hr.getSeconds(),this.$ms=hr.getMilliseconds()},pr.$utils=function(){return lr},pr.isValid=function(){return this.$d.toString()!==At},pr.isSame=function(hr,fr){var dr=Zt(hr);return this.startOf(fr)<=dr&&dr<=this.endOf(fr)},pr.isAfter=function(hr,fr){return Zt(hr)25){var _t=ft(this).startOf(st).add(1,st).date($t),wt=ft(this).endOf(rt);if(_t.isBefore(wt))return 1}var Tt=ft(this).startOf(st).date($t).startOf(rt).subtract(1,"millisecond"),Rt=this.diff(Tt,rt,!0);return Rt<0?ft(this).startOf("week").week():Math.ceil(Rt)},gt.weeks=function(xt){return xt===void 0&&(xt=null),this.week(xt)}}})})(weekOfYear$2);var weekOfYearExports=weekOfYear$2.exports;const weekOfYear$1=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st){st.prototype.weekYear=function(){var ct=this.month(),ut=this.week(),ft=this.year();return ut===1&&ct===11?ft+1:ct===0&&ut>=52?ft-1:ft}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var advancedFormat$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st){var ct=st.prototype,ut=ct.format;ct.format=function(ft){var gt=this,xt=this.$locale();if(!this.isValid())return ut.bind(this)(ft);var $t=this.$utils(),_t=(ft||"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(wt){switch(wt){case"Q":return Math.ceil((gt.$M+1)/3);case"Do":return xt.ordinal(gt.$D);case"gggg":return gt.weekYear();case"GGGG":return gt.isoWeekYear();case"wo":return xt.ordinal(gt.week(),"W");case"w":case"ww":return $t.s(gt.week(),wt==="w"?1:2,"0");case"W":case"WW":return $t.s(gt.isoWeek(),wt==="W"?1:2,"0");case"k":case"kk":return $t.s(String(gt.$H===0?24:gt.$H),wt==="k"?1:2,"0");case"X":return Math.floor(gt.$d.getTime()/1e3);case"x":return gt.$d.getTime();case"z":return"["+gt.offsetName()+"]";case"zzz":return"["+gt.offsetName("long")+"]";default:return wt}});return ut.bind(this)(_t)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var customParseFormat$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt={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"},st=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,ct=/\d\d/,ut=/\d\d?/,ft=/\d*[^-_:/,()\s\d]+/,gt={},xt=function(At){return(At=+At)+(At>68?1900:2e3)},$t=function(At){return function(jt){this[At]=+jt}},_t=[/[+-]\d\d:?(\d\d)?|Z/,function(At){(this.zone||(this.zone={})).offset=function(jt){if(!jt||jt==="Z")return 0;var Nt=jt.match(/([+-]|\d\d)/g),kt=60*Nt[1]+(+Nt[2]||0);return kt===0?0:Nt[0]==="+"?-kt:kt}(At)}],wt=function(At){var jt=gt[At];return jt&&(jt.indexOf?jt:jt.s.concat(jt.f))},Tt=function(At,jt){var Nt,kt=gt.meridiem;if(kt){for(var Ft=1;Ft<=24;Ft+=1)if(At.indexOf(kt(Ft,0,jt))>-1){Nt=Ft>12;break}}else Nt=At===(jt?"pm":"PM");return Nt},Rt={A:[ft,function(At){this.afternoon=Tt(At,!1)}],a:[ft,function(At){this.afternoon=Tt(At,!0)}],S:[/\d/,function(At){this.milliseconds=100*+At}],SS:[ct,function(At){this.milliseconds=10*+At}],SSS:[/\d{3}/,function(At){this.milliseconds=+At}],s:[ut,$t("seconds")],ss:[ut,$t("seconds")],m:[ut,$t("minutes")],mm:[ut,$t("minutes")],H:[ut,$t("hours")],h:[ut,$t("hours")],HH:[ut,$t("hours")],hh:[ut,$t("hours")],D:[ut,$t("day")],DD:[ct,$t("day")],Do:[ft,function(At){var jt=gt.ordinal,Nt=At.match(/\d+/);if(this.day=Nt[0],jt)for(var kt=1;kt<=31;kt+=1)jt(kt).replace(/\[|\]/g,"")===At&&(this.day=kt)}],M:[ut,$t("month")],MM:[ct,$t("month")],MMM:[ft,function(At){var jt=wt("months"),Nt=(wt("monthsShort")||jt.map(function(kt){return kt.slice(0,3)})).indexOf(At)+1;if(Nt<1)throw new Error;this.month=Nt%12||Nt}],MMMM:[ft,function(At){var jt=wt("months").indexOf(At)+1;if(jt<1)throw new Error;this.month=jt%12||jt}],Y:[/[+-]?\d+/,$t("year")],YY:[ct,function(At){this.year=xt(At)}],YYYY:[/\d{4}/,$t("year")],Z:_t,ZZ:_t};function It(At){var jt,Nt;jt=At,Nt=gt&>.formats;for(var kt=(At=jt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Xt,Zt,lr){var er=lr&&lr.toUpperCase();return Zt||Nt[lr]||rt[lr]||Nt[er].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(cr,ur,pr){return ur||pr.slice(1)})})).match(st),Ft=kt.length,Ht=0;Ht-1)return new Date((fr==="X"?1e3:1)*hr);var yr=It(fr)(hr),$r=yr.year,Er=yr.month,mr=yr.day,Sr=yr.hours,Tr=yr.minutes,jr=yr.seconds,Or=yr.milliseconds,_r=yr.zone,Cr=new Date,Nr=mr||($r||Er?1:Cr.getDate()),Rr=$r||Cr.getFullYear(),Pr=0;$r&&!Er||(Pr=Er>0?Er-1:Cr.getMonth());var Mr=Sr||0,kr=Tr||0,Fr=jr||0,wr=Or||0;return _r?new Date(Date.UTC(Rr,Pr,Nr,Mr,kr,Fr,wr+60*_r.offset*1e3)):dr?new Date(Date.UTC(Rr,Pr,Nr,Mr,kr,Fr,wr)):new Date(Rr,Pr,Nr,Mr,kr,Fr,wr)}catch{return new Date("")}}(Wt,Gt,Vt),this.init(),er&&er!==!0&&(this.$L=this.locale(er).$L),lr&&Wt!=this.format(Gt)&&(this.$d=new Date("")),gt={}}else if(Gt instanceof Array)for(var cr=Gt.length,ur=1;ur<=cr;ur+=1){qt[1]=Gt[ur-1];var pr=Nt.apply(this,qt);if(pr.isValid()){this.$d=pr.$d,this.$L=pr.$L,this.init();break}ur===cr&&(this.$d=new Date(""))}else Ft.call(this,Ht)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports);dayjs.extend(customParseFormat);dayjs.extend(advancedFormat);dayjs.extend(weekday);dayjs.extend(localeData$1);dayjs.extend(weekOfYear$1);dayjs.extend(weekYear);dayjs.extend(function(_e,et){var rt=et.prototype,st=rt.format;rt.format=function(ut){var ft=(ut||"").replace("Wo","wo");return st.bind(this)(ft)}});var localeMap={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"},parseLocale=function(et){var rt=localeMap[et];return rt||et.split("_")[0]},parseNoMatchNotice=function(){noteOnce(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function(){return dayjs()},getFixedDate:function(et){return dayjs(et,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(et){return et.endOf("month")},getWeekDay:function(et){var rt=et.locale("en");return rt.weekday()+rt.localeData().firstDayOfWeek()},getYear:function(et){return et.year()},getMonth:function(et){return et.month()},getDate:function(et){return et.date()},getHour:function(et){return et.hour()},getMinute:function(et){return et.minute()},getSecond:function(et){return et.second()},getMillisecond:function(et){return et.millisecond()},addYear:function(et,rt){return et.add(rt,"year")},addMonth:function(et,rt){return et.add(rt,"month")},addDate:function(et,rt){return et.add(rt,"day")},setYear:function(et,rt){return et.year(rt)},setMonth:function(et,rt){return et.month(rt)},setDate:function(et,rt){return et.date(rt)},setHour:function(et,rt){return et.hour(rt)},setMinute:function(et,rt){return et.minute(rt)},setSecond:function(et,rt){return et.second(rt)},setMillisecond:function(et,rt){return et.millisecond(rt)},isAfter:function(et,rt){return et.isAfter(rt)},isValidate:function(et){return et.isValid()},locale:{getWeekFirstDay:function(et){return dayjs().locale(parseLocale(et)).localeData().firstDayOfWeek()},getWeekFirstDate:function(et,rt){return rt.locale(parseLocale(et)).weekday(0)},getWeek:function(et,rt){return rt.locale(parseLocale(et)).week()},getShortWeekDays:function(et){return dayjs().locale(parseLocale(et)).localeData().weekdaysMin()},getShortMonths:function(et){return dayjs().locale(parseLocale(et)).localeData().monthsShort()},format:function(et,rt,st){return rt.locale(parseLocale(et)).format(st)},parse:function(et,rt,st){for(var ct=parseLocale(et),ut=0;ut2&&arguments[2]!==void 0?arguments[2]:"0",st=String(_e);st.length2&&arguments[2]!==void 0?arguments[2]:[],st=reactExports.useState([!1,!1]),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=function(_t,wt){ft(function(Tt){return fillIndex(Tt,wt,_t)})},xt=reactExports.useMemo(function(){return ut.map(function($t,_t){if($t)return!0;var wt=_e[_t];return wt?!!(!rt[_t]&&!wt||wt&&et(wt,{activeIndex:_t})):!1})},[_e,ut,et,rt]);return[xt,gt]}function fillTimeFormat(_e,et,rt,st,ct){var ut="",ft=[];return _e&&ft.push(ct?"hh":"HH"),et&&ft.push("mm"),rt&&ft.push("ss"),ut=ft.join(":"),st&&(ut+=".SSS"),ct&&(ut+=" A"),ut}function fillLocale(_e,et,rt,st,ct,ut){var ft=_e.fieldDateTimeFormat,gt=_e.fieldDateFormat,xt=_e.fieldTimeFormat,$t=_e.fieldMonthFormat,_t=_e.fieldYearFormat,wt=_e.fieldWeekFormat,Tt=_e.fieldQuarterFormat,Rt=_e.yearFormat,It=_e.cellYearFormat,At=_e.cellQuarterFormat,jt=_e.dayFormat,Nt=_e.cellDateFormat,kt=fillTimeFormat(et,rt,st,ct,ut);return _objectSpread2(_objectSpread2({},_e),{},{fieldDateTimeFormat:ft||"YYYY-MM-DD ".concat(kt),fieldDateFormat:gt||"YYYY-MM-DD",fieldTimeFormat:xt||kt,fieldMonthFormat:$t||"YYYY-MM",fieldYearFormat:_t||"YYYY",fieldWeekFormat:wt||"gggg-wo",fieldQuarterFormat:Tt||"YYYY-[Q]Q",yearFormat:Rt||"YYYY",cellYearFormat:It||"YYYY",cellQuarterFormat:At||"[Q]Q",cellDateFormat:Nt||jt||"D"})}function useLocale$2(_e,et){var rt=et.showHour,st=et.showMinute,ct=et.showSecond,ut=et.showMillisecond,ft=et.use12Hours;return React$1.useMemo(function(){return fillLocale(_e,rt,st,ct,ut,ft)},[_e,rt,st,ct,ut,ft])}function checkShow(_e,et,rt){return rt??et.some(function(st){return _e.includes(st)})}var showTimeKeys=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pickTimeProps(_e){var et=pickProps(_e,showTimeKeys),rt=_e.format,st=_e.picker,ct=null;return rt&&(ct=rt,Array.isArray(ct)&&(ct=ct[0]),ct=_typeof$e(ct)==="object"?ct.format:ct),st==="time"&&(et.format=ct),[et,ct]}function isStringFormat(_e){return _e&&typeof _e=="string"}function getTimeProps(_e){var et=_e.showTime,rt=pickTimeProps(_e),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=et&&_typeof$e(et)==="object"?et:{},gt=_objectSpread2(_objectSpread2({defaultOpenValue:ft.defaultOpenValue||ft.defaultValue},ct),ft),xt=gt.showMillisecond,$t=gt.showHour,_t=gt.showMinute,wt=gt.showSecond;return!$t&&!_t&&!wt&&!xt&&($t=!0,_t=!0,wt=!0),[gt,_objectSpread2(_objectSpread2({},gt),{},{showHour:$t,showMinute:_t,showSecond:wt,showMillisecond:xt}),gt.format,ut]}function fillShowTimeConfig(_e,et,rt,st,ct){var ut=_e==="time";if(_e==="datetime"||ut){for(var ft=st,gt=getRowFormat(_e,ct,null),xt=gt,$t=[et,rt],_t=0;_t<$t.length;_t+=1){var wt=toArray$9($t[_t])[0];if(isStringFormat(wt)){xt=wt;break}}var Tt=ft.showHour,Rt=ft.showMinute,It=ft.showSecond,At=ft.showMillisecond,jt=ft.use12Hours,Nt=checkShow(xt,["a","A","LT","LLL","LTS"],jt),kt=[Tt,Rt,It,At].some(function(Ht){return Ht!==void 0});kt||(Tt=checkShow(xt,["H","h","k","LT","LLL"]),Rt=checkShow(xt,["m","LT","LLL"]),It=checkShow(xt,["s","LTS"]),At=checkShow(xt,["SSS"])),!kt&&!Tt&&!Rt&&!It&&!At&&(Tt=!0,Rt=!0,It=!0);var Ft=et||fillTimeFormat(Tt,Rt,It,At,Nt);return _objectSpread2(_objectSpread2({},ft),{},{format:Ft,showHour:Tt,showMinute:Rt,showSecond:It,showMillisecond:At,use12Hours:Nt})}return null}function fillClearIcon(_e,et,rt){if(et===!1)return null;var st=et&&_typeof$e(et)==="object"?et:{};return st.clearIcon||rt||reactExports.createElement("span",{className:"".concat(_e,"-clear-btn")})}var WEEK_DAY_COUNT=7;function nullableCompare(_e,et,rt){return!_e&&!et||_e===et?!0:!_e||!et?!1:rt()}function isSameDecade(_e,et,rt){return nullableCompare(et,rt,function(){var st=Math.floor(_e.getYear(et)/10),ct=Math.floor(_e.getYear(rt)/10);return st===ct})}function isSameYear(_e,et,rt){return nullableCompare(et,rt,function(){return _e.getYear(et)===_e.getYear(rt)})}function getQuarter(_e,et){var rt=Math.floor(_e.getMonth(et)/3);return rt+1}function isSameQuarter(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&getQuarter(_e,et)===getQuarter(_e,rt)})}function isSameMonth(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&_e.getMonth(et)===_e.getMonth(rt)})}function isSameDate(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&isSameMonth(_e,et,rt)&&_e.getDate(et)===_e.getDate(rt)})}function isSameTime(_e,et,rt){return nullableCompare(et,rt,function(){return _e.getHour(et)===_e.getHour(rt)&&_e.getMinute(et)===_e.getMinute(rt)&&_e.getSecond(et)===_e.getSecond(rt)})}function isSameTimestamp(_e,et,rt){return nullableCompare(et,rt,function(){return isSameDate(_e,et,rt)&&isSameTime(_e,et,rt)&&_e.getMillisecond(et)===_e.getMillisecond(rt)})}function isSameWeek(_e,et,rt,st){return nullableCompare(rt,st,function(){var ct=_e.locale.getWeekFirstDate(et,rt),ut=_e.locale.getWeekFirstDate(et,st);return isSameYear(_e,ct,ut)&&_e.locale.getWeek(et,rt)===_e.locale.getWeek(et,st)})}function isSame$1(_e,et,rt,st,ct){switch(ct){case"date":return isSameDate(_e,rt,st);case"week":return isSameWeek(_e,et.locale,rt,st);case"month":return isSameMonth(_e,rt,st);case"quarter":return isSameQuarter(_e,rt,st);case"year":return isSameYear(_e,rt,st);case"decade":return isSameDecade(_e,rt,st);case"time":return isSameTime(_e,rt,st);default:return isSameTimestamp(_e,rt,st)}}function isInRange(_e,et,rt,st){return!et||!rt||!st?!1:_e.isAfter(st,et)&&_e.isAfter(rt,st)}function isSameOrAfter$1(_e,et,rt,st,ct){return isSame$1(_e,et,rt,st,ct)?!0:_e.isAfter(rt,st)}function getWeekStartDate(_e,et,rt){var st=et.locale.getWeekFirstDay(_e),ct=et.setDate(rt,1),ut=et.getWeekDay(ct),ft=et.addDate(ct,st-ut);return et.getMonth(ft)===et.getMonth(rt)&&et.getDate(ft)>1&&(ft=et.addDate(ft,-7)),ft}function formatValue(_e,et){var rt=et.generateConfig,st=et.locale,ct=et.format;return _e?typeof ct=="function"?ct(_e):rt.locale.format(st.locale,_e,ct):""}function fillTime(_e,et,rt){var st=et,ct=["getHour","getMinute","getSecond","getMillisecond"],ut=["setHour","setMinute","setSecond","setMillisecond"];return ut.forEach(function(ft,gt){rt?st=_e[ft](st,_e[ct[gt]](rt)):st=_e[ft](st,0)}),st}function useDisabledBoundary(_e,et,rt,st,ct){var ut=useEvent(function(ft,gt){return!!(rt&&rt(ft,gt)||st&&_e.isAfter(st,ft)&&!isSame$1(_e,et,st,ft,gt.type)||ct&&_e.isAfter(ft,ct)&&!isSame$1(_e,et,ct,ft,gt.type))});return ut}function useFieldFormat(_e,et,rt){return reactExports.useMemo(function(){var st=getRowFormat(_e,et,rt),ct=toArray$9(st),ut=ct[0],ft=_typeof$e(ut)==="object"&&ut.type==="mask"?ut.format:null;return[ct.map(function(gt){return typeof gt=="string"||typeof gt=="function"?gt:gt.format}),ft]},[_e,et,rt])}function useInputReadOnly(_e,et,rt){return typeof _e[0]=="function"||rt?!0:et}function useInvalidate(_e,et,rt,st){var ct=useEvent(function(ut,ft){var gt=_objectSpread2({type:et},ft);if(delete gt.activeIndex,!_e.isValidate(ut)||rt&&rt(ut,gt))return!0;if((et==="date"||et==="time")&&st){var xt,$t=((xt=st.disabledTime)===null||xt===void 0?void 0:xt.call(st,ut,ft&&ft.activeIndex===1?"end":"start"))||{},_t=$t.disabledHours,wt=$t.disabledMinutes,Tt=$t.disabledSeconds,Rt=$t.disabledMilliseconds,It=st.disabledHours,At=st.disabledMinutes,jt=st.disabledSeconds,Nt=_t||It,kt=wt||At,Ft=Tt||jt,Ht=_e.getHour(ut),Wt=_e.getMinute(ut),Vt=_e.getSecond(ut),qt=_e.getMillisecond(ut);if(Nt&&Nt().includes(Ht)||kt&&kt(Ht).includes(Wt)||Ft&&Ft(Ht,Wt).includes(Vt)||Rt&&Rt(Ht,Wt,Vt).includes(qt))return!0}return!1});return ct}function useList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=reactExports.useMemo(function(){var st=_e&&toArray$9(_e);return et&&st&&(st[1]=st[1]||st[0]),st},[_e,et]);return rt}function useFilledProps(_e,et){var rt=_e.generateConfig,st=_e.locale,ct=_e.picker,ut=ct===void 0?"date":ct,ft=_e.prefixCls,gt=ft===void 0?"rc-picker":ft,xt=_e.styles,$t=xt===void 0?{}:xt,_t=_e.classNames,wt=_t===void 0?{}:_t,Tt=_e.order,Rt=Tt===void 0?!0:Tt,It=_e.components,At=It===void 0?{}:It,jt=_e.inputRender,Nt=_e.allowClear,kt=_e.clearIcon,Ft=_e.needConfirm,Ht=_e.multiple,Wt=_e.format,Vt=_e.inputReadOnly,qt=_e.disabledDate,Gt=_e.minDate,Xt=_e.maxDate,Zt=_e.showTime,lr=_e.value,er=_e.defaultValue,cr=_e.pickerValue,ur=_e.defaultPickerValue,pr=useList(lr),hr=useList(er),fr=useList(cr),dr=useList(ur),yr=ut==="date"&&Zt?"datetime":ut,$r=yr==="time"||yr==="datetime",Er=$r||Ht,mr=Ft??$r,Sr=getTimeProps(_e),Tr=_slicedToArray$3(Sr,4),jr=Tr[0],Or=Tr[1],_r=Tr[2],Cr=Tr[3],Nr=useLocale$2(st,Or),Rr=reactExports.useMemo(function(){return fillShowTimeConfig(yr,_r,Cr,jr,Nr)},[yr,_r,Cr,jr,Nr]),Pr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},_e),{},{prefixCls:gt,locale:Nr,picker:ut,styles:$t,classNames:wt,order:Rt,components:_objectSpread2({input:jt},At),clearIcon:fillClearIcon(gt,Nt,kt),showTime:Rr,value:pr,defaultValue:hr,pickerValue:fr,defaultPickerValue:dr},et==null?void 0:et())},[_e]),Mr=useFieldFormat(yr,Nr,Wt),kr=_slicedToArray$3(Mr,2),Fr=kr[0],wr=kr[1],Br=useInputReadOnly(Fr,Vt,Ht),Dr=useDisabledBoundary(rt,st,qt,Gt,Xt),Xr=useInvalidate(rt,ut,qt,Rr),Kr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},Pr),{},{needConfirm:mr,inputReadOnly:Br,disabledDate:Dr})},[Pr,mr,Br,Dr]);return[Kr,yr,Er,Fr,wr,Xr]}function useDelayState(_e,et,rt){var st=useMergedState(et,{value:_e}),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=React$1.useRef(_e),xt=React$1.useRef(),$t=function(){wrapperRaf.cancel(xt.current)},_t=useEvent(function(){ft(gt.current),rt&&ut!==gt.current&&rt(gt.current)}),wt=useEvent(function(Tt,Rt){$t(),gt.current=Tt,Tt||Rt?_t():xt.current=wrapperRaf(_t)});return React$1.useEffect(function(){return $t},[]),[ut,wt]}function useOpen(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],st=arguments.length>3?arguments[3]:void 0,ct=rt.every(function(_t){return _t})?!1:_e,ut=useDelayState(ct,et||!1,st),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!wt.inherit||gt)&&xt(_t,wt.force)}return[gt,$t]}function usePickerRef(_e){var et=reactExports.useRef();return reactExports.useImperativeHandle(_e,function(){var rt;return{nativeElement:(rt=et.current)===null||rt===void 0?void 0:rt.nativeElement,focus:function(){var ct;(ct=et.current)===null||ct===void 0||ct.focus()},blur:function(){var ct;(ct=et.current)===null||ct===void 0||ct.blur()}}}),et}function usePresets(_e,et){return reactExports.useMemo(function(){return _e||(et?(warningOnce$1(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(et).map(function(rt){var st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return{label:ct,value:ut}})):[])},[_e,et])}function useLockEffect(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,st=reactExports.useRef(et);st.current=et,useLayoutUpdateEffect(function(){if(_e)st.current(_e);else{var ct=wrapperRaf(function(){st.current(_e)},rt);return function(){wrapperRaf.cancel(ct)}}},[_e])}function useRangeActive(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=reactExports.useState(0),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(!1),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=reactExports.useRef([]),wt=reactExports.useRef(null),Tt=function(jt){$t(jt)},Rt=function(jt){return jt&&(wt.current=jt),wt.current},It=function(jt){var Nt=_t.current,kt=new Set(Nt.filter(function(Ht){return jt[Ht]||et[Ht]})),Ft=Nt[Nt.length-1]===0?1:0;return kt.size>=2||_e[Ft]?null:Ft};return useLockEffect(xt,function(){xt||(_t.current=[])}),reactExports.useEffect(function(){xt&&_t.current.push(ct)},[xt,ct]),[xt,Tt,Rt,ct,ut,It,_t.current]}function useRangeDisabledDate(_e,et,rt,st,ct,ut){var ft=rt[rt.length-1],gt=rt.find(function($t){return _e[$t]}),xt=function(_t,wt){var Tt=_slicedToArray$3(_e,2),Rt=Tt[0],It=Tt[1],At=_objectSpread2(_objectSpread2({},wt),{},{from:ft!==gt?_e[gt]:void 0});return ft===1&&et[0]&&Rt&&!isSame$1(st,ct,Rt,_t,At.type)&&st.isAfter(Rt,_t)||ft===0&&et[1]&&It&&!isSame$1(st,ct,It,_t,At.type)&&st.isAfter(_t,It)?!0:ut==null?void 0:ut(_t,At)};return xt}function offsetPanelDate(_e,et,rt,st){switch(et){case"date":case"week":return _e.addMonth(rt,st);case"month":case"quarter":return _e.addYear(rt,st);case"year":return _e.addYear(rt,st*10);case"decade":return _e.addYear(rt,st*100);default:return rt}}var EMPTY_LIST$1=[];function useRangePickerValue(_e,et,rt,st,ct,ut,ft,gt){var xt=arguments.length>8&&arguments[8]!==void 0?arguments[8]:EMPTY_LIST$1,$t=arguments.length>9&&arguments[9]!==void 0?arguments[9]:EMPTY_LIST$1,_t=arguments.length>10&&arguments[10]!==void 0?arguments[10]:EMPTY_LIST$1,wt=arguments.length>11?arguments[11]:void 0,Tt=arguments.length>12?arguments[12]:void 0,Rt=arguments.length>13?arguments[13]:void 0,It=ft==="time",At=ut||0,jt=function(fr){var dr=_e.getNow();return It&&(dr=fillTime(_e,dr)),xt[fr]||rt[fr]||dr},Nt=_slicedToArray$3($t,2),kt=Nt[0],Ft=Nt[1],Ht=useMergedState(function(){return jt(0)},{value:kt}),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1],Gt=useMergedState(function(){return jt(1)},{value:Ft}),Xt=_slicedToArray$3(Gt,2),Zt=Xt[0],lr=Xt[1],er=reactExports.useMemo(function(){var hr=[Vt,Zt][At];return It?hr:fillTime(_e,hr,_t[At])},[It,Vt,Zt,At,_e,_t]),cr=function(fr){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",yr=[qt,lr][At];yr(fr);var $r=[Vt,Zt];$r[At]=fr,wt&&(!isSame$1(_e,et,Vt,$r[0],ft)||!isSame$1(_e,et,Zt,$r[1],ft))&&wt($r,{source:dr,range:At===1?"end":"start",mode:st})},ur=function(fr,dr){if(gt){var yr={date:"month",week:"month",month:"year",quarter:"year"},$r=yr[ft];if($r&&!isSame$1(_e,et,fr,dr,$r))return offsetPanelDate(_e,ft,dr,-1);if(ft==="year"){var Er=Math.floor(_e.getYear(fr)/10),mr=Math.floor(_e.getYear(dr)/10);if(Er!==mr)return offsetPanelDate(_e,ft,dr,-1)}}return dr},pr=reactExports.useRef(null);return useLayoutEffect$3(function(){if(ct&&!xt[At]){var hr=It?null:_e.getNow();if(pr.current!==null&&pr.current!==At?hr=[Vt,Zt][At^1]:rt[At]?hr=At===0?rt[0]:ur(rt[0],rt[1]):rt[At^1]&&(hr=rt[At^1]),hr){Tt&&_e.isAfter(Tt,hr)&&(hr=Tt);var fr=gt?offsetPanelDate(_e,ft,hr,1):hr;Rt&&_e.isAfter(fr,Rt)&&(hr=gt?offsetPanelDate(_e,ft,Rt,-1):Rt),cr(hr,"reset")}}},[ct,At,rt[At]]),reactExports.useEffect(function(){ct?pr.current=At:pr.current=null},[ct,At]),useLayoutEffect$3(function(){ct&&xt&&xt[At]&&cr(xt[At],"reset")},[ct,At]),[er,cr]}function useSyncState$1(_e,et){var rt=reactExports.useRef(_e),st=reactExports.useState({}),ct=_slicedToArray$3(st,2),ut=ct[1],ft=function($t){return $t&&et!==void 0?et:rt.current},gt=function($t){rt.current=$t,ut({})};return[ft,gt,ft(!0)]}var EMPTY_VALUE=[];function useUtil(_e,et,rt){var st=function(ft){return ft.map(function(gt){return formatValue(gt,{generateConfig:_e,locale:et,format:rt[0]})})},ct=function(ft,gt){for(var xt=Math.max(ft.length,gt.length),$t=-1,_t=0;_t2&&arguments[2]!==void 0?arguments[2]:1,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],ut=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,ft=[],gt=rt>=1?rt|0:1,xt=_e;xt<=et;xt+=gt){var $t=ct.includes(xt);(!$t||!st)&&ft.push({label:leftPad(xt,ut),value:xt,disabled:$t})}return ft}function useTimeInfo(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=arguments.length>2?arguments[2]:void 0,st=et||{},ct=st.use12Hours,ut=st.hourStep,ft=ut===void 0?1:ut,gt=st.minuteStep,xt=gt===void 0?1:gt,$t=st.secondStep,_t=$t===void 0?1:$t,wt=st.millisecondStep,Tt=wt===void 0?100:wt,Rt=st.hideDisabledOptions,It=st.disabledTime,At=st.disabledHours,jt=st.disabledMinutes,Nt=st.disabledSeconds,kt=reactExports.useMemo(function(){return rt||_e.getNow()},[rt,_e]),Ft=reactExports.useCallback(function(dr){var yr=(It==null?void 0:It(dr))||{};return[yr.disabledHours||At||emptyDisabled,yr.disabledMinutes||jt||emptyDisabled,yr.disabledSeconds||Nt||emptyDisabled,yr.disabledMilliseconds||emptyDisabled]},[It,At,jt,Nt]),Ht=reactExports.useMemo(function(){return Ft(kt)},[kt,Ft]),Wt=_slicedToArray$3(Ht,4),Vt=Wt[0],qt=Wt[1],Gt=Wt[2],Xt=Wt[3],Zt=reactExports.useCallback(function(dr,yr,$r,Er){var mr=generateUnits(0,23,ft,Rt,dr()),Sr=ct?mr.map(function(_r){return _objectSpread2(_objectSpread2({},_r),{},{label:leftPad(_r.value%12||12,2)})}):mr,Tr=function(Cr){return generateUnits(0,59,xt,Rt,yr(Cr))},jr=function(Cr,Nr){return generateUnits(0,59,_t,Rt,$r(Cr,Nr))},Or=function(Cr,Nr,Rr){return generateUnits(0,999,Tt,Rt,Er(Cr,Nr,Rr),3)};return[Sr,Tr,jr,Or]},[Rt,ft,ct,Tt,xt,_t]),lr=reactExports.useMemo(function(){return Zt(Vt,qt,Gt,Xt)},[Zt,Vt,qt,Gt,Xt]),er=_slicedToArray$3(lr,4),cr=er[0],ur=er[1],pr=er[2],hr=er[3],fr=function(yr,$r){var Er=function(){return cr},mr=ur,Sr=pr,Tr=hr;if($r){var jr=Ft($r),Or=_slicedToArray$3(jr,4),_r=Or[0],Cr=Or[1],Nr=Or[2],Rr=Or[3],Pr=Zt(_r,Cr,Nr,Rr),Mr=_slicedToArray$3(Pr,4),kr=Mr[0],Fr=Mr[1],wr=Mr[2],Br=Mr[3];Er=function(){return kr},mr=Fr,Sr=wr,Tr=Br}var Dr=findValidateTime(yr,Er,mr,Sr,Tr,_e);return Dr};return[fr,cr,ur,pr,hr]}function Footer$3(_e){var et=_e.mode,rt=_e.internalMode,st=_e.renderExtraFooter,ct=_e.showNow,ut=_e.showTime,ft=_e.onSubmit,gt=_e.onNow,xt=_e.invalid,$t=_e.needConfirm,_t=_e.generateConfig,wt=_e.disabledDate,Tt=reactExports.useContext(PickerContext),Rt=Tt.prefixCls,It=Tt.locale,At=Tt.button,jt=At===void 0?"button":At,Nt=_t.getNow(),kt=useTimeInfo(_t,ut,Nt),Ft=_slicedToArray$3(kt,1),Ht=Ft[0],Wt=st==null?void 0:st(et),Vt=wt(Nt,{type:et}),qt=function(){if(!Vt){var ur=Ht(Nt);gt(ur)}},Gt="".concat(Rt,"-now"),Xt="".concat(Gt,"-btn"),Zt=ct&&reactExports.createElement("li",{className:Gt},reactExports.createElement("a",{className:classNames(Xt,Vt&&"".concat(Xt,"-disabled")),"aria-disabled":Vt,onClick:qt},rt==="date"?It.today:It.now)),lr=$t&&reactExports.createElement("li",{className:"".concat(Rt,"-ok")},reactExports.createElement(jt,{disabled:xt,onClick:ft},It.ok)),er=(Zt||lr)&&reactExports.createElement("ul",{className:"".concat(Rt,"-ranges")},Zt,lr);return!Wt&&!er?null:reactExports.createElement("div",{className:"".concat(Rt,"-footer")},Wt&&reactExports.createElement("div",{className:"".concat(Rt,"-footer-extra")},Wt),er)}function useToggleDates(_e,et,rt){function st(ct,ut){var ft=ct.findIndex(function(xt){return isSame$1(_e,et,xt,ut,rt)});if(ft===-1)return[].concat(_toConsumableArray$3(ct),[ut]);var gt=_toConsumableArray$3(ct);return gt.splice(ft,1),gt}return st}var PanelContext=reactExports.createContext(null);function usePanelContext(){return reactExports.useContext(PanelContext)}function useInfo(_e,et){var rt=_e.prefixCls,st=_e.generateConfig,ct=_e.locale,ut=_e.disabledDate,ft=_e.minDate,gt=_e.maxDate,xt=_e.cellRender,$t=_e.hoverValue,_t=_e.hoverRangeValue,wt=_e.onHover,Tt=_e.values,Rt=_e.pickerValue,It=_e.onSelect,At=_e.prevIcon,jt=_e.nextIcon,Nt=_e.superPrevIcon,kt=_e.superNextIcon,Ft=st.getNow(),Ht={now:Ft,values:Tt,pickerValue:Rt,prefixCls:rt,disabledDate:ut,minDate:ft,maxDate:gt,cellRender:xt,hoverValue:$t,hoverRangeValue:_t,onHover:wt,locale:ct,generateConfig:st,onSelect:It,panelType:et,prevIcon:At,nextIcon:jt,superPrevIcon:Nt,superNextIcon:kt};return[Ht,Ft]}var PickerHackContext=reactExports.createContext({});function PanelBody(_e){for(var et=_e.rowNum,rt=_e.colNum,st=_e.baseDate,ct=_e.getCellDate,ut=_e.prefixColumn,ft=_e.rowClassName,gt=_e.titleFormat,xt=_e.getCellText,$t=_e.getCellClassName,_t=_e.headerCells,wt=_e.cellSelection,Tt=wt===void 0?!0:wt,Rt=_e.disabledDate,It=usePanelContext(),At=It.prefixCls,jt=It.panelType,Nt=It.now,kt=It.disabledDate,Ft=It.cellRender,Ht=It.onHover,Wt=It.hoverValue,Vt=It.hoverRangeValue,qt=It.generateConfig,Gt=It.values,Xt=It.locale,Zt=It.onSelect,lr=Rt||kt,er="".concat(At,"-cell"),cr=reactExports.useContext(PickerHackContext),ur=cr.onCellDblClick,pr=function(Sr){return Gt.some(function(Tr){return Tr&&isSame$1(qt,Xt,Sr,Tr,jt)})},hr=[],fr=0;fr1&&arguments[1]!==void 0?arguments[1]:!1;pn(hn),jt==null||jt(hn),En&&Qr(hn)},vn=function(hn,En){Nr(hn),En&&Zr(En),Qr(En,hn)},vr=function(hn){if(Xr(hn),Zr(hn),Cr!==Ht){var En=["decade","year"],Rn=[].concat(En,["month"]),Dn={quarter:[].concat(En,["quarter"]),week:[].concat(_toConsumableArray$3(Rn),["week"]),date:[].concat(_toConsumableArray$3(Rn),["date"])},Bn=Dn[Ht]||Rn,Yn=Bn.indexOf(Cr),qn=Bn[Yn+1];qn&&vn(qn,hn)}},gr=reactExports.useMemo(function(){var mn,hn;if(Array.isArray(qt)){var En=_slicedToArray$3(qt,2);mn=En[0],hn=En[1]}else mn=qt;return!mn&&!hn?null:(mn=mn||hn,hn=hn||mn,ct.isAfter(mn,hn)?[hn,mn]:[mn,hn])},[qt,ct]),br=useCellRender(Gt,Xt,Zt),Hr=er[Rr]||DefaultComponents[Rr]||DatePanel,Vr=reactExports.useContext(PickerHackContext),Wr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},Vr),{},{hideHeader:cr})},[Vr,cr]),Gr="".concat(ur,"-panel"),cn=pickProps(_e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return reactExports.createElement(PickerHackContext.Provider,{value:Wr},reactExports.createElement("div",{ref:pr,tabIndex:xt,className:classNames(Gr,_defineProperty$c({},"".concat(Gr,"-rtl"),ut==="rtl"))},reactExports.createElement(Hr,_extends$b({},cn,{showTime:Tr,prefixCls:ur,locale:mr,generateConfig:ct,onModeChange:vn,pickerValue:qr,onPickerValueChange:function(hn){Zr(hn,!0)},value:Br[0],onSelect:vr,values:Br,cellRender:br,hoverRangeValue:gr,hoverValue:Vt}))))}var RefPanelPicker=reactExports.memo(reactExports.forwardRef(PickerPanel));function PopupPanel(_e){var et=_e.picker,rt=_e.multiplePanel,st=_e.pickerValue,ct=_e.onPickerValueChange,ut=_e.needConfirm,ft=_e.onSubmit,gt=_e.range,xt=_e.hoverValue,$t=reactExports.useContext(PickerContext),_t=$t.prefixCls,wt=$t.generateConfig,Tt=reactExports.useCallback(function(kt,Ft){return offsetPanelDate(wt,et,kt,Ft)},[wt,et]),Rt=reactExports.useMemo(function(){return Tt(st,1)},[st,Tt]),It=function(Ft){ct(Tt(Ft,-1))},At={onCellDblClick:function(){ut&&ft()}},jt=et==="time",Nt=_objectSpread2(_objectSpread2({},_e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:jt});return gt?Nt.hoverRangeValue=xt:Nt.hoverValue=xt,rt?reactExports.createElement("div",{className:"".concat(_t,"-panels")},reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},At),{},{hideNext:!0})},reactExports.createElement(RefPanelPicker,Nt)),reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},At),{},{hidePrev:!0})},reactExports.createElement(RefPanelPicker,_extends$b({},Nt,{pickerValue:Rt,onPickerValueChange:It})))):reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2({},At)},reactExports.createElement(RefPanelPicker,Nt))}function executeValue(_e){return typeof _e=="function"?_e():_e}function PresetPanel(_e){var et=_e.prefixCls,rt=_e.presets,st=_e.onClick,ct=_e.onHover;return rt.length?reactExports.createElement("div",{className:"".concat(et,"-presets")},reactExports.createElement("ul",null,rt.map(function(ut,ft){var gt=ut.label,xt=ut.value;return reactExports.createElement("li",{key:ft,onClick:function(){st(executeValue(xt))},onMouseEnter:function(){ct(executeValue(xt))},onMouseLeave:function(){ct(null)}},gt)}))):null}function Popup(_e){var et=_e.panelRender,rt=_e.internalMode,st=_e.picker,ct=_e.showNow,ut=_e.range,ft=_e.multiple,gt=_e.activeOffset,xt=gt===void 0?0:gt,$t=_e.presets,_t=_e.onPresetHover,wt=_e.onPresetSubmit,Tt=_e.onFocus,Rt=_e.onBlur,It=_e.direction,At=_e.value,jt=_e.onSelect,Nt=_e.isInvalid,kt=_e.defaultOpenValue,Ft=_e.onOk,Ht=_e.onSubmit,Wt=reactExports.useContext(PickerContext),Vt=Wt.prefixCls,qt="".concat(Vt,"-panel"),Gt=It==="rtl",Xt=reactExports.useRef(null),Zt=reactExports.useRef(null),lr=reactExports.useState(0),er=_slicedToArray$3(lr,2),cr=er[0],ur=er[1],pr=reactExports.useState(0),hr=_slicedToArray$3(pr,2),fr=hr[0],dr=hr[1],yr=function(kr){kr.offsetWidth&&ur(kr.offsetWidth)};reactExports.useEffect(function(){if(ut){var Mr,kr=((Mr=Xt.current)===null||Mr===void 0?void 0:Mr.offsetWidth)||0,Fr=cr-kr;xt<=Fr?dr(0):dr(xt+kr-cr)}},[cr,xt,ut]);function $r(Mr){return Mr.filter(function(kr){return kr})}var Er=reactExports.useMemo(function(){return $r(toArray$9(At))},[At]),mr=st==="time"&&!Er.length,Sr=reactExports.useMemo(function(){return mr?$r([kt]):Er},[mr,Er,kt]),Tr=mr?kt:Er,jr=reactExports.useMemo(function(){return Sr.length?Sr.some(function(Mr){return Nt(Mr)}):!0},[Sr,Nt]),Or=function(){mr&&jt(kt),Ft(),Ht()},_r=reactExports.createElement("div",{className:"".concat(Vt,"-panel-layout")},reactExports.createElement(PresetPanel,{prefixCls:Vt,presets:$t,onClick:wt,onHover:_t}),reactExports.createElement("div",null,reactExports.createElement(PopupPanel,_extends$b({},_e,{value:Tr})),reactExports.createElement(Footer$3,_extends$b({},_e,{showNow:ft?!1:ct,invalid:jr,onSubmit:Or}))));et&&(_r=et(_r));var Cr="".concat(qt,"-container"),Nr="marginLeft",Rr="marginRight",Pr=reactExports.createElement("div",{tabIndex:-1,className:classNames(Cr,"".concat(Vt,"-").concat(rt,"-panel-container")),style:_defineProperty$c(_defineProperty$c({},Gt?Rr:Nr,fr),Gt?Nr:Rr,"auto"),onFocus:Tt,onBlur:Rt},_r);return ut&&(Pr=reactExports.createElement("div",{ref:Zt,className:classNames("".concat(Vt,"-range-wrapper"),"".concat(Vt,"-").concat(st,"-range-wrapper"))},reactExports.createElement("div",{ref:Xt,className:"".concat(Vt,"-range-arrow"),style:_defineProperty$c({},Gt?"right":"left",xt)}),reactExports.createElement(RefResizeObserver,{onResize:yr},Pr))),Pr}function useInputProps(_e,et){var rt=_e.format,st=_e.maskFormat,ct=_e.generateConfig,ut=_e.locale,ft=_e.preserveInvalidOnBlur,gt=_e.inputReadOnly,xt=_e.required,$t=_e["aria-required"],_t=_e.onSubmit,wt=_e.onFocus,Tt=_e.onBlur,Rt=_e.onInputChange,It=_e.onInvalid,At=_e.open,jt=_e.onOpenChange,Nt=_e.onKeyDown,kt=_e.onChange,Ft=_e.activeHelp,Ht=_e.name,Wt=_e.autoComplete,Vt=_e.id,qt=_e.value,Gt=_e.invalid,Xt=_e.placeholder,Zt=_e.disabled,lr=_e.activeIndex,er=_e.allHelp,cr=_e.picker,ur=function(mr,Sr){var Tr=ct.locale.parse(ut.locale,mr,[Sr]);return Tr&&ct.isValidate(Tr)?Tr:null},pr=rt[0],hr=reactExports.useCallback(function(Er){return formatValue(Er,{locale:ut,format:pr,generateConfig:ct})},[ut,ct,pr]),fr=reactExports.useMemo(function(){return qt.map(hr)},[qt,hr]),dr=reactExports.useMemo(function(){var Er=cr==="time"?8:10,mr=typeof pr=="function"?pr(ct.getNow()).length:pr.length;return Math.max(Er,mr)+2},[pr,cr,ct]),yr=function(mr){for(var Sr=0;Sr=gt&&rt<=xt)return ut;var $t=Math.min(Math.abs(rt-gt),Math.abs(rt-xt));$t0?Tn:Nn));var Sn=Cn+gn,Mn=Nn-Tn+1;return String(Tn+(Mn+Sn-Tn)%Mn)};switch(hn){case"Backspace":case"Delete":En="",Rn=Bn;break;case"ArrowLeft":En="",Yn(-1);break;case"ArrowRight":En="",Yn(1);break;case"ArrowUp":En="",Rn=qn(1);break;case"ArrowDown":En="",Rn=qn(-1);break;default:isNaN(Number(hn))||(En=Er+hn,Rn=En);break}if(En!==null&&(mr(En),En.length>=Dn&&(Yn(1),mr(""))),Rn!==null){var ao=Pr.slice(0,Dr)+leftPad(Rn,Dn)+Pr.slice(Xr);zr(ao.slice(0,ft.length))}Rr({})},Wr=reactExports.useRef();useLayoutEffect$3(function(){if(!(!cr||!ft||Qr.current)){if(!Fr.match(Pr)){zr(ft);return}return kr.current.setSelectionRange(Dr,Xr),Wr.current=wrapperRaf(function(){kr.current.setSelectionRange(Dr,Xr)}),function(){wrapperRaf.cancel(Wr.current)}}},[Fr,ft,cr,Pr,jr,Dr,Xr,Nr,zr]);var Gr=ft?{onFocus:vr,onBlur:br,onKeyDown:Vr,onMouseDown:Zr,onMouseUp:vn,onPaste:pn}:{};return reactExports.createElement("div",{ref:Mr,className:classNames(Zt,_defineProperty$c(_defineProperty$c({},"".concat(Zt,"-active"),rt&&ct),"".concat(Zt,"-placeholder"),$t))},reactExports.createElement(Xt,_extends$b({ref:kr,"aria-invalid":At,autoComplete:"off"},Nt,{onKeyDown:Hr,onBlur:gr},Gr,{value:Pr,onChange:qr})),reactExports.createElement(Icon$9,{type:"suffix",icon:ut}),jt)}),_excluded$1m=["id","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","onMouseDown","required","aria-required","autoFocus"];function RangeSelector(_e,et){var rt=_e.id,st=_e.clearIcon,ct=_e.suffixIcon,ut=_e.separator,ft=ut===void 0?"~":ut,gt=_e.activeIndex;_e.activeHelp,_e.allHelp;var xt=_e.focused;_e.onFocus,_e.onBlur,_e.onKeyDown,_e.locale,_e.generateConfig;var $t=_e.placeholder,_t=_e.className,wt=_e.style,Tt=_e.onClick,Rt=_e.onClear,It=_e.value;_e.onChange,_e.onSubmit,_e.onInputChange,_e.format,_e.maskFormat,_e.preserveInvalidOnBlur,_e.onInvalid;var At=_e.disabled,jt=_e.invalid;_e.inputReadOnly;var Nt=_e.direction;_e.onOpenChange;var kt=_e.onActiveOffset,Ft=_e.onMouseDown;_e.required,_e["aria-required"];var Ht=_e.autoFocus,Wt=_objectWithoutProperties$2(_e,_excluded$1m),Vt=Nt==="rtl",qt=reactExports.useContext(PickerContext),Gt=qt.prefixCls,Xt=reactExports.useMemo(function(){if(typeof rt=="string")return[rt];var Cr=rt||{};return[Cr.start,Cr.end]},[rt]),Zt=reactExports.useRef(),lr=reactExports.useRef(),er=reactExports.useRef(),cr=function(Nr){var Rr;return(Rr=[lr,er][Nr])===null||Rr===void 0?void 0:Rr.current};reactExports.useImperativeHandle(et,function(){return{nativeElement:Zt.current,focus:function(){var Nr,Rr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;(Nr=cr(Rr))===null||Nr===void 0||Nr.focus()},blur:function(){var Nr,Rr;(Nr=cr(0))===null||Nr===void 0||Nr.blur(),(Rr=cr(1))===null||Rr===void 0||Rr.blur()}}});var ur=useRootProps(Wt),pr=reactExports.useMemo(function(){return Array.isArray($t)?$t:[$t,$t]},[$t]),hr=useInputProps(_objectSpread2(_objectSpread2({},_e),{},{id:Xt,placeholder:pr})),fr=_slicedToArray$3(hr,1),dr=fr[0],yr=Vt?"right":"left",$r=reactExports.useState(_defineProperty$c({position:"absolute",width:0},yr,0)),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=useEvent(function(){var Cr=cr(gt);if(Cr){var Nr=Cr.nativeElement,Rr=Nr.offsetWidth,Pr=Nr.offsetLeft,Mr=Nr.offsetParent,kr=Pr;if(Vt){var Fr=Mr,wr=getComputedStyle(Fr);kr=Fr.offsetWidth-parseFloat(wr.borderRightWidth)-parseFloat(wr.borderLeftWidth)-Pr-Rr}Sr(function(Br){return _objectSpread2(_objectSpread2({},Br),{},_defineProperty$c({width:Rr},yr,kr))}),kt(gt===0?0:kr)}});reactExports.useEffect(function(){Tr()},[gt]);var jr=st&&(It[0]&&!At[0]||It[1]&&!At[1]),Or=Ht&&!At[0],_r=Ht&&!Or&&!At[1];return reactExports.createElement(RefResizeObserver,{onResize:Tr},reactExports.createElement("div",_extends$b({},ur,{className:classNames(Gt,"".concat(Gt,"-range"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Gt,"-focused"),xt),"".concat(Gt,"-disabled"),At.every(function(Cr){return Cr})),"".concat(Gt,"-invalid"),jt.some(function(Cr){return Cr})),"".concat(Gt,"-rtl"),Vt),_t),style:wt,ref:Zt,onClick:Tt,onMouseDown:function(Nr){var Rr=Nr.target;Rr!==lr.current.inputElement&&Rr!==er.current.inputElement&&Nr.preventDefault(),Ft==null||Ft(Nr)}}),reactExports.createElement(Input$7,_extends$b({ref:lr},dr(0),{autoFocus:Or,"date-range":"start"})),reactExports.createElement("div",{className:"".concat(Gt,"-range-separator")},ft),reactExports.createElement(Input$7,_extends$b({ref:er},dr(1),{autoFocus:_r,"date-range":"end"})),reactExports.createElement("div",{className:"".concat(Gt,"-active-bar"),style:mr}),reactExports.createElement(Icon$9,{type:"suffix",icon:ct}),jr&&reactExports.createElement(ClearIcon,{icon:st,onClear:Rt})))}var RefRangeSelector=reactExports.forwardRef(RangeSelector);function separateConfig(_e,et){var rt=_e??et;return Array.isArray(rt)?rt:[rt,rt]}function getActiveRange(_e){return _e===1?"end":"start"}function RangePicker$1(_e,et){var rt=useFilledProps(_e,function(){var fo=_e.disabled,$o=_e.allowEmpty,Mo=separateConfig(fo,!1),Do=separateConfig($o,!1);return{disabled:Mo,allowEmpty:Do}}),st=_slicedToArray$3(rt,6),ct=st[0],ut=st[1],ft=st[2],gt=st[3],xt=st[4],$t=st[5],_t=ct.prefixCls,wt=ct.styles,Tt=ct.classNames,Rt=ct.defaultValue,It=ct.value,At=ct.needConfirm,jt=ct.onKeyDown,Nt=ct.disabled,kt=ct.allowEmpty,Ft=ct.disabledDate,Ht=ct.minDate,Wt=ct.maxDate,Vt=ct.defaultOpen,qt=ct.open,Gt=ct.onOpenChange,Xt=ct.locale,Zt=ct.generateConfig,lr=ct.picker,er=ct.showNow,cr=ct.showToday,ur=ct.showTime,pr=ct.mode,hr=ct.onPanelChange,fr=ct.onCalendarChange,dr=ct.onOk,yr=ct.defaultPickerValue,$r=ct.pickerValue,Er=ct.onPickerValueChange,mr=ct.inputReadOnly,Sr=ct.suffixIcon,Tr=ct.onFocus,jr=ct.onBlur,Or=ct.presets,_r=ct.ranges,Cr=ct.components,Nr=ct.cellRender,Rr=ct.dateRender,Pr=ct.monthCellRender,Mr=ct.onClick,kr=usePickerRef(et),Fr=useOpen(qt,Vt,Nt,Gt),wr=_slicedToArray$3(Fr,2),Br=wr[0],Dr=wr[1],Xr=function($o,Mo){(Nt.some(function(Do){return!Do})||!$o)&&Dr($o,Mo)},Kr=useInnerValue(Zt,Xt,gt,!0,!1,Rt,It,fr,dr),zr=_slicedToArray$3(Kr,5),qr=zr[0],pn=zr[1],Qr=zr[2],Zr=zr[3],vn=zr[4],vr=Qr(),gr=useRangeActive(Nt,kt),br=_slicedToArray$3(gr,7),Hr=br[0],Vr=br[1],Wr=br[2],Gr=br[3],cn=br[4],mn=br[5],hn=br[6],En=function($o,Mo){Vr(!0),Tr==null||Tr($o,{range:getActiveRange(Mo??Gr)})},Rn=function($o,Mo){Vr(!1),jr==null||jr($o,{range:getActiveRange(Mo??Gr)})},Dn=reactExports.useMemo(function(){if(!ur)return null;var fo=ur.disabledTime,$o=fo?function(Mo){var Do=getActiveRange(Gr);return fo(Mo,Do)}:void 0;return _objectSpread2(_objectSpread2({},ur),{},{disabledTime:$o})},[ur,Gr]),Bn=useMergedState([lr,lr],{value:pr}),Yn=_slicedToArray$3(Bn,2),qn=Yn[0],ao=Yn[1],dn=qn[Gr]||lr,gn=dn==="date"&&Dn?"datetime":dn,yn=gn===lr&&gn!=="time",wn=useShowNow(lr,dn,er,cr,!0),Tn=useRangeValue(ct,qr,pn,Qr,Zr,Nt,gt,Hr,Br,$t),Nn=_slicedToArray$3(Tn,2),On=Nn[0],xn=Nn[1],Cn=useRangeDisabledDate(vr,Nt,hn,Zt,Xt,Ft),Sn=useFieldsInvalidate(vr,$t,kt),Mn=_slicedToArray$3(Sn,2),jn=Mn[0],Un=Mn[1],Gn=useRangePickerValue(Zt,Xt,vr,qn,Br,Gr,ut,yn,yr,$r,Dn==null?void 0:Dn.defaultOpenValue,Er,Ht,Wt),eo=_slicedToArray$3(Gn,2),io=eo[0],Kn=eo[1],Wn=useEvent(function(fo,$o,Mo){var Do=fillIndex(qn,Gr,$o);if((Do[0]!==qn[0]||Do[1]!==qn[1])&&ao(Do),hr&&Mo!==!1){var us=_toConsumableArray$3(vr);fo&&(us[Gr]=fo),hr(us,Do)}}),zn=function($o,Mo){return fillIndex(vr,Mo,$o)},_n=function($o,Mo){var Do=vr;$o&&(Do=zn($o,Gr));var us=mn(Do);Zr(Do),On(Gr,us===null),us===null?Xr(!1,{force:!0}):Mo||kr.current.focus(us)},ln=function($o){if(!kr.current.nativeElement.contains(document.activeElement)){var Mo=Nt.findIndex(function(Do){return!Do});Mo>=0&&kr.current.focus(Mo)}Xr(!0),Mr==null||Mr($o)},Pn=function(){xn(null),Xr(!1,{force:!0})},An=reactExports.useState(null),Qn=_slicedToArray$3(An,2),ro=Qn[0],oo=Qn[1],Vn=reactExports.useState(null),uo=_slicedToArray$3(Vn,2),po=uo[0],_o=uo[1],Uo=reactExports.useMemo(function(){return po||vr},[vr,po]);reactExports.useEffect(function(){Br||_o(null)},[Br]);var Bo=reactExports.useState(0),Oo=_slicedToArray$3(Bo,2),Ko=Oo[0],Ao=Oo[1],No=usePresets(Or,_r),qo=function($o){_o($o),oo("preset")},Wo=function($o){var Mo=xn($o);Mo&&Xr(!1,{force:!0})},os=function($o){_n($o)},Io=function($o){_o($o?zn($o,Gr):null),oo("cell")},ss=function($o){Xr(!0),En($o)},_i=function($o){Wr("panel");var Mo=fillIndex(vr,Gr,$o);Zr(Mo),!At&&!ft&&ut===gn&&_n($o)},vo=function(){Xr(!1)},mo=useCellRender(Nr,Rr,Pr,getActiveRange(Gr)),Fn=vr[Gr]||null,kn=useEvent(function(fo){return $t(fo,{activeIndex:Gr})}),co=reactExports.useMemo(function(){var fo=pickAttrs(ct,!1),$o=omit$2(ct,[].concat(_toConsumableArray$3(Object.keys(fo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return $o},[ct]),Eo=reactExports.createElement(Popup,_extends$b({},co,{showNow:wn,showTime:Dn,range:!0,multiplePanel:yn,activeOffset:Ko,disabledDate:Cn,onFocus:ss,onBlur:Rn,picker:lr,mode:dn,internalMode:gn,onPanelChange:Wn,format:xt,value:Fn,isInvalid:kn,onChange:null,onSelect:_i,pickerValue:io,defaultOpenValue:toArray$9(ur==null?void 0:ur.defaultOpenValue)[Gr],onPickerValueChange:Kn,hoverValue:Uo,onHover:Io,needConfirm:At,onSubmit:_n,onOk:vn,presets:No,onPresetHover:qo,onPresetSubmit:Wo,onNow:os,cellRender:mo})),so=function($o,Mo){var Do=zn($o,Mo);Zr(Do)},Xn=function(){Wr("input")},no=function($o,Mo){Wr("input"),Xr(!0,{inherit:!0}),cn(Mo),En($o,Mo)},To=function($o,Mo){Xr(!1),Rn($o,Mo)},Po=function($o,Mo){$o.key==="Tab"&&_n(null,!0),jt==null||jt($o,Mo)},Fo=reactExports.useMemo(function(){return{prefixCls:_t,locale:Xt,generateConfig:Zt,button:Cr.button,input:Cr.input}},[_t,Xt,Zt,Cr.button,Cr.input]);return useLayoutEffect$3(function(){Br&&Gr!==void 0&&Wn(null,lr,!1)},[Br,Gr,lr]),useLayoutEffect$3(function(){var fo=Wr();!Br&&fo==="input"&&(Xr(!1),_n(null,!0)),!Br&&ft&&!At&&fo==="panel"&&(Xr(!0),_n())},[Br]),reactExports.createElement(PickerContext.Provider,{value:Fo},reactExports.createElement(PickerTrigger,_extends$b({},pickTriggerProps(ct),{popupElement:Eo,popupStyle:wt.popup,popupClassName:Tt.popup,visible:Br,onClose:vo,range:!0}),reactExports.createElement(RefRangeSelector,_extends$b({},ct,{ref:kr,suffixIcon:Sr,activeIndex:Hr||Br?Gr:null,activeHelp:!!po,allHelp:!!po&&ro==="preset",focused:Hr,onFocus:no,onBlur:To,onKeyDown:Po,onSubmit:_n,value:Uo,maskFormat:xt,onChange:so,onInputChange:Xn,format:gt,inputReadOnly:mr,disabled:Nt,open:Br,onOpenChange:Xr,onClick:ln,onClear:Pn,invalid:jn,onInvalid:Un,onActiveOffset:Ao}))))}var RefRangePicker=reactExports.forwardRef(RangePicker$1);function MultipleDates(_e){var et=_e.prefixCls,rt=_e.value,st=_e.onRemove,ct=_e.removeIcon,ut=ct===void 0?"×":ct,ft=_e.formatDate,gt=_e.disabled,xt=_e.maxTagCount,$t="".concat(et,"-selector"),_t="".concat(et,"-selection"),wt="".concat(_t,"-overflow");function Tt(At,jt){return reactExports.createElement("span",{className:classNames("".concat(_t,"-item")),title:typeof At=="string"?At:null},reactExports.createElement("span",{className:"".concat(_t,"-item-content")},At),!gt&&jt&&reactExports.createElement("span",{onMouseDown:function(kt){kt.preventDefault()},onClick:jt,className:"".concat(_t,"-item-remove")},ut))}function Rt(At){var jt=ft(At),Nt=function(Ft){Ft&&Ft.stopPropagation(),st(At)};return Tt(jt,Nt)}function It(At){var jt="+ ".concat(At.length," ...");return Tt(jt)}return reactExports.createElement("div",{className:$t},reactExports.createElement(ForwardOverflow,{prefixCls:wt,data:rt,renderItem:Rt,renderRest:It,itemKey:function(jt){return ft(jt)},maxCount:xt}))}var _excluded$1l=["id","open","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","removeIcon"];function SingleSelector$2(_e,et){_e.id;var rt=_e.open,st=_e.clearIcon,ct=_e.suffixIcon;_e.activeHelp,_e.allHelp;var ut=_e.focused;_e.onFocus,_e.onBlur,_e.onKeyDown;var ft=_e.locale,gt=_e.generateConfig;_e.placeholder;var xt=_e.className,$t=_e.style,_t=_e.onClick,wt=_e.onClear,Tt=_e.internalPicker,Rt=_e.value,It=_e.onChange,At=_e.onSubmit;_e.onInputChange;var jt=_e.multiple,Nt=_e.maxTagCount;_e.format,_e.maskFormat,_e.preserveInvalidOnBlur,_e.onInvalid;var kt=_e.disabled,Ft=_e.invalid;_e.inputReadOnly;var Ht=_e.direction;_e.onOpenChange;var Wt=_e.onMouseDown;_e.required,_e["aria-required"];var Vt=_e.autoFocus,qt=_e.removeIcon,Gt=_objectWithoutProperties$2(_e,_excluded$1l),Xt=Ht==="rtl",Zt=reactExports.useContext(PickerContext),lr=Zt.prefixCls,er=reactExports.useRef(),cr=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return{nativeElement:er.current,focus:function(){var Tr;(Tr=cr.current)===null||Tr===void 0||Tr.focus()},blur:function(){var Tr;(Tr=cr.current)===null||Tr===void 0||Tr.blur()}}});var ur=useRootProps(Gt),pr=function(Tr){It([Tr])},hr=function(Tr){var jr=Rt.filter(function(Or){return Or&&!isSame$1(gt,ft,Or,Tr,Tt)});It(jr),rt||At()},fr=useInputProps(_objectSpread2(_objectSpread2({},_e),{},{onChange:pr}),function(Sr){var Tr=Sr.valueTexts;return{value:Tr[0]||"",active:ut}}),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1],Er=!!(st&&Rt.length&&!kt),mr=jt?reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(MultipleDates,{prefixCls:lr,value:Rt,onRemove:hr,formatDate:$r,maxTagCount:Nt,disabled:kt,removeIcon:qt}),reactExports.createElement("input",{className:"".concat(lr,"-multiple-input"),value:Rt.map($r).join(","),ref:cr,readOnly:!0,autoFocus:Vt}),reactExports.createElement(Icon$9,{type:"suffix",icon:ct}),Er&&reactExports.createElement(ClearIcon,{icon:st,onClear:wt})):reactExports.createElement(Input$7,_extends$b({ref:cr},yr(),{autoFocus:Vt,suffixIcon:ct,clearIcon:Er&&reactExports.createElement(ClearIcon,{icon:st,onClear:wt}),showActiveCls:!1}));return reactExports.createElement("div",_extends$b({},ur,{className:classNames(lr,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(lr,"-multiple"),jt),"".concat(lr,"-focused"),ut),"".concat(lr,"-disabled"),kt),"".concat(lr,"-invalid"),Ft),"".concat(lr,"-rtl"),Xt),xt),style:$t,ref:er,onClick:_t,onMouseDown:function(Tr){var jr,Or=Tr.target;Or!==((jr=cr.current)===null||jr===void 0?void 0:jr.inputElement)&&Tr.preventDefault(),Wt==null||Wt(Tr)}}),mr)}var RefSingleSelector=reactExports.forwardRef(SingleSelector$2);function Picker$1(_e,et){var rt=useFilledProps(_e),st=_slicedToArray$3(rt,6),ct=st[0],ut=st[1],ft=st[2],gt=st[3],xt=st[4],$t=st[5],_t=ct,wt=_t.prefixCls,Tt=_t.styles,Rt=_t.classNames,It=_t.order,At=_t.defaultValue,jt=_t.value,Nt=_t.needConfirm,kt=_t.onChange,Ft=_t.onKeyDown,Ht=_t.disabled,Wt=_t.disabledDate,Vt=_t.minDate,qt=_t.maxDate,Gt=_t.defaultOpen,Xt=_t.open,Zt=_t.onOpenChange,lr=_t.locale,er=_t.generateConfig,cr=_t.picker,ur=_t.showNow,pr=_t.showToday,hr=_t.showTime,fr=_t.mode,dr=_t.onPanelChange,yr=_t.onCalendarChange,$r=_t.onOk,Er=_t.multiple,mr=_t.defaultPickerValue,Sr=_t.pickerValue,Tr=_t.onPickerValueChange,jr=_t.inputReadOnly,Or=_t.suffixIcon,_r=_t.removeIcon,Cr=_t.onFocus,Nr=_t.onBlur,Rr=_t.presets,Pr=_t.components,Mr=_t.cellRender,kr=_t.dateRender,Fr=_t.monthCellRender,wr=_t.onClick,Br=usePickerRef(et);function Dr(Xn){return Xn===null?null:Er?Xn:Xn[0]}var Xr=useToggleDates(er,lr,ut),Kr=useOpen(Xt,Gt,[Ht],Zt),zr=_slicedToArray$3(Kr,2),qr=zr[0],pn=zr[1],Qr=function(no,To,Po){if(yr){var Fo=_objectSpread2({},Po);delete Fo.range,yr(Dr(no),Dr(To),Fo)}},Zr=function(no){$r==null||$r(Dr(no))},vn=useInnerValue(er,lr,gt,!1,It,At,jt,Qr,Zr),vr=_slicedToArray$3(vn,5),gr=vr[0],br=vr[1],Hr=vr[2],Vr=vr[3],Wr=vr[4],Gr=Hr(),cn=useRangeActive([Ht]),mn=_slicedToArray$3(cn,4),hn=mn[0],En=mn[1],Rn=mn[2],Dn=mn[3],Bn=function(no){En(!0),Cr==null||Cr(no,{})},Yn=function(no){En(!1),Nr==null||Nr(no,{})},qn=useMergedState(cr,{value:fr}),ao=_slicedToArray$3(qn,2),dn=ao[0],gn=ao[1],yn=dn==="date"&&hr?"datetime":dn,wn=useShowNow(cr,dn,ur,pr),Tn=kt&&function(Xn,no){kt(Dr(Xn),Dr(no))},Nn=useRangeValue(_objectSpread2(_objectSpread2({},ct),{},{onChange:Tn}),gr,br,Hr,Vr,[],gt,hn,qr,$t),On=_slicedToArray$3(Nn,2),xn=On[1],Cn=useFieldsInvalidate(Gr,$t),Sn=_slicedToArray$3(Cn,2),Mn=Sn[0],jn=Sn[1],Un=reactExports.useMemo(function(){return Mn.some(function(Xn){return Xn})},[Mn]),Gn=function(no,To){if(Tr){var Po=_objectSpread2(_objectSpread2({},To),{},{mode:To.mode[0]});delete Po.range,Tr(no[0],Po)}},eo=useRangePickerValue(er,lr,Gr,[dn],qr,Dn,ut,!1,mr,Sr,toArray$9(hr==null?void 0:hr.defaultOpenValue),Gn,Vt,qt),io=_slicedToArray$3(eo,2),Kn=io[0],Wn=io[1],zn=useEvent(function(Xn,no,To){if(gn(no),dr&&To!==!1){var Po=Xn||Gr[Gr.length-1];dr(Po,no)}}),_n=function(){xn(Hr()),pn(!1,{force:!0})},ln=function(no){!Ht&&!Br.current.nativeElement.contains(document.activeElement)&&Br.current.focus(),pn(!0),wr==null||wr(no)},Pn=function(){xn(null),pn(!1,{force:!0})},An=reactExports.useState(null),Qn=_slicedToArray$3(An,2),ro=Qn[0],oo=Qn[1],Vn=reactExports.useState(null),uo=_slicedToArray$3(Vn,2),po=uo[0],_o=uo[1],Uo=reactExports.useMemo(function(){var Xn=[po].concat(_toConsumableArray$3(Gr)).filter(function(no){return no});return Er?Xn:Xn.slice(0,1)},[Gr,po,Er]),Bo=reactExports.useMemo(function(){return!Er&&po?[po]:Gr.filter(function(Xn){return Xn})},[Gr,po,Er]);reactExports.useEffect(function(){qr||_o(null)},[qr]);var Oo=usePresets(Rr),Ko=function(no){_o(no),oo("preset")},Ao=function(no){var To=Er?Xr(Hr(),no):[no],Po=xn(To);Po&&!Er&&pn(!1,{force:!0})},No=function(no){Ao(no)},qo=function(no){_o(no),oo("cell")},Wo=function(no){pn(!0),Bn(no)},os=function(no){Rn("panel");var To=Er?Xr(Hr(),no):[no];Vr(To),!Nt&&!ft&&ut===yn&&_n()},Io=function(){pn(!1)},ss=useCellRender(Mr,kr,Fr),_i=reactExports.useMemo(function(){var Xn=pickAttrs(ct,!1),no=omit$2(ct,[].concat(_toConsumableArray$3(Object.keys(Xn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return _objectSpread2(_objectSpread2({},no),{},{multiple:ct.multiple})},[ct]),vo=reactExports.createElement(Popup,_extends$b({},_i,{showNow:wn,showTime:hr,disabledDate:Wt,onFocus:Wo,onBlur:Yn,picker:cr,mode:dn,internalMode:yn,onPanelChange:zn,format:xt,value:Gr,isInvalid:$t,onChange:null,onSelect:os,pickerValue:Kn,defaultOpenValue:hr==null?void 0:hr.defaultOpenValue,onPickerValueChange:Wn,hoverValue:Uo,onHover:qo,needConfirm:Nt,onSubmit:_n,onOk:Wr,presets:Oo,onPresetHover:Ko,onPresetSubmit:Ao,onNow:No,cellRender:ss})),mo=function(no){Vr(no)},Fn=function(){Rn("input")},kn=function(no){Rn("input"),pn(!0,{inherit:!0}),Bn(no)},co=function(no){pn(!1),Yn(no)},Eo=function(no,To){no.key==="Tab"&&_n(),Ft==null||Ft(no,To)},so=reactExports.useMemo(function(){return{prefixCls:wt,locale:lr,generateConfig:er,button:Pr.button,input:Pr.input}},[wt,lr,er,Pr.button,Pr.input]);return useLayoutEffect$3(function(){qr&&Dn!==void 0&&zn(null,cr,!1)},[qr,Dn,cr]),useLayoutEffect$3(function(){var Xn=Rn();!qr&&Xn==="input"&&(pn(!1),_n()),!qr&&ft&&!Nt&&Xn==="panel"&&(pn(!0),_n())},[qr]),reactExports.createElement(PickerContext.Provider,{value:so},reactExports.createElement(PickerTrigger,_extends$b({},pickTriggerProps(ct),{popupElement:vo,popupStyle:Tt.popup,popupClassName:Rt.popup,visible:qr,onClose:Io}),reactExports.createElement(RefSingleSelector,_extends$b({},ct,{ref:Br,suffixIcon:Or,removeIcon:_r,activeHelp:!!po,allHelp:!!po&&ro==="preset",focused:hn,onFocus:kn,onBlur:co,onKeyDown:Eo,onSubmit:_n,value:Bo,maskFormat:xt,onChange:mo,onInputChange:Fn,internalPicker:ut,format:gt,inputReadOnly:jr,disabled:Ht,open:qr,onOpenChange:pn,onClick:ln,onClear:Pn,invalid:Un,onInvalid:function(no){jn(no,0)}}))))}var RefPicker=reactExports.forwardRef(Picker$1);const RadioGroupContext=reactExports.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=reactExports.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$1k=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$5=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-checkbox":st,ut=_e.className,ft=_e.style,gt=_e.checked,xt=_e.disabled,$t=_e.defaultChecked,_t=$t===void 0?!1:$t,wt=_e.type,Tt=wt===void 0?"checkbox":wt,Rt=_e.title,It=_e.onChange,At=_objectWithoutProperties$2(_e,_excluded$1k),jt=reactExports.useRef(null),Nt=useMergedState(_t,{value:gt}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];reactExports.useImperativeHandle(et,function(){return{focus:function(){var Gt;(Gt=jt.current)===null||Gt===void 0||Gt.focus()},blur:function(){var Gt;(Gt=jt.current)===null||Gt===void 0||Gt.blur()},input:jt.current}});var Wt=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-checked"),Ft),_defineProperty$c(rt,"".concat(ct,"-disabled"),xt),rt)),Vt=function(Gt){xt||("checked"in _e||Ht(Gt.target.checked),It==null||It({target:_objectSpread2(_objectSpread2({},_e),{},{type:Tt,checked:Gt.target.checked}),stopPropagation:function(){Gt.stopPropagation()},preventDefault:function(){Gt.preventDefault()},nativeEvent:Gt.nativeEvent}))};return reactExports.createElement("span",{className:Wt,title:Rt,style:ft},reactExports.createElement("input",_extends$b({},At,{className:"".concat(ct,"-input"),ref:jt,onChange:Vt,disabled:xt,checked:!!Ft,type:Tt})),reactExports.createElement("span",{className:"".concat(ct,"-inner")}))});const getGroupRadioStyle=_e=>{const{componentCls:et,antCls:rt}=_e,st=`${et}-group`;return{[st]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",fontSize:0,[`&${st}-rtl`]:{direction:"rtl"},[`${rt}-badge ${rt}-badge-count`]:{zIndex:1},[`> ${rt}-badge:not(:first-child) > ${rt}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=_e=>{const{componentCls:et,wrapperMarginInlineEnd:rt,colorPrimary:st,radioSize:ct,motionDurationSlow:ut,motionDurationMid:ft,motionEaseInOutCirc:gt,colorBgContainer:xt,colorBorder:$t,lineWidth:_t,colorBgContainerDisabled:wt,colorTextDisabled:Tt,paddingXS:Rt,dotColorDisabled:It,lineType:At,radioColor:jt,radioBgColor:Nt,calc:kt}=_e,Ft=`${et}-inner`,Wt=kt(ct).sub(kt(4).mul(2)),Vt=kt(1).mul(ct).equal();return{[`${et}-wrapper`]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:rt,cursor:"pointer",[`&${et}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${et}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit$1(_t)} ${At} ${st}`,borderRadius:"50%",visibility:"hidden",content:'""'},[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${et}-wrapper:hover &, - &:hover ${Ft}`]:{borderColor:st},[`${et}-input:focus-visible + ${Ft}`]:Object.assign({},genFocusOutline(_e)),[`${et}:hover::after, ${et}-wrapper:hover &::after`]:{visibility:"visible"},[`${et}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Vt,height:Vt,marginBlockStart:kt(1).mul(ct).div(-2).equal(),marginInlineStart:kt(1).mul(ct).div(-2).equal(),backgroundColor:jt,borderBlockStart:0,borderInlineStart:0,borderRadius:Vt,transform:"scale(0)",opacity:0,transition:`all ${ut} ${gt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Vt,height:Vt,backgroundColor:xt,borderColor:$t,borderStyle:"solid",borderWidth:_t,borderRadius:"50%",transition:`all ${ft}`},[`${et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${et}-checked`]:{[Ft]:{borderColor:st,backgroundColor:Nt,"&::after":{transform:`scale(${_e.calc(_e.dotSize).div(ct).equal()})`,opacity:1,transition:`all ${ut} ${gt}`}}},[`${et}-disabled`]:{cursor:"not-allowed",[Ft]:{backgroundColor:wt,borderColor:$t,cursor:"not-allowed","&::after":{backgroundColor:It}},[`${et}-input`]:{cursor:"not-allowed"},[`${et}-disabled + span`]:{color:Tt,cursor:"not-allowed"},[`&${et}-checked`]:{[Ft]:{"&::after":{transform:`scale(${kt(Wt).div(ct).equal({unit:!1})})`}}}},[`span${et} + *`]:{paddingInlineStart:Rt,paddingInlineEnd:Rt}})}},getRadioButtonStyle=_e=>{const{buttonColor:et,controlHeight:rt,componentCls:st,lineWidth:ct,lineType:ut,colorBorder:ft,motionDurationSlow:gt,motionDurationMid:xt,buttonPaddingInline:$t,fontSize:_t,buttonBg:wt,fontSizeLG:Tt,controlHeightLG:Rt,controlHeightSM:It,paddingXS:At,borderRadius:jt,borderRadiusSM:Nt,borderRadiusLG:kt,buttonCheckedBg:Ft,buttonSolidCheckedColor:Ht,colorTextDisabled:Wt,colorBgContainerDisabled:Vt,buttonCheckedBgDisabled:qt,buttonCheckedColorDisabled:Gt,colorPrimary:Xt,colorPrimaryHover:Zt,colorPrimaryActive:lr,buttonSolidCheckedBg:er,buttonSolidCheckedHoverBg:cr,buttonSolidCheckedActiveBg:ur,calc:pr}=_e;return{[`${st}-button-wrapper`]:{position:"relative",display:"inline-block",height:rt,margin:0,paddingInline:$t,paddingBlock:0,color:et,fontSize:_t,lineHeight:unit$1(pr(rt).sub(pr(ct).mul(2)).equal()),background:wt,border:`${unit$1(ct)} ${ut} ${ft}`,borderBlockStartWidth:pr(ct).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:ct,cursor:"pointer",transition:[`color ${xt}`,`background ${xt}`,`box-shadow ${xt}`].join(","),a:{color:et},[`> ${st}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:pr(ct).mul(-1).equal(),insetInlineStart:pr(ct).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ct,paddingInline:0,backgroundColor:ft,transition:`background-color ${gt}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit$1(ct)} ${ut} ${ft}`,borderStartStartRadius:jt,borderEndStartRadius:jt},"&:last-child":{borderStartEndRadius:jt,borderEndEndRadius:jt},"&:first-child:last-child":{borderRadius:jt},[`${st}-group-large &`]:{height:Rt,fontSize:Tt,lineHeight:unit$1(pr(Rt).sub(pr(ct).mul(2)).equal()),"&:first-child":{borderStartStartRadius:kt,borderEndStartRadius:kt},"&:last-child":{borderStartEndRadius:kt,borderEndEndRadius:kt}},[`${st}-group-small &`]:{height:It,paddingInline:pr(At).sub(ct).equal(),paddingBlock:0,lineHeight:unit$1(pr(It).sub(pr(ct).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Nt,borderEndStartRadius:Nt},"&:last-child":{borderStartEndRadius:Nt,borderEndEndRadius:Nt}},"&:hover":{position:"relative",color:Xt},"&:has(:focus-visible)":Object.assign({},genFocusOutline(_e)),[`${st}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${st}-button-wrapper-disabled)`]:{zIndex:1,color:Xt,background:Ft,borderColor:Xt,"&::before":{backgroundColor:Xt},"&:first-child":{borderColor:Xt},"&:hover":{color:Zt,borderColor:Zt,"&::before":{backgroundColor:Zt}},"&:active":{color:lr,borderColor:lr,"&::before":{backgroundColor:lr}}},[`${st}-group-solid &-checked:not(${st}-button-wrapper-disabled)`]:{color:Ht,background:er,borderColor:er,"&:hover":{color:Ht,background:cr,borderColor:cr},"&:active":{color:Ht,background:ur,borderColor:ur}},"&-disabled":{color:Wt,backgroundColor:Vt,borderColor:ft,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:Vt,borderColor:ft}},[`&-disabled${st}-button-wrapper-checked`]:{color:Gt,backgroundColor:qt,borderColor:ft,boxShadow:"none"}}}},prepareComponentToken$n=_e=>{const{wireframe:et,padding:rt,marginXS:st,lineWidth:ct,fontSizeLG:ut,colorText:ft,colorBgContainer:gt,colorTextDisabled:xt,controlItemBgActiveDisabled:$t,colorTextLightSolid:_t,colorPrimary:wt,colorPrimaryHover:Tt,colorPrimaryActive:Rt,colorWhite:It}=_e,At=4,jt=ut,Nt=et?jt-At*2:jt-(At+ct)*2;return{radioSize:jt,dotSize:Nt,dotColorDisabled:xt,buttonSolidCheckedColor:_t,buttonSolidCheckedBg:wt,buttonSolidCheckedHoverBg:Tt,buttonSolidCheckedActiveBg:Rt,buttonBg:gt,buttonCheckedBg:gt,buttonColor:ft,buttonCheckedBgDisabled:$t,buttonCheckedColorDisabled:xt,buttonPaddingInline:rt-ct,wrapperMarginInlineEnd:st,radioColor:et?wt:It,radioBgColor:et?gt:wt}},useStyle$I=genStyleHooks("Radio",_e=>{const{controlOutline:et,controlOutlineWidth:rt}=_e,st=`0 0 0 ${unit$1(rt)} ${et}`,ut=merge$7(_e,{radioFocusShadow:st,radioButtonFocusShadow:st});return[getGroupRadioStyle(ut),getRadioBasicStyle(ut),getRadioButtonStyle(ut)]},prepareComponentToken$n,{unitless:{radioSize:!0,dotSize:!0}});var __rest$J=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const ct=reactExports.useContext(RadioGroupContext),ut=reactExports.useContext(RadioOptionTypeContext),{getPrefixCls:ft,direction:gt,radio:xt}=reactExports.useContext(ConfigContext$1),$t=reactExports.useRef(null),_t=composeRef(et,$t),{isFormItemInput:wt}=reactExports.useContext(FormItemInputContext),Tt=ur=>{var pr,hr;(pr=_e.onChange)===null||pr===void 0||pr.call(_e,ur),(hr=ct==null?void 0:ct.onChange)===null||hr===void 0||hr.call(ct,ur)},{prefixCls:Rt,className:It,rootClassName:At,children:jt,style:Nt,title:kt}=_e,Ft=__rest$J(_e,["prefixCls","className","rootClassName","children","style","title"]),Ht=ft("radio",Rt),Wt=((ct==null?void 0:ct.optionType)||ut)==="button",Vt=Wt?`${Ht}-button`:Ht,qt=useCSSVarCls(Ht),[Gt,Xt,Zt]=useStyle$I(Ht,qt),lr=Object.assign({},Ft),er=reactExports.useContext(DisabledContext$2);ct&&(lr.name=ct.name,lr.onChange=Tt,lr.checked=_e.value===ct.value,lr.disabled=(rt=lr.disabled)!==null&&rt!==void 0?rt:ct.disabled),lr.disabled=(st=lr.disabled)!==null&&st!==void 0?st:er;const cr=classNames(`${Vt}-wrapper`,{[`${Vt}-wrapper-checked`]:lr.checked,[`${Vt}-wrapper-disabled`]:lr.disabled,[`${Vt}-wrapper-rtl`]:gt==="rtl",[`${Vt}-wrapper-in-form-item`]:wt},xt==null?void 0:xt.className,It,At,Xt,Zt,qt);return Gt(reactExports.createElement(Wave$1,{component:"Radio",disabled:lr.disabled},reactExports.createElement("label",{className:cr,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Nt),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,title:kt},reactExports.createElement(Checkbox$5,Object.assign({},lr,{className:classNames(lr.className,!Wt&&TARGET_CLS),type:"radio",prefixCls:Vt,ref:_t})),jt!==void 0?reactExports.createElement("span",null,jt):null)))},Radio$3=reactExports.forwardRef(InternalRadio),InternalRadio$1=Radio$3,RadioGroup=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),[ct,ut]=useMergedState(_e.defaultValue,{value:_e.value}),ft=ur=>{const pr=ct,hr=ur.target.value;"value"in _e||ut(hr);const{onChange:fr}=_e;fr&&hr!==pr&&fr(ur)},{prefixCls:gt,className:xt,rootClassName:$t,options:_t,buttonStyle:wt="outline",disabled:Tt,children:Rt,size:It,style:At,id:jt,onMouseEnter:Nt,onMouseLeave:kt,onFocus:Ft,onBlur:Ht}=_e,Wt=rt("radio",gt),Vt=`${Wt}-group`,qt=useCSSVarCls(Wt),[Gt,Xt,Zt]=useStyle$I(Wt,qt);let lr=Rt;_t&&_t.length>0&&(lr=_t.map(ur=>typeof ur=="string"||typeof ur=="number"?reactExports.createElement(InternalRadio$1,{key:ur.toString(),prefixCls:Wt,disabled:Tt,value:ur,checked:ct===ur},ur):reactExports.createElement(InternalRadio$1,{key:`radio-group-value-options-${ur.value}`,prefixCls:Wt,disabled:ur.disabled||Tt,value:ur.value,checked:ct===ur.value,title:ur.title,style:ur.style,id:ur.id,required:ur.required},ur.label)));const er=useSize(It),cr=classNames(Vt,`${Vt}-${wt}`,{[`${Vt}-${er}`]:er,[`${Vt}-rtl`]:st==="rtl"},xt,$t,Xt,Zt,qt);return Gt(reactExports.createElement("div",Object.assign({},pickAttrs(_e,{aria:!0,data:!0}),{className:cr,style:At,onMouseEnter:Nt,onMouseLeave:kt,onFocus:Ft,onBlur:Ht,id:jt,ref:et}),reactExports.createElement(RadioGroupContextProvider,{value:{onChange:ft,value:ct,disabled:_e.disabled,name:_e.name,optionType:_e.optionType}},lr)))}),Group$6=reactExports.memo(RadioGroup);var __rest$I=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st}=_e,ct=__rest$I(_e,["prefixCls"]),ut=rt("radio",st);return reactExports.createElement(RadioOptionTypeContextProvider,{value:"button"},reactExports.createElement(InternalRadio$1,Object.assign({prefixCls:ut},ct,{type:"radio",ref:et})))},Button$1=reactExports.forwardRef(RadioButton),Radio$1=InternalRadio$1;Radio$1.Button=Button$1;Radio$1.Group=Group$6;Radio$1.__ANT_RADIO=!0;const Radio$2=Radio$1;function initInputToken(_e){return merge$7(_e,{inputAffixPadding:_e.paddingXXS})}const initComponentToken$1=_e=>{const{controlHeight:et,fontSize:rt,lineHeight:st,lineWidth:ct,controlHeightSM:ut,controlHeightLG:ft,fontSizeLG:gt,lineHeightLG:xt,paddingSM:$t,controlPaddingHorizontalSM:_t,controlPaddingHorizontal:wt,colorFillAlter:Tt,colorPrimaryHover:Rt,colorPrimary:It,controlOutlineWidth:At,controlOutline:jt,colorErrorOutline:Nt,colorWarningOutline:kt,colorBgContainer:Ft}=_e;return{paddingBlock:Math.max(Math.round((et-rt*st)/2*10)/10-ct,0),paddingBlockSM:Math.max(Math.round((ut-rt*st)/2*10)/10-ct,0),paddingBlockLG:Math.ceil((ft-gt*xt)/2*10)/10-ct,paddingInline:$t-ct,paddingInlineSM:_t-ct,paddingInlineLG:wt-ct,addonBg:Tt,activeBorderColor:It,hoverBorderColor:Rt,activeShadow:`0 0 0 ${At}px ${jt}`,errorActiveShadow:`0 0 0 ${At}px ${Nt}`,warningActiveShadow:`0 0 0 ${At}px ${kt}`,hoverBg:Ft,activeBg:Ft,inputFontSize:rt,inputFontSizeLG:gt,inputFontSizeSM:rt}},genHoverStyle=_e=>({borderColor:_e.hoverBorderColor,backgroundColor:_e.hoverBg}),genDisabledStyle=_e=>({color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},genHoverStyle(merge$7(_e,{hoverBorderColor:_e.colorBorder,hoverBg:_e.colorBgContainerDisabled})))}),genBaseOutlinedStyle=(_e,et)=>({background:_e.colorBgContainer,borderWidth:_e.lineWidth,borderStyle:_e.lineType,borderColor:et.borderColor,"&:hover":{borderColor:et.hoverBorderColor,backgroundColor:_e.hoverBg},"&:focus, &:focus-within":{borderColor:et.activeBorderColor,boxShadow:et.activeShadow,outline:0,backgroundColor:_e.activeBg}}),genOutlinedStatusStyle=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}:not(${_e.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseOutlinedStyle(_e,et)),{[`${_e.componentCls}-prefix, ${_e.componentCls}-suffix`]:{color:et.affixColor}})}),genOutlinedStyle=(_e,et)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle(_e,{borderColor:_e.colorBorder,hoverBorderColor:_e.hoverBorderColor,activeBorderColor:_e.activeBorderColor,activeShadow:_e.activeShadow})),{[`&${_e.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(_e))}),genOutlinedStatusStyle(_e,{status:"error",borderColor:_e.colorError,hoverBorderColor:_e.colorErrorBorderHover,activeBorderColor:_e.colorError,activeShadow:_e.errorActiveShadow,affixColor:_e.colorError})),genOutlinedStatusStyle(_e,{status:"warning",borderColor:_e.colorWarning,hoverBorderColor:_e.colorWarningBorderHover,activeBorderColor:_e.colorWarning,activeShadow:_e.warningActiveShadow,affixColor:_e.colorWarning})),et)}),genOutlinedGroupStatusStyle=(_e,et)=>({[`&${_e.componentCls}-group-wrapper-status-${et.status}`]:{[`${_e.componentCls}-group-addon`]:{borderColor:et.addonBorderColor,color:et.addonColor}}}),genOutlinedGroupStyle=_e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${_e.componentCls}-group`]:{"&-addon":{background:_e.addonBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},genOutlinedGroupStatusStyle(_e,{status:"error",addonBorderColor:_e.colorError,addonColor:_e.colorErrorText})),genOutlinedGroupStatusStyle(_e,{status:"warning",addonBorderColor:_e.colorWarning,addonColor:_e.colorWarningText})),{[`&${_e.componentCls}-group-wrapper-disabled`]:{[`${_e.componentCls}-group-addon`]:Object.assign({},genDisabledStyle(_e))}})}),genBorderlessStyle$1=(_e,et)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${_e.componentCls}-disabled, &[disabled]`]:{color:_e.colorTextDisabled}},et)}),genBaseFilledStyle=(_e,et)=>({background:et.bg,borderWidth:_e.lineWidth,borderStyle:_e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:et==null?void 0:et.inputColor},"&:hover":{background:et.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:et.activeBorderColor,backgroundColor:_e.activeBg}}),genFilledStatusStyle=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}:not(${_e.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseFilledStyle(_e,et)),{[`${_e.componentCls}-prefix, ${_e.componentCls}-suffix`]:{color:et.affixColor}})}),genFilledStyle=(_e,et)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle(_e,{bg:_e.colorFillTertiary,hoverBg:_e.colorFillSecondary,activeBorderColor:_e.colorPrimary})),{[`&${_e.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(_e))}),genFilledStatusStyle(_e,{status:"error",bg:_e.colorErrorBg,hoverBg:_e.colorErrorBgHover,activeBorderColor:_e.colorError,inputColor:_e.colorErrorText,affixColor:_e.colorError})),genFilledStatusStyle(_e,{status:"warning",bg:_e.colorWarningBg,hoverBg:_e.colorWarningBgHover,activeBorderColor:_e.colorWarning,inputColor:_e.colorWarningText,affixColor:_e.colorWarning})),et)}),genFilledGroupStatusStyle=(_e,et)=>({[`&${_e.componentCls}-group-wrapper-status-${et.status}`]:{[`${_e.componentCls}-group-addon`]:{background:et.addonBg,color:et.addonColor}}}),genFilledGroupStyle=_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}}}},genFilledGroupStatusStyle(_e,{status:"error",addonBg:_e.colorErrorBg,addonColor:_e.colorErrorText})),genFilledGroupStatusStyle(_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderTop:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderTop:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`}}}})}),genPlaceholderStyle=_e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:_e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),genInputLargeStyle=_e=>{const{paddingBlockLG:et,lineHeightLG:rt,borderRadiusLG:st,paddingInlineLG:ct}=_e;return{padding:`${unit$1(et)} ${unit$1(ct)}`,fontSize:_e.inputFontSizeLG,lineHeight:rt,borderRadius:st}},genInputSmallStyle=_e=>({padding:`${unit$1(_e.paddingBlockSM)} ${unit$1(_e.paddingInlineSM)}`,fontSize:_e.inputFontSizeSM,borderRadius:_e.borderRadiusSM}),genBasicInputStyle=_e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit$1(_e.paddingBlock)} ${unit$1(_e.paddingInline)}`,color:_e.colorText,fontSize:_e.inputFontSize,lineHeight:_e.lineHeight,borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationMid}`},genPlaceholderStyle(_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({},genInputLargeStyle(_e)),"&-sm":Object.assign({},genInputSmallStyle(_e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),genInputGroupStyle=_e=>{const{componentCls:et,antCls:rt}=_e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:_e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${et}, &-lg > ${et}-group-addon`]:Object.assign({},genInputLargeStyle(_e)),[`&-sm ${et}, &-sm > ${et}-group-addon`]:Object.assign({},genInputSmallStyle(_e)),[`&-lg ${rt}-select-single ${rt}-select-selector`]:{height:_e.controlHeightLG},[`&-sm ${rt}-select-single ${rt}-select-selector`]:{height:_e.controlHeightSM},[`> ${et}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${et}-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 ${unit$1(_e.paddingInline)}`,color:_e.colorText,fontWeight:"normal",fontSize:_e.inputFontSize,textAlign:"center",borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationSlow}`,lineHeight:1,[`${rt}-select`]:{margin:`${unit$1(_e.calc(_e.paddingBlock).add(1).mul(-1).equal())} ${unit$1(_e.calc(_e.paddingInline).mul(-1).equal())}`,[`&${rt}-select-single:not(${rt}-select-customize-input):not(${rt}-pagination-size-changer)`]:{[`${rt}-select-selector`]:{backgroundColor:"inherit",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${rt}-select-selector`]:{color:_e.colorPrimary}}},[`${rt}-cascader-picker`]:{margin:`-9px ${unit$1(_e.calc(_e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${rt}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${et}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${et}-search-with-button &`]:{zIndex:0}}},[`> ${et}:first-child, ${et}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${rt}-select ${rt}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${et}-affix-wrapper`]:{[`&:not(:first-child) ${et}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${et}:last-child, ${et}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${rt}-select ${rt}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${et}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${et}-search &`]:{borderStartStartRadius:_e.borderRadius,borderEndStartRadius:_e.borderRadius}},[`&:not(:first-child), ${et}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${et}-group-compact`]:Object.assign(Object.assign({display:"block"},clearFix()),{[`${et}-group-addon, ${et}-group-wrap, > ${et}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:_e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + &-inline ${rt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit$1(At)})`},"&::after":{transform:`rotate(45deg) translateX(${unit$1(_e.calc(At).mul(-1).equal())})`}},[`${rt}-submenu-open${rt}-submenu-inline > ${rt}-submenu-title > ${rt}-submenu-arrow`]:{transform:`translateY(${unit$1(_e.calc(It).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit$1(_e.calc(At).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit$1(At)})`}}})},{[`${et}-layout-header`]:{[rt]:{lineHeight:"inherit"}}}]},prepareComponentToken$q=_e=>{var et,rt,st;const{colorPrimary:ct,colorError:ut,colorTextDisabled:ft,colorErrorBg:gt,colorText:xt,colorTextDescription:$t,colorBgContainer:_t,colorFillAlter:wt,colorFillContent:Tt,lineWidth:Rt,lineWidthBold:It,controlItemBgActive:At,colorBgTextHover:jt,controlHeightLG:Nt,lineHeight:kt,colorBgElevated:Ft,marginXXS:Ht,padding:Wt,fontSize:Vt,controlHeightSM:qt,fontSizeLG:Xt,colorTextLightSolid:Gt,colorErrorHover:Zt}=_e,er=(et=_e.activeBarWidth)!==null&&et!==void 0?et:0,lr=(rt=_e.activeBarBorderWidth)!==null&&rt!==void 0?rt:Rt,cr=(st=_e.itemMarginInline)!==null&&st!==void 0?st:_e.marginXXS,ur=new TinyColor(Gt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:ct,horizontalItemHoverColor:ct,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:ct,itemSelectedColor:ct,colorItemTextSelectedHorizontal:ct,horizontalItemSelectedColor:ct,colorItemBg:_t,itemBg:_t,colorItemBgHover:jt,itemHoverBg:jt,colorItemBgActive:Tt,itemActiveBg:At,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:er,colorActiveBarHeight:It,activeBarHeight:It,colorActiveBarBorderSize:Rt,activeBarBorderWidth:lr,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:gt,dangerItemActiveBg:gt,colorDangerItemBgSelected:gt,dangerItemSelectedBg:gt,itemMarginInline:cr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:kt,collapsedWidth:Nt*2,popupBg:Ft,itemMarginBlock:Ht,itemPaddingInline:Wt,horizontalLineHeight:`${Nt*1.15}px`,iconSize:Vt,iconMarginInlineEnd:qt-Vt,collapsedIconSize:Xt,groupTitleFontSize:Vt,darkItemDisabledColor:new TinyColor(Gt).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:ut,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gt,darkItemSelectedBg:ct,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Gt,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:ut,itemWidth:er?`calc(100% + ${lr}px)`:`calc(100% - ${cr*2}px)`}},useStyle$L=function(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_e,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return genStyleHooks("Menu",ct=>{const{colorBgElevated:ut,colorPrimary:ft,colorTextLightSolid:gt,controlHeightLG:xt,fontSize:$t,darkItemColor:_t,darkDangerItemColor:wt,darkItemBg:Tt,darkSubMenuItemBg:Rt,darkItemSelectedColor:It,darkItemSelectedBg:At,darkDangerItemSelectedBg:jt,darkItemHoverBg:Nt,darkGroupTitleColor:kt,darkItemHoverColor:Ft,darkItemDisabledColor:Ht,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:qt,popupBg:Xt,darkPopupBg:Gt}=ct,Zt=ct.calc($t).div(7).mul(5).equal(),er=merge$7(ct,{menuArrowSize:Zt,menuHorizontalHeight:ct.calc(xt).mul(1.15).equal(),menuArrowOffset:ct.calc(Zt).mul(.25).equal(),menuSubMenuBg:ut,calc:ct.calc,popupBg:Xt}),lr=merge$7(er,{itemColor:_t,itemHoverColor:Ft,groupTitleColor:kt,itemSelectedColor:It,itemBg:Tt,popupBg:Gt,subMenuItemBg:Rt,itemActiveBg:"transparent",itemSelectedBg:At,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Nt,itemDisabledColor:Ht,dangerItemColor:wt,dangerItemHoverColor:Wt,dangerItemSelectedColor:Vt,dangerItemActiveBg:qt,dangerItemSelectedBg:jt,menuSubMenuBg:Rt,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:ft});return[getBaseStyle(er),getHorizontalStyle(er),getVerticalStyle(er),getThemeStyle(er,"light"),getThemeStyle(lr,"dark"),getRTLStyle(er),genCollapseMotion(er),initSlideMotion(er,"slide-up"),initSlideMotion(er,"slide-down"),initZoomMotion(er,"zoom-big")]},prepareComponentToken$q,{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:rt,unitless:{groupTitleLineHeight:!0}})(_e,et)};var __rest$O=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const ct=reactExports.useContext(OverrideContext$1),ut=ct||{},{getPrefixCls:ft,getPopupContainer:gt,direction:xt,menu:$t}=reactExports.useContext(ConfigContext$1),_t=ft(),{prefixCls:wt,className:Tt,style:Rt,theme:It="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:jt,inlineCollapsed:Nt,siderCollapsed:kt,items:Ft,children:Ht,rootClassName:Wt,mode:Vt,selectable:qt,onClick:Xt,overflowedIndicatorPopupClassName:Gt}=_e,Zt=__rest$O(_e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),er=omit$2(Zt,["collapsedWidth"]),lr=useItems$2(Ft)||Ht;(rt=ut.validator)===null||rt===void 0||rt.call(ut,{mode:Vt});const cr=useEvent(function(){var Or;Xt==null||Xt.apply(void 0,arguments),(Or=ut.onClick)===null||Or===void 0||Or.call(ut)}),ur=ut.mode||Vt,fr=qt??ut.selectable,hr=reactExports.useMemo(()=>kt!==void 0?kt:Nt,[Nt,kt]),pr={horizontal:{motionName:`${_t}-slide-up`},inline:initCollapseMotion$1(_t),other:{motionName:`${_t}-zoom-big`}},dr=ft("menu",wt||ut.prefixCls),yr=useCSSVarCls(dr),[Sr,br,mr]=useStyle$L(dr,yr,!ct),Er=classNames(`${dr}-${It}`,$t==null?void 0:$t.className,Tt);let Tr;if(typeof At=="function")Tr=At;else if(At===null||At===!1)Tr=null;else if(ut.expandIcon===null||ut.expandIcon===!1)Tr=null;else{const Or=At??ut.expandIcon;Tr=cloneElement(Or,{className:classNames(`${dr}-submenu-expand-icon`,isValidElement(Or)?(st=Or.props)===null||st===void 0?void 0:st.className:"")})}const Mr=reactExports.useMemo(()=>({prefixCls:dr,inlineCollapsed:hr||!1,direction:xt,firstLevel:!0,theme:It,mode:ur,disableMenuItemTitleTooltip:jt}),[dr,hr,xt,jt,It]);return Sr(reactExports.createElement(OverrideContext$1.Provider,{value:null},reactExports.createElement(MenuContext$1.Provider,{value:Mr},reactExports.createElement(ExportMenu,Object.assign({getPopupContainer:gt,overflowedIndicator:reactExports.createElement(EllipsisOutlined$1,null),overflowedIndicatorPopupClassName:classNames(dr,`${dr}-${It}`,Gt),mode:ur,selectable:fr,onClick:cr},er,{inlineCollapsed:hr,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Rt),className:Er,prefixCls:dr,direction:xt,defaultMotions:pr,expandIcon:Tr,ref:et,rootClassName:classNames(Wt,br,ut.rootClassName,mr,yr)}),lr))))}),InternalMenu$1=InternalMenu,Menu=reactExports.forwardRef((_e,et)=>{const rt=reactExports.useRef(null),st=reactExports.useContext(SiderContext$1);return reactExports.useImperativeHandle(et,()=>({menu:rt.current,focus:ct=>{var ut;(ut=rt.current)===null||ut===void 0||ut.focus(ct)}})),reactExports.createElement(InternalMenu$1,Object.assign({ref:rt},_e,st))});Menu.Item=Item$6;Menu.SubMenu=SubMenu$1;Menu.Divider=MenuDivider$1;Menu.ItemGroup=MenuItemGroup;const Menu$1=Menu;var dayjs_min={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt=1e3,st=6e4,ct=36e5,ut="millisecond",ft="second",gt="minute",xt="hour",$t="day",_t="week",wt="month",Tt="quarter",Rt="year",It="date",At="Invalid Date",jt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Nt=/\[([^\]]+)]|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,kt={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(ur){var fr=["th","st","nd","rd"],hr=ur%100;return"["+ur+(fr[(hr-20)%10]||fr[hr]||fr[0])+"]"}},Ft=function(ur,fr,hr){var pr=String(ur);return!pr||pr.length>=fr?ur:""+Array(fr+1-pr.length).join(hr)+ur},Ht={s:Ft,z:function(ur){var fr=-ur.utcOffset(),hr=Math.abs(fr),pr=Math.floor(hr/60),dr=hr%60;return(fr<=0?"+":"-")+Ft(pr,2,"0")+":"+Ft(dr,2,"0")},m:function ur(fr,hr){if(fr.date()1)return ur(Sr[0])}else{var br=fr.name;Vt[br]=fr,dr=br}return!pr&&dr&&(Wt=dr),dr||!pr&&Wt},Zt=function(ur,fr){if(Xt(ur))return ur.clone();var hr=typeof fr=="object"?fr:{};return hr.date=ur,hr.args=arguments,new lr(hr)},er=Ht;er.l=Gt,er.i=Xt,er.w=function(ur,fr){return Zt(ur,{locale:fr.$L,utc:fr.$u,x:fr.$x,$offset:fr.$offset})};var lr=function(){function ur(hr){this.$L=Gt(hr.locale,null,!0),this.parse(hr),this.$x=this.$x||hr.x||{},this[qt]=!0}var fr=ur.prototype;return fr.parse=function(hr){this.$d=function(pr){var dr=pr.date,yr=pr.utc;if(dr===null)return new Date(NaN);if(er.u(dr))return new Date;if(dr instanceof Date)return new Date(dr);if(typeof dr=="string"&&!/Z$/i.test(dr)){var Sr=dr.match(jt);if(Sr){var br=Sr[2]-1||0,mr=(Sr[7]||"0").substring(0,3);return yr?new Date(Date.UTC(Sr[1],br,Sr[3]||1,Sr[4]||0,Sr[5]||0,Sr[6]||0,mr)):new Date(Sr[1],br,Sr[3]||1,Sr[4]||0,Sr[5]||0,Sr[6]||0,mr)}}return new Date(dr)}(hr),this.init()},fr.init=function(){var hr=this.$d;this.$y=hr.getFullYear(),this.$M=hr.getMonth(),this.$D=hr.getDate(),this.$W=hr.getDay(),this.$H=hr.getHours(),this.$m=hr.getMinutes(),this.$s=hr.getSeconds(),this.$ms=hr.getMilliseconds()},fr.$utils=function(){return er},fr.isValid=function(){return this.$d.toString()!==At},fr.isSame=function(hr,pr){var dr=Zt(hr);return this.startOf(pr)<=dr&&dr<=this.endOf(pr)},fr.isAfter=function(hr,pr){return Zt(hr)25){var _t=ft(this).startOf(st).add(1,st).date($t),wt=ft(this).endOf(rt);if(_t.isBefore(wt))return 1}var Tt=ft(this).startOf(st).date($t).startOf(rt).subtract(1,"millisecond"),Rt=this.diff(Tt,rt,!0);return Rt<0?ft(this).startOf("week").week():Math.ceil(Rt)},gt.weeks=function(xt){return xt===void 0&&(xt=null),this.week(xt)}}})})(weekOfYear$2);var weekOfYearExports=weekOfYear$2.exports;const weekOfYear$1=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st){st.prototype.weekYear=function(){var ct=this.month(),ut=this.week(),ft=this.year();return ut===1&&ct===11?ft+1:ct===0&&ut>=52?ft-1:ft}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var advancedFormat$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st){var ct=st.prototype,ut=ct.format;ct.format=function(ft){var gt=this,xt=this.$locale();if(!this.isValid())return ut.bind(this)(ft);var $t=this.$utils(),_t=(ft||"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(wt){switch(wt){case"Q":return Math.ceil((gt.$M+1)/3);case"Do":return xt.ordinal(gt.$D);case"gggg":return gt.weekYear();case"GGGG":return gt.isoWeekYear();case"wo":return xt.ordinal(gt.week(),"W");case"w":case"ww":return $t.s(gt.week(),wt==="w"?1:2,"0");case"W":case"WW":return $t.s(gt.isoWeek(),wt==="W"?1:2,"0");case"k":case"kk":return $t.s(String(gt.$H===0?24:gt.$H),wt==="k"?1:2,"0");case"X":return Math.floor(gt.$d.getTime()/1e3);case"x":return gt.$d.getTime();case"z":return"["+gt.offsetName()+"]";case"zzz":return"["+gt.offsetName("long")+"]";default:return wt}});return ut.bind(this)(_t)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var customParseFormat$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt={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"},st=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,ct=/\d\d/,ut=/\d\d?/,ft=/\d*[^-_:/,()\s\d]+/,gt={},xt=function(At){return(At=+At)+(At>68?1900:2e3)},$t=function(At){return function(jt){this[At]=+jt}},_t=[/[+-]\d\d:?(\d\d)?|Z/,function(At){(this.zone||(this.zone={})).offset=function(jt){if(!jt||jt==="Z")return 0;var Nt=jt.match(/([+-]|\d\d)/g),kt=60*Nt[1]+(+Nt[2]||0);return kt===0?0:Nt[0]==="+"?-kt:kt}(At)}],wt=function(At){var jt=gt[At];return jt&&(jt.indexOf?jt:jt.s.concat(jt.f))},Tt=function(At,jt){var Nt,kt=gt.meridiem;if(kt){for(var Ft=1;Ft<=24;Ft+=1)if(At.indexOf(kt(Ft,0,jt))>-1){Nt=Ft>12;break}}else Nt=At===(jt?"pm":"PM");return Nt},Rt={A:[ft,function(At){this.afternoon=Tt(At,!1)}],a:[ft,function(At){this.afternoon=Tt(At,!0)}],S:[/\d/,function(At){this.milliseconds=100*+At}],SS:[ct,function(At){this.milliseconds=10*+At}],SSS:[/\d{3}/,function(At){this.milliseconds=+At}],s:[ut,$t("seconds")],ss:[ut,$t("seconds")],m:[ut,$t("minutes")],mm:[ut,$t("minutes")],H:[ut,$t("hours")],h:[ut,$t("hours")],HH:[ut,$t("hours")],hh:[ut,$t("hours")],D:[ut,$t("day")],DD:[ct,$t("day")],Do:[ft,function(At){var jt=gt.ordinal,Nt=At.match(/\d+/);if(this.day=Nt[0],jt)for(var kt=1;kt<=31;kt+=1)jt(kt).replace(/\[|\]/g,"")===At&&(this.day=kt)}],M:[ut,$t("month")],MM:[ct,$t("month")],MMM:[ft,function(At){var jt=wt("months"),Nt=(wt("monthsShort")||jt.map(function(kt){return kt.slice(0,3)})).indexOf(At)+1;if(Nt<1)throw new Error;this.month=Nt%12||Nt}],MMMM:[ft,function(At){var jt=wt("months").indexOf(At)+1;if(jt<1)throw new Error;this.month=jt%12||jt}],Y:[/[+-]?\d+/,$t("year")],YY:[ct,function(At){this.year=xt(At)}],YYYY:[/\d{4}/,$t("year")],Z:_t,ZZ:_t};function It(At){var jt,Nt;jt=At,Nt=gt&>.formats;for(var kt=(At=jt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Gt,Zt,er){var lr=er&&er.toUpperCase();return Zt||Nt[er]||rt[er]||Nt[lr].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(cr,ur,fr){return ur||fr.slice(1)})})).match(st),Ft=kt.length,Ht=0;Ht-1)return new Date((pr==="X"?1e3:1)*hr);var yr=It(pr)(hr),Sr=yr.year,br=yr.month,mr=yr.day,Er=yr.hours,Tr=yr.minutes,Mr=yr.seconds,Or=yr.milliseconds,wr=yr.zone,Cr=new Date,Nr=mr||(Sr||br?1:Cr.getDate()),Rr=Sr||Cr.getFullYear(),Pr=0;Sr&&!br||(Pr=br>0?br-1:Cr.getMonth());var jr=Er||0,kr=Tr||0,Fr=Mr||0,_r=Or||0;return wr?new Date(Date.UTC(Rr,Pr,Nr,jr,kr,Fr,_r+60*wr.offset*1e3)):dr?new Date(Date.UTC(Rr,Pr,Nr,jr,kr,Fr,_r)):new Date(Rr,Pr,Nr,jr,kr,Fr,_r)}catch{return new Date("")}}(Wt,Xt,Vt),this.init(),lr&&lr!==!0&&(this.$L=this.locale(lr).$L),er&&Wt!=this.format(Xt)&&(this.$d=new Date("")),gt={}}else if(Xt instanceof Array)for(var cr=Xt.length,ur=1;ur<=cr;ur+=1){qt[1]=Xt[ur-1];var fr=Nt.apply(this,qt);if(fr.isValid()){this.$d=fr.$d,this.$L=fr.$L,this.init();break}ur===cr&&(this.$d=new Date(""))}else Ft.call(this,Ht)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports);dayjs.extend(customParseFormat);dayjs.extend(advancedFormat);dayjs.extend(weekday);dayjs.extend(localeData$1);dayjs.extend(weekOfYear$1);dayjs.extend(weekYear);dayjs.extend(function(_e,et){var rt=et.prototype,st=rt.format;rt.format=function(ut){var ft=(ut||"").replace("Wo","wo");return st.bind(this)(ft)}});var localeMap={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"},parseLocale=function(et){var rt=localeMap[et];return rt||et.split("_")[0]},parseNoMatchNotice=function(){noteOnce(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function(){return dayjs()},getFixedDate:function(et){return dayjs(et,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(et){return et.endOf("month")},getWeekDay:function(et){var rt=et.locale("en");return rt.weekday()+rt.localeData().firstDayOfWeek()},getYear:function(et){return et.year()},getMonth:function(et){return et.month()},getDate:function(et){return et.date()},getHour:function(et){return et.hour()},getMinute:function(et){return et.minute()},getSecond:function(et){return et.second()},getMillisecond:function(et){return et.millisecond()},addYear:function(et,rt){return et.add(rt,"year")},addMonth:function(et,rt){return et.add(rt,"month")},addDate:function(et,rt){return et.add(rt,"day")},setYear:function(et,rt){return et.year(rt)},setMonth:function(et,rt){return et.month(rt)},setDate:function(et,rt){return et.date(rt)},setHour:function(et,rt){return et.hour(rt)},setMinute:function(et,rt){return et.minute(rt)},setSecond:function(et,rt){return et.second(rt)},setMillisecond:function(et,rt){return et.millisecond(rt)},isAfter:function(et,rt){return et.isAfter(rt)},isValidate:function(et){return et.isValid()},locale:{getWeekFirstDay:function(et){return dayjs().locale(parseLocale(et)).localeData().firstDayOfWeek()},getWeekFirstDate:function(et,rt){return rt.locale(parseLocale(et)).weekday(0)},getWeek:function(et,rt){return rt.locale(parseLocale(et)).week()},getShortWeekDays:function(et){return dayjs().locale(parseLocale(et)).localeData().weekdaysMin()},getShortMonths:function(et){return dayjs().locale(parseLocale(et)).localeData().monthsShort()},format:function(et,rt,st){return rt.locale(parseLocale(et)).format(st)},parse:function(et,rt,st){for(var ct=parseLocale(et),ut=0;ut2&&arguments[2]!==void 0?arguments[2]:"0",st=String(_e);st.length2&&arguments[2]!==void 0?arguments[2]:[],st=reactExports.useState([!1,!1]),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=function(_t,wt){ft(function(Tt){return fillIndex(Tt,wt,_t)})},xt=reactExports.useMemo(function(){return ut.map(function($t,_t){if($t)return!0;var wt=_e[_t];return wt?!!(!rt[_t]&&!wt||wt&&et(wt,{activeIndex:_t})):!1})},[_e,ut,et,rt]);return[xt,gt]}function fillTimeFormat(_e,et,rt,st,ct){var ut="",ft=[];return _e&&ft.push(ct?"hh":"HH"),et&&ft.push("mm"),rt&&ft.push("ss"),ut=ft.join(":"),st&&(ut+=".SSS"),ct&&(ut+=" A"),ut}function fillLocale(_e,et,rt,st,ct,ut){var ft=_e.fieldDateTimeFormat,gt=_e.fieldDateFormat,xt=_e.fieldTimeFormat,$t=_e.fieldMonthFormat,_t=_e.fieldYearFormat,wt=_e.fieldWeekFormat,Tt=_e.fieldQuarterFormat,Rt=_e.yearFormat,It=_e.cellYearFormat,At=_e.cellQuarterFormat,jt=_e.dayFormat,Nt=_e.cellDateFormat,kt=fillTimeFormat(et,rt,st,ct,ut);return _objectSpread2(_objectSpread2({},_e),{},{fieldDateTimeFormat:ft||"YYYY-MM-DD ".concat(kt),fieldDateFormat:gt||"YYYY-MM-DD",fieldTimeFormat:xt||kt,fieldMonthFormat:$t||"YYYY-MM",fieldYearFormat:_t||"YYYY",fieldWeekFormat:wt||"gggg-wo",fieldQuarterFormat:Tt||"YYYY-[Q]Q",yearFormat:Rt||"YYYY",cellYearFormat:It||"YYYY",cellQuarterFormat:At||"[Q]Q",cellDateFormat:Nt||jt||"D"})}function useLocale$2(_e,et){var rt=et.showHour,st=et.showMinute,ct=et.showSecond,ut=et.showMillisecond,ft=et.use12Hours;return React$1.useMemo(function(){return fillLocale(_e,rt,st,ct,ut,ft)},[_e,rt,st,ct,ut,ft])}function checkShow(_e,et,rt){return rt??et.some(function(st){return _e.includes(st)})}var showTimeKeys=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pickTimeProps(_e){var et=pickProps(_e,showTimeKeys),rt=_e.format,st=_e.picker,ct=null;return rt&&(ct=rt,Array.isArray(ct)&&(ct=ct[0]),ct=_typeof$e(ct)==="object"?ct.format:ct),st==="time"&&(et.format=ct),[et,ct]}function isStringFormat(_e){return _e&&typeof _e=="string"}function getTimeProps(_e){var et=_e.showTime,rt=pickTimeProps(_e),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=et&&_typeof$e(et)==="object"?et:{},gt=_objectSpread2(_objectSpread2({defaultOpenValue:ft.defaultOpenValue||ft.defaultValue},ct),ft),xt=gt.showMillisecond,$t=gt.showHour,_t=gt.showMinute,wt=gt.showSecond;return!$t&&!_t&&!wt&&!xt&&($t=!0,_t=!0,wt=!0),[gt,_objectSpread2(_objectSpread2({},gt),{},{showHour:$t,showMinute:_t,showSecond:wt,showMillisecond:xt}),gt.format,ut]}function fillShowTimeConfig(_e,et,rt,st,ct){var ut=_e==="time";if(_e==="datetime"||ut){for(var ft=st,gt=getRowFormat(_e,ct,null),xt=gt,$t=[et,rt],_t=0;_t<$t.length;_t+=1){var wt=toArray$a($t[_t])[0];if(isStringFormat(wt)){xt=wt;break}}var Tt=ft.showHour,Rt=ft.showMinute,It=ft.showSecond,At=ft.showMillisecond,jt=ft.use12Hours,Nt=checkShow(xt,["a","A","LT","LLL","LTS"],jt),kt=[Tt,Rt,It,At].some(function(Ht){return Ht!==void 0});kt||(Tt=checkShow(xt,["H","h","k","LT","LLL"]),Rt=checkShow(xt,["m","LT","LLL"]),It=checkShow(xt,["s","LTS"]),At=checkShow(xt,["SSS"])),!kt&&!Tt&&!Rt&&!It&&!At&&(Tt=!0,Rt=!0,It=!0);var Ft=et||fillTimeFormat(Tt,Rt,It,At,Nt);return _objectSpread2(_objectSpread2({},ft),{},{format:Ft,showHour:Tt,showMinute:Rt,showSecond:It,showMillisecond:At,use12Hours:Nt})}return null}function fillClearIcon(_e,et,rt){if(et===!1)return null;var st=et&&_typeof$e(et)==="object"?et:{};return st.clearIcon||rt||reactExports.createElement("span",{className:"".concat(_e,"-clear-btn")})}var WEEK_DAY_COUNT=7;function nullableCompare(_e,et,rt){return!_e&&!et||_e===et?!0:!_e||!et?!1:rt()}function isSameDecade(_e,et,rt){return nullableCompare(et,rt,function(){var st=Math.floor(_e.getYear(et)/10),ct=Math.floor(_e.getYear(rt)/10);return st===ct})}function isSameYear(_e,et,rt){return nullableCompare(et,rt,function(){return _e.getYear(et)===_e.getYear(rt)})}function getQuarter(_e,et){var rt=Math.floor(_e.getMonth(et)/3);return rt+1}function isSameQuarter(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&getQuarter(_e,et)===getQuarter(_e,rt)})}function isSameMonth(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&_e.getMonth(et)===_e.getMonth(rt)})}function isSameDate(_e,et,rt){return nullableCompare(et,rt,function(){return isSameYear(_e,et,rt)&&isSameMonth(_e,et,rt)&&_e.getDate(et)===_e.getDate(rt)})}function isSameTime(_e,et,rt){return nullableCompare(et,rt,function(){return _e.getHour(et)===_e.getHour(rt)&&_e.getMinute(et)===_e.getMinute(rt)&&_e.getSecond(et)===_e.getSecond(rt)})}function isSameTimestamp(_e,et,rt){return nullableCompare(et,rt,function(){return isSameDate(_e,et,rt)&&isSameTime(_e,et,rt)&&_e.getMillisecond(et)===_e.getMillisecond(rt)})}function isSameWeek(_e,et,rt,st){return nullableCompare(rt,st,function(){var ct=_e.locale.getWeekFirstDate(et,rt),ut=_e.locale.getWeekFirstDate(et,st);return isSameYear(_e,ct,ut)&&_e.locale.getWeek(et,rt)===_e.locale.getWeek(et,st)})}function isSame$1(_e,et,rt,st,ct){switch(ct){case"date":return isSameDate(_e,rt,st);case"week":return isSameWeek(_e,et.locale,rt,st);case"month":return isSameMonth(_e,rt,st);case"quarter":return isSameQuarter(_e,rt,st);case"year":return isSameYear(_e,rt,st);case"decade":return isSameDecade(_e,rt,st);case"time":return isSameTime(_e,rt,st);default:return isSameTimestamp(_e,rt,st)}}function isInRange(_e,et,rt,st){return!et||!rt||!st?!1:_e.isAfter(st,et)&&_e.isAfter(rt,st)}function isSameOrAfter$1(_e,et,rt,st,ct){return isSame$1(_e,et,rt,st,ct)?!0:_e.isAfter(rt,st)}function getWeekStartDate(_e,et,rt){var st=et.locale.getWeekFirstDay(_e),ct=et.setDate(rt,1),ut=et.getWeekDay(ct),ft=et.addDate(ct,st-ut);return et.getMonth(ft)===et.getMonth(rt)&&et.getDate(ft)>1&&(ft=et.addDate(ft,-7)),ft}function formatValue(_e,et){var rt=et.generateConfig,st=et.locale,ct=et.format;return _e?typeof ct=="function"?ct(_e):rt.locale.format(st.locale,_e,ct):""}function fillTime(_e,et,rt){var st=et,ct=["getHour","getMinute","getSecond","getMillisecond"],ut=["setHour","setMinute","setSecond","setMillisecond"];return ut.forEach(function(ft,gt){rt?st=_e[ft](st,_e[ct[gt]](rt)):st=_e[ft](st,0)}),st}function useDisabledBoundary(_e,et,rt,st,ct){var ut=useEvent(function(ft,gt){return!!(rt&&rt(ft,gt)||st&&_e.isAfter(st,ft)&&!isSame$1(_e,et,st,ft,gt.type)||ct&&_e.isAfter(ft,ct)&&!isSame$1(_e,et,ct,ft,gt.type))});return ut}function useFieldFormat(_e,et,rt){return reactExports.useMemo(function(){var st=getRowFormat(_e,et,rt),ct=toArray$a(st),ut=ct[0],ft=_typeof$e(ut)==="object"&&ut.type==="mask"?ut.format:null;return[ct.map(function(gt){return typeof gt=="string"||typeof gt=="function"?gt:gt.format}),ft]},[_e,et,rt])}function useInputReadOnly(_e,et,rt){return typeof _e[0]=="function"||rt?!0:et}function useInvalidate(_e,et,rt,st){var ct=useEvent(function(ut,ft){var gt=_objectSpread2({type:et},ft);if(delete gt.activeIndex,!_e.isValidate(ut)||rt&&rt(ut,gt))return!0;if((et==="date"||et==="time")&&st){var xt,$t=((xt=st.disabledTime)===null||xt===void 0?void 0:xt.call(st,ut,ft&&ft.activeIndex===1?"end":"start"))||{},_t=$t.disabledHours,wt=$t.disabledMinutes,Tt=$t.disabledSeconds,Rt=$t.disabledMilliseconds,It=st.disabledHours,At=st.disabledMinutes,jt=st.disabledSeconds,Nt=_t||It,kt=wt||At,Ft=Tt||jt,Ht=_e.getHour(ut),Wt=_e.getMinute(ut),Vt=_e.getSecond(ut),qt=_e.getMillisecond(ut);if(Nt&&Nt().includes(Ht)||kt&&kt(Ht).includes(Wt)||Ft&&Ft(Ht,Wt).includes(Vt)||Rt&&Rt(Ht,Wt,Vt).includes(qt))return!0}return!1});return ct}function useList(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=reactExports.useMemo(function(){var st=_e&&toArray$a(_e);return et&&st&&(st[1]=st[1]||st[0]),st},[_e,et]);return rt}function useFilledProps(_e,et){var rt=_e.generateConfig,st=_e.locale,ct=_e.picker,ut=ct===void 0?"date":ct,ft=_e.prefixCls,gt=ft===void 0?"rc-picker":ft,xt=_e.styles,$t=xt===void 0?{}:xt,_t=_e.classNames,wt=_t===void 0?{}:_t,Tt=_e.order,Rt=Tt===void 0?!0:Tt,It=_e.components,At=It===void 0?{}:It,jt=_e.inputRender,Nt=_e.allowClear,kt=_e.clearIcon,Ft=_e.needConfirm,Ht=_e.multiple,Wt=_e.format,Vt=_e.inputReadOnly,qt=_e.disabledDate,Xt=_e.minDate,Gt=_e.maxDate,Zt=_e.showTime,er=_e.value,lr=_e.defaultValue,cr=_e.pickerValue,ur=_e.defaultPickerValue,fr=useList(er),hr=useList(lr),pr=useList(cr),dr=useList(ur),yr=ut==="date"&&Zt?"datetime":ut,Sr=yr==="time"||yr==="datetime",br=Sr||Ht,mr=Ft??Sr,Er=getTimeProps(_e),Tr=_slicedToArray$3(Er,4),Mr=Tr[0],Or=Tr[1],wr=Tr[2],Cr=Tr[3],Nr=useLocale$2(st,Or),Rr=reactExports.useMemo(function(){return fillShowTimeConfig(yr,wr,Cr,Mr,Nr)},[yr,wr,Cr,Mr,Nr]),Pr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},_e),{},{prefixCls:gt,locale:Nr,picker:ut,styles:$t,classNames:wt,order:Rt,components:_objectSpread2({input:jt},At),clearIcon:fillClearIcon(gt,Nt,kt),showTime:Rr,value:fr,defaultValue:hr,pickerValue:pr,defaultPickerValue:dr},et==null?void 0:et())},[_e]),jr=useFieldFormat(yr,Nr,Wt),kr=_slicedToArray$3(jr,2),Fr=kr[0],_r=kr[1],Br=useInputReadOnly(Fr,Vt,Ht),Dr=useDisabledBoundary(rt,st,qt,Xt,Gt),Xr=useInvalidate(rt,ut,qt,Rr),Kr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},Pr),{},{needConfirm:mr,inputReadOnly:Br,disabledDate:Dr})},[Pr,mr,Br,Dr]);return[Kr,yr,br,Fr,_r,Xr]}function useDelayState(_e,et,rt){var st=useMergedState(et,{value:_e}),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=React$1.useRef(_e),xt=React$1.useRef(),$t=function(){wrapperRaf.cancel(xt.current)},_t=useEvent(function(){ft(gt.current),rt&&ut!==gt.current&&rt(gt.current)}),wt=useEvent(function(Tt,Rt){$t(),gt.current=Tt,Tt||Rt?_t():xt.current=wrapperRaf(_t)});return React$1.useEffect(function(){return $t},[]),[ut,wt]}function useOpen(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],st=arguments.length>3?arguments[3]:void 0,ct=rt.every(function(_t){return _t})?!1:_e,ut=useDelayState(ct,et||!1,st),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!wt.inherit||gt)&&xt(_t,wt.force)}return[gt,$t]}function usePickerRef(_e){var et=reactExports.useRef();return reactExports.useImperativeHandle(_e,function(){var rt;return{nativeElement:(rt=et.current)===null||rt===void 0?void 0:rt.nativeElement,focus:function(){var ct;(ct=et.current)===null||ct===void 0||ct.focus()},blur:function(){var ct;(ct=et.current)===null||ct===void 0||ct.blur()}}}),et}function usePresets(_e,et){return reactExports.useMemo(function(){return _e||(et?(warningOnce$1(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(et).map(function(rt){var st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return{label:ct,value:ut}})):[])},[_e,et])}function useLockEffect(_e,et){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,st=reactExports.useRef(et);st.current=et,useLayoutUpdateEffect(function(){if(_e)st.current(_e);else{var ct=wrapperRaf(function(){st.current(_e)},rt);return function(){wrapperRaf.cancel(ct)}}},[_e])}function useRangeActive(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=reactExports.useState(0),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(!1),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=reactExports.useRef([]),wt=reactExports.useRef(null),Tt=function(jt){$t(jt)},Rt=function(jt){return jt&&(wt.current=jt),wt.current},It=function(jt){var Nt=_t.current,kt=new Set(Nt.filter(function(Ht){return jt[Ht]||et[Ht]})),Ft=Nt[Nt.length-1]===0?1:0;return kt.size>=2||_e[Ft]?null:Ft};return useLockEffect(xt,function(){xt||(_t.current=[])}),reactExports.useEffect(function(){xt&&_t.current.push(ct)},[xt,ct]),[xt,Tt,Rt,ct,ut,It,_t.current]}function useRangeDisabledDate(_e,et,rt,st,ct,ut){var ft=rt[rt.length-1],gt=rt.find(function($t){return _e[$t]}),xt=function(_t,wt){var Tt=_slicedToArray$3(_e,2),Rt=Tt[0],It=Tt[1],At=_objectSpread2(_objectSpread2({},wt),{},{from:ft!==gt?_e[gt]:void 0});return ft===1&&et[0]&&Rt&&!isSame$1(st,ct,Rt,_t,At.type)&&st.isAfter(Rt,_t)||ft===0&&et[1]&&It&&!isSame$1(st,ct,It,_t,At.type)&&st.isAfter(_t,It)?!0:ut==null?void 0:ut(_t,At)};return xt}function offsetPanelDate(_e,et,rt,st){switch(et){case"date":case"week":return _e.addMonth(rt,st);case"month":case"quarter":return _e.addYear(rt,st);case"year":return _e.addYear(rt,st*10);case"decade":return _e.addYear(rt,st*100);default:return rt}}var EMPTY_LIST$1=[];function useRangePickerValue(_e,et,rt,st,ct,ut,ft,gt){var xt=arguments.length>8&&arguments[8]!==void 0?arguments[8]:EMPTY_LIST$1,$t=arguments.length>9&&arguments[9]!==void 0?arguments[9]:EMPTY_LIST$1,_t=arguments.length>10&&arguments[10]!==void 0?arguments[10]:EMPTY_LIST$1,wt=arguments.length>11?arguments[11]:void 0,Tt=arguments.length>12?arguments[12]:void 0,Rt=arguments.length>13?arguments[13]:void 0,It=ft==="time",At=ut||0,jt=function(pr){var dr=_e.getNow();return It&&(dr=fillTime(_e,dr)),xt[pr]||rt[pr]||dr},Nt=_slicedToArray$3($t,2),kt=Nt[0],Ft=Nt[1],Ht=useMergedState(function(){return jt(0)},{value:kt}),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1],Xt=useMergedState(function(){return jt(1)},{value:Ft}),Gt=_slicedToArray$3(Xt,2),Zt=Gt[0],er=Gt[1],lr=reactExports.useMemo(function(){var hr=[Vt,Zt][At];return It?hr:fillTime(_e,hr,_t[At])},[It,Vt,Zt,At,_e,_t]),cr=function(pr){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",yr=[qt,er][At];yr(pr);var Sr=[Vt,Zt];Sr[At]=pr,wt&&(!isSame$1(_e,et,Vt,Sr[0],ft)||!isSame$1(_e,et,Zt,Sr[1],ft))&&wt(Sr,{source:dr,range:At===1?"end":"start",mode:st})},ur=function(pr,dr){if(gt){var yr={date:"month",week:"month",month:"year",quarter:"year"},Sr=yr[ft];if(Sr&&!isSame$1(_e,et,pr,dr,Sr))return offsetPanelDate(_e,ft,dr,-1);if(ft==="year"){var br=Math.floor(_e.getYear(pr)/10),mr=Math.floor(_e.getYear(dr)/10);if(br!==mr)return offsetPanelDate(_e,ft,dr,-1)}}return dr},fr=reactExports.useRef(null);return useLayoutEffect$3(function(){if(ct&&!xt[At]){var hr=It?null:_e.getNow();if(fr.current!==null&&fr.current!==At?hr=[Vt,Zt][At^1]:rt[At]?hr=At===0?rt[0]:ur(rt[0],rt[1]):rt[At^1]&&(hr=rt[At^1]),hr){Tt&&_e.isAfter(Tt,hr)&&(hr=Tt);var pr=gt?offsetPanelDate(_e,ft,hr,1):hr;Rt&&_e.isAfter(pr,Rt)&&(hr=gt?offsetPanelDate(_e,ft,Rt,-1):Rt),cr(hr,"reset")}}},[ct,At,rt[At]]),reactExports.useEffect(function(){ct?fr.current=At:fr.current=null},[ct,At]),useLayoutEffect$3(function(){ct&&xt&&xt[At]&&cr(xt[At],"reset")},[ct,At]),[lr,cr]}function useSyncState$1(_e,et){var rt=reactExports.useRef(_e),st=reactExports.useState({}),ct=_slicedToArray$3(st,2),ut=ct[1],ft=function($t){return $t&&et!==void 0?et:rt.current},gt=function($t){rt.current=$t,ut({})};return[ft,gt,ft(!0)]}var EMPTY_VALUE=[];function useUtil(_e,et,rt){var st=function(ft){return ft.map(function(gt){return formatValue(gt,{generateConfig:_e,locale:et,format:rt[0]})})},ct=function(ft,gt){for(var xt=Math.max(ft.length,gt.length),$t=-1,_t=0;_t2&&arguments[2]!==void 0?arguments[2]:1,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],ut=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,ft=[],gt=rt>=1?rt|0:1,xt=_e;xt<=et;xt+=gt){var $t=ct.includes(xt);(!$t||!st)&&ft.push({label:leftPad(xt,ut),value:xt,disabled:$t})}return ft}function useTimeInfo(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=arguments.length>2?arguments[2]:void 0,st=et||{},ct=st.use12Hours,ut=st.hourStep,ft=ut===void 0?1:ut,gt=st.minuteStep,xt=gt===void 0?1:gt,$t=st.secondStep,_t=$t===void 0?1:$t,wt=st.millisecondStep,Tt=wt===void 0?100:wt,Rt=st.hideDisabledOptions,It=st.disabledTime,At=st.disabledHours,jt=st.disabledMinutes,Nt=st.disabledSeconds,kt=reactExports.useMemo(function(){return rt||_e.getNow()},[rt,_e]),Ft=reactExports.useCallback(function(dr){var yr=(It==null?void 0:It(dr))||{};return[yr.disabledHours||At||emptyDisabled,yr.disabledMinutes||jt||emptyDisabled,yr.disabledSeconds||Nt||emptyDisabled,yr.disabledMilliseconds||emptyDisabled]},[It,At,jt,Nt]),Ht=reactExports.useMemo(function(){return Ft(kt)},[kt,Ft]),Wt=_slicedToArray$3(Ht,4),Vt=Wt[0],qt=Wt[1],Xt=Wt[2],Gt=Wt[3],Zt=reactExports.useCallback(function(dr,yr,Sr,br){var mr=generateUnits(0,23,ft,Rt,dr()),Er=ct?mr.map(function(wr){return _objectSpread2(_objectSpread2({},wr),{},{label:leftPad(wr.value%12||12,2)})}):mr,Tr=function(Cr){return generateUnits(0,59,xt,Rt,yr(Cr))},Mr=function(Cr,Nr){return generateUnits(0,59,_t,Rt,Sr(Cr,Nr))},Or=function(Cr,Nr,Rr){return generateUnits(0,999,Tt,Rt,br(Cr,Nr,Rr),3)};return[Er,Tr,Mr,Or]},[Rt,ft,ct,Tt,xt,_t]),er=reactExports.useMemo(function(){return Zt(Vt,qt,Xt,Gt)},[Zt,Vt,qt,Xt,Gt]),lr=_slicedToArray$3(er,4),cr=lr[0],ur=lr[1],fr=lr[2],hr=lr[3],pr=function(yr,Sr){var br=function(){return cr},mr=ur,Er=fr,Tr=hr;if(Sr){var Mr=Ft(Sr),Or=_slicedToArray$3(Mr,4),wr=Or[0],Cr=Or[1],Nr=Or[2],Rr=Or[3],Pr=Zt(wr,Cr,Nr,Rr),jr=_slicedToArray$3(Pr,4),kr=jr[0],Fr=jr[1],_r=jr[2],Br=jr[3];br=function(){return kr},mr=Fr,Er=_r,Tr=Br}var Dr=findValidateTime(yr,br,mr,Er,Tr,_e);return Dr};return[pr,cr,ur,fr,hr]}function Footer$3(_e){var et=_e.mode,rt=_e.internalMode,st=_e.renderExtraFooter,ct=_e.showNow,ut=_e.showTime,ft=_e.onSubmit,gt=_e.onNow,xt=_e.invalid,$t=_e.needConfirm,_t=_e.generateConfig,wt=_e.disabledDate,Tt=reactExports.useContext(PickerContext),Rt=Tt.prefixCls,It=Tt.locale,At=Tt.button,jt=At===void 0?"button":At,Nt=_t.getNow(),kt=useTimeInfo(_t,ut,Nt),Ft=_slicedToArray$3(kt,1),Ht=Ft[0],Wt=st==null?void 0:st(et),Vt=wt(Nt,{type:et}),qt=function(){if(!Vt){var ur=Ht(Nt);gt(ur)}},Xt="".concat(Rt,"-now"),Gt="".concat(Xt,"-btn"),Zt=ct&&reactExports.createElement("li",{className:Xt},reactExports.createElement("a",{className:classNames(Gt,Vt&&"".concat(Gt,"-disabled")),"aria-disabled":Vt,onClick:qt},rt==="date"?It.today:It.now)),er=$t&&reactExports.createElement("li",{className:"".concat(Rt,"-ok")},reactExports.createElement(jt,{disabled:xt,onClick:ft},It.ok)),lr=(Zt||er)&&reactExports.createElement("ul",{className:"".concat(Rt,"-ranges")},Zt,er);return!Wt&&!lr?null:reactExports.createElement("div",{className:"".concat(Rt,"-footer")},Wt&&reactExports.createElement("div",{className:"".concat(Rt,"-footer-extra")},Wt),lr)}function useToggleDates(_e,et,rt){function st(ct,ut){var ft=ct.findIndex(function(xt){return isSame$1(_e,et,xt,ut,rt)});if(ft===-1)return[].concat(_toConsumableArray$3(ct),[ut]);var gt=_toConsumableArray$3(ct);return gt.splice(ft,1),gt}return st}var PanelContext=reactExports.createContext(null);function usePanelContext(){return reactExports.useContext(PanelContext)}function useInfo(_e,et){var rt=_e.prefixCls,st=_e.generateConfig,ct=_e.locale,ut=_e.disabledDate,ft=_e.minDate,gt=_e.maxDate,xt=_e.cellRender,$t=_e.hoverValue,_t=_e.hoverRangeValue,wt=_e.onHover,Tt=_e.values,Rt=_e.pickerValue,It=_e.onSelect,At=_e.prevIcon,jt=_e.nextIcon,Nt=_e.superPrevIcon,kt=_e.superNextIcon,Ft=st.getNow(),Ht={now:Ft,values:Tt,pickerValue:Rt,prefixCls:rt,disabledDate:ut,minDate:ft,maxDate:gt,cellRender:xt,hoverValue:$t,hoverRangeValue:_t,onHover:wt,locale:ct,generateConfig:st,onSelect:It,panelType:et,prevIcon:At,nextIcon:jt,superPrevIcon:Nt,superNextIcon:kt};return[Ht,Ft]}var PickerHackContext=reactExports.createContext({});function PanelBody(_e){for(var et=_e.rowNum,rt=_e.colNum,st=_e.baseDate,ct=_e.getCellDate,ut=_e.prefixColumn,ft=_e.rowClassName,gt=_e.titleFormat,xt=_e.getCellText,$t=_e.getCellClassName,_t=_e.headerCells,wt=_e.cellSelection,Tt=wt===void 0?!0:wt,Rt=_e.disabledDate,It=usePanelContext(),At=It.prefixCls,jt=It.panelType,Nt=It.now,kt=It.disabledDate,Ft=It.cellRender,Ht=It.onHover,Wt=It.hoverValue,Vt=It.hoverRangeValue,qt=It.generateConfig,Xt=It.values,Gt=It.locale,Zt=It.onSelect,er=Rt||kt,lr="".concat(At,"-cell"),cr=reactExports.useContext(PickerHackContext),ur=cr.onCellDblClick,fr=function(Er){return Xt.some(function(Tr){return Tr&&isSame$1(qt,Gt,Er,Tr,jt)})},hr=[],pr=0;pr1&&arguments[1]!==void 0?arguments[1]:!1;ln(hn),jt==null||jt(hn),Cn&&Qr(hn)},vn=function(hn,Cn){Nr(hn),Cn&&Zr(Cn),Qr(Cn,hn)},vr=function(hn){if(Xr(hn),Zr(hn),Cr!==Ht){var Cn=["decade","year"],Rn=[].concat(Cn,["month"]),kn={quarter:[].concat(Cn,["quarter"]),week:[].concat(_toConsumableArray$3(Rn),["week"]),date:[].concat(_toConsumableArray$3(Rn),["date"])},Bn=kn[Ht]||Rn,Yn=Bn.indexOf(Cr),Gn=Bn[Yn+1];Gn&&vn(Gn,hn)}},gr=reactExports.useMemo(function(){var mn,hn;if(Array.isArray(qt)){var Cn=_slicedToArray$3(qt,2);mn=Cn[0],hn=Cn[1]}else mn=qt;return!mn&&!hn?null:(mn=mn||hn,hn=hn||mn,ct.isAfter(mn,hn)?[hn,mn]:[mn,hn])},[qt,ct]),$r=useCellRender(Xt,Gt,Zt),zr=lr[Rr]||DefaultComponents[Rr]||DatePanel,qr=reactExports.useContext(PickerHackContext),Wr=reactExports.useMemo(function(){return _objectSpread2(_objectSpread2({},qr),{},{hideHeader:cr})},[qr,cr]),Gr="".concat(ur,"-panel"),dn=pickProps(_e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return reactExports.createElement(PickerHackContext.Provider,{value:Wr},reactExports.createElement("div",{ref:fr,tabIndex:xt,className:classNames(Gr,_defineProperty$c({},"".concat(Gr,"-rtl"),ut==="rtl"))},reactExports.createElement(zr,_extends$b({},dn,{showTime:Tr,prefixCls:ur,locale:mr,generateConfig:ct,onModeChange:vn,pickerValue:Vr,onPickerValueChange:function(hn){Zr(hn,!0)},value:Br[0],onSelect:vr,values:Br,cellRender:$r,hoverRangeValue:gr,hoverValue:Vt}))))}var RefPanelPicker=reactExports.memo(reactExports.forwardRef(PickerPanel));function PopupPanel(_e){var et=_e.picker,rt=_e.multiplePanel,st=_e.pickerValue,ct=_e.onPickerValueChange,ut=_e.needConfirm,ft=_e.onSubmit,gt=_e.range,xt=_e.hoverValue,$t=reactExports.useContext(PickerContext),_t=$t.prefixCls,wt=$t.generateConfig,Tt=reactExports.useCallback(function(kt,Ft){return offsetPanelDate(wt,et,kt,Ft)},[wt,et]),Rt=reactExports.useMemo(function(){return Tt(st,1)},[st,Tt]),It=function(Ft){ct(Tt(Ft,-1))},At={onCellDblClick:function(){ut&&ft()}},jt=et==="time",Nt=_objectSpread2(_objectSpread2({},_e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:jt});return gt?Nt.hoverRangeValue=xt:Nt.hoverValue=xt,rt?reactExports.createElement("div",{className:"".concat(_t,"-panels")},reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},At),{},{hideNext:!0})},reactExports.createElement(RefPanelPicker,Nt)),reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},At),{},{hidePrev:!0})},reactExports.createElement(RefPanelPicker,_extends$b({},Nt,{pickerValue:Rt,onPickerValueChange:It})))):reactExports.createElement(PickerHackContext.Provider,{value:_objectSpread2({},At)},reactExports.createElement(RefPanelPicker,Nt))}function executeValue(_e){return typeof _e=="function"?_e():_e}function PresetPanel(_e){var et=_e.prefixCls,rt=_e.presets,st=_e.onClick,ct=_e.onHover;return rt.length?reactExports.createElement("div",{className:"".concat(et,"-presets")},reactExports.createElement("ul",null,rt.map(function(ut,ft){var gt=ut.label,xt=ut.value;return reactExports.createElement("li",{key:ft,onClick:function(){st(executeValue(xt))},onMouseEnter:function(){ct(executeValue(xt))},onMouseLeave:function(){ct(null)}},gt)}))):null}function Popup(_e){var et=_e.panelRender,rt=_e.internalMode,st=_e.picker,ct=_e.showNow,ut=_e.range,ft=_e.multiple,gt=_e.activeOffset,xt=gt===void 0?0:gt,$t=_e.presets,_t=_e.onPresetHover,wt=_e.onPresetSubmit,Tt=_e.onFocus,Rt=_e.onBlur,It=_e.direction,At=_e.value,jt=_e.onSelect,Nt=_e.isInvalid,kt=_e.defaultOpenValue,Ft=_e.onOk,Ht=_e.onSubmit,Wt=reactExports.useContext(PickerContext),Vt=Wt.prefixCls,qt="".concat(Vt,"-panel"),Xt=It==="rtl",Gt=reactExports.useRef(null),Zt=reactExports.useRef(null),er=reactExports.useState(0),lr=_slicedToArray$3(er,2),cr=lr[0],ur=lr[1],fr=reactExports.useState(0),hr=_slicedToArray$3(fr,2),pr=hr[0],dr=hr[1],yr=function(kr){kr.offsetWidth&&ur(kr.offsetWidth)};reactExports.useEffect(function(){if(ut){var jr,kr=((jr=Gt.current)===null||jr===void 0?void 0:jr.offsetWidth)||0,Fr=cr-kr;xt<=Fr?dr(0):dr(xt+kr-cr)}},[cr,xt,ut]);function Sr(jr){return jr.filter(function(kr){return kr})}var br=reactExports.useMemo(function(){return Sr(toArray$a(At))},[At]),mr=st==="time"&&!br.length,Er=reactExports.useMemo(function(){return mr?Sr([kt]):br},[mr,br,kt]),Tr=mr?kt:br,Mr=reactExports.useMemo(function(){return Er.length?Er.some(function(jr){return Nt(jr)}):!0},[Er,Nt]),Or=function(){mr&&jt(kt),Ft(),Ht()},wr=reactExports.createElement("div",{className:"".concat(Vt,"-panel-layout")},reactExports.createElement(PresetPanel,{prefixCls:Vt,presets:$t,onClick:wt,onHover:_t}),reactExports.createElement("div",null,reactExports.createElement(PopupPanel,_extends$b({},_e,{value:Tr})),reactExports.createElement(Footer$3,_extends$b({},_e,{showNow:ft?!1:ct,invalid:Mr,onSubmit:Or}))));et&&(wr=et(wr));var Cr="".concat(qt,"-container"),Nr="marginLeft",Rr="marginRight",Pr=reactExports.createElement("div",{tabIndex:-1,className:classNames(Cr,"".concat(Vt,"-").concat(rt,"-panel-container")),style:_defineProperty$c(_defineProperty$c({},Xt?Rr:Nr,pr),Xt?Nr:Rr,"auto"),onFocus:Tt,onBlur:Rt},wr);return ut&&(Pr=reactExports.createElement("div",{ref:Zt,className:classNames("".concat(Vt,"-range-wrapper"),"".concat(Vt,"-").concat(st,"-range-wrapper"))},reactExports.createElement("div",{ref:Gt,className:"".concat(Vt,"-range-arrow"),style:_defineProperty$c({},Xt?"right":"left",xt)}),reactExports.createElement(RefResizeObserver,{onResize:yr},Pr))),Pr}function useInputProps(_e,et){var rt=_e.format,st=_e.maskFormat,ct=_e.generateConfig,ut=_e.locale,ft=_e.preserveInvalidOnBlur,gt=_e.inputReadOnly,xt=_e.required,$t=_e["aria-required"],_t=_e.onSubmit,wt=_e.onFocus,Tt=_e.onBlur,Rt=_e.onInputChange,It=_e.onInvalid,At=_e.open,jt=_e.onOpenChange,Nt=_e.onKeyDown,kt=_e.onChange,Ft=_e.activeHelp,Ht=_e.name,Wt=_e.autoComplete,Vt=_e.id,qt=_e.value,Xt=_e.invalid,Gt=_e.placeholder,Zt=_e.disabled,er=_e.activeIndex,lr=_e.allHelp,cr=_e.picker,ur=function(mr,Er){var Tr=ct.locale.parse(ut.locale,mr,[Er]);return Tr&&ct.isValidate(Tr)?Tr:null},fr=rt[0],hr=reactExports.useCallback(function(br){return formatValue(br,{locale:ut,format:fr,generateConfig:ct})},[ut,ct,fr]),pr=reactExports.useMemo(function(){return qt.map(hr)},[qt,hr]),dr=reactExports.useMemo(function(){var br=cr==="time"?8:10,mr=typeof fr=="function"?fr(ct.getNow()).length:fr.length;return Math.max(br,mr)+2},[fr,cr,ct]),yr=function(mr){for(var Er=0;Er=gt&&rt<=xt)return ut;var $t=Math.min(Math.abs(rt-gt),Math.abs(rt-xt));$t0?Tn:Nn));var xn=Sn+gn,In=Nn-Tn+1;return String(Tn+(In+xn-Tn)%In)};switch(hn){case"Backspace":case"Delete":Cn="",Rn=Bn;break;case"ArrowLeft":Cn="",Yn(-1);break;case"ArrowRight":Cn="",Yn(1);break;case"ArrowUp":Cn="",Rn=Gn(1);break;case"ArrowDown":Cn="",Rn=Gn(-1);break;default:isNaN(Number(hn))||(Cn=br+hn,Rn=Cn);break}if(Cn!==null&&(mr(Cn),Cn.length>=kn&&(Yn(1),mr(""))),Rn!==null){var io=Pr.slice(0,Dr)+leftPad(Rn,kn)+Pr.slice(Xr);Hr(io.slice(0,ft.length))}Rr({})},Wr=reactExports.useRef();useLayoutEffect$3(function(){if(!(!cr||!ft||Qr.current)){if(!Fr.match(Pr)){Hr(ft);return}return kr.current.setSelectionRange(Dr,Xr),Wr.current=wrapperRaf(function(){kr.current.setSelectionRange(Dr,Xr)}),function(){wrapperRaf.cancel(Wr.current)}}},[Fr,ft,cr,Pr,Mr,Dr,Xr,Nr,Hr]);var Gr=ft?{onFocus:vr,onBlur:$r,onKeyDown:qr,onMouseDown:Zr,onMouseUp:vn,onPaste:ln}:{};return reactExports.createElement("div",{ref:jr,className:classNames(Zt,_defineProperty$c(_defineProperty$c({},"".concat(Zt,"-active"),rt&&ct),"".concat(Zt,"-placeholder"),$t))},reactExports.createElement(Gt,_extends$b({ref:kr,"aria-invalid":At,autoComplete:"off"},Nt,{onKeyDown:zr,onBlur:gr},Gr,{value:Pr,onChange:Vr})),reactExports.createElement(Icon$9,{type:"suffix",icon:ut}),jt)}),_excluded$1m=["id","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","onMouseDown","required","aria-required","autoFocus"];function RangeSelector(_e,et){var rt=_e.id,st=_e.clearIcon,ct=_e.suffixIcon,ut=_e.separator,ft=ut===void 0?"~":ut,gt=_e.activeIndex;_e.activeHelp,_e.allHelp;var xt=_e.focused;_e.onFocus,_e.onBlur,_e.onKeyDown,_e.locale,_e.generateConfig;var $t=_e.placeholder,_t=_e.className,wt=_e.style,Tt=_e.onClick,Rt=_e.onClear,It=_e.value;_e.onChange,_e.onSubmit,_e.onInputChange,_e.format,_e.maskFormat,_e.preserveInvalidOnBlur,_e.onInvalid;var At=_e.disabled,jt=_e.invalid;_e.inputReadOnly;var Nt=_e.direction;_e.onOpenChange;var kt=_e.onActiveOffset,Ft=_e.onMouseDown;_e.required,_e["aria-required"];var Ht=_e.autoFocus,Wt=_objectWithoutProperties$2(_e,_excluded$1m),Vt=Nt==="rtl",qt=reactExports.useContext(PickerContext),Xt=qt.prefixCls,Gt=reactExports.useMemo(function(){if(typeof rt=="string")return[rt];var Cr=rt||{};return[Cr.start,Cr.end]},[rt]),Zt=reactExports.useRef(),er=reactExports.useRef(),lr=reactExports.useRef(),cr=function(Nr){var Rr;return(Rr=[er,lr][Nr])===null||Rr===void 0?void 0:Rr.current};reactExports.useImperativeHandle(et,function(){return{nativeElement:Zt.current,focus:function(){var Nr,Rr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;(Nr=cr(Rr))===null||Nr===void 0||Nr.focus()},blur:function(){var Nr,Rr;(Nr=cr(0))===null||Nr===void 0||Nr.blur(),(Rr=cr(1))===null||Rr===void 0||Rr.blur()}}});var ur=useRootProps(Wt),fr=reactExports.useMemo(function(){return Array.isArray($t)?$t:[$t,$t]},[$t]),hr=useInputProps(_objectSpread2(_objectSpread2({},_e),{},{id:Gt,placeholder:fr})),pr=_slicedToArray$3(hr,1),dr=pr[0],yr=Vt?"right":"left",Sr=reactExports.useState(_defineProperty$c({position:"absolute",width:0},yr,0)),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=useEvent(function(){var Cr=cr(gt);if(Cr){var Nr=Cr.nativeElement,Rr=Nr.offsetWidth,Pr=Nr.offsetLeft,jr=Nr.offsetParent,kr=Pr;if(Vt){var Fr=jr,_r=getComputedStyle(Fr);kr=Fr.offsetWidth-parseFloat(_r.borderRightWidth)-parseFloat(_r.borderLeftWidth)-Pr-Rr}Er(function(Br){return _objectSpread2(_objectSpread2({},Br),{},_defineProperty$c({width:Rr},yr,kr))}),kt(gt===0?0:kr)}});reactExports.useEffect(function(){Tr()},[gt]);var Mr=st&&(It[0]&&!At[0]||It[1]&&!At[1]),Or=Ht&&!At[0],wr=Ht&&!Or&&!At[1];return reactExports.createElement(RefResizeObserver,{onResize:Tr},reactExports.createElement("div",_extends$b({},ur,{className:classNames(Xt,"".concat(Xt,"-range"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Xt,"-focused"),xt),"".concat(Xt,"-disabled"),At.every(function(Cr){return Cr})),"".concat(Xt,"-invalid"),jt.some(function(Cr){return Cr})),"".concat(Xt,"-rtl"),Vt),_t),style:wt,ref:Zt,onClick:Tt,onMouseDown:function(Nr){var Rr=Nr.target;Rr!==er.current.inputElement&&Rr!==lr.current.inputElement&&Nr.preventDefault(),Ft==null||Ft(Nr)}}),reactExports.createElement(Input$7,_extends$b({ref:er},dr(0),{autoFocus:Or,"date-range":"start"})),reactExports.createElement("div",{className:"".concat(Xt,"-range-separator")},ft),reactExports.createElement(Input$7,_extends$b({ref:lr},dr(1),{autoFocus:wr,"date-range":"end"})),reactExports.createElement("div",{className:"".concat(Xt,"-active-bar"),style:mr}),reactExports.createElement(Icon$9,{type:"suffix",icon:ct}),Mr&&reactExports.createElement(ClearIcon,{icon:st,onClear:Rt})))}var RefRangeSelector=reactExports.forwardRef(RangeSelector);function separateConfig(_e,et){var rt=_e??et;return Array.isArray(rt)?rt:[rt,rt]}function getActiveRange(_e){return _e===1?"end":"start"}function RangePicker$1(_e,et){var rt=useFilledProps(_e,function(){var go=_e.disabled,Eo=_e.allowEmpty,Do=separateConfig(go,!1),Fo=separateConfig(Eo,!1);return{disabled:Do,allowEmpty:Fo}}),st=_slicedToArray$3(rt,6),ct=st[0],ut=st[1],ft=st[2],gt=st[3],xt=st[4],$t=st[5],_t=ct.prefixCls,wt=ct.styles,Tt=ct.classNames,Rt=ct.defaultValue,It=ct.value,At=ct.needConfirm,jt=ct.onKeyDown,Nt=ct.disabled,kt=ct.allowEmpty,Ft=ct.disabledDate,Ht=ct.minDate,Wt=ct.maxDate,Vt=ct.defaultOpen,qt=ct.open,Xt=ct.onOpenChange,Gt=ct.locale,Zt=ct.generateConfig,er=ct.picker,lr=ct.showNow,cr=ct.showToday,ur=ct.showTime,fr=ct.mode,hr=ct.onPanelChange,pr=ct.onCalendarChange,dr=ct.onOk,yr=ct.defaultPickerValue,Sr=ct.pickerValue,br=ct.onPickerValueChange,mr=ct.inputReadOnly,Er=ct.suffixIcon,Tr=ct.onFocus,Mr=ct.onBlur,Or=ct.presets,wr=ct.ranges,Cr=ct.components,Nr=ct.cellRender,Rr=ct.dateRender,Pr=ct.monthCellRender,jr=ct.onClick,kr=usePickerRef(et),Fr=useOpen(qt,Vt,Nt,Xt),_r=_slicedToArray$3(Fr,2),Br=_r[0],Dr=_r[1],Xr=function(Eo,Do){(Nt.some(function(Fo){return!Fo})||!Eo)&&Dr(Eo,Do)},Kr=useInnerValue(Zt,Gt,gt,!0,!1,Rt,It,pr,dr),Hr=_slicedToArray$3(Kr,5),Vr=Hr[0],ln=Hr[1],Qr=Hr[2],Zr=Hr[3],vn=Hr[4],vr=Qr(),gr=useRangeActive(Nt,kt),$r=_slicedToArray$3(gr,7),zr=$r[0],qr=$r[1],Wr=$r[2],Gr=$r[3],dn=$r[4],mn=$r[5],hn=$r[6],Cn=function(Eo,Do){qr(!0),Tr==null||Tr(Eo,{range:getActiveRange(Do??Gr)})},Rn=function(Eo,Do){qr(!1),Mr==null||Mr(Eo,{range:getActiveRange(Do??Gr)})},kn=reactExports.useMemo(function(){if(!ur)return null;var go=ur.disabledTime,Eo=go?function(Do){var Fo=getActiveRange(Gr);return go(Do,Fo)}:void 0;return _objectSpread2(_objectSpread2({},ur),{},{disabledTime:Eo})},[ur,Gr]),Bn=useMergedState([er,er],{value:fr}),Yn=_slicedToArray$3(Bn,2),Gn=Yn[0],io=Yn[1],pn=Gn[Gr]||er,gn=pn==="date"&&kn?"datetime":pn,yn=gn===er&&gn!=="time",_n=useShowNow(er,pn,lr,cr,!0),Tn=useRangeValue(ct,Vr,ln,Qr,Zr,Nt,gt,zr,Br,$t),Nn=_slicedToArray$3(Tn,2),On=Nn[0],$n=Nn[1],Sn=useRangeDisabledDate(vr,Nt,hn,Zt,Gt,Ft),xn=useFieldsInvalidate(vr,$t,kt),In=_slicedToArray$3(xn,2),jn=In[0],Hn=In[1],qn=useRangePickerValue(Zt,Gt,vr,Gn,Br,Gr,ut,yn,yr,Sr,kn==null?void 0:kn.defaultOpenValue,br,Ht,Wt),Jn=_slicedToArray$3(qn,2),ao=Jn[0],Vn=Jn[1],Wn=useEvent(function(go,Eo,Do){var Fo=fillIndex(Gn,Gr,Eo);if((Fo[0]!==Gn[0]||Fo[1]!==Gn[1])&&io(Fo),hr&&Do!==!1){var us=_toConsumableArray$3(vr);go&&(us[Gr]=go),hr(us,Fo)}}),zn=function(Eo,Do){return fillIndex(vr,Do,Eo)},wn=function(Eo,Do){var Fo=vr;Eo&&(Fo=zn(Eo,Gr));var us=mn(Fo);Zr(Fo),On(Gr,us===null),us===null?Xr(!1,{force:!0}):Do||kr.current.focus(us)},cn=function(Eo){if(!kr.current.nativeElement.contains(document.activeElement)){var Do=Nt.findIndex(function(Fo){return!Fo});Do>=0&&kr.current.focus(Do)}Xr(!0),jr==null||jr(Eo)},Pn=function(){$n(null),Xr(!1,{force:!0})},An=reactExports.useState(null),Xn=_slicedToArray$3(An,2),eo=Xn[0],ro=Xn[1],Kn=reactExports.useState(null),co=_slicedToArray$3(Kn,2),uo=co[0],vo=co[1],Bo=reactExports.useMemo(function(){return uo||vr},[vr,uo]);reactExports.useEffect(function(){Br||vo(null)},[Br]);var Ho=reactExports.useState(0),so=_slicedToArray$3(Ho,2),Ro=so[0],Po=so[1],Ao=usePresets(Or,wr),Wo=function(Eo){vo(Eo),ro("preset")},qo=function(Eo){var Do=$n(Eo);Do&&Xr(!1,{force:!0})},os=function(Eo){wn(Eo)},No=function(Eo){vo(Eo?zn(Eo,Gr):null),ro("cell")},ss=function(Eo){Xr(!0),Cn(Eo)},_i=function(Eo){Wr("panel");var Do=fillIndex(vr,Gr,Eo);Zr(Do),!At&&!ft&&ut===gn&&wn(Eo)},$o=function(){Xr(!1)},bo=useCellRender(Nr,Rr,Pr,getActiveRange(Gr)),Fn=vr[Gr]||null,Dn=useEvent(function(go){return $t(go,{activeIndex:Gr})}),po=reactExports.useMemo(function(){var go=pickAttrs(ct,!1),Eo=omit$2(ct,[].concat(_toConsumableArray$3(Object.keys(go)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Eo},[ct]),To=reactExports.createElement(Popup,_extends$b({},po,{showNow:_n,showTime:kn,range:!0,multiplePanel:yn,activeOffset:Ro,disabledDate:Sn,onFocus:ss,onBlur:Rn,picker:er,mode:pn,internalMode:gn,onPanelChange:Wn,format:xt,value:Fn,isInvalid:Dn,onChange:null,onSelect:_i,pickerValue:ao,defaultOpenValue:toArray$a(ur==null?void 0:ur.defaultOpenValue)[Gr],onPickerValueChange:Vn,hoverValue:Bo,onHover:No,needConfirm:At,onSubmit:wn,onOk:vn,presets:Ao,onPresetHover:Wo,onPresetSubmit:qo,onNow:os,cellRender:bo})),fo=function(Eo,Do){var Fo=zn(Eo,Do);Zr(Fo)},Qn=function(){Wr("input")},oo=function(Eo,Do){Wr("input"),Xr(!0,{inherit:!0}),dn(Do),Cn(Eo,Do)},Oo=function(Eo,Do){Xr(!1),Rn(Eo,Do)},Mo=function(Eo,Do){Eo.key==="Tab"&&wn(null,!0),jt==null||jt(Eo,Do)},Lo=reactExports.useMemo(function(){return{prefixCls:_t,locale:Gt,generateConfig:Zt,button:Cr.button,input:Cr.input}},[_t,Gt,Zt,Cr.button,Cr.input]);return useLayoutEffect$3(function(){Br&&Gr!==void 0&&Wn(null,er,!1)},[Br,Gr,er]),useLayoutEffect$3(function(){var go=Wr();!Br&&go==="input"&&(Xr(!1),wn(null,!0)),!Br&&ft&&!At&&go==="panel"&&(Xr(!0),wn())},[Br]),reactExports.createElement(PickerContext.Provider,{value:Lo},reactExports.createElement(PickerTrigger,_extends$b({},pickTriggerProps(ct),{popupElement:To,popupStyle:wt.popup,popupClassName:Tt.popup,visible:Br,onClose:$o,range:!0}),reactExports.createElement(RefRangeSelector,_extends$b({},ct,{ref:kr,suffixIcon:Er,activeIndex:zr||Br?Gr:null,activeHelp:!!uo,allHelp:!!uo&&eo==="preset",focused:zr,onFocus:oo,onBlur:Oo,onKeyDown:Mo,onSubmit:wn,value:Bo,maskFormat:xt,onChange:fo,onInputChange:Qn,format:gt,inputReadOnly:mr,disabled:Nt,open:Br,onOpenChange:Xr,onClick:cn,onClear:Pn,invalid:jn,onInvalid:Hn,onActiveOffset:Po}))))}var RefRangePicker=reactExports.forwardRef(RangePicker$1);function MultipleDates(_e){var et=_e.prefixCls,rt=_e.value,st=_e.onRemove,ct=_e.removeIcon,ut=ct===void 0?"×":ct,ft=_e.formatDate,gt=_e.disabled,xt=_e.maxTagCount,$t="".concat(et,"-selector"),_t="".concat(et,"-selection"),wt="".concat(_t,"-overflow");function Tt(At,jt){return reactExports.createElement("span",{className:classNames("".concat(_t,"-item")),title:typeof At=="string"?At:null},reactExports.createElement("span",{className:"".concat(_t,"-item-content")},At),!gt&&jt&&reactExports.createElement("span",{onMouseDown:function(kt){kt.preventDefault()},onClick:jt,className:"".concat(_t,"-item-remove")},ut))}function Rt(At){var jt=ft(At),Nt=function(Ft){Ft&&Ft.stopPropagation(),st(At)};return Tt(jt,Nt)}function It(At){var jt="+ ".concat(At.length," ...");return Tt(jt)}return reactExports.createElement("div",{className:$t},reactExports.createElement(ForwardOverflow,{prefixCls:wt,data:rt,renderItem:Rt,renderRest:It,itemKey:function(jt){return ft(jt)},maxCount:xt}))}var _excluded$1l=["id","open","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","removeIcon"];function SingleSelector$2(_e,et){_e.id;var rt=_e.open,st=_e.clearIcon,ct=_e.suffixIcon;_e.activeHelp,_e.allHelp;var ut=_e.focused;_e.onFocus,_e.onBlur,_e.onKeyDown;var ft=_e.locale,gt=_e.generateConfig;_e.placeholder;var xt=_e.className,$t=_e.style,_t=_e.onClick,wt=_e.onClear,Tt=_e.internalPicker,Rt=_e.value,It=_e.onChange,At=_e.onSubmit;_e.onInputChange;var jt=_e.multiple,Nt=_e.maxTagCount;_e.format,_e.maskFormat,_e.preserveInvalidOnBlur,_e.onInvalid;var kt=_e.disabled,Ft=_e.invalid;_e.inputReadOnly;var Ht=_e.direction;_e.onOpenChange;var Wt=_e.onMouseDown;_e.required,_e["aria-required"];var Vt=_e.autoFocus,qt=_e.removeIcon,Xt=_objectWithoutProperties$2(_e,_excluded$1l),Gt=Ht==="rtl",Zt=reactExports.useContext(PickerContext),er=Zt.prefixCls,lr=reactExports.useRef(),cr=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return{nativeElement:lr.current,focus:function(){var Tr;(Tr=cr.current)===null||Tr===void 0||Tr.focus()},blur:function(){var Tr;(Tr=cr.current)===null||Tr===void 0||Tr.blur()}}});var ur=useRootProps(Xt),fr=function(Tr){It([Tr])},hr=function(Tr){var Mr=Rt.filter(function(Or){return Or&&!isSame$1(gt,ft,Or,Tr,Tt)});It(Mr),rt||At()},pr=useInputProps(_objectSpread2(_objectSpread2({},_e),{},{onChange:fr}),function(Er){var Tr=Er.valueTexts;return{value:Tr[0]||"",active:ut}}),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1],br=!!(st&&Rt.length&&!kt),mr=jt?reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(MultipleDates,{prefixCls:er,value:Rt,onRemove:hr,formatDate:Sr,maxTagCount:Nt,disabled:kt,removeIcon:qt}),reactExports.createElement("input",{className:"".concat(er,"-multiple-input"),value:Rt.map(Sr).join(","),ref:cr,readOnly:!0,autoFocus:Vt}),reactExports.createElement(Icon$9,{type:"suffix",icon:ct}),br&&reactExports.createElement(ClearIcon,{icon:st,onClear:wt})):reactExports.createElement(Input$7,_extends$b({ref:cr},yr(),{autoFocus:Vt,suffixIcon:ct,clearIcon:br&&reactExports.createElement(ClearIcon,{icon:st,onClear:wt}),showActiveCls:!1}));return reactExports.createElement("div",_extends$b({},ur,{className:classNames(er,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(er,"-multiple"),jt),"".concat(er,"-focused"),ut),"".concat(er,"-disabled"),kt),"".concat(er,"-invalid"),Ft),"".concat(er,"-rtl"),Gt),xt),style:$t,ref:lr,onClick:_t,onMouseDown:function(Tr){var Mr,Or=Tr.target;Or!==((Mr=cr.current)===null||Mr===void 0?void 0:Mr.inputElement)&&Tr.preventDefault(),Wt==null||Wt(Tr)}}),mr)}var RefSingleSelector=reactExports.forwardRef(SingleSelector$2);function Picker$1(_e,et){var rt=useFilledProps(_e),st=_slicedToArray$3(rt,6),ct=st[0],ut=st[1],ft=st[2],gt=st[3],xt=st[4],$t=st[5],_t=ct,wt=_t.prefixCls,Tt=_t.styles,Rt=_t.classNames,It=_t.order,At=_t.defaultValue,jt=_t.value,Nt=_t.needConfirm,kt=_t.onChange,Ft=_t.onKeyDown,Ht=_t.disabled,Wt=_t.disabledDate,Vt=_t.minDate,qt=_t.maxDate,Xt=_t.defaultOpen,Gt=_t.open,Zt=_t.onOpenChange,er=_t.locale,lr=_t.generateConfig,cr=_t.picker,ur=_t.showNow,fr=_t.showToday,hr=_t.showTime,pr=_t.mode,dr=_t.onPanelChange,yr=_t.onCalendarChange,Sr=_t.onOk,br=_t.multiple,mr=_t.defaultPickerValue,Er=_t.pickerValue,Tr=_t.onPickerValueChange,Mr=_t.inputReadOnly,Or=_t.suffixIcon,wr=_t.removeIcon,Cr=_t.onFocus,Nr=_t.onBlur,Rr=_t.presets,Pr=_t.components,jr=_t.cellRender,kr=_t.dateRender,Fr=_t.monthCellRender,_r=_t.onClick,Br=usePickerRef(et);function Dr(Qn){return Qn===null?null:br?Qn:Qn[0]}var Xr=useToggleDates(lr,er,ut),Kr=useOpen(Gt,Xt,[Ht],Zt),Hr=_slicedToArray$3(Kr,2),Vr=Hr[0],ln=Hr[1],Qr=function(oo,Oo,Mo){if(yr){var Lo=_objectSpread2({},Mo);delete Lo.range,yr(Dr(oo),Dr(Oo),Lo)}},Zr=function(oo){Sr==null||Sr(Dr(oo))},vn=useInnerValue(lr,er,gt,!1,It,At,jt,Qr,Zr),vr=_slicedToArray$3(vn,5),gr=vr[0],$r=vr[1],zr=vr[2],qr=vr[3],Wr=vr[4],Gr=zr(),dn=useRangeActive([Ht]),mn=_slicedToArray$3(dn,4),hn=mn[0],Cn=mn[1],Rn=mn[2],kn=mn[3],Bn=function(oo){Cn(!0),Cr==null||Cr(oo,{})},Yn=function(oo){Cn(!1),Nr==null||Nr(oo,{})},Gn=useMergedState(cr,{value:pr}),io=_slicedToArray$3(Gn,2),pn=io[0],gn=io[1],yn=pn==="date"&&hr?"datetime":pn,_n=useShowNow(cr,pn,ur,fr),Tn=kt&&function(Qn,oo){kt(Dr(Qn),Dr(oo))},Nn=useRangeValue(_objectSpread2(_objectSpread2({},ct),{},{onChange:Tn}),gr,$r,zr,qr,[],gt,hn,Vr,$t),On=_slicedToArray$3(Nn,2),$n=On[1],Sn=useFieldsInvalidate(Gr,$t),xn=_slicedToArray$3(Sn,2),In=xn[0],jn=xn[1],Hn=reactExports.useMemo(function(){return In.some(function(Qn){return Qn})},[In]),qn=function(oo,Oo){if(Tr){var Mo=_objectSpread2(_objectSpread2({},Oo),{},{mode:Oo.mode[0]});delete Mo.range,Tr(oo[0],Mo)}},Jn=useRangePickerValue(lr,er,Gr,[pn],Vr,kn,ut,!1,mr,Er,toArray$a(hr==null?void 0:hr.defaultOpenValue),qn,Vt,qt),ao=_slicedToArray$3(Jn,2),Vn=ao[0],Wn=ao[1],zn=useEvent(function(Qn,oo,Oo){if(gn(oo),dr&&Oo!==!1){var Mo=Qn||Gr[Gr.length-1];dr(Mo,oo)}}),wn=function(){$n(zr()),ln(!1,{force:!0})},cn=function(oo){!Ht&&!Br.current.nativeElement.contains(document.activeElement)&&Br.current.focus(),ln(!0),_r==null||_r(oo)},Pn=function(){$n(null),ln(!1,{force:!0})},An=reactExports.useState(null),Xn=_slicedToArray$3(An,2),eo=Xn[0],ro=Xn[1],Kn=reactExports.useState(null),co=_slicedToArray$3(Kn,2),uo=co[0],vo=co[1],Bo=reactExports.useMemo(function(){var Qn=[uo].concat(_toConsumableArray$3(Gr)).filter(function(oo){return oo});return br?Qn:Qn.slice(0,1)},[Gr,uo,br]),Ho=reactExports.useMemo(function(){return!br&&uo?[uo]:Gr.filter(function(Qn){return Qn})},[Gr,uo,br]);reactExports.useEffect(function(){Vr||vo(null)},[Vr]);var so=usePresets(Rr),Ro=function(oo){vo(oo),ro("preset")},Po=function(oo){var Oo=br?Xr(zr(),oo):[oo],Mo=$n(Oo);Mo&&!br&&ln(!1,{force:!0})},Ao=function(oo){Po(oo)},Wo=function(oo){vo(oo),ro("cell")},qo=function(oo){ln(!0),Bn(oo)},os=function(oo){Rn("panel");var Oo=br?Xr(zr(),oo):[oo];qr(Oo),!Nt&&!ft&&ut===yn&&wn()},No=function(){ln(!1)},ss=useCellRender(jr,kr,Fr),_i=reactExports.useMemo(function(){var Qn=pickAttrs(ct,!1),oo=omit$2(ct,[].concat(_toConsumableArray$3(Object.keys(Qn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return _objectSpread2(_objectSpread2({},oo),{},{multiple:ct.multiple})},[ct]),$o=reactExports.createElement(Popup,_extends$b({},_i,{showNow:_n,showTime:hr,disabledDate:Wt,onFocus:qo,onBlur:Yn,picker:cr,mode:pn,internalMode:yn,onPanelChange:zn,format:xt,value:Gr,isInvalid:$t,onChange:null,onSelect:os,pickerValue:Vn,defaultOpenValue:hr==null?void 0:hr.defaultOpenValue,onPickerValueChange:Wn,hoverValue:Bo,onHover:Wo,needConfirm:Nt,onSubmit:wn,onOk:Wr,presets:so,onPresetHover:Ro,onPresetSubmit:Po,onNow:Ao,cellRender:ss})),bo=function(oo){qr(oo)},Fn=function(){Rn("input")},Dn=function(oo){Rn("input"),ln(!0,{inherit:!0}),Bn(oo)},po=function(oo){ln(!1),Yn(oo)},To=function(oo,Oo){oo.key==="Tab"&&wn(),Ft==null||Ft(oo,Oo)},fo=reactExports.useMemo(function(){return{prefixCls:wt,locale:er,generateConfig:lr,button:Pr.button,input:Pr.input}},[wt,er,lr,Pr.button,Pr.input]);return useLayoutEffect$3(function(){Vr&&kn!==void 0&&zn(null,cr,!1)},[Vr,kn,cr]),useLayoutEffect$3(function(){var Qn=Rn();!Vr&&Qn==="input"&&(ln(!1),wn()),!Vr&&ft&&!Nt&&Qn==="panel"&&(ln(!0),wn())},[Vr]),reactExports.createElement(PickerContext.Provider,{value:fo},reactExports.createElement(PickerTrigger,_extends$b({},pickTriggerProps(ct),{popupElement:$o,popupStyle:Tt.popup,popupClassName:Rt.popup,visible:Vr,onClose:No}),reactExports.createElement(RefSingleSelector,_extends$b({},ct,{ref:Br,suffixIcon:Or,removeIcon:wr,activeHelp:!!uo,allHelp:!!uo&&eo==="preset",focused:hn,onFocus:Dn,onBlur:po,onKeyDown:To,onSubmit:wn,value:Ho,maskFormat:xt,onChange:bo,onInputChange:Fn,internalPicker:ut,format:gt,inputReadOnly:Mr,disabled:Ht,open:Vr,onOpenChange:ln,onClick:cn,onClear:Pn,invalid:Hn,onInvalid:function(oo){jn(oo,0)}}))))}var RefPicker=reactExports.forwardRef(Picker$1);const RadioGroupContext=reactExports.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=reactExports.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$1k=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$5=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-checkbox":st,ut=_e.className,ft=_e.style,gt=_e.checked,xt=_e.disabled,$t=_e.defaultChecked,_t=$t===void 0?!1:$t,wt=_e.type,Tt=wt===void 0?"checkbox":wt,Rt=_e.title,It=_e.onChange,At=_objectWithoutProperties$2(_e,_excluded$1k),jt=reactExports.useRef(null),Nt=useMergedState(_t,{value:gt}),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];reactExports.useImperativeHandle(et,function(){return{focus:function(){var Xt;(Xt=jt.current)===null||Xt===void 0||Xt.focus()},blur:function(){var Xt;(Xt=jt.current)===null||Xt===void 0||Xt.blur()},input:jt.current}});var Wt=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-checked"),Ft),_defineProperty$c(rt,"".concat(ct,"-disabled"),xt),rt)),Vt=function(Xt){xt||("checked"in _e||Ht(Xt.target.checked),It==null||It({target:_objectSpread2(_objectSpread2({},_e),{},{type:Tt,checked:Xt.target.checked}),stopPropagation:function(){Xt.stopPropagation()},preventDefault:function(){Xt.preventDefault()},nativeEvent:Xt.nativeEvent}))};return reactExports.createElement("span",{className:Wt,title:Rt,style:ft},reactExports.createElement("input",_extends$b({},At,{className:"".concat(ct,"-input"),ref:jt,onChange:Vt,disabled:xt,checked:!!Ft,type:Tt})),reactExports.createElement("span",{className:"".concat(ct,"-inner")}))});const getGroupRadioStyle=_e=>{const{componentCls:et,antCls:rt}=_e,st=`${et}-group`;return{[st]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",fontSize:0,[`&${st}-rtl`]:{direction:"rtl"},[`${rt}-badge ${rt}-badge-count`]:{zIndex:1},[`> ${rt}-badge:not(:first-child) > ${rt}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=_e=>{const{componentCls:et,wrapperMarginInlineEnd:rt,colorPrimary:st,radioSize:ct,motionDurationSlow:ut,motionDurationMid:ft,motionEaseInOutCirc:gt,colorBgContainer:xt,colorBorder:$t,lineWidth:_t,colorBgContainerDisabled:wt,colorTextDisabled:Tt,paddingXS:Rt,dotColorDisabled:It,lineType:At,radioColor:jt,radioBgColor:Nt,calc:kt}=_e,Ft=`${et}-inner`,Wt=kt(ct).sub(kt(4).mul(2)),Vt=kt(1).mul(ct).equal();return{[`${et}-wrapper`]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:rt,cursor:"pointer",[`&${et}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${et}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit$1(_t)} ${At} ${st}`,borderRadius:"50%",visibility:"hidden",content:'""'},[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${et}-wrapper:hover &, + &:hover ${Ft}`]:{borderColor:st},[`${et}-input:focus-visible + ${Ft}`]:Object.assign({},genFocusOutline(_e)),[`${et}:hover::after, ${et}-wrapper:hover &::after`]:{visibility:"visible"},[`${et}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Vt,height:Vt,marginBlockStart:kt(1).mul(ct).div(-2).equal(),marginInlineStart:kt(1).mul(ct).div(-2).equal(),backgroundColor:jt,borderBlockStart:0,borderInlineStart:0,borderRadius:Vt,transform:"scale(0)",opacity:0,transition:`all ${ut} ${gt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Vt,height:Vt,backgroundColor:xt,borderColor:$t,borderStyle:"solid",borderWidth:_t,borderRadius:"50%",transition:`all ${ft}`},[`${et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${et}-checked`]:{[Ft]:{borderColor:st,backgroundColor:Nt,"&::after":{transform:`scale(${_e.calc(_e.dotSize).div(ct).equal()})`,opacity:1,transition:`all ${ut} ${gt}`}}},[`${et}-disabled`]:{cursor:"not-allowed",[Ft]:{backgroundColor:wt,borderColor:$t,cursor:"not-allowed","&::after":{backgroundColor:It}},[`${et}-input`]:{cursor:"not-allowed"},[`${et}-disabled + span`]:{color:Tt,cursor:"not-allowed"},[`&${et}-checked`]:{[Ft]:{"&::after":{transform:`scale(${kt(Wt).div(ct).equal({unit:!1})})`}}}},[`span${et} + *`]:{paddingInlineStart:Rt,paddingInlineEnd:Rt}})}},getRadioButtonStyle=_e=>{const{buttonColor:et,controlHeight:rt,componentCls:st,lineWidth:ct,lineType:ut,colorBorder:ft,motionDurationSlow:gt,motionDurationMid:xt,buttonPaddingInline:$t,fontSize:_t,buttonBg:wt,fontSizeLG:Tt,controlHeightLG:Rt,controlHeightSM:It,paddingXS:At,borderRadius:jt,borderRadiusSM:Nt,borderRadiusLG:kt,buttonCheckedBg:Ft,buttonSolidCheckedColor:Ht,colorTextDisabled:Wt,colorBgContainerDisabled:Vt,buttonCheckedBgDisabled:qt,buttonCheckedColorDisabled:Xt,colorPrimary:Gt,colorPrimaryHover:Zt,colorPrimaryActive:er,buttonSolidCheckedBg:lr,buttonSolidCheckedHoverBg:cr,buttonSolidCheckedActiveBg:ur,calc:fr}=_e;return{[`${st}-button-wrapper`]:{position:"relative",display:"inline-block",height:rt,margin:0,paddingInline:$t,paddingBlock:0,color:et,fontSize:_t,lineHeight:unit$1(fr(rt).sub(fr(ct).mul(2)).equal()),background:wt,border:`${unit$1(ct)} ${ut} ${ft}`,borderBlockStartWidth:fr(ct).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:ct,cursor:"pointer",transition:[`color ${xt}`,`background ${xt}`,`box-shadow ${xt}`].join(","),a:{color:et},[`> ${st}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:fr(ct).mul(-1).equal(),insetInlineStart:fr(ct).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ct,paddingInline:0,backgroundColor:ft,transition:`background-color ${gt}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit$1(ct)} ${ut} ${ft}`,borderStartStartRadius:jt,borderEndStartRadius:jt},"&:last-child":{borderStartEndRadius:jt,borderEndEndRadius:jt},"&:first-child:last-child":{borderRadius:jt},[`${st}-group-large &`]:{height:Rt,fontSize:Tt,lineHeight:unit$1(fr(Rt).sub(fr(ct).mul(2)).equal()),"&:first-child":{borderStartStartRadius:kt,borderEndStartRadius:kt},"&:last-child":{borderStartEndRadius:kt,borderEndEndRadius:kt}},[`${st}-group-small &`]:{height:It,paddingInline:fr(At).sub(ct).equal(),paddingBlock:0,lineHeight:unit$1(fr(It).sub(fr(ct).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Nt,borderEndStartRadius:Nt},"&:last-child":{borderStartEndRadius:Nt,borderEndEndRadius:Nt}},"&:hover":{position:"relative",color:Gt},"&:has(:focus-visible)":Object.assign({},genFocusOutline(_e)),[`${st}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${st}-button-wrapper-disabled)`]:{zIndex:1,color:Gt,background:Ft,borderColor:Gt,"&::before":{backgroundColor:Gt},"&:first-child":{borderColor:Gt},"&:hover":{color:Zt,borderColor:Zt,"&::before":{backgroundColor:Zt}},"&:active":{color:er,borderColor:er,"&::before":{backgroundColor:er}}},[`${st}-group-solid &-checked:not(${st}-button-wrapper-disabled)`]:{color:Ht,background:lr,borderColor:lr,"&:hover":{color:Ht,background:cr,borderColor:cr},"&:active":{color:Ht,background:ur,borderColor:ur}},"&-disabled":{color:Wt,backgroundColor:Vt,borderColor:ft,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:Vt,borderColor:ft}},[`&-disabled${st}-button-wrapper-checked`]:{color:Xt,backgroundColor:qt,borderColor:ft,boxShadow:"none"}}}},prepareComponentToken$p=_e=>{const{wireframe:et,padding:rt,marginXS:st,lineWidth:ct,fontSizeLG:ut,colorText:ft,colorBgContainer:gt,colorTextDisabled:xt,controlItemBgActiveDisabled:$t,colorTextLightSolid:_t,colorPrimary:wt,colorPrimaryHover:Tt,colorPrimaryActive:Rt,colorWhite:It}=_e,At=4,jt=ut,Nt=et?jt-At*2:jt-(At+ct)*2;return{radioSize:jt,dotSize:Nt,dotColorDisabled:xt,buttonSolidCheckedColor:_t,buttonSolidCheckedBg:wt,buttonSolidCheckedHoverBg:Tt,buttonSolidCheckedActiveBg:Rt,buttonBg:gt,buttonCheckedBg:gt,buttonColor:ft,buttonCheckedBgDisabled:$t,buttonCheckedColorDisabled:xt,buttonPaddingInline:rt-ct,wrapperMarginInlineEnd:st,radioColor:et?wt:It,radioBgColor:et?gt:wt}},useStyle$K=genStyleHooks("Radio",_e=>{const{controlOutline:et,controlOutlineWidth:rt}=_e,st=`0 0 0 ${unit$1(rt)} ${et}`,ut=merge$7(_e,{radioFocusShadow:st,radioButtonFocusShadow:st});return[getGroupRadioStyle(ut),getRadioBasicStyle(ut),getRadioButtonStyle(ut)]},prepareComponentToken$p,{unitless:{radioSize:!0,dotSize:!0}});var __rest$N=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const ct=reactExports.useContext(RadioGroupContext),ut=reactExports.useContext(RadioOptionTypeContext),{getPrefixCls:ft,direction:gt,radio:xt}=reactExports.useContext(ConfigContext$1),$t=reactExports.useRef(null),_t=composeRef(et,$t),{isFormItemInput:wt}=reactExports.useContext(FormItemInputContext),Tt=ur=>{var fr,hr;(fr=_e.onChange)===null||fr===void 0||fr.call(_e,ur),(hr=ct==null?void 0:ct.onChange)===null||hr===void 0||hr.call(ct,ur)},{prefixCls:Rt,className:It,rootClassName:At,children:jt,style:Nt,title:kt}=_e,Ft=__rest$N(_e,["prefixCls","className","rootClassName","children","style","title"]),Ht=ft("radio",Rt),Wt=((ct==null?void 0:ct.optionType)||ut)==="button",Vt=Wt?`${Ht}-button`:Ht,qt=useCSSVarCls(Ht),[Xt,Gt,Zt]=useStyle$K(Ht,qt),er=Object.assign({},Ft),lr=reactExports.useContext(DisabledContext$2);ct&&(er.name=ct.name,er.onChange=Tt,er.checked=_e.value===ct.value,er.disabled=(rt=er.disabled)!==null&&rt!==void 0?rt:ct.disabled),er.disabled=(st=er.disabled)!==null&&st!==void 0?st:lr;const cr=classNames(`${Vt}-wrapper`,{[`${Vt}-wrapper-checked`]:er.checked,[`${Vt}-wrapper-disabled`]:er.disabled,[`${Vt}-wrapper-rtl`]:gt==="rtl",[`${Vt}-wrapper-in-form-item`]:wt},xt==null?void 0:xt.className,It,At,Gt,Zt,qt);return Xt(reactExports.createElement(Wave$1,{component:"Radio",disabled:er.disabled},reactExports.createElement("label",{className:cr,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Nt),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,title:kt},reactExports.createElement(Checkbox$5,Object.assign({},er,{className:classNames(er.className,!Wt&&TARGET_CLS),type:"radio",prefixCls:Vt,ref:_t})),jt!==void 0?reactExports.createElement("span",null,jt):null)))},Radio$3=reactExports.forwardRef(InternalRadio),InternalRadio$1=Radio$3,RadioGroup=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),[ct,ut]=useMergedState(_e.defaultValue,{value:_e.value}),ft=ur=>{const fr=ct,hr=ur.target.value;"value"in _e||ut(hr);const{onChange:pr}=_e;pr&&hr!==fr&&pr(ur)},{prefixCls:gt,className:xt,rootClassName:$t,options:_t,buttonStyle:wt="outline",disabled:Tt,children:Rt,size:It,style:At,id:jt,onMouseEnter:Nt,onMouseLeave:kt,onFocus:Ft,onBlur:Ht}=_e,Wt=rt("radio",gt),Vt=`${Wt}-group`,qt=useCSSVarCls(Wt),[Xt,Gt,Zt]=useStyle$K(Wt,qt);let er=Rt;_t&&_t.length>0&&(er=_t.map(ur=>typeof ur=="string"||typeof ur=="number"?reactExports.createElement(InternalRadio$1,{key:ur.toString(),prefixCls:Wt,disabled:Tt,value:ur,checked:ct===ur},ur):reactExports.createElement(InternalRadio$1,{key:`radio-group-value-options-${ur.value}`,prefixCls:Wt,disabled:ur.disabled||Tt,value:ur.value,checked:ct===ur.value,title:ur.title,style:ur.style,id:ur.id,required:ur.required},ur.label)));const lr=useSize(It),cr=classNames(Vt,`${Vt}-${wt}`,{[`${Vt}-${lr}`]:lr,[`${Vt}-rtl`]:st==="rtl"},xt,$t,Gt,Zt,qt);return Xt(reactExports.createElement("div",Object.assign({},pickAttrs(_e,{aria:!0,data:!0}),{className:cr,style:At,onMouseEnter:Nt,onMouseLeave:kt,onFocus:Ft,onBlur:Ht,id:jt,ref:et}),reactExports.createElement(RadioGroupContextProvider,{value:{onChange:ft,value:ct,disabled:_e.disabled,name:_e.name,optionType:_e.optionType}},er)))}),Group$6=reactExports.memo(RadioGroup);var __rest$M=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st}=_e,ct=__rest$M(_e,["prefixCls"]),ut=rt("radio",st);return reactExports.createElement(RadioOptionTypeContextProvider,{value:"button"},reactExports.createElement(InternalRadio$1,Object.assign({prefixCls:ut},ct,{type:"radio",ref:et})))},Button$1=reactExports.forwardRef(RadioButton),Radio$1=InternalRadio$1;Radio$1.Button=Button$1;Radio$1.Group=Group$6;Radio$1.__ANT_RADIO=!0;const Radio$2=Radio$1;function initInputToken(_e){return merge$7(_e,{inputAffixPadding:_e.paddingXXS})}const initComponentToken$1=_e=>{const{controlHeight:et,fontSize:rt,lineHeight:st,lineWidth:ct,controlHeightSM:ut,controlHeightLG:ft,fontSizeLG:gt,lineHeightLG:xt,paddingSM:$t,controlPaddingHorizontalSM:_t,controlPaddingHorizontal:wt,colorFillAlter:Tt,colorPrimaryHover:Rt,colorPrimary:It,controlOutlineWidth:At,controlOutline:jt,colorErrorOutline:Nt,colorWarningOutline:kt,colorBgContainer:Ft}=_e;return{paddingBlock:Math.max(Math.round((et-rt*st)/2*10)/10-ct,0),paddingBlockSM:Math.max(Math.round((ut-rt*st)/2*10)/10-ct,0),paddingBlockLG:Math.ceil((ft-gt*xt)/2*10)/10-ct,paddingInline:$t-ct,paddingInlineSM:_t-ct,paddingInlineLG:wt-ct,addonBg:Tt,activeBorderColor:It,hoverBorderColor:Rt,activeShadow:`0 0 0 ${At}px ${jt}`,errorActiveShadow:`0 0 0 ${At}px ${Nt}`,warningActiveShadow:`0 0 0 ${At}px ${kt}`,hoverBg:Ft,activeBg:Ft,inputFontSize:rt,inputFontSizeLG:gt,inputFontSizeSM:rt}},genHoverStyle=_e=>({borderColor:_e.hoverBorderColor,backgroundColor:_e.hoverBg}),genDisabledStyle=_e=>({color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},genHoverStyle(merge$7(_e,{hoverBorderColor:_e.colorBorder,hoverBg:_e.colorBgContainerDisabled})))}),genBaseOutlinedStyle=(_e,et)=>({background:_e.colorBgContainer,borderWidth:_e.lineWidth,borderStyle:_e.lineType,borderColor:et.borderColor,"&:hover":{borderColor:et.hoverBorderColor,backgroundColor:_e.hoverBg},"&:focus, &:focus-within":{borderColor:et.activeBorderColor,boxShadow:et.activeShadow,outline:0,backgroundColor:_e.activeBg}}),genOutlinedStatusStyle=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}:not(${_e.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseOutlinedStyle(_e,et)),{[`${_e.componentCls}-prefix, ${_e.componentCls}-suffix`]:{color:et.affixColor}})}),genOutlinedStyle=(_e,et)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle(_e,{borderColor:_e.colorBorder,hoverBorderColor:_e.hoverBorderColor,activeBorderColor:_e.activeBorderColor,activeShadow:_e.activeShadow})),{[`&${_e.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(_e))}),genOutlinedStatusStyle(_e,{status:"error",borderColor:_e.colorError,hoverBorderColor:_e.colorErrorBorderHover,activeBorderColor:_e.colorError,activeShadow:_e.errorActiveShadow,affixColor:_e.colorError})),genOutlinedStatusStyle(_e,{status:"warning",borderColor:_e.colorWarning,hoverBorderColor:_e.colorWarningBorderHover,activeBorderColor:_e.colorWarning,activeShadow:_e.warningActiveShadow,affixColor:_e.colorWarning})),et)}),genOutlinedGroupStatusStyle=(_e,et)=>({[`&${_e.componentCls}-group-wrapper-status-${et.status}`]:{[`${_e.componentCls}-group-addon`]:{borderColor:et.addonBorderColor,color:et.addonColor}}}),genOutlinedGroupStyle=_e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${_e.componentCls}-group`]:{"&-addon":{background:_e.addonBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},genOutlinedGroupStatusStyle(_e,{status:"error",addonBorderColor:_e.colorError,addonColor:_e.colorErrorText})),genOutlinedGroupStatusStyle(_e,{status:"warning",addonBorderColor:_e.colorWarning,addonColor:_e.colorWarningText})),{[`&${_e.componentCls}-group-wrapper-disabled`]:{[`${_e.componentCls}-group-addon`]:Object.assign({},genDisabledStyle(_e))}})}),genBorderlessStyle$1=(_e,et)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${_e.componentCls}-disabled, &[disabled]`]:{color:_e.colorTextDisabled}},et)}),genBaseFilledStyle=(_e,et)=>({background:et.bg,borderWidth:_e.lineWidth,borderStyle:_e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:et==null?void 0:et.inputColor},"&:hover":{background:et.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:et.activeBorderColor,backgroundColor:_e.activeBg}}),genFilledStatusStyle=(_e,et)=>({[`&${_e.componentCls}-status-${et.status}:not(${_e.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseFilledStyle(_e,et)),{[`${_e.componentCls}-prefix, ${_e.componentCls}-suffix`]:{color:et.affixColor}})}),genFilledStyle=(_e,et)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle(_e,{bg:_e.colorFillTertiary,hoverBg:_e.colorFillSecondary,activeBorderColor:_e.colorPrimary})),{[`&${_e.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(_e))}),genFilledStatusStyle(_e,{status:"error",bg:_e.colorErrorBg,hoverBg:_e.colorErrorBgHover,activeBorderColor:_e.colorError,inputColor:_e.colorErrorText,affixColor:_e.colorError})),genFilledStatusStyle(_e,{status:"warning",bg:_e.colorWarningBg,hoverBg:_e.colorWarningBgHover,activeBorderColor:_e.colorWarning,inputColor:_e.colorWarningText,affixColor:_e.colorWarning})),et)}),genFilledGroupStatusStyle=(_e,et)=>({[`&${_e.componentCls}-group-wrapper-status-${et.status}`]:{[`${_e.componentCls}-group-addon`]:{background:et.addonBg,color:et.addonColor}}}),genFilledGroupStyle=_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}}}},genFilledGroupStatusStyle(_e,{status:"error",addonBg:_e.colorErrorBg,addonColor:_e.colorErrorText})),genFilledGroupStatusStyle(_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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderTop:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderTop:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`}}}})}),genPlaceholderStyle=_e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:_e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),genInputLargeStyle=_e=>{const{paddingBlockLG:et,lineHeightLG:rt,borderRadiusLG:st,paddingInlineLG:ct}=_e;return{padding:`${unit$1(et)} ${unit$1(ct)}`,fontSize:_e.inputFontSizeLG,lineHeight:rt,borderRadius:st}},genInputSmallStyle=_e=>({padding:`${unit$1(_e.paddingBlockSM)} ${unit$1(_e.paddingInlineSM)}`,fontSize:_e.inputFontSizeSM,borderRadius:_e.borderRadiusSM}),genBasicInputStyle=_e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit$1(_e.paddingBlock)} ${unit$1(_e.paddingInline)}`,color:_e.colorText,fontSize:_e.inputFontSize,lineHeight:_e.lineHeight,borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationMid}`},genPlaceholderStyle(_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({},genInputLargeStyle(_e)),"&-sm":Object.assign({},genInputSmallStyle(_e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),genInputGroupStyle=_e=>{const{componentCls:et,antCls:rt}=_e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:_e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${et}, &-lg > ${et}-group-addon`]:Object.assign({},genInputLargeStyle(_e)),[`&-sm ${et}, &-sm > ${et}-group-addon`]:Object.assign({},genInputSmallStyle(_e)),[`&-lg ${rt}-select-single ${rt}-select-selector`]:{height:_e.controlHeightLG},[`&-sm ${rt}-select-single ${rt}-select-selector`]:{height:_e.controlHeightSM},[`> ${et}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${et}-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 ${unit$1(_e.paddingInline)}`,color:_e.colorText,fontWeight:"normal",fontSize:_e.inputFontSize,textAlign:"center",borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationSlow}`,lineHeight:1,[`${rt}-select`]:{margin:`${unit$1(_e.calc(_e.paddingBlock).add(1).mul(-1).equal())} ${unit$1(_e.calc(_e.paddingInline).mul(-1).equal())}`,[`&${rt}-select-single:not(${rt}-select-customize-input):not(${rt}-pagination-size-changer)`]:{[`${rt}-select-selector`]:{backgroundColor:"inherit",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${rt}-select-selector`]:{color:_e.colorPrimary}}},[`${rt}-cascader-picker`]:{margin:`-9px ${unit$1(_e.calc(_e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${rt}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${et}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${et}-search-with-button &`]:{zIndex:0}}},[`> ${et}:first-child, ${et}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${rt}-select ${rt}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${et}-affix-wrapper`]:{[`&:not(:first-child) ${et}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${et}:last-child, ${et}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${rt}-select ${rt}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${et}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${et}-search &`]:{borderStartStartRadius:_e.borderRadius,borderEndStartRadius:_e.borderRadius}},[`&:not(:first-child), ${et}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${et}-group-compact`]:Object.assign(Object.assign({display:"block"},clearFix()),{[`${et}-group-addon, ${et}-group-wrap, > ${et}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:_e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${et}-affix-wrapper, & > ${et}-number-affix-wrapper, & > ${rt}-picker-range @@ -282,18 +282,18 @@ html body { & > ${rt}-cascader-picker:last-child ${et}, & > ${rt}-cascader-picker-focused:last-child ${et}`]:{borderInlineEndWidth:_e.lineWidth,borderStartEndRadius:_e.borderRadius,borderEndEndRadius:_e.borderRadius},[`& > ${rt}-select-auto-complete ${et}`]:{verticalAlign:"top"},[`${et}-group-wrapper + ${et}-group-wrapper`]:{marginInlineStart:_e.calc(_e.lineWidth).mul(-1).equal(),[`${et}-affix-wrapper`]:{borderRadius:0}},[`${et}-group-wrapper:not(:last-child)`]:{[`&${et}-search > ${et}-group`]:{[`& > ${et}-group-addon > ${et}-search-button`]:{borderRadius:0},[`& > ${et}`]:{borderStartStartRadius:_e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_e.borderRadius}}}})}},genInputStyle$1=_e=>{const{componentCls:et,controlHeightSM:rt,lineWidth:st,calc:ct}=_e,ft=ct(rt).sub(ct(st).mul(2)).sub(16).div(2).equal();return{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genBasicInputStyle(_e)),genOutlinedStyle(_e)),genFilledStyle(_e)),genBorderlessStyle$1(_e)),{'&[type="color"]':{height:_e.controlHeight,[`&${et}-lg`]:{height:_e.controlHeightLG},[`&${et}-sm`]:{height:rt,paddingTop:ft,paddingBottom:ft}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},genAllowClearStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-clear-icon`]:{margin:0,color:_e.colorTextQuaternary,fontSize:_e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${_e.motionDurationSlow}`,"&:hover":{color:_e.colorTextTertiary},"&:active":{color:_e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit$1(_e.inputAffixPadding)}`}}}},genAffixStyle=_e=>{const{componentCls:et,inputAffixPadding:rt,colorTextDescription:st,motionDurationSlow:ct,colorIcon:ut,colorIconHover:ft,iconCls:gt}=_e;return{[`${et}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},genBasicInputStyle(_e)),{display:"inline-flex",[`&:not(${et}-disabled):hover`]:{zIndex:1,[`${et}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${et}`]:{padding:0,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"'},[`${et}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:_e.paddingXS}},"&-show-count-suffix":{color:st},"&-show-count-has-suffix":{marginInlineEnd:_e.paddingXXS},"&-prefix":{marginInlineEnd:rt},"&-suffix":{marginInlineStart:rt}}}),genAllowClearStyle(_e)),{[`${gt}${et}-password-icon`]:{color:ut,cursor:"pointer",transition:`all ${ct}`,"&:hover":{color:ft}}})}},genGroupStyle=_e=>{const{componentCls:et,borderRadiusLG:rt,borderRadiusSM:st}=_e;return{[`${et}-group`]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genInputGroupStyle(_e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${et}-group-addon`]:{borderRadius:rt,fontSize:_e.inputFontSizeLG}},"&-sm":{[`${et}-group-addon`]:{borderRadius:st}}},genOutlinedGroupStyle(_e)),genFilledGroupStyle(_e)),{[`&:not(${et}-compact-first-item):not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}, ${et}-group-addon`]:{borderRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-first-item`]:{[`${et}, ${et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${et}-compact-first-item)${et}-compact-last-item`]:{[`${et}, ${et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},genSearchInputStyle=_e=>{const{componentCls:et,antCls:rt}=_e,st=`${et}-search`;return{[st]:{[`${et}`]:{"&:hover, &:focus":{borderColor:_e.colorPrimaryHover,[`+ ${et}-group-addon ${st}-button:not(${rt}-btn-primary)`]:{borderInlineStartColor:_e.colorPrimaryHover}}},[`${et}-affix-wrapper`]:{borderRadius:0},[`${et}-lg`]:{lineHeight:_e.calc(_e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${et}-group`]:{[`> ${et}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${st}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:_e.borderRadius,borderEndEndRadius:_e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${st}-button:not(${rt}-btn-primary)`]:{color:_e.colorTextDescription,"&:hover":{color:_e.colorPrimaryHover},"&:active":{color:_e.colorPrimaryActive},[`&${rt}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${st}-button`]:{height:_e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${st}-button`]:{height:_e.controlHeightLG},[`&-small ${st}-button`]:{height:_e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${et}-compact-item`]:{[`&:not(${et}-compact-last-item)`]:{[`${et}-group-addon`]:{[`${et}-search-button`]:{marginInlineEnd:_e.calc(_e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${et}-compact-first-item)`]:{[`${et},${et}-affix-wrapper`]:{borderRadius:0}},[`> ${et}-group-addon ${et}-search-button, > ${et}, - ${et}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${et}-affix-wrapper-focused`]:{zIndex:2}}}}},genTextAreaStyle=_e=>{const{componentCls:et,paddingLG:rt}=_e,st=`${et}-textarea`;return{[st]:{position:"relative","&-show-count":{[`> ${et}`]:{height:"100%"},[`${et}-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":{[`> ${et}`]:{paddingInlineEnd:rt}},[`&-affix-wrapper${st}-has-feedback`]:{[`${et}`]:{paddingInlineEnd:rt}},[`&-affix-wrapper${et}-affix-wrapper`]:{padding:0,[`> textarea${et}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${et}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${et}-clear-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,insetBlockStart:_e.paddingXS},[`${st}-suffix`]:{position:"absolute",top:0,insetInlineEnd:_e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},genRangeStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-out-of-range`]:{[`&, & input, & textarea, ${et}-show-count-suffix, ${et}-data-count`]:{color:_e.colorError}}}},useStyle$H=genStyleHooks("Input",_e=>{const et=merge$7(_e,initInputToken(_e));return[genInputStyle$1(et),genTextAreaStyle(et),genAffixStyle(et),genGroupStyle(et),genSearchInputStyle(et),genRangeStyle(et),genCompactItemStyle(et)]},initComponentToken$1),genSize=(_e,et)=>{const{componentCls:rt,selectHeight:st,fontHeight:ct,lineWidth:ut,calc:ft}=_e,gt=et?`${rt}-${et}`:"",xt=_e.calc(ct).add(2).equal(),$t=()=>ft(st).sub(xt).sub(ft(ut).mul(2)),_t=_e.max($t().div(2).equal(),0),wt=_e.max($t().sub(_t).equal(),0);return[genSelectionStyle(_e,et),{[`${rt}-multiple${gt}`]:{paddingTop:_t,paddingBottom:wt,paddingInlineStart:_t}}]},genPickerMultipleStyle=_e=>{const{componentCls:et,calc:rt,lineWidth:st}=_e,ct=merge$7(_e,{fontHeight:_e.fontSize,selectHeight:_e.controlHeightSM,multipleSelectItemHeight:_e.controlHeightXS,borderRadius:_e.borderRadiusSM,borderRadiusSM:_e.borderRadiusXS}),ut=merge$7(_e,{fontHeight:rt(_e.multipleItemHeightLG).sub(rt(st).mul(2).equal()).equal(),fontSize:_e.fontSizeLG,selectHeight:_e.controlHeightLG,multipleSelectItemHeight:_e.multipleItemHeightLG,borderRadius:_e.borderRadiusLG,borderRadiusSM:_e.borderRadius});return[genSize(ct,"small"),genSize(_e),genSize(ut,"large"),genSelectionStyle(_e),{[`${et}${et}-multiple`]:{width:"100%",[`${et}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}},[`${et}-selection-item`]:{marginBlock:0},[`${et}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},genPickerCellInnerStyle=_e=>{const{pickerCellCls:et,pickerCellInnerCls:rt,cellHeight:st,borderRadiusSM:ct,motionDurationMid:ut,cellHoverBg:ft,lineWidth:gt,lineType:xt,colorPrimary:$t,cellActiveWithRangeBg:_t,colorTextLightSolid:wt,colorTextDisabled:Tt,cellBgDisabled:Rt,colorFillSecondary:It}=_e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:st,transform:"translateY(-50%)",content:'""'},[rt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:st,height:st,lineHeight:unit$1(st),borderRadius:ct,transition:`background ${ut}`},[`&:hover:not(${et}-in-view), + ${et}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${et}-affix-wrapper-focused`]:{zIndex:2}}}}},genTextAreaStyle=_e=>{const{componentCls:et,paddingLG:rt}=_e,st=`${et}-textarea`;return{[st]:{position:"relative","&-show-count":{[`> ${et}`]:{height:"100%"},[`${et}-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":{[`> ${et}`]:{paddingInlineEnd:rt}},[`&-affix-wrapper${st}-has-feedback`]:{[`${et}`]:{paddingInlineEnd:rt}},[`&-affix-wrapper${et}-affix-wrapper`]:{padding:0,[`> textarea${et}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${et}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${et}-clear-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,insetBlockStart:_e.paddingXS},[`${st}-suffix`]:{position:"absolute",top:0,insetInlineEnd:_e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},genRangeStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-out-of-range`]:{[`&, & input, & textarea, ${et}-show-count-suffix, ${et}-data-count`]:{color:_e.colorError}}}},useStyle$J=genStyleHooks("Input",_e=>{const et=merge$7(_e,initInputToken(_e));return[genInputStyle$1(et),genTextAreaStyle(et),genAffixStyle(et),genGroupStyle(et),genSearchInputStyle(et),genRangeStyle(et),genCompactItemStyle(et)]},initComponentToken$1),genSize=(_e,et)=>{const{componentCls:rt,selectHeight:st,fontHeight:ct,lineWidth:ut,calc:ft}=_e,gt=et?`${rt}-${et}`:"",xt=_e.calc(ct).add(2).equal(),$t=()=>ft(st).sub(xt).sub(ft(ut).mul(2)),_t=_e.max($t().div(2).equal(),0),wt=_e.max($t().sub(_t).equal(),0);return[genSelectionStyle(_e,et),{[`${rt}-multiple${gt}`]:{paddingTop:_t,paddingBottom:wt,paddingInlineStart:_t}}]},genPickerMultipleStyle=_e=>{const{componentCls:et,calc:rt,lineWidth:st}=_e,ct=merge$7(_e,{fontHeight:_e.fontSize,selectHeight:_e.controlHeightSM,multipleSelectItemHeight:_e.controlHeightXS,borderRadius:_e.borderRadiusSM,borderRadiusSM:_e.borderRadiusXS}),ut=merge$7(_e,{fontHeight:rt(_e.multipleItemHeightLG).sub(rt(st).mul(2).equal()).equal(),fontSize:_e.fontSizeLG,selectHeight:_e.controlHeightLG,multipleSelectItemHeight:_e.multipleItemHeightLG,borderRadius:_e.borderRadiusLG,borderRadiusSM:_e.borderRadius});return[genSize(ct,"small"),genSize(_e),genSize(ut,"large"),genSelectionStyle(_e),{[`${et}${et}-multiple`]:{width:"100%",[`${et}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}},[`${et}-selection-item`]:{marginBlock:0},[`${et}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},genPickerCellInnerStyle=_e=>{const{pickerCellCls:et,pickerCellInnerCls:rt,cellHeight:st,borderRadiusSM:ct,motionDurationMid:ut,cellHoverBg:ft,lineWidth:gt,lineType:xt,colorPrimary:$t,cellActiveWithRangeBg:_t,colorTextLightSolid:wt,colorTextDisabled:Tt,cellBgDisabled:Rt,colorFillSecondary:It}=_e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:st,transform:"translateY(-50%)",content:'""'},[rt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:st,height:st,lineHeight:unit$1(st),borderRadius:ct,transition:`background ${ut}`},[`&:hover:not(${et}-in-view), &:hover:not(${et}-selected):not(${et}-range-start):not(${et}-range-end)`]:{[rt]:{background:ft}},[`&-in-view${et}-today ${rt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${unit$1(gt)} ${xt} ${$t}`,borderRadius:ct,content:'""'}},[`&-in-view${et}-in-range, &-in-view${et}-range-start, &-in-view${et}-range-end`]:{position:"relative",[`&:not(${et}-disabled):before`]:{background:_t}},[`&-in-view${et}-selected, &-in-view${et}-range-start, - &-in-view${et}-range-end`]:{[`&:not(${et}-disabled) ${rt}`]:{color:wt,background:$t},[`&${et}-disabled ${rt}`]:{background:It}},[`&-in-view${et}-range-start:not(${et}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${et}-range-end:not(${et}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${et}-range-start:not(${et}-range-end) ${rt}`]:{borderStartStartRadius:ct,borderEndStartRadius:ct,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${et}-range-end:not(${et}-range-start) ${rt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ct,borderEndEndRadius:ct},"&-disabled":{color:Tt,pointerEvents:"none",[rt]:{background:"transparent"},"&::before":{background:Rt}},[`&-disabled${et}-today ${rt}::before`]:{borderColor:Tt}}},genPanelStyle$1=_e=>{const{componentCls:et,pickerCellCls:rt,pickerCellInnerCls:st,pickerYearMonthCellWidth:ct,pickerControlIconSize:ut,cellWidth:ft,paddingSM:gt,paddingXS:xt,paddingXXS:$t,colorBgContainer:_t,lineWidth:wt,lineType:Tt,borderRadiusLG:Rt,colorPrimary:It,colorTextHeading:At,colorSplit:jt,pickerControlIconBorderWidth:Nt,colorIcon:kt,textHeight:Ft,motionDurationMid:Ht,colorIconHover:Wt,fontWeightStrong:Vt,cellHeight:qt,pickerCellPaddingVertical:Gt,colorTextDisabled:Xt,colorText:Zt,fontSize:lr,motionDurationSlow:er,withoutTimeCellHeight:cr,pickerQuarterPanelContentHeight:ur,borderRadiusSM:pr,colorTextLightSolid:hr,cellHoverBg:fr,timeColumnHeight:dr,timeColumnWidth:yr,timeCellHeight:$r,controlItemBgActive:Er,marginXXS:mr,pickerDatePanelPaddingHorizontal:Sr,pickerControlIconMargin:Tr}=_e,jr=_e.calc(ft).mul(7).add(_e.calc(Sr).mul(2)).equal();return{[et]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:_t,borderRadius:Rt,outline:"none","&-focused":{borderColor:It},"&-rtl":{direction:"rtl",[`${et}-prev-icon, + &-in-view${et}-range-end`]:{[`&:not(${et}-disabled) ${rt}`]:{color:wt,background:$t},[`&${et}-disabled ${rt}`]:{background:It}},[`&-in-view${et}-range-start:not(${et}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${et}-range-end:not(${et}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${et}-range-start:not(${et}-range-end) ${rt}`]:{borderStartStartRadius:ct,borderEndStartRadius:ct,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${et}-range-end:not(${et}-range-start) ${rt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ct,borderEndEndRadius:ct},"&-disabled":{color:Tt,pointerEvents:"none",[rt]:{background:"transparent"},"&::before":{background:Rt}},[`&-disabled${et}-today ${rt}::before`]:{borderColor:Tt}}},genPanelStyle$1=_e=>{const{componentCls:et,pickerCellCls:rt,pickerCellInnerCls:st,pickerYearMonthCellWidth:ct,pickerControlIconSize:ut,cellWidth:ft,paddingSM:gt,paddingXS:xt,paddingXXS:$t,colorBgContainer:_t,lineWidth:wt,lineType:Tt,borderRadiusLG:Rt,colorPrimary:It,colorTextHeading:At,colorSplit:jt,pickerControlIconBorderWidth:Nt,colorIcon:kt,textHeight:Ft,motionDurationMid:Ht,colorIconHover:Wt,fontWeightStrong:Vt,cellHeight:qt,pickerCellPaddingVertical:Xt,colorTextDisabled:Gt,colorText:Zt,fontSize:er,motionDurationSlow:lr,withoutTimeCellHeight:cr,pickerQuarterPanelContentHeight:ur,borderRadiusSM:fr,colorTextLightSolid:hr,cellHoverBg:pr,timeColumnHeight:dr,timeColumnWidth:yr,timeCellHeight:Sr,controlItemBgActive:br,marginXXS:mr,pickerDatePanelPaddingHorizontal:Er,pickerControlIconMargin:Tr}=_e,Mr=_e.calc(ft).mul(7).add(_e.calc(Er).mul(2)).equal();return{[et]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:_t,borderRadius:Rt,outline:"none","&-focused":{borderColor:It},"&-rtl":{direction:"rtl",[`${et}-prev-icon, ${et}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${et}-next-icon, - ${et}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-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:jr},"&-header":{display:"flex",padding:`0 ${unit$1(xt)}`,color:At,borderBottom:`${unit$1(wt)} ${Tt} ${jt}`,"> *":{flex:"none"},button:{padding:0,color:kt,lineHeight:unit$1(Ft),background:"transparent",border:0,cursor:"pointer",transition:`color ${Ht}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:lr,"&:hover":{color:Wt},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:Vt,lineHeight:unit$1(Ft),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:xt},"&:hover":{color:It}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:ut,height:ut,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Nt,borderBlockEndWidth:0,borderInlineStartWidth:Nt,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Tr,insetInlineStart:Tr,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Nt,borderBlockEndWidth:0,borderInlineStartWidth:Nt,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:qt,fontWeight:"normal"},th:{height:_e.calc(qt).add(_e.calc(Gt).mul(2)).equal(),color:Zt,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${unit$1(Gt)} 0`,color:Xt,cursor:"pointer","&-in-view":{color:Zt}},genPickerCellInnerStyle(_e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${et}-content`]:{height:_e.calc(cr).mul(4).equal()},[st]:{padding:`0 ${unit$1(xt)}`}},"&-quarter-panel":{[`${et}-content`]:{height:ur}},"&-decade-panel":{[st]:{padding:`0 ${unit$1(_e.calc(xt).div(2).equal())}`},[`${et}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${et}-body`]:{padding:`0 ${unit$1(xt)}`},[st]:{width:ct}},"&-date-panel":{[`${et}-body`]:{padding:`${unit$1(xt)} ${unit$1(Sr)}`},[`${et}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${et}-cell`]:{[`&:hover ${st}, + ${et}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-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:Mr},"&-header":{display:"flex",padding:`0 ${unit$1(xt)}`,color:At,borderBottom:`${unit$1(wt)} ${Tt} ${jt}`,"> *":{flex:"none"},button:{padding:0,color:kt,lineHeight:unit$1(Ft),background:"transparent",border:0,cursor:"pointer",transition:`color ${Ht}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:er,"&:hover":{color:Wt},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:Vt,lineHeight:unit$1(Ft),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:xt},"&:hover":{color:It}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:ut,height:ut,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Nt,borderBlockEndWidth:0,borderInlineStartWidth:Nt,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Tr,insetInlineStart:Tr,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Nt,borderBlockEndWidth:0,borderInlineStartWidth:Nt,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:qt,fontWeight:"normal"},th:{height:_e.calc(qt).add(_e.calc(Xt).mul(2)).equal(),color:Zt,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${unit$1(Xt)} 0`,color:Gt,cursor:"pointer","&-in-view":{color:Zt}},genPickerCellInnerStyle(_e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${et}-content`]:{height:_e.calc(cr).mul(4).equal()},[st]:{padding:`0 ${unit$1(xt)}`}},"&-quarter-panel":{[`${et}-content`]:{height:ur}},"&-decade-panel":{[st]:{padding:`0 ${unit$1(_e.calc(xt).div(2).equal())}`},[`${et}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${et}-body`]:{padding:`0 ${unit$1(xt)}`},[st]:{width:ct}},"&-date-panel":{[`${et}-body`]:{padding:`${unit$1(xt)} ${unit$1(Er)}`},[`${et}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${et}-cell`]:{[`&:hover ${st}, &-selected ${st}, - ${st}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ht}`},"&:first-child:before":{borderStartStartRadius:pr,borderEndStartRadius:pr},"&:last-child:before":{borderStartEndRadius:pr,borderEndEndRadius:pr}},"&:hover td":{"&:before":{background:fr}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${rt}`]:{"&:before":{background:It},[`&${et}-cell-week`]:{color:new TinyColor(hr).setAlpha(.5).toHexString()},[st]:{color:hr}}},"&-range-hover td:before":{background:Er}}},"&-week-panel, &-date-panel-show-week":{[`${et}-body`]:{padding:`${unit$1(xt)} ${unit$1(gt)}`},[`${et}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${et}-time-panel`]:{borderInlineStart:`${unit$1(wt)} ${Tt} ${jt}`},[`${et}-date-panel, - ${et}-time-panel`]:{transition:`opacity ${er}`},"&-active":{[`${et}-date-panel, - ${et}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${et}-content`]:{display:"flex",flex:"auto",height:dr},"&-column":{flex:"1 0 auto",width:yr,margin:`${unit$1($t)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ht}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:_e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${_e.colorTextTertiary} transparent`},"&::after":{display:"block",height:_e.calc(dr).sub($r).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${unit$1(wt)} ${Tt} ${jt}`},"&-active":{background:new TinyColor(Er).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${et}-time-panel-cell`]:{marginInline:mr,[`${et}-time-panel-cell-inner`]:{display:"block",width:_e.calc(yr).sub(_e.calc(mr).mul(2)).equal(),height:$r,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:_e.calc(yr).sub($r).div(2).equal(),color:Zt,lineHeight:unit$1($r),borderRadius:pr,cursor:"pointer",transition:`background ${Ht}`,"&:hover":{background:fr}},"&-selected":{[`${et}-time-panel-cell-inner`]:{background:Er}},"&-disabled":{[`${et}-time-panel-cell-inner`]:{color:Xt,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${et}-time-panel-column:after`]:{height:_e.calc(dr).sub($r).add(_e.calc($t).mul(2)).equal()}}}},genPickerPanelStyle=_e=>{const{componentCls:et,textHeight:rt,lineWidth:st,paddingSM:ct,antCls:ut,colorPrimary:ft,cellActiveWithRangeBg:gt,colorPrimaryBorder:xt,lineType:$t,colorSplit:_t}=_e;return{[`${et}-dropdown`]:{[`${et}-footer`]:{borderTop:`${unit$1(st)} ${$t} ${_t}`,"&-extra":{padding:`0 ${unit$1(ct)}`,lineHeight:unit$1(_e.calc(rt).sub(_e.calc(st).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${unit$1(st)} ${$t} ${_t}`}}},[`${et}-panels + ${et}-footer ${et}-ranges`]:{justifyContent:"space-between"},[`${et}-ranges`]:{marginBlock:0,paddingInline:unit$1(ct),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:unit$1(_e.calc(rt).sub(_e.calc(st).mul(2)).equal()),display:"inline-block"},[`${et}-now-btn-disabled`]:{pointerEvents:"none",color:_e.colorTextDisabled},[`${et}-preset > ${ut}-tag-blue`]:{color:ft,background:gt,borderColor:xt,cursor:"pointer"},[`${et}-ok`]:{paddingBlock:_e.calc(st).mul(2).equal(),marginInlineStart:"auto"}}}}},initPickerPanelToken=_e=>{const{componentCls:et,controlHeightLG:rt,paddingXXS:st,padding:ct}=_e;return{pickerCellCls:`${et}-cell`,pickerCellInnerCls:`${et}-cell-inner`,pickerYearMonthCellWidth:_e.calc(rt).mul(1.5).equal(),pickerQuarterPanelContentHeight:_e.calc(rt).mul(1.4).equal(),pickerCellPaddingVertical:_e.calc(st).add(_e.calc(st).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:_e.calc(ct).add(_e.calc(st).div(2)).equal()}},initPanelComponentToken=_e=>{const{colorBgContainerDisabled:et,controlHeightSM:rt,controlHeightLG:st}=_e;return{cellHoverBg:_e.controlItemBgHover,cellActiveWithRangeBg:_e.controlItemBgActive,cellHoverWithRangeBg:new TinyColor(_e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new TinyColor(_e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:et,timeColumnWidth:st*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:rt*1.5,cellHeight:rt,textHeight:st,withoutTimeCellHeight:st*1.65,multipleItemBg:_e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:rt,multipleItemHeightLG:_e.controlHeight,multipleSelectorBgDisabled:et,multipleItemColorDisabled:_e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},prepareComponentToken$m=_e=>Object.assign(Object.assign(Object.assign(Object.assign({},initComponentToken$1(_e)),initPanelComponentToken(_e)),getArrowToken(_e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:_e.zIndexPopupBase+50}),genVariantsStyle=_e=>{const{componentCls:et}=_e;return{[et]:[Object.assign(Object.assign(Object.assign({},genOutlinedStyle(_e)),genFilledStyle(_e)),genBorderlessStyle$1(_e)),{"&-outlined":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.multipleItemBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}},"&-filled":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.colorBgContainer,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}},"&-borderless":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.multipleItemBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}}}]}},genPickerPadding=(_e,et,rt,st)=>{const ct=_e.calc(rt).add(2).equal(),ut=_e.max(_e.calc(et).sub(ct).div(2).equal(),0),ft=_e.max(_e.calc(et).sub(ct).sub(ut).equal(),0);return{padding:`${unit$1(ut)} ${unit$1(st)} ${unit$1(ft)}`}},genPickerStatusStyle=_e=>{const{componentCls:et,colorError:rt,colorWarning:st}=_e;return{[`${et}:not(${et}-disabled):not([disabled])`]:{[`&${et}-status-error`]:{[`${et}-active-bar`]:{background:rt}},[`&${et}-status-warning`]:{[`${et}-active-bar`]:{background:st}}}}},genPickerStyle$1=_e=>{const{componentCls:et,antCls:rt,controlHeight:st,paddingInline:ct,lineWidth:ut,lineType:ft,colorBorder:gt,borderRadius:xt,motionDurationMid:$t,colorTextDisabled:_t,colorTextPlaceholder:wt,controlHeightLG:Tt,fontSizeLG:Rt,controlHeightSM:It,paddingInlineSM:At,paddingXS:jt,marginXS:Nt,colorTextDescription:kt,lineWidthBold:Ft,colorPrimary:Ht,motionDurationSlow:Wt,zIndexPopup:Vt,paddingXXS:qt,sizePopupArrow:Gt,colorBgElevated:Xt,borderRadiusLG:Zt,boxShadowSecondary:lr,borderRadiusSM:er,colorSplit:cr,cellHoverBg:ur,presetsWidth:pr,presetsMaxWidth:hr,boxShadowPopoverArrow:fr,fontHeight:dr,fontHeightLG:yr,lineHeightLG:$r}=_e;return[{[et]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genPickerPadding(_e,st,dr,ct)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:xt,transition:`border ${$t}, box-shadow ${$t}, background ${$t}`,[`${et}-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 ${$t}`},genPlaceholderStyle(wt)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:_t,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:wt}}},"&-large":Object.assign(Object.assign({},genPickerPadding(_e,Tt,yr,ct)),{[`${et}-input > input`]:{fontSize:Rt,lineHeight:$r}}),"&-small":Object.assign({},genPickerPadding(_e,It,dr,At)),[`${et}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:_e.calc(jt).div(2).equal(),color:_t,lineHeight:1,pointerEvents:"none",transition:`opacity ${$t}, color ${$t}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Nt}}},[`${et}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:_t,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${$t}, color ${$t}`,"> *":{verticalAlign:"top"},"&:hover":{color:kt}},"&:hover":{[`${et}-clear`]:{opacity:1},[`${et}-suffix:not(:last-child)`]:{opacity:0}},[`${et}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Rt,color:_t,fontSize:Rt,verticalAlign:"top",cursor:"default",[`${et}-focused &`]:{color:kt},[`${et}-range-separator &`]:{[`${et}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${et}-active-bar`]:{bottom:_e.calc(ut).mul(-1).equal(),height:Ft,background:Ht,opacity:0,transition:`all ${Wt} ease-out`,pointerEvents:"none"},[`&${et}-focused`]:{[`${et}-active-bar`]:{opacity:1}},[`${et}-range-separator`]:{alignItems:"center",padding:`0 ${unit$1(jt)}`,lineHeight:1}},"&-range, &-multiple":{[`${et}-clear`]:{insetInlineEnd:ct},[`&${et}-small`]:{[`${et}-clear`]:{insetInlineEnd:At}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genPanelStyle$1(_e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Vt,[`&${et}-dropdown-hidden`]:{display:"none"},[`&${et}-dropdown-placement-bottomLeft`]:{[`${et}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${et}-dropdown-placement-topLeft`]:{[`${et}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${et}-dropdown-placement-topLeft, + ${st}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ht}`},"&:first-child:before":{borderStartStartRadius:fr,borderEndStartRadius:fr},"&:last-child:before":{borderStartEndRadius:fr,borderEndEndRadius:fr}},"&:hover td":{"&:before":{background:pr}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${rt}`]:{"&:before":{background:It},[`&${et}-cell-week`]:{color:new TinyColor(hr).setAlpha(.5).toHexString()},[st]:{color:hr}}},"&-range-hover td:before":{background:br}}},"&-week-panel, &-date-panel-show-week":{[`${et}-body`]:{padding:`${unit$1(xt)} ${unit$1(gt)}`},[`${et}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${et}-time-panel`]:{borderInlineStart:`${unit$1(wt)} ${Tt} ${jt}`},[`${et}-date-panel, + ${et}-time-panel`]:{transition:`opacity ${lr}`},"&-active":{[`${et}-date-panel, + ${et}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${et}-content`]:{display:"flex",flex:"auto",height:dr},"&-column":{flex:"1 0 auto",width:yr,margin:`${unit$1($t)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ht}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:_e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${_e.colorTextTertiary} transparent`},"&::after":{display:"block",height:_e.calc(dr).sub(Sr).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${unit$1(wt)} ${Tt} ${jt}`},"&-active":{background:new TinyColor(br).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${et}-time-panel-cell`]:{marginInline:mr,[`${et}-time-panel-cell-inner`]:{display:"block",width:_e.calc(yr).sub(_e.calc(mr).mul(2)).equal(),height:Sr,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:_e.calc(yr).sub(Sr).div(2).equal(),color:Zt,lineHeight:unit$1(Sr),borderRadius:fr,cursor:"pointer",transition:`background ${Ht}`,"&:hover":{background:pr}},"&-selected":{[`${et}-time-panel-cell-inner`]:{background:br}},"&-disabled":{[`${et}-time-panel-cell-inner`]:{color:Gt,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${et}-time-panel-column:after`]:{height:_e.calc(dr).sub(Sr).add(_e.calc($t).mul(2)).equal()}}}},genPickerPanelStyle=_e=>{const{componentCls:et,textHeight:rt,lineWidth:st,paddingSM:ct,antCls:ut,colorPrimary:ft,cellActiveWithRangeBg:gt,colorPrimaryBorder:xt,lineType:$t,colorSplit:_t}=_e;return{[`${et}-dropdown`]:{[`${et}-footer`]:{borderTop:`${unit$1(st)} ${$t} ${_t}`,"&-extra":{padding:`0 ${unit$1(ct)}`,lineHeight:unit$1(_e.calc(rt).sub(_e.calc(st).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${unit$1(st)} ${$t} ${_t}`}}},[`${et}-panels + ${et}-footer ${et}-ranges`]:{justifyContent:"space-between"},[`${et}-ranges`]:{marginBlock:0,paddingInline:unit$1(ct),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:unit$1(_e.calc(rt).sub(_e.calc(st).mul(2)).equal()),display:"inline-block"},[`${et}-now-btn-disabled`]:{pointerEvents:"none",color:_e.colorTextDisabled},[`${et}-preset > ${ut}-tag-blue`]:{color:ft,background:gt,borderColor:xt,cursor:"pointer"},[`${et}-ok`]:{paddingBlock:_e.calc(st).mul(2).equal(),marginInlineStart:"auto"}}}}},initPickerPanelToken=_e=>{const{componentCls:et,controlHeightLG:rt,paddingXXS:st,padding:ct}=_e;return{pickerCellCls:`${et}-cell`,pickerCellInnerCls:`${et}-cell-inner`,pickerYearMonthCellWidth:_e.calc(rt).mul(1.5).equal(),pickerQuarterPanelContentHeight:_e.calc(rt).mul(1.4).equal(),pickerCellPaddingVertical:_e.calc(st).add(_e.calc(st).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:_e.calc(ct).add(_e.calc(st).div(2)).equal()}},initPanelComponentToken=_e=>{const{colorBgContainerDisabled:et,controlHeightSM:rt,controlHeightLG:st}=_e;return{cellHoverBg:_e.controlItemBgHover,cellActiveWithRangeBg:_e.controlItemBgActive,cellHoverWithRangeBg:new TinyColor(_e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new TinyColor(_e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:et,timeColumnWidth:st*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:rt*1.5,cellHeight:rt,textHeight:st,withoutTimeCellHeight:st*1.65,multipleItemBg:_e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:rt,multipleItemHeightLG:_e.controlHeight,multipleSelectorBgDisabled:et,multipleItemColorDisabled:_e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},prepareComponentToken$o=_e=>Object.assign(Object.assign(Object.assign(Object.assign({},initComponentToken$1(_e)),initPanelComponentToken(_e)),getArrowToken(_e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:_e.zIndexPopupBase+50}),genVariantsStyle=_e=>{const{componentCls:et}=_e;return{[et]:[Object.assign(Object.assign(Object.assign({},genOutlinedStyle(_e)),genFilledStyle(_e)),genBorderlessStyle$1(_e)),{"&-outlined":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.multipleItemBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}},"&-filled":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.colorBgContainer,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`}},"&-borderless":{[`&${et}-multiple ${et}-selection-item`]:{background:_e.multipleItemBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.multipleItemBorderColor}`}}}]}},genPickerPadding=(_e,et,rt,st)=>{const ct=_e.calc(rt).add(2).equal(),ut=_e.max(_e.calc(et).sub(ct).div(2).equal(),0),ft=_e.max(_e.calc(et).sub(ct).sub(ut).equal(),0);return{padding:`${unit$1(ut)} ${unit$1(st)} ${unit$1(ft)}`}},genPickerStatusStyle=_e=>{const{componentCls:et,colorError:rt,colorWarning:st}=_e;return{[`${et}:not(${et}-disabled):not([disabled])`]:{[`&${et}-status-error`]:{[`${et}-active-bar`]:{background:rt}},[`&${et}-status-warning`]:{[`${et}-active-bar`]:{background:st}}}}},genPickerStyle$1=_e=>{const{componentCls:et,antCls:rt,controlHeight:st,paddingInline:ct,lineWidth:ut,lineType:ft,colorBorder:gt,borderRadius:xt,motionDurationMid:$t,colorTextDisabled:_t,colorTextPlaceholder:wt,controlHeightLG:Tt,fontSizeLG:Rt,controlHeightSM:It,paddingInlineSM:At,paddingXS:jt,marginXS:Nt,colorTextDescription:kt,lineWidthBold:Ft,colorPrimary:Ht,motionDurationSlow:Wt,zIndexPopup:Vt,paddingXXS:qt,sizePopupArrow:Xt,colorBgElevated:Gt,borderRadiusLG:Zt,boxShadowSecondary:er,borderRadiusSM:lr,colorSplit:cr,cellHoverBg:ur,presetsWidth:fr,presetsMaxWidth:hr,boxShadowPopoverArrow:pr,fontHeight:dr,fontHeightLG:yr,lineHeightLG:Sr}=_e;return[{[et]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genPickerPadding(_e,st,dr,ct)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:xt,transition:`border ${$t}, box-shadow ${$t}, background ${$t}`,[`${et}-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 ${$t}`},genPlaceholderStyle(wt)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:_t,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:wt}}},"&-large":Object.assign(Object.assign({},genPickerPadding(_e,Tt,yr,ct)),{[`${et}-input > input`]:{fontSize:Rt,lineHeight:Sr}}),"&-small":Object.assign({},genPickerPadding(_e,It,dr,At)),[`${et}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:_e.calc(jt).div(2).equal(),color:_t,lineHeight:1,pointerEvents:"none",transition:`opacity ${$t}, color ${$t}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Nt}}},[`${et}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:_t,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${$t}, color ${$t}`,"> *":{verticalAlign:"top"},"&:hover":{color:kt}},"&:hover":{[`${et}-clear`]:{opacity:1},[`${et}-suffix:not(:last-child)`]:{opacity:0}},[`${et}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Rt,color:_t,fontSize:Rt,verticalAlign:"top",cursor:"default",[`${et}-focused &`]:{color:kt},[`${et}-range-separator &`]:{[`${et}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${et}-active-bar`]:{bottom:_e.calc(ut).mul(-1).equal(),height:Ft,background:Ht,opacity:0,transition:`all ${Wt} ease-out`,pointerEvents:"none"},[`&${et}-focused`]:{[`${et}-active-bar`]:{opacity:1}},[`${et}-range-separator`]:{alignItems:"center",padding:`0 ${unit$1(jt)}`,lineHeight:1}},"&-range, &-multiple":{[`${et}-clear`]:{insetInlineEnd:ct},[`&${et}-small`]:{[`${et}-clear`]:{insetInlineEnd:At}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genPanelStyle$1(_e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Vt,[`&${et}-dropdown-hidden`]:{display:"none"},[`&${et}-dropdown-placement-bottomLeft`]:{[`${et}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${et}-dropdown-placement-topLeft`]:{[`${et}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${et}-dropdown-placement-topLeft, &${rt}-slide-up-enter${rt}-slide-up-enter-active${et}-dropdown-placement-topRight, &${rt}-slide-up-appear${rt}-slide-up-appear-active${et}-dropdown-placement-topLeft, &${rt}-slide-up-appear${rt}-slide-up-appear-active${et}-dropdown-placement-topRight`]:{animationName:slideDownIn},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${et}-dropdown-placement-bottomLeft, @@ -301,36 +301,36 @@ html body { &${rt}-slide-up-appear${rt}-slide-up-appear-active${et}-dropdown-placement-bottomLeft, &${rt}-slide-up-appear${rt}-slide-up-appear-active${et}-dropdown-placement-bottomRight`]:{animationName:slideUpIn},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${et}-dropdown-placement-topLeft, &${rt}-slide-up-leave${rt}-slide-up-leave-active${et}-dropdown-placement-topRight`]:{animationName:slideDownOut},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${et}-dropdown-placement-bottomLeft, - &${rt}-slide-up-leave${rt}-slide-up-leave-active${et}-dropdown-placement-bottomRight`]:{animationName:slideUpOut},[`${et}-panel > ${et}-time-panel`]:{paddingTop:qt},[`${et}-range-wrapper`]:{display:"flex",position:"relative"},[`${et}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:_e.calc(ct).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${Wt} ease-out`},genRoundedArrow(_e,Xt,fr)),{"&:before":{insetInlineStart:_e.calc(ct).mul(1.5).equal()}}),[`${et}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Xt,borderRadius:Zt,boxShadow:lr,transition:`margin ${Wt}`,display:"inline-block",pointerEvents:"auto",[`${et}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${et}-presets`]:{display:"flex",flexDirection:"column",minWidth:pr,maxWidth:hr,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:jt,borderInlineEnd:`${unit$1(ut)} ${ft} ${cr}`,li:Object.assign(Object.assign({},textEllipsis),{borderRadius:er,paddingInline:jt,paddingBlock:_e.calc(It).sub(dr).div(2).equal(),cursor:"pointer",transition:`all ${Wt}`,"+ li":{marginTop:Nt},"&:hover":{background:ur}})}},[`${et}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${et}-panel`]:{borderWidth:0}}},[`${et}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${et}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:gt}}}}),"&-dropdown-range":{padding:`${unit$1(_e.calc(Gt).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${et}-separator`]:{transform:"rotate(180deg)"},[`${et}-footer`]:{"&-extra":{direction:"rtl"}}}})},initSlideMotion(_e,"slide-up"),initSlideMotion(_e,"slide-down"),initMoveMotion(_e,"move-up"),initMoveMotion(_e,"move-down")]},useStyle$G=genStyleHooks("DatePicker",_e=>{const et=merge$7(initInputToken(_e),initPickerPanelToken(_e),{inputPaddingHorizontalBase:_e.calc(_e.paddingSM).sub(1).equal(),multipleSelectItemHeight:_e.multipleItemHeight,selectHeight:_e.controlHeight});return[genPickerPanelStyle(et),genPickerStyle$1(et),genVariantsStyle(et),genPickerStatusStyle(et),genPickerMultipleStyle(et),genCompactItemStyle(_e,{focusElCls:`${_e.componentCls}-focused`})]},prepareComponentToken$m),Element$1=_e=>{const{prefixCls:et,className:rt,style:st,size:ct,shape:ut}=_e,ft=classNames({[`${et}-lg`]:ct==="large",[`${et}-sm`]:ct==="small"}),gt=classNames({[`${et}-circle`]:ut==="circle",[`${et}-square`]:ut==="square",[`${et}-round`]:ut==="round"}),xt=reactExports.useMemo(()=>typeof ct=="number"?{width:ct,height:ct,lineHeight:`${ct}px`}:{},[ct]);return reactExports.createElement("span",{className:classNames(et,ft,gt,rt),style:Object.assign(Object.assign({},xt),st)})},Element$2=Element$1,skeletonClsLoading=new Keyframe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),genSkeletonElementCommonSize=_e=>({height:_e,lineHeight:unit$1(_e)}),genSkeletonElementAvatarSize=_e=>Object.assign({width:_e},genSkeletonElementCommonSize(_e)),genSkeletonColor=_e=>({background:_e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:skeletonClsLoading,animationDuration:_e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),genSkeletonElementInputSize=(_e,et)=>Object.assign({width:et(_e).mul(5).equal(),minWidth:et(_e).mul(5).equal()},genSkeletonElementCommonSize(_e)),genSkeletonElementAvatar=_e=>{const{skeletonAvatarCls:et,gradientFromColor:rt,controlHeight:st,controlHeightLG:ct,controlHeightSM:ut}=_e;return{[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:rt},genSkeletonElementAvatarSize(st)),[`${et}${et}-circle`]:{borderRadius:"50%"},[`${et}${et}-lg`]:Object.assign({},genSkeletonElementAvatarSize(ct)),[`${et}${et}-sm`]:Object.assign({},genSkeletonElementAvatarSize(ut))}},genSkeletonElementInput=_e=>{const{controlHeight:et,borderRadiusSM:rt,skeletonInputCls:st,controlHeightLG:ct,controlHeightSM:ut,gradientFromColor:ft,calc:gt}=_e;return{[`${st}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ft,borderRadius:rt},genSkeletonElementInputSize(et,gt)),[`${st}-lg`]:Object.assign({},genSkeletonElementInputSize(ct,gt)),[`${st}-sm`]:Object.assign({},genSkeletonElementInputSize(ut,gt))}},genSkeletonElementImageSize=_e=>Object.assign({width:_e},genSkeletonElementCommonSize(_e)),genSkeletonElementImage=_e=>{const{skeletonImageCls:et,imageSizeBase:rt,gradientFromColor:st,borderRadiusSM:ct,calc:ut}=_e;return{[`${et}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:st,borderRadius:ct},genSkeletonElementImageSize(ut(rt).mul(2).equal())),{[`${et}-path`]:{fill:"#bfbfbf"},[`${et}-svg`]:Object.assign(Object.assign({},genSkeletonElementImageSize(rt)),{maxWidth:ut(rt).mul(4).equal(),maxHeight:ut(rt).mul(4).equal()}),[`${et}-svg${et}-svg-circle`]:{borderRadius:"50%"}}),[`${et}${et}-circle`]:{borderRadius:"50%"}}},genSkeletonElementButtonShape=(_e,et,rt)=>{const{skeletonButtonCls:st}=_e;return{[`${rt}${st}-circle`]:{width:et,minWidth:et,borderRadius:"50%"},[`${rt}${st}-round`]:{borderRadius:et}}},genSkeletonElementButtonSize=(_e,et)=>Object.assign({width:et(_e).mul(2).equal(),minWidth:et(_e).mul(2).equal()},genSkeletonElementCommonSize(_e)),genSkeletonElementButton=_e=>{const{borderRadiusSM:et,skeletonButtonCls:rt,controlHeight:st,controlHeightLG:ct,controlHeightSM:ut,gradientFromColor:ft,calc:gt}=_e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ft,borderRadius:et,width:gt(st).mul(2).equal(),minWidth:gt(st).mul(2).equal()},genSkeletonElementButtonSize(st,gt))},genSkeletonElementButtonShape(_e,st,rt)),{[`${rt}-lg`]:Object.assign({},genSkeletonElementButtonSize(ct,gt))}),genSkeletonElementButtonShape(_e,ct,`${rt}-lg`)),{[`${rt}-sm`]:Object.assign({},genSkeletonElementButtonSize(ut,gt))}),genSkeletonElementButtonShape(_e,ut,`${rt}-sm`))},genBaseStyle$9=_e=>{const{componentCls:et,skeletonAvatarCls:rt,skeletonTitleCls:st,skeletonParagraphCls:ct,skeletonButtonCls:ut,skeletonInputCls:ft,skeletonImageCls:gt,controlHeight:xt,controlHeightLG:$t,controlHeightSM:_t,gradientFromColor:wt,padding:Tt,marginSM:Rt,borderRadius:It,titleHeight:At,blockRadius:jt,paragraphLiHeight:Nt,controlHeightXS:kt,paragraphMarginTop:Ft}=_e;return{[`${et}`]:{display:"table",width:"100%",[`${et}-header`]:{display:"table-cell",paddingInlineEnd:Tt,verticalAlign:"top",[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt},genSkeletonElementAvatarSize(xt)),[`${rt}-circle`]:{borderRadius:"50%"},[`${rt}-lg`]:Object.assign({},genSkeletonElementAvatarSize($t)),[`${rt}-sm`]:Object.assign({},genSkeletonElementAvatarSize(_t))},[`${et}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${st}`]:{width:"100%",height:At,background:wt,borderRadius:jt,[`+ ${ct}`]:{marginBlockStart:_t}},[`${ct}`]:{padding:0,"> li":{width:"100%",height:Nt,listStyle:"none",background:wt,borderRadius:jt,"+ li":{marginBlockStart:kt}}},[`${ct}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${et}-content`]:{[`${st}, ${ct} > li`]:{borderRadius:It}}},[`${et}-with-avatar ${et}-content`]:{[`${st}`]:{marginBlockStart:Rt,[`+ ${ct}`]:{marginBlockStart:Ft}}},[`${et}${et}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},genSkeletonElementButton(_e)),genSkeletonElementAvatar(_e)),genSkeletonElementInput(_e)),genSkeletonElementImage(_e)),[`${et}${et}-block`]:{width:"100%",[`${ut}`]:{width:"100%"},[`${ft}`]:{width:"100%"}},[`${et}${et}-active`]:{[` + &${rt}-slide-up-leave${rt}-slide-up-leave-active${et}-dropdown-placement-bottomRight`]:{animationName:slideUpOut},[`${et}-panel > ${et}-time-panel`]:{paddingTop:qt},[`${et}-range-wrapper`]:{display:"flex",position:"relative"},[`${et}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:_e.calc(ct).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${Wt} ease-out`},genRoundedArrow(_e,Gt,pr)),{"&:before":{insetInlineStart:_e.calc(ct).mul(1.5).equal()}}),[`${et}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Gt,borderRadius:Zt,boxShadow:er,transition:`margin ${Wt}`,display:"inline-block",pointerEvents:"auto",[`${et}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${et}-presets`]:{display:"flex",flexDirection:"column",minWidth:fr,maxWidth:hr,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:jt,borderInlineEnd:`${unit$1(ut)} ${ft} ${cr}`,li:Object.assign(Object.assign({},textEllipsis),{borderRadius:lr,paddingInline:jt,paddingBlock:_e.calc(It).sub(dr).div(2).equal(),cursor:"pointer",transition:`all ${Wt}`,"+ li":{marginTop:Nt},"&:hover":{background:ur}})}},[`${et}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${et}-panel`]:{borderWidth:0}}},[`${et}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${et}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:gt}}}}),"&-dropdown-range":{padding:`${unit$1(_e.calc(Xt).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${et}-separator`]:{transform:"rotate(180deg)"},[`${et}-footer`]:{"&-extra":{direction:"rtl"}}}})},initSlideMotion(_e,"slide-up"),initSlideMotion(_e,"slide-down"),initMoveMotion(_e,"move-up"),initMoveMotion(_e,"move-down")]},useStyle$I=genStyleHooks("DatePicker",_e=>{const et=merge$7(initInputToken(_e),initPickerPanelToken(_e),{inputPaddingHorizontalBase:_e.calc(_e.paddingSM).sub(1).equal(),multipleSelectItemHeight:_e.multipleItemHeight,selectHeight:_e.controlHeight});return[genPickerPanelStyle(et),genPickerStyle$1(et),genVariantsStyle(et),genPickerStatusStyle(et),genPickerMultipleStyle(et),genCompactItemStyle(_e,{focusElCls:`${_e.componentCls}-focused`})]},prepareComponentToken$o),Element$1=_e=>{const{prefixCls:et,className:rt,style:st,size:ct,shape:ut}=_e,ft=classNames({[`${et}-lg`]:ct==="large",[`${et}-sm`]:ct==="small"}),gt=classNames({[`${et}-circle`]:ut==="circle",[`${et}-square`]:ut==="square",[`${et}-round`]:ut==="round"}),xt=reactExports.useMemo(()=>typeof ct=="number"?{width:ct,height:ct,lineHeight:`${ct}px`}:{},[ct]);return reactExports.createElement("span",{className:classNames(et,ft,gt,rt),style:Object.assign(Object.assign({},xt),st)})},Element$2=Element$1,skeletonClsLoading=new Keyframe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),genSkeletonElementCommonSize=_e=>({height:_e,lineHeight:unit$1(_e)}),genSkeletonElementAvatarSize=_e=>Object.assign({width:_e},genSkeletonElementCommonSize(_e)),genSkeletonColor=_e=>({background:_e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:skeletonClsLoading,animationDuration:_e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),genSkeletonElementInputSize=(_e,et)=>Object.assign({width:et(_e).mul(5).equal(),minWidth:et(_e).mul(5).equal()},genSkeletonElementCommonSize(_e)),genSkeletonElementAvatar=_e=>{const{skeletonAvatarCls:et,gradientFromColor:rt,controlHeight:st,controlHeightLG:ct,controlHeightSM:ut}=_e;return{[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:rt},genSkeletonElementAvatarSize(st)),[`${et}${et}-circle`]:{borderRadius:"50%"},[`${et}${et}-lg`]:Object.assign({},genSkeletonElementAvatarSize(ct)),[`${et}${et}-sm`]:Object.assign({},genSkeletonElementAvatarSize(ut))}},genSkeletonElementInput=_e=>{const{controlHeight:et,borderRadiusSM:rt,skeletonInputCls:st,controlHeightLG:ct,controlHeightSM:ut,gradientFromColor:ft,calc:gt}=_e;return{[`${st}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ft,borderRadius:rt},genSkeletonElementInputSize(et,gt)),[`${st}-lg`]:Object.assign({},genSkeletonElementInputSize(ct,gt)),[`${st}-sm`]:Object.assign({},genSkeletonElementInputSize(ut,gt))}},genSkeletonElementImageSize=_e=>Object.assign({width:_e},genSkeletonElementCommonSize(_e)),genSkeletonElementImage=_e=>{const{skeletonImageCls:et,imageSizeBase:rt,gradientFromColor:st,borderRadiusSM:ct,calc:ut}=_e;return{[`${et}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:st,borderRadius:ct},genSkeletonElementImageSize(ut(rt).mul(2).equal())),{[`${et}-path`]:{fill:"#bfbfbf"},[`${et}-svg`]:Object.assign(Object.assign({},genSkeletonElementImageSize(rt)),{maxWidth:ut(rt).mul(4).equal(),maxHeight:ut(rt).mul(4).equal()}),[`${et}-svg${et}-svg-circle`]:{borderRadius:"50%"}}),[`${et}${et}-circle`]:{borderRadius:"50%"}}},genSkeletonElementButtonShape=(_e,et,rt)=>{const{skeletonButtonCls:st}=_e;return{[`${rt}${st}-circle`]:{width:et,minWidth:et,borderRadius:"50%"},[`${rt}${st}-round`]:{borderRadius:et}}},genSkeletonElementButtonSize=(_e,et)=>Object.assign({width:et(_e).mul(2).equal(),minWidth:et(_e).mul(2).equal()},genSkeletonElementCommonSize(_e)),genSkeletonElementButton=_e=>{const{borderRadiusSM:et,skeletonButtonCls:rt,controlHeight:st,controlHeightLG:ct,controlHeightSM:ut,gradientFromColor:ft,calc:gt}=_e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ft,borderRadius:et,width:gt(st).mul(2).equal(),minWidth:gt(st).mul(2).equal()},genSkeletonElementButtonSize(st,gt))},genSkeletonElementButtonShape(_e,st,rt)),{[`${rt}-lg`]:Object.assign({},genSkeletonElementButtonSize(ct,gt))}),genSkeletonElementButtonShape(_e,ct,`${rt}-lg`)),{[`${rt}-sm`]:Object.assign({},genSkeletonElementButtonSize(ut,gt))}),genSkeletonElementButtonShape(_e,ut,`${rt}-sm`))},genBaseStyle$a=_e=>{const{componentCls:et,skeletonAvatarCls:rt,skeletonTitleCls:st,skeletonParagraphCls:ct,skeletonButtonCls:ut,skeletonInputCls:ft,skeletonImageCls:gt,controlHeight:xt,controlHeightLG:$t,controlHeightSM:_t,gradientFromColor:wt,padding:Tt,marginSM:Rt,borderRadius:It,titleHeight:At,blockRadius:jt,paragraphLiHeight:Nt,controlHeightXS:kt,paragraphMarginTop:Ft}=_e;return{[`${et}`]:{display:"table",width:"100%",[`${et}-header`]:{display:"table-cell",paddingInlineEnd:Tt,verticalAlign:"top",[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt},genSkeletonElementAvatarSize(xt)),[`${rt}-circle`]:{borderRadius:"50%"},[`${rt}-lg`]:Object.assign({},genSkeletonElementAvatarSize($t)),[`${rt}-sm`]:Object.assign({},genSkeletonElementAvatarSize(_t))},[`${et}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${st}`]:{width:"100%",height:At,background:wt,borderRadius:jt,[`+ ${ct}`]:{marginBlockStart:_t}},[`${ct}`]:{padding:0,"> li":{width:"100%",height:Nt,listStyle:"none",background:wt,borderRadius:jt,"+ li":{marginBlockStart:kt}}},[`${ct}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${et}-content`]:{[`${st}, ${ct} > li`]:{borderRadius:It}}},[`${et}-with-avatar ${et}-content`]:{[`${st}`]:{marginBlockStart:Rt,[`+ ${ct}`]:{marginBlockStart:Ft}}},[`${et}${et}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},genSkeletonElementButton(_e)),genSkeletonElementAvatar(_e)),genSkeletonElementInput(_e)),genSkeletonElementImage(_e)),[`${et}${et}-block`]:{width:"100%",[`${ut}`]:{width:"100%"},[`${ft}`]:{width:"100%"}},[`${et}${et}-active`]:{[` ${st}, ${ct} > li, ${rt}, ${ut}, ${ft}, ${gt} - `]:Object.assign({},genSkeletonColor(_e))}}},prepareComponentToken$l=_e=>{const{colorFillContent:et,colorFill:rt}=_e,st=et,ct=rt;return{color:st,colorGradientEnd:ct,gradientFromColor:st,gradientToColor:ct,titleHeight:_e.controlHeight/2,blockRadius:_e.borderRadiusSM,paragraphMarginTop:_e.marginLG+_e.marginXXS,paragraphLiHeight:_e.controlHeight/2}},useStyle$F=genStyleHooks("Skeleton",_e=>{const{componentCls:et,calc:rt}=_e,st=merge$7(_e,{skeletonAvatarCls:`${et}-avatar`,skeletonTitleCls:`${et}-title`,skeletonParagraphCls:`${et}-paragraph`,skeletonButtonCls:`${et}-button`,skeletonInputCls:`${et}-input`,skeletonImageCls:`${et}-image`,imageSizeBase:rt(_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[genBaseStyle$9(st)]},prepareComponentToken$l,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SkeletonAvatar=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,shape:ut="circle",size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$F(xt),Tt=omit$2(_e,["prefixCls","className"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-avatar`,shape:ut,size:ft},Tt))))},SkeletonAvatar$1=SkeletonAvatar,SkeletonButton=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,block:ut=!1,size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$F(xt),Tt=omit$2(_e,["prefixCls"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct,[`${xt}-block`]:ut},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-button`,size:ft},Tt))))},SkeletonButton$1=SkeletonButton,path="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",SkeletonImage=_e=>{const{prefixCls:et,className:rt,rootClassName:st,style:ct,active:ut}=_e,{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("skeleton",et),[xt,$t,_t]=useStyle$F(gt),wt=classNames(gt,`${gt}-element`,{[`${gt}-active`]:ut},rt,st,$t,_t);return xt(reactExports.createElement("div",{className:wt},reactExports.createElement("div",{className:classNames(`${gt}-image`,rt),style:ct},reactExports.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${gt}-image-svg`},reactExports.createElement("path",{d:path,className:`${gt}-image-path`})))))},SkeletonImage$1=SkeletonImage,SkeletonInput=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,block:ut,size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$F(xt),Tt=omit$2(_e,["prefixCls"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct,[`${xt}-block`]:ut},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-input`,size:ft},Tt))))},SkeletonInput$1=SkeletonInput;var DotChartOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const DotChartOutlinedSvg=DotChartOutlined$2;var DotChartOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DotChartOutlinedSvg}))};const DotChartOutlined$1=reactExports.forwardRef(DotChartOutlined),SkeletonNode=_e=>{const{prefixCls:et,className:rt,rootClassName:st,style:ct,active:ut,children:ft}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$F(xt),Tt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ut},_t,rt,st,wt),Rt=ft??reactExports.createElement(DotChartOutlined$1,null);return $t(reactExports.createElement("div",{className:Tt},reactExports.createElement("div",{className:classNames(`${xt}-image`,rt),style:ct},Rt)))},SkeletonNode$1=SkeletonNode,Paragraph=_e=>{const et=gt=>{const{width:xt,rows:$t=2}=_e;if(Array.isArray(xt))return xt[gt];if($t-1===gt)return xt},{prefixCls:rt,className:st,style:ct,rows:ut}=_e,ft=_toConsumableArray$3(Array(ut)).map((gt,xt)=>reactExports.createElement("li",{key:xt,style:{width:et(xt)}}));return reactExports.createElement("ul",{className:classNames(rt,st),style:ct},ft)},Paragraph$1=Paragraph,Title=_e=>{let{prefixCls:et,className:rt,width:st,style:ct}=_e;return reactExports.createElement("h3",{className:classNames(et,rt),style:Object.assign({width:st},ct)})},Title$1=Title;function getComponentProps(_e){return _e&&typeof _e=="object"?_e:{}}function getAvatarBasicProps(_e,et){return _e&&!et?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function getTitleBasicProps(_e,et){return!_e&&et?{width:"38%"}:_e&&et?{width:"50%"}:{}}function getParagraphBasicProps(_e,et){const rt={};return(!_e||!et)&&(rt.width="61%"),!_e&&et?rt.rows=3:rt.rows=2,rt}const Skeleton=_e=>{const{prefixCls:et,loading:rt,className:st,rootClassName:ct,style:ut,children:ft,avatar:gt=!1,title:xt=!0,paragraph:$t=!0,active:_t,round:wt}=_e,{getPrefixCls:Tt,direction:Rt,skeleton:It}=reactExports.useContext(ConfigContext$1),At=Tt("skeleton",et),[jt,Nt,kt]=useStyle$F(At);if(rt||!("loading"in _e)){const Ft=!!gt,Ht=!!xt,Wt=!!$t;let Vt;if(Ft){const Xt=Object.assign(Object.assign({prefixCls:`${At}-avatar`},getAvatarBasicProps(Ht,Wt)),getComponentProps(gt));Vt=reactExports.createElement("div",{className:`${At}-header`},reactExports.createElement(Element$2,Object.assign({},Xt)))}let qt;if(Ht||Wt){let Xt;if(Ht){const lr=Object.assign(Object.assign({prefixCls:`${At}-title`},getTitleBasicProps(Ft,Wt)),getComponentProps(xt));Xt=reactExports.createElement(Title$1,Object.assign({},lr))}let Zt;if(Wt){const lr=Object.assign(Object.assign({prefixCls:`${At}-paragraph`},getParagraphBasicProps(Ft,Ht)),getComponentProps($t));Zt=reactExports.createElement(Paragraph$1,Object.assign({},lr))}qt=reactExports.createElement("div",{className:`${At}-content`},Xt,Zt)}const Gt=classNames(At,{[`${At}-with-avatar`]:Ft,[`${At}-active`]:_t,[`${At}-rtl`]:Rt==="rtl",[`${At}-round`]:wt},It==null?void 0:It.className,st,ct,Nt,kt);return jt(reactExports.createElement("div",{className:Gt,style:Object.assign(Object.assign({},It==null?void 0:It.style),ut)},Vt,qt))}return typeof ft<"u"?ft:null};Skeleton.Button=SkeletonButton$1;Skeleton.Avatar=SkeletonAvatar$1;Skeleton.Input=SkeletonInput$1;Skeleton.Image=SkeletonImage$1;Skeleton.Node=SkeletonNode$1;const Skeleton$1=Skeleton;var PlusOutlined$4={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"};const PlusOutlinedSvg=PlusOutlined$4;var PlusOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PlusOutlinedSvg}))};const PlusOutlined$3=reactExports.forwardRef(PlusOutlined$2),TabContext=reactExports.createContext(null);var useIndicator=function(et){var rt=et.activeTabOffset,st=et.horizontal,ct=et.rtl,ut=et.indicator,ft=ut===void 0?{}:ut,gt=ft.size,xt=ft.align,$t=xt===void 0?"center":xt,_t=reactExports.useState(),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useRef(),At=React$1.useCallback(function(Nt){return typeof gt=="function"?gt(Nt):typeof gt=="number"?gt:Nt},[gt]);function jt(){wrapperRaf.cancel(It.current)}return reactExports.useEffect(function(){var Nt={};if(rt)if(st){Nt.width=At(rt.width);var kt=ct?"right":"left";$t==="start"&&(Nt[kt]=rt[kt]),$t==="center"&&(Nt[kt]=rt[kt]+rt.width/2,Nt.transform=ct?"translateX(50%)":"translateX(-50%)"),$t==="end"&&(Nt[kt]=rt[kt]+rt.width,Nt.transform="translateX(-100%)")}else Nt.height=At(rt.height),$t==="start"&&(Nt.top=rt.top),$t==="center"&&(Nt.top=rt.top+rt.height/2,Nt.transform="translateY(-50%)"),$t==="end"&&(Nt.top=rt.top+rt.height,Nt.transform="translateY(-100%)");return jt(),It.current=wrapperRaf(function(){Rt(Nt)}),jt},[rt,st,ct,$t,At]),{style:Tt}},DEFAULT_SIZE$2={width:0,height:0,left:0,top:0};function useOffsets(_e,et,rt){return reactExports.useMemo(function(){for(var st,ct=new Map,ut=et.get((st=_e[0])===null||st===void 0?void 0:st.key)||DEFAULT_SIZE$2,ft=ut.left+ut.width,gt=0;gt<_e.length;gt+=1){var xt=_e[gt].key,$t=et.get(xt);if(!$t){var _t;$t=et.get((_t=_e[gt-1])===null||_t===void 0?void 0:_t.key)||DEFAULT_SIZE$2}var wt=ct.get(xt)||_objectSpread2({},$t);wt.right=ft-wt.left-wt.width,ct.set(xt,wt)}return ct},[_e.map(function(st){return st.key}).join("_"),et,rt])}function useSyncState(_e,et){var rt=reactExports.useRef(_e),st=reactExports.useState({}),ct=_slicedToArray$3(st,2),ut=ct[1];function ft(gt){var xt=typeof gt=="function"?gt(rt.current):gt;xt!==rt.current&&et(xt,rt.current),rt.current=xt,ut({})}return[rt.current,ft]}var MIN_SWIPE_DISTANCE=.1,STOP_SWIPE_DISTANCE=.01,REFRESH_INTERVAL=20,SPEED_OFF_MULTIPLE=Math.pow(.995,REFRESH_INTERVAL);function useTouchMove(_e,et){var rt=reactExports.useState(),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(0),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=reactExports.useState(0),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useState(),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt=reactExports.useRef();function Ft(Xt){var Zt=Xt.touches[0],lr=Zt.screenX,er=Zt.screenY;ut({x:lr,y:er}),window.clearInterval(kt.current)}function Ht(Xt){if(ct){Xt.preventDefault();var Zt=Xt.touches[0],lr=Zt.screenX,er=Zt.screenY;ut({x:lr,y:er});var cr=lr-ct.x,ur=er-ct.y;et(cr,ur);var pr=Date.now();$t(pr),Rt(pr-xt),Nt({x:cr,y:ur})}}function Wt(){if(ct&&(ut(null),Nt(null),jt)){var Xt=jt.x/Tt,Zt=jt.y/Tt,lr=Math.abs(Xt),er=Math.abs(Zt);if(Math.max(lr,er)ur?(er=Zt,Vt.current="x"):(er=lr,Vt.current="y"),et(-er,-er)&&Xt.preventDefault()}var Gt=reactExports.useRef(null);Gt.current={onTouchStart:Ft,onTouchMove:Ht,onTouchEnd:Wt,onWheel:qt},reactExports.useEffect(function(){function Xt(cr){Gt.current.onTouchStart(cr)}function Zt(cr){Gt.current.onTouchMove(cr)}function lr(cr){Gt.current.onTouchEnd(cr)}function er(cr){Gt.current.onWheel(cr)}return document.addEventListener("touchmove",Zt,{passive:!1}),document.addEventListener("touchend",lr,{passive:!1}),_e.current.addEventListener("touchstart",Xt,{passive:!1}),_e.current.addEventListener("wheel",er),function(){document.removeEventListener("touchmove",Zt),document.removeEventListener("touchend",lr)}},[])}function useUpdate(_e){var et=reactExports.useState(0),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(0),ft=reactExports.useRef();return ft.current=_e,useLayoutUpdateEffect(function(){var gt;(gt=ft.current)===null||gt===void 0||gt.call(ft)},[st]),function(){ut.current===st&&(ut.current+=1,ct(ut.current))}}function useUpdateState(_e){var et=reactExports.useRef([]),rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[1],ut=reactExports.useRef(typeof _e=="function"?_e():_e),ft=useUpdate(function(){var xt=ut.current;et.current.forEach(function($t){xt=$t(xt)}),et.current=[],ut.current=xt,ct({})});function gt(xt){et.current.push(xt),ft()}return[ut.current,gt]}var DEFAULT_SIZE$1={width:0,height:0,left:0,top:0,right:0};function useVisibleRange(_e,et,rt,st,ct,ut,ft){var gt=ft.tabs,xt=ft.tabPosition,$t=ft.rtl,_t,wt,Tt;return["top","bottom"].includes(xt)?(_t="width",wt=$t?"right":"left",Tt=Math.abs(rt)):(_t="height",wt="top",Tt=-rt),reactExports.useMemo(function(){if(!gt.length)return[0,0];for(var Rt=gt.length,It=Rt,At=0;AtTt+et){It=At-1;break}}for(var Nt=0,kt=Rt-1;kt>=0;kt-=1){var Ft=_e.get(gt[kt].key)||DEFAULT_SIZE$1;if(Ft[wt]=It?[0,0]:[Nt,It]},[_e,et,st,ct,ut,Tt,xt,gt.map(function(Rt){return Rt.key}).join("_"),$t])}function stringify$2(_e){var et;return _e instanceof Map?(et={},_e.forEach(function(rt,st){et[st]=rt})):et=_e,JSON.stringify(et)}var RC_TABS_DOUBLE_QUOTE="TABS_DQ";function genDataNodeKey(_e){return String(_e).replace(/"/g,RC_TABS_DOUBLE_QUOTE)}function getRemovable(_e,et,rt,st){return!(!rt||st||_e===!1||_e===void 0&&(et===!1||et===null))}var AddButton=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.editable,ct=_e.locale,ut=_e.style;return!st||st.showAdd===!1?null:reactExports.createElement("button",{ref:et,type:"button",className:"".concat(rt,"-nav-add"),style:ut,"aria-label":(ct==null?void 0:ct.addAriaLabel)||"Add tab",onClick:function(gt){st.onEdit("add",{event:gt})}},st.addIcon||"+")}),ExtraContent=reactExports.forwardRef(function(_e,et){var rt=_e.position,st=_e.prefixCls,ct=_e.extra;if(!ct)return null;var ut,ft={};return _typeof$e(ct)==="object"&&!reactExports.isValidElement(ct)?ft=ct:ft.right=ct,rt==="right"&&(ut=ft.right),rt==="left"&&(ut=ft.left),ut?reactExports.createElement("div",{className:"".concat(st,"-extra-content"),ref:et},ut):null}),ESC=KeyCode.ESC,TAB=KeyCode.TAB;function useAccessibility(_e){var et=_e.visible,rt=_e.triggerRef,st=_e.onVisibleChange,ct=_e.autoFocus,ut=_e.overlayRef,ft=reactExports.useRef(!1),gt=function(){if(et){var wt,Tt;(wt=rt.current)===null||wt===void 0||(Tt=wt.focus)===null||Tt===void 0||Tt.call(wt),st==null||st(!1)}},xt=function(){var wt;return(wt=ut.current)!==null&&wt!==void 0&&wt.focus?(ut.current.focus(),ft.current=!0,!0):!1},$t=function(wt){switch(wt.keyCode){case ESC:gt();break;case TAB:{var Tt=!1;ft.current||(Tt=xt()),Tt?wt.preventDefault():gt();break}}};reactExports.useEffect(function(){return et?(window.addEventListener("keydown",$t),ct&&wrapperRaf(xt,3),function(){window.removeEventListener("keydown",$t),ft.current=!1}):function(){ft.current=!1}},[et])}var Overlay$1=reactExports.forwardRef(function(_e,et){var rt=_e.overlay,st=_e.arrow,ct=_e.prefixCls,ut=reactExports.useMemo(function(){var gt;return typeof rt=="function"?gt=rt():gt=rt,gt},[rt]),ft=composeRef(et,ut==null?void 0:ut.ref);return React$1.createElement(React$1.Fragment,null,st&&React$1.createElement("div",{className:"".concat(ct,"-arrow")}),React$1.cloneElement(ut,{ref:supportRef(ut)?ft:void 0}))}),autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset}},_excluded$1j=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dropdown(_e,et){var rt,st=_e.arrow,ct=st===void 0?!1:st,ut=_e.prefixCls,ft=ut===void 0?"rc-dropdown":ut,gt=_e.transitionName,xt=_e.animation,$t=_e.align,_t=_e.placement,wt=_t===void 0?"bottomLeft":_t,Tt=_e.placements,Rt=Tt===void 0?placements:Tt,It=_e.getPopupContainer,At=_e.showAction,jt=_e.hideAction,Nt=_e.overlayClassName,kt=_e.overlayStyle,Ft=_e.visible,Ht=_e.trigger,Wt=Ht===void 0?["hover"]:Ht,Vt=_e.autoFocus,qt=_e.overlay,Gt=_e.children,Xt=_e.onVisibleChange,Zt=_objectWithoutProperties$2(_e,_excluded$1j),lr=React$1.useState(),er=_slicedToArray$3(lr,2),cr=er[0],ur=er[1],pr="visible"in _e?Ft:cr,hr=React$1.useRef(null),fr=React$1.useRef(null),dr=React$1.useRef(null);React$1.useImperativeHandle(et,function(){return hr.current});var yr=function(Cr){ur(Cr),Xt==null||Xt(Cr)};useAccessibility({visible:pr,triggerRef:dr,onVisibleChange:yr,autoFocus:Vt,overlayRef:fr});var $r=function(Cr){var Nr=_e.onOverlayClick;ur(!1),Nr&&Nr(Cr)},Er=function(){return React$1.createElement(Overlay$1,{ref:fr,overlay:qt,prefixCls:ft,arrow:ct})},mr=function(){return typeof qt=="function"?Er:Er()},Sr=function(){var Cr=_e.minOverlayWidthMatchTrigger,Nr=_e.alignPoint;return"minOverlayWidthMatchTrigger"in _e?Cr:!Nr},Tr=function(){var Cr=_e.openClassName;return Cr!==void 0?Cr:"".concat(ft,"-open")},jr=React$1.cloneElement(Gt,{className:classNames((rt=Gt.props)===null||rt===void 0?void 0:rt.className,pr&&Tr()),ref:supportRef(Gt)?composeRef(dr,Gt.ref):void 0}),Or=jt;return!Or&&Wt.indexOf("contextMenu")!==-1&&(Or=["click"]),React$1.createElement(Trigger,_extends$b({builtinPlacements:Rt},Zt,{prefixCls:ft,ref:hr,popupClassName:classNames(Nt,_defineProperty$c({},"".concat(ft,"-show-arrow"),ct)),popupStyle:kt,action:Wt,showAction:At,hideAction:Or,popupPlacement:wt,popupAlign:$t,popupTransitionName:gt,popupAnimation:xt,popupVisible:pr,stretch:Sr()?"minWidth":"",popup:mr(),onPopupVisibleChange:yr,onPopupClick:$r,getPopupContainer:It}),jr)}const Dropdown$1=React$1.forwardRef(Dropdown);var OperationNode=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.id,ct=_e.tabs,ut=_e.locale,ft=_e.mobile,gt=_e.moreIcon,xt=gt===void 0?"More":gt,$t=_e.moreTransitionName,_t=_e.style,wt=_e.className,Tt=_e.editable,Rt=_e.tabBarGutter,It=_e.rtl,At=_e.removeAriaLabel,jt=_e.onTabClick,Nt=_e.getPopupContainer,kt=_e.popupClassName,Ft=reactExports.useState(!1),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=reactExports.useState(null),Gt=_slicedToArray$3(qt,2),Xt=Gt[0],Zt=Gt[1],lr="".concat(st,"-more-popup"),er="".concat(rt,"-dropdown"),cr=Xt!==null?"".concat(lr,"-").concat(Xt):null,ur=ut==null?void 0:ut.dropdownAriaLabel;function pr(mr,Sr){mr.preventDefault(),mr.stopPropagation(),Tt.onEdit("remove",{key:Sr,event:mr})}var hr=reactExports.createElement(ExportMenu,{onClick:function(Sr){var Tr=Sr.key,jr=Sr.domEvent;jt(Tr,jr),Vt(!1)},prefixCls:"".concat(er,"-menu"),id:lr,tabIndex:-1,role:"listbox","aria-activedescendant":cr,selectedKeys:[Xt],"aria-label":ur!==void 0?ur:"expanded dropdown"},ct.map(function(mr){var Sr=mr.closable,Tr=mr.disabled,jr=mr.closeIcon,Or=mr.key,_r=mr.label,Cr=getRemovable(Sr,jr,Tt,Tr);return reactExports.createElement(MenuItem$2,{key:Or,id:"".concat(lr,"-").concat(Or),role:"option","aria-controls":st&&"".concat(st,"-panel-").concat(Or),disabled:Tr},reactExports.createElement("span",null,_r),Cr&&reactExports.createElement("button",{type:"button","aria-label":At||"remove",tabIndex:0,className:"".concat(er,"-menu-item-remove"),onClick:function(Rr){Rr.stopPropagation(),pr(Rr,Or)}},jr||Tt.removeIcon||"×"))}));function fr(mr){for(var Sr=ct.filter(function(Cr){return!Cr.disabled}),Tr=Sr.findIndex(function(Cr){return Cr.key===Xt})||0,jr=Sr.length,Or=0;OrWn?"left":"right"})}),cr=_slicedToArray$3(er,2),ur=cr[0],pr=cr[1],hr=useSyncState(0,function(Kn,Wn){!lr&&At&&At({direction:Kn>Wn?"top":"bottom"})}),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState([0,0]),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useState([0,0]),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1],Cr=reactExports.useState([0,0]),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1],Mr=reactExports.useState([0,0]),kr=_slicedToArray$3(Mr,2),Fr=kr[0],wr=kr[1],Br=useUpdateState(new Map),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1],zr=useOffsets(Ft,Xr,Or[0]),qr=getUnitValue(mr,lr),pn=getUnitValue(Or,lr),Qr=getUnitValue(Rr,lr),Zr=getUnitValue(Fr,lr),vn=qrHr?Hr:Kn}var Wr=reactExports.useRef(null),Gr=reactExports.useState(),cn=_slicedToArray$3(Gr,2),mn=cn[0],hn=cn[1];function En(){hn(Date.now())}function Rn(){Wr.current&&clearTimeout(Wr.current)}useTouchMove(qt,function(Kn,Wn){function zn(_n,ln){_n(function(Pn){var An=Vr(Pn+ln);return An})}return vn?(lr?zn(pr,Kn):zn(yr,Wn),Rn(),En(),!0):!1}),reactExports.useEffect(function(){return Rn(),mn&&(Wr.current=setTimeout(function(){hn(0)},100)),Rn},[mn]);var Dn=useVisibleRange(zr,vr,lr?ur:dr,pn,Qr,Zr,_objectSpread2(_objectSpread2({},_e),{},{tabs:Ft})),Bn=_slicedToArray$3(Dn,2),Yn=Bn[0],qn=Bn[1],ao=useEvent(function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ft,Wn=zr.get(Kn)||{width:0,height:0,left:0,right:0,top:0};if(lr){var zn=ur;gt?Wn.rightur+vr&&(zn=Wn.right+Wn.width-vr):Wn.left<-ur?zn=-Wn.left:Wn.left+Wn.width>-ur+vr&&(zn=-(Wn.left+Wn.width-vr)),yr(0),pr(Vr(zn))}else{var _n=dr;Wn.top<-dr?_n=-Wn.top:Wn.top+Wn.height>-dr+vr&&(_n=-(Wn.top+Wn.height-vr)),pr(0),yr(Vr(_n))}}),dn={};wt==="top"||wt==="bottom"?dn[gt?"marginRight":"marginLeft"]=Tt:dn.marginTop=Tt;var gn=Ft.map(function(Kn,Wn){var zn=Kn.key;return reactExports.createElement(TabNode,{id:ct,prefixCls:kt,key:zn,tab:Kn,style:Wn===0?void 0:dn,closable:Kn.closable,editable:$t,active:zn===ft,renderWrapper:Rt,removeAriaLabel:_t==null?void 0:_t.removeAriaLabel,onClick:function(ln){It(zn,ln)},onFocus:function(){ao(zn),En(),qt.current&&(gt||(qt.current.scrollLeft=0),qt.current.scrollTop=0)}})}),yn=function(){return Kr(function(){var Wn,zn=new Map,_n=(Wn=Gt.current)===null||Wn===void 0?void 0:Wn.getBoundingClientRect();return Ft.forEach(function(ln){var Pn,An=ln.key,Qn=(Pn=Gt.current)===null||Pn===void 0?void 0:Pn.querySelector('[data-node-key="'.concat(genDataNodeKey(An),'"]'));if(Qn){var ro=getTabSize(Qn,_n),oo=_slicedToArray$3(ro,4),Vn=oo[0],uo=oo[1],po=oo[2],_o=oo[3];zn.set(An,{width:Vn,height:uo,left:po,top:_o})}}),zn})};reactExports.useEffect(function(){yn()},[Ft.map(function(Kn){return Kn.key}).join("_")]);var wn=useUpdate(function(){var Kn=getSize$1(Ht),Wn=getSize$1(Wt),zn=getSize$1(Vt);Sr([Kn[0]-Wn[0]-zn[0],Kn[1]-Wn[1]-zn[1]]);var _n=getSize$1(Zt);Pr(_n);var ln=getSize$1(Xt);wr(ln);var Pn=getSize$1(Gt);_r([Pn[0]-_n[0],Pn[1]-_n[1]]),yn()}),Tn=Ft.slice(0,Yn),Nn=Ft.slice(qn+1),On=[].concat(_toConsumableArray$3(Tn),_toConsumableArray$3(Nn)),xn=zr.get(ft),Cn=useIndicator({activeTabOffset:xn,horizontal:lr,indicator:jt,rtl:gt}),Sn=Cn.style;reactExports.useEffect(function(){ao()},[ft,br,Hr,stringify$2(xn),stringify$2(zr),lr]),reactExports.useEffect(function(){wn()},[gt]);var Mn=!!On.length,jn="".concat(kt,"-nav-wrap"),Un,Gn,eo,io;return lr?gt?(Gn=ur>0,Un=ur!==Hr):(Un=ur<0,Gn=ur!==br):(eo=dr<0,io=dr!==br),reactExports.createElement(RefResizeObserver,{onResize:wn},reactExports.createElement("div",{ref:useComposeRef(et,Ht),role:"tablist",className:classNames("".concat(kt,"-nav"),rt),style:st,onKeyDown:function(){En()}},reactExports.createElement(ExtraContent,{ref:Wt,position:"left",extra:xt,prefixCls:kt}),reactExports.createElement(RefResizeObserver,{onResize:wn},reactExports.createElement("div",{className:classNames(jn,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(jn,"-ping-left"),Un),"".concat(jn,"-ping-right"),Gn),"".concat(jn,"-ping-top"),eo),"".concat(jn,"-ping-bottom"),io)),ref:qt},reactExports.createElement(RefResizeObserver,{onResize:wn},reactExports.createElement("div",{ref:Gt,className:"".concat(kt,"-nav-list"),style:{transform:"translate(".concat(ur,"px, ").concat(dr,"px)"),transition:mn?"none":void 0}},gn,reactExports.createElement(AddButton,{ref:Zt,prefixCls:kt,locale:_t,editable:$t,style:_objectSpread2(_objectSpread2({},gn.length===0?void 0:dn),{},{visibility:Mn?"hidden":null})}),reactExports.createElement("div",{className:classNames("".concat(kt,"-ink-bar"),_defineProperty$c({},"".concat(kt,"-ink-bar-animated"),ut.inkBar)),style:Sn}))))),reactExports.createElement(OperationNode$1,_extends$b({},_e,{removeAriaLabel:_t==null?void 0:_t.removeAriaLabel,ref:Xt,prefixCls:kt,tabs:On,className:!Mn&&gr,tabMoving:!!mn})),reactExports.createElement(ExtraContent,{ref:Vt,position:"right",extra:xt,prefixCls:kt})))}),TabPane$2=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.className,ct=_e.style,ut=_e.id,ft=_e.active,gt=_e.tabKey,xt=_e.children;return reactExports.createElement("div",{id:ut&&"".concat(ut,"-panel-").concat(gt),role:"tabpanel",tabIndex:ft?0:-1,"aria-labelledby":ut&&"".concat(ut,"-tab-").concat(gt),"aria-hidden":!ft,style:ct,className:classNames(rt,ft&&"".concat(rt,"-active"),st),ref:et},xt)}),_excluded$1i=["renderTabBar"],_excluded2$l=["label","key"],TabNavListWrapper=function(et){var rt=et.renderTabBar,st=_objectWithoutProperties$2(et,_excluded$1i),ct=reactExports.useContext(TabContext),ut=ct.tabs;if(rt){var ft=_objectSpread2(_objectSpread2({},st),{},{panes:ut.map(function(gt){var xt=gt.label,$t=gt.key,_t=_objectWithoutProperties$2(gt,_excluded2$l);return reactExports.createElement(TabPane$2,_extends$b({tab:xt,key:$t,tabKey:$t},_t))})});return rt(ft,TabNavList)}return reactExports.createElement(TabNavList,st)},_excluded$1h=["key","forceRender","style","className","destroyInactiveTabPane"],TabPanelList=function(et){var rt=et.id,st=et.activeKey,ct=et.animated,ut=et.tabPosition,ft=et.destroyInactiveTabPane,gt=reactExports.useContext(TabContext),xt=gt.prefixCls,$t=gt.tabs,_t=ct.tabPane,wt="".concat(xt,"-tabpane");return reactExports.createElement("div",{className:classNames("".concat(xt,"-content-holder"))},reactExports.createElement("div",{className:classNames("".concat(xt,"-content"),"".concat(xt,"-content-").concat(ut),_defineProperty$c({},"".concat(xt,"-content-animated"),_t))},$t.map(function(Tt){var Rt=Tt.key,It=Tt.forceRender,At=Tt.style,jt=Tt.className,Nt=Tt.destroyInactiveTabPane,kt=_objectWithoutProperties$2(Tt,_excluded$1h),Ft=Rt===st;return reactExports.createElement(CSSMotion,_extends$b({key:Rt,visible:Ft,forceRender:It,removeOnLeave:!!(ft||Nt),leavedClassName:"".concat(wt,"-hidden")},ct.tabPaneMotion),function(Ht,Wt){var Vt=Ht.style,qt=Ht.className;return reactExports.createElement(TabPane$2,_extends$b({},kt,{prefixCls:wt,id:rt,tabKey:Rt,animated:_t,active:Ft,style:_objectSpread2(_objectSpread2({},At),Vt),className:classNames(jt,qt),ref:Wt}))})})))};function useAnimateConfig$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},et;return _e===!1?et={inkBar:!1,tabPane:!1}:_e===!0?et={inkBar:!0,tabPane:!1}:et=_objectSpread2({inkBar:!0},_typeof$e(_e)==="object"?_e:{}),et.tabPaneMotion&&et.tabPane===void 0&&(et.tabPane=!0),!et.tabPaneMotion&&et.tabPane&&(et.tabPane=!1),et}var _excluded$1g=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uuid$3=0,Tabs$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-tabs":st,ut=_e.className,ft=_e.items,gt=_e.direction,xt=_e.activeKey,$t=_e.defaultActiveKey,_t=_e.editable,wt=_e.animated,Tt=_e.tabPosition,Rt=Tt===void 0?"top":Tt,It=_e.tabBarGutter,At=_e.tabBarStyle,jt=_e.tabBarExtraContent,Nt=_e.locale,kt=_e.moreIcon,Ft=_e.moreTransitionName,Ht=_e.destroyInactiveTabPane,Wt=_e.renderTabBar,Vt=_e.onChange,qt=_e.onTabClick,Gt=_e.onTabScroll,Xt=_e.getPopupContainer,Zt=_e.popupClassName,lr=_e.indicator,er=_objectWithoutProperties$2(_e,_excluded$1g),cr=reactExports.useMemo(function(){return(ft||[]).filter(function(wr){return wr&&_typeof$e(wr)==="object"&&"key"in wr})},[ft]),ur=gt==="rtl",pr=useAnimateConfig$1(wt),hr=reactExports.useState(!1),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1];reactExports.useEffect(function(){yr(isMobile())},[]);var $r=useMergedState(function(){var wr;return(wr=cr[0])===null||wr===void 0?void 0:wr.key},{value:xt,defaultValue:$t}),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useState(function(){return cr.findIndex(function(wr){return wr.key===mr})}),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1];reactExports.useEffect(function(){var wr=cr.findIndex(function(Dr){return Dr.key===mr});if(wr===-1){var Br;wr=Math.max(0,Math.min(Or,cr.length-1)),Sr((Br=cr[wr])===null||Br===void 0?void 0:Br.key)}_r(wr)},[cr.map(function(wr){return wr.key}).join("_"),mr,Or]);var Cr=useMergedState(null,{value:rt}),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1];reactExports.useEffect(function(){rt||(Pr("rc-tabs-".concat(uuid$3)),uuid$3+=1)},[]);function Mr(wr,Br){qt==null||qt(wr,Br);var Dr=wr!==mr;Sr(wr),Dr&&(Vt==null||Vt(wr))}var kr={id:Rr,activeKey:mr,animated:pr,tabPosition:Rt,rtl:ur,mobile:dr},Fr=_objectSpread2(_objectSpread2({},kr),{},{editable:_t,locale:Nt,moreIcon:kt,moreTransitionName:Ft,tabBarGutter:It,onTabClick:Mr,onTabScroll:Gt,extra:jt,style:At,panes:null,getPopupContainer:Xt,popupClassName:Zt,indicator:lr});return reactExports.createElement(TabContext.Provider,{value:{tabs:cr,prefixCls:ct}},reactExports.createElement("div",_extends$b({ref:et,id:rt,className:classNames(ct,"".concat(ct,"-").concat(Rt),_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(ct,"-mobile"),dr),"".concat(ct,"-editable"),_t),"".concat(ct,"-rtl"),ur),ut)},er),reactExports.createElement(TabNavListWrapper,_extends$b({},Fr,{renderTabBar:Wt})),reactExports.createElement(TabPanelList,_extends$b({destroyInactiveTabPane:Ht},kr,{animated:pr}))))});const motion={motionAppear:!1,motionEnter:!0,motionLeave:!0};function useAnimateConfig(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},rt;return et===!1?rt={inkBar:!1,tabPane:!1}:et===!0?rt={inkBar:!0,tabPane:!0}:rt=Object.assign({inkBar:!0},typeof et=="object"?et:{}),rt.tabPane&&(rt.tabPaneMotion=Object.assign(Object.assign({},motion),{motionName:getTransitionName(_e,"switch")})),rt}var __rest$H=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctet)}function useLegacyItems(_e,et){if(_e)return _e;const rt=toArray$d(et).map(st=>{if(reactExports.isValidElement(st)){const{key:ct,props:ut}=st,ft=ut||{},{tab:gt}=ft,xt=__rest$H(ft,["tab"]);return Object.assign(Object.assign({key:String(ct)},xt),{label:gt})}return null});return filter(rt)}const genMotionStyle$2=_e=>{const{componentCls:et,motionDurationSlow:rt}=_e;return[{[et]:{[`${et}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${rt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${rt}`}}}}},[initSlideMotion(_e,"slide-up"),initSlideMotion(_e,"slide-down")]]},genCardStyle=_e=>{const{componentCls:et,tabsCardPadding:rt,cardBg:st,cardGutter:ct,colorBorderSecondary:ut,itemSelectedColor:ft}=_e;return{[`${et}-card`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{margin:0,padding:rt,background:st,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${ut}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${et}-tab-active`]:{color:ft,background:_e.colorBgContainer},[`${et}-ink-bar`]:{visibility:"hidden"}},[`&${et}-top, &${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginLeft:{_skip_check_:!0,value:unit$1(ct)}}}},[`&${et}-top`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:`${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0 0`},[`${et}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:`0 0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)}`},[`${et}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${et}-left, &${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginTop:unit$1(ct)}}},[`&${et}-left`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(_e.borderRadiusLG)} 0 0 ${unit$1(_e.borderRadiusLG)}`}},[`${et}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0`}},[`${et}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},genDropdownStyle=_e=>{const{componentCls:et,itemHoverColor:rt,dropdownEdgeChildVerticalPadding:st}=_e;return{[`${et}-dropdown`]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${et}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${unit$1(st)} 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({},textEllipsis),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${unit$1(_e.paddingXXS)} ${unit$1(_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:rt}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},genPositionStyle=_e=>{const{componentCls:et,margin:rt,colorBorderSecondary:st,horizontalMargin:ct,verticalItemPadding:ut,verticalItemMargin:ft,calc:gt}=_e;return{[`${et}-top, ${et}-bottom`]:{flexDirection:"column",[`> ${et}-nav, > div > ${et}-nav`]:{margin:ct,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${st}`,content:"''"},[`${et}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow}, + `]:Object.assign({},genSkeletonColor(_e))}}},prepareComponentToken$n=_e=>{const{colorFillContent:et,colorFill:rt}=_e,st=et,ct=rt;return{color:st,colorGradientEnd:ct,gradientFromColor:st,gradientToColor:ct,titleHeight:_e.controlHeight/2,blockRadius:_e.borderRadiusSM,paragraphMarginTop:_e.marginLG+_e.marginXXS,paragraphLiHeight:_e.controlHeight/2}},useStyle$H=genStyleHooks("Skeleton",_e=>{const{componentCls:et,calc:rt}=_e,st=merge$7(_e,{skeletonAvatarCls:`${et}-avatar`,skeletonTitleCls:`${et}-title`,skeletonParagraphCls:`${et}-paragraph`,skeletonButtonCls:`${et}-button`,skeletonInputCls:`${et}-input`,skeletonImageCls:`${et}-image`,imageSizeBase:rt(_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[genBaseStyle$a(st)]},prepareComponentToken$n,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SkeletonAvatar=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,shape:ut="circle",size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$H(xt),Tt=omit$2(_e,["prefixCls","className"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-avatar`,shape:ut,size:ft},Tt))))},SkeletonAvatar$1=SkeletonAvatar,SkeletonButton=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,block:ut=!1,size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$H(xt),Tt=omit$2(_e,["prefixCls"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct,[`${xt}-block`]:ut},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-button`,size:ft},Tt))))},SkeletonButton$1=SkeletonButton,path="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",SkeletonImage=_e=>{const{prefixCls:et,className:rt,rootClassName:st,style:ct,active:ut}=_e,{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("skeleton",et),[xt,$t,_t]=useStyle$H(gt),wt=classNames(gt,`${gt}-element`,{[`${gt}-active`]:ut},rt,st,$t,_t);return xt(reactExports.createElement("div",{className:wt},reactExports.createElement("div",{className:classNames(`${gt}-image`,rt),style:ct},reactExports.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${gt}-image-svg`},reactExports.createElement("path",{d:path,className:`${gt}-image-path`})))))},SkeletonImage$1=SkeletonImage,SkeletonInput=_e=>{const{prefixCls:et,className:rt,rootClassName:st,active:ct,block:ut,size:ft="default"}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$H(xt),Tt=omit$2(_e,["prefixCls"]),Rt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ct,[`${xt}-block`]:ut},rt,st,_t,wt);return $t(reactExports.createElement("div",{className:Rt},reactExports.createElement(Element$2,Object.assign({prefixCls:`${xt}-input`,size:ft},Tt))))},SkeletonInput$1=SkeletonInput;var DotChartOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const DotChartOutlinedSvg=DotChartOutlined$2;var DotChartOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DotChartOutlinedSvg}))};const DotChartOutlined$1=reactExports.forwardRef(DotChartOutlined),SkeletonNode=_e=>{const{prefixCls:et,className:rt,rootClassName:st,style:ct,active:ut,children:ft}=_e,{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("skeleton",et),[$t,_t,wt]=useStyle$H(xt),Tt=classNames(xt,`${xt}-element`,{[`${xt}-active`]:ut},_t,rt,st,wt),Rt=ft??reactExports.createElement(DotChartOutlined$1,null);return $t(reactExports.createElement("div",{className:Tt},reactExports.createElement("div",{className:classNames(`${xt}-image`,rt),style:ct},Rt)))},SkeletonNode$1=SkeletonNode,Paragraph=_e=>{const et=gt=>{const{width:xt,rows:$t=2}=_e;if(Array.isArray(xt))return xt[gt];if($t-1===gt)return xt},{prefixCls:rt,className:st,style:ct,rows:ut}=_e,ft=_toConsumableArray$3(Array(ut)).map((gt,xt)=>reactExports.createElement("li",{key:xt,style:{width:et(xt)}}));return reactExports.createElement("ul",{className:classNames(rt,st),style:ct},ft)},Paragraph$1=Paragraph,Title=_e=>{let{prefixCls:et,className:rt,width:st,style:ct}=_e;return reactExports.createElement("h3",{className:classNames(et,rt),style:Object.assign({width:st},ct)})},Title$1=Title;function getComponentProps(_e){return _e&&typeof _e=="object"?_e:{}}function getAvatarBasicProps(_e,et){return _e&&!et?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function getTitleBasicProps(_e,et){return!_e&&et?{width:"38%"}:_e&&et?{width:"50%"}:{}}function getParagraphBasicProps(_e,et){const rt={};return(!_e||!et)&&(rt.width="61%"),!_e&&et?rt.rows=3:rt.rows=2,rt}const Skeleton=_e=>{const{prefixCls:et,loading:rt,className:st,rootClassName:ct,style:ut,children:ft,avatar:gt=!1,title:xt=!0,paragraph:$t=!0,active:_t,round:wt}=_e,{getPrefixCls:Tt,direction:Rt,skeleton:It}=reactExports.useContext(ConfigContext$1),At=Tt("skeleton",et),[jt,Nt,kt]=useStyle$H(At);if(rt||!("loading"in _e)){const Ft=!!gt,Ht=!!xt,Wt=!!$t;let Vt;if(Ft){const Gt=Object.assign(Object.assign({prefixCls:`${At}-avatar`},getAvatarBasicProps(Ht,Wt)),getComponentProps(gt));Vt=reactExports.createElement("div",{className:`${At}-header`},reactExports.createElement(Element$2,Object.assign({},Gt)))}let qt;if(Ht||Wt){let Gt;if(Ht){const er=Object.assign(Object.assign({prefixCls:`${At}-title`},getTitleBasicProps(Ft,Wt)),getComponentProps(xt));Gt=reactExports.createElement(Title$1,Object.assign({},er))}let Zt;if(Wt){const er=Object.assign(Object.assign({prefixCls:`${At}-paragraph`},getParagraphBasicProps(Ft,Ht)),getComponentProps($t));Zt=reactExports.createElement(Paragraph$1,Object.assign({},er))}qt=reactExports.createElement("div",{className:`${At}-content`},Gt,Zt)}const Xt=classNames(At,{[`${At}-with-avatar`]:Ft,[`${At}-active`]:_t,[`${At}-rtl`]:Rt==="rtl",[`${At}-round`]:wt},It==null?void 0:It.className,st,ct,Nt,kt);return jt(reactExports.createElement("div",{className:Xt,style:Object.assign(Object.assign({},It==null?void 0:It.style),ut)},Vt,qt))}return typeof ft<"u"?ft:null};Skeleton.Button=SkeletonButton$1;Skeleton.Avatar=SkeletonAvatar$1;Skeleton.Input=SkeletonInput$1;Skeleton.Image=SkeletonImage$1;Skeleton.Node=SkeletonNode$1;const Skeleton$1=Skeleton;var PlusOutlined$4={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"};const PlusOutlinedSvg=PlusOutlined$4;var PlusOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PlusOutlinedSvg}))};const PlusOutlined$3=reactExports.forwardRef(PlusOutlined$2),TabContext=reactExports.createContext(null);var useIndicator=function(et){var rt=et.activeTabOffset,st=et.horizontal,ct=et.rtl,ut=et.indicator,ft=ut===void 0?{}:ut,gt=ft.size,xt=ft.align,$t=xt===void 0?"center":xt,_t=reactExports.useState(),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useRef(),At=React$1.useCallback(function(Nt){return typeof gt=="function"?gt(Nt):typeof gt=="number"?gt:Nt},[gt]);function jt(){wrapperRaf.cancel(It.current)}return reactExports.useEffect(function(){var Nt={};if(rt)if(st){Nt.width=At(rt.width);var kt=ct?"right":"left";$t==="start"&&(Nt[kt]=rt[kt]),$t==="center"&&(Nt[kt]=rt[kt]+rt.width/2,Nt.transform=ct?"translateX(50%)":"translateX(-50%)"),$t==="end"&&(Nt[kt]=rt[kt]+rt.width,Nt.transform="translateX(-100%)")}else Nt.height=At(rt.height),$t==="start"&&(Nt.top=rt.top),$t==="center"&&(Nt.top=rt.top+rt.height/2,Nt.transform="translateY(-50%)"),$t==="end"&&(Nt.top=rt.top+rt.height,Nt.transform="translateY(-100%)");return jt(),It.current=wrapperRaf(function(){Rt(Nt)}),jt},[rt,st,ct,$t,At]),{style:Tt}},DEFAULT_SIZE$2={width:0,height:0,left:0,top:0};function useOffsets(_e,et,rt){return reactExports.useMemo(function(){for(var st,ct=new Map,ut=et.get((st=_e[0])===null||st===void 0?void 0:st.key)||DEFAULT_SIZE$2,ft=ut.left+ut.width,gt=0;gt<_e.length;gt+=1){var xt=_e[gt].key,$t=et.get(xt);if(!$t){var _t;$t=et.get((_t=_e[gt-1])===null||_t===void 0?void 0:_t.key)||DEFAULT_SIZE$2}var wt=ct.get(xt)||_objectSpread2({},$t);wt.right=ft-wt.left-wt.width,ct.set(xt,wt)}return ct},[_e.map(function(st){return st.key}).join("_"),et,rt])}function useSyncState(_e,et){var rt=reactExports.useRef(_e),st=reactExports.useState({}),ct=_slicedToArray$3(st,2),ut=ct[1];function ft(gt){var xt=typeof gt=="function"?gt(rt.current):gt;xt!==rt.current&&et(xt,rt.current),rt.current=xt,ut({})}return[rt.current,ft]}var MIN_SWIPE_DISTANCE=.1,STOP_SWIPE_DISTANCE=.01,REFRESH_INTERVAL=20,SPEED_OFF_MULTIPLE=Math.pow(.995,REFRESH_INTERVAL);function useTouchMove(_e,et){var rt=reactExports.useState(),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(0),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=reactExports.useState(0),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useState(),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt=reactExports.useRef();function Ft(Gt){var Zt=Gt.touches[0],er=Zt.screenX,lr=Zt.screenY;ut({x:er,y:lr}),window.clearInterval(kt.current)}function Ht(Gt){if(ct){Gt.preventDefault();var Zt=Gt.touches[0],er=Zt.screenX,lr=Zt.screenY;ut({x:er,y:lr});var cr=er-ct.x,ur=lr-ct.y;et(cr,ur);var fr=Date.now();$t(fr),Rt(fr-xt),Nt({x:cr,y:ur})}}function Wt(){if(ct&&(ut(null),Nt(null),jt)){var Gt=jt.x/Tt,Zt=jt.y/Tt,er=Math.abs(Gt),lr=Math.abs(Zt);if(Math.max(er,lr)ur?(lr=Zt,Vt.current="x"):(lr=er,Vt.current="y"),et(-lr,-lr)&&Gt.preventDefault()}var Xt=reactExports.useRef(null);Xt.current={onTouchStart:Ft,onTouchMove:Ht,onTouchEnd:Wt,onWheel:qt},reactExports.useEffect(function(){function Gt(cr){Xt.current.onTouchStart(cr)}function Zt(cr){Xt.current.onTouchMove(cr)}function er(cr){Xt.current.onTouchEnd(cr)}function lr(cr){Xt.current.onWheel(cr)}return document.addEventListener("touchmove",Zt,{passive:!1}),document.addEventListener("touchend",er,{passive:!1}),_e.current.addEventListener("touchstart",Gt,{passive:!1}),_e.current.addEventListener("wheel",lr),function(){document.removeEventListener("touchmove",Zt),document.removeEventListener("touchend",er)}},[])}function useUpdate(_e){var et=reactExports.useState(0),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(0),ft=reactExports.useRef();return ft.current=_e,useLayoutUpdateEffect(function(){var gt;(gt=ft.current)===null||gt===void 0||gt.call(ft)},[st]),function(){ut.current===st&&(ut.current+=1,ct(ut.current))}}function useUpdateState(_e){var et=reactExports.useRef([]),rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[1],ut=reactExports.useRef(typeof _e=="function"?_e():_e),ft=useUpdate(function(){var xt=ut.current;et.current.forEach(function($t){xt=$t(xt)}),et.current=[],ut.current=xt,ct({})});function gt(xt){et.current.push(xt),ft()}return[ut.current,gt]}var DEFAULT_SIZE$1={width:0,height:0,left:0,top:0,right:0};function useVisibleRange(_e,et,rt,st,ct,ut,ft){var gt=ft.tabs,xt=ft.tabPosition,$t=ft.rtl,_t,wt,Tt;return["top","bottom"].includes(xt)?(_t="width",wt=$t?"right":"left",Tt=Math.abs(rt)):(_t="height",wt="top",Tt=-rt),reactExports.useMemo(function(){if(!gt.length)return[0,0];for(var Rt=gt.length,It=Rt,At=0;AtTt+et){It=At-1;break}}for(var Nt=0,kt=Rt-1;kt>=0;kt-=1){var Ft=_e.get(gt[kt].key)||DEFAULT_SIZE$1;if(Ft[wt]=It?[0,0]:[Nt,It]},[_e,et,st,ct,ut,Tt,xt,gt.map(function(Rt){return Rt.key}).join("_"),$t])}function stringify$2(_e){var et;return _e instanceof Map?(et={},_e.forEach(function(rt,st){et[st]=rt})):et=_e,JSON.stringify(et)}var RC_TABS_DOUBLE_QUOTE="TABS_DQ";function genDataNodeKey(_e){return String(_e).replace(/"/g,RC_TABS_DOUBLE_QUOTE)}function getRemovable(_e,et,rt,st){return!(!rt||st||_e===!1||_e===void 0&&(et===!1||et===null))}var AddButton=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.editable,ct=_e.locale,ut=_e.style;return!st||st.showAdd===!1?null:reactExports.createElement("button",{ref:et,type:"button",className:"".concat(rt,"-nav-add"),style:ut,"aria-label":(ct==null?void 0:ct.addAriaLabel)||"Add tab",onClick:function(gt){st.onEdit("add",{event:gt})}},st.addIcon||"+")}),ExtraContent=reactExports.forwardRef(function(_e,et){var rt=_e.position,st=_e.prefixCls,ct=_e.extra;if(!ct)return null;var ut,ft={};return _typeof$e(ct)==="object"&&!reactExports.isValidElement(ct)?ft=ct:ft.right=ct,rt==="right"&&(ut=ft.right),rt==="left"&&(ut=ft.left),ut?reactExports.createElement("div",{className:"".concat(st,"-extra-content"),ref:et},ut):null}),ESC=KeyCode.ESC,TAB=KeyCode.TAB;function useAccessibility(_e){var et=_e.visible,rt=_e.triggerRef,st=_e.onVisibleChange,ct=_e.autoFocus,ut=_e.overlayRef,ft=reactExports.useRef(!1),gt=function(){if(et){var wt,Tt;(wt=rt.current)===null||wt===void 0||(Tt=wt.focus)===null||Tt===void 0||Tt.call(wt),st==null||st(!1)}},xt=function(){var wt;return(wt=ut.current)!==null&&wt!==void 0&&wt.focus?(ut.current.focus(),ft.current=!0,!0):!1},$t=function(wt){switch(wt.keyCode){case ESC:gt();break;case TAB:{var Tt=!1;ft.current||(Tt=xt()),Tt?wt.preventDefault():gt();break}}};reactExports.useEffect(function(){return et?(window.addEventListener("keydown",$t),ct&&wrapperRaf(xt,3),function(){window.removeEventListener("keydown",$t),ft.current=!1}):function(){ft.current=!1}},[et])}var Overlay$1=reactExports.forwardRef(function(_e,et){var rt=_e.overlay,st=_e.arrow,ct=_e.prefixCls,ut=reactExports.useMemo(function(){var gt;return typeof rt=="function"?gt=rt():gt=rt,gt},[rt]),ft=composeRef(et,ut==null?void 0:ut.ref);return React$1.createElement(React$1.Fragment,null,st&&React$1.createElement("div",{className:"".concat(ct,"-arrow")}),React$1.cloneElement(ut,{ref:supportRef(ut)?ft:void 0}))}),autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset}},_excluded$1j=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dropdown(_e,et){var rt,st=_e.arrow,ct=st===void 0?!1:st,ut=_e.prefixCls,ft=ut===void 0?"rc-dropdown":ut,gt=_e.transitionName,xt=_e.animation,$t=_e.align,_t=_e.placement,wt=_t===void 0?"bottomLeft":_t,Tt=_e.placements,Rt=Tt===void 0?placements:Tt,It=_e.getPopupContainer,At=_e.showAction,jt=_e.hideAction,Nt=_e.overlayClassName,kt=_e.overlayStyle,Ft=_e.visible,Ht=_e.trigger,Wt=Ht===void 0?["hover"]:Ht,Vt=_e.autoFocus,qt=_e.overlay,Xt=_e.children,Gt=_e.onVisibleChange,Zt=_objectWithoutProperties$2(_e,_excluded$1j),er=React$1.useState(),lr=_slicedToArray$3(er,2),cr=lr[0],ur=lr[1],fr="visible"in _e?Ft:cr,hr=React$1.useRef(null),pr=React$1.useRef(null),dr=React$1.useRef(null);React$1.useImperativeHandle(et,function(){return hr.current});var yr=function(Cr){ur(Cr),Gt==null||Gt(Cr)};useAccessibility({visible:fr,triggerRef:dr,onVisibleChange:yr,autoFocus:Vt,overlayRef:pr});var Sr=function(Cr){var Nr=_e.onOverlayClick;ur(!1),Nr&&Nr(Cr)},br=function(){return React$1.createElement(Overlay$1,{ref:pr,overlay:qt,prefixCls:ft,arrow:ct})},mr=function(){return typeof qt=="function"?br:br()},Er=function(){var Cr=_e.minOverlayWidthMatchTrigger,Nr=_e.alignPoint;return"minOverlayWidthMatchTrigger"in _e?Cr:!Nr},Tr=function(){var Cr=_e.openClassName;return Cr!==void 0?Cr:"".concat(ft,"-open")},Mr=React$1.cloneElement(Xt,{className:classNames((rt=Xt.props)===null||rt===void 0?void 0:rt.className,fr&&Tr()),ref:supportRef(Xt)?composeRef(dr,Xt.ref):void 0}),Or=jt;return!Or&&Wt.indexOf("contextMenu")!==-1&&(Or=["click"]),React$1.createElement(Trigger,_extends$b({builtinPlacements:Rt},Zt,{prefixCls:ft,ref:hr,popupClassName:classNames(Nt,_defineProperty$c({},"".concat(ft,"-show-arrow"),ct)),popupStyle:kt,action:Wt,showAction:At,hideAction:Or,popupPlacement:wt,popupAlign:$t,popupTransitionName:gt,popupAnimation:xt,popupVisible:fr,stretch:Er()?"minWidth":"",popup:mr(),onPopupVisibleChange:yr,onPopupClick:Sr,getPopupContainer:It}),Mr)}const Dropdown$1=React$1.forwardRef(Dropdown);var OperationNode=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.id,ct=_e.tabs,ut=_e.locale,ft=_e.mobile,gt=_e.moreIcon,xt=gt===void 0?"More":gt,$t=_e.moreTransitionName,_t=_e.style,wt=_e.className,Tt=_e.editable,Rt=_e.tabBarGutter,It=_e.rtl,At=_e.removeAriaLabel,jt=_e.onTabClick,Nt=_e.getPopupContainer,kt=_e.popupClassName,Ft=reactExports.useState(!1),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=reactExports.useState(null),Xt=_slicedToArray$3(qt,2),Gt=Xt[0],Zt=Xt[1],er="".concat(st,"-more-popup"),lr="".concat(rt,"-dropdown"),cr=Gt!==null?"".concat(er,"-").concat(Gt):null,ur=ut==null?void 0:ut.dropdownAriaLabel;function fr(mr,Er){mr.preventDefault(),mr.stopPropagation(),Tt.onEdit("remove",{key:Er,event:mr})}var hr=reactExports.createElement(ExportMenu,{onClick:function(Er){var Tr=Er.key,Mr=Er.domEvent;jt(Tr,Mr),Vt(!1)},prefixCls:"".concat(lr,"-menu"),id:er,tabIndex:-1,role:"listbox","aria-activedescendant":cr,selectedKeys:[Gt],"aria-label":ur!==void 0?ur:"expanded dropdown"},ct.map(function(mr){var Er=mr.closable,Tr=mr.disabled,Mr=mr.closeIcon,Or=mr.key,wr=mr.label,Cr=getRemovable(Er,Mr,Tt,Tr);return reactExports.createElement(MenuItem$2,{key:Or,id:"".concat(er,"-").concat(Or),role:"option","aria-controls":st&&"".concat(st,"-panel-").concat(Or),disabled:Tr},reactExports.createElement("span",null,wr),Cr&&reactExports.createElement("button",{type:"button","aria-label":At||"remove",tabIndex:0,className:"".concat(lr,"-menu-item-remove"),onClick:function(Rr){Rr.stopPropagation(),fr(Rr,Or)}},Mr||Tt.removeIcon||"×"))}));function pr(mr){for(var Er=ct.filter(function(Cr){return!Cr.disabled}),Tr=Er.findIndex(function(Cr){return Cr.key===Gt})||0,Mr=Er.length,Or=0;OrWn?"left":"right"})}),cr=_slicedToArray$3(lr,2),ur=cr[0],fr=cr[1],hr=useSyncState(0,function(Vn,Wn){!er&&At&&At({direction:Vn>Wn?"top":"bottom"})}),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState([0,0]),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useState([0,0]),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1],Cr=reactExports.useState([0,0]),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1],jr=reactExports.useState([0,0]),kr=_slicedToArray$3(jr,2),Fr=kr[0],_r=kr[1],Br=useUpdateState(new Map),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1],Hr=useOffsets(Ft,Xr,Or[0]),Vr=getUnitValue(mr,er),ln=getUnitValue(Or,er),Qr=getUnitValue(Rr,er),Zr=getUnitValue(Fr,er),vn=Vrzr?zr:Vn}var Wr=reactExports.useRef(null),Gr=reactExports.useState(),dn=_slicedToArray$3(Gr,2),mn=dn[0],hn=dn[1];function Cn(){hn(Date.now())}function Rn(){Wr.current&&clearTimeout(Wr.current)}useTouchMove(qt,function(Vn,Wn){function zn(wn,cn){wn(function(Pn){var An=qr(Pn+cn);return An})}return vn?(er?zn(fr,Vn):zn(yr,Wn),Rn(),Cn(),!0):!1}),reactExports.useEffect(function(){return Rn(),mn&&(Wr.current=setTimeout(function(){hn(0)},100)),Rn},[mn]);var kn=useVisibleRange(Hr,vr,er?ur:dr,ln,Qr,Zr,_objectSpread2(_objectSpread2({},_e),{},{tabs:Ft})),Bn=_slicedToArray$3(kn,2),Yn=Bn[0],Gn=Bn[1],io=useEvent(function(){var Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ft,Wn=Hr.get(Vn)||{width:0,height:0,left:0,right:0,top:0};if(er){var zn=ur;gt?Wn.rightur+vr&&(zn=Wn.right+Wn.width-vr):Wn.left<-ur?zn=-Wn.left:Wn.left+Wn.width>-ur+vr&&(zn=-(Wn.left+Wn.width-vr)),yr(0),fr(qr(zn))}else{var wn=dr;Wn.top<-dr?wn=-Wn.top:Wn.top+Wn.height>-dr+vr&&(wn=-(Wn.top+Wn.height-vr)),fr(0),yr(qr(wn))}}),pn={};wt==="top"||wt==="bottom"?pn[gt?"marginRight":"marginLeft"]=Tt:pn.marginTop=Tt;var gn=Ft.map(function(Vn,Wn){var zn=Vn.key;return reactExports.createElement(TabNode,{id:ct,prefixCls:kt,key:zn,tab:Vn,style:Wn===0?void 0:pn,closable:Vn.closable,editable:$t,active:zn===ft,renderWrapper:Rt,removeAriaLabel:_t==null?void 0:_t.removeAriaLabel,onClick:function(cn){It(zn,cn)},onFocus:function(){io(zn),Cn(),qt.current&&(gt||(qt.current.scrollLeft=0),qt.current.scrollTop=0)}})}),yn=function(){return Kr(function(){var Wn,zn=new Map,wn=(Wn=Xt.current)===null||Wn===void 0?void 0:Wn.getBoundingClientRect();return Ft.forEach(function(cn){var Pn,An=cn.key,Xn=(Pn=Xt.current)===null||Pn===void 0?void 0:Pn.querySelector('[data-node-key="'.concat(genDataNodeKey(An),'"]'));if(Xn){var eo=getTabSize(Xn,wn),ro=_slicedToArray$3(eo,4),Kn=ro[0],co=ro[1],uo=ro[2],vo=ro[3];zn.set(An,{width:Kn,height:co,left:uo,top:vo})}}),zn})};reactExports.useEffect(function(){yn()},[Ft.map(function(Vn){return Vn.key}).join("_")]);var _n=useUpdate(function(){var Vn=getSize$1(Ht),Wn=getSize$1(Wt),zn=getSize$1(Vt);Er([Vn[0]-Wn[0]-zn[0],Vn[1]-Wn[1]-zn[1]]);var wn=getSize$1(Zt);Pr(wn);var cn=getSize$1(Gt);_r(cn);var Pn=getSize$1(Xt);wr([Pn[0]-wn[0],Pn[1]-wn[1]]),yn()}),Tn=Ft.slice(0,Yn),Nn=Ft.slice(Gn+1),On=[].concat(_toConsumableArray$3(Tn),_toConsumableArray$3(Nn)),$n=Hr.get(ft),Sn=useIndicator({activeTabOffset:$n,horizontal:er,indicator:jt,rtl:gt}),xn=Sn.style;reactExports.useEffect(function(){io()},[ft,$r,zr,stringify$2($n),stringify$2(Hr),er]),reactExports.useEffect(function(){_n()},[gt]);var In=!!On.length,jn="".concat(kt,"-nav-wrap"),Hn,qn,Jn,ao;return er?gt?(qn=ur>0,Hn=ur!==zr):(Hn=ur<0,qn=ur!==$r):(Jn=dr<0,ao=dr!==$r),reactExports.createElement(RefResizeObserver,{onResize:_n},reactExports.createElement("div",{ref:useComposeRef(et,Ht),role:"tablist",className:classNames("".concat(kt,"-nav"),rt),style:st,onKeyDown:function(){Cn()}},reactExports.createElement(ExtraContent,{ref:Wt,position:"left",extra:xt,prefixCls:kt}),reactExports.createElement(RefResizeObserver,{onResize:_n},reactExports.createElement("div",{className:classNames(jn,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(jn,"-ping-left"),Hn),"".concat(jn,"-ping-right"),qn),"".concat(jn,"-ping-top"),Jn),"".concat(jn,"-ping-bottom"),ao)),ref:qt},reactExports.createElement(RefResizeObserver,{onResize:_n},reactExports.createElement("div",{ref:Xt,className:"".concat(kt,"-nav-list"),style:{transform:"translate(".concat(ur,"px, ").concat(dr,"px)"),transition:mn?"none":void 0}},gn,reactExports.createElement(AddButton,{ref:Zt,prefixCls:kt,locale:_t,editable:$t,style:_objectSpread2(_objectSpread2({},gn.length===0?void 0:pn),{},{visibility:In?"hidden":null})}),reactExports.createElement("div",{className:classNames("".concat(kt,"-ink-bar"),_defineProperty$c({},"".concat(kt,"-ink-bar-animated"),ut.inkBar)),style:xn}))))),reactExports.createElement(OperationNode$1,_extends$b({},_e,{removeAriaLabel:_t==null?void 0:_t.removeAriaLabel,ref:Gt,prefixCls:kt,tabs:On,className:!In&&gr,tabMoving:!!mn})),reactExports.createElement(ExtraContent,{ref:Vt,position:"right",extra:xt,prefixCls:kt})))}),TabPane$2=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.className,ct=_e.style,ut=_e.id,ft=_e.active,gt=_e.tabKey,xt=_e.children;return reactExports.createElement("div",{id:ut&&"".concat(ut,"-panel-").concat(gt),role:"tabpanel",tabIndex:ft?0:-1,"aria-labelledby":ut&&"".concat(ut,"-tab-").concat(gt),"aria-hidden":!ft,style:ct,className:classNames(rt,ft&&"".concat(rt,"-active"),st),ref:et},xt)}),_excluded$1i=["renderTabBar"],_excluded2$l=["label","key"],TabNavListWrapper=function(et){var rt=et.renderTabBar,st=_objectWithoutProperties$2(et,_excluded$1i),ct=reactExports.useContext(TabContext),ut=ct.tabs;if(rt){var ft=_objectSpread2(_objectSpread2({},st),{},{panes:ut.map(function(gt){var xt=gt.label,$t=gt.key,_t=_objectWithoutProperties$2(gt,_excluded2$l);return reactExports.createElement(TabPane$2,_extends$b({tab:xt,key:$t,tabKey:$t},_t))})});return rt(ft,TabNavList)}return reactExports.createElement(TabNavList,st)},_excluded$1h=["key","forceRender","style","className","destroyInactiveTabPane"],TabPanelList=function(et){var rt=et.id,st=et.activeKey,ct=et.animated,ut=et.tabPosition,ft=et.destroyInactiveTabPane,gt=reactExports.useContext(TabContext),xt=gt.prefixCls,$t=gt.tabs,_t=ct.tabPane,wt="".concat(xt,"-tabpane");return reactExports.createElement("div",{className:classNames("".concat(xt,"-content-holder"))},reactExports.createElement("div",{className:classNames("".concat(xt,"-content"),"".concat(xt,"-content-").concat(ut),_defineProperty$c({},"".concat(xt,"-content-animated"),_t))},$t.map(function(Tt){var Rt=Tt.key,It=Tt.forceRender,At=Tt.style,jt=Tt.className,Nt=Tt.destroyInactiveTabPane,kt=_objectWithoutProperties$2(Tt,_excluded$1h),Ft=Rt===st;return reactExports.createElement(CSSMotion,_extends$b({key:Rt,visible:Ft,forceRender:It,removeOnLeave:!!(ft||Nt),leavedClassName:"".concat(wt,"-hidden")},ct.tabPaneMotion),function(Ht,Wt){var Vt=Ht.style,qt=Ht.className;return reactExports.createElement(TabPane$2,_extends$b({},kt,{prefixCls:wt,id:rt,tabKey:Rt,animated:_t,active:Ft,style:_objectSpread2(_objectSpread2({},At),Vt),className:classNames(jt,qt),ref:Wt}))})})))};function useAnimateConfig$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},et;return _e===!1?et={inkBar:!1,tabPane:!1}:_e===!0?et={inkBar:!0,tabPane:!1}:et=_objectSpread2({inkBar:!0},_typeof$e(_e)==="object"?_e:{}),et.tabPaneMotion&&et.tabPane===void 0&&(et.tabPane=!0),!et.tabPaneMotion&&et.tabPane&&(et.tabPane=!1),et}var _excluded$1g=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uuid$3=0,Tabs$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-tabs":st,ut=_e.className,ft=_e.items,gt=_e.direction,xt=_e.activeKey,$t=_e.defaultActiveKey,_t=_e.editable,wt=_e.animated,Tt=_e.tabPosition,Rt=Tt===void 0?"top":Tt,It=_e.tabBarGutter,At=_e.tabBarStyle,jt=_e.tabBarExtraContent,Nt=_e.locale,kt=_e.moreIcon,Ft=_e.moreTransitionName,Ht=_e.destroyInactiveTabPane,Wt=_e.renderTabBar,Vt=_e.onChange,qt=_e.onTabClick,Xt=_e.onTabScroll,Gt=_e.getPopupContainer,Zt=_e.popupClassName,er=_e.indicator,lr=_objectWithoutProperties$2(_e,_excluded$1g),cr=reactExports.useMemo(function(){return(ft||[]).filter(function(_r){return _r&&_typeof$e(_r)==="object"&&"key"in _r})},[ft]),ur=gt==="rtl",fr=useAnimateConfig$1(wt),hr=reactExports.useState(!1),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1];reactExports.useEffect(function(){yr(isMobile())},[]);var Sr=useMergedState(function(){var _r;return(_r=cr[0])===null||_r===void 0?void 0:_r.key},{value:xt,defaultValue:$t}),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useState(function(){return cr.findIndex(function(_r){return _r.key===mr})}),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1];reactExports.useEffect(function(){var _r=cr.findIndex(function(Dr){return Dr.key===mr});if(_r===-1){var Br;_r=Math.max(0,Math.min(Or,cr.length-1)),Er((Br=cr[_r])===null||Br===void 0?void 0:Br.key)}wr(_r)},[cr.map(function(_r){return _r.key}).join("_"),mr,Or]);var Cr=useMergedState(null,{value:rt}),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1];reactExports.useEffect(function(){rt||(Pr("rc-tabs-".concat(uuid$3)),uuid$3+=1)},[]);function jr(_r,Br){qt==null||qt(_r,Br);var Dr=_r!==mr;Er(_r),Dr&&(Vt==null||Vt(_r))}var kr={id:Rr,activeKey:mr,animated:fr,tabPosition:Rt,rtl:ur,mobile:dr},Fr=_objectSpread2(_objectSpread2({},kr),{},{editable:_t,locale:Nt,moreIcon:kt,moreTransitionName:Ft,tabBarGutter:It,onTabClick:jr,onTabScroll:Xt,extra:jt,style:At,panes:null,getPopupContainer:Gt,popupClassName:Zt,indicator:er});return reactExports.createElement(TabContext.Provider,{value:{tabs:cr,prefixCls:ct}},reactExports.createElement("div",_extends$b({ref:et,id:rt,className:classNames(ct,"".concat(ct,"-").concat(Rt),_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(ct,"-mobile"),dr),"".concat(ct,"-editable"),_t),"".concat(ct,"-rtl"),ur),ut)},lr),reactExports.createElement(TabNavListWrapper,_extends$b({},Fr,{renderTabBar:Wt})),reactExports.createElement(TabPanelList,_extends$b({destroyInactiveTabPane:Ht},kr,{animated:fr}))))});const motion={motionAppear:!1,motionEnter:!0,motionLeave:!0};function useAnimateConfig(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},rt;return et===!1?rt={inkBar:!1,tabPane:!1}:et===!0?rt={inkBar:!0,tabPane:!0}:rt=Object.assign({inkBar:!0},typeof et=="object"?et:{}),rt.tabPane&&(rt.tabPaneMotion=Object.assign(Object.assign({},motion),{motionName:getTransitionName(_e,"switch")})),rt}var __rest$L=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctet)}function useLegacyItems(_e,et){if(_e)return _e;const rt=toArray$e(et).map(st=>{if(reactExports.isValidElement(st)){const{key:ct,props:ut}=st,ft=ut||{},{tab:gt}=ft,xt=__rest$L(ft,["tab"]);return Object.assign(Object.assign({key:String(ct)},xt),{label:gt})}return null});return filter(rt)}const genMotionStyle$2=_e=>{const{componentCls:et,motionDurationSlow:rt}=_e;return[{[et]:{[`${et}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${rt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${rt}`}}}}},[initSlideMotion(_e,"slide-up"),initSlideMotion(_e,"slide-down")]]},genCardStyle=_e=>{const{componentCls:et,tabsCardPadding:rt,cardBg:st,cardGutter:ct,colorBorderSecondary:ut,itemSelectedColor:ft}=_e;return{[`${et}-card`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{margin:0,padding:rt,background:st,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${ut}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${et}-tab-active`]:{color:ft,background:_e.colorBgContainer},[`${et}-ink-bar`]:{visibility:"hidden"}},[`&${et}-top, &${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginLeft:{_skip_check_:!0,value:unit$1(ct)}}}},[`&${et}-top`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:`${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0 0`},[`${et}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:`0 0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)}`},[`${et}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${et}-left, &${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginTop:unit$1(ct)}}},[`&${et}-left`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(_e.borderRadiusLG)} 0 0 ${unit$1(_e.borderRadiusLG)}`}},[`${et}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0`}},[`${et}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},genDropdownStyle=_e=>{const{componentCls:et,itemHoverColor:rt,dropdownEdgeChildVerticalPadding:st}=_e;return{[`${et}-dropdown`]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${et}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${unit$1(st)} 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({},textEllipsis),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${unit$1(_e.paddingXXS)} ${unit$1(_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:rt}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},genPositionStyle=_e=>{const{componentCls:et,margin:rt,colorBorderSecondary:st,horizontalMargin:ct,verticalItemPadding:ut,verticalItemMargin:ft,calc:gt}=_e;return{[`${et}-top, ${et}-bottom`]:{flexDirection:"column",[`> ${et}-nav, > div > ${et}-nav`]:{margin:ct,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${st}`,content:"''"},[`${et}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow}, right ${_e.motionDurationSlow}`}},[`${et}-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},[`&${et}-nav-wrap-ping-left::before`]:{opacity:1},[`&${et}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${et}-top`]:{[`> ${et}-nav, - > div > ${et}-nav`]:{"&::before":{bottom:0},[`${et}-ink-bar`]:{bottom:0}}},[`${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{order:1,marginTop:rt,marginBottom:0,"&::before":{top:0},[`${et}-ink-bar`]:{top:0}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{order:0}},[`${et}-left, ${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{flexDirection:"column",minWidth:gt(_e.controlHeight).mul(1.25).equal(),[`${et}-tab`]:{padding:ut,textAlign:"center"},[`${et}-tab + ${et}-tab`]:{margin:ft},[`${et}-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},[`&${et}-nav-wrap-ping-top::before`]:{opacity:1},[`&${et}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${et}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${et}-nav-list, ${et}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${et}-left`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{marginLeft:{_skip_check_:!0,value:unit$1(gt(_e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},[`> ${et}-content > ${et}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{order:1,[`${et}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:gt(_e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},[`> ${et}-content > ${et}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},genSizeStyle$1=_e=>{const{componentCls:et,cardPaddingSM:rt,cardPaddingLG:st,horizontalItemPaddingSM:ct,horizontalItemPaddingLG:ut}=_e;return{[et]:{"&-small":{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:ct,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:ut,fontSize:_e.titleFontSizeLG}}}},[`${et}-card`]:{[`&${et}-small`]:{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:rt}},[`&${et}-bottom`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:`0 0 ${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)}`}},[`&${et}-top`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:`${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)} 0 0`}},[`&${et}-right`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)} 0`}}},[`&${et}-left`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(_e.borderRadius)} 0 0 ${unit$1(_e.borderRadius)}`}}}},[`&${et}-large`]:{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:st}}}}}},genTabStyle=_e=>{const{componentCls:et,itemActiveColor:rt,itemHoverColor:st,iconCls:ct,tabsHorizontalItemMargin:ut,horizontalItemPadding:ft,itemSelectedColor:gt,itemColor:xt}=_e,$t=`${et}-tab`;return{[$t]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:ft,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:xt,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:rt}},genFocusStyle(_e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${$t}-icon:not(:last-child)`]:{marginInlineEnd:_e.marginSM}},"&-remove":{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}},"&:hover":{color:st},[`&${$t}-active ${$t}-btn`]:{color:gt,textShadow:_e.tabsActiveTextShadow},[`&${$t}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${$t}-disabled ${$t}-btn, &${$t}-disabled ${et}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${$t}-remove ${ct}`]:{margin:0},[`${ct}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${$t} + ${$t}`]:{margin:{_skip_check_:!0,value:ut}}}},genRtlStyle$2=_e=>{const{componentCls:et,tabsHorizontalItemMarginRTL:rt,iconCls:st,cardGutter:ct,calc:ut}=_e;return{[`${et}-rtl`]:{direction:"rtl",[`${et}-nav`]:{[`${et}-tab`]:{margin:{_skip_check_:!0,value:rt},[`${et}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[st]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:unit$1(_e.marginSM)}},[`${et}-tab-remove`]:{marginRight:{_skip_check_:!0,value:unit$1(_e.marginXS)},marginLeft:{_skip_check_:!0,value:unit$1(ut(_e.marginXXS).mul(-1).equal())},[st]:{margin:0}}}},[`&${et}-left`]:{[`> ${et}-nav`]:{order:1},[`> ${et}-content-holder`]:{order:0}},[`&${et}-right`]:{[`> ${et}-nav`]:{order:0},[`> ${et}-content-holder`]:{order:1}},[`&${et}-card${et}-top, &${et}-card${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginRight:{_skip_check_:!0,value:ct},marginLeft:{_skip_check_:!0,value:0}}}}},[`${et}-dropdown-rtl`]:{direction:"rtl"},[`${et}-menu-item`]:{[`${et}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},genTabsStyle=_e=>{const{componentCls:et,tabsCardPadding:rt,cardHeight:st,cardGutter:ct,itemHoverColor:ut,itemActiveColor:ft,colorBorderSecondary:gt}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"flex",[`> ${et}-nav, > div > ${et}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${et}-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"}},[`${et}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${et}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${et}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${et}-nav-more`]:{position:"relative",padding:rt,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:"''"}},[`${et}-nav-add`]:Object.assign({minWidth:st,minHeight:st,marginLeft:{_skip_check_:!0,value:ct},padding:`0 ${unit$1(_e.paddingXS)}`,background:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${gt}`,borderRadius:`${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:ut},"&:active, &:focus:not(:focus-visible)":{color:ft}},genFocusStyle(_e))},[`${et}-extra-content`]:{flex:"none"},[`${et}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),genTabStyle(_e)),{[`${et}-content`]:{position:"relative",width:"100%"},[`${et}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${et}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${et}-centered`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-nav-wrap`]:{[`&:not([class*='${et}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},prepareComponentToken$k=_e=>{const et=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:et,cardPadding:`${(et-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}},useStyle$E=genStyleHooks("Tabs",_e=>{const et=merge$7(_e,{tabsCardPadding:_e.cardPadding,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit$1(_e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit$1(_e.horizontalItemGutter)}`});return[genSizeStyle$1(et),genRtlStyle$2(et),genPositionStyle(et),genDropdownStyle(et),genCardStyle(et),genTabsStyle(et),genMotionStyle$2(et)]},prepareComponentToken$k),TabPane=()=>null,TabPane$1=TabPane;var __rest$G=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var et,rt,st,ct,ut,ft,gt;const{type:xt,className:$t,rootClassName:_t,size:wt,onEdit:Tt,hideAdd:Rt,centered:It,addIcon:At,moreIcon:jt,popupClassName:Nt,children:kt,items:Ft,animated:Ht,style:Wt,indicatorSize:Vt,indicator:qt}=_e,Gt=__rest$G(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Xt}=Gt,{direction:Zt,tabs:lr,getPrefixCls:er,getPopupContainer:cr}=reactExports.useContext(ConfigContext$1),ur=er("tabs",Xt),pr=useCSSVarCls(ur),[hr,fr,dr]=useStyle$E(ur,pr);let yr;xt==="editable-card"&&(yr={onEdit:(Or,_r)=>{let{key:Cr,event:Nr}=_r;Tt==null||Tt(Or==="add"?Nr:Cr,Or)},removeIcon:reactExports.createElement(CloseOutlined$1,null),addIcon:(At??(lr==null?void 0:lr.addIcon))||reactExports.createElement(PlusOutlined$3,null),showAdd:Rt!==!0});const $r=er(),Er=useSize(wt),mr=useLegacyItems(Ft,kt),Sr=useAnimateConfig(ur,Ht),Tr=Object.assign(Object.assign({},lr==null?void 0:lr.style),Wt),jr={align:(et=qt==null?void 0:qt.align)!==null&&et!==void 0?et:(rt=lr==null?void 0:lr.indicator)===null||rt===void 0?void 0:rt.align,size:(ft=(ct=(st=qt==null?void 0:qt.size)!==null&&st!==void 0?st:Vt)!==null&&ct!==void 0?ct:(ut=lr==null?void 0:lr.indicator)===null||ut===void 0?void 0:ut.size)!==null&&ft!==void 0?ft:lr==null?void 0:lr.indicatorSize};return hr(reactExports.createElement(Tabs$2,Object.assign({direction:Zt,getPopupContainer:cr,moreTransitionName:`${$r}-slide-up`},Gt,{items:mr,className:classNames({[`${ur}-${Er}`]:Er,[`${ur}-card`]:["card","editable-card"].includes(xt),[`${ur}-editable-card`]:xt==="editable-card",[`${ur}-centered`]:It},lr==null?void 0:lr.className,$t,_t,fr,dr,pr),popupClassName:classNames(Nt,fr,dr,pr),style:Tr,editable:yr,moreIcon:(gt=jt??(lr==null?void 0:lr.moreIcon))!==null&>!==void 0?gt:reactExports.createElement(EllipsisOutlined$1,null),prefixCls:ur,animated:Sr,indicator:jr})))};Tabs.TabPane=TabPane$1;const Tabs$1=Tabs;function throttle$3(_e,et,rt){var st=rt||{},ct=st.noTrailing,ut=ct===void 0?!1:ct,ft=st.noLeading,gt=ft===void 0?!1:ft,xt=st.debounceMode,$t=xt===void 0?void 0:xt,_t,wt=!1,Tt=0;function Rt(){_t&&clearTimeout(_t)}function It(jt){var Nt=jt||{},kt=Nt.upcomingOnly,Ft=kt===void 0?!1:kt;Rt(),wt=!Ft}function At(){for(var jt=arguments.length,Nt=new Array(jt),kt=0;kt_e?gt?(Tt=Date.now(),ut||(_t=setTimeout($t?Vt:Wt,_e))):Wt():ut!==!0&&(_t=setTimeout($t?Vt:Wt,$t===void 0?_e-Ht:_e))}return At.cancel=It,At}function debounce$3(_e,et,rt){var st=rt||{},ct=st.atBegin,ut=ct===void 0?!1:ct;return throttle$3(_e,et,{debounceMode:ut!==!1})}var TransBtn$1=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear$1=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn$1,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext$1=reactExports.createContext(null);function useBaseProps$1(){return reactExports.useContext(BaseSelectContext$1)}function useDelayReset$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl$1(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var Input$6=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Gt=qt,Xt=Gt.ref,Zt=Gt.props,lr=Zt.onKeyDown,er=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,pr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Xt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),lr&&lr(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),er&&er(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),pr&&pr(dr)},onPaste:kt})),qt},RefInput$1=reactExports.forwardRef(Input$6);function toArray$8(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient$1=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$4=isClient$1;function hasValue$3(_e){return _e!=null}function isComboNoValue$1(_e){return!_e&&_e!==0}function isTitleType$3(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle$1(_e){var et=void 0;return _e&&(isTitleType$3(_e.title)?et=_e.title.toString():isTitleType$3(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect$1(_e,et){isBrowserClient$4?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$2(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown$1=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector$1=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Gt=et.onRemove,Xt=et.onInputChange,Zt=et.onInputPaste,lr=et.onInputKeyDown,er=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,pr=reactExports.useRef(null),hr=reactExports.useState(0),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState(!1),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr="".concat(st,"-selection"),jr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect$1(function(){yr(pr.current.scrollWidth)},[jr]);var _r=function(Fr,wr,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle$1(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},wr),Dr&&reactExports.createElement(TransBtn$1,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown$1,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,wr,Br,Dr,Xr){var Kr=function(qr){onPreventMouseDown$1(qr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:wr,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var wr=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!wr,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var zr=String(Kr);zr.length>Ft&&(Kr="".concat(zr.slice(0,Ft),"..."))}var qr=function(Qr){Qr&&Qr.stopPropagation(),Gt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,wr,Xr,qr):_r(Fr,Kr,wr,Xr,qr)},Rr=function(Fr){var wr=typeof Wt=="function"?Wt(Fr):Wt;return _r({title:wr},wr,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Sr(!0)},onBlur:function(){Sr(!1)}},reactExports.createElement(RefInput$1,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:jr,onKeyDown:lr,onMouseDown:er,onChange:Xt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:pr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},jr," ")),Mr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$2,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,Mr,!ct.length&&!jr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector$1=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Gt=et.onInputCompositionEnd,Xt=et.title,Zt=reactExports.useState(!1),lr=_slicedToArray$3(Zt,2),er=lr[0],cr=lr[1],ur=_t==="combobox",pr=ur||At,hr=Tt[0],fr=jt||"";ur&&Nt&&!er&&(fr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!fr,yr=Xt===void 0?getTitle$1(hr):Xt,$r=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput$1,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:pr,activeDescendantId:$t,value:fr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Gt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,$r)};function isValidateOpenKey$1(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector$1=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock$1(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(fr){var dr=fr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&fr.preventDefault(),It&&It(fr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(fr.target.value)),isValidateOpenKey$1(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(fr){wt(fr,!0,ct.current)!==!1&&Rt(!0)},Gt=function(){ct.current=!0},Xt=function(fr){ct.current=!1,gt!=="combobox"&&qt(fr.target.value)},Zt=function(fr){var dr=fr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},lr=function(fr){var dr=fr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},er=function(fr){var dr=fr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(fr){var dr=kt();fr.target!==st.current&&!dr&>!=="combobox"&&fr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:lr,onInputCompositionStart:Gt,onInputCompositionEnd:Xt},pr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector$1,_extends$b({},et,ur)):reactExports.createElement(SingleSelector$1,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:er,onMouseDown:cr},pr)},ForwardSelector$1=reactExports.forwardRef(Selector$1),_excluded$1f=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function(et){var rt=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger$1=function(et,rt){var st=et.prefixCls;et.disabled;var ct=et.visible,ut=et.children,ft=et.popupElement,gt=et.animation,xt=et.transitionName,$t=et.dropdownStyle,_t=et.dropdownClassName,wt=et.direction,Tt=wt===void 0?"ltr":wt,Rt=et.placement,It=et.builtinPlacements,At=et.dropdownMatchSelectWidth,jt=et.dropdownRender,Nt=et.dropdownAlign,kt=et.getPopupContainer,Ft=et.empty,Ht=et.getTriggerDOMNode,Wt=et.onPopupVisibleChange,Vt=et.onPopupMouseEnter,qt=_objectWithoutProperties$2(et,_excluded$1f),Gt="".concat(st,"-dropdown"),Xt=ft;jt&&(Xt=jt(ft));var Zt=reactExports.useMemo(function(){return It||getBuiltInPlacements$1(At)},[It,At]),lr=gt?"".concat(Gt,"-").concat(gt):xt,er=typeof At=="number",cr=reactExports.useMemo(function(){return er?null:At===!1?"minWidth":"width"},[At,er]),ur=$t;er&&(ur=_objectSpread2(_objectSpread2({},ur),{},{width:At}));var pr=reactExports.useRef(null);return reactExports.useImperativeHandle(rt,function(){return{getPopupElement:function(){return pr.current}}}),reactExports.createElement(Trigger,_extends$b({},qt,{showAction:Wt?["click"]:[],hideAction:Wt?["click"]:[],popupPlacement:Rt||(Tt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zt,prefixCls:Gt,popupTransitionName:lr,popup:reactExports.createElement("div",{ref:pr,onMouseEnter:Vt},Xt),stretch:cr,popupAlign:Nt,popupVisible:ct,getPopupContainer:kt,popupClassName:classNames(_t,_defineProperty$c({},"".concat(Gt,"-empty"),Ft)),popupStyle:ur,getTriggerDOMNode:Ht,onPopupVisibleChange:Wt}),ut)},RefSelectTrigger$1=reactExports.forwardRef(SelectTrigger$1);function getKey$3(_e,et){var rt=_e.key,st;return"value"in _e&&(st=_e.value),rt??(st!==void 0?st:"rc-index-key-".concat(et))}function fillFieldNames$5(_e,et){var rt=_e||{},st=rt.label,ct=rt.value,ut=rt.options,ft=rt.groupLabel,gt=st||(et?"children":"label");return{label:gt,value:ct||"value",options:ut||"options",groupLabel:ft||gt}}function flattenOptions$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$5(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$3(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$3(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption$1(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent$1=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext$1=reactExports.createContext(null),_excluded$1e=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS$1=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple$1=function(et){return et==="tags"||et==="multiple"},BaseSelect$1=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Gt=_e.onDropdownVisibleChange,Xt=_e.activeValue,Zt=_e.onActiveValueChange,lr=_e.activeDescendantId,er=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,pr=_e.onSearchSplit,hr=_e.tokenSeparators,fr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,$r=_e.OptionList,Er=_e.animation,mr=_e.transitionName,Sr=_e.dropdownStyle,Tr=_e.dropdownClassName,jr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,_r=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,Mr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,wr=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$1e),Kr=isMultiple$1(Nt),zr=(gt!==void 0?gt:Kr)||Nt==="combobox",qr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS$1.forEach(function(Fn){delete qr[Fn]}),_t==null||_t.forEach(function(Fn){delete qr[Fn]});var pn=reactExports.useState(!1),Qr=_slicedToArray$3(pn,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),br=reactExports.useRef(null),Hr=reactExports.useRef(null),Vr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset$1(),cn=_slicedToArray$3(Gr,3),mn=cn[0],hn=cn[1],En=cn[2];reactExports.useImperativeHandle(et,function(){var Fn,kn;return{focus:(Fn=Hr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(kn=Hr.current)===null||kn===void 0?void 0:kn.blur,scrollTo:function(Eo){var so;return(so=Vr.current)===null||so===void 0?void 0:so.scrollTo(Eo)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return er;var kn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof kn=="string"||typeof kn=="number"?String(kn):""},[er,Nt,wt]),Dn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),qn=reactExports.useState(!1),ao=_slicedToArray$3(qn,2),dn=ao[0],gn=ao[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),wn=_slicedToArray$3(yn,2),Tn=wn[0],Nn=wn[1],On=dn?Tn:!1,xn=!At&&Rt;(kt||xn&&On&&Nt==="combobox")&&(On=!1);var Cn=xn?!1:On,Sn=reactExports.useCallback(function(Fn){var kn=Fn!==void 0?Fn:!On;kt||(Nn(kn),On!==kn&&(Gt==null||Gt(kn)))},[kt,On,Nn,Gt]),Mn=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` + > div > ${et}-nav`]:{"&::before":{bottom:0},[`${et}-ink-bar`]:{bottom:0}}},[`${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{order:1,marginTop:rt,marginBottom:0,"&::before":{top:0},[`${et}-ink-bar`]:{top:0}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{order:0}},[`${et}-left, ${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{flexDirection:"column",minWidth:gt(_e.controlHeight).mul(1.25).equal(),[`${et}-tab`]:{padding:ut,textAlign:"center"},[`${et}-tab + ${et}-tab`]:{margin:ft},[`${et}-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},[`&${et}-nav-wrap-ping-top::before`]:{opacity:1},[`&${et}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${et}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${et}-nav-list, ${et}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${et}-left`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{marginLeft:{_skip_check_:!0,value:unit$1(gt(_e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},[`> ${et}-content > ${et}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${et}-right`]:{[`> ${et}-nav, > div > ${et}-nav`]:{order:1,[`${et}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${et}-content-holder, > div > ${et}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:gt(_e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`},[`> ${et}-content > ${et}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},genSizeStyle$1=_e=>{const{componentCls:et,cardPaddingSM:rt,cardPaddingLG:st,horizontalItemPaddingSM:ct,horizontalItemPaddingLG:ut}=_e;return{[et]:{"&-small":{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:ct,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:ut,fontSize:_e.titleFontSizeLG}}}},[`${et}-card`]:{[`&${et}-small`]:{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:rt}},[`&${et}-bottom`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:`0 0 ${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)}`}},[`&${et}-top`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:`${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)} 0 0`}},[`&${et}-right`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(_e.borderRadius)} ${unit$1(_e.borderRadius)} 0`}}},[`&${et}-left`]:{[`> ${et}-nav ${et}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(_e.borderRadius)} 0 0 ${unit$1(_e.borderRadius)}`}}}},[`&${et}-large`]:{[`> ${et}-nav`]:{[`${et}-tab`]:{padding:st}}}}}},genTabStyle=_e=>{const{componentCls:et,itemActiveColor:rt,itemHoverColor:st,iconCls:ct,tabsHorizontalItemMargin:ut,horizontalItemPadding:ft,itemSelectedColor:gt,itemColor:xt}=_e,$t=`${et}-tab`;return{[$t]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:ft,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:xt,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:rt}},genFocusStyle(_e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${$t}-icon:not(:last-child)`]:{marginInlineEnd:_e.marginSM}},"&-remove":{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}},"&:hover":{color:st},[`&${$t}-active ${$t}-btn`]:{color:gt,textShadow:_e.tabsActiveTextShadow},[`&${$t}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${$t}-disabled ${$t}-btn, &${$t}-disabled ${et}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${$t}-remove ${ct}`]:{margin:0},[`${ct}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${$t} + ${$t}`]:{margin:{_skip_check_:!0,value:ut}}}},genRtlStyle$2=_e=>{const{componentCls:et,tabsHorizontalItemMarginRTL:rt,iconCls:st,cardGutter:ct,calc:ut}=_e;return{[`${et}-rtl`]:{direction:"rtl",[`${et}-nav`]:{[`${et}-tab`]:{margin:{_skip_check_:!0,value:rt},[`${et}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[st]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:unit$1(_e.marginSM)}},[`${et}-tab-remove`]:{marginRight:{_skip_check_:!0,value:unit$1(_e.marginXS)},marginLeft:{_skip_check_:!0,value:unit$1(ut(_e.marginXXS).mul(-1).equal())},[st]:{margin:0}}}},[`&${et}-left`]:{[`> ${et}-nav`]:{order:1},[`> ${et}-content-holder`]:{order:0}},[`&${et}-right`]:{[`> ${et}-nav`]:{order:0},[`> ${et}-content-holder`]:{order:1}},[`&${et}-card${et}-top, &${et}-card${et}-bottom`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-tab + ${et}-tab`]:{marginRight:{_skip_check_:!0,value:ct},marginLeft:{_skip_check_:!0,value:0}}}}},[`${et}-dropdown-rtl`]:{direction:"rtl"},[`${et}-menu-item`]:{[`${et}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},genTabsStyle=_e=>{const{componentCls:et,tabsCardPadding:rt,cardHeight:st,cardGutter:ct,itemHoverColor:ut,itemActiveColor:ft,colorBorderSecondary:gt}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"flex",[`> ${et}-nav, > div > ${et}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${et}-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"}},[`${et}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${et}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${et}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${et}-nav-more`]:{position:"relative",padding:rt,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:"''"}},[`${et}-nav-add`]:Object.assign({minWidth:st,minHeight:st,marginLeft:{_skip_check_:!0,value:ct},padding:`0 ${unit$1(_e.paddingXS)}`,background:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${gt}`,borderRadius:`${unit$1(_e.borderRadiusLG)} ${unit$1(_e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:ut},"&:active, &:focus:not(:focus-visible)":{color:ft}},genFocusStyle(_e))},[`${et}-extra-content`]:{flex:"none"},[`${et}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),genTabStyle(_e)),{[`${et}-content`]:{position:"relative",width:"100%"},[`${et}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${et}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${et}-centered`]:{[`> ${et}-nav, > div > ${et}-nav`]:{[`${et}-nav-wrap`]:{[`&:not([class*='${et}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},prepareComponentToken$m=_e=>{const et=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:et,cardPadding:`${(et-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}},useStyle$G=genStyleHooks("Tabs",_e=>{const et=merge$7(_e,{tabsCardPadding:_e.cardPadding,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit$1(_e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit$1(_e.horizontalItemGutter)}`});return[genSizeStyle$1(et),genRtlStyle$2(et),genPositionStyle(et),genDropdownStyle(et),genCardStyle(et),genTabsStyle(et),genMotionStyle$2(et)]},prepareComponentToken$m),TabPane=()=>null,TabPane$1=TabPane;var __rest$K=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var et,rt,st,ct,ut,ft,gt;const{type:xt,className:$t,rootClassName:_t,size:wt,onEdit:Tt,hideAdd:Rt,centered:It,addIcon:At,moreIcon:jt,popupClassName:Nt,children:kt,items:Ft,animated:Ht,style:Wt,indicatorSize:Vt,indicator:qt}=_e,Xt=__rest$K(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Gt}=Xt,{direction:Zt,tabs:er,getPrefixCls:lr,getPopupContainer:cr}=reactExports.useContext(ConfigContext$1),ur=lr("tabs",Gt),fr=useCSSVarCls(ur),[hr,pr,dr]=useStyle$G(ur,fr);let yr;xt==="editable-card"&&(yr={onEdit:(Or,wr)=>{let{key:Cr,event:Nr}=wr;Tt==null||Tt(Or==="add"?Nr:Cr,Or)},removeIcon:reactExports.createElement(CloseOutlined$1,null),addIcon:(At??(er==null?void 0:er.addIcon))||reactExports.createElement(PlusOutlined$3,null),showAdd:Rt!==!0});const Sr=lr(),br=useSize(wt),mr=useLegacyItems(Ft,kt),Er=useAnimateConfig(ur,Ht),Tr=Object.assign(Object.assign({},er==null?void 0:er.style),Wt),Mr={align:(et=qt==null?void 0:qt.align)!==null&&et!==void 0?et:(rt=er==null?void 0:er.indicator)===null||rt===void 0?void 0:rt.align,size:(ft=(ct=(st=qt==null?void 0:qt.size)!==null&&st!==void 0?st:Vt)!==null&&ct!==void 0?ct:(ut=er==null?void 0:er.indicator)===null||ut===void 0?void 0:ut.size)!==null&&ft!==void 0?ft:er==null?void 0:er.indicatorSize};return hr(reactExports.createElement(Tabs$2,Object.assign({direction:Zt,getPopupContainer:cr,moreTransitionName:`${Sr}-slide-up`},Xt,{items:mr,className:classNames({[`${ur}-${br}`]:br,[`${ur}-card`]:["card","editable-card"].includes(xt),[`${ur}-editable-card`]:xt==="editable-card",[`${ur}-centered`]:It},er==null?void 0:er.className,$t,_t,pr,dr,fr),popupClassName:classNames(Nt,pr,dr,fr),style:Tr,editable:yr,moreIcon:(gt=jt??(er==null?void 0:er.moreIcon))!==null&>!==void 0?gt:reactExports.createElement(EllipsisOutlined$1,null),prefixCls:ur,animated:Er,indicator:Mr})))};Tabs.TabPane=TabPane$1;const Tabs$1=Tabs;function throttle$3(_e,et,rt){var st=rt||{},ct=st.noTrailing,ut=ct===void 0?!1:ct,ft=st.noLeading,gt=ft===void 0?!1:ft,xt=st.debounceMode,$t=xt===void 0?void 0:xt,_t,wt=!1,Tt=0;function Rt(){_t&&clearTimeout(_t)}function It(jt){var Nt=jt||{},kt=Nt.upcomingOnly,Ft=kt===void 0?!1:kt;Rt(),wt=!Ft}function At(){for(var jt=arguments.length,Nt=new Array(jt),kt=0;kt_e?gt?(Tt=Date.now(),ut||(_t=setTimeout($t?Vt:Wt,_e))):Wt():ut!==!0&&(_t=setTimeout($t?Vt:Wt,$t===void 0?_e-Ht:_e))}return At.cancel=It,At}function debounce$3(_e,et,rt){var st=rt||{},ct=st.atBegin,ut=ct===void 0?!1:ct;return throttle$3(_e,et,{debounceMode:ut!==!1})}var TransBtn$1=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear$1=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn$1,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext$1=reactExports.createContext(null);function useBaseProps$1(){return reactExports.useContext(BaseSelectContext$1)}function useDelayReset$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl$1(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var Input$6=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Xt=qt,Gt=Xt.ref,Zt=Xt.props,er=Zt.onKeyDown,lr=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,fr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Gt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),er&&er(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),lr&&lr(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),fr&&fr(dr)},onPaste:kt})),qt},RefInput$1=reactExports.forwardRef(Input$6);function toArray$9(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient$1=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$4=isClient$1;function hasValue$3(_e){return _e!=null}function isComboNoValue$1(_e){return!_e&&_e!==0}function isTitleType$3(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle$1(_e){var et=void 0;return _e&&(isTitleType$3(_e.title)?et=_e.title.toString():isTitleType$3(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect$1(_e,et){isBrowserClient$4?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$2(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown$1=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector$1=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Xt=et.onRemove,Gt=et.onInputChange,Zt=et.onInputPaste,er=et.onInputKeyDown,lr=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,fr=reactExports.useRef(null),hr=reactExports.useState(0),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState(!1),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr="".concat(st,"-selection"),Mr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect$1(function(){yr(fr.current.scrollWidth)},[Mr]);var wr=function(Fr,_r,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle$1(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},_r),Dr&&reactExports.createElement(TransBtn$1,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown$1,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,_r,Br,Dr,Xr){var Kr=function(Vr){onPreventMouseDown$1(Vr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:_r,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var _r=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!_r,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var Hr=String(Kr);Hr.length>Ft&&(Kr="".concat(Hr.slice(0,Ft),"..."))}var Vr=function(Qr){Qr&&Qr.stopPropagation(),Xt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,_r,Xr,Vr):wr(Fr,Kr,_r,Xr,Vr)},Rr=function(Fr){var _r=typeof Wt=="function"?Wt(Fr):Wt;return wr({title:_r},_r,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Er(!0)},onBlur:function(){Er(!1)}},reactExports.createElement(RefInput$1,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:Mr,onKeyDown:er,onMouseDown:lr,onChange:Gt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:fr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},Mr," ")),jr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$2,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,jr,!ct.length&&!Mr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector$1=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Xt=et.onInputCompositionEnd,Gt=et.title,Zt=reactExports.useState(!1),er=_slicedToArray$3(Zt,2),lr=er[0],cr=er[1],ur=_t==="combobox",fr=ur||At,hr=Tt[0],pr=jt||"";ur&&Nt&&!lr&&(pr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!pr,yr=Gt===void 0?getTitle$1(hr):Gt,Sr=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput$1,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:fr,activeDescendantId:$t,value:pr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Xt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,Sr)};function isValidateOpenKey$1(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector$1=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock$1(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(pr){var dr=pr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&pr.preventDefault(),It&&It(pr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(pr.target.value)),isValidateOpenKey$1(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(pr){wt(pr,!0,ct.current)!==!1&&Rt(!0)},Xt=function(){ct.current=!0},Gt=function(pr){ct.current=!1,gt!=="combobox"&&qt(pr.target.value)},Zt=function(pr){var dr=pr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},er=function(pr){var dr=pr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},lr=function(pr){var dr=pr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(pr){var dr=kt();pr.target!==st.current&&!dr&>!=="combobox"&&pr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:er,onInputCompositionStart:Xt,onInputCompositionEnd:Gt},fr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector$1,_extends$b({},et,ur)):reactExports.createElement(SingleSelector$1,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:lr,onMouseDown:cr},fr)},ForwardSelector$1=reactExports.forwardRef(Selector$1),_excluded$1f=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function(et){var rt=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger$1=function(et,rt){var st=et.prefixCls;et.disabled;var ct=et.visible,ut=et.children,ft=et.popupElement,gt=et.animation,xt=et.transitionName,$t=et.dropdownStyle,_t=et.dropdownClassName,wt=et.direction,Tt=wt===void 0?"ltr":wt,Rt=et.placement,It=et.builtinPlacements,At=et.dropdownMatchSelectWidth,jt=et.dropdownRender,Nt=et.dropdownAlign,kt=et.getPopupContainer,Ft=et.empty,Ht=et.getTriggerDOMNode,Wt=et.onPopupVisibleChange,Vt=et.onPopupMouseEnter,qt=_objectWithoutProperties$2(et,_excluded$1f),Xt="".concat(st,"-dropdown"),Gt=ft;jt&&(Gt=jt(ft));var Zt=reactExports.useMemo(function(){return It||getBuiltInPlacements$1(At)},[It,At]),er=gt?"".concat(Xt,"-").concat(gt):xt,lr=typeof At=="number",cr=reactExports.useMemo(function(){return lr?null:At===!1?"minWidth":"width"},[At,lr]),ur=$t;lr&&(ur=_objectSpread2(_objectSpread2({},ur),{},{width:At}));var fr=reactExports.useRef(null);return reactExports.useImperativeHandle(rt,function(){return{getPopupElement:function(){return fr.current}}}),reactExports.createElement(Trigger,_extends$b({},qt,{showAction:Wt?["click"]:[],hideAction:Wt?["click"]:[],popupPlacement:Rt||(Tt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zt,prefixCls:Xt,popupTransitionName:er,popup:reactExports.createElement("div",{ref:fr,onMouseEnter:Vt},Gt),stretch:cr,popupAlign:Nt,popupVisible:ct,getPopupContainer:kt,popupClassName:classNames(_t,_defineProperty$c({},"".concat(Xt,"-empty"),Ft)),popupStyle:ur,getTriggerDOMNode:Ht,onPopupVisibleChange:Wt}),ut)},RefSelectTrigger$1=reactExports.forwardRef(SelectTrigger$1);function getKey$3(_e,et){var rt=_e.key,st;return"value"in _e&&(st=_e.value),rt??(st!==void 0?st:"rc-index-key-".concat(et))}function fillFieldNames$5(_e,et){var rt=_e||{},st=rt.label,ct=rt.value,ut=rt.options,ft=rt.groupLabel,gt=st||(et?"children":"label");return{label:gt,value:ct||"value",options:ut||"options",groupLabel:ft||gt}}function flattenOptions$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$5(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$3(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$3(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption$1(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent$1=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext$1=reactExports.createContext(null),_excluded$1e=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS$1=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple$1=function(et){return et==="tags"||et==="multiple"},BaseSelect$1=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Xt=_e.onDropdownVisibleChange,Gt=_e.activeValue,Zt=_e.onActiveValueChange,er=_e.activeDescendantId,lr=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,fr=_e.onSearchSplit,hr=_e.tokenSeparators,pr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,Sr=_e.OptionList,br=_e.animation,mr=_e.transitionName,Er=_e.dropdownStyle,Tr=_e.dropdownClassName,Mr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,wr=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,jr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,_r=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$1e),Kr=isMultiple$1(Nt),Hr=(gt!==void 0?gt:Kr)||Nt==="combobox",Vr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS$1.forEach(function(Fn){delete Vr[Fn]}),_t==null||_t.forEach(function(Fn){delete Vr[Fn]});var ln=reactExports.useState(!1),Qr=_slicedToArray$3(ln,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),$r=reactExports.useRef(null),zr=reactExports.useRef(null),qr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset$1(),dn=_slicedToArray$3(Gr,3),mn=dn[0],hn=dn[1],Cn=dn[2];reactExports.useImperativeHandle(et,function(){var Fn,Dn;return{focus:(Fn=zr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(Dn=zr.current)===null||Dn===void 0?void 0:Dn.blur,scrollTo:function(To){var fo;return(fo=qr.current)===null||fo===void 0?void 0:fo.scrollTo(To)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return lr;var Dn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof Dn=="string"||typeof Dn=="number"?String(Dn):""},[lr,Nt,wt]),kn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),Gn=reactExports.useState(!1),io=_slicedToArray$3(Gn,2),pn=io[0],gn=io[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),_n=_slicedToArray$3(yn,2),Tn=_n[0],Nn=_n[1],On=pn?Tn:!1,$n=!At&&Rt;(kt||$n&&On&&Nt==="combobox")&&(On=!1);var Sn=$n?!1:On,xn=reactExports.useCallback(function(Fn){var Dn=Fn!==void 0?Fn:!On;kt||(Nn(Dn),On!==Dn&&(Xt==null||Xt(Dn)))},[kt,On,Nn,Xt]),In=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` `,`\r -`].includes(Fn)})},[hr]),jn=reactExports.useContext(SelectContext$1)||{},Un=jn.maxCount,Gn=jn.rawValues,eo=function(kn,co,Eo){if(!((Gn==null?void 0:Gn.size)>=Un)){var so=!0,Xn=kn;Zt==null||Zt(null);var no=getSeparatedContent$1(kn,hr,Un&&Un-Gn.size),To=Eo?null:no;return Nt!=="combobox"&&To&&(Xn="",pr==null||pr(To),Sn(!1),so=!1),ur&&Rn!==Xn&&ur(Xn,{source:co?"typing":"effect"}),so}},io=function(kn){!kn||!kn.trim()||ur(kn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&eo("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Kn=useLock$1(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1],ln=function(kn){var co=zn(),Eo=kn.which;if(Eo===KeyCode.ENTER&&(Nt!=="combobox"&&kn.preventDefault(),On||Sn(!0)),_n(!!Rn),Eo===KeyCode.BACKSPACE&&!co&&Kr&&!Rn&&wt.length){for(var so=_toConsumableArray$3(wt),Xn=null,no=so.length-1;no>=0;no-=1){var To=so[no];if(!To.disabled){so.splice(no,1),Xn=To;break}}Xn&&Tt(so,{type:"remove",values:[Xn]})}for(var Po=arguments.length,Fo=new Array(Po>1?Po-1:0),fo=1;fo1?co-1:0),so=1;so1?no-1:0),Po=1;Po=It},[gt,It,Ht==null?void 0:Ht.size]),pr=function(Pr){Pr.preventDefault()},hr=function(Pr){var Mr;(Mr=cr.current)===null||Mr===void 0||Mr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},fr=function(Pr){for(var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=er.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;Er(Pr);var kr={source:Mr?"keyboard":"mouse"},Fr=er[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?fr(0):-1)},[er.length,$t]);var Sr=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var Mr=Array.from(Ht)[0],kr=er.findIndex(function(Fr){var wr=Fr.data;return wr.value===Mr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var Mr=Pr.which,kr=Pr.ctrlKey;switch(Mr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(Mr===KeyCode.UP?Fr=-1:Mr===KeyCode.DOWN?Fr=1:isPlatformMac$1()&&kr&&(Mr===KeyCode.N?Fr=1:Mr===KeyCode.P&&(Fr=-1)),Fr!==0){var wr=fr($r+Fr,Fr);hr(wr),mr(wr,!0)}break}case KeyCode.ENTER:{var Br,Dr=er[$r];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),er.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(lr,"-empty"),onMouseDown:pr},wt);var jr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function _r(Rr,Pr){var Mr=Rr.group;return{role:Mr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var Mr=er[Pr];if(!Mr)return null;var kr=Mr.data||{},Fr=kr.value,wr=Mr.group,Br=pickAttrs(kr,!0),Dr=Or(Mr);return Mr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!wr?Dr:null},Br,{key:Pr},_r(Mr,Pr),{"aria-selected":Sr(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr($r-1),Cr($r),Cr($r+1)),reactExports.createElement(List$1,{itemKey:"key",ref:cr,data:er,height:Gt,itemHeight:Xt,fullHeight:!1,onMouseDown:pr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var Mr,kr=Rr.group,Fr=Rr.groupOption,wr=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=wr.key;if(kr){var Kr,zr=(Kr=wr.title)!==null&&Kr!==void 0?Kr:isTitleType$2(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(lr,"".concat(lr,"-group")),title:zr},Br!==void 0?Br:Xr)}var qr=wr.disabled,pn=wr.title;wr.children;var Qr=wr.style,Zr=wr.className,vn=_objectWithoutProperties$2(wr,_excluded$1d),vr=omit$2(vn,jr),gr=Sr(Dr),br=qr||!gr&&ur,Hr="".concat(lr,"-option"),Vr=classNames(lr,Hr,Zr,(Mr={},_defineProperty$c(Mr,"".concat(Hr,"-grouped"),Fr),_defineProperty$c(Mr,"".concat(Hr,"-active"),$r===Pr&&!br),_defineProperty$c(Mr,"".concat(Hr,"-disabled"),br),_defineProperty$c(Mr,"".concat(Hr,"-selected"),gr),Mr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,cn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType$2(cn)?cn.toString():void 0;return pn!==void 0&&(mn=pn),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:_r(Rr,Pr),{"aria-selected":gr,className:Vr,title:mn,onMouseMove:function(){$r===Pr||br||mr(Pr)},onClick:function(){br||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(Hr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):cn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn$1,{className:"".concat(lr,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:br,isSelected:gr}},gr?"✓":null))}))},RefOptionList$3=reactExports.forwardRef(OptionList$2);const useCache$2=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes$1(_e,et){return toArray$8(_e).join("").toUpperCase().includes(et)}const useFilterOptions$1=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes$1(It[ct],_t):It[ut]?includes$1(It[ft!=="children"?ft:"label"],_t):includes$1(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption$1(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid$2=0,isBrowserClient$3=canUseDom$1();function getUUID$2(){var _e;return isBrowserClient$3?(_e=uuid$2,uuid$2+=1):_e="TEST_OR_SSR",_e}function useId$2(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID$2()))},[]),_e||st}var _excluded$1c=["children","value"],_excluded2$k=["children"];function convertNodeToOption$1(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$1c);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$2(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$d(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$k);return et||!ut?convertNodeToOption$1(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$2(xt)})}).filter(function(rt){return rt})}var useOptions$2=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$2(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},Mn=Sn.source,jn=Mn===void 0?"keyboard":Mn;qn(Cn),ft&&st==="combobox"&&xn!==null&&jn==="keyboard"&&Rn(String(xn))},[ft,st]),gn=function(Cn,Sn,Mn){var jn=function(){var Pn,An=Zr(Cn);return[dr?{label:An==null?void 0:An[Or.label],value:Cn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Cn}:Cn,injectPropsWithOption$1(An)]};if(Sn&&Rt){var Un=jn(),Gn=_slicedToArray$3(Un,2),eo=Gn[0],io=Gn[1];Rt(eo,io)}else if(!Sn&&It&&Mn!=="clear"){var Kn=jn(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1];It(zn,_n)}},yn=useRefFunc$2(function(xn,Cn){var Sn,Mn=Sr?Cn.selected:!0;Mn?Sn=Sr?[].concat(_toConsumableArray$3(Qr),[xn]):[xn]:Sn=Qr.filter(function(jn){return jn.value!==xn}),cn(Sn),gn(xn,Mn),st==="combobox"?Rn(""):(!isMultiple$1||Tt)&&(Rr(""),Rn(""))}),wn=function(Cn,Sn){cn(Cn);var Mn=Sn.type,jn=Sn.values;(Mn==="remove"||Mn==="clear")&&jn.forEach(function(Un){gn(Un.value,!1,Mn)})},Tn=function(Cn,Sn){if(Rr(Cn),Rn(null),Sn.source==="submit"){var Mn=(Cn||"").trim();if(Mn){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[Mn])));cn(jn),gn(Mn,!0),Rr("")}return}Sn.source!=="blur"&&(st==="combobox"&&cn(Cn),_t==null||_t(Cn))},Nn=function(Cn){var Sn=Cn;st!=="tags"&&(Sn=Cn.map(function(jn){var Un=kr.get(jn);return Un==null?void 0:Un.value}).filter(function(jn){return jn!==void 0}));var Mn=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(Sn))));cn(Mn),Mn.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var xn=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:dn,defaultActiveFirstOption:ao,onSelect:yn,menuItemSelectedIcon:Xt,rawValues:vr,fieldNames:Or,virtual:xn,direction:lr,listHeight:cr,listItemHeight:pr,childrenAsData:Tr,maxCount:$r,optionRender:Vt})},[$r,Pr,Gr,dn,ao,yn,Xt,vr,Or,Zt,jt,lr,cr,pr,Tr,Vt]);return reactExports.createElement(SelectContext$1.Provider,{value:On},reactExports.createElement(BaseSelect$1,_extends$b({},Er,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS$1,mode:st,displayValues:vn,onDisplayValuesChange:wn,direction:lr,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$3,emptyOptions:!Gr.length,activeValue:En,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect$1=Select$1;TypedSelect$1.Option=Option$1;TypedSelect$1.OptGroup=OptGroup$1;var CascaderContext=reactExports.createContext(null),SEARCH_MARK="__rc_cascader_search_mark__",defaultFilter=function(et,rt,st){var ct=st.label;return rt.some(function(ut){return String(ut[ct]).toLowerCase().includes(et.toLowerCase())})},defaultRender=function(et,rt,st,ct){return rt.map(function(ut){return ut[ct.label]}).join(" / ")};const useSearchOptions=function(_e,et,rt,st,ct,ut){var ft=ct.filter,gt=ft===void 0?defaultFilter:ft,xt=ct.render,$t=xt===void 0?defaultRender:xt,_t=ct.limit,wt=_t===void 0?50:_t,Tt=ct.sort;return reactExports.useMemo(function(){var Rt=[];if(!_e)return[];function It(At,jt){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;At.forEach(function(kt){if(!(!Tt&&wt!==!1&&wt>0&&Rt.length>=wt)){var Ft=[].concat(_toConsumableArray$3(jt),[kt]),Ht=kt[rt.children],Wt=Nt||kt.disabled;if((!Ht||Ht.length===0||ut)&>(_e,Ft,{label:rt.label})){var Vt;Rt.push(_objectSpread2(_objectSpread2({},kt),{},(Vt={disabled:Wt},_defineProperty$c(Vt,rt.label,$t(_e,Ft,st,rt)),_defineProperty$c(Vt,SEARCH_MARK,Ft),_defineProperty$c(Vt,rt.children,void 0),Vt)))}Ht&&It(kt[rt.children],Ft,Wt)}})}return It(et,[]),Tt&&Rt.sort(function(At,jt){return Tt(At[SEARCH_MARK],jt[SEARCH_MARK],_e,rt)}),wt!==!1&&wt>0?Rt.slice(0,wt):Rt},[_e,et,rt,st,$t,ut,gt,Tt,wt])};var VALUE_SPLIT="__RC_CASCADER_SPLIT__",SHOW_PARENT$2="SHOW_PARENT",SHOW_CHILD$2="SHOW_CHILD";function toPathKey(_e){return _e.join(VALUE_SPLIT)}function toPathKeys(_e){return _e.map(toPathKey)}function toPathValueStr(_e){return _e.split(VALUE_SPLIT)}function fillFieldNames$4(_e){var et=_e||{},rt=et.label,st=et.value,ct=et.children,ut=st||"value";return{label:rt||"label",value:ut,key:ut,children:ct||"children"}}function isLeaf(_e,et){var rt,st;return(rt=_e.isLeaf)!==null&&rt!==void 0?rt:!((st=_e[et.children])!==null&&st!==void 0&&st.length)}function scrollIntoParentView(_e){var et=_e.parentElement;if(et){var rt=_e.offsetTop-et.offsetTop;rt-et.scrollTop<0?et.scrollTo({top:rt}):rt+_e.offsetHeight-et.scrollTop>et.offsetHeight&&et.scrollTo({top:rt+_e.offsetHeight-et.offsetHeight})}}function getFullPathKeys(_e,et){return _e.map(function(rt){var st;return(st=rt[SEARCH_MARK])===null||st===void 0?void 0:st.map(function(ct){return ct[et.value]})})}function isMultipleValue(_e){return Array.isArray(_e)&&Array.isArray(_e[0])}function toRawValues(_e){return _e?isMultipleValue(_e)?_e:(_e.length===0?[]:[_e]).map(function(et){return Array.isArray(et)?et:[et]}):[]}function formatStrategyValues$1(_e,et,rt){var st=new Set(_e),ct=et();return _e.filter(function(ut){var ft=ct[ut],gt=ft?ft.parent:null,xt=ft?ft.children:null;return ft&&ft.node.disabled?!0:rt===SHOW_CHILD$2?!(xt&&xt.some(function($t){return $t.key&&st.has($t.key)})):!(gt&&!gt.node.disabled&&st.has(gt.key))})}function toPathOptions(_e,et,rt){for(var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ct=et,ut=[],ft=function(){var $t,_t,wt,Tt=_e[gt],Rt=($t=ct)===null||$t===void 0?void 0:$t.findIndex(function(At){var jt=At[rt.value];return st?String(jt)===String(Tt):jt===Tt}),It=Rt!==-1?(_t=ct)===null||_t===void 0?void 0:_t[Rt]:null;ut.push({value:(wt=It==null?void 0:It[rt.value])!==null&&wt!==void 0?wt:Tt,index:Rt,option:It}),ct=It==null?void 0:It[rt.children]},gt=0;gt<_e.length;gt+=1)ft();return ut}const useDisplayValues=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){var ut=ct||function(ft){var gt=st?ft.slice(-1):ft,xt=" / ";return gt.every(function($t){return["string","number"].includes(_typeof$e($t))})?gt.join(xt):gt.reduce(function($t,_t,wt){var Tt=reactExports.isValidElement(_t)?reactExports.cloneElement(_t,{key:wt}):_t;return wt===0?[Tt]:[].concat(_toConsumableArray$3($t),[xt,Tt])},[])};return _e.map(function(ft){var gt,xt=toPathOptions(ft,et,rt),$t=ut(xt.map(function(wt){var Tt,Rt=wt.option,It=wt.value;return(Tt=Rt==null?void 0:Rt[rt.label])!==null&&Tt!==void 0?Tt:It}),xt.map(function(wt){var Tt=wt.option;return Tt})),_t=toPathKey(ft);return{label:$t,value:_t,key:_t,valueCells:ft,disabled:(gt=xt[xt.length-1])===null||gt===void 0||(gt=gt.option)===null||gt===void 0?void 0:gt.disabled}})},[_e,et,rt,ct,st])};function useMissingValues(_e,et){return reactExports.useCallback(function(rt){var st=[],ct=[];return rt.forEach(function(ut){var ft=toPathOptions(ut,_e,et);ft.every(function(gt){return gt.option})?ct.push(ut):st.push(ut)}),[ct,st]},[_e,et])}function getEntity$1(_e,et){return _e[et]}function getPosition$3(_e,et){return"".concat(_e,"-").concat(et)}function getKey$2(_e,et){return _e??et}function fillFieldNames$3(_e){var et=_e||{},rt=et.title,st=et._title,ct=et.key,ut=et.children,ft=rt||"title";return{title:ft,_title:st||[ft],key:ct||"key",children:ut||"children"}}function traverseDataNodes$1(_e,et,rt){var st={};_typeof$e(rt)==="object"?st=rt:st={externalGetKey:rt},st=st||{};var ct=st,ut=ct.childrenPropName,ft=ct.externalGetKey,gt=ct.fieldNames,xt=fillFieldNames$3(gt),$t=xt.key,_t=xt.children,wt=ut||_t,Tt;ft?typeof ft=="string"?Tt=function(At){return At[ft]}:typeof ft=="function"&&(Tt=function(At){return ft(At)}):Tt=function(At,jt){return getKey$2(At[$t],jt)};function Rt(It,At,jt,Nt){var kt=It?It[wt]:_e,Ft=It?getPosition$3(jt.pos,At):"0",Ht=It?[].concat(_toConsumableArray$3(Nt),[It]):[];if(It){var Wt=Tt(It,Ft),Vt={node:It,index:At,pos:Ft,key:Wt,parentPos:jt.node?jt.pos:null,level:jt.level+1,nodes:Ht};et(Vt)}kt&&kt.forEach(function(qt,Gt){Rt(qt,Gt,{node:It,pos:Ft,level:jt?jt.level+1:-1},Ht)})}Rt(null)}function convertDataToEntities$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.initWrapper,st=et.processEntity,ct=et.onProcessFinished,ut=et.externalGetKey,ft=et.childrenPropName,gt=et.fieldNames,xt=arguments.length>2?arguments[2]:void 0,$t=ut||xt,_t={},wt={},Tt={posEntities:_t,keyEntities:wt};return rt&&(Tt=rt(Tt)||Tt),traverseDataNodes$1(_e,function(Rt){var It=Rt.node,At=Rt.index,jt=Rt.pos,Nt=Rt.key,kt=Rt.parentPos,Ft=Rt.level,Ht=Rt.nodes,Wt={node:It,nodes:Ht,index:At,key:Nt,pos:jt,level:Ft},Vt=getKey$2(Nt,jt);_t[jt]=Wt,wt[Vt]=Wt,Wt.parent=_t[kt],Wt.parent&&(Wt.parent.children=Wt.parent.children||[],Wt.parent.children.push(Wt)),st&&st(Wt,Tt)},{externalGetKey:$t,childrenPropName:ft,fieldNames:gt}),ct&&ct(Tt),Tt}const useEntities=function(_e,et){var rt=reactExports.useRef({options:null,info:null}),st=reactExports.useCallback(function(){return rt.current.options!==_e&&(rt.current.options=_e,rt.current.info=convertDataToEntities$1(_e,{fieldNames:et,initWrapper:function(ut){return _objectSpread2(_objectSpread2({},ut),{},{pathKeyEntities:{}})},processEntity:function(ut,ft){var gt=ut.nodes.map(function(xt){return xt[et.value]}).join(VALUE_SPLIT);ft.pathKeyEntities[gt]=ut,ut.key=gt}})),rt.current.info.pathKeyEntities},[et,_e]);return st};function useOptions$1(_e,et){var rt=reactExports.useMemo(function(){return et||[]},[et]),st=useEntities(rt,_e),ct=reactExports.useCallback(function(ut){var ft=st();return ut.map(function(gt){var xt=ft[gt].nodes;return xt.map(function($t){return $t[_e.value]})})},[st,_e]);return[rt,st,ct]}function useSearchConfig(_e){return reactExports.useMemo(function(){if(!_e)return[!1,{}];var et={matchInputWidth:!0,limit:50};return _e&&_typeof$e(_e)==="object"&&(et=_objectSpread2(_objectSpread2({},et),_e)),et.limit<=0&&delete et.limit,[!0,et]},[_e])}function removeFromCheckedKeys$1(_e,et){var rt=new Set;return _e.forEach(function(st){et.has(st)||rt.add(st)}),rt}function isCheckDisabled$2(_e){var et=_e||{},rt=et.disabled,st=et.disableCheckbox,ct=et.checkable;return!!(rt||st)||ct===!1}function fillConductCheck$1(_e,et,rt,st){for(var ct=new Set(_e),ut=new Set,ft=0;ft<=rt;ft+=1){var gt=et.get(ft)||new Set;gt.forEach(function(wt){var Tt=wt.key,Rt=wt.node,It=wt.children,At=It===void 0?[]:It;ct.has(Tt)&&!st(Rt)&&At.filter(function(jt){return!st(jt.node)}).forEach(function(jt){ct.add(jt.key)})})}for(var xt=new Set,$t=rt;$t>=0;$t-=1){var _t=et.get($t)||new Set;_t.forEach(function(wt){var Tt=wt.parent,Rt=wt.node;if(!(st(Rt)||!wt.parent||xt.has(wt.parent.key))){if(st(wt.parent.node)){xt.add(Tt.key);return}var It=!0,At=!1;(Tt.children||[]).filter(function(jt){return!st(jt.node)}).forEach(function(jt){var Nt=jt.key,kt=ct.has(Nt);It&&!kt&&(It=!1),!At&&(kt||ut.has(Nt))&&(At=!0)}),It&&ct.add(Tt.key),At&&ut.add(Tt.key),xt.add(Tt.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(removeFromCheckedKeys$1(ut,ct))}}function cleanConductCheck$1(_e,et,rt,st,ct){for(var ut=new Set(_e),ft=new Set(et),gt=0;gt<=st;gt+=1){var xt=rt.get(gt)||new Set;xt.forEach(function(Tt){var Rt=Tt.key,It=Tt.node,At=Tt.children,jt=At===void 0?[]:At;!ut.has(Rt)&&!ft.has(Rt)&&!ct(It)&&jt.filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){ut.delete(Nt.key)})})}ft=new Set;for(var $t=new Set,_t=st;_t>=0;_t-=1){var wt=rt.get(_t)||new Set;wt.forEach(function(Tt){var Rt=Tt.parent,It=Tt.node;if(!(ct(It)||!Tt.parent||$t.has(Tt.parent.key))){if(ct(Tt.parent.node)){$t.add(Rt.key);return}var At=!0,jt=!1;(Rt.children||[]).filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){var kt=Nt.key,Ft=ut.has(kt);At&&!Ft&&(At=!1),!jt&&(Ft||ft.has(kt))&&(jt=!0)}),At||ut.delete(Rt.key),jt&&ft.add(Rt.key),$t.add(Rt.key)}})}return{checkedKeys:Array.from(ut),halfCheckedKeys:Array.from(removeFromCheckedKeys$1(ft,ut))}}function conductCheck$1(_e,et,rt,st){var ct=[],ut;st?ut=st:ut=isCheckDisabled$2;var ft=new Set(_e.filter(function(_t){var wt=!!getEntity$1(rt,_t);return wt||ct.push(_t),wt})),gt=new Map,xt=0;Object.keys(rt).forEach(function(_t){var wt=rt[_t],Tt=wt.level,Rt=gt.get(Tt);Rt||(Rt=new Set,gt.set(Tt,Rt)),Rt.add(wt),xt=Math.max(xt,Tt)}),warningOnce$1(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(_t){return"'".concat(_t,"'")}).join(", ")));var $t;return et===!0?$t=fillConductCheck$1(ft,gt,xt,ut):$t=cleanConductCheck$1(ft,et.halfCheckedKeys,gt,xt,ut),$t}function useSelect(_e,et,rt,st,ct,ut,ft,gt){return function(xt){if(!_e)et(xt);else{var $t=toPathKey(xt),_t=toPathKeys(rt),wt=toPathKeys(st),Tt=_t.includes($t),Rt=ct.some(function(Vt){return toPathKey(Vt)===$t}),It=rt,At=ct;if(Rt&&!Tt)At=ct.filter(function(Vt){return toPathKey(Vt)!==$t});else{var jt=Tt?_t.filter(function(Vt){return Vt!==$t}):[].concat(_toConsumableArray$3(_t),[$t]),Nt=ut(),kt;if(Tt){var Ft=conductCheck$1(jt,{checked:!1,halfCheckedKeys:wt},Nt);kt=Ft.checkedKeys}else{var Ht=conductCheck$1(jt,!0,Nt);kt=Ht.checkedKeys}var Wt=formatStrategyValues$1(kt,ut,gt);It=ft(Wt)}et([].concat(_toConsumableArray$3(At),_toConsumableArray$3(It)))}}}function useValues(_e,et,rt,st,ct){return reactExports.useMemo(function(){var ut=ct(et),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];if(!_e||!et.length)return[gt,[],xt];var $t=toPathKeys(gt),_t=rt(),wt=conductCheck$1($t,!0,_t),Tt=wt.checkedKeys,Rt=wt.halfCheckedKeys;return[st(Tt),st(Rt),xt]},[_e,et,rt,st,ct])}var CacheContent=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){return!et.open});function Checkbox$4(_e){var et,rt=_e.prefixCls,st=_e.checked,ct=_e.halfChecked,ut=_e.disabled,ft=_e.onClick,gt=_e.disableCheckbox,xt=reactExports.useContext(CascaderContext),$t=xt.checkable,_t=typeof $t!="boolean"?$t:null;return reactExports.createElement("span",{className:classNames("".concat(rt),(et={},_defineProperty$c(et,"".concat(rt,"-checked"),st),_defineProperty$c(et,"".concat(rt,"-indeterminate"),!st&&ct),_defineProperty$c(et,"".concat(rt,"-disabled"),ut||gt),et)),onClick:ft},_t)}var FIX_LABEL="__cascader_fix_label__";function Column(_e){var et=_e.prefixCls,rt=_e.multiple,st=_e.options,ct=_e.activeValue,ut=_e.prevValuePath,ft=_e.onToggleOpen,gt=_e.onSelect,xt=_e.onActive,$t=_e.checkedSet,_t=_e.halfCheckedSet,wt=_e.loadingKeys,Tt=_e.isSelectable,Rt=_e.searchValue,It="".concat(et,"-menu"),At="".concat(et,"-menu-item"),jt=reactExports.useContext(CascaderContext),Nt=jt.fieldNames,kt=jt.changeOnSelect,Ft=jt.expandTrigger,Ht=jt.expandIcon,Wt=jt.loadingIcon,Vt=jt.dropdownMenuColumnStyle,qt=Ft==="hover",Gt=reactExports.useMemo(function(){return st.map(function(Xt){var Zt,lr=Xt.disabled,er=Xt.disableCheckbox,cr=Xt[SEARCH_MARK],ur=(Zt=Xt[FIX_LABEL])!==null&&Zt!==void 0?Zt:Xt[Nt.label],pr=Xt[Nt.value],hr=isLeaf(Xt,Nt),fr=cr?cr.map(function(mr){return mr[Nt.value]}):[].concat(_toConsumableArray$3(ut),[pr]),dr=toPathKey(fr),yr=wt.includes(dr),$r=$t.has(dr),Er=_t.has(dr);return{disabled:lr,label:ur,value:pr,isLeaf:hr,isLoading:yr,checked:$r,halfChecked:Er,option:Xt,disableCheckbox:er,fullPath:fr,fullPathKey:dr}})},[st,$t,Nt,_t,wt,ut]);return reactExports.createElement("ul",{className:It,role:"menu"},Gt.map(function(Xt){var Zt,lr=Xt.disabled,er=Xt.label,cr=Xt.value,ur=Xt.isLeaf,pr=Xt.isLoading,hr=Xt.checked,fr=Xt.halfChecked,dr=Xt.option,yr=Xt.fullPath,$r=Xt.fullPathKey,Er=Xt.disableCheckbox,mr=function(){if(!(lr||Rt)){var Or=_toConsumableArray$3(yr);qt&&ur&&Or.pop(),xt(Or)}},Sr=function(){Tt(dr)&>(yr,ur)},Tr;return typeof dr.title=="string"?Tr=dr.title:typeof er=="string"&&(Tr=er),reactExports.createElement("li",{key:$r,className:classNames(At,(Zt={},_defineProperty$c(Zt,"".concat(At,"-expand"),!ur),_defineProperty$c(Zt,"".concat(At,"-active"),ct===cr||ct===$r),_defineProperty$c(Zt,"".concat(At,"-disabled"),lr),_defineProperty$c(Zt,"".concat(At,"-loading"),pr),Zt)),style:Vt,role:"menuitemcheckbox",title:Tr,"aria-checked":hr,"data-path-key":$r,onClick:function(){mr(),!Er&&(!rt||ur)&&Sr()},onDoubleClick:function(){kt&&ft(!1)},onMouseEnter:function(){qt&&mr()},onMouseDown:function(Or){Or.preventDefault()}},rt&&reactExports.createElement(Checkbox$4,{prefixCls:"".concat(et,"-checkbox"),checked:hr,halfChecked:fr,disabled:lr||Er,disableCheckbox:Er,onClick:function(Or){Er||(Or.stopPropagation(),Sr())}}),reactExports.createElement("div",{className:"".concat(At,"-content")},er),!pr&&Ht&&!ur&&reactExports.createElement("div",{className:"".concat(At,"-expand-icon")},Ht),pr&&Wt&&reactExports.createElement("div",{className:"".concat(At,"-loading-icon")},Wt))}))}const useActive=function(_e,et){var rt=reactExports.useContext(CascaderContext),st=rt.values,ct=st[0],ut=reactExports.useState([]),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return reactExports.useEffect(function(){et&&!_e&&xt(ct||[])},[et,ct]),[gt,xt]},useKeyboard=function(_e,et,rt,st,ct,ut,ft){var gt=ft.direction,xt=ft.searchValue,$t=ft.toggleOpen,_t=ft.open,wt=gt==="rtl",Tt=reactExports.useMemo(function(){for(var Vt=-1,qt=et,Gt=[],Xt=[],Zt=st.length,lr=getFullPathKeys(et,rt),er=function(fr){var dr=qt.findIndex(function(yr,$r){return(lr[$r]?toPathKey(lr[$r]):yr[rt.value])===st[fr]});if(dr===-1)return 1;Vt=dr,Gt.push(Vt),Xt.push(st[fr]),qt=qt[Vt][rt.children]},cr=0;cr1){var qt=It.slice(0,-1);kt(qt)}else $t(!1)},Wt=function(){var qt,Gt=((qt=jt[At])===null||qt===void 0?void 0:qt[rt.children])||[],Xt=Gt.find(function(lr){return!lr.disabled});if(Xt){var Zt=[].concat(_toConsumableArray$3(It),[Xt[rt.value]]);kt(Zt)}};reactExports.useImperativeHandle(_e,function(){return{onKeyDown:function(qt){var Gt=qt.which;switch(Gt){case KeyCode.UP:case KeyCode.DOWN:{var Xt=0;Gt===KeyCode.UP?Xt=-1:Gt===KeyCode.DOWN&&(Xt=1),Xt!==0&&Ft(Xt);break}case KeyCode.LEFT:{if(xt)break;wt?Wt():Ht();break}case KeyCode.RIGHT:{if(xt)break;wt?Ht():Wt();break}case KeyCode.BACKSPACE:{xt||Ht();break}case KeyCode.ENTER:{if(It.length){var Zt=jt[At],lr=(Zt==null?void 0:Zt[SEARCH_MARK])||[];lr.length?ut(lr.map(function(er){return er[rt.value]}),lr[lr.length-1]):ut(It,jt[At])}break}case KeyCode.ESC:$t(!1),_t&&qt.stopPropagation()}},onKeyUp:function(){}}})};var RawOptionList=reactExports.forwardRef(function(_e,et){var rt,st,ct,ut=_e.prefixCls,ft=_e.multiple,gt=_e.searchValue,xt=_e.toggleOpen,$t=_e.notFoundContent,_t=_e.direction,wt=_e.open,Tt=reactExports.useRef(),Rt=_t==="rtl",It=reactExports.useContext(CascaderContext),At=It.options,jt=It.values,Nt=It.halfValues,kt=It.fieldNames,Ft=It.changeOnSelect,Ht=It.onSelect,Wt=It.searchOptions,Vt=It.dropdownPrefixCls,qt=It.loadData,Gt=It.expandTrigger,Xt=Vt||ut,Zt=reactExports.useState([]),lr=_slicedToArray$3(Zt,2),er=lr[0],cr=lr[1],ur=function(kr){if(!(!qt||gt)){var Fr=toPathOptions(kr,At,kt),wr=Fr.map(function(Xr){var Kr=Xr.option;return Kr}),Br=wr[wr.length-1];if(Br&&!isLeaf(Br,kt)){var Dr=toPathKey(kr);cr(function(Xr){return[].concat(_toConsumableArray$3(Xr),[Dr])}),qt(wr)}}};reactExports.useEffect(function(){er.length&&er.forEach(function(Mr){var kr=toPathValueStr(Mr),Fr=toPathOptions(kr,At,kt,!0).map(function(Br){var Dr=Br.option;return Dr}),wr=Fr[Fr.length-1];(!wr||wr[kt.children]||isLeaf(wr,kt))&&cr(function(Br){return Br.filter(function(Dr){return Dr!==Mr})})})},[At,er,kt]);var pr=reactExports.useMemo(function(){return new Set(toPathKeys(jt))},[jt]),hr=reactExports.useMemo(function(){return new Set(toPathKeys(Nt))},[Nt]),fr=useActive(ft,wt),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1],Er=function(kr){$r(kr),ur(kr)},mr=function(kr){var Fr=kr.disabled,wr=isLeaf(kr,kt);return!Fr&&(wr||Ft||ft)},Sr=function(kr,Fr){var wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ht(kr),!ft&&(Fr||Ft&&(Gt==="hover"||wr))&&xt(!1)},Tr=reactExports.useMemo(function(){return gt?Wt:At},[gt,Wt,At]),jr=reactExports.useMemo(function(){for(var Mr=[{options:Tr}],kr=Tr,Fr=getFullPathKeys(kr,kt),wr=function(){var Xr=yr[Br],Kr=kr.find(function(qr,pn){return(Fr[pn]?toPathKey(Fr[pn]):qr[kt.value])===Xr}),zr=Kr==null?void 0:Kr[kt.children];if(!(zr!=null&&zr.length))return 1;kr=zr,Mr.push({options:zr})},Br=0;Br":Nt,Ft=rt.loadingIcon,Ht=rt.direction,Wt=rt.notFoundContent,Vt=Wt===void 0?"Not Found":Wt,qt=!!xt,Gt=useMergedState($t,{value:_t,postState:toRawValues}),Xt=_slicedToArray$3(Gt,2),Zt=Xt[0],lr=Xt[1],er=reactExports.useMemo(function(){return fillFieldNames$4(wt)},[JSON.stringify(wt)]),cr=useOptions$1(er,gt),ur=_slicedToArray$3(cr,3),pr=ur[0],hr=ur[1],fr=ur[2],dr=useMissingValues(pr,er),yr=useValues(qt,Zt,hr,fr,dr),$r=_slicedToArray$3(yr,3),Er=$r[0],mr=$r[1],Sr=$r[2],Tr=useEvent(function(Rr){if(lr(Rr),Rt){var Pr=toRawValues(Rr),Mr=Pr.map(function(wr){return toPathOptions(wr,pr,er).map(function(Br){return Br.option})}),kr=qt?Pr:Pr[0],Fr=qt?Mr:Mr[0];Rt(kr,Fr)}}),jr=useSelect(qt,Tr,Er,mr,Sr,hr,fr,It),Or=useEvent(function(Rr){jr(Rr)}),_r=reactExports.useMemo(function(){return{options:pr,fieldNames:er,values:Er,halfValues:mr,changeOnSelect:Tt,onSelect:Or,checkable:xt,searchOptions:[],dropdownPrefixCls:null,loadData:At,expandTrigger:jt,expandIcon:kt,loadingIcon:Ft,dropdownMenuColumnStyle:null}},[pr,er,Er,mr,Tt,Or,xt,At,jt,kt,Ft]),Cr="".concat(ct,"-panel"),Nr=!pr.length;return reactExports.createElement(CascaderContext.Provider,{value:_r},reactExports.createElement("div",{className:classNames(Cr,(et={},_defineProperty$c(et,"".concat(Cr,"-rtl"),Ht==="rtl"),_defineProperty$c(et,"".concat(Cr,"-empty"),Nr),et),ft),style:ut},Nr?Vt:reactExports.createElement(RawOptionList,{prefixCls:ct,searchValue:null,multiple:qt,toggleOpen:noop$5,open:!0,direction:Ht})))}var _excluded$1a=["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"],Cascader$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-cascader":st,ut=_e.fieldNames,ft=_e.defaultValue,gt=_e.value,xt=_e.changeOnSelect,$t=_e.onChange,_t=_e.displayRender,wt=_e.checkable,Tt=_e.autoClearSearchValue,Rt=Tt===void 0?!0:Tt,It=_e.searchValue,At=_e.onSearch,jt=_e.showSearch,Nt=_e.expandTrigger,kt=_e.options,Ft=_e.dropdownPrefixCls,Ht=_e.loadData,Wt=_e.popupVisible,Vt=_e.open,qt=_e.popupClassName,Gt=_e.dropdownClassName,Xt=_e.dropdownMenuColumnStyle,Zt=_e.dropdownStyle,lr=_e.popupPlacement,er=_e.placement,cr=_e.onDropdownVisibleChange,ur=_e.onPopupVisibleChange,pr=_e.expandIcon,hr=pr===void 0?">":pr,fr=_e.loadingIcon,dr=_e.children,yr=_e.dropdownMatchSelectWidth,$r=yr===void 0?!1:yr,Er=_e.showCheckedStrategy,mr=Er===void 0?SHOW_PARENT$2:Er,Sr=_objectWithoutProperties$2(_e,_excluded$1a),Tr=useId$2(rt),jr=!!wt,Or=useMergedState(ft,{value:gt,postState:toRawValues}),_r=_slicedToArray$3(Or,2),Cr=_r[0],Nr=_r[1],Rr=reactExports.useMemo(function(){return fillFieldNames$4(ut)},[JSON.stringify(ut)]),Pr=useOptions$1(Rr,kt),Mr=_slicedToArray$3(Pr,3),kr=Mr[0],Fr=Mr[1],wr=Mr[2],Br=useMergedState("",{value:It,postState:function(wn){return wn||""}}),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1],zr=function(wn,Tn){Kr(wn),Tn.source!=="blur"&&At&&At(wn)},qr=useSearchConfig(jt),pn=_slicedToArray$3(qr,2),Qr=pn[0],Zr=pn[1],vn=useSearchOptions(Xr,kr,Rr,Ft||ct,Zr,xt),vr=useMissingValues(kr,Rr),gr=useValues(jr,Cr,Fr,wr,vr),br=_slicedToArray$3(gr,3),Hr=br[0],Vr=br[1],Wr=br[2],Gr=reactExports.useMemo(function(){var yn=toPathKeys(Hr),wn=formatStrategyValues$1(yn,Fr,mr);return[].concat(_toConsumableArray$3(Wr),_toConsumableArray$3(wr(wn)))},[Hr,Fr,wr,Wr,mr]),cn=useDisplayValues(Gr,kr,Rr,jr,_t),mn=useEvent(function(yn){if(Nr(yn),$t){var wn=toRawValues(yn),Tn=wn.map(function(xn){return toPathOptions(xn,kr,Rr).map(function(Cn){return Cn.option})}),Nn=jr?wn:wn[0],On=jr?Tn:Tn[0];$t(Nn,On)}}),hn=useSelect(jr,mn,Hr,Vr,Wr,Fr,wr,mr),En=useEvent(function(yn){(!jr||Rt)&&Kr(""),hn(yn)}),Rn=function(wn,Tn){if(Tn.type==="clear"){mn([]);return}var Nn=Tn.values[0],On=Nn.valueCells;En(On)},Dn=Vt!==void 0?Vt:Wt,Bn=Gt||qt,Yn=er||lr,qn=function(wn){cr==null||cr(wn),ur==null||ur(wn)},ao=reactExports.useMemo(function(){return{options:kr,fieldNames:Rr,values:Hr,halfValues:Vr,changeOnSelect:xt,onSelect:En,checkable:wt,searchOptions:vn,dropdownPrefixCls:Ft,loadData:Ht,expandTrigger:Nt,expandIcon:hr,loadingIcon:fr,dropdownMenuColumnStyle:Xt}},[kr,Rr,Hr,Vr,xt,En,wt,vn,Ft,Ht,Nt,hr,fr,Xt]),dn=!(Xr?vn:kr).length,gn=Xr&&Zr.matchInputWidth||dn?{}:{minWidth:"auto"};return reactExports.createElement(CascaderContext.Provider,{value:ao},reactExports.createElement(BaseSelect$1,_extends$b({},Sr,{ref:et,id:Tr,prefixCls:ct,autoClearSearchValue:Rt,dropdownMatchSelectWidth:$r,dropdownStyle:_objectSpread2(_objectSpread2({},gn),Zt),displayValues:cn,onDisplayValuesChange:Rn,mode:jr?"multiple":void 0,searchValue:Xr,onSearch:zr,showSearch:Qr,OptionList:RefOptionList$2,emptyOptions:dn,open:Dn,dropdownClassName:Bn,placement:Yn,onDropdownVisibleChange:qn,getRawInputElement:function(){return dr}})))});Cascader$2.SHOW_PARENT=SHOW_PARENT$2;Cascader$2.SHOW_CHILD=SHOW_CHILD$2;Cascader$2.Panel=Panel$1;function useBase(_e,et){const{getPrefixCls:rt,direction:st,renderEmpty:ct}=reactExports.useContext(ConfigContext$1),ut=et||st,ft=rt("select",_e),gt=rt("cascader",_e);return[ft,gt,ut,ct]}function useCheckable(_e,et){return reactExports.useMemo(()=>et?reactExports.createElement("span",{className:`${_e}-checkbox-inner`}):!1,[et])}function useColumnIcons(_e,et,rt){let st=rt;rt||(st=et?reactExports.createElement(LeftOutlined$4,null):reactExports.createElement(RightOutlined$6,null));const ct=reactExports.createElement("span",{className:`${_e}-menu-item-loading-icon`},reactExports.createElement(LoadingOutlined$3,{spin:!0}));return[st,ct]}const genCheckboxStyle=_e=>{const{checkboxCls:et}=_e,rt=`${et}-wrapper`;return[{[`${et}-group`]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",flexWrap:"wrap",columnGap:_e.marginXS,[`> ${_e.antCls}-row`]:{flex:1}}),[rt]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${rt}`]:{marginInlineStart:0},[`&${rt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:_e.borderRadiusSM,alignSelf:"center",[`${et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${et}-inner`]:Object.assign({},genFocusOutline(_e))},[`${et}-inner`]:{boxSizing:"border-box",display:"block",width:_e.checkboxSize,height:_e.checkboxSize,direction:"ltr",backgroundColor:_e.colorBgContainer,border:`${unit$1(_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:`${unit$1(_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}})},{[` +`].includes(Fn)})},[hr]),jn=reactExports.useContext(SelectContext$1)||{},Hn=jn.maxCount,qn=jn.rawValues,Jn=function(Dn,po,To){if(!((qn==null?void 0:qn.size)>=Hn)){var fo=!0,Qn=Dn;Zt==null||Zt(null);var oo=getSeparatedContent$1(Dn,hr,Hn&&Hn-qn.size),Oo=To?null:oo;return Nt!=="combobox"&&Oo&&(Qn="",fr==null||fr(Oo),xn(!1),fo=!1),ur&&Rn!==Qn&&ur(Qn,{source:po?"typing":"effect"}),fo}},ao=function(Dn){!Dn||!Dn.trim()||ur(Dn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&Jn("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Vn=useLock$1(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1],cn=function(Dn){var po=zn(),To=Dn.which;if(To===KeyCode.ENTER&&(Nt!=="combobox"&&Dn.preventDefault(),On||xn(!0)),wn(!!Rn),To===KeyCode.BACKSPACE&&!po&&Kr&&!Rn&&wt.length){for(var fo=_toConsumableArray$3(wt),Qn=null,oo=fo.length-1;oo>=0;oo-=1){var Oo=fo[oo];if(!Oo.disabled){fo.splice(oo,1),Qn=Oo;break}}Qn&&Tt(fo,{type:"remove",values:[Qn]})}for(var Mo=arguments.length,Lo=new Array(Mo>1?Mo-1:0),go=1;go1?po-1:0),fo=1;fo1?oo-1:0),Mo=1;Mo=It},[gt,It,Ht==null?void 0:Ht.size]),fr=function(Pr){Pr.preventDefault()},hr=function(Pr){var jr;(jr=cr.current)===null||jr===void 0||jr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},pr=function(Pr){for(var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=lr.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;br(Pr);var kr={source:jr?"keyboard":"mouse"},Fr=lr[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?pr(0):-1)},[lr.length,$t]);var Er=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var jr=Array.from(Ht)[0],kr=lr.findIndex(function(Fr){var _r=Fr.data;return _r.value===jr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var jr=Pr.which,kr=Pr.ctrlKey;switch(jr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(jr===KeyCode.UP?Fr=-1:jr===KeyCode.DOWN?Fr=1:isPlatformMac$1()&&kr&&(jr===KeyCode.N?Fr=1:jr===KeyCode.P&&(Fr=-1)),Fr!==0){var _r=pr(Sr+Fr,Fr);hr(_r),mr(_r,!0)}break}case KeyCode.ENTER:{var Br,Dr=lr[Sr];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),lr.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(er,"-empty"),onMouseDown:fr},wt);var Mr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function wr(Rr,Pr){var jr=Rr.group;return{role:jr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var jr=lr[Pr];if(!jr)return null;var kr=jr.data||{},Fr=kr.value,_r=jr.group,Br=pickAttrs(kr,!0),Dr=Or(jr);return jr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!_r?Dr:null},Br,{key:Pr},wr(jr,Pr),{"aria-selected":Er(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr(Sr-1),Cr(Sr),Cr(Sr+1)),reactExports.createElement(List$2,{itemKey:"key",ref:cr,data:lr,height:Xt,itemHeight:Gt,fullHeight:!1,onMouseDown:fr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var jr,kr=Rr.group,Fr=Rr.groupOption,_r=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=_r.key;if(kr){var Kr,Hr=(Kr=_r.title)!==null&&Kr!==void 0?Kr:isTitleType$2(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(er,"".concat(er,"-group")),title:Hr},Br!==void 0?Br:Xr)}var Vr=_r.disabled,ln=_r.title;_r.children;var Qr=_r.style,Zr=_r.className,vn=_objectWithoutProperties$2(_r,_excluded$1d),vr=omit$2(vn,Mr),gr=Er(Dr),$r=Vr||!gr&&ur,zr="".concat(er,"-option"),qr=classNames(er,zr,Zr,(jr={},_defineProperty$c(jr,"".concat(zr,"-grouped"),Fr),_defineProperty$c(jr,"".concat(zr,"-active"),Sr===Pr&&!$r),_defineProperty$c(jr,"".concat(zr,"-disabled"),$r),_defineProperty$c(jr,"".concat(zr,"-selected"),gr),jr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,dn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType$2(dn)?dn.toString():void 0;return ln!==void 0&&(mn=ln),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:wr(Rr,Pr),{"aria-selected":gr,className:qr,title:mn,onMouseMove:function(){Sr===Pr||$r||mr(Pr)},onClick:function(){$r||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(zr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):dn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn$1,{className:"".concat(er,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:$r,isSelected:gr}},gr?"✓":null))}))},RefOptionList$3=reactExports.forwardRef(OptionList$2);const useCache$2=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes$1(_e,et){return toArray$9(_e).join("").toUpperCase().includes(et)}const useFilterOptions$1=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes$1(It[ct],_t):It[ut]?includes$1(It[ft!=="children"?ft:"label"],_t):includes$1(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption$1(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid$2=0,isBrowserClient$3=canUseDom$1();function getUUID$2(){var _e;return isBrowserClient$3?(_e=uuid$2,uuid$2+=1):_e="TEST_OR_SSR",_e}function useId$2(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID$2()))},[]),_e||st}var _excluded$1c=["children","value"],_excluded2$k=["children"];function convertNodeToOption$1(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$1c);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$2(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$e(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$k);return et||!ut?convertNodeToOption$1(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$2(xt)})}).filter(function(rt){return rt})}var useOptions$2=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$2(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},In=xn.source,jn=In===void 0?"keyboard":In;Gn(Sn),ft&&st==="combobox"&&$n!==null&&jn==="keyboard"&&Rn(String($n))},[ft,st]),gn=function(Sn,xn,In){var jn=function(){var Pn,An=Zr(Sn);return[dr?{label:An==null?void 0:An[Or.label],value:Sn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Sn}:Sn,injectPropsWithOption$1(An)]};if(xn&&Rt){var Hn=jn(),qn=_slicedToArray$3(Hn,2),Jn=qn[0],ao=qn[1];Rt(Jn,ao)}else if(!xn&&It&&In!=="clear"){var Vn=jn(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1];It(zn,wn)}},yn=useRefFunc$2(function($n,Sn){var xn,In=Er?Sn.selected:!0;In?xn=Er?[].concat(_toConsumableArray$3(Qr),[$n]):[$n]:xn=Qr.filter(function(jn){return jn.value!==$n}),dn(xn),gn($n,In),st==="combobox"?Rn(""):(!isMultiple$1||Tt)&&(Rr(""),Rn(""))}),_n=function(Sn,xn){dn(Sn);var In=xn.type,jn=xn.values;(In==="remove"||In==="clear")&&jn.forEach(function(Hn){gn(Hn.value,!1,In)})},Tn=function(Sn,xn){if(Rr(Sn),Rn(null),xn.source==="submit"){var In=(Sn||"").trim();if(In){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[In])));dn(jn),gn(In,!0),Rr("")}return}xn.source!=="blur"&&(st==="combobox"&&dn(Sn),_t==null||_t(Sn))},Nn=function(Sn){var xn=Sn;st!=="tags"&&(xn=Sn.map(function(jn){var Hn=kr.get(jn);return Hn==null?void 0:Hn.value}).filter(function(jn){return jn!==void 0}));var In=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(xn))));dn(In),In.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var $n=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:pn,defaultActiveFirstOption:io,onSelect:yn,menuItemSelectedIcon:Gt,rawValues:vr,fieldNames:Or,virtual:$n,direction:er,listHeight:cr,listItemHeight:fr,childrenAsData:Tr,maxCount:Sr,optionRender:Vt})},[Sr,Pr,Gr,pn,io,yn,Gt,vr,Or,Zt,jt,er,cr,fr,Tr,Vt]);return reactExports.createElement(SelectContext$1.Provider,{value:On},reactExports.createElement(BaseSelect$1,_extends$b({},br,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS$1,mode:st,displayValues:vn,onDisplayValuesChange:_n,direction:er,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$3,emptyOptions:!Gr.length,activeValue:Cn,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect$1=Select$1;TypedSelect$1.Option=Option$1;TypedSelect$1.OptGroup=OptGroup$1;var CascaderContext=reactExports.createContext(null),SEARCH_MARK="__rc_cascader_search_mark__",defaultFilter=function(et,rt,st){var ct=st.label;return rt.some(function(ut){return String(ut[ct]).toLowerCase().includes(et.toLowerCase())})},defaultRender=function(et,rt,st,ct){return rt.map(function(ut){return ut[ct.label]}).join(" / ")};const useSearchOptions=function(_e,et,rt,st,ct,ut){var ft=ct.filter,gt=ft===void 0?defaultFilter:ft,xt=ct.render,$t=xt===void 0?defaultRender:xt,_t=ct.limit,wt=_t===void 0?50:_t,Tt=ct.sort;return reactExports.useMemo(function(){var Rt=[];if(!_e)return[];function It(At,jt){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;At.forEach(function(kt){if(!(!Tt&&wt!==!1&&wt>0&&Rt.length>=wt)){var Ft=[].concat(_toConsumableArray$3(jt),[kt]),Ht=kt[rt.children],Wt=Nt||kt.disabled;if((!Ht||Ht.length===0||ut)&>(_e,Ft,{label:rt.label})){var Vt;Rt.push(_objectSpread2(_objectSpread2({},kt),{},(Vt={disabled:Wt},_defineProperty$c(Vt,rt.label,$t(_e,Ft,st,rt)),_defineProperty$c(Vt,SEARCH_MARK,Ft),_defineProperty$c(Vt,rt.children,void 0),Vt)))}Ht&&It(kt[rt.children],Ft,Wt)}})}return It(et,[]),Tt&&Rt.sort(function(At,jt){return Tt(At[SEARCH_MARK],jt[SEARCH_MARK],_e,rt)}),wt!==!1&&wt>0?Rt.slice(0,wt):Rt},[_e,et,rt,st,$t,ut,gt,Tt,wt])};var VALUE_SPLIT="__RC_CASCADER_SPLIT__",SHOW_PARENT$2="SHOW_PARENT",SHOW_CHILD$2="SHOW_CHILD";function toPathKey(_e){return _e.join(VALUE_SPLIT)}function toPathKeys(_e){return _e.map(toPathKey)}function toPathValueStr(_e){return _e.split(VALUE_SPLIT)}function fillFieldNames$4(_e){var et=_e||{},rt=et.label,st=et.value,ct=et.children,ut=st||"value";return{label:rt||"label",value:ut,key:ut,children:ct||"children"}}function isLeaf(_e,et){var rt,st;return(rt=_e.isLeaf)!==null&&rt!==void 0?rt:!((st=_e[et.children])!==null&&st!==void 0&&st.length)}function scrollIntoParentView(_e){var et=_e.parentElement;if(et){var rt=_e.offsetTop-et.offsetTop;rt-et.scrollTop<0?et.scrollTo({top:rt}):rt+_e.offsetHeight-et.scrollTop>et.offsetHeight&&et.scrollTo({top:rt+_e.offsetHeight-et.offsetHeight})}}function getFullPathKeys(_e,et){return _e.map(function(rt){var st;return(st=rt[SEARCH_MARK])===null||st===void 0?void 0:st.map(function(ct){return ct[et.value]})})}function isMultipleValue(_e){return Array.isArray(_e)&&Array.isArray(_e[0])}function toRawValues(_e){return _e?isMultipleValue(_e)?_e:(_e.length===0?[]:[_e]).map(function(et){return Array.isArray(et)?et:[et]}):[]}function formatStrategyValues$1(_e,et,rt){var st=new Set(_e),ct=et();return _e.filter(function(ut){var ft=ct[ut],gt=ft?ft.parent:null,xt=ft?ft.children:null;return ft&&ft.node.disabled?!0:rt===SHOW_CHILD$2?!(xt&&xt.some(function($t){return $t.key&&st.has($t.key)})):!(gt&&!gt.node.disabled&&st.has(gt.key))})}function toPathOptions(_e,et,rt){for(var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ct=et,ut=[],ft=function(){var $t,_t,wt,Tt=_e[gt],Rt=($t=ct)===null||$t===void 0?void 0:$t.findIndex(function(At){var jt=At[rt.value];return st?String(jt)===String(Tt):jt===Tt}),It=Rt!==-1?(_t=ct)===null||_t===void 0?void 0:_t[Rt]:null;ut.push({value:(wt=It==null?void 0:It[rt.value])!==null&&wt!==void 0?wt:Tt,index:Rt,option:It}),ct=It==null?void 0:It[rt.children]},gt=0;gt<_e.length;gt+=1)ft();return ut}const useDisplayValues=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){var ut=ct||function(ft){var gt=st?ft.slice(-1):ft,xt=" / ";return gt.every(function($t){return["string","number"].includes(_typeof$e($t))})?gt.join(xt):gt.reduce(function($t,_t,wt){var Tt=reactExports.isValidElement(_t)?reactExports.cloneElement(_t,{key:wt}):_t;return wt===0?[Tt]:[].concat(_toConsumableArray$3($t),[xt,Tt])},[])};return _e.map(function(ft){var gt,xt=toPathOptions(ft,et,rt),$t=ut(xt.map(function(wt){var Tt,Rt=wt.option,It=wt.value;return(Tt=Rt==null?void 0:Rt[rt.label])!==null&&Tt!==void 0?Tt:It}),xt.map(function(wt){var Tt=wt.option;return Tt})),_t=toPathKey(ft);return{label:$t,value:_t,key:_t,valueCells:ft,disabled:(gt=xt[xt.length-1])===null||gt===void 0||(gt=gt.option)===null||gt===void 0?void 0:gt.disabled}})},[_e,et,rt,ct,st])};function useMissingValues(_e,et){return reactExports.useCallback(function(rt){var st=[],ct=[];return rt.forEach(function(ut){var ft=toPathOptions(ut,_e,et);ft.every(function(gt){return gt.option})?ct.push(ut):st.push(ut)}),[ct,st]},[_e,et])}function getEntity$1(_e,et){return _e[et]}function getPosition$3(_e,et){return"".concat(_e,"-").concat(et)}function getKey$2(_e,et){return _e??et}function fillFieldNames$3(_e){var et=_e||{},rt=et.title,st=et._title,ct=et.key,ut=et.children,ft=rt||"title";return{title:ft,_title:st||[ft],key:ct||"key",children:ut||"children"}}function traverseDataNodes$1(_e,et,rt){var st={};_typeof$e(rt)==="object"?st=rt:st={externalGetKey:rt},st=st||{};var ct=st,ut=ct.childrenPropName,ft=ct.externalGetKey,gt=ct.fieldNames,xt=fillFieldNames$3(gt),$t=xt.key,_t=xt.children,wt=ut||_t,Tt;ft?typeof ft=="string"?Tt=function(At){return At[ft]}:typeof ft=="function"&&(Tt=function(At){return ft(At)}):Tt=function(At,jt){return getKey$2(At[$t],jt)};function Rt(It,At,jt,Nt){var kt=It?It[wt]:_e,Ft=It?getPosition$3(jt.pos,At):"0",Ht=It?[].concat(_toConsumableArray$3(Nt),[It]):[];if(It){var Wt=Tt(It,Ft),Vt={node:It,index:At,pos:Ft,key:Wt,parentPos:jt.node?jt.pos:null,level:jt.level+1,nodes:Ht};et(Vt)}kt&&kt.forEach(function(qt,Xt){Rt(qt,Xt,{node:It,pos:Ft,level:jt?jt.level+1:-1},Ht)})}Rt(null)}function convertDataToEntities$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.initWrapper,st=et.processEntity,ct=et.onProcessFinished,ut=et.externalGetKey,ft=et.childrenPropName,gt=et.fieldNames,xt=arguments.length>2?arguments[2]:void 0,$t=ut||xt,_t={},wt={},Tt={posEntities:_t,keyEntities:wt};return rt&&(Tt=rt(Tt)||Tt),traverseDataNodes$1(_e,function(Rt){var It=Rt.node,At=Rt.index,jt=Rt.pos,Nt=Rt.key,kt=Rt.parentPos,Ft=Rt.level,Ht=Rt.nodes,Wt={node:It,nodes:Ht,index:At,key:Nt,pos:jt,level:Ft},Vt=getKey$2(Nt,jt);_t[jt]=Wt,wt[Vt]=Wt,Wt.parent=_t[kt],Wt.parent&&(Wt.parent.children=Wt.parent.children||[],Wt.parent.children.push(Wt)),st&&st(Wt,Tt)},{externalGetKey:$t,childrenPropName:ft,fieldNames:gt}),ct&&ct(Tt),Tt}const useEntities=function(_e,et){var rt=reactExports.useRef({options:null,info:null}),st=reactExports.useCallback(function(){return rt.current.options!==_e&&(rt.current.options=_e,rt.current.info=convertDataToEntities$1(_e,{fieldNames:et,initWrapper:function(ut){return _objectSpread2(_objectSpread2({},ut),{},{pathKeyEntities:{}})},processEntity:function(ut,ft){var gt=ut.nodes.map(function(xt){return xt[et.value]}).join(VALUE_SPLIT);ft.pathKeyEntities[gt]=ut,ut.key=gt}})),rt.current.info.pathKeyEntities},[et,_e]);return st};function useOptions$1(_e,et){var rt=reactExports.useMemo(function(){return et||[]},[et]),st=useEntities(rt,_e),ct=reactExports.useCallback(function(ut){var ft=st();return ut.map(function(gt){var xt=ft[gt].nodes;return xt.map(function($t){return $t[_e.value]})})},[st,_e]);return[rt,st,ct]}function useSearchConfig(_e){return reactExports.useMemo(function(){if(!_e)return[!1,{}];var et={matchInputWidth:!0,limit:50};return _e&&_typeof$e(_e)==="object"&&(et=_objectSpread2(_objectSpread2({},et),_e)),et.limit<=0&&delete et.limit,[!0,et]},[_e])}function removeFromCheckedKeys$1(_e,et){var rt=new Set;return _e.forEach(function(st){et.has(st)||rt.add(st)}),rt}function isCheckDisabled$2(_e){var et=_e||{},rt=et.disabled,st=et.disableCheckbox,ct=et.checkable;return!!(rt||st)||ct===!1}function fillConductCheck$1(_e,et,rt,st){for(var ct=new Set(_e),ut=new Set,ft=0;ft<=rt;ft+=1){var gt=et.get(ft)||new Set;gt.forEach(function(wt){var Tt=wt.key,Rt=wt.node,It=wt.children,At=It===void 0?[]:It;ct.has(Tt)&&!st(Rt)&&At.filter(function(jt){return!st(jt.node)}).forEach(function(jt){ct.add(jt.key)})})}for(var xt=new Set,$t=rt;$t>=0;$t-=1){var _t=et.get($t)||new Set;_t.forEach(function(wt){var Tt=wt.parent,Rt=wt.node;if(!(st(Rt)||!wt.parent||xt.has(wt.parent.key))){if(st(wt.parent.node)){xt.add(Tt.key);return}var It=!0,At=!1;(Tt.children||[]).filter(function(jt){return!st(jt.node)}).forEach(function(jt){var Nt=jt.key,kt=ct.has(Nt);It&&!kt&&(It=!1),!At&&(kt||ut.has(Nt))&&(At=!0)}),It&&ct.add(Tt.key),At&&ut.add(Tt.key),xt.add(Tt.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(removeFromCheckedKeys$1(ut,ct))}}function cleanConductCheck$1(_e,et,rt,st,ct){for(var ut=new Set(_e),ft=new Set(et),gt=0;gt<=st;gt+=1){var xt=rt.get(gt)||new Set;xt.forEach(function(Tt){var Rt=Tt.key,It=Tt.node,At=Tt.children,jt=At===void 0?[]:At;!ut.has(Rt)&&!ft.has(Rt)&&!ct(It)&&jt.filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){ut.delete(Nt.key)})})}ft=new Set;for(var $t=new Set,_t=st;_t>=0;_t-=1){var wt=rt.get(_t)||new Set;wt.forEach(function(Tt){var Rt=Tt.parent,It=Tt.node;if(!(ct(It)||!Tt.parent||$t.has(Tt.parent.key))){if(ct(Tt.parent.node)){$t.add(Rt.key);return}var At=!0,jt=!1;(Rt.children||[]).filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){var kt=Nt.key,Ft=ut.has(kt);At&&!Ft&&(At=!1),!jt&&(Ft||ft.has(kt))&&(jt=!0)}),At||ut.delete(Rt.key),jt&&ft.add(Rt.key),$t.add(Rt.key)}})}return{checkedKeys:Array.from(ut),halfCheckedKeys:Array.from(removeFromCheckedKeys$1(ft,ut))}}function conductCheck$1(_e,et,rt,st){var ct=[],ut;st?ut=st:ut=isCheckDisabled$2;var ft=new Set(_e.filter(function(_t){var wt=!!getEntity$1(rt,_t);return wt||ct.push(_t),wt})),gt=new Map,xt=0;Object.keys(rt).forEach(function(_t){var wt=rt[_t],Tt=wt.level,Rt=gt.get(Tt);Rt||(Rt=new Set,gt.set(Tt,Rt)),Rt.add(wt),xt=Math.max(xt,Tt)}),warningOnce$1(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(_t){return"'".concat(_t,"'")}).join(", ")));var $t;return et===!0?$t=fillConductCheck$1(ft,gt,xt,ut):$t=cleanConductCheck$1(ft,et.halfCheckedKeys,gt,xt,ut),$t}function useSelect(_e,et,rt,st,ct,ut,ft,gt){return function(xt){if(!_e)et(xt);else{var $t=toPathKey(xt),_t=toPathKeys(rt),wt=toPathKeys(st),Tt=_t.includes($t),Rt=ct.some(function(Vt){return toPathKey(Vt)===$t}),It=rt,At=ct;if(Rt&&!Tt)At=ct.filter(function(Vt){return toPathKey(Vt)!==$t});else{var jt=Tt?_t.filter(function(Vt){return Vt!==$t}):[].concat(_toConsumableArray$3(_t),[$t]),Nt=ut(),kt;if(Tt){var Ft=conductCheck$1(jt,{checked:!1,halfCheckedKeys:wt},Nt);kt=Ft.checkedKeys}else{var Ht=conductCheck$1(jt,!0,Nt);kt=Ht.checkedKeys}var Wt=formatStrategyValues$1(kt,ut,gt);It=ft(Wt)}et([].concat(_toConsumableArray$3(At),_toConsumableArray$3(It)))}}}function useValues(_e,et,rt,st,ct){return reactExports.useMemo(function(){var ut=ct(et),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];if(!_e||!et.length)return[gt,[],xt];var $t=toPathKeys(gt),_t=rt(),wt=conductCheck$1($t,!0,_t),Tt=wt.checkedKeys,Rt=wt.halfCheckedKeys;return[st(Tt),st(Rt),xt]},[_e,et,rt,st,ct])}var CacheContent=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){return!et.open});function Checkbox$4(_e){var et,rt=_e.prefixCls,st=_e.checked,ct=_e.halfChecked,ut=_e.disabled,ft=_e.onClick,gt=_e.disableCheckbox,xt=reactExports.useContext(CascaderContext),$t=xt.checkable,_t=typeof $t!="boolean"?$t:null;return reactExports.createElement("span",{className:classNames("".concat(rt),(et={},_defineProperty$c(et,"".concat(rt,"-checked"),st),_defineProperty$c(et,"".concat(rt,"-indeterminate"),!st&&ct),_defineProperty$c(et,"".concat(rt,"-disabled"),ut||gt),et)),onClick:ft},_t)}var FIX_LABEL="__cascader_fix_label__";function Column(_e){var et=_e.prefixCls,rt=_e.multiple,st=_e.options,ct=_e.activeValue,ut=_e.prevValuePath,ft=_e.onToggleOpen,gt=_e.onSelect,xt=_e.onActive,$t=_e.checkedSet,_t=_e.halfCheckedSet,wt=_e.loadingKeys,Tt=_e.isSelectable,Rt=_e.searchValue,It="".concat(et,"-menu"),At="".concat(et,"-menu-item"),jt=reactExports.useContext(CascaderContext),Nt=jt.fieldNames,kt=jt.changeOnSelect,Ft=jt.expandTrigger,Ht=jt.expandIcon,Wt=jt.loadingIcon,Vt=jt.dropdownMenuColumnStyle,qt=Ft==="hover",Xt=reactExports.useMemo(function(){return st.map(function(Gt){var Zt,er=Gt.disabled,lr=Gt.disableCheckbox,cr=Gt[SEARCH_MARK],ur=(Zt=Gt[FIX_LABEL])!==null&&Zt!==void 0?Zt:Gt[Nt.label],fr=Gt[Nt.value],hr=isLeaf(Gt,Nt),pr=cr?cr.map(function(mr){return mr[Nt.value]}):[].concat(_toConsumableArray$3(ut),[fr]),dr=toPathKey(pr),yr=wt.includes(dr),Sr=$t.has(dr),br=_t.has(dr);return{disabled:er,label:ur,value:fr,isLeaf:hr,isLoading:yr,checked:Sr,halfChecked:br,option:Gt,disableCheckbox:lr,fullPath:pr,fullPathKey:dr}})},[st,$t,Nt,_t,wt,ut]);return reactExports.createElement("ul",{className:It,role:"menu"},Xt.map(function(Gt){var Zt,er=Gt.disabled,lr=Gt.label,cr=Gt.value,ur=Gt.isLeaf,fr=Gt.isLoading,hr=Gt.checked,pr=Gt.halfChecked,dr=Gt.option,yr=Gt.fullPath,Sr=Gt.fullPathKey,br=Gt.disableCheckbox,mr=function(){if(!(er||Rt)){var Or=_toConsumableArray$3(yr);qt&&ur&&Or.pop(),xt(Or)}},Er=function(){Tt(dr)&>(yr,ur)},Tr;return typeof dr.title=="string"?Tr=dr.title:typeof lr=="string"&&(Tr=lr),reactExports.createElement("li",{key:Sr,className:classNames(At,(Zt={},_defineProperty$c(Zt,"".concat(At,"-expand"),!ur),_defineProperty$c(Zt,"".concat(At,"-active"),ct===cr||ct===Sr),_defineProperty$c(Zt,"".concat(At,"-disabled"),er),_defineProperty$c(Zt,"".concat(At,"-loading"),fr),Zt)),style:Vt,role:"menuitemcheckbox",title:Tr,"aria-checked":hr,"data-path-key":Sr,onClick:function(){mr(),!br&&(!rt||ur)&&Er()},onDoubleClick:function(){kt&&ft(!1)},onMouseEnter:function(){qt&&mr()},onMouseDown:function(Or){Or.preventDefault()}},rt&&reactExports.createElement(Checkbox$4,{prefixCls:"".concat(et,"-checkbox"),checked:hr,halfChecked:pr,disabled:er||br,disableCheckbox:br,onClick:function(Or){br||(Or.stopPropagation(),Er())}}),reactExports.createElement("div",{className:"".concat(At,"-content")},lr),!fr&&Ht&&!ur&&reactExports.createElement("div",{className:"".concat(At,"-expand-icon")},Ht),fr&&Wt&&reactExports.createElement("div",{className:"".concat(At,"-loading-icon")},Wt))}))}const useActive=function(_e,et){var rt=reactExports.useContext(CascaderContext),st=rt.values,ct=st[0],ut=reactExports.useState([]),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return reactExports.useEffect(function(){et&&!_e&&xt(ct||[])},[et,ct]),[gt,xt]},useKeyboard=function(_e,et,rt,st,ct,ut,ft){var gt=ft.direction,xt=ft.searchValue,$t=ft.toggleOpen,_t=ft.open,wt=gt==="rtl",Tt=reactExports.useMemo(function(){for(var Vt=-1,qt=et,Xt=[],Gt=[],Zt=st.length,er=getFullPathKeys(et,rt),lr=function(pr){var dr=qt.findIndex(function(yr,Sr){return(er[Sr]?toPathKey(er[Sr]):yr[rt.value])===st[pr]});if(dr===-1)return 1;Vt=dr,Xt.push(Vt),Gt.push(st[pr]),qt=qt[Vt][rt.children]},cr=0;cr1){var qt=It.slice(0,-1);kt(qt)}else $t(!1)},Wt=function(){var qt,Xt=((qt=jt[At])===null||qt===void 0?void 0:qt[rt.children])||[],Gt=Xt.find(function(er){return!er.disabled});if(Gt){var Zt=[].concat(_toConsumableArray$3(It),[Gt[rt.value]]);kt(Zt)}};reactExports.useImperativeHandle(_e,function(){return{onKeyDown:function(qt){var Xt=qt.which;switch(Xt){case KeyCode.UP:case KeyCode.DOWN:{var Gt=0;Xt===KeyCode.UP?Gt=-1:Xt===KeyCode.DOWN&&(Gt=1),Gt!==0&&Ft(Gt);break}case KeyCode.LEFT:{if(xt)break;wt?Wt():Ht();break}case KeyCode.RIGHT:{if(xt)break;wt?Ht():Wt();break}case KeyCode.BACKSPACE:{xt||Ht();break}case KeyCode.ENTER:{if(It.length){var Zt=jt[At],er=(Zt==null?void 0:Zt[SEARCH_MARK])||[];er.length?ut(er.map(function(lr){return lr[rt.value]}),er[er.length-1]):ut(It,jt[At])}break}case KeyCode.ESC:$t(!1),_t&&qt.stopPropagation()}},onKeyUp:function(){}}})};var RawOptionList=reactExports.forwardRef(function(_e,et){var rt,st,ct,ut=_e.prefixCls,ft=_e.multiple,gt=_e.searchValue,xt=_e.toggleOpen,$t=_e.notFoundContent,_t=_e.direction,wt=_e.open,Tt=reactExports.useRef(),Rt=_t==="rtl",It=reactExports.useContext(CascaderContext),At=It.options,jt=It.values,Nt=It.halfValues,kt=It.fieldNames,Ft=It.changeOnSelect,Ht=It.onSelect,Wt=It.searchOptions,Vt=It.dropdownPrefixCls,qt=It.loadData,Xt=It.expandTrigger,Gt=Vt||ut,Zt=reactExports.useState([]),er=_slicedToArray$3(Zt,2),lr=er[0],cr=er[1],ur=function(kr){if(!(!qt||gt)){var Fr=toPathOptions(kr,At,kt),_r=Fr.map(function(Xr){var Kr=Xr.option;return Kr}),Br=_r[_r.length-1];if(Br&&!isLeaf(Br,kt)){var Dr=toPathKey(kr);cr(function(Xr){return[].concat(_toConsumableArray$3(Xr),[Dr])}),qt(_r)}}};reactExports.useEffect(function(){lr.length&&lr.forEach(function(jr){var kr=toPathValueStr(jr),Fr=toPathOptions(kr,At,kt,!0).map(function(Br){var Dr=Br.option;return Dr}),_r=Fr[Fr.length-1];(!_r||_r[kt.children]||isLeaf(_r,kt))&&cr(function(Br){return Br.filter(function(Dr){return Dr!==jr})})})},[At,lr,kt]);var fr=reactExports.useMemo(function(){return new Set(toPathKeys(jt))},[jt]),hr=reactExports.useMemo(function(){return new Set(toPathKeys(Nt))},[Nt]),pr=useActive(ft,wt),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1],br=function(kr){Sr(kr),ur(kr)},mr=function(kr){var Fr=kr.disabled,_r=isLeaf(kr,kt);return!Fr&&(_r||Ft||ft)},Er=function(kr,Fr){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ht(kr),!ft&&(Fr||Ft&&(Xt==="hover"||_r))&&xt(!1)},Tr=reactExports.useMemo(function(){return gt?Wt:At},[gt,Wt,At]),Mr=reactExports.useMemo(function(){for(var jr=[{options:Tr}],kr=Tr,Fr=getFullPathKeys(kr,kt),_r=function(){var Xr=yr[Br],Kr=kr.find(function(Vr,ln){return(Fr[ln]?toPathKey(Fr[ln]):Vr[kt.value])===Xr}),Hr=Kr==null?void 0:Kr[kt.children];if(!(Hr!=null&&Hr.length))return 1;kr=Hr,jr.push({options:Hr})},Br=0;Br":Nt,Ft=rt.loadingIcon,Ht=rt.direction,Wt=rt.notFoundContent,Vt=Wt===void 0?"Not Found":Wt,qt=!!xt,Xt=useMergedState($t,{value:_t,postState:toRawValues}),Gt=_slicedToArray$3(Xt,2),Zt=Gt[0],er=Gt[1],lr=reactExports.useMemo(function(){return fillFieldNames$4(wt)},[JSON.stringify(wt)]),cr=useOptions$1(lr,gt),ur=_slicedToArray$3(cr,3),fr=ur[0],hr=ur[1],pr=ur[2],dr=useMissingValues(fr,lr),yr=useValues(qt,Zt,hr,pr,dr),Sr=_slicedToArray$3(yr,3),br=Sr[0],mr=Sr[1],Er=Sr[2],Tr=useEvent(function(Rr){if(er(Rr),Rt){var Pr=toRawValues(Rr),jr=Pr.map(function(_r){return toPathOptions(_r,fr,lr).map(function(Br){return Br.option})}),kr=qt?Pr:Pr[0],Fr=qt?jr:jr[0];Rt(kr,Fr)}}),Mr=useSelect(qt,Tr,br,mr,Er,hr,pr,It),Or=useEvent(function(Rr){Mr(Rr)}),wr=reactExports.useMemo(function(){return{options:fr,fieldNames:lr,values:br,halfValues:mr,changeOnSelect:Tt,onSelect:Or,checkable:xt,searchOptions:[],dropdownPrefixCls:null,loadData:At,expandTrigger:jt,expandIcon:kt,loadingIcon:Ft,dropdownMenuColumnStyle:null}},[fr,lr,br,mr,Tt,Or,xt,At,jt,kt,Ft]),Cr="".concat(ct,"-panel"),Nr=!fr.length;return reactExports.createElement(CascaderContext.Provider,{value:wr},reactExports.createElement("div",{className:classNames(Cr,(et={},_defineProperty$c(et,"".concat(Cr,"-rtl"),Ht==="rtl"),_defineProperty$c(et,"".concat(Cr,"-empty"),Nr),et),ft),style:ut},Nr?Vt:reactExports.createElement(RawOptionList,{prefixCls:ct,searchValue:null,multiple:qt,toggleOpen:noop$6,open:!0,direction:Ht})))}var _excluded$1a=["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"],Cascader$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-cascader":st,ut=_e.fieldNames,ft=_e.defaultValue,gt=_e.value,xt=_e.changeOnSelect,$t=_e.onChange,_t=_e.displayRender,wt=_e.checkable,Tt=_e.autoClearSearchValue,Rt=Tt===void 0?!0:Tt,It=_e.searchValue,At=_e.onSearch,jt=_e.showSearch,Nt=_e.expandTrigger,kt=_e.options,Ft=_e.dropdownPrefixCls,Ht=_e.loadData,Wt=_e.popupVisible,Vt=_e.open,qt=_e.popupClassName,Xt=_e.dropdownClassName,Gt=_e.dropdownMenuColumnStyle,Zt=_e.dropdownStyle,er=_e.popupPlacement,lr=_e.placement,cr=_e.onDropdownVisibleChange,ur=_e.onPopupVisibleChange,fr=_e.expandIcon,hr=fr===void 0?">":fr,pr=_e.loadingIcon,dr=_e.children,yr=_e.dropdownMatchSelectWidth,Sr=yr===void 0?!1:yr,br=_e.showCheckedStrategy,mr=br===void 0?SHOW_PARENT$2:br,Er=_objectWithoutProperties$2(_e,_excluded$1a),Tr=useId$2(rt),Mr=!!wt,Or=useMergedState(ft,{value:gt,postState:toRawValues}),wr=_slicedToArray$3(Or,2),Cr=wr[0],Nr=wr[1],Rr=reactExports.useMemo(function(){return fillFieldNames$4(ut)},[JSON.stringify(ut)]),Pr=useOptions$1(Rr,kt),jr=_slicedToArray$3(Pr,3),kr=jr[0],Fr=jr[1],_r=jr[2],Br=useMergedState("",{value:It,postState:function(_n){return _n||""}}),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1],Hr=function(_n,Tn){Kr(_n),Tn.source!=="blur"&&At&&At(_n)},Vr=useSearchConfig(jt),ln=_slicedToArray$3(Vr,2),Qr=ln[0],Zr=ln[1],vn=useSearchOptions(Xr,kr,Rr,Ft||ct,Zr,xt),vr=useMissingValues(kr,Rr),gr=useValues(Mr,Cr,Fr,_r,vr),$r=_slicedToArray$3(gr,3),zr=$r[0],qr=$r[1],Wr=$r[2],Gr=reactExports.useMemo(function(){var yn=toPathKeys(zr),_n=formatStrategyValues$1(yn,Fr,mr);return[].concat(_toConsumableArray$3(Wr),_toConsumableArray$3(_r(_n)))},[zr,Fr,_r,Wr,mr]),dn=useDisplayValues(Gr,kr,Rr,Mr,_t),mn=useEvent(function(yn){if(Nr(yn),$t){var _n=toRawValues(yn),Tn=_n.map(function($n){return toPathOptions($n,kr,Rr).map(function(Sn){return Sn.option})}),Nn=Mr?_n:_n[0],On=Mr?Tn:Tn[0];$t(Nn,On)}}),hn=useSelect(Mr,mn,zr,qr,Wr,Fr,_r,mr),Cn=useEvent(function(yn){(!Mr||Rt)&&Kr(""),hn(yn)}),Rn=function(_n,Tn){if(Tn.type==="clear"){mn([]);return}var Nn=Tn.values[0],On=Nn.valueCells;Cn(On)},kn=Vt!==void 0?Vt:Wt,Bn=Xt||qt,Yn=lr||er,Gn=function(_n){cr==null||cr(_n),ur==null||ur(_n)},io=reactExports.useMemo(function(){return{options:kr,fieldNames:Rr,values:zr,halfValues:qr,changeOnSelect:xt,onSelect:Cn,checkable:wt,searchOptions:vn,dropdownPrefixCls:Ft,loadData:Ht,expandTrigger:Nt,expandIcon:hr,loadingIcon:pr,dropdownMenuColumnStyle:Gt}},[kr,Rr,zr,qr,xt,Cn,wt,vn,Ft,Ht,Nt,hr,pr,Gt]),pn=!(Xr?vn:kr).length,gn=Xr&&Zr.matchInputWidth||pn?{}:{minWidth:"auto"};return reactExports.createElement(CascaderContext.Provider,{value:io},reactExports.createElement(BaseSelect$1,_extends$b({},Er,{ref:et,id:Tr,prefixCls:ct,autoClearSearchValue:Rt,dropdownMatchSelectWidth:Sr,dropdownStyle:_objectSpread2(_objectSpread2({},gn),Zt),displayValues:dn,onDisplayValuesChange:Rn,mode:Mr?"multiple":void 0,searchValue:Xr,onSearch:Hr,showSearch:Qr,OptionList:RefOptionList$2,emptyOptions:pn,open:kn,dropdownClassName:Bn,placement:Yn,onDropdownVisibleChange:Gn,getRawInputElement:function(){return dr}})))});Cascader$2.SHOW_PARENT=SHOW_PARENT$2;Cascader$2.SHOW_CHILD=SHOW_CHILD$2;Cascader$2.Panel=Panel$1;function useBase(_e,et){const{getPrefixCls:rt,direction:st,renderEmpty:ct}=reactExports.useContext(ConfigContext$1),ut=et||st,ft=rt("select",_e),gt=rt("cascader",_e);return[ft,gt,ut,ct]}function useCheckable(_e,et){return reactExports.useMemo(()=>et?reactExports.createElement("span",{className:`${_e}-checkbox-inner`}):!1,[et])}function useColumnIcons(_e,et,rt){let st=rt;rt||(st=et?reactExports.createElement(LeftOutlined$4,null):reactExports.createElement(RightOutlined$6,null));const ct=reactExports.createElement("span",{className:`${_e}-menu-item-loading-icon`},reactExports.createElement(LoadingOutlined$3,{spin:!0}));return[st,ct]}const genCheckboxStyle=_e=>{const{checkboxCls:et}=_e,rt=`${et}-wrapper`;return[{[`${et}-group`]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",flexWrap:"wrap",columnGap:_e.marginXS,[`> ${_e.antCls}-row`]:{flex:1}}),[rt]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${rt}`]:{marginInlineStart:0},[`&${rt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:_e.borderRadiusSM,alignSelf:"center",[`${et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${et}-inner`]:Object.assign({},genFocusOutline(_e))},[`${et}-inner`]:{boxSizing:"border-box",display:"block",width:_e.checkboxSize,height:_e.checkboxSize,direction:"ltr",backgroundColor:_e.colorBgContainer,border:`${unit$1(_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:`${unit$1(_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}})},{[` ${rt}:not(${rt}-disabled), ${et}:not(${et}-disabled) `]:{[`&:hover ${et}-inner`]:{borderColor:_e.colorPrimary}},[`${rt}:not(${rt}-disabled)`]:{[`&:hover ${et}-checked:not(${et}-disabled) ${et}-inner`]:{backgroundColor:_e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${et}-checked:not(${et}-disabled):after`]:{borderColor:_e.colorPrimaryHover}}},{[`${et}-checked`]:{[`${et}-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}`}}},[` ${rt}-checked:not(${rt}-disabled), ${et}-checked:not(${et}-disabled) - `]:{[`&:hover ${et}-inner`]:{backgroundColor:_e.colorPrimaryHover,borderColor:"transparent"}}},{[et]:{"&-indeterminate":{[`${et}-inner`]:{backgroundColor:_e.colorBgContainer,borderColor:_e.colorBorder,"&: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:'""'}}}}},{[`${rt}-disabled`]:{cursor:"not-allowed"},[`${et}-disabled`]:{[`&, ${et}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${et}-inner`]:{background:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,"&:after":{borderColor:_e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:_e.colorTextDisabled},[`&${et}-indeterminate ${et}-inner::after`]:{background:_e.colorTextDisabled}}}]};function getStyle$1(_e,et){const rt=merge$7(et,{checkboxCls:`.${_e}`,checkboxSize:et.controlInteractiveSize});return[genCheckboxStyle(rt)]}const useStyle$D=genStyleHooks("Checkbox",(_e,et)=>{let{prefixCls:rt}=et;return[getStyle$1(rt,_e)]}),getColumnsStyle=_e=>{const{prefixCls:et,componentCls:rt}=_e,st=`${rt}-menu-item`,ct=` + `]:{[`&:hover ${et}-inner`]:{backgroundColor:_e.colorPrimaryHover,borderColor:"transparent"}}},{[et]:{"&-indeterminate":{[`${et}-inner`]:{backgroundColor:_e.colorBgContainer,borderColor:_e.colorBorder,"&: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:'""'}}}}},{[`${rt}-disabled`]:{cursor:"not-allowed"},[`${et}-disabled`]:{[`&, ${et}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${et}-inner`]:{background:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,"&:after":{borderColor:_e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:_e.colorTextDisabled},[`&${et}-indeterminate ${et}-inner::after`]:{background:_e.colorTextDisabled}}}]};function getStyle$1(_e,et){const rt=merge$7(et,{checkboxCls:`.${_e}`,checkboxSize:et.controlInteractiveSize});return[genCheckboxStyle(rt)]}const useStyle$F=genStyleHooks("Checkbox",(_e,et)=>{let{prefixCls:rt}=et;return[getStyle$1(rt,_e)]}),getColumnsStyle=_e=>{const{prefixCls:et,componentCls:rt}=_e,st=`${rt}-menu-item`,ct=` &${st}-expand ${st}-expand-icon, ${st}-loading-icon -`;return[getStyle$1(`${et}-checkbox`,_e),{[rt]:{"&-checkbox":{top:0,marginInlineEnd:_e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${rt}-menu-empty`]:{[`${rt}-menu`]:{width:"100%",height:"auto",[st]:{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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},"&-item":Object.assign(Object.assign({},textEllipsis),{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"},[ct]:{color:_e.colorTextDisabled}},[`&-active:not(${st}-disabled)`]:{"&, &:hover":{fontWeight:_e.optionSelectedFontWeight,backgroundColor:_e.optionSelectedBg}},"&-content":{flex:"auto"},[ct]:{marginInlineStart:_e.paddingXXS,color:_e.colorTextDescription,fontSize:_e.fontSizeIcon},"&-keyword":{color:_e.colorHighlight}})}}}]},getColumnsStyle$1=getColumnsStyle,genBaseStyle$8=_e=>{const{componentCls:et,antCls:rt}=_e;return[{[et]:{width:_e.controlWidth}},{[`${et}-dropdown`]:[{[`&${rt}-select-dropdown`]:{padding:0}},getColumnsStyle$1(_e)]},{[`${et}-dropdown-rtl`]:{direction:"rtl"}},genCompactItemStyle(_e)]},prepareComponentToken$j=_e=>{const et=Math.round((_e.controlHeight-_e.fontSize*_e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:_e.controlItemBgActive,optionSelectedFontWeight:_e.fontWeightStrong,optionPadding:`${et}px ${_e.paddingSM}px`,menuPadding:_e.paddingXXS}},useStyle$C=genStyleHooks("Cascader",_e=>[genBaseStyle$8(_e)],prepareComponentToken$j),genPanelStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-panel`]:[getColumnsStyle$1(_e),{display:"inline-flex",border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,borderRadius:_e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${et}-menus`]:{alignItems:"stretch"},[`${et}-menu`]:{height:"auto"},"&-empty":{padding:_e.paddingXXS}}]}},usePanelStyle=genComponentStyleHook$1(["Cascader","Panel"],_e=>genPanelStyle(_e),prepareComponentToken$j),CascaderPanel=_e=>{const{prefixCls:et,className:rt,multiple:st,rootClassName:ct,notFoundContent:ut,direction:ft,expandIcon:gt}=_e,[xt,$t,_t,wt]=useBase(et,ft),Tt=useCSSVarCls($t),[Rt,It,At]=useStyle$C($t,Tt);usePanelStyle($t);const jt=_t==="rtl",[Nt,kt]=useColumnIcons(xt,jt,gt),Ft=ut||(wt==null?void 0:wt("Cascader"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Cascader"}),Ht=useCheckable($t,st);return Rt(reactExports.createElement(Panel$1,Object.assign({},_e,{checkable:Ht,prefixCls:$t,className:classNames(rt,It,ct,At,Tt),notFoundContent:Ft,direction:_t,expandIcon:Nt,loadingIcon:kt})))},CascaderPanel$1=CascaderPanel;var __rest$F=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctxt===0?[gt]:[].concat(_toConsumableArray$3(ft),[et,gt]),[]),ct=[];let ut=0;return st.forEach((ft,gt)=>{const xt=ut+ft.length;let $t=_e.slice(ut,xt);ut=xt,gt%2===1&&($t=reactExports.createElement("span",{className:`${rt}-menu-item-keyword`,key:`separator-${gt}`},$t)),ct.push($t)}),ct}const defaultSearchRender=(_e,et,rt,st)=>{const ct=[],ut=_e.toLowerCase();return et.forEach((ft,gt)=>{gt!==0&&ct.push(" / ");let xt=ft[st.label];const $t=typeof xt;($t==="string"||$t==="number")&&(xt=highlightKeyword(String(xt),ut,rt)),ct.push(xt)}),ct},Cascader=reactExports.forwardRef((_e,et)=>{var rt;const{prefixCls:st,size:ct,disabled:ut,className:ft,rootClassName:gt,multiple:xt,bordered:$t=!0,transitionName:_t,choiceTransitionName:wt="",popupClassName:Tt,dropdownClassName:Rt,expandIcon:It,placement:At,showSearch:jt,allowClear:Nt=!0,notFoundContent:kt,direction:Ft,getPopupContainer:Ht,status:Wt,showArrow:Vt,builtinPlacements:qt,style:Gt,variant:Xt}=_e,Zt=__rest$F(_e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),lr=omit$2(Zt,["suffixIcon"]),{getPopupContainer:er,getPrefixCls:cr,popupOverflow:ur,cascader:pr}=reactExports.useContext(ConfigContext$1),{status:hr,hasFeedback:fr,isFormItemInput:dr,feedbackIcon:yr}=reactExports.useContext(FormItemInputContext),$r=getMergedStatus(hr,Wt),[Er,mr,Sr,Tr]=useBase(st,Ft),jr=Sr==="rtl",Or=cr(),_r=useCSSVarCls(Er),[Cr,Nr,Rr]=useSelectStyle(Er,_r),Pr=useCSSVarCls(mr),[Mr]=useStyle$C(mr,Pr),{compactSize:kr,compactItemClassnames:Fr}=useCompactItemContext(Er,Ft),[wr,Br]=useVariant(Xt,$t),Dr=kt||(Tr==null?void 0:Tr("Cascader"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Cascader"}),Xr=classNames(Tt||Rt,`${mr}-dropdown`,{[`${mr}-dropdown-rtl`]:Sr==="rtl"},gt,_r,Pr,Nr,Rr),Kr=reactExports.useMemo(()=>{if(!jt)return jt;let mn={render:defaultSearchRender};return typeof jt=="object"&&(mn=Object.assign(Object.assign({},mn),jt)),mn},[jt]),zr=useSize(mn=>{var hn;return(hn=ct??kr)!==null&&hn!==void 0?hn:mn}),qr=reactExports.useContext(DisabledContext$2),pn=ut??qr,[Qr,Zr]=useColumnIcons(Er,jr,It),vn=useCheckable(mr,xt),vr=useShowArrow(_e.suffixIcon,Vt),{suffixIcon:gr,removeIcon:br,clearIcon:Hr}=useIcons$1(Object.assign(Object.assign({},_e),{hasFeedback:fr,feedbackIcon:yr,showSuffixIcon:vr,multiple:xt,prefixCls:Er,componentName:"Cascader"})),Vr=reactExports.useMemo(()=>At!==void 0?At:jr?"bottomRight":"bottomLeft",[At,jr]),Wr=Nt===!0?{clearIcon:Hr}:Nt,[Gr]=useZIndex("SelectLike",(rt=lr.dropdownStyle)===null||rt===void 0?void 0:rt.zIndex),cn=reactExports.createElement(Cascader$2,Object.assign({prefixCls:Er,className:classNames(!st&&mr,{[`${Er}-lg`]:zr==="large",[`${Er}-sm`]:zr==="small",[`${Er}-rtl`]:jr,[`${Er}-${wr}`]:Br,[`${Er}-in-form-item`]:dr},getStatusClassNames(Er,$r,fr),Fr,pr==null?void 0:pr.className,ft,gt,_r,Pr,Nr,Rr),disabled:pn,style:Object.assign(Object.assign({},pr==null?void 0:pr.style),Gt)},lr,{builtinPlacements:mergedBuiltinPlacements(qt,ur),direction:Sr,placement:Vr,notFoundContent:Dr,allowClear:Wr,showSearch:Kr,expandIcon:Qr,suffixIcon:gr,removeIcon:br,loadingIcon:Zr,checkable:vn,dropdownClassName:Xr,dropdownPrefixCls:st||mr,dropdownStyle:Object.assign(Object.assign({},lr.dropdownStyle),{zIndex:Gr}),choiceTransitionName:getTransitionName(Or,"",wt),transitionName:getTransitionName(Or,"slide-up",_t),getPopupContainer:Ht||er,ref:et}));return Mr(Cr(cn))}),PurePanel$7=genPurePanel(Cascader);Cascader.SHOW_PARENT=SHOW_PARENT$1;Cascader.SHOW_CHILD=SHOW_CHILD$1;Cascader.Panel=CascaderPanel$1;Cascader._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$7;const Cascader$1=Cascader,GroupContext=React$1.createContext(null),GroupContext$1=GroupContext;var __rest$E=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,className:ct,rootClassName:ut,children:ft,indeterminate:gt=!1,style:xt,onMouseEnter:$t,onMouseLeave:_t,skipGroup:wt=!1,disabled:Tt}=_e,Rt=__rest$E(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:It,direction:At,checkbox:jt}=reactExports.useContext(ConfigContext$1),Nt=reactExports.useContext(GroupContext$1),{isFormItemInput:kt}=reactExports.useContext(FormItemInputContext),Ft=reactExports.useContext(DisabledContext$2),Ht=(rt=(Nt==null?void 0:Nt.disabled)||Tt)!==null&&rt!==void 0?rt:Ft,Wt=reactExports.useRef(Rt.value);reactExports.useEffect(()=>{Nt==null||Nt.registerValue(Rt.value)},[]),reactExports.useEffect(()=>{if(!wt)return Rt.value!==Wt.current&&(Nt==null||Nt.cancelValue(Wt.current),Nt==null||Nt.registerValue(Rt.value),Wt.current=Rt.value),()=>Nt==null?void 0:Nt.cancelValue(Rt.value)},[Rt.value]);const Vt=It("checkbox",st),qt=useCSSVarCls(Vt),[Gt,Xt,Zt]=useStyle$D(Vt,qt),lr=Object.assign({},Rt);Nt&&!wt&&(lr.onChange=function(){Rt.onChange&&Rt.onChange.apply(Rt,arguments),Nt.toggleOption&&Nt.toggleOption({label:ft,value:Rt.value})},lr.name=Nt.name,lr.checked=Nt.value.includes(Rt.value));const er=classNames(`${Vt}-wrapper`,{[`${Vt}-rtl`]:At==="rtl",[`${Vt}-wrapper-checked`]:lr.checked,[`${Vt}-wrapper-disabled`]:Ht,[`${Vt}-wrapper-in-form-item`]:kt},jt==null?void 0:jt.className,ct,ut,Zt,qt,Xt),cr=classNames({[`${Vt}-indeterminate`]:gt},TARGET_CLS,Xt),ur=gt?"mixed":void 0;return Gt(reactExports.createElement(Wave$1,{component:"Checkbox",disabled:Ht},reactExports.createElement("label",{className:er,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),xt),onMouseEnter:$t,onMouseLeave:_t},reactExports.createElement(Checkbox$5,Object.assign({"aria-checked":ur},lr,{prefixCls:Vt,className:cr,disabled:Ht,ref:et})),ft!==void 0&&reactExports.createElement("span",null,ft))))},Checkbox$3=reactExports.forwardRef(InternalCheckbox),InternalCheckbox$1=Checkbox$3;var __rest$D=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{defaultValue:rt,children:st,options:ct=[],prefixCls:ut,className:ft,rootClassName:gt,style:xt,onChange:$t}=_e,_t=__rest$D(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:wt,direction:Tt}=reactExports.useContext(ConfigContext$1),[Rt,It]=reactExports.useState(_t.value||rt||[]),[At,jt]=reactExports.useState([]);reactExports.useEffect(()=>{"value"in _t&&It(_t.value||[])},[_t.value]);const Nt=reactExports.useMemo(()=>ct.map(pr=>typeof pr=="string"||typeof pr=="number"?{label:pr,value:pr}:pr),[ct]),kt=pr=>{jt(hr=>hr.filter(fr=>fr!==pr))},Ft=pr=>{jt(hr=>[].concat(_toConsumableArray$3(hr),[pr]))},Ht=pr=>{const hr=Rt.indexOf(pr.value),fr=_toConsumableArray$3(Rt);hr===-1?fr.push(pr.value):fr.splice(hr,1),"value"in _t||It(fr),$t==null||$t(fr.filter(dr=>At.includes(dr)).sort((dr,yr)=>{const $r=Nt.findIndex(mr=>mr.value===dr),Er=Nt.findIndex(mr=>mr.value===yr);return $r-Er}))},Wt=wt("checkbox",ut),Vt=`${Wt}-group`,qt=useCSSVarCls(Wt),[Gt,Xt,Zt]=useStyle$D(Wt,qt),lr=omit$2(_t,["value","disabled"]),er=ct.length?Nt.map(pr=>reactExports.createElement(InternalCheckbox$1,{prefixCls:Wt,key:pr.value.toString(),disabled:"disabled"in pr?pr.disabled:_t.disabled,value:pr.value,checked:Rt.includes(pr.value),onChange:pr.onChange,className:`${Vt}-item`,style:pr.style,title:pr.title,id:pr.id,required:pr.required},pr.label)):st,cr={toggleOption:Ht,value:Rt,disabled:_t.disabled,name:_t.name,registerValue:Ft,cancelValue:kt},ur=classNames(Vt,{[`${Vt}-rtl`]:Tt==="rtl"},ft,gt,Zt,qt,Xt);return Gt(reactExports.createElement("div",Object.assign({className:ur,style:xt},lr,{ref:et}),reactExports.createElement(GroupContext$1.Provider,{value:cr},er)))}),Group$5=CheckboxGroup$1,Checkbox$1=InternalCheckbox$1;Checkbox$1.Group=Group$5;Checkbox$1.__ANT_CHECKBOX=!0;const Checkbox$2=Checkbox$1,RowContext=reactExports.createContext({}),RowContext$1=RowContext,genGridRowStyle=_e=>{const{componentCls:et}=_e;return{[et]:{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"}}}},genGridColStyle=_e=>{const{componentCls:et}=_e;return{[et]:{position:"relative",maxWidth:"100%",minHeight:1}}},genLoopGridColumnsStyle=(_e,et)=>{const{prefixCls:rt,componentCls:st,gridColumns:ct}=_e,ut={};for(let ft=ct;ft>=0;ft--)ft===0?(ut[`${st}${et}-${ft}`]={display:"none"},ut[`${st}-push-${ft}`]={insetInlineStart:"auto"},ut[`${st}-pull-${ft}`]={insetInlineEnd:"auto"},ut[`${st}${et}-push-${ft}`]={insetInlineStart:"auto"},ut[`${st}${et}-pull-${ft}`]={insetInlineEnd:"auto"},ut[`${st}${et}-offset-${ft}`]={marginInlineStart:0},ut[`${st}${et}-order-${ft}`]={order:0}):(ut[`${st}${et}-${ft}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${ft/ct*100}%`,maxWidth:`${ft/ct*100}%`}],ut[`${st}${et}-push-${ft}`]={insetInlineStart:`${ft/ct*100}%`},ut[`${st}${et}-pull-${ft}`]={insetInlineEnd:`${ft/ct*100}%`},ut[`${st}${et}-offset-${ft}`]={marginInlineStart:`${ft/ct*100}%`},ut[`${st}${et}-order-${ft}`]={order:ft});return ut[`${st}${et}-flex`]={flex:`var(--${rt}${et}-flex)`},ut},genGridStyle=(_e,et)=>genLoopGridColumnsStyle(_e,et),genGridMediaStyle=(_e,et,rt)=>({[`@media (min-width: ${unit$1(et)})`]:Object.assign({},genGridStyle(_e,rt))}),prepareRowComponentToken=()=>({}),prepareColComponentToken=()=>({}),useRowStyle=genStyleHooks("Grid",genGridRowStyle,prepareRowComponentToken),useColStyle=genStyleHooks("Grid",_e=>{const et=merge$7(_e,{gridColumns:24}),rt={"-sm":et.screenSMMin,"-md":et.screenMDMin,"-lg":et.screenLGMin,"-xl":et.screenXLMin,"-xxl":et.screenXXLMin};return[genGridColStyle(et),genGridStyle(et,""),genGridStyle(et,"-xs"),Object.keys(rt).map(st=>genGridMediaStyle(et,rt[st],st)).reduce((st,ct)=>Object.assign(Object.assign({},st),ct),{})]},prepareColComponentToken);var __rest$C=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),{gutter:ct,wrap:ut}=reactExports.useContext(RowContext$1),{prefixCls:ft,span:gt,order:xt,offset:$t,push:_t,pull:wt,className:Tt,children:Rt,flex:It,style:At}=_e,jt=__rest$C(_e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Nt=rt("col",ft),[kt,Ft,Ht]=useColStyle(Nt),Wt={};let Vt={};sizes.forEach(Xt=>{let Zt={};const lr=_e[Xt];typeof lr=="number"?Zt.span=lr:typeof lr=="object"&&(Zt=lr||{}),delete jt[Xt],Vt=Object.assign(Object.assign({},Vt),{[`${Nt}-${Xt}-${Zt.span}`]:Zt.span!==void 0,[`${Nt}-${Xt}-order-${Zt.order}`]:Zt.order||Zt.order===0,[`${Nt}-${Xt}-offset-${Zt.offset}`]:Zt.offset||Zt.offset===0,[`${Nt}-${Xt}-push-${Zt.push}`]:Zt.push||Zt.push===0,[`${Nt}-${Xt}-pull-${Zt.pull}`]:Zt.pull||Zt.pull===0,[`${Nt}-rtl`]:st==="rtl"}),Zt.flex&&(Vt[`${Nt}-${Xt}-flex`]=!0,Wt[`--${Nt}-${Xt}-flex`]=parseFlex(Zt.flex))});const qt=classNames(Nt,{[`${Nt}-${gt}`]:gt!==void 0,[`${Nt}-order-${xt}`]:xt,[`${Nt}-offset-${$t}`]:$t,[`${Nt}-push-${_t}`]:_t,[`${Nt}-pull-${wt}`]:wt},Tt,Vt,Ft,Ht),Gt={};if(ct&&ct[0]>0){const Xt=ct[0]/2;Gt.paddingLeft=Xt,Gt.paddingRight=Xt}return It&&(Gt.flex=parseFlex(It),ut===!1&&!Gt.minWidth&&(Gt.minWidth=0)),kt(reactExports.createElement("div",Object.assign({},jt,{style:Object.assign(Object.assign(Object.assign({},Gt),At),Wt),className:qt,ref:et}),Rt))}),Col$1=Col;var __rest$B=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(typeof _e=="string"&&st(_e),typeof _e=="object")for(let ut=0;ut{ct()},[JSON.stringify(_e),et]),rt}const Row$2=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,justify:st,align:ct,className:ut,style:ft,children:gt,gutter:xt=0,wrap:$t}=_e,_t=__rest$B(_e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:wt,direction:Tt}=reactExports.useContext(ConfigContext$1),[Rt,It]=reactExports.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[At,jt]=reactExports.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Nt=useMergePropByScreen(ct,At),kt=useMergePropByScreen(st,At),Ft=reactExports.useRef(xt),Ht=useResponsiveObserver();reactExports.useEffect(()=>{const fr=Ht.subscribe(dr=>{jt(dr);const yr=Ft.current||0;(!Array.isArray(yr)&&typeof yr=="object"||Array.isArray(yr)&&(typeof yr[0]=="object"||typeof yr[1]=="object"))&&It(dr)});return()=>Ht.unsubscribe(fr)},[]);const Wt=()=>{const fr=[void 0,void 0];return(Array.isArray(xt)?xt:[xt,void 0]).forEach((yr,$r)=>{if(typeof yr=="object")for(let Er=0;Er0?Zt[0]/-2:void 0;cr&&(er.marginLeft=cr,er.marginRight=cr),[,er.rowGap]=Zt;const[ur,pr]=Zt,hr=reactExports.useMemo(()=>({gutter:[ur,pr],wrap:$t}),[ur,pr,$t]);return qt(reactExports.createElement(RowContext$1.Provider,{value:hr},reactExports.createElement("div",Object.assign({},_t,{className:lr,style:Object.assign(Object.assign({},er),ft),ref:et}),gt)))}),Row$3=Row$2;var PanelContent=React$1.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=_e.forceRender,ut=_e.className,ft=_e.style,gt=_e.children,xt=_e.isActive,$t=_e.role,_t=React$1.useState(xt||ct),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];return React$1.useEffect(function(){(ct||xt)&&Rt(!0)},[ct,xt]),Tt?React$1.createElement("div",{ref:et,className:classNames("".concat(st,"-content"),(rt={},_defineProperty$c(rt,"".concat(st,"-content-active"),xt),_defineProperty$c(rt,"".concat(st,"-content-inactive"),!xt),rt),ut),style:ft,role:$t},React$1.createElement("div",{className:"".concat(st,"-content-box")},gt)):null});PanelContent.displayName="PanelContent";var _excluded$19=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],CollapsePanel$2=React$1.forwardRef(function(_e,et){var rt,st,ct=_e.showArrow,ut=ct===void 0?!0:ct,ft=_e.headerClass,gt=_e.isActive,xt=_e.onItemClick,$t=_e.forceRender,_t=_e.className,wt=_e.prefixCls,Tt=_e.collapsible,Rt=_e.accordion,It=_e.panelKey,At=_e.extra,jt=_e.header,Nt=_e.expandIcon,kt=_e.openMotion,Ft=_e.destroyInactivePanel,Ht=_e.children,Wt=_objectWithoutProperties$2(_e,_excluded$19),Vt=Tt==="disabled",qt=Tt==="header",Gt=Tt==="icon",Xt=At!=null&&typeof At!="boolean",Zt=function(){xt==null||xt(It)},lr=function(fr){(fr.key==="Enter"||fr.keyCode===KeyCode.ENTER||fr.which===KeyCode.ENTER)&&Zt()},er=typeof Nt=="function"?Nt(_e):React$1.createElement("i",{className:"arrow"});er&&(er=React$1.createElement("div",{className:"".concat(wt,"-expand-icon"),onClick:["header","icon"].includes(Tt)?Zt:void 0},er));var cr=classNames((rt={},_defineProperty$c(rt,"".concat(wt,"-item"),!0),_defineProperty$c(rt,"".concat(wt,"-item-active"),gt),_defineProperty$c(rt,"".concat(wt,"-item-disabled"),Vt),rt),_t),ur=classNames(ft,(st={},_defineProperty$c(st,"".concat(wt,"-header"),!0),_defineProperty$c(st,"".concat(wt,"-header-collapsible-only"),qt),_defineProperty$c(st,"".concat(wt,"-icon-collapsible-only"),Gt),st)),pr={className:ur,"aria-expanded":gt,"aria-disabled":Vt,onKeyDown:lr};return!qt&&!Gt&&(pr.onClick=Zt,pr.role=Rt?"tab":"button",pr.tabIndex=Vt?-1:0),React$1.createElement("div",_extends$b({},Wt,{ref:et,className:cr}),React$1.createElement("div",pr,ut&&er,React$1.createElement("span",{className:"".concat(wt,"-header-text"),onClick:Tt==="header"?Zt:void 0},jt),Xt&&React$1.createElement("div",{className:"".concat(wt,"-extra")},At)),React$1.createElement(CSSMotion,_extends$b({visible:gt,leavedClassName:"".concat(wt,"-content-hidden")},kt,{forceRender:$t,removeOnLeave:Ft}),function(hr,fr){var dr=hr.className,yr=hr.style;return React$1.createElement(PanelContent,{ref:fr,prefixCls:wt,className:dr,style:yr,isActive:gt,forceRender:$t,role:Rt?"tabpanel":void 0},Ht)}))}),_excluded$18=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],convertItemsToNodes=function(et,rt){var st=rt.prefixCls,ct=rt.accordion,ut=rt.collapsible,ft=rt.destroyInactivePanel,gt=rt.onItemClick,xt=rt.activeKey,$t=rt.openMotion,_t=rt.expandIcon;return et.map(function(wt,Tt){var Rt=wt.children,It=wt.label,At=wt.key,jt=wt.collapsible,Nt=wt.onItemClick,kt=wt.destroyInactivePanel,Ft=_objectWithoutProperties$2(wt,_excluded$18),Ht=String(At??Tt),Wt=jt??ut,Vt=kt??ft,qt=function(Zt){Wt!=="disabled"&&(gt(Zt),Nt==null||Nt(Zt))},Gt=!1;return ct?Gt=xt[0]===Ht:Gt=xt.indexOf(Ht)>-1,React$1.createElement(CollapsePanel$2,_extends$b({},Ft,{prefixCls:st,key:Ht,panelKey:Ht,isActive:Gt,accordion:ct,openMotion:$t,expandIcon:_t,header:It,collapsible:Wt,onItemClick:qt,destroyInactivePanel:Vt}),Rt)})},getNewChild=function(et,rt,st){if(!et)return null;var ct=st.prefixCls,ut=st.accordion,ft=st.collapsible,gt=st.destroyInactivePanel,xt=st.onItemClick,$t=st.activeKey,_t=st.openMotion,wt=st.expandIcon,Tt=et.key||String(rt),Rt=et.props,It=Rt.header,At=Rt.headerClass,jt=Rt.destroyInactivePanel,Nt=Rt.collapsible,kt=Rt.onItemClick,Ft=!1;ut?Ft=$t[0]===Tt:Ft=$t.indexOf(Tt)>-1;var Ht=Nt??ft,Wt=function(Gt){Ht!=="disabled"&&(xt(Gt),kt==null||kt(Gt))},Vt={key:Tt,panelKey:Tt,header:It,headerClass:At,isActive:Ft,prefixCls:ct,destroyInactivePanel:jt??gt,openMotion:_t,accordion:ut,children:et.props.children,onItemClick:Wt,expandIcon:wt,collapsible:Ht};return typeof et.type=="string"?et:(Object.keys(Vt).forEach(function(qt){typeof Vt[qt]>"u"&&delete Vt[qt]}),React$1.cloneElement(et,Vt))};function useItems$1(_e,et,rt){return Array.isArray(_e)?convertItemsToNodes(_e,rt):toArray$d(et).map(function(st,ct){return getNewChild(st,ct,rt)})}function getActiveKeysArray(_e){var et=_e;if(!Array.isArray(et)){var rt=_typeof$e(et);et=rt==="number"||rt==="string"?[et]:[]}return et.map(function(st){return String(st)})}var Collapse$2=React$1.forwardRef(function(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-collapse":rt,ct=_e.destroyInactivePanel,ut=ct===void 0?!1:ct,ft=_e.style,gt=_e.accordion,xt=_e.className,$t=_e.children,_t=_e.collapsible,wt=_e.openMotion,Tt=_e.expandIcon,Rt=_e.activeKey,It=_e.defaultActiveKey,At=_e.onChange,jt=_e.items,Nt=classNames(st,xt),kt=useMergedState([],{value:Rt,onChange:function(Xt){return At==null?void 0:At(Xt)},defaultValue:It,postState:getActiveKeysArray}),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=function(Xt){return Wt(function(){if(gt)return Ht[0]===Xt?[]:[Xt];var Zt=Ht.indexOf(Xt),lr=Zt>-1;return lr?Ht.filter(function(er){return er!==Xt}):[].concat(_toConsumableArray$3(Ht),[Xt])})};warningOnce$1(!$t,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var qt=useItems$1(jt,$t,{prefixCls:st,accordion:gt,openMotion:wt,expandIcon:Tt,collapsible:_t,destroyInactivePanel:ut,onItemClick:Vt,activeKey:Ht});return React$1.createElement("div",{ref:et,className:Nt,style:ft,role:gt?"tablist":void 0},qt)});const Collapse$3=Object.assign(Collapse$2,{Panel:CollapsePanel$2});Collapse$3.Panel;const CollapsePanel=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct,showArrow:ut=!0}=_e,ft=rt("collapse",st),gt=classNames({[`${ft}-no-arrow`]:!ut},ct);return reactExports.createElement(Collapse$3.Panel,Object.assign({ref:et},_e,{prefixCls:ft,className:gt}))}),CollapsePanel$1=CollapsePanel,genBaseStyle$7=_e=>{const{componentCls:et,contentBg:rt,padding:st,headerBg:ct,headerPadding:ut,collapseHeaderPaddingSM:ft,collapseHeaderPaddingLG:gt,collapsePanelBorderRadius:xt,lineWidth:$t,lineType:_t,colorBorder:wt,colorText:Tt,colorTextHeading:Rt,colorTextDisabled:It,fontSizeLG:At,lineHeight:jt,lineHeightLG:Nt,marginSM:kt,paddingSM:Ft,paddingLG:Ht,paddingXS:Wt,motionDurationSlow:Vt,fontSizeIcon:qt,contentPadding:Gt,fontHeight:Xt,fontHeightLG:Zt}=_e,lr=`${unit$1($t)} ${_t} ${wt}`;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{backgroundColor:ct,border:lr,borderBottom:0,borderRadius:xt,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:lr,"&:last-child":{[` +`;return[getStyle$1(`${et}-checkbox`,_e),{[rt]:{"&-checkbox":{top:0,marginInlineEnd:_e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${rt}-menu-empty`]:{[`${rt}-menu`]:{width:"100%",height:"auto",[st]:{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:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},"&-item":Object.assign(Object.assign({},textEllipsis),{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"},[ct]:{color:_e.colorTextDisabled}},[`&-active:not(${st}-disabled)`]:{"&, &:hover":{fontWeight:_e.optionSelectedFontWeight,backgroundColor:_e.optionSelectedBg}},"&-content":{flex:"auto"},[ct]:{marginInlineStart:_e.paddingXXS,color:_e.colorTextDescription,fontSize:_e.fontSizeIcon},"&-keyword":{color:_e.colorHighlight}})}}}]},getColumnsStyle$1=getColumnsStyle,genBaseStyle$9=_e=>{const{componentCls:et,antCls:rt}=_e;return[{[et]:{width:_e.controlWidth}},{[`${et}-dropdown`]:[{[`&${rt}-select-dropdown`]:{padding:0}},getColumnsStyle$1(_e)]},{[`${et}-dropdown-rtl`]:{direction:"rtl"}},genCompactItemStyle(_e)]},prepareComponentToken$l=_e=>{const et=Math.round((_e.controlHeight-_e.fontSize*_e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:_e.controlItemBgActive,optionSelectedFontWeight:_e.fontWeightStrong,optionPadding:`${et}px ${_e.paddingSM}px`,menuPadding:_e.paddingXXS}},useStyle$E=genStyleHooks("Cascader",_e=>[genBaseStyle$9(_e)],prepareComponentToken$l),genPanelStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-panel`]:[getColumnsStyle$1(_e),{display:"inline-flex",border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,borderRadius:_e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${et}-menus`]:{alignItems:"stretch"},[`${et}-menu`]:{height:"auto"},"&-empty":{padding:_e.paddingXXS}}]}},usePanelStyle=genComponentStyleHook$1(["Cascader","Panel"],_e=>genPanelStyle(_e),prepareComponentToken$l),CascaderPanel=_e=>{const{prefixCls:et,className:rt,multiple:st,rootClassName:ct,notFoundContent:ut,direction:ft,expandIcon:gt}=_e,[xt,$t,_t,wt]=useBase(et,ft),Tt=useCSSVarCls($t),[Rt,It,At]=useStyle$E($t,Tt);usePanelStyle($t);const jt=_t==="rtl",[Nt,kt]=useColumnIcons(xt,jt,gt),Ft=ut||(wt==null?void 0:wt("Cascader"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Cascader"}),Ht=useCheckable($t,st);return Rt(reactExports.createElement(Panel$1,Object.assign({},_e,{checkable:Ht,prefixCls:$t,className:classNames(rt,It,ct,At,Tt),notFoundContent:Ft,direction:_t,expandIcon:Nt,loadingIcon:kt})))},CascaderPanel$1=CascaderPanel;var __rest$J=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctxt===0?[gt]:[].concat(_toConsumableArray$3(ft),[et,gt]),[]),ct=[];let ut=0;return st.forEach((ft,gt)=>{const xt=ut+ft.length;let $t=_e.slice(ut,xt);ut=xt,gt%2===1&&($t=reactExports.createElement("span",{className:`${rt}-menu-item-keyword`,key:`separator-${gt}`},$t)),ct.push($t)}),ct}const defaultSearchRender=(_e,et,rt,st)=>{const ct=[],ut=_e.toLowerCase();return et.forEach((ft,gt)=>{gt!==0&&ct.push(" / ");let xt=ft[st.label];const $t=typeof xt;($t==="string"||$t==="number")&&(xt=highlightKeyword(String(xt),ut,rt)),ct.push(xt)}),ct},Cascader=reactExports.forwardRef((_e,et)=>{var rt;const{prefixCls:st,size:ct,disabled:ut,className:ft,rootClassName:gt,multiple:xt,bordered:$t=!0,transitionName:_t,choiceTransitionName:wt="",popupClassName:Tt,dropdownClassName:Rt,expandIcon:It,placement:At,showSearch:jt,allowClear:Nt=!0,notFoundContent:kt,direction:Ft,getPopupContainer:Ht,status:Wt,showArrow:Vt,builtinPlacements:qt,style:Xt,variant:Gt}=_e,Zt=__rest$J(_e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),er=omit$2(Zt,["suffixIcon"]),{getPopupContainer:lr,getPrefixCls:cr,popupOverflow:ur,cascader:fr}=reactExports.useContext(ConfigContext$1),{status:hr,hasFeedback:pr,isFormItemInput:dr,feedbackIcon:yr}=reactExports.useContext(FormItemInputContext),Sr=getMergedStatus(hr,Wt),[br,mr,Er,Tr]=useBase(st,Ft),Mr=Er==="rtl",Or=cr(),wr=useCSSVarCls(br),[Cr,Nr,Rr]=useSelectStyle(br,wr),Pr=useCSSVarCls(mr),[jr]=useStyle$E(mr,Pr),{compactSize:kr,compactItemClassnames:Fr}=useCompactItemContext(br,Ft),[_r,Br]=useVariant(Gt,$t),Dr=kt||(Tr==null?void 0:Tr("Cascader"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Cascader"}),Xr=classNames(Tt||Rt,`${mr}-dropdown`,{[`${mr}-dropdown-rtl`]:Er==="rtl"},gt,wr,Pr,Nr,Rr),Kr=reactExports.useMemo(()=>{if(!jt)return jt;let mn={render:defaultSearchRender};return typeof jt=="object"&&(mn=Object.assign(Object.assign({},mn),jt)),mn},[jt]),Hr=useSize(mn=>{var hn;return(hn=ct??kr)!==null&&hn!==void 0?hn:mn}),Vr=reactExports.useContext(DisabledContext$2),ln=ut??Vr,[Qr,Zr]=useColumnIcons(br,Mr,It),vn=useCheckable(mr,xt),vr=useShowArrow(_e.suffixIcon,Vt),{suffixIcon:gr,removeIcon:$r,clearIcon:zr}=useIcons$1(Object.assign(Object.assign({},_e),{hasFeedback:pr,feedbackIcon:yr,showSuffixIcon:vr,multiple:xt,prefixCls:br,componentName:"Cascader"})),qr=reactExports.useMemo(()=>At!==void 0?At:Mr?"bottomRight":"bottomLeft",[At,Mr]),Wr=Nt===!0?{clearIcon:zr}:Nt,[Gr]=useZIndex("SelectLike",(rt=er.dropdownStyle)===null||rt===void 0?void 0:rt.zIndex),dn=reactExports.createElement(Cascader$2,Object.assign({prefixCls:br,className:classNames(!st&&mr,{[`${br}-lg`]:Hr==="large",[`${br}-sm`]:Hr==="small",[`${br}-rtl`]:Mr,[`${br}-${_r}`]:Br,[`${br}-in-form-item`]:dr},getStatusClassNames(br,Sr,pr),Fr,fr==null?void 0:fr.className,ft,gt,wr,Pr,Nr,Rr),disabled:ln,style:Object.assign(Object.assign({},fr==null?void 0:fr.style),Xt)},er,{builtinPlacements:mergedBuiltinPlacements(qt,ur),direction:Er,placement:qr,notFoundContent:Dr,allowClear:Wr,showSearch:Kr,expandIcon:Qr,suffixIcon:gr,removeIcon:$r,loadingIcon:Zr,checkable:vn,dropdownClassName:Xr,dropdownPrefixCls:st||mr,dropdownStyle:Object.assign(Object.assign({},er.dropdownStyle),{zIndex:Gr}),choiceTransitionName:getTransitionName(Or,"",wt),transitionName:getTransitionName(Or,"slide-up",_t),getPopupContainer:Ht||lr,ref:et}));return jr(Cr(dn))}),PurePanel$9=genPurePanel(Cascader);Cascader.SHOW_PARENT=SHOW_PARENT$1;Cascader.SHOW_CHILD=SHOW_CHILD$1;Cascader.Panel=CascaderPanel$1;Cascader._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$9;const Cascader$1=Cascader,GroupContext=React$1.createContext(null),GroupContext$1=GroupContext;var __rest$I=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,className:ct,rootClassName:ut,children:ft,indeterminate:gt=!1,style:xt,onMouseEnter:$t,onMouseLeave:_t,skipGroup:wt=!1,disabled:Tt}=_e,Rt=__rest$I(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:It,direction:At,checkbox:jt}=reactExports.useContext(ConfigContext$1),Nt=reactExports.useContext(GroupContext$1),{isFormItemInput:kt}=reactExports.useContext(FormItemInputContext),Ft=reactExports.useContext(DisabledContext$2),Ht=(rt=(Nt==null?void 0:Nt.disabled)||Tt)!==null&&rt!==void 0?rt:Ft,Wt=reactExports.useRef(Rt.value);reactExports.useEffect(()=>{Nt==null||Nt.registerValue(Rt.value)},[]),reactExports.useEffect(()=>{if(!wt)return Rt.value!==Wt.current&&(Nt==null||Nt.cancelValue(Wt.current),Nt==null||Nt.registerValue(Rt.value),Wt.current=Rt.value),()=>Nt==null?void 0:Nt.cancelValue(Rt.value)},[Rt.value]);const Vt=It("checkbox",st),qt=useCSSVarCls(Vt),[Xt,Gt,Zt]=useStyle$F(Vt,qt),er=Object.assign({},Rt);Nt&&!wt&&(er.onChange=function(){Rt.onChange&&Rt.onChange.apply(Rt,arguments),Nt.toggleOption&&Nt.toggleOption({label:ft,value:Rt.value})},er.name=Nt.name,er.checked=Nt.value.includes(Rt.value));const lr=classNames(`${Vt}-wrapper`,{[`${Vt}-rtl`]:At==="rtl",[`${Vt}-wrapper-checked`]:er.checked,[`${Vt}-wrapper-disabled`]:Ht,[`${Vt}-wrapper-in-form-item`]:kt},jt==null?void 0:jt.className,ct,ut,Zt,qt,Gt),cr=classNames({[`${Vt}-indeterminate`]:gt},TARGET_CLS,Gt),ur=gt?"mixed":void 0;return Xt(reactExports.createElement(Wave$1,{component:"Checkbox",disabled:Ht},reactExports.createElement("label",{className:lr,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),xt),onMouseEnter:$t,onMouseLeave:_t},reactExports.createElement(Checkbox$5,Object.assign({"aria-checked":ur},er,{prefixCls:Vt,className:cr,disabled:Ht,ref:et})),ft!==void 0&&reactExports.createElement("span",null,ft))))},Checkbox$3=reactExports.forwardRef(InternalCheckbox),InternalCheckbox$1=Checkbox$3;var __rest$H=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{defaultValue:rt,children:st,options:ct=[],prefixCls:ut,className:ft,rootClassName:gt,style:xt,onChange:$t}=_e,_t=__rest$H(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:wt,direction:Tt}=reactExports.useContext(ConfigContext$1),[Rt,It]=reactExports.useState(_t.value||rt||[]),[At,jt]=reactExports.useState([]);reactExports.useEffect(()=>{"value"in _t&&It(_t.value||[])},[_t.value]);const Nt=reactExports.useMemo(()=>ct.map(fr=>typeof fr=="string"||typeof fr=="number"?{label:fr,value:fr}:fr),[ct]),kt=fr=>{jt(hr=>hr.filter(pr=>pr!==fr))},Ft=fr=>{jt(hr=>[].concat(_toConsumableArray$3(hr),[fr]))},Ht=fr=>{const hr=Rt.indexOf(fr.value),pr=_toConsumableArray$3(Rt);hr===-1?pr.push(fr.value):pr.splice(hr,1),"value"in _t||It(pr),$t==null||$t(pr.filter(dr=>At.includes(dr)).sort((dr,yr)=>{const Sr=Nt.findIndex(mr=>mr.value===dr),br=Nt.findIndex(mr=>mr.value===yr);return Sr-br}))},Wt=wt("checkbox",ut),Vt=`${Wt}-group`,qt=useCSSVarCls(Wt),[Xt,Gt,Zt]=useStyle$F(Wt,qt),er=omit$2(_t,["value","disabled"]),lr=ct.length?Nt.map(fr=>reactExports.createElement(InternalCheckbox$1,{prefixCls:Wt,key:fr.value.toString(),disabled:"disabled"in fr?fr.disabled:_t.disabled,value:fr.value,checked:Rt.includes(fr.value),onChange:fr.onChange,className:`${Vt}-item`,style:fr.style,title:fr.title,id:fr.id,required:fr.required},fr.label)):st,cr={toggleOption:Ht,value:Rt,disabled:_t.disabled,name:_t.name,registerValue:Ft,cancelValue:kt},ur=classNames(Vt,{[`${Vt}-rtl`]:Tt==="rtl"},ft,gt,Zt,qt,Gt);return Xt(reactExports.createElement("div",Object.assign({className:ur,style:xt},er,{ref:et}),reactExports.createElement(GroupContext$1.Provider,{value:cr},lr)))}),Group$5=CheckboxGroup$1,Checkbox$1=InternalCheckbox$1;Checkbox$1.Group=Group$5;Checkbox$1.__ANT_CHECKBOX=!0;const Checkbox$2=Checkbox$1,RowContext=reactExports.createContext({}),RowContext$1=RowContext,genGridRowStyle=_e=>{const{componentCls:et}=_e;return{[et]:{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"}}}},genGridColStyle=_e=>{const{componentCls:et}=_e;return{[et]:{position:"relative",maxWidth:"100%",minHeight:1}}},genLoopGridColumnsStyle=(_e,et)=>{const{prefixCls:rt,componentCls:st,gridColumns:ct}=_e,ut={};for(let ft=ct;ft>=0;ft--)ft===0?(ut[`${st}${et}-${ft}`]={display:"none"},ut[`${st}-push-${ft}`]={insetInlineStart:"auto"},ut[`${st}-pull-${ft}`]={insetInlineEnd:"auto"},ut[`${st}${et}-push-${ft}`]={insetInlineStart:"auto"},ut[`${st}${et}-pull-${ft}`]={insetInlineEnd:"auto"},ut[`${st}${et}-offset-${ft}`]={marginInlineStart:0},ut[`${st}${et}-order-${ft}`]={order:0}):(ut[`${st}${et}-${ft}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${ft/ct*100}%`,maxWidth:`${ft/ct*100}%`}],ut[`${st}${et}-push-${ft}`]={insetInlineStart:`${ft/ct*100}%`},ut[`${st}${et}-pull-${ft}`]={insetInlineEnd:`${ft/ct*100}%`},ut[`${st}${et}-offset-${ft}`]={marginInlineStart:`${ft/ct*100}%`},ut[`${st}${et}-order-${ft}`]={order:ft});return ut[`${st}${et}-flex`]={flex:`var(--${rt}${et}-flex)`},ut},genGridStyle=(_e,et)=>genLoopGridColumnsStyle(_e,et),genGridMediaStyle=(_e,et,rt)=>({[`@media (min-width: ${unit$1(et)})`]:Object.assign({},genGridStyle(_e,rt))}),prepareRowComponentToken=()=>({}),prepareColComponentToken=()=>({}),useRowStyle=genStyleHooks("Grid",genGridRowStyle,prepareRowComponentToken),useColStyle=genStyleHooks("Grid",_e=>{const et=merge$7(_e,{gridColumns:24}),rt={"-sm":et.screenSMMin,"-md":et.screenMDMin,"-lg":et.screenLGMin,"-xl":et.screenXLMin,"-xxl":et.screenXXLMin};return[genGridColStyle(et),genGridStyle(et,""),genGridStyle(et,"-xs"),Object.keys(rt).map(st=>genGridMediaStyle(et,rt[st],st)).reduce((st,ct)=>Object.assign(Object.assign({},st),ct),{})]},prepareColComponentToken);var __rest$G=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),{gutter:ct,wrap:ut}=reactExports.useContext(RowContext$1),{prefixCls:ft,span:gt,order:xt,offset:$t,push:_t,pull:wt,className:Tt,children:Rt,flex:It,style:At}=_e,jt=__rest$G(_e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Nt=rt("col",ft),[kt,Ft,Ht]=useColStyle(Nt),Wt={};let Vt={};sizes.forEach(Gt=>{let Zt={};const er=_e[Gt];typeof er=="number"?Zt.span=er:typeof er=="object"&&(Zt=er||{}),delete jt[Gt],Vt=Object.assign(Object.assign({},Vt),{[`${Nt}-${Gt}-${Zt.span}`]:Zt.span!==void 0,[`${Nt}-${Gt}-order-${Zt.order}`]:Zt.order||Zt.order===0,[`${Nt}-${Gt}-offset-${Zt.offset}`]:Zt.offset||Zt.offset===0,[`${Nt}-${Gt}-push-${Zt.push}`]:Zt.push||Zt.push===0,[`${Nt}-${Gt}-pull-${Zt.pull}`]:Zt.pull||Zt.pull===0,[`${Nt}-rtl`]:st==="rtl"}),Zt.flex&&(Vt[`${Nt}-${Gt}-flex`]=!0,Wt[`--${Nt}-${Gt}-flex`]=parseFlex(Zt.flex))});const qt=classNames(Nt,{[`${Nt}-${gt}`]:gt!==void 0,[`${Nt}-order-${xt}`]:xt,[`${Nt}-offset-${$t}`]:$t,[`${Nt}-push-${_t}`]:_t,[`${Nt}-pull-${wt}`]:wt},Tt,Vt,Ft,Ht),Xt={};if(ct&&ct[0]>0){const Gt=ct[0]/2;Xt.paddingLeft=Gt,Xt.paddingRight=Gt}return It&&(Xt.flex=parseFlex(It),ut===!1&&!Xt.minWidth&&(Xt.minWidth=0)),kt(reactExports.createElement("div",Object.assign({},jt,{style:Object.assign(Object.assign(Object.assign({},Xt),At),Wt),className:qt,ref:et}),Rt))}),Col$1=Col;var __rest$F=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(typeof _e=="string"&&st(_e),typeof _e=="object")for(let ut=0;ut{ct()},[JSON.stringify(_e),et]),rt}const Row$2=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,justify:st,align:ct,className:ut,style:ft,children:gt,gutter:xt=0,wrap:$t}=_e,_t=__rest$F(_e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:wt,direction:Tt}=reactExports.useContext(ConfigContext$1),[Rt,It]=reactExports.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[At,jt]=reactExports.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Nt=useMergePropByScreen(ct,At),kt=useMergePropByScreen(st,At),Ft=reactExports.useRef(xt),Ht=useResponsiveObserver();reactExports.useEffect(()=>{const pr=Ht.subscribe(dr=>{jt(dr);const yr=Ft.current||0;(!Array.isArray(yr)&&typeof yr=="object"||Array.isArray(yr)&&(typeof yr[0]=="object"||typeof yr[1]=="object"))&&It(dr)});return()=>Ht.unsubscribe(pr)},[]);const Wt=()=>{const pr=[void 0,void 0];return(Array.isArray(xt)?xt:[xt,void 0]).forEach((yr,Sr)=>{if(typeof yr=="object")for(let br=0;br0?Zt[0]/-2:void 0;cr&&(lr.marginLeft=cr,lr.marginRight=cr),[,lr.rowGap]=Zt;const[ur,fr]=Zt,hr=reactExports.useMemo(()=>({gutter:[ur,fr],wrap:$t}),[ur,fr,$t]);return qt(reactExports.createElement(RowContext$1.Provider,{value:hr},reactExports.createElement("div",Object.assign({},_t,{className:er,style:Object.assign(Object.assign({},lr),ft),ref:et}),gt)))}),Row$3=Row$2;var PanelContent=React$1.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=_e.forceRender,ut=_e.className,ft=_e.style,gt=_e.children,xt=_e.isActive,$t=_e.role,_t=React$1.useState(xt||ct),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];return React$1.useEffect(function(){(ct||xt)&&Rt(!0)},[ct,xt]),Tt?React$1.createElement("div",{ref:et,className:classNames("".concat(st,"-content"),(rt={},_defineProperty$c(rt,"".concat(st,"-content-active"),xt),_defineProperty$c(rt,"".concat(st,"-content-inactive"),!xt),rt),ut),style:ft,role:$t},React$1.createElement("div",{className:"".concat(st,"-content-box")},gt)):null});PanelContent.displayName="PanelContent";var _excluded$19=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],CollapsePanel$2=React$1.forwardRef(function(_e,et){var rt,st,ct=_e.showArrow,ut=ct===void 0?!0:ct,ft=_e.headerClass,gt=_e.isActive,xt=_e.onItemClick,$t=_e.forceRender,_t=_e.className,wt=_e.prefixCls,Tt=_e.collapsible,Rt=_e.accordion,It=_e.panelKey,At=_e.extra,jt=_e.header,Nt=_e.expandIcon,kt=_e.openMotion,Ft=_e.destroyInactivePanel,Ht=_e.children,Wt=_objectWithoutProperties$2(_e,_excluded$19),Vt=Tt==="disabled",qt=Tt==="header",Xt=Tt==="icon",Gt=At!=null&&typeof At!="boolean",Zt=function(){xt==null||xt(It)},er=function(pr){(pr.key==="Enter"||pr.keyCode===KeyCode.ENTER||pr.which===KeyCode.ENTER)&&Zt()},lr=typeof Nt=="function"?Nt(_e):React$1.createElement("i",{className:"arrow"});lr&&(lr=React$1.createElement("div",{className:"".concat(wt,"-expand-icon"),onClick:["header","icon"].includes(Tt)?Zt:void 0},lr));var cr=classNames((rt={},_defineProperty$c(rt,"".concat(wt,"-item"),!0),_defineProperty$c(rt,"".concat(wt,"-item-active"),gt),_defineProperty$c(rt,"".concat(wt,"-item-disabled"),Vt),rt),_t),ur=classNames(ft,(st={},_defineProperty$c(st,"".concat(wt,"-header"),!0),_defineProperty$c(st,"".concat(wt,"-header-collapsible-only"),qt),_defineProperty$c(st,"".concat(wt,"-icon-collapsible-only"),Xt),st)),fr={className:ur,"aria-expanded":gt,"aria-disabled":Vt,onKeyDown:er};return!qt&&!Xt&&(fr.onClick=Zt,fr.role=Rt?"tab":"button",fr.tabIndex=Vt?-1:0),React$1.createElement("div",_extends$b({},Wt,{ref:et,className:cr}),React$1.createElement("div",fr,ut&&lr,React$1.createElement("span",{className:"".concat(wt,"-header-text"),onClick:Tt==="header"?Zt:void 0},jt),Gt&&React$1.createElement("div",{className:"".concat(wt,"-extra")},At)),React$1.createElement(CSSMotion,_extends$b({visible:gt,leavedClassName:"".concat(wt,"-content-hidden")},kt,{forceRender:$t,removeOnLeave:Ft}),function(hr,pr){var dr=hr.className,yr=hr.style;return React$1.createElement(PanelContent,{ref:pr,prefixCls:wt,className:dr,style:yr,isActive:gt,forceRender:$t,role:Rt?"tabpanel":void 0},Ht)}))}),_excluded$18=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],convertItemsToNodes=function(et,rt){var st=rt.prefixCls,ct=rt.accordion,ut=rt.collapsible,ft=rt.destroyInactivePanel,gt=rt.onItemClick,xt=rt.activeKey,$t=rt.openMotion,_t=rt.expandIcon;return et.map(function(wt,Tt){var Rt=wt.children,It=wt.label,At=wt.key,jt=wt.collapsible,Nt=wt.onItemClick,kt=wt.destroyInactivePanel,Ft=_objectWithoutProperties$2(wt,_excluded$18),Ht=String(At??Tt),Wt=jt??ut,Vt=kt??ft,qt=function(Zt){Wt!=="disabled"&&(gt(Zt),Nt==null||Nt(Zt))},Xt=!1;return ct?Xt=xt[0]===Ht:Xt=xt.indexOf(Ht)>-1,React$1.createElement(CollapsePanel$2,_extends$b({},Ft,{prefixCls:st,key:Ht,panelKey:Ht,isActive:Xt,accordion:ct,openMotion:$t,expandIcon:_t,header:It,collapsible:Wt,onItemClick:qt,destroyInactivePanel:Vt}),Rt)})},getNewChild=function(et,rt,st){if(!et)return null;var ct=st.prefixCls,ut=st.accordion,ft=st.collapsible,gt=st.destroyInactivePanel,xt=st.onItemClick,$t=st.activeKey,_t=st.openMotion,wt=st.expandIcon,Tt=et.key||String(rt),Rt=et.props,It=Rt.header,At=Rt.headerClass,jt=Rt.destroyInactivePanel,Nt=Rt.collapsible,kt=Rt.onItemClick,Ft=!1;ut?Ft=$t[0]===Tt:Ft=$t.indexOf(Tt)>-1;var Ht=Nt??ft,Wt=function(Xt){Ht!=="disabled"&&(xt(Xt),kt==null||kt(Xt))},Vt={key:Tt,panelKey:Tt,header:It,headerClass:At,isActive:Ft,prefixCls:ct,destroyInactivePanel:jt??gt,openMotion:_t,accordion:ut,children:et.props.children,onItemClick:Wt,expandIcon:wt,collapsible:Ht};return typeof et.type=="string"?et:(Object.keys(Vt).forEach(function(qt){typeof Vt[qt]>"u"&&delete Vt[qt]}),React$1.cloneElement(et,Vt))};function useItems$1(_e,et,rt){return Array.isArray(_e)?convertItemsToNodes(_e,rt):toArray$e(et).map(function(st,ct){return getNewChild(st,ct,rt)})}function getActiveKeysArray(_e){var et=_e;if(!Array.isArray(et)){var rt=_typeof$e(et);et=rt==="number"||rt==="string"?[et]:[]}return et.map(function(st){return String(st)})}var Collapse$2=React$1.forwardRef(function(_e,et){var rt=_e.prefixCls,st=rt===void 0?"rc-collapse":rt,ct=_e.destroyInactivePanel,ut=ct===void 0?!1:ct,ft=_e.style,gt=_e.accordion,xt=_e.className,$t=_e.children,_t=_e.collapsible,wt=_e.openMotion,Tt=_e.expandIcon,Rt=_e.activeKey,It=_e.defaultActiveKey,At=_e.onChange,jt=_e.items,Nt=classNames(st,xt),kt=useMergedState([],{value:Rt,onChange:function(Gt){return At==null?void 0:At(Gt)},defaultValue:It,postState:getActiveKeysArray}),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=function(Gt){return Wt(function(){if(gt)return Ht[0]===Gt?[]:[Gt];var Zt=Ht.indexOf(Gt),er=Zt>-1;return er?Ht.filter(function(lr){return lr!==Gt}):[].concat(_toConsumableArray$3(Ht),[Gt])})};warningOnce$1(!$t,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var qt=useItems$1(jt,$t,{prefixCls:st,accordion:gt,openMotion:wt,expandIcon:Tt,collapsible:_t,destroyInactivePanel:ut,onItemClick:Vt,activeKey:Ht});return React$1.createElement("div",{ref:et,className:Nt,style:ft,role:gt?"tablist":void 0},qt)});const Collapse$3=Object.assign(Collapse$2,{Panel:CollapsePanel$2});Collapse$3.Panel;const CollapsePanel=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct,showArrow:ut=!0}=_e,ft=rt("collapse",st),gt=classNames({[`${ft}-no-arrow`]:!ut},ct);return reactExports.createElement(Collapse$3.Panel,Object.assign({ref:et},_e,{prefixCls:ft,className:gt}))}),CollapsePanel$1=CollapsePanel,genBaseStyle$8=_e=>{const{componentCls:et,contentBg:rt,padding:st,headerBg:ct,headerPadding:ut,collapseHeaderPaddingSM:ft,collapseHeaderPaddingLG:gt,collapsePanelBorderRadius:xt,lineWidth:$t,lineType:_t,colorBorder:wt,colorText:Tt,colorTextHeading:Rt,colorTextDisabled:It,fontSizeLG:At,lineHeight:jt,lineHeightLG:Nt,marginSM:kt,paddingSM:Ft,paddingLG:Ht,paddingXS:Wt,motionDurationSlow:Vt,fontSizeIcon:qt,contentPadding:Xt,fontHeight:Gt,fontHeightLG:Zt}=_e,er=`${unit$1($t)} ${_t} ${wt}`;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{backgroundColor:ct,border:er,borderBottom:0,borderRadius:xt,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:er,"&:last-child":{[` &, - & > ${et}-header`]:{borderRadius:`0 0 ${unit$1(xt)} ${unit$1(xt)}`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ut,color:Rt,lineHeight:jt,cursor:"pointer",transition:`all ${Vt}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:Xt,display:"flex",alignItems:"center",paddingInlineEnd:kt},[`${et}-arrow`]:Object.assign(Object.assign({},resetIcon()),{fontSize:qt,svg:{transition:`transform ${Vt}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-icon-collapsible-only`]:{cursor:"unset",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:Tt,backgroundColor:rt,borderTop:lr,[`& > ${et}-content-box`]:{padding:Gt},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:ft,paddingInlineStart:Wt,[`> ${et}-expand-icon`]:{marginInlineStart:_e.calc(Ft).sub(Wt).equal()}},[`> ${et}-content > ${et}-content-box`]:{padding:Ft}}},"&-large":{[`> ${et}-item`]:{fontSize:At,lineHeight:Nt,[`> ${et}-header`]:{padding:gt,paddingInlineStart:st,[`> ${et}-expand-icon`]:{height:Zt,marginInlineStart:_e.calc(Ht).sub(st).equal()}},[`> ${et}-content > ${et}-content-box`]:{padding:Ht}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${unit$1(xt)} ${unit$1(xt)}`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:It,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:kt}}}}})}},genArrowStyle=_e=>{const{componentCls:et}=_e,rt=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[rt]:{transform:"rotate(180deg)"}}}},genBorderlessStyle=_e=>{const{componentCls:et,headerBg:rt,paddingXXS:st,colorBorder:ct}=_e;return{[`${et}-borderless`]:{backgroundColor:rt,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${ct}`},[` + & > ${et}-header`]:{borderRadius:`0 0 ${unit$1(xt)} ${unit$1(xt)}`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ut,color:Rt,lineHeight:jt,cursor:"pointer",transition:`all ${Vt}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:Gt,display:"flex",alignItems:"center",paddingInlineEnd:kt},[`${et}-arrow`]:Object.assign(Object.assign({},resetIcon()),{fontSize:qt,svg:{transition:`transform ${Vt}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-icon-collapsible-only`]:{cursor:"unset",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:Tt,backgroundColor:rt,borderTop:er,[`& > ${et}-content-box`]:{padding:Xt},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:ft,paddingInlineStart:Wt,[`> ${et}-expand-icon`]:{marginInlineStart:_e.calc(Ft).sub(Wt).equal()}},[`> ${et}-content > ${et}-content-box`]:{padding:Ft}}},"&-large":{[`> ${et}-item`]:{fontSize:At,lineHeight:Nt,[`> ${et}-header`]:{padding:gt,paddingInlineStart:st,[`> ${et}-expand-icon`]:{height:Zt,marginInlineStart:_e.calc(Ht).sub(st).equal()}},[`> ${et}-content > ${et}-content-box`]:{padding:Ht}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${unit$1(xt)} ${unit$1(xt)}`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:It,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:kt}}}}})}},genArrowStyle=_e=>{const{componentCls:et}=_e,rt=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[rt]:{transform:"rotate(180deg)"}}}},genBorderlessStyle=_e=>{const{componentCls:et,headerBg:rt,paddingXXS:st,colorBorder:ct}=_e;return{[`${et}-borderless`]:{backgroundColor:rt,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${ct}`},[` > ${et}-item:last-child, > ${et}-item:last-child ${et}-header - `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:st}}}},genGhostStyle=_e=>{const{componentCls:et,paddingSM:rt}=_e;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:rt}}}}}},prepareComponentToken$i=_e=>({headerPadding:`${_e.paddingSM}px ${_e.padding}px`,headerBg:_e.colorFillAlter,contentPadding:`${_e.padding}px 16px`,contentBg:_e.colorBgContainer}),useStyle$B=genStyleHooks("Collapse",_e=>{const et=merge$7(_e,{collapseHeaderPaddingSM:`${unit$1(_e.paddingXS)} ${unit$1(_e.paddingSM)}`,collapseHeaderPaddingLG:`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`,collapsePanelBorderRadius:_e.borderRadiusLG});return[genBaseStyle$7(et),genBorderlessStyle(et),genGhostStyle(et),genArrowStyle(et),genCollapseMotion(et)]},prepareComponentToken$i),Collapse=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt,direction:st,collapse:ct}=reactExports.useContext(ConfigContext$1),{prefixCls:ut,className:ft,rootClassName:gt,style:xt,bordered:$t=!0,ghost:_t,size:wt,expandIconPosition:Tt="start",children:Rt,expandIcon:It}=_e,At=useSize(Zt=>{var lr;return(lr=wt??Zt)!==null&&lr!==void 0?lr:"middle"}),jt=rt("collapse",ut),Nt=rt(),[kt,Ft,Ht]=useStyle$B(jt),Wt=reactExports.useMemo(()=>Tt==="left"?"start":Tt==="right"?"end":Tt,[Tt]),Vt=function(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const lr=It?It(Zt):reactExports.createElement(RightOutlined$6,{rotate:Zt.isActive?90:void 0});return cloneElement(lr,()=>({className:classNames(lr.props.className,`${jt}-arrow`)}))},qt=classNames(`${jt}-icon-position-${Wt}`,{[`${jt}-borderless`]:!$t,[`${jt}-rtl`]:st==="rtl",[`${jt}-ghost`]:!!_t,[`${jt}-${At}`]:At!=="middle"},ct==null?void 0:ct.className,ft,gt,Ft,Ht),Gt=Object.assign(Object.assign({},initCollapseMotion$1(Nt)),{motionAppear:!1,leavedClassName:`${jt}-content-hidden`}),Xt=reactExports.useMemo(()=>Rt?toArray$d(Rt).map((Zt,lr)=>{var er,cr;if(!((er=Zt.props)===null||er===void 0)&&er.disabled){const ur=(cr=Zt.key)!==null&&cr!==void 0?cr:String(lr),{disabled:pr,collapsible:hr}=Zt.props,fr=Object.assign(Object.assign({},omit$2(Zt.props,["disabled"])),{key:ur,collapsible:hr??(pr?"disabled":void 0)});return cloneElement(Zt,fr)}return Zt}):null,[Rt]);return kt(reactExports.createElement(Collapse$3,Object.assign({ref:et,openMotion:Gt},omit$2(_e,["rootClassName"]),{expandIcon:Vt,prefixCls:jt,className:qt,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),xt)}),Xt))}),Collapse$1=Object.assign(Collapse,{Panel:CollapsePanel$1}),genSharedDividerStyle=_e=>{const{componentCls:et,sizePaddingEdgeHorizontal:rt,colorSplit:st,lineWidth:ct,textPaddingInline:ut,orientationMargin:ft,verticalMarginInline:gt}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{borderBlockStart:`${unit$1(ct)} solid ${st}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:gt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit$1(ct)} solid ${st}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit$1(_e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${et}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit$1(_e.dividerHorizontalWithTextGutterMargin)} 0`,color:_e.colorTextHeading,fontWeight:500,fontSize:_e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${st}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit$1(ct)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${et}-with-text-left`]:{"&::before":{width:`calc(${ft} * 100%)`},"&::after":{width:`calc(100% - ${ft} * 100%)`}},[`&-horizontal${et}-with-text-right`]:{"&::before":{width:`calc(100% - ${ft} * 100%)`},"&::after":{width:`calc(${ft} * 100%)`}},[`${et}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ut},"&-dashed":{background:"none",borderColor:st,borderStyle:"dashed",borderWidth:`${unit$1(ct)} 0 0`},[`&-horizontal${et}-with-text${et}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${et}-dashed`]:{borderInlineStartWidth:ct,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${et}-with-text`]:{color:_e.colorText,fontWeight:"normal",fontSize:_e.fontSize},[`&-horizontal${et}-with-text-left${et}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${et}-inner-text`]:{paddingInlineStart:rt}},[`&-horizontal${et}-with-text-right${et}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${et}-inner-text`]:{paddingInlineEnd:rt}}})}},prepareComponentToken$h=_e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_e.marginXS}),useStyle$A=genStyleHooks("Divider",_e=>{const et=merge$7(_e,{dividerHorizontalWithTextGutterMargin:_e.margin,dividerHorizontalGutterMargin:_e.marginLG,sizePaddingEdgeHorizontal:0});return[genSharedDividerStyle(et)]},prepareComponentToken$h,{unitless:{orientationMargin:!0}});var __rest$A=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:et,direction:rt,divider:st}=reactExports.useContext(ConfigContext$1),{prefixCls:ct,type:ut="horizontal",orientation:ft="center",orientationMargin:gt,className:xt,rootClassName:$t,children:_t,dashed:wt,plain:Tt,style:Rt}=_e,It=__rest$A(_e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),At=et("divider",ct),[jt,Nt,kt]=useStyle$A(At),Ft=ft.length>0?`-${ft}`:ft,Ht=!!_t,Wt=ft==="left"&>!=null,Vt=ft==="right"&>!=null,qt=classNames(At,st==null?void 0:st.className,Nt,kt,`${At}-${ut}`,{[`${At}-with-text`]:Ht,[`${At}-with-text${Ft}`]:Ht,[`${At}-dashed`]:!!wt,[`${At}-plain`]:!!Tt,[`${At}-rtl`]:rt==="rtl",[`${At}-no-default-orientation-margin-left`]:Wt,[`${At}-no-default-orientation-margin-right`]:Vt},xt,$t),Gt=reactExports.useMemo(()=>typeof gt=="number"?gt:/^\d+$/.test(gt)?Number(gt):gt,[gt]),Xt=Object.assign(Object.assign({},Wt&&{marginLeft:Gt}),Vt&&{marginRight:Gt});return jt(reactExports.createElement("div",Object.assign({className:qt,style:Object.assign(Object.assign({},st==null?void 0:st.style),Rt)},It,{role:"separator"}),_t&&ut!=="vertical"&&reactExports.createElement("span",{className:`${At}-inner-text`,style:Xt},_t)))},Divider$1=Divider;var _excluded$17=["b"],_excluded2$j=["v"],getRoundNumber$1=function(et){return Math.round(Number(et||0))},convertHsb2Hsv=function(et){if(et&&_typeof$e(et)==="object"&&"h"in et&&"b"in et){var rt=et,st=rt.b,ct=_objectWithoutProperties$2(rt,_excluded$17);return _objectSpread2(_objectSpread2({},ct),{},{v:st})}return typeof et=="string"&&/hsb/.test(et)?et.replace(/hsb/,"hsv"):et},Color=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(st){return _classCallCheck$9(this,rt),et.call(this,convertHsb2Hsv(st))}return _createClass$7(rt,[{key:"toHsbString",value:function(){var ct=this.toHsb(),ut=getRoundNumber$1(ct.s*100),ft=getRoundNumber$1(ct.b*100),gt=getRoundNumber$1(ct.h),xt=ct.a,$t="hsb(".concat(gt,", ").concat(ut,"%, ").concat(ft,"%)"),_t="hsba(".concat(gt,", ").concat(ut,"%, ").concat(ft,"%, ").concat(xt.toFixed(xt===0?0:2),")");return xt===1?$t:_t}},{key:"toHsb",value:function(){var ct=this.toHsv();_typeof$e(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(ct=this.originalInput);var ut=ct;ut.v;var ft=_objectWithoutProperties$2(ut,_excluded2$j);return _objectSpread2(_objectSpread2({},ft),{},{b:ct.v})}}]),rt}(TinyColor),ColorPickerPrefixCls="rc-color-picker",generateColor$1=function(et){return et instanceof Color?et:new Color(et)},defaultColor=generateColor$1("#1677ff"),calculateColor=function(et){var rt=et.offset,st=et.targetRef,ct=et.containerRef,ut=et.color,ft=et.type,gt=ct.current.getBoundingClientRect(),xt=gt.width,$t=gt.height,_t=st.current.getBoundingClientRect(),wt=_t.width,Tt=_t.height,Rt=wt/2,It=Tt/2,At=(rt.x+Rt)/xt,jt=1-(rt.y+It)/$t,Nt=ut.toHsb(),kt=At,Ft=(rt.x+Rt)/xt*360;if(ft)switch(ft){case"hue":return generateColor$1(_objectSpread2(_objectSpread2({},Nt),{},{h:Ft<=0?0:Ft}));case"alpha":return generateColor$1(_objectSpread2(_objectSpread2({},Nt),{},{a:kt<=0?0:kt}))}return generateColor$1({h:Nt.h,s:At<=0?0:At,b:jt>=1?1:jt,a:Nt.a})},calculateOffset$1=function(et,rt,st,ct){var ut=et.current.getBoundingClientRect(),ft=ut.width,gt=ut.height,xt=rt.current.getBoundingClientRect(),$t=xt.width,_t=xt.height,wt=$t/2,Tt=_t/2,Rt=st.toHsb();if(!($t===0&&_t===0||$t!==_t)){if(ct)switch(ct){case"hue":return{x:Rt.h/360*ft-wt,y:-Tt/3};case"alpha":return{x:Rt.a/1*ft-wt,y:-Tt/3}}return{x:Rt.s*ft-wt,y:(1-Rt.b)*gt-Tt}}},ColorBlock=function(et){var rt=et.color,st=et.prefixCls,ct=et.className,ut=et.style,ft=et.onClick,gt="".concat(st,"-color-block");return React$1.createElement("div",{className:classNames(gt,ct),style:ut,onClick:ft},React$1.createElement("div",{className:"".concat(gt,"-inner"),style:{background:rt}}))};function getPosition$2(_e){var et="touches"in _e?_e.touches[0]:_e,rt=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,st=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:et.pageX-rt,pageY:et.pageY-st}}function useColorDrag(_e){var et=_e.offset,rt=_e.targetRef,st=_e.containerRef,ct=_e.direction,ut=_e.onDragChange,ft=_e.onDragChangeComplete,gt=_e.calculate,xt=_e.color,$t=_e.disabledDrag,_t=reactExports.useState(et||{x:0,y:0}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useRef(null),At=reactExports.useRef(null),jt=reactExports.useRef({flag:!1});reactExports.useEffect(function(){if(jt.current.flag===!1){var Wt=gt==null?void 0:gt(st);Wt&&Rt(Wt)}},[xt,st]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),document.removeEventListener("touchmove",It.current),document.removeEventListener("touchend",At.current),It.current=null,At.current=null}},[]);var Nt=function(Vt){var qt=getPosition$2(Vt),Gt=qt.pageX,Xt=qt.pageY,Zt=st.current.getBoundingClientRect(),lr=Zt.x,er=Zt.y,cr=Zt.width,ur=Zt.height,pr=rt.current.getBoundingClientRect(),hr=pr.width,fr=pr.height,dr=hr/2,yr=fr/2,$r=Math.max(0,Math.min(Gt-lr,cr))-dr,Er=Math.max(0,Math.min(Xt-er,ur))-yr,mr={x:$r,y:ct==="x"?Tt.y:Er};if(hr===0&&fr===0||hr!==fr)return!1;Rt(mr),ut==null||ut(mr)},kt=function(Vt){Vt.preventDefault(),Nt(Vt)},Ft=function(Vt){Vt.preventDefault(),jt.current.flag=!1,document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),document.removeEventListener("touchmove",It.current),document.removeEventListener("touchend",At.current),It.current=null,At.current=null,ft==null||ft()},Ht=function(Vt){document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),!$t&&(Nt(Vt),jt.current.flag=!0,document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Ft),document.addEventListener("touchmove",kt),document.addEventListener("touchend",Ft),It.current=kt,At.current=Ft)};return[Tt,Ht]}var Handler=function(et){var rt=et.size,st=rt===void 0?"default":rt,ct=et.color,ut=et.prefixCls;return React$1.createElement("div",{className:classNames("".concat(ut,"-handler"),_defineProperty$c({},"".concat(ut,"-handler-sm"),st==="small")),style:{backgroundColor:ct}})},Palette=function(et){var rt=et.children,st=et.style,ct=et.prefixCls;return React$1.createElement("div",{className:"".concat(ct,"-palette"),style:_objectSpread2({position:"relative"},st)},rt)},Transform=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_e.offset;return React$1.createElement("div",{ref:et,style:{position:"absolute",left:st.x,top:st.y,zIndex:1}},rt)}),Picker=function(et){var rt=et.color,st=et.onChange,ct=et.prefixCls,ut=et.onChangeComplete,ft=et.disabled,gt=reactExports.useRef(),xt=reactExports.useRef(),$t=reactExports.useRef(rt),_t=useColorDrag({color:rt,containerRef:gt,targetRef:xt,calculate:function(At){return calculateOffset$1(At,xt,rt)},onDragChange:function(At){var jt=calculateColor({offset:At,targetRef:xt,containerRef:gt,color:rt});$t.current=jt,st(jt)},onDragChangeComplete:function(){return ut==null?void 0:ut($t.current)},disabledDrag:ft}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];return React$1.createElement("div",{ref:gt,className:"".concat(ct,"-select"),onMouseDown:Rt,onTouchStart:Rt},React$1.createElement(Palette,{prefixCls:ct},React$1.createElement(Transform,{offset:Tt,ref:xt},React$1.createElement(Handler,{color:rt.toRgbString(),prefixCls:ct})),React$1.createElement("div",{className:"".concat(ct,"-saturation"),style:{backgroundColor:"hsl(".concat(rt.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Gradient=function(et){var rt=et.colors,st=et.children,ct=et.direction,ut=ct===void 0?"to right":ct,ft=et.type,gt=et.prefixCls,xt=reactExports.useMemo(function(){return rt.map(function($t,_t){var wt=generateColor$1($t);return ft==="alpha"&&_t===rt.length-1&&wt.setAlpha(1),wt.toRgbString()}).join(",")},[rt,ft]);return React$1.createElement("div",{className:"".concat(gt,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(ut,", ").concat(xt,")")}},st)},Slider$3=function(et){var rt=et.gradientColors,st=et.direction,ct=et.type,ut=ct===void 0?"hue":ct,ft=et.color,gt=et.value,xt=et.onChange,$t=et.onChangeComplete,_t=et.disabled,wt=et.prefixCls,Tt=reactExports.useRef(),Rt=reactExports.useRef(),It=reactExports.useRef(ft),At=useColorDrag({color:ft,targetRef:Rt,containerRef:Tt,calculate:function(Ht){return calculateOffset$1(Ht,Rt,ft,ut)},onDragChange:function(Ht){var Wt=calculateColor({offset:Ht,targetRef:Rt,containerRef:Tt,color:ft,type:ut});It.current=Wt,xt(Wt)},onDragChangeComplete:function(){$t==null||$t(It.current,ut)},direction:"x",disabledDrag:_t}),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1];return React$1.createElement("div",{ref:Tt,className:classNames("".concat(wt,"-slider"),"".concat(wt,"-slider-").concat(ut)),onMouseDown:kt,onTouchStart:kt},React$1.createElement(Palette,{prefixCls:wt},React$1.createElement(Transform,{offset:Nt,ref:Rt},React$1.createElement(Handler,{size:"small",color:gt,prefixCls:wt})),React$1.createElement(Gradient,{colors:rt,direction:st,type:ut,prefixCls:wt})))};function hasValue$2(_e){return _e!==void 0}var useColorState$1=function(et,rt){var st=rt.defaultValue,ct=rt.value,ut=reactExports.useState(function(){var $t;return hasValue$2(ct)?$t=ct:hasValue$2(st)?$t=st:$t=et,generateColor$1($t)}),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return reactExports.useEffect(function(){ct&&xt(generateColor$1(ct))},[ct]),[gt,xt]},hueColor=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const ColorPicker$3=reactExports.forwardRef(function(_e,et){var rt=_e.value,st=_e.defaultValue,ct=_e.prefixCls,ut=ct===void 0?ColorPickerPrefixCls:ct,ft=_e.onChange,gt=_e.onChangeComplete,xt=_e.className,$t=_e.style,_t=_e.panelRender,wt=_e.disabledAlpha,Tt=wt===void 0?!1:wt,Rt=_e.disabled,It=Rt===void 0?!1:Rt,At=useColorState$1(defaultColor,{value:rt,defaultValue:st}),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useMemo(function(){var Gt=generateColor$1(Nt.toRgbString());return Gt.setAlpha(1),Gt.toRgbString()},[Nt]),Ht=classNames("".concat(ut,"-panel"),xt,_defineProperty$c({},"".concat(ut,"-panel-disabled"),It)),Wt={prefixCls:ut,onChangeComplete:gt,disabled:It},Vt=function(Xt,Zt){rt||kt(Xt),ft==null||ft(Xt,Zt)},qt=React$1.createElement(React$1.Fragment,null,React$1.createElement(Picker,_extends$b({color:Nt,onChange:Vt},Wt)),React$1.createElement("div",{className:"".concat(ut,"-slider-container")},React$1.createElement("div",{className:classNames("".concat(ut,"-slider-group"),_defineProperty$c({},"".concat(ut,"-slider-group-disabled-alpha"),Tt))},React$1.createElement(Slider$3,_extends$b({gradientColors:hueColor,color:Nt,value:"hsl(".concat(Nt.toHsb().h,",100%, 50%)"),onChange:function(Xt){return Vt(Xt,"hue")}},Wt)),!Tt&&React$1.createElement(Slider$3,_extends$b({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ft],color:Nt,value:Nt.toRgbString(),onChange:function(Xt){return Vt(Xt,"alpha")}},Wt))),React$1.createElement(ColorBlock,{color:Nt.toRgbString(),prefixCls:ut})));return React$1.createElement("div",{className:Ht,style:$t,ref:et},typeof _t=="function"?_t(qt):qt)}),PanelPickerContext=React$1.createContext({}),PanelPresetsContext=React$1.createContext({}),{Provider:PanelPickerProvider}=PanelPickerContext,{Provider:PanelPresetsProvider}=PanelPresetsContext,toHexFormat=(_e,et)=>(_e==null?void 0:_e.replace(/[^\w/]/gi,"").slice(0,et?8:6))||"",getHex=(_e,et)=>_e?toHexFormat(_e,et):"";let ColorFactory=function(){function _e(et){_classCallCheck$9(this,_e),this.metaColor=new Color(et),et||this.metaColor.setAlpha(0)}return _createClass$7(_e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return getHex(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),_e}();const generateColor=_e=>_e instanceof ColorFactory?_e:new ColorFactory(_e),getRoundNumber=_e=>Math.round(Number(_e||0)),getAlphaColor$2=_e=>getRoundNumber(_e.toHsb().a*100),genAlphaColor=(_e,et)=>{const rt=_e.toHsb();return rt.a=et||1,generateColor(rt)},ColorClear=_e=>{let{prefixCls:et,value:rt,colorCleared:st,onChange:ct}=_e;const ut=()=>{if(rt&&!st){const ft=rt.toHsb();ft.a=0;const gt=generateColor(ft);ct==null||ct(gt)}};return React$1.createElement("div",{className:`${et}-clear`,onClick:ut})},ColorClear$1=ColorClear;var ColorFormat;(function(_e){_e.hex="hex",_e.rgb="rgb",_e.hsb="hsb"})(ColorFormat||(ColorFormat={}));var UpOutlined$2={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"};const UpOutlinedSvg=UpOutlined$2;var UpOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:UpOutlinedSvg}))};const UpOutlined$1=reactExports.forwardRef(UpOutlined);function supportBigInt(){return typeof BigInt=="function"}function isEmpty(_e){return!_e&&_e!==0&&!Number.isNaN(_e)||!String(_e).trim()}function trimNumber(_e){var et=_e.trim(),rt=et.startsWith("-");rt&&(et=et.slice(1)),et=et.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),et.startsWith(".")&&(et="0".concat(et));var st=et||"0",ct=st.split("."),ut=ct[0]||"0",ft=ct[1]||"0";ut==="0"&&ft==="0"&&(rt=!1);var gt=rt?"-":"";return{negative:rt,negativeStr:gt,trimStr:st,integerStr:ut,decimalStr:ft,fullStr:"".concat(gt).concat(st)}}function isE(_e){var et=String(_e);return!Number.isNaN(Number(et))&&et.includes("e")}function getNumberPrecision(_e){var et=String(_e);if(isE(_e)){var rt=Number(et.slice(et.indexOf("e-")+2)),st=et.match(/\.(\d+)/);return st!=null&&st[1]&&(rt+=st[1].length),rt}return et.includes(".")&&validateNumber(et)?et.length-et.indexOf(".")-1:0}function num2str(_e){var et=String(_e);if(isE(_e)){if(_e>Number.MAX_SAFE_INTEGER)return String(supportBigInt()?BigInt(_e).toString():Number.MAX_SAFE_INTEGER);if(_e0&&arguments[0]!==void 0?arguments[0]:!0;return rt?this.isInvalidate()?"":trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),_e}(),NumberDecimal=function(){function _e(et){if(_classCallCheck$9(this,_e),_defineProperty$c(this,"origin",""),_defineProperty$c(this,"number",void 0),_defineProperty$c(this,"empty",void 0),isEmpty(et)){this.empty=!0;return}this.origin=String(et),this.number=Number(et)}return _createClass$7(_e,[{key:"negate",value:function(){return new _e(-this.toNumber())}},{key:"add",value:function(rt){if(this.isInvalidate())return new _e(rt);var st=Number(rt);if(Number.isNaN(st))return this;var ct=this.number+st;if(ct>Number.MAX_SAFE_INTEGER)return new _e(Number.MAX_SAFE_INTEGER);if(ctNumber.MAX_SAFE_INTEGER)return new _e(Number.MAX_SAFE_INTEGER);if(ct0&&arguments[0]!==void 0?arguments[0]:!0;return rt?this.isInvalidate()?"":num2str(this.number):this.origin}}]),_e}();function getMiniDecimal(_e){return supportBigInt()?new BigIntDecimal(_e):new NumberDecimal(_e)}function toFixed(_e,et,rt){var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(_e==="")return"";var ct=trimNumber(_e),ut=ct.negativeStr,ft=ct.integerStr,gt=ct.decimalStr,xt="".concat(et).concat(gt),$t="".concat(ut).concat(ft);if(rt>=0){var _t=Number(gt[rt]);if(_t>=5&&!st){var wt=getMiniDecimal(_e).add("".concat(ut,"0.").concat("0".repeat(rt)).concat(10-_t));return toFixed(wt.toString(),et,rt,st)}return rt===0?$t:"".concat($t).concat(et).concat(gt.padEnd(rt,"0").slice(0,rt))}return xt===".0"?$t:"".concat($t).concat(xt)}function hasAddon(_e){return!!(_e.addonBefore||_e.addonAfter)}function hasPrefixSuffix$1(_e){return!!(_e.prefix||_e.suffix||_e.allowClear)}function resolveOnChange(_e,et,rt,st){if(rt){var ct=et;if(et.type==="click"){var ut=_e.cloneNode(!0);ct=Object.create(et,{target:{value:ut},currentTarget:{value:ut}}),ut.value="",rt(ct);return}if(_e.type!=="file"&&st!==void 0){var ft=_e.cloneNode(!0);ct=Object.create(et,{target:{value:ft},currentTarget:{value:ft}}),ft.value=st,rt(ct);return}rt(ct)}}function triggerFocus$1(_e,et){if(_e){_e.focus(et);var rt=et||{},st=rt.cursor;if(st){var ct=_e.value.length;switch(st){case"start":_e.setSelectionRange(0,0);break;case"end":_e.setSelectionRange(ct,ct);break;default:_e.setSelectionRange(0,ct)}}}}var BaseInput=function(et){var rt,st,ct=et.inputElement,ut=et.children,ft=et.prefixCls,gt=et.prefix,xt=et.suffix,$t=et.addonBefore,_t=et.addonAfter,wt=et.className,Tt=et.style,Rt=et.disabled,It=et.readOnly,At=et.focused,jt=et.triggerFocus,Nt=et.allowClear,kt=et.value,Ft=et.handleReset,Ht=et.hidden,Wt=et.classes,Vt=et.classNames,qt=et.dataAttrs,Gt=et.styles,Xt=et.components,Zt=ut??ct,lr=(Xt==null?void 0:Xt.affixWrapper)||"span",er=(Xt==null?void 0:Xt.groupWrapper)||"span",cr=(Xt==null?void 0:Xt.wrapper)||"span",ur=(Xt==null?void 0:Xt.groupAddon)||"span",pr=reactExports.useRef(null),hr=function(Fr){var wr;(wr=pr.current)!==null&&wr!==void 0&&wr.contains(Fr.target)&&(jt==null||jt())},fr=hasPrefixSuffix$1(et),dr=reactExports.cloneElement(Zt,{value:kt,className:classNames(Zt.props.className,!fr&&(Vt==null?void 0:Vt.variant))||null});if(fr){var yr,$r=null;if(Nt){var Er,mr=!Rt&&!It&&kt,Sr="".concat(ft,"-clear-icon"),Tr=_typeof$e(Nt)==="object"&&Nt!==null&&Nt!==void 0&&Nt.clearIcon?Nt.clearIcon:"✖";$r=React$1.createElement("span",{onClick:Ft,onMouseDown:function(Fr){return Fr.preventDefault()},className:classNames(Sr,(Er={},_defineProperty$c(Er,"".concat(Sr,"-hidden"),!mr),_defineProperty$c(Er,"".concat(Sr,"-has-suffix"),!!xt),Er)),role:"button",tabIndex:-1},Tr)}var jr="".concat(ft,"-affix-wrapper"),Or=classNames(jr,(yr={},_defineProperty$c(yr,"".concat(ft,"-disabled"),Rt),_defineProperty$c(yr,"".concat(jr,"-disabled"),Rt),_defineProperty$c(yr,"".concat(jr,"-focused"),At),_defineProperty$c(yr,"".concat(jr,"-readonly"),It),_defineProperty$c(yr,"".concat(jr,"-input-with-clear-btn"),xt&&Nt&&kt),yr),Wt==null?void 0:Wt.affixWrapper,Vt==null?void 0:Vt.affixWrapper,Vt==null?void 0:Vt.variant),_r=(xt||Nt)&&React$1.createElement("span",{className:classNames("".concat(ft,"-suffix"),Vt==null?void 0:Vt.suffix),style:Gt==null?void 0:Gt.suffix},$r,xt);dr=React$1.createElement(lr,_extends$b({className:Or,style:Gt==null?void 0:Gt.affixWrapper,onClick:hr},qt==null?void 0:qt.affixWrapper,{ref:pr}),gt&&React$1.createElement("span",{className:classNames("".concat(ft,"-prefix"),Vt==null?void 0:Vt.prefix),style:Gt==null?void 0:Gt.prefix},gt),dr,_r)}if(hasAddon(et)){var Cr="".concat(ft,"-group"),Nr="".concat(Cr,"-addon"),Rr="".concat(Cr,"-wrapper"),Pr=classNames("".concat(ft,"-wrapper"),Cr,Wt==null?void 0:Wt.wrapper,Vt==null?void 0:Vt.wrapper),Mr=classNames(Rr,_defineProperty$c({},"".concat(Rr,"-disabled"),Rt),Wt==null?void 0:Wt.group,Vt==null?void 0:Vt.groupWrapper);dr=React$1.createElement(er,{className:Mr},React$1.createElement(cr,{className:Pr},$t&&React$1.createElement(ur,{className:Nr},$t),dr,_t&&React$1.createElement(ur,{className:Nr},_t)))}return React$1.cloneElement(dr,{className:classNames((rt=dr.props)===null||rt===void 0?void 0:rt.className,wt)||null,style:_objectSpread2(_objectSpread2({},(st=dr.props)===null||st===void 0?void 0:st.style),Tt),hidden:Ht})},_excluded$16=["show"];function useCount(_e,et){return reactExports.useMemo(function(){var rt={};et&&(rt.show=_typeof$e(et)==="object"&&et.formatter?et.formatter:!!et),rt=_objectSpread2(_objectSpread2({},rt),_e);var st=rt,ct=st.show,ut=_objectWithoutProperties$2(st,_excluded$16);return _objectSpread2(_objectSpread2({},ut),{},{show:!!ct,showFormatter:typeof ct=="function"?ct:void 0,strategy:ut.strategy||function(ft){return ft.length}})},[_e,et])}var _excluded$15=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Input$5=reactExports.forwardRef(function(_e,et){var rt=_e.autoComplete,st=_e.onChange,ct=_e.onFocus,ut=_e.onBlur,ft=_e.onPressEnter,gt=_e.onKeyDown,xt=_e.prefixCls,$t=xt===void 0?"rc-input":xt,_t=_e.disabled,wt=_e.htmlSize,Tt=_e.className,Rt=_e.maxLength,It=_e.suffix,At=_e.showCount,jt=_e.count,Nt=_e.type,kt=Nt===void 0?"text":Nt,Ft=_e.classes,Ht=_e.classNames,Wt=_e.styles,Vt=_e.onCompositionStart,qt=_e.onCompositionEnd,Gt=_objectWithoutProperties$2(_e,_excluded$15),Xt=reactExports.useState(!1),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=reactExports.useRef(!1),ur=reactExports.useRef(null),pr=function(zr){ur.current&&triggerFocus$1(ur.current,zr)},hr=useMergedState(_e.defaultValue,{value:_e.value}),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=dr==null?"":String(dr),Er=reactExports.useState(null),mr=_slicedToArray$3(Er,2),Sr=mr[0],Tr=mr[1],jr=useCount(jt,At),Or=jr.max||Rt,_r=jr.strategy($r),Cr=!!Or&&_r>Or;reactExports.useImperativeHandle(et,function(){return{focus:pr,blur:function(){var zr;(zr=ur.current)===null||zr===void 0||zr.blur()},setSelectionRange:function(zr,qr,pn){var Qr;(Qr=ur.current)===null||Qr===void 0||Qr.setSelectionRange(zr,qr,pn)},select:function(){var zr;(zr=ur.current)===null||zr===void 0||zr.select()},input:ur.current}}),reactExports.useEffect(function(){er(function(Kr){return Kr&&_t?!1:Kr})},[_t]);var Nr=function(zr,qr,pn){var Qr=qr;if(!cr.current&&jr.exceedFormatter&&jr.max&&jr.strategy(qr)>jr.max){if(Qr=jr.exceedFormatter(qr,{max:jr.max}),qr!==Qr){var Zr,vn;Tr([((Zr=ur.current)===null||Zr===void 0?void 0:Zr.selectionStart)||0,((vn=ur.current)===null||vn===void 0?void 0:vn.selectionEnd)||0])}}else if(pn.source==="compositionEnd")return;yr(Qr),ur.current&&resolveOnChange(ur.current,zr,st,Qr)};reactExports.useEffect(function(){if(Sr){var Kr;(Kr=ur.current)===null||Kr===void 0||Kr.setSelectionRange.apply(Kr,_toConsumableArray$3(Sr))}},[Sr]);var Rr=function(zr){Nr(zr,zr.target.value,{source:"change"})},Pr=function(zr){cr.current=!1,Nr(zr,zr.currentTarget.value,{source:"compositionEnd"}),qt==null||qt(zr)},Mr=function(zr){ft&&zr.key==="Enter"&&ft(zr),gt==null||gt(zr)},kr=function(zr){er(!0),ct==null||ct(zr)},Fr=function(zr){er(!1),ut==null||ut(zr)},wr=function(zr){yr(""),pr(),ur.current&&resolveOnChange(ur.current,zr,st)},Br=Cr&&"".concat($t,"-out-of-range"),Dr=function(){var zr=omit$2(_e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return React$1.createElement("input",_extends$b({autoComplete:rt},zr,{onChange:Rr,onFocus:kr,onBlur:Fr,onKeyDown:Mr,className:classNames($t,_defineProperty$c({},"".concat($t,"-disabled"),_t),Ht==null?void 0:Ht.input),style:Wt==null?void 0:Wt.input,ref:ur,size:wt,type:kt,onCompositionStart:function(pn){cr.current=!0,Vt==null||Vt(pn)},onCompositionEnd:Pr}))},Xr=function(){var zr=Number(Or)>0;if(It||jr.show){var qr=jr.showFormatter?jr.showFormatter({value:$r,count:_r,maxLength:Or}):"".concat(_r).concat(zr?" / ".concat(Or):"");return React$1.createElement(React$1.Fragment,null,jr.show&&React$1.createElement("span",{className:classNames("".concat($t,"-show-count-suffix"),_defineProperty$c({},"".concat($t,"-show-count-has-suffix"),!!It),Ht==null?void 0:Ht.count),style:_objectSpread2({},Wt==null?void 0:Wt.count)},qr),It)}return null};return React$1.createElement(BaseInput,_extends$b({},Gt,{prefixCls:$t,className:classNames(Tt,Br),handleReset:wr,value:$r,focused:lr,triggerFocus:pr,suffix:Xr(),disabled:_t,classes:Ft,classNames:Ht,styles:Wt}),Dr())});function useCursor(_e,et){var rt=reactExports.useRef(null);function st(){try{var ut=_e.selectionStart,ft=_e.selectionEnd,gt=_e.value,xt=gt.substring(0,ut),$t=gt.substring(ft);rt.current={start:ut,end:ft,value:gt,beforeTxt:xt,afterTxt:$t}}catch{}}function ct(){if(_e&&rt.current&&et)try{var ut=_e.value,ft=rt.current,gt=ft.beforeTxt,xt=ft.afterTxt,$t=ft.start,_t=ut.length;if(ut.endsWith(xt))_t=ut.length-rt.current.afterTxt.length;else if(ut.startsWith(gt))_t=gt.length;else{var wt=gt[$t-1],Tt=ut.indexOf(wt,$t-1);Tt!==-1&&(_t=Tt+1)}_e.setSelectionRange(_t,_t)}catch(Rt){warningOnce$1(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rt.message))}}return[st,ct]}var useMobile=function(){var et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return useLayoutEffect$3(function(){ct(isMobile())},[]),st},STEP_INTERVAL=200,STEP_DELAY=600;function StepHandler(_e){var et=_e.prefixCls,rt=_e.upNode,st=_e.downNode,ct=_e.upDisabled,ut=_e.downDisabled,ft=_e.onStep,gt=reactExports.useRef(),xt=reactExports.useRef([]),$t=reactExports.useRef();$t.current=ft;var _t=function(){clearTimeout(gt.current)},wt=function(Ft,Ht){Ft.preventDefault(),_t(),$t.current(Ht);function Wt(){$t.current(Ht),gt.current=setTimeout(Wt,STEP_INTERVAL)}gt.current=setTimeout(Wt,STEP_DELAY)};reactExports.useEffect(function(){return function(){_t(),xt.current.forEach(function(kt){return wrapperRaf.cancel(kt)})}},[]);var Tt=useMobile();if(Tt)return null;var Rt="".concat(et,"-handler"),It=classNames(Rt,"".concat(Rt,"-up"),_defineProperty$c({},"".concat(Rt,"-up-disabled"),ct)),At=classNames(Rt,"".concat(Rt,"-down"),_defineProperty$c({},"".concat(Rt,"-down-disabled"),ut)),jt=function(){return xt.current.push(wrapperRaf(_t))},Nt={unselectable:"on",role:"button",onMouseUp:jt,onMouseLeave:jt};return reactExports.createElement("div",{className:"".concat(Rt,"-wrap")},reactExports.createElement("span",_extends$b({},Nt,{onMouseDown:function(Ft){wt(Ft,!0)},"aria-label":"Increase Value","aria-disabled":ct,className:It}),rt||reactExports.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-up-inner")})),reactExports.createElement("span",_extends$b({},Nt,{onMouseDown:function(Ft){wt(Ft,!1)},"aria-label":"Decrease Value","aria-disabled":ut,className:At}),st||reactExports.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-down-inner")})))}function getDecupleSteps(_e){var et=typeof _e=="number"?num2str(_e):trimNumber(_e).fullStr,rt=et.includes(".");return rt?trimNumber(et.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:_e+"0"}const useFrame=function(){var _e=reactExports.useRef(0),et=function(){wrapperRaf.cancel(_e.current)};return reactExports.useEffect(function(){return et},[]),function(rt){et(),_e.current=wrapperRaf(function(){rt()})}};var _excluded$14=["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"],_excluded2$i=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],getDecimalValue=function(et,rt){return et||rt.isEmpty()?rt.toString():rt.toNumber()},getDecimalIfValidate=function(et){var rt=getMiniDecimal(et);return rt.isInvalidate()?null:rt},InternalInputNumber=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-input-number":st,ut=_e.className,ft=_e.style,gt=_e.min,xt=_e.max,$t=_e.step,_t=$t===void 0?1:$t,wt=_e.defaultValue,Tt=_e.value,Rt=_e.disabled,It=_e.readOnly,At=_e.upHandler,jt=_e.downHandler,Nt=_e.keyboard,kt=_e.changeOnWheel,Ft=kt===void 0?!1:kt,Ht=_e.controls,Wt=Ht===void 0?!0:Ht;_e.classNames;var Vt=_e.stringMode,qt=_e.parser,Gt=_e.formatter,Xt=_e.precision,Zt=_e.decimalSeparator,lr=_e.onChange,er=_e.onInput,cr=_e.onPressEnter,ur=_e.onStep,pr=_e.changeOnBlur,hr=pr===void 0?!0:pr,fr=_objectWithoutProperties$2(_e,_excluded$14),dr="".concat(ct,"-input"),yr=reactExports.useRef(null),$r=reactExports.useState(!1),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useRef(!1),jr=reactExports.useRef(!1),Or=reactExports.useRef(!1),_r=reactExports.useState(function(){return getMiniDecimal(Tt??wt)}),Cr=_slicedToArray$3(_r,2),Nr=Cr[0],Rr=Cr[1];function Pr(dn){Tt===void 0&&Rr(dn)}var Mr=reactExports.useCallback(function(dn,gn){if(!gn)return Xt>=0?Xt:Math.max(getNumberPrecision(dn),getNumberPrecision(_t))},[Xt,_t]),kr=reactExports.useCallback(function(dn){var gn=String(dn);if(qt)return qt(gn);var yn=gn;return Zt&&(yn=yn.replace(Zt,".")),yn.replace(/[^\w.-]+/g,"")},[qt,Zt]),Fr=reactExports.useRef(""),wr=reactExports.useCallback(function(dn,gn){if(Gt)return Gt(dn,{userTyping:gn,input:String(Fr.current)});var yn=typeof dn=="number"?num2str(dn):dn;if(!gn){var wn=Mr(yn,gn);if(validateNumber(yn)&&(Zt||wn>=0)){var Tn=Zt||".";yn=toFixed(yn,Tn,wn)}}return yn},[Gt,Mr,Zt]),Br=reactExports.useState(function(){var dn=wt??Tt;return Nr.isInvalidate()&&["string","number"].includes(_typeof$e(dn))?Number.isNaN(dn)?"":dn:wr(Nr.toString(),!1)}),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1];Fr.current=Xr;function zr(dn,gn){Kr(wr(dn.isInvalidate()?dn.toString(!1):dn.toString(!gn),gn))}var qr=reactExports.useMemo(function(){return getDecimalIfValidate(xt)},[xt,Xt]),pn=reactExports.useMemo(function(){return getDecimalIfValidate(gt)},[gt,Xt]),Qr=reactExports.useMemo(function(){return!qr||!Nr||Nr.isInvalidate()?!1:qr.lessEquals(Nr)},[qr,Nr]),Zr=reactExports.useMemo(function(){return!pn||!Nr||Nr.isInvalidate()?!1:Nr.lessEquals(pn)},[pn,Nr]),vn=useCursor(yr.current,mr),vr=_slicedToArray$3(vn,2),gr=vr[0],br=vr[1],Hr=function(gn){return qr&&!gn.lessEquals(qr)?qr:pn&&!pn.lessEquals(gn)?pn:null},Vr=function(gn){return!Hr(gn)},Wr=function(gn,yn){var wn=gn,Tn=Vr(wn)||wn.isEmpty();if(!wn.isEmpty()&&!yn&&(wn=Hr(wn)||wn,Tn=!0),!It&&!Rt&&Tn){var Nn=wn.toString(),On=Mr(Nn,yn);return On>=0&&(wn=getMiniDecimal(toFixed(Nn,".",On)),Vr(wn)||(wn=getMiniDecimal(toFixed(Nn,".",On,!0)))),wn.equals(Nr)||(Pr(wn),lr==null||lr(wn.isEmpty()?null:getDecimalValue(Vt,wn)),Tt===void 0&&zr(wn,yn)),wn}return Nr},Gr=useFrame(),cn=function dn(gn){if(gr(),Fr.current=gn,Kr(gn),!jr.current){var yn=kr(gn),wn=getMiniDecimal(yn);wn.isNaN()||Wr(wn,!0)}er==null||er(gn),Gr(function(){var Tn=gn;qt||(Tn=gn.replace(/。/g,".")),Tn!==gn&&dn(Tn)})},mn=function(){jr.current=!0},hn=function(){jr.current=!1,cn(yr.current.value)},En=function(gn){cn(gn.target.value)},Rn=function(gn){var yn;if(!(gn&&Qr||!gn&&Zr)){Tr.current=!1;var wn=getMiniDecimal(Or.current?getDecupleSteps(_t):_t);gn||(wn=wn.negate());var Tn=(Nr||getMiniDecimal(0)).add(wn.toString()),Nn=Wr(Tn,!1);ur==null||ur(getDecimalValue(Vt,Nn),{offset:Or.current?getDecupleSteps(_t):_t,type:gn?"up":"down"}),(yn=yr.current)===null||yn===void 0||yn.focus()}},Dn=function(gn){var yn=getMiniDecimal(kr(Xr)),wn=yn;yn.isNaN()?wn=Wr(Nr,gn):wn=Wr(yn,gn),Tt!==void 0?zr(Nr,!1):wn.isNaN()||zr(wn,!1)},Bn=function(){Tr.current=!0},Yn=function(gn){var yn=gn.key,wn=gn.shiftKey;Tr.current=!0,Or.current=wn,yn==="Enter"&&(jr.current||(Tr.current=!1),Dn(!1),cr==null||cr(gn)),Nt!==!1&&!jr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(yn)&&(Rn(yn==="Up"||yn==="ArrowUp"),gn.preventDefault())},qn=function(){Tr.current=!1,Or.current=!1};reactExports.useEffect(function(){if(Ft&&mr){var dn=function(wn){Rn(wn.deltaY<0),wn.preventDefault()},gn=yr.current;if(gn)return gn.addEventListener("wheel",dn,{passive:!1}),function(){return gn.removeEventListener("wheel",dn)}}});var ao=function(){hr&&Dn(!1),Sr(!1),Tr.current=!1};return useLayoutUpdateEffect(function(){Nr.isInvalidate()||zr(Nr,!1)},[Xt,Gt]),useLayoutUpdateEffect(function(){var dn=getMiniDecimal(Tt);Rr(dn);var gn=getMiniDecimal(kr(Xr));(!dn.equals(gn)||!Tr.current||Gt)&&zr(dn,Tr.current)},[Tt]),useLayoutUpdateEffect(function(){Gt&&br()},[Xr]),reactExports.createElement("div",{className:classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-focused"),mr),_defineProperty$c(rt,"".concat(ct,"-disabled"),Rt),_defineProperty$c(rt,"".concat(ct,"-readonly"),It),_defineProperty$c(rt,"".concat(ct,"-not-a-number"),Nr.isNaN()),_defineProperty$c(rt,"".concat(ct,"-out-of-range"),!Nr.isInvalidate()&&!Vr(Nr)),rt)),style:ft,onFocus:function(){Sr(!0)},onBlur:ao,onKeyDown:Yn,onKeyUp:qn,onCompositionStart:mn,onCompositionEnd:hn,onBeforeInput:Bn},Wt&&reactExports.createElement(StepHandler,{prefixCls:ct,upNode:At,downNode:jt,upDisabled:Qr,downDisabled:Zr,onStep:Rn}),reactExports.createElement("div",{className:"".concat(dr,"-wrap")},reactExports.createElement("input",_extends$b({autoComplete:"off",role:"spinbutton","aria-valuemin":gt,"aria-valuemax":xt,"aria-valuenow":Nr.isInvalidate()?null:Nr.toString(),step:_t},fr,{ref:composeRef(yr,et),className:dr,value:Xr,onChange:En,disabled:Rt,readOnly:It}))))}),InputNumber$2=reactExports.forwardRef(function(_e,et){var rt=_e.disabled,st=_e.style,ct=_e.prefixCls,ut=_e.value,ft=_e.prefix,gt=_e.suffix,xt=_e.addonBefore,$t=_e.addonAfter,_t=_e.className,wt=_e.classNames,Tt=_objectWithoutProperties$2(_e,_excluded2$i),Rt=reactExports.useRef(null),It=function(jt){Rt.current&&triggerFocus$1(Rt.current,jt)};return reactExports.createElement(BaseInput,{className:_t,triggerFocus:It,prefixCls:ct,value:ut,disabled:rt,style:st,prefix:ft,suffix:gt,addonAfter:$t,addonBefore:xt,classNames:wt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},reactExports.createElement(InternalInputNumber,_extends$b({prefixCls:ct,disabled:rt,ref:composeRef(Rt,et),className:wt==null?void 0:wt.input},Tt)))});InputNumber$2.displayName="InputNumber";const prepareComponentToken$g=_e=>{var et;const rt=(et=_e.handleVisible)!==null&&et!==void 0?et:"auto";return Object.assign(Object.assign({},initComponentToken$1(_e)),{controlWidth:90,handleWidth:_e.controlHeightSM-_e.lineWidth*2,handleFontSize:_e.fontSize/2,handleVisible:rt,handleActiveBg:_e.colorFillAlter,handleBg:_e.colorBgContainer,filledHandleBg:new TinyColor(_e.colorFillSecondary).onBackground(_e.colorBgContainer).toHexString(),handleHoverColor:_e.colorPrimary,handleBorderColor:_e.colorBorder,handleOpacity:rt===!0?1:0})},genRadiusStyle=(_e,et)=>{let{componentCls:rt,borderRadiusSM:st,borderRadiusLG:ct}=_e;const ut=et==="lg"?ct:st;return{[`&-${et}`]:{[`${rt}-handler-wrap`]:{borderStartEndRadius:ut,borderEndEndRadius:ut},[`${rt}-handler-up`]:{borderStartEndRadius:ut},[`${rt}-handler-down`]:{borderEndEndRadius:ut}}}},genInputNumberStyles=_e=>{const{componentCls:et,lineWidth:rt,lineType:st,borderRadius:ct,fontSizeLG:ut,controlHeightLG:ft,controlHeightSM:gt,colorError:xt,paddingInlineSM:$t,paddingBlockSM:_t,paddingBlockLG:wt,paddingInlineLG:Tt,colorTextDescription:Rt,motionDurationMid:It,handleHoverColor:At,paddingInline:jt,paddingBlock:Nt,handleBg:kt,handleActiveBg:Ft,colorTextDisabled:Ht,borderRadiusSM:Wt,borderRadiusLG:Vt,controlWidth:qt,handleOpacity:Gt,handleBorderColor:Xt,filledHandleBg:Zt,lineHeightLG:lr,calc:er}=_e;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genBasicInputStyle(_e)),{display:"inline-block",width:qt,margin:0,padding:0,borderRadius:ct}),genOutlinedStyle(_e,{[`${et}-handler-wrap`]:{background:kt,[`${et}-handler-down`]:{borderBlockStart:`${unit$1(rt)} ${st} ${Xt}`}}})),genFilledStyle(_e,{[`${et}-handler-wrap`]:{background:Zt,[`${et}-handler-down`]:{borderBlockStart:`${unit$1(rt)} ${st} ${Xt}`}},"&:focus-within":{[`${et}-handler-wrap`]:{background:kt}}})),genBorderlessStyle$1(_e)),{"&-rtl":{direction:"rtl",[`${et}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ut,lineHeight:lr,borderRadius:Vt,[`input${et}-input`]:{height:er(ft).sub(er(rt).mul(2)).equal(),padding:`${unit$1(wt)} ${unit$1(Tt)}`}},"&-sm":{padding:0,borderRadius:Wt,[`input${et}-input`]:{height:er(gt).sub(er(rt).mul(2)).equal(),padding:`${unit$1(_t)} ${unit$1($t)}`}},"&-out-of-range":{[`${et}-input-wrap`]:{input:{color:xt}}},"&-group":Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genInputGroupStyle(_e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${et}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${et}-group-addon`]:{borderRadius:Vt,fontSize:_e.fontSizeLG}},"&-sm":{[`${et}-group-addon`]:{borderRadius:Wt}}},genOutlinedGroupStyle(_e)),genFilledGroupStyle(_e)),{[`&:not(${et}-compact-first-item):not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}, ${et}-group-addon`]:{borderRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-first-item`]:{[`${et}, ${et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${et}-compact-first-item)${et}-compact-last-item`]:{[`${et}, ${et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${et}-input`]:{cursor:"not-allowed"},[et]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{width:"100%",padding:`${unit$1(Nt)} ${unit$1(jt)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ct,outline:0,transition:`all ${It} linear`,appearance:"textfield",fontSize:"inherit"}),genPlaceholderStyle(_e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[et]:Object.assign(Object.assign(Object.assign({[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{opacity:1},[`${et}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:_e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ct,borderEndEndRadius:ct,borderEndStartRadius:0,opacity:Gt,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${It} linear ${It}`,[`${et}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:st}}}},genGhostStyle=_e=>{const{componentCls:et,paddingSM:rt}=_e;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:rt}}}}}},prepareComponentToken$k=_e=>({headerPadding:`${_e.paddingSM}px ${_e.padding}px`,headerBg:_e.colorFillAlter,contentPadding:`${_e.padding}px 16px`,contentBg:_e.colorBgContainer}),useStyle$D=genStyleHooks("Collapse",_e=>{const et=merge$7(_e,{collapseHeaderPaddingSM:`${unit$1(_e.paddingXS)} ${unit$1(_e.paddingSM)}`,collapseHeaderPaddingLG:`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`,collapsePanelBorderRadius:_e.borderRadiusLG});return[genBaseStyle$8(et),genBorderlessStyle(et),genGhostStyle(et),genArrowStyle(et),genCollapseMotion(et)]},prepareComponentToken$k),Collapse=reactExports.forwardRef((_e,et)=>{const{getPrefixCls:rt,direction:st,collapse:ct}=reactExports.useContext(ConfigContext$1),{prefixCls:ut,className:ft,rootClassName:gt,style:xt,bordered:$t=!0,ghost:_t,size:wt,expandIconPosition:Tt="start",children:Rt,expandIcon:It}=_e,At=useSize(Zt=>{var er;return(er=wt??Zt)!==null&&er!==void 0?er:"middle"}),jt=rt("collapse",ut),Nt=rt(),[kt,Ft,Ht]=useStyle$D(jt),Wt=reactExports.useMemo(()=>Tt==="left"?"start":Tt==="right"?"end":Tt,[Tt]),Vt=function(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const er=It?It(Zt):reactExports.createElement(RightOutlined$6,{rotate:Zt.isActive?90:void 0});return cloneElement(er,()=>({className:classNames(er.props.className,`${jt}-arrow`)}))},qt=classNames(`${jt}-icon-position-${Wt}`,{[`${jt}-borderless`]:!$t,[`${jt}-rtl`]:st==="rtl",[`${jt}-ghost`]:!!_t,[`${jt}-${At}`]:At!=="middle"},ct==null?void 0:ct.className,ft,gt,Ft,Ht),Xt=Object.assign(Object.assign({},initCollapseMotion$1(Nt)),{motionAppear:!1,leavedClassName:`${jt}-content-hidden`}),Gt=reactExports.useMemo(()=>Rt?toArray$e(Rt).map((Zt,er)=>{var lr,cr;if(!((lr=Zt.props)===null||lr===void 0)&&lr.disabled){const ur=(cr=Zt.key)!==null&&cr!==void 0?cr:String(er),{disabled:fr,collapsible:hr}=Zt.props,pr=Object.assign(Object.assign({},omit$2(Zt.props,["disabled"])),{key:ur,collapsible:hr??(fr?"disabled":void 0)});return cloneElement(Zt,pr)}return Zt}):null,[Rt]);return kt(reactExports.createElement(Collapse$3,Object.assign({ref:et,openMotion:Xt},omit$2(_e,["rootClassName"]),{expandIcon:Vt,prefixCls:jt,className:qt,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),xt)}),Gt))}),Collapse$1=Object.assign(Collapse,{Panel:CollapsePanel$1}),genSharedDividerStyle=_e=>{const{componentCls:et,sizePaddingEdgeHorizontal:rt,colorSplit:st,lineWidth:ct,textPaddingInline:ut,orientationMargin:ft,verticalMarginInline:gt}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{borderBlockStart:`${unit$1(ct)} solid ${st}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:gt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit$1(ct)} solid ${st}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit$1(_e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${et}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit$1(_e.dividerHorizontalWithTextGutterMargin)} 0`,color:_e.colorTextHeading,fontWeight:500,fontSize:_e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${st}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit$1(ct)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${et}-with-text-left`]:{"&::before":{width:`calc(${ft} * 100%)`},"&::after":{width:`calc(100% - ${ft} * 100%)`}},[`&-horizontal${et}-with-text-right`]:{"&::before":{width:`calc(100% - ${ft} * 100%)`},"&::after":{width:`calc(${ft} * 100%)`}},[`${et}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ut},"&-dashed":{background:"none",borderColor:st,borderStyle:"dashed",borderWidth:`${unit$1(ct)} 0 0`},[`&-horizontal${et}-with-text${et}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${et}-dashed`]:{borderInlineStartWidth:ct,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${et}-with-text`]:{color:_e.colorText,fontWeight:"normal",fontSize:_e.fontSize},[`&-horizontal${et}-with-text-left${et}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${et}-inner-text`]:{paddingInlineStart:rt}},[`&-horizontal${et}-with-text-right${et}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${et}-inner-text`]:{paddingInlineEnd:rt}}})}},prepareComponentToken$j=_e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_e.marginXS}),useStyle$C=genStyleHooks("Divider",_e=>{const et=merge$7(_e,{dividerHorizontalWithTextGutterMargin:_e.margin,dividerHorizontalGutterMargin:_e.marginLG,sizePaddingEdgeHorizontal:0});return[genSharedDividerStyle(et)]},prepareComponentToken$j,{unitless:{orientationMargin:!0}});var __rest$E=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:et,direction:rt,divider:st}=reactExports.useContext(ConfigContext$1),{prefixCls:ct,type:ut="horizontal",orientation:ft="center",orientationMargin:gt,className:xt,rootClassName:$t,children:_t,dashed:wt,plain:Tt,style:Rt}=_e,It=__rest$E(_e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),At=et("divider",ct),[jt,Nt,kt]=useStyle$C(At),Ft=ft.length>0?`-${ft}`:ft,Ht=!!_t,Wt=ft==="left"&>!=null,Vt=ft==="right"&>!=null,qt=classNames(At,st==null?void 0:st.className,Nt,kt,`${At}-${ut}`,{[`${At}-with-text`]:Ht,[`${At}-with-text${Ft}`]:Ht,[`${At}-dashed`]:!!wt,[`${At}-plain`]:!!Tt,[`${At}-rtl`]:rt==="rtl",[`${At}-no-default-orientation-margin-left`]:Wt,[`${At}-no-default-orientation-margin-right`]:Vt},xt,$t),Xt=reactExports.useMemo(()=>typeof gt=="number"?gt:/^\d+$/.test(gt)?Number(gt):gt,[gt]),Gt=Object.assign(Object.assign({},Wt&&{marginLeft:Xt}),Vt&&{marginRight:Xt});return jt(reactExports.createElement("div",Object.assign({className:qt,style:Object.assign(Object.assign({},st==null?void 0:st.style),Rt)},It,{role:"separator"}),_t&&ut!=="vertical"&&reactExports.createElement("span",{className:`${At}-inner-text`,style:Gt},_t)))},Divider$1=Divider;var _excluded$17=["b"],_excluded2$j=["v"],getRoundNumber$1=function(et){return Math.round(Number(et||0))},convertHsb2Hsv=function(et){if(et&&_typeof$e(et)==="object"&&"h"in et&&"b"in et){var rt=et,st=rt.b,ct=_objectWithoutProperties$2(rt,_excluded$17);return _objectSpread2(_objectSpread2({},ct),{},{v:st})}return typeof et=="string"&&/hsb/.test(et)?et.replace(/hsb/,"hsv"):et},Color=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(st){return _classCallCheck$9(this,rt),et.call(this,convertHsb2Hsv(st))}return _createClass$7(rt,[{key:"toHsbString",value:function(){var ct=this.toHsb(),ut=getRoundNumber$1(ct.s*100),ft=getRoundNumber$1(ct.b*100),gt=getRoundNumber$1(ct.h),xt=ct.a,$t="hsb(".concat(gt,", ").concat(ut,"%, ").concat(ft,"%)"),_t="hsba(".concat(gt,", ").concat(ut,"%, ").concat(ft,"%, ").concat(xt.toFixed(xt===0?0:2),")");return xt===1?$t:_t}},{key:"toHsb",value:function(){var ct=this.toHsv();_typeof$e(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(ct=this.originalInput);var ut=ct;ut.v;var ft=_objectWithoutProperties$2(ut,_excluded2$j);return _objectSpread2(_objectSpread2({},ft),{},{b:ct.v})}}]),rt}(TinyColor),ColorPickerPrefixCls="rc-color-picker",generateColor$1=function(et){return et instanceof Color?et:new Color(et)},defaultColor=generateColor$1("#1677ff"),calculateColor=function(et){var rt=et.offset,st=et.targetRef,ct=et.containerRef,ut=et.color,ft=et.type,gt=ct.current.getBoundingClientRect(),xt=gt.width,$t=gt.height,_t=st.current.getBoundingClientRect(),wt=_t.width,Tt=_t.height,Rt=wt/2,It=Tt/2,At=(rt.x+Rt)/xt,jt=1-(rt.y+It)/$t,Nt=ut.toHsb(),kt=At,Ft=(rt.x+Rt)/xt*360;if(ft)switch(ft){case"hue":return generateColor$1(_objectSpread2(_objectSpread2({},Nt),{},{h:Ft<=0?0:Ft}));case"alpha":return generateColor$1(_objectSpread2(_objectSpread2({},Nt),{},{a:kt<=0?0:kt}))}return generateColor$1({h:Nt.h,s:At<=0?0:At,b:jt>=1?1:jt,a:Nt.a})},calculateOffset$1=function(et,rt,st,ct){var ut=et.current.getBoundingClientRect(),ft=ut.width,gt=ut.height,xt=rt.current.getBoundingClientRect(),$t=xt.width,_t=xt.height,wt=$t/2,Tt=_t/2,Rt=st.toHsb();if(!($t===0&&_t===0||$t!==_t)){if(ct)switch(ct){case"hue":return{x:Rt.h/360*ft-wt,y:-Tt/3};case"alpha":return{x:Rt.a/1*ft-wt,y:-Tt/3}}return{x:Rt.s*ft-wt,y:(1-Rt.b)*gt-Tt}}},ColorBlock=function(et){var rt=et.color,st=et.prefixCls,ct=et.className,ut=et.style,ft=et.onClick,gt="".concat(st,"-color-block");return React$1.createElement("div",{className:classNames(gt,ct),style:ut,onClick:ft},React$1.createElement("div",{className:"".concat(gt,"-inner"),style:{background:rt}}))};function getPosition$2(_e){var et="touches"in _e?_e.touches[0]:_e,rt=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,st=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:et.pageX-rt,pageY:et.pageY-st}}function useColorDrag(_e){var et=_e.offset,rt=_e.targetRef,st=_e.containerRef,ct=_e.direction,ut=_e.onDragChange,ft=_e.onDragChangeComplete,gt=_e.calculate,xt=_e.color,$t=_e.disabledDrag,_t=reactExports.useState(et||{x:0,y:0}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=reactExports.useRef(null),At=reactExports.useRef(null),jt=reactExports.useRef({flag:!1});reactExports.useEffect(function(){if(jt.current.flag===!1){var Wt=gt==null?void 0:gt(st);Wt&&Rt(Wt)}},[xt,st]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),document.removeEventListener("touchmove",It.current),document.removeEventListener("touchend",At.current),It.current=null,At.current=null}},[]);var Nt=function(Vt){var qt=getPosition$2(Vt),Xt=qt.pageX,Gt=qt.pageY,Zt=st.current.getBoundingClientRect(),er=Zt.x,lr=Zt.y,cr=Zt.width,ur=Zt.height,fr=rt.current.getBoundingClientRect(),hr=fr.width,pr=fr.height,dr=hr/2,yr=pr/2,Sr=Math.max(0,Math.min(Xt-er,cr))-dr,br=Math.max(0,Math.min(Gt-lr,ur))-yr,mr={x:Sr,y:ct==="x"?Tt.y:br};if(hr===0&&pr===0||hr!==pr)return!1;Rt(mr),ut==null||ut(mr)},kt=function(Vt){Vt.preventDefault(),Nt(Vt)},Ft=function(Vt){Vt.preventDefault(),jt.current.flag=!1,document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),document.removeEventListener("touchmove",It.current),document.removeEventListener("touchend",At.current),It.current=null,At.current=null,ft==null||ft()},Ht=function(Vt){document.removeEventListener("mousemove",It.current),document.removeEventListener("mouseup",At.current),!$t&&(Nt(Vt),jt.current.flag=!0,document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Ft),document.addEventListener("touchmove",kt),document.addEventListener("touchend",Ft),It.current=kt,At.current=Ft)};return[Tt,Ht]}var Handler=function(et){var rt=et.size,st=rt===void 0?"default":rt,ct=et.color,ut=et.prefixCls;return React$1.createElement("div",{className:classNames("".concat(ut,"-handler"),_defineProperty$c({},"".concat(ut,"-handler-sm"),st==="small")),style:{backgroundColor:ct}})},Palette=function(et){var rt=et.children,st=et.style,ct=et.prefixCls;return React$1.createElement("div",{className:"".concat(ct,"-palette"),style:_objectSpread2({position:"relative"},st)},rt)},Transform=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_e.offset;return React$1.createElement("div",{ref:et,style:{position:"absolute",left:st.x,top:st.y,zIndex:1}},rt)}),Picker=function(et){var rt=et.color,st=et.onChange,ct=et.prefixCls,ut=et.onChangeComplete,ft=et.disabled,gt=reactExports.useRef(),xt=reactExports.useRef(),$t=reactExports.useRef(rt),_t=useColorDrag({color:rt,containerRef:gt,targetRef:xt,calculate:function(At){return calculateOffset$1(At,xt,rt)},onDragChange:function(At){var jt=calculateColor({offset:At,targetRef:xt,containerRef:gt,color:rt});$t.current=jt,st(jt)},onDragChangeComplete:function(){return ut==null?void 0:ut($t.current)},disabledDrag:ft}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];return React$1.createElement("div",{ref:gt,className:"".concat(ct,"-select"),onMouseDown:Rt,onTouchStart:Rt},React$1.createElement(Palette,{prefixCls:ct},React$1.createElement(Transform,{offset:Tt,ref:xt},React$1.createElement(Handler,{color:rt.toRgbString(),prefixCls:ct})),React$1.createElement("div",{className:"".concat(ct,"-saturation"),style:{backgroundColor:"hsl(".concat(rt.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Gradient=function(et){var rt=et.colors,st=et.children,ct=et.direction,ut=ct===void 0?"to right":ct,ft=et.type,gt=et.prefixCls,xt=reactExports.useMemo(function(){return rt.map(function($t,_t){var wt=generateColor$1($t);return ft==="alpha"&&_t===rt.length-1&&wt.setAlpha(1),wt.toRgbString()}).join(",")},[rt,ft]);return React$1.createElement("div",{className:"".concat(gt,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(ut,", ").concat(xt,")")}},st)},Slider$3=function(et){var rt=et.gradientColors,st=et.direction,ct=et.type,ut=ct===void 0?"hue":ct,ft=et.color,gt=et.value,xt=et.onChange,$t=et.onChangeComplete,_t=et.disabled,wt=et.prefixCls,Tt=reactExports.useRef(),Rt=reactExports.useRef(),It=reactExports.useRef(ft),At=useColorDrag({color:ft,targetRef:Rt,containerRef:Tt,calculate:function(Ht){return calculateOffset$1(Ht,Rt,ft,ut)},onDragChange:function(Ht){var Wt=calculateColor({offset:Ht,targetRef:Rt,containerRef:Tt,color:ft,type:ut});It.current=Wt,xt(Wt)},onDragChangeComplete:function(){$t==null||$t(It.current,ut)},direction:"x",disabledDrag:_t}),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1];return React$1.createElement("div",{ref:Tt,className:classNames("".concat(wt,"-slider"),"".concat(wt,"-slider-").concat(ut)),onMouseDown:kt,onTouchStart:kt},React$1.createElement(Palette,{prefixCls:wt},React$1.createElement(Transform,{offset:Nt,ref:Rt},React$1.createElement(Handler,{size:"small",color:gt,prefixCls:wt})),React$1.createElement(Gradient,{colors:rt,direction:st,type:ut,prefixCls:wt})))};function hasValue$2(_e){return _e!==void 0}var useColorState$1=function(et,rt){var st=rt.defaultValue,ct=rt.value,ut=reactExports.useState(function(){var $t;return hasValue$2(ct)?$t=ct:hasValue$2(st)?$t=st:$t=et,generateColor$1($t)}),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return reactExports.useEffect(function(){ct&&xt(generateColor$1(ct))},[ct]),[gt,xt]},hueColor=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const ColorPicker$3=reactExports.forwardRef(function(_e,et){var rt=_e.value,st=_e.defaultValue,ct=_e.prefixCls,ut=ct===void 0?ColorPickerPrefixCls:ct,ft=_e.onChange,gt=_e.onChangeComplete,xt=_e.className,$t=_e.style,_t=_e.panelRender,wt=_e.disabledAlpha,Tt=wt===void 0?!1:wt,Rt=_e.disabled,It=Rt===void 0?!1:Rt,At=useColorState$1(defaultColor,{value:rt,defaultValue:st}),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useMemo(function(){var Xt=generateColor$1(Nt.toRgbString());return Xt.setAlpha(1),Xt.toRgbString()},[Nt]),Ht=classNames("".concat(ut,"-panel"),xt,_defineProperty$c({},"".concat(ut,"-panel-disabled"),It)),Wt={prefixCls:ut,onChangeComplete:gt,disabled:It},Vt=function(Gt,Zt){rt||kt(Gt),ft==null||ft(Gt,Zt)},qt=React$1.createElement(React$1.Fragment,null,React$1.createElement(Picker,_extends$b({color:Nt,onChange:Vt},Wt)),React$1.createElement("div",{className:"".concat(ut,"-slider-container")},React$1.createElement("div",{className:classNames("".concat(ut,"-slider-group"),_defineProperty$c({},"".concat(ut,"-slider-group-disabled-alpha"),Tt))},React$1.createElement(Slider$3,_extends$b({gradientColors:hueColor,color:Nt,value:"hsl(".concat(Nt.toHsb().h,",100%, 50%)"),onChange:function(Gt){return Vt(Gt,"hue")}},Wt)),!Tt&&React$1.createElement(Slider$3,_extends$b({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ft],color:Nt,value:Nt.toRgbString(),onChange:function(Gt){return Vt(Gt,"alpha")}},Wt))),React$1.createElement(ColorBlock,{color:Nt.toRgbString(),prefixCls:ut})));return React$1.createElement("div",{className:Ht,style:$t,ref:et},typeof _t=="function"?_t(qt):qt)}),PanelPickerContext=React$1.createContext({}),PanelPresetsContext=React$1.createContext({}),{Provider:PanelPickerProvider}=PanelPickerContext,{Provider:PanelPresetsProvider}=PanelPresetsContext,toHexFormat=(_e,et)=>(_e==null?void 0:_e.replace(/[^\w/]/gi,"").slice(0,et?8:6))||"",getHex=(_e,et)=>_e?toHexFormat(_e,et):"";let ColorFactory=function(){function _e(et){_classCallCheck$9(this,_e),this.metaColor=new Color(et),et||this.metaColor.setAlpha(0)}return _createClass$7(_e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return getHex(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),_e}();const generateColor=_e=>_e instanceof ColorFactory?_e:new ColorFactory(_e),getRoundNumber=_e=>Math.round(Number(_e||0)),getAlphaColor$2=_e=>getRoundNumber(_e.toHsb().a*100),genAlphaColor=(_e,et)=>{const rt=_e.toHsb();return rt.a=et||1,generateColor(rt)},ColorClear=_e=>{let{prefixCls:et,value:rt,colorCleared:st,onChange:ct}=_e;const ut=()=>{if(rt&&!st){const ft=rt.toHsb();ft.a=0;const gt=generateColor(ft);ct==null||ct(gt)}};return React$1.createElement("div",{className:`${et}-clear`,onClick:ut})},ColorClear$1=ColorClear;var ColorFormat;(function(_e){_e.hex="hex",_e.rgb="rgb",_e.hsb="hsb"})(ColorFormat||(ColorFormat={}));var UpOutlined$2={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"};const UpOutlinedSvg=UpOutlined$2;var UpOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:UpOutlinedSvg}))};const UpOutlined$1=reactExports.forwardRef(UpOutlined);function supportBigInt(){return typeof BigInt=="function"}function isEmpty(_e){return!_e&&_e!==0&&!Number.isNaN(_e)||!String(_e).trim()}function trimNumber(_e){var et=_e.trim(),rt=et.startsWith("-");rt&&(et=et.slice(1)),et=et.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),et.startsWith(".")&&(et="0".concat(et));var st=et||"0",ct=st.split("."),ut=ct[0]||"0",ft=ct[1]||"0";ut==="0"&&ft==="0"&&(rt=!1);var gt=rt?"-":"";return{negative:rt,negativeStr:gt,trimStr:st,integerStr:ut,decimalStr:ft,fullStr:"".concat(gt).concat(st)}}function isE(_e){var et=String(_e);return!Number.isNaN(Number(et))&&et.includes("e")}function getNumberPrecision(_e){var et=String(_e);if(isE(_e)){var rt=Number(et.slice(et.indexOf("e-")+2)),st=et.match(/\.(\d+)/);return st!=null&&st[1]&&(rt+=st[1].length),rt}return et.includes(".")&&validateNumber(et)?et.length-et.indexOf(".")-1:0}function num2str(_e){var et=String(_e);if(isE(_e)){if(_e>Number.MAX_SAFE_INTEGER)return String(supportBigInt()?BigInt(_e).toString():Number.MAX_SAFE_INTEGER);if(_e0&&arguments[0]!==void 0?arguments[0]:!0;return rt?this.isInvalidate()?"":trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),_e}(),NumberDecimal=function(){function _e(et){if(_classCallCheck$9(this,_e),_defineProperty$c(this,"origin",""),_defineProperty$c(this,"number",void 0),_defineProperty$c(this,"empty",void 0),isEmpty(et)){this.empty=!0;return}this.origin=String(et),this.number=Number(et)}return _createClass$7(_e,[{key:"negate",value:function(){return new _e(-this.toNumber())}},{key:"add",value:function(rt){if(this.isInvalidate())return new _e(rt);var st=Number(rt);if(Number.isNaN(st))return this;var ct=this.number+st;if(ct>Number.MAX_SAFE_INTEGER)return new _e(Number.MAX_SAFE_INTEGER);if(ctNumber.MAX_SAFE_INTEGER)return new _e(Number.MAX_SAFE_INTEGER);if(ct0&&arguments[0]!==void 0?arguments[0]:!0;return rt?this.isInvalidate()?"":num2str(this.number):this.origin}}]),_e}();function getMiniDecimal(_e){return supportBigInt()?new BigIntDecimal(_e):new NumberDecimal(_e)}function toFixed(_e,et,rt){var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(_e==="")return"";var ct=trimNumber(_e),ut=ct.negativeStr,ft=ct.integerStr,gt=ct.decimalStr,xt="".concat(et).concat(gt),$t="".concat(ut).concat(ft);if(rt>=0){var _t=Number(gt[rt]);if(_t>=5&&!st){var wt=getMiniDecimal(_e).add("".concat(ut,"0.").concat("0".repeat(rt)).concat(10-_t));return toFixed(wt.toString(),et,rt,st)}return rt===0?$t:"".concat($t).concat(et).concat(gt.padEnd(rt,"0").slice(0,rt))}return xt===".0"?$t:"".concat($t).concat(xt)}function hasAddon(_e){return!!(_e.addonBefore||_e.addonAfter)}function hasPrefixSuffix$1(_e){return!!(_e.prefix||_e.suffix||_e.allowClear)}function resolveOnChange(_e,et,rt,st){if(rt){var ct=et;if(et.type==="click"){var ut=_e.cloneNode(!0);ct=Object.create(et,{target:{value:ut},currentTarget:{value:ut}}),ut.value="",rt(ct);return}if(_e.type!=="file"&&st!==void 0){var ft=_e.cloneNode(!0);ct=Object.create(et,{target:{value:ft},currentTarget:{value:ft}}),ft.value=st,rt(ct);return}rt(ct)}}function triggerFocus$1(_e,et){if(_e){_e.focus(et);var rt=et||{},st=rt.cursor;if(st){var ct=_e.value.length;switch(st){case"start":_e.setSelectionRange(0,0);break;case"end":_e.setSelectionRange(ct,ct);break;default:_e.setSelectionRange(0,ct)}}}}var BaseInput=function(et){var rt,st,ct=et.inputElement,ut=et.children,ft=et.prefixCls,gt=et.prefix,xt=et.suffix,$t=et.addonBefore,_t=et.addonAfter,wt=et.className,Tt=et.style,Rt=et.disabled,It=et.readOnly,At=et.focused,jt=et.triggerFocus,Nt=et.allowClear,kt=et.value,Ft=et.handleReset,Ht=et.hidden,Wt=et.classes,Vt=et.classNames,qt=et.dataAttrs,Xt=et.styles,Gt=et.components,Zt=ut??ct,er=(Gt==null?void 0:Gt.affixWrapper)||"span",lr=(Gt==null?void 0:Gt.groupWrapper)||"span",cr=(Gt==null?void 0:Gt.wrapper)||"span",ur=(Gt==null?void 0:Gt.groupAddon)||"span",fr=reactExports.useRef(null),hr=function(Fr){var _r;(_r=fr.current)!==null&&_r!==void 0&&_r.contains(Fr.target)&&(jt==null||jt())},pr=hasPrefixSuffix$1(et),dr=reactExports.cloneElement(Zt,{value:kt,className:classNames(Zt.props.className,!pr&&(Vt==null?void 0:Vt.variant))||null});if(pr){var yr,Sr=null;if(Nt){var br,mr=!Rt&&!It&&kt,Er="".concat(ft,"-clear-icon"),Tr=_typeof$e(Nt)==="object"&&Nt!==null&&Nt!==void 0&&Nt.clearIcon?Nt.clearIcon:"✖";Sr=React$1.createElement("span",{onClick:Ft,onMouseDown:function(Fr){return Fr.preventDefault()},className:classNames(Er,(br={},_defineProperty$c(br,"".concat(Er,"-hidden"),!mr),_defineProperty$c(br,"".concat(Er,"-has-suffix"),!!xt),br)),role:"button",tabIndex:-1},Tr)}var Mr="".concat(ft,"-affix-wrapper"),Or=classNames(Mr,(yr={},_defineProperty$c(yr,"".concat(ft,"-disabled"),Rt),_defineProperty$c(yr,"".concat(Mr,"-disabled"),Rt),_defineProperty$c(yr,"".concat(Mr,"-focused"),At),_defineProperty$c(yr,"".concat(Mr,"-readonly"),It),_defineProperty$c(yr,"".concat(Mr,"-input-with-clear-btn"),xt&&Nt&&kt),yr),Wt==null?void 0:Wt.affixWrapper,Vt==null?void 0:Vt.affixWrapper,Vt==null?void 0:Vt.variant),wr=(xt||Nt)&&React$1.createElement("span",{className:classNames("".concat(ft,"-suffix"),Vt==null?void 0:Vt.suffix),style:Xt==null?void 0:Xt.suffix},Sr,xt);dr=React$1.createElement(er,_extends$b({className:Or,style:Xt==null?void 0:Xt.affixWrapper,onClick:hr},qt==null?void 0:qt.affixWrapper,{ref:fr}),gt&&React$1.createElement("span",{className:classNames("".concat(ft,"-prefix"),Vt==null?void 0:Vt.prefix),style:Xt==null?void 0:Xt.prefix},gt),dr,wr)}if(hasAddon(et)){var Cr="".concat(ft,"-group"),Nr="".concat(Cr,"-addon"),Rr="".concat(Cr,"-wrapper"),Pr=classNames("".concat(ft,"-wrapper"),Cr,Wt==null?void 0:Wt.wrapper,Vt==null?void 0:Vt.wrapper),jr=classNames(Rr,_defineProperty$c({},"".concat(Rr,"-disabled"),Rt),Wt==null?void 0:Wt.group,Vt==null?void 0:Vt.groupWrapper);dr=React$1.createElement(lr,{className:jr},React$1.createElement(cr,{className:Pr},$t&&React$1.createElement(ur,{className:Nr},$t),dr,_t&&React$1.createElement(ur,{className:Nr},_t)))}return React$1.cloneElement(dr,{className:classNames((rt=dr.props)===null||rt===void 0?void 0:rt.className,wt)||null,style:_objectSpread2(_objectSpread2({},(st=dr.props)===null||st===void 0?void 0:st.style),Tt),hidden:Ht})},_excluded$16=["show"];function useCount(_e,et){return reactExports.useMemo(function(){var rt={};et&&(rt.show=_typeof$e(et)==="object"&&et.formatter?et.formatter:!!et),rt=_objectSpread2(_objectSpread2({},rt),_e);var st=rt,ct=st.show,ut=_objectWithoutProperties$2(st,_excluded$16);return _objectSpread2(_objectSpread2({},ut),{},{show:!!ct,showFormatter:typeof ct=="function"?ct:void 0,strategy:ut.strategy||function(ft){return ft.length}})},[_e,et])}var _excluded$15=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Input$5=reactExports.forwardRef(function(_e,et){var rt=_e.autoComplete,st=_e.onChange,ct=_e.onFocus,ut=_e.onBlur,ft=_e.onPressEnter,gt=_e.onKeyDown,xt=_e.prefixCls,$t=xt===void 0?"rc-input":xt,_t=_e.disabled,wt=_e.htmlSize,Tt=_e.className,Rt=_e.maxLength,It=_e.suffix,At=_e.showCount,jt=_e.count,Nt=_e.type,kt=Nt===void 0?"text":Nt,Ft=_e.classes,Ht=_e.classNames,Wt=_e.styles,Vt=_e.onCompositionStart,qt=_e.onCompositionEnd,Xt=_objectWithoutProperties$2(_e,_excluded$15),Gt=reactExports.useState(!1),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=reactExports.useRef(!1),ur=reactExports.useRef(null),fr=function(Hr){ur.current&&triggerFocus$1(ur.current,Hr)},hr=useMergedState(_e.defaultValue,{value:_e.value}),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=dr==null?"":String(dr),br=reactExports.useState(null),mr=_slicedToArray$3(br,2),Er=mr[0],Tr=mr[1],Mr=useCount(jt,At),Or=Mr.max||Rt,wr=Mr.strategy(Sr),Cr=!!Or&&wr>Or;reactExports.useImperativeHandle(et,function(){return{focus:fr,blur:function(){var Hr;(Hr=ur.current)===null||Hr===void 0||Hr.blur()},setSelectionRange:function(Hr,Vr,ln){var Qr;(Qr=ur.current)===null||Qr===void 0||Qr.setSelectionRange(Hr,Vr,ln)},select:function(){var Hr;(Hr=ur.current)===null||Hr===void 0||Hr.select()},input:ur.current}}),reactExports.useEffect(function(){lr(function(Kr){return Kr&&_t?!1:Kr})},[_t]);var Nr=function(Hr,Vr,ln){var Qr=Vr;if(!cr.current&&Mr.exceedFormatter&&Mr.max&&Mr.strategy(Vr)>Mr.max){if(Qr=Mr.exceedFormatter(Vr,{max:Mr.max}),Vr!==Qr){var Zr,vn;Tr([((Zr=ur.current)===null||Zr===void 0?void 0:Zr.selectionStart)||0,((vn=ur.current)===null||vn===void 0?void 0:vn.selectionEnd)||0])}}else if(ln.source==="compositionEnd")return;yr(Qr),ur.current&&resolveOnChange(ur.current,Hr,st,Qr)};reactExports.useEffect(function(){if(Er){var Kr;(Kr=ur.current)===null||Kr===void 0||Kr.setSelectionRange.apply(Kr,_toConsumableArray$3(Er))}},[Er]);var Rr=function(Hr){Nr(Hr,Hr.target.value,{source:"change"})},Pr=function(Hr){cr.current=!1,Nr(Hr,Hr.currentTarget.value,{source:"compositionEnd"}),qt==null||qt(Hr)},jr=function(Hr){ft&&Hr.key==="Enter"&&ft(Hr),gt==null||gt(Hr)},kr=function(Hr){lr(!0),ct==null||ct(Hr)},Fr=function(Hr){lr(!1),ut==null||ut(Hr)},_r=function(Hr){yr(""),fr(),ur.current&&resolveOnChange(ur.current,Hr,st)},Br=Cr&&"".concat($t,"-out-of-range"),Dr=function(){var Hr=omit$2(_e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return React$1.createElement("input",_extends$b({autoComplete:rt},Hr,{onChange:Rr,onFocus:kr,onBlur:Fr,onKeyDown:jr,className:classNames($t,_defineProperty$c({},"".concat($t,"-disabled"),_t),Ht==null?void 0:Ht.input),style:Wt==null?void 0:Wt.input,ref:ur,size:wt,type:kt,onCompositionStart:function(ln){cr.current=!0,Vt==null||Vt(ln)},onCompositionEnd:Pr}))},Xr=function(){var Hr=Number(Or)>0;if(It||Mr.show){var Vr=Mr.showFormatter?Mr.showFormatter({value:Sr,count:wr,maxLength:Or}):"".concat(wr).concat(Hr?" / ".concat(Or):"");return React$1.createElement(React$1.Fragment,null,Mr.show&&React$1.createElement("span",{className:classNames("".concat($t,"-show-count-suffix"),_defineProperty$c({},"".concat($t,"-show-count-has-suffix"),!!It),Ht==null?void 0:Ht.count),style:_objectSpread2({},Wt==null?void 0:Wt.count)},Vr),It)}return null};return React$1.createElement(BaseInput,_extends$b({},Xt,{prefixCls:$t,className:classNames(Tt,Br),handleReset:_r,value:Sr,focused:er,triggerFocus:fr,suffix:Xr(),disabled:_t,classes:Ft,classNames:Ht,styles:Wt}),Dr())});function useCursor(_e,et){var rt=reactExports.useRef(null);function st(){try{var ut=_e.selectionStart,ft=_e.selectionEnd,gt=_e.value,xt=gt.substring(0,ut),$t=gt.substring(ft);rt.current={start:ut,end:ft,value:gt,beforeTxt:xt,afterTxt:$t}}catch{}}function ct(){if(_e&&rt.current&&et)try{var ut=_e.value,ft=rt.current,gt=ft.beforeTxt,xt=ft.afterTxt,$t=ft.start,_t=ut.length;if(ut.endsWith(xt))_t=ut.length-rt.current.afterTxt.length;else if(ut.startsWith(gt))_t=gt.length;else{var wt=gt[$t-1],Tt=ut.indexOf(wt,$t-1);Tt!==-1&&(_t=Tt+1)}_e.setSelectionRange(_t,_t)}catch(Rt){warningOnce$1(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rt.message))}}return[st,ct]}var useMobile=function(){var et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return useLayoutEffect$3(function(){ct(isMobile())},[]),st},STEP_INTERVAL=200,STEP_DELAY=600;function StepHandler(_e){var et=_e.prefixCls,rt=_e.upNode,st=_e.downNode,ct=_e.upDisabled,ut=_e.downDisabled,ft=_e.onStep,gt=reactExports.useRef(),xt=reactExports.useRef([]),$t=reactExports.useRef();$t.current=ft;var _t=function(){clearTimeout(gt.current)},wt=function(Ft,Ht){Ft.preventDefault(),_t(),$t.current(Ht);function Wt(){$t.current(Ht),gt.current=setTimeout(Wt,STEP_INTERVAL)}gt.current=setTimeout(Wt,STEP_DELAY)};reactExports.useEffect(function(){return function(){_t(),xt.current.forEach(function(kt){return wrapperRaf.cancel(kt)})}},[]);var Tt=useMobile();if(Tt)return null;var Rt="".concat(et,"-handler"),It=classNames(Rt,"".concat(Rt,"-up"),_defineProperty$c({},"".concat(Rt,"-up-disabled"),ct)),At=classNames(Rt,"".concat(Rt,"-down"),_defineProperty$c({},"".concat(Rt,"-down-disabled"),ut)),jt=function(){return xt.current.push(wrapperRaf(_t))},Nt={unselectable:"on",role:"button",onMouseUp:jt,onMouseLeave:jt};return reactExports.createElement("div",{className:"".concat(Rt,"-wrap")},reactExports.createElement("span",_extends$b({},Nt,{onMouseDown:function(Ft){wt(Ft,!0)},"aria-label":"Increase Value","aria-disabled":ct,className:It}),rt||reactExports.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-up-inner")})),reactExports.createElement("span",_extends$b({},Nt,{onMouseDown:function(Ft){wt(Ft,!1)},"aria-label":"Decrease Value","aria-disabled":ut,className:At}),st||reactExports.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-down-inner")})))}function getDecupleSteps(_e){var et=typeof _e=="number"?num2str(_e):trimNumber(_e).fullStr,rt=et.includes(".");return rt?trimNumber(et.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:_e+"0"}const useFrame=function(){var _e=reactExports.useRef(0),et=function(){wrapperRaf.cancel(_e.current)};return reactExports.useEffect(function(){return et},[]),function(rt){et(),_e.current=wrapperRaf(function(){rt()})}};var _excluded$14=["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"],_excluded2$i=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],getDecimalValue=function(et,rt){return et||rt.isEmpty()?rt.toString():rt.toNumber()},getDecimalIfValidate=function(et){var rt=getMiniDecimal(et);return rt.isInvalidate()?null:rt},InternalInputNumber=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-input-number":st,ut=_e.className,ft=_e.style,gt=_e.min,xt=_e.max,$t=_e.step,_t=$t===void 0?1:$t,wt=_e.defaultValue,Tt=_e.value,Rt=_e.disabled,It=_e.readOnly,At=_e.upHandler,jt=_e.downHandler,Nt=_e.keyboard,kt=_e.changeOnWheel,Ft=kt===void 0?!1:kt,Ht=_e.controls,Wt=Ht===void 0?!0:Ht;_e.classNames;var Vt=_e.stringMode,qt=_e.parser,Xt=_e.formatter,Gt=_e.precision,Zt=_e.decimalSeparator,er=_e.onChange,lr=_e.onInput,cr=_e.onPressEnter,ur=_e.onStep,fr=_e.changeOnBlur,hr=fr===void 0?!0:fr,pr=_objectWithoutProperties$2(_e,_excluded$14),dr="".concat(ct,"-input"),yr=reactExports.useRef(null),Sr=reactExports.useState(!1),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useRef(!1),Mr=reactExports.useRef(!1),Or=reactExports.useRef(!1),wr=reactExports.useState(function(){return getMiniDecimal(Tt??wt)}),Cr=_slicedToArray$3(wr,2),Nr=Cr[0],Rr=Cr[1];function Pr(pn){Tt===void 0&&Rr(pn)}var jr=reactExports.useCallback(function(pn,gn){if(!gn)return Gt>=0?Gt:Math.max(getNumberPrecision(pn),getNumberPrecision(_t))},[Gt,_t]),kr=reactExports.useCallback(function(pn){var gn=String(pn);if(qt)return qt(gn);var yn=gn;return Zt&&(yn=yn.replace(Zt,".")),yn.replace(/[^\w.-]+/g,"")},[qt,Zt]),Fr=reactExports.useRef(""),_r=reactExports.useCallback(function(pn,gn){if(Xt)return Xt(pn,{userTyping:gn,input:String(Fr.current)});var yn=typeof pn=="number"?num2str(pn):pn;if(!gn){var _n=jr(yn,gn);if(validateNumber(yn)&&(Zt||_n>=0)){var Tn=Zt||".";yn=toFixed(yn,Tn,_n)}}return yn},[Xt,jr,Zt]),Br=reactExports.useState(function(){var pn=wt??Tt;return Nr.isInvalidate()&&["string","number"].includes(_typeof$e(pn))?Number.isNaN(pn)?"":pn:_r(Nr.toString(),!1)}),Dr=_slicedToArray$3(Br,2),Xr=Dr[0],Kr=Dr[1];Fr.current=Xr;function Hr(pn,gn){Kr(_r(pn.isInvalidate()?pn.toString(!1):pn.toString(!gn),gn))}var Vr=reactExports.useMemo(function(){return getDecimalIfValidate(xt)},[xt,Gt]),ln=reactExports.useMemo(function(){return getDecimalIfValidate(gt)},[gt,Gt]),Qr=reactExports.useMemo(function(){return!Vr||!Nr||Nr.isInvalidate()?!1:Vr.lessEquals(Nr)},[Vr,Nr]),Zr=reactExports.useMemo(function(){return!ln||!Nr||Nr.isInvalidate()?!1:Nr.lessEquals(ln)},[ln,Nr]),vn=useCursor(yr.current,mr),vr=_slicedToArray$3(vn,2),gr=vr[0],$r=vr[1],zr=function(gn){return Vr&&!gn.lessEquals(Vr)?Vr:ln&&!ln.lessEquals(gn)?ln:null},qr=function(gn){return!zr(gn)},Wr=function(gn,yn){var _n=gn,Tn=qr(_n)||_n.isEmpty();if(!_n.isEmpty()&&!yn&&(_n=zr(_n)||_n,Tn=!0),!It&&!Rt&&Tn){var Nn=_n.toString(),On=jr(Nn,yn);return On>=0&&(_n=getMiniDecimal(toFixed(Nn,".",On)),qr(_n)||(_n=getMiniDecimal(toFixed(Nn,".",On,!0)))),_n.equals(Nr)||(Pr(_n),er==null||er(_n.isEmpty()?null:getDecimalValue(Vt,_n)),Tt===void 0&&Hr(_n,yn)),_n}return Nr},Gr=useFrame(),dn=function pn(gn){if(gr(),Fr.current=gn,Kr(gn),!Mr.current){var yn=kr(gn),_n=getMiniDecimal(yn);_n.isNaN()||Wr(_n,!0)}lr==null||lr(gn),Gr(function(){var Tn=gn;qt||(Tn=gn.replace(/。/g,".")),Tn!==gn&&pn(Tn)})},mn=function(){Mr.current=!0},hn=function(){Mr.current=!1,dn(yr.current.value)},Cn=function(gn){dn(gn.target.value)},Rn=function(gn){var yn;if(!(gn&&Qr||!gn&&Zr)){Tr.current=!1;var _n=getMiniDecimal(Or.current?getDecupleSteps(_t):_t);gn||(_n=_n.negate());var Tn=(Nr||getMiniDecimal(0)).add(_n.toString()),Nn=Wr(Tn,!1);ur==null||ur(getDecimalValue(Vt,Nn),{offset:Or.current?getDecupleSteps(_t):_t,type:gn?"up":"down"}),(yn=yr.current)===null||yn===void 0||yn.focus()}},kn=function(gn){var yn=getMiniDecimal(kr(Xr)),_n=yn;yn.isNaN()?_n=Wr(Nr,gn):_n=Wr(yn,gn),Tt!==void 0?Hr(Nr,!1):_n.isNaN()||Hr(_n,!1)},Bn=function(){Tr.current=!0},Yn=function(gn){var yn=gn.key,_n=gn.shiftKey;Tr.current=!0,Or.current=_n,yn==="Enter"&&(Mr.current||(Tr.current=!1),kn(!1),cr==null||cr(gn)),Nt!==!1&&!Mr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(yn)&&(Rn(yn==="Up"||yn==="ArrowUp"),gn.preventDefault())},Gn=function(){Tr.current=!1,Or.current=!1};reactExports.useEffect(function(){if(Ft&&mr){var pn=function(_n){Rn(_n.deltaY<0),_n.preventDefault()},gn=yr.current;if(gn)return gn.addEventListener("wheel",pn,{passive:!1}),function(){return gn.removeEventListener("wheel",pn)}}});var io=function(){hr&&kn(!1),Er(!1),Tr.current=!1};return useLayoutUpdateEffect(function(){Nr.isInvalidate()||Hr(Nr,!1)},[Gt,Xt]),useLayoutUpdateEffect(function(){var pn=getMiniDecimal(Tt);Rr(pn);var gn=getMiniDecimal(kr(Xr));(!pn.equals(gn)||!Tr.current||Xt)&&Hr(pn,Tr.current)},[Tt]),useLayoutUpdateEffect(function(){Xt&&$r()},[Xr]),reactExports.createElement("div",{className:classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-focused"),mr),_defineProperty$c(rt,"".concat(ct,"-disabled"),Rt),_defineProperty$c(rt,"".concat(ct,"-readonly"),It),_defineProperty$c(rt,"".concat(ct,"-not-a-number"),Nr.isNaN()),_defineProperty$c(rt,"".concat(ct,"-out-of-range"),!Nr.isInvalidate()&&!qr(Nr)),rt)),style:ft,onFocus:function(){Er(!0)},onBlur:io,onKeyDown:Yn,onKeyUp:Gn,onCompositionStart:mn,onCompositionEnd:hn,onBeforeInput:Bn},Wt&&reactExports.createElement(StepHandler,{prefixCls:ct,upNode:At,downNode:jt,upDisabled:Qr,downDisabled:Zr,onStep:Rn}),reactExports.createElement("div",{className:"".concat(dr,"-wrap")},reactExports.createElement("input",_extends$b({autoComplete:"off",role:"spinbutton","aria-valuemin":gt,"aria-valuemax":xt,"aria-valuenow":Nr.isInvalidate()?null:Nr.toString(),step:_t},pr,{ref:composeRef(yr,et),className:dr,value:Xr,onChange:Cn,disabled:Rt,readOnly:It}))))}),InputNumber$2=reactExports.forwardRef(function(_e,et){var rt=_e.disabled,st=_e.style,ct=_e.prefixCls,ut=_e.value,ft=_e.prefix,gt=_e.suffix,xt=_e.addonBefore,$t=_e.addonAfter,_t=_e.className,wt=_e.classNames,Tt=_objectWithoutProperties$2(_e,_excluded2$i),Rt=reactExports.useRef(null),It=function(jt){Rt.current&&triggerFocus$1(Rt.current,jt)};return reactExports.createElement(BaseInput,{className:_t,triggerFocus:It,prefixCls:ct,value:ut,disabled:rt,style:st,prefix:ft,suffix:gt,addonAfter:$t,addonBefore:xt,classNames:wt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},reactExports.createElement(InternalInputNumber,_extends$b({prefixCls:ct,disabled:rt,ref:composeRef(Rt,et),className:wt==null?void 0:wt.input},Tt)))});InputNumber$2.displayName="InputNumber";const prepareComponentToken$i=_e=>{var et;const rt=(et=_e.handleVisible)!==null&&et!==void 0?et:"auto";return Object.assign(Object.assign({},initComponentToken$1(_e)),{controlWidth:90,handleWidth:_e.controlHeightSM-_e.lineWidth*2,handleFontSize:_e.fontSize/2,handleVisible:rt,handleActiveBg:_e.colorFillAlter,handleBg:_e.colorBgContainer,filledHandleBg:new TinyColor(_e.colorFillSecondary).onBackground(_e.colorBgContainer).toHexString(),handleHoverColor:_e.colorPrimary,handleBorderColor:_e.colorBorder,handleOpacity:rt===!0?1:0})},genRadiusStyle=(_e,et)=>{let{componentCls:rt,borderRadiusSM:st,borderRadiusLG:ct}=_e;const ut=et==="lg"?ct:st;return{[`&-${et}`]:{[`${rt}-handler-wrap`]:{borderStartEndRadius:ut,borderEndEndRadius:ut},[`${rt}-handler-up`]:{borderStartEndRadius:ut},[`${rt}-handler-down`]:{borderEndEndRadius:ut}}}},genInputNumberStyles=_e=>{const{componentCls:et,lineWidth:rt,lineType:st,borderRadius:ct,fontSizeLG:ut,controlHeightLG:ft,controlHeightSM:gt,colorError:xt,paddingInlineSM:$t,paddingBlockSM:_t,paddingBlockLG:wt,paddingInlineLG:Tt,colorTextDescription:Rt,motionDurationMid:It,handleHoverColor:At,paddingInline:jt,paddingBlock:Nt,handleBg:kt,handleActiveBg:Ft,colorTextDisabled:Ht,borderRadiusSM:Wt,borderRadiusLG:Vt,controlWidth:qt,handleOpacity:Xt,handleBorderColor:Gt,filledHandleBg:Zt,lineHeightLG:er,calc:lr}=_e;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genBasicInputStyle(_e)),{display:"inline-block",width:qt,margin:0,padding:0,borderRadius:ct}),genOutlinedStyle(_e,{[`${et}-handler-wrap`]:{background:kt,[`${et}-handler-down`]:{borderBlockStart:`${unit$1(rt)} ${st} ${Gt}`}}})),genFilledStyle(_e,{[`${et}-handler-wrap`]:{background:Zt,[`${et}-handler-down`]:{borderBlockStart:`${unit$1(rt)} ${st} ${Gt}`}},"&:focus-within":{[`${et}-handler-wrap`]:{background:kt}}})),genBorderlessStyle$1(_e)),{"&-rtl":{direction:"rtl",[`${et}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ut,lineHeight:er,borderRadius:Vt,[`input${et}-input`]:{height:lr(ft).sub(lr(rt).mul(2)).equal(),padding:`${unit$1(wt)} ${unit$1(Tt)}`}},"&-sm":{padding:0,borderRadius:Wt,[`input${et}-input`]:{height:lr(gt).sub(lr(rt).mul(2)).equal(),padding:`${unit$1(_t)} ${unit$1($t)}`}},"&-out-of-range":{[`${et}-input-wrap`]:{input:{color:xt}}},"&-group":Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genInputGroupStyle(_e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${et}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${et}-group-addon`]:{borderRadius:Vt,fontSize:_e.fontSizeLG}},"&-sm":{[`${et}-group-addon`]:{borderRadius:Wt}}},genOutlinedGroupStyle(_e)),genFilledGroupStyle(_e)),{[`&:not(${et}-compact-first-item):not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}, ${et}-group-addon`]:{borderRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-first-item`]:{[`${et}, ${et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${et}-compact-first-item)${et}-compact-last-item`]:{[`${et}, ${et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${et}-input`]:{cursor:"not-allowed"},[et]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{width:"100%",padding:`${unit$1(Nt)} ${unit$1(jt)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ct,outline:0,transition:`all ${It} linear`,appearance:"textfield",fontSize:"inherit"}),genPlaceholderStyle(_e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[et]:Object.assign(Object.assign(Object.assign({[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{opacity:1},[`${et}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:_e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ct,borderEndEndRadius:ct,borderEndStartRadius:0,opacity:Xt,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${It} linear ${It}`,[`${et}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${et}-handler-up-inner, ${et}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:_e.handleFontSize}}},[`${et}-handler`]:{height:"50%",overflow:"hidden",color:Rt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit$1(rt)} ${st} ${Xt}`,transition:`all ${It} linear`,"&:active":{background:Ft},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:_e.handleFontSize}}},[`${et}-handler`]:{height:"50%",overflow:"hidden",color:Rt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit$1(rt)} ${st} ${Gt}`,transition:`all ${It} linear`,"&:active":{background:Ft},"&:hover":{height:"60%",[` ${et}-handler-up-inner, ${et}-handler-down-inner `]:{color:At}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},resetIcon()),{color:Rt,transition:`all ${It} linear`,userSelect:"none"})},[`${et}-handler-up`]:{borderStartEndRadius:ct},[`${et}-handler-down`]:{borderEndEndRadius:ct}},genRadiusStyle(_e,"lg")),genRadiusStyle(_e,"sm")),{"&-disabled, &-readonly":{[`${et}-handler-wrap`]:{display:"none"},[`${et}-input`]:{color:"inherit"}},[` @@ -339,7 +339,7 @@ html body { `]:{cursor:"not-allowed"},[` ${et}-handler-up-disabled:hover &-handler-up-inner, ${et}-handler-down-disabled:hover &-handler-down-inner - `]:{color:Ht}})}]},genAffixWrapperStyles=_e=>{const{componentCls:et,paddingBlock:rt,paddingInline:st,inputAffixPadding:ct,controlWidth:ut,borderRadiusLG:ft,borderRadiusSM:gt,paddingInlineLG:xt,paddingInlineSM:$t,paddingBlockLG:_t,paddingBlockSM:wt}=_e;return{[`${et}-affix-wrapper`]:Object.assign(Object.assign({[`input${et}-input`]:{padding:`${unit$1(rt)} 0`}},genBasicInputStyle(_e)),{position:"relative",display:"inline-flex",width:ut,padding:0,paddingInlineStart:st,"&-lg":{borderRadius:ft,paddingInlineStart:xt,[`input${et}-input`]:{padding:`${unit$1(_t)} 0`}},"&-sm":{borderRadius:gt,paddingInlineStart:$t,[`input${et}-input`]:{padding:`${unit$1(wt)} 0`}},[`&:not(${et}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${et}-disabled`]:{background:"transparent"},[`> div${et}`]:{width:"100%",border:"none",outline:"none",[`&${et}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${et}-handler-wrap`]:{zIndex:2},[et]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ct},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:st,marginInlineStart:ct}}})}},useStyle$z=genStyleHooks("InputNumber",_e=>{const et=merge$7(_e,initInputToken(_e));return[genInputNumberStyles(et),genAffixWrapperStyles(et),genCompactItemStyle(et)]},prepareComponentToken$g,{unitless:{handleOpacity:!0}});var __rest$z=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),ct=reactExports.useRef(null);reactExports.useImperativeHandle(et,()=>ct.current);const{className:ut,rootClassName:ft,size:gt,disabled:xt,prefixCls:$t,addonBefore:_t,addonAfter:wt,prefix:Tt,bordered:Rt,readOnly:It,status:At,controls:jt,variant:Nt}=_e,kt=__rest$z(_e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),Ft=rt("input-number",$t),Ht=useCSSVarCls(Ft),[Wt,Vt,qt]=useStyle$z(Ft,Ht),{compactSize:Gt,compactItemClassnames:Xt}=useCompactItemContext(Ft,st);let Zt=reactExports.createElement(UpOutlined$1,{className:`${Ft}-handler-up-inner`}),lr=reactExports.createElement(DownOutlined$3,{className:`${Ft}-handler-down-inner`});const er=typeof jt=="boolean"?jt:void 0;typeof jt=="object"&&(Zt=typeof jt.upIcon>"u"?Zt:reactExports.createElement("span",{className:`${Ft}-handler-up-inner`},jt.upIcon),lr=typeof jt.downIcon>"u"?lr:reactExports.createElement("span",{className:`${Ft}-handler-down-inner`},jt.downIcon));const{hasFeedback:cr,status:ur,isFormItemInput:pr,feedbackIcon:hr}=reactExports.useContext(FormItemInputContext),fr=getMergedStatus(ur,At),dr=useSize(_r=>{var Cr;return(Cr=gt??Gt)!==null&&Cr!==void 0?Cr:_r}),yr=reactExports.useContext(DisabledContext$2),$r=xt??yr,[Er,mr]=useVariant(Nt,Rt),Sr=cr&&reactExports.createElement(reactExports.Fragment,null,hr),Tr=classNames({[`${Ft}-lg`]:dr==="large",[`${Ft}-sm`]:dr==="small",[`${Ft}-rtl`]:st==="rtl",[`${Ft}-in-form-item`]:pr},Vt),jr=`${Ft}-group`,Or=reactExports.createElement(InputNumber$2,Object.assign({ref:ct,disabled:$r,className:classNames(qt,Ht,ut,ft,Xt),upHandler:Zt,downHandler:lr,prefixCls:Ft,readOnly:It,controls:er,prefix:Tt,suffix:Sr,addonAfter:wt&&reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{override:!0,status:!0},wt)),addonBefore:_t&&reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{override:!0,status:!0},_t)),classNames:{input:Tr,variant:classNames({[`${Ft}-${Er}`]:mr},getStatusClassNames(Ft,fr,cr)),affixWrapper:classNames({[`${Ft}-affix-wrapper-sm`]:dr==="small",[`${Ft}-affix-wrapper-lg`]:dr==="large",[`${Ft}-affix-wrapper-rtl`]:st==="rtl"},Vt),wrapper:classNames({[`${jr}-rtl`]:st==="rtl"},Vt),groupWrapper:classNames({[`${Ft}-group-wrapper-sm`]:dr==="small",[`${Ft}-group-wrapper-lg`]:dr==="large",[`${Ft}-group-wrapper-rtl`]:st==="rtl",[`${Ft}-group-wrapper-${Er}`]:mr},getStatusClassNames(`${Ft}-group-wrapper`,fr,cr),Vt)}},kt));return Wt(Or)}),TypedInputNumber=InputNumber,PureInputNumber=_e=>reactExports.createElement(ConfigProvider$1,{theme:{components:{InputNumber:{handleVisible:!0}}}},reactExports.createElement(InputNumber,Object.assign({},_e)));TypedInputNumber._InternalPanelDoNotUseOrYouWillBeFired=PureInputNumber;const InputNumber$1=TypedInputNumber,ColorSteppers=_e=>{let{prefixCls:et,min:rt=0,max:st=100,value:ct,onChange:ut,className:ft,formatter:gt}=_e;const xt=`${et}-steppers`,[$t,_t]=reactExports.useState(ct);return reactExports.useEffect(()=>{Number.isNaN(ct)||_t(ct)},[ct]),React$1.createElement(InputNumber$1,{className:classNames(xt,ft),min:rt,max:st,value:$t,formatter:gt,size:"small",onChange:wt=>{ct||_t(wt||0),ut==null||ut(wt)}})},ColorSteppers$1=ColorSteppers,ColorAlphaInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-alpha-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=xt=>{const $t=ut.toHsb();$t.a=(xt||0)/100;const _t=generateColor($t);rt||ft(_t),st==null||st(_t)};return React$1.createElement(ColorSteppers$1,{value:getAlphaColor$2(ut),prefixCls:et,formatter:xt=>`${xt}%`,className:ct,onChange:gt})},ColorAlphaInput$1=ColorAlphaInput,Group$3=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct}=_e,ut=et("input-group",st),ft=et("input"),[gt,xt]=useStyle$H(ft),$t=classNames(ut,{[`${ut}-lg`]:_e.size==="large",[`${ut}-sm`]:_e.size==="small",[`${ut}-compact`]:_e.compact,[`${ut}-rtl`]:rt==="rtl"},xt,ct),_t=reactExports.useContext(FormItemInputContext),wt=reactExports.useMemo(()=>Object.assign(Object.assign({},_t),{isFormItemInput:!1}),[_t]);return gt(reactExports.createElement("span",{className:$t,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},reactExports.createElement(FormItemInputContext.Provider,{value:wt},_e.children)))},Group$4=Group$3;function useRemovePasswordTimeout(_e,et){const rt=reactExports.useRef([]),st=()=>{rt.current.push(setTimeout(()=>{var ct,ut,ft,gt;!((ct=_e.current)===null||ct===void 0)&&ct.input&&((ut=_e.current)===null||ut===void 0?void 0:ut.input.getAttribute("type"))==="password"&&(!((ft=_e.current)===null||ft===void 0)&&ft.input.hasAttribute("value"))&&((gt=_e.current)===null||gt===void 0||gt.input.removeAttribute("value"))}))};return reactExports.useEffect(()=>(et&&st(),()=>rt.current.forEach(ct=>{ct&&clearTimeout(ct)})),[]),st}function hasPrefixSuffix(_e){return!!(_e.prefix||_e.suffix||_e.allowClear||_e.showCount)}const getAllowClear=_e=>{let et;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?et=_e:_e&&(et={clearIcon:React$1.createElement(CloseCircleFilled$3,null)}),et};var __rest$y=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct=!0,status:ut,size:ft,disabled:gt,onBlur:xt,onFocus:$t,suffix:_t,allowClear:wt,addonAfter:Tt,addonBefore:Rt,className:It,style:At,styles:jt,rootClassName:Nt,onChange:kt,classNames:Ft,variant:Ht}=_e,Wt=__rest$y(_e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Vt,direction:qt,input:Gt}=React$1.useContext(ConfigContext$1),Xt=Vt("input",st),Zt=reactExports.useRef(null),lr=useCSSVarCls(Xt),[er,cr,ur]=useStyle$H(Xt,lr),{compactSize:pr,compactItemClassnames:hr}=useCompactItemContext(Xt,qt),fr=useSize(kr=>{var Fr;return(Fr=ft??pr)!==null&&Fr!==void 0?Fr:kr}),dr=React$1.useContext(DisabledContext$2),yr=gt??dr,{status:$r,hasFeedback:Er,feedbackIcon:mr}=reactExports.useContext(FormItemInputContext),Sr=getMergedStatus($r,ut),Tr=hasPrefixSuffix(_e)||!!Er;reactExports.useRef(Tr);const jr=useRemovePasswordTimeout(Zt,!0),Or=kr=>{jr(),xt==null||xt(kr)},_r=kr=>{jr(),$t==null||$t(kr)},Cr=kr=>{jr(),kt==null||kt(kr)},Nr=(Er||_t)&&React$1.createElement(React$1.Fragment,null,_t,Er&&mr),Rr=getAllowClear(wt),[Pr,Mr]=useVariant(Ht,ct);return er(React$1.createElement(Input$5,Object.assign({ref:composeRef(et,Zt),prefixCls:Xt,autoComplete:Gt==null?void 0:Gt.autoComplete},Wt,{disabled:yr,onBlur:Or,onFocus:_r,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),At),styles:Object.assign(Object.assign({},Gt==null?void 0:Gt.styles),jt),suffix:Nr,allowClear:Rr,className:classNames(It,Nt,ur,lr,hr,Gt==null?void 0:Gt.className),onChange:Cr,addonAfter:Tt&&React$1.createElement(NoCompactStyle,null,React$1.createElement(NoFormStyle,{override:!0,status:!0},Tt)),addonBefore:Rt&&React$1.createElement(NoCompactStyle,null,React$1.createElement(NoFormStyle,{override:!0,status:!0},Rt)),classNames:Object.assign(Object.assign(Object.assign({},Ft),Gt==null?void 0:Gt.classNames),{input:classNames({[`${Xt}-sm`]:fr==="small",[`${Xt}-lg`]:fr==="large",[`${Xt}-rtl`]:qt==="rtl"},Ft==null?void 0:Ft.input,(rt=Gt==null?void 0:Gt.classNames)===null||rt===void 0?void 0:rt.input,cr),variant:classNames({[`${Xt}-${Pr}`]:Mr},getStatusClassNames(Xt,Sr)),affixWrapper:classNames({[`${Xt}-affix-wrapper-sm`]:fr==="small",[`${Xt}-affix-wrapper-lg`]:fr==="large",[`${Xt}-affix-wrapper-rtl`]:qt==="rtl"},cr),wrapper:classNames({[`${Xt}-group-rtl`]:qt==="rtl"},cr),groupWrapper:classNames({[`${Xt}-group-wrapper-sm`]:fr==="small",[`${Xt}-group-wrapper-lg`]:fr==="large",[`${Xt}-group-wrapper-rtl`]:qt==="rtl",[`${Xt}-group-wrapper-${Pr}`]:Mr},getStatusClassNames(`${Xt}-group-wrapper`,Sr,Er),cr)})})))}),InternalInput=Input$4;var EyeInvisibleOutlined$4={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"};const EyeInvisibleOutlinedSvg=EyeInvisibleOutlined$4;var EyeInvisibleOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EyeInvisibleOutlinedSvg}))};const EyeInvisibleOutlined$3=reactExports.forwardRef(EyeInvisibleOutlined$2);var EyeOutlined$4={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"};const EyeOutlinedSvg=EyeOutlined$4;var EyeOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EyeOutlinedSvg}))};const EyeOutlined$3=reactExports.forwardRef(EyeOutlined$2);var __rest$x=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct_e?reactExports.createElement(EyeOutlined$3,null):reactExports.createElement(EyeInvisibleOutlined$3,null),actionMap={click:"onClick",hover:"onMouseOver"},Password$1=reactExports.forwardRef((_e,et)=>{const{visibilityToggle:rt=!0}=_e,st=typeof rt=="object"&&rt.visible!==void 0,[ct,ut]=reactExports.useState(()=>st?rt.visible:!1),ft=reactExports.useRef(null);reactExports.useEffect(()=>{st&&ut(rt.visible)},[st,rt]);const gt=useRemovePasswordTimeout(ft),xt=()=>{const{disabled:Wt}=_e;Wt||(ct&>(),ut(Vt=>{var qt;const Gt=!Vt;return typeof rt=="object"&&((qt=rt.onVisibleChange)===null||qt===void 0||qt.call(rt,Gt)),Gt}))},$t=Wt=>{const{action:Vt="click",iconRender:qt=defaultIconRender}=_e,Gt=actionMap[Vt]||"",Xt=qt(ct),Zt={[Gt]:xt,className:`${Wt}-icon`,key:"passwordIcon",onMouseDown:lr=>{lr.preventDefault()},onMouseUp:lr=>{lr.preventDefault()}};return reactExports.cloneElement(reactExports.isValidElement(Xt)?Xt:reactExports.createElement("span",null,Xt),Zt)},{className:_t,prefixCls:wt,inputPrefixCls:Tt,size:Rt}=_e,It=__rest$x(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),jt=At("input",Tt),Nt=At("input-password",wt),kt=rt&&$t(Nt),Ft=classNames(Nt,_t,{[`${Nt}-${Rt}`]:!!Rt}),Ht=Object.assign(Object.assign({},omit$2(It,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:Ft,prefixCls:jt,suffix:kt});return Rt&&(Ht.size=Rt),reactExports.createElement(InternalInput,Object.assign({ref:composeRef(et,ft)},Ht))}),Password$2=Password$1;var __rest$w=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,inputPrefixCls:st,className:ct,size:ut,suffix:ft,enterButton:gt=!1,addonAfter:xt,loading:$t,disabled:_t,onSearch:wt,onChange:Tt,onCompositionStart:Rt,onCompositionEnd:It}=_e,At=__rest$w(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:jt,direction:Nt}=reactExports.useContext(ConfigContext$1),kt=reactExports.useRef(!1),Ft=jt("input-search",rt),Ht=jt("input",st),{compactSize:Wt}=useCompactItemContext(Ft,Nt),Vt=useSize($r=>{var Er;return(Er=ut??Wt)!==null&&Er!==void 0?Er:$r}),qt=reactExports.useRef(null),Gt=$r=>{$r&&$r.target&&$r.type==="click"&&wt&&wt($r.target.value,$r,{source:"clear"}),Tt&&Tt($r)},Xt=$r=>{var Er;document.activeElement===((Er=qt.current)===null||Er===void 0?void 0:Er.input)&&$r.preventDefault()},Zt=$r=>{var Er,mr;wt&&wt((mr=(Er=qt.current)===null||Er===void 0?void 0:Er.input)===null||mr===void 0?void 0:mr.value,$r,{source:"input"})},lr=$r=>{kt.current||$t||Zt($r)},er=typeof gt=="boolean"?reactExports.createElement(SearchOutlined$3,null):null,cr=`${Ft}-button`;let ur;const pr=gt||{},hr=pr.type&&pr.type.__ANT_BUTTON===!0;hr||pr.type==="button"?ur=cloneElement(pr,Object.assign({onMouseDown:Xt,onClick:$r=>{var Er,mr;(mr=(Er=pr==null?void 0:pr.props)===null||Er===void 0?void 0:Er.onClick)===null||mr===void 0||mr.call(Er,$r),Zt($r)},key:"enterButton"},hr?{className:cr,size:Vt}:{})):ur=reactExports.createElement(Button$3,{className:cr,type:gt?"primary":void 0,size:Vt,disabled:_t,key:"enterButton",onMouseDown:Xt,onClick:Zt,loading:$t,icon:er},gt),xt&&(ur=[ur,cloneElement(xt,{key:"addonAfter"})]);const fr=classNames(Ft,{[`${Ft}-rtl`]:Nt==="rtl",[`${Ft}-${Vt}`]:!!Vt,[`${Ft}-with-button`]:!!gt},ct),dr=$r=>{kt.current=!0,Rt==null||Rt($r)},yr=$r=>{kt.current=!1,It==null||It($r)};return reactExports.createElement(InternalInput,Object.assign({ref:composeRef(qt,et),onPressEnter:lr},At,{size:Vt,onCompositionStart:dr,onCompositionEnd:yr,prefixCls:Ht,addonAfter:ur,suffix:ft,onChange:Gt,className:fr,disabled:_t}))}),Search$1=Search;var HIDDEN_TEXTAREA_STYLE=` + `]:{color:Ht}})}]},genAffixWrapperStyles=_e=>{const{componentCls:et,paddingBlock:rt,paddingInline:st,inputAffixPadding:ct,controlWidth:ut,borderRadiusLG:ft,borderRadiusSM:gt,paddingInlineLG:xt,paddingInlineSM:$t,paddingBlockLG:_t,paddingBlockSM:wt}=_e;return{[`${et}-affix-wrapper`]:Object.assign(Object.assign({[`input${et}-input`]:{padding:`${unit$1(rt)} 0`}},genBasicInputStyle(_e)),{position:"relative",display:"inline-flex",width:ut,padding:0,paddingInlineStart:st,"&-lg":{borderRadius:ft,paddingInlineStart:xt,[`input${et}-input`]:{padding:`${unit$1(_t)} 0`}},"&-sm":{borderRadius:gt,paddingInlineStart:$t,[`input${et}-input`]:{padding:`${unit$1(wt)} 0`}},[`&:not(${et}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${et}-disabled`]:{background:"transparent"},[`> div${et}`]:{width:"100%",border:"none",outline:"none",[`&${et}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${et}-handler-wrap`]:{zIndex:2},[et]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ct},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:st,marginInlineStart:ct}}})}},useStyle$B=genStyleHooks("InputNumber",_e=>{const et=merge$7(_e,initInputToken(_e));return[genInputNumberStyles(et),genAffixWrapperStyles(et),genCompactItemStyle(et)]},prepareComponentToken$i,{unitless:{handleOpacity:!0}});var __rest$D=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{getPrefixCls:rt,direction:st}=reactExports.useContext(ConfigContext$1),ct=reactExports.useRef(null);reactExports.useImperativeHandle(et,()=>ct.current);const{className:ut,rootClassName:ft,size:gt,disabled:xt,prefixCls:$t,addonBefore:_t,addonAfter:wt,prefix:Tt,bordered:Rt,readOnly:It,status:At,controls:jt,variant:Nt}=_e,kt=__rest$D(_e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),Ft=rt("input-number",$t),Ht=useCSSVarCls(Ft),[Wt,Vt,qt]=useStyle$B(Ft,Ht),{compactSize:Xt,compactItemClassnames:Gt}=useCompactItemContext(Ft,st);let Zt=reactExports.createElement(UpOutlined$1,{className:`${Ft}-handler-up-inner`}),er=reactExports.createElement(DownOutlined$3,{className:`${Ft}-handler-down-inner`});const lr=typeof jt=="boolean"?jt:void 0;typeof jt=="object"&&(Zt=typeof jt.upIcon>"u"?Zt:reactExports.createElement("span",{className:`${Ft}-handler-up-inner`},jt.upIcon),er=typeof jt.downIcon>"u"?er:reactExports.createElement("span",{className:`${Ft}-handler-down-inner`},jt.downIcon));const{hasFeedback:cr,status:ur,isFormItemInput:fr,feedbackIcon:hr}=reactExports.useContext(FormItemInputContext),pr=getMergedStatus(ur,At),dr=useSize(wr=>{var Cr;return(Cr=gt??Xt)!==null&&Cr!==void 0?Cr:wr}),yr=reactExports.useContext(DisabledContext$2),Sr=xt??yr,[br,mr]=useVariant(Nt,Rt),Er=cr&&reactExports.createElement(reactExports.Fragment,null,hr),Tr=classNames({[`${Ft}-lg`]:dr==="large",[`${Ft}-sm`]:dr==="small",[`${Ft}-rtl`]:st==="rtl",[`${Ft}-in-form-item`]:fr},Vt),Mr=`${Ft}-group`,Or=reactExports.createElement(InputNumber$2,Object.assign({ref:ct,disabled:Sr,className:classNames(qt,Ht,ut,ft,Gt),upHandler:Zt,downHandler:er,prefixCls:Ft,readOnly:It,controls:lr,prefix:Tt,suffix:Er,addonAfter:wt&&reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{override:!0,status:!0},wt)),addonBefore:_t&&reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{override:!0,status:!0},_t)),classNames:{input:Tr,variant:classNames({[`${Ft}-${br}`]:mr},getStatusClassNames(Ft,pr,cr)),affixWrapper:classNames({[`${Ft}-affix-wrapper-sm`]:dr==="small",[`${Ft}-affix-wrapper-lg`]:dr==="large",[`${Ft}-affix-wrapper-rtl`]:st==="rtl"},Vt),wrapper:classNames({[`${Mr}-rtl`]:st==="rtl"},Vt),groupWrapper:classNames({[`${Ft}-group-wrapper-sm`]:dr==="small",[`${Ft}-group-wrapper-lg`]:dr==="large",[`${Ft}-group-wrapper-rtl`]:st==="rtl",[`${Ft}-group-wrapper-${br}`]:mr},getStatusClassNames(`${Ft}-group-wrapper`,pr,cr),Vt)}},kt));return Wt(Or)}),TypedInputNumber=InputNumber,PureInputNumber=_e=>reactExports.createElement(ConfigProvider$1,{theme:{components:{InputNumber:{handleVisible:!0}}}},reactExports.createElement(InputNumber,Object.assign({},_e)));TypedInputNumber._InternalPanelDoNotUseOrYouWillBeFired=PureInputNumber;const InputNumber$1=TypedInputNumber,ColorSteppers=_e=>{let{prefixCls:et,min:rt=0,max:st=100,value:ct,onChange:ut,className:ft,formatter:gt}=_e;const xt=`${et}-steppers`,[$t,_t]=reactExports.useState(ct);return reactExports.useEffect(()=>{Number.isNaN(ct)||_t(ct)},[ct]),React$1.createElement(InputNumber$1,{className:classNames(xt,ft),min:rt,max:st,value:$t,formatter:gt,size:"small",onChange:wt=>{ct||_t(wt||0),ut==null||ut(wt)}})},ColorSteppers$1=ColorSteppers,ColorAlphaInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-alpha-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=xt=>{const $t=ut.toHsb();$t.a=(xt||0)/100;const _t=generateColor($t);rt||ft(_t),st==null||st(_t)};return React$1.createElement(ColorSteppers$1,{value:getAlphaColor$2(ut),prefixCls:et,formatter:xt=>`${xt}%`,className:ct,onChange:gt})},ColorAlphaInput$1=ColorAlphaInput,Group$3=_e=>{const{getPrefixCls:et,direction:rt}=reactExports.useContext(ConfigContext$1),{prefixCls:st,className:ct}=_e,ut=et("input-group",st),ft=et("input"),[gt,xt]=useStyle$J(ft),$t=classNames(ut,{[`${ut}-lg`]:_e.size==="large",[`${ut}-sm`]:_e.size==="small",[`${ut}-compact`]:_e.compact,[`${ut}-rtl`]:rt==="rtl"},xt,ct),_t=reactExports.useContext(FormItemInputContext),wt=reactExports.useMemo(()=>Object.assign(Object.assign({},_t),{isFormItemInput:!1}),[_t]);return gt(reactExports.createElement("span",{className:$t,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},reactExports.createElement(FormItemInputContext.Provider,{value:wt},_e.children)))},Group$4=Group$3;function useRemovePasswordTimeout(_e,et){const rt=reactExports.useRef([]),st=()=>{rt.current.push(setTimeout(()=>{var ct,ut,ft,gt;!((ct=_e.current)===null||ct===void 0)&&ct.input&&((ut=_e.current)===null||ut===void 0?void 0:ut.input.getAttribute("type"))==="password"&&(!((ft=_e.current)===null||ft===void 0)&&ft.input.hasAttribute("value"))&&((gt=_e.current)===null||gt===void 0||gt.input.removeAttribute("value"))}))};return reactExports.useEffect(()=>(et&&st(),()=>rt.current.forEach(ct=>{ct&&clearTimeout(ct)})),[]),st}function hasPrefixSuffix(_e){return!!(_e.prefix||_e.suffix||_e.allowClear||_e.showCount)}const getAllowClear=_e=>{let et;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?et=_e:_e&&(et={clearIcon:React$1.createElement(CloseCircleFilled$3,null)}),et};var __rest$C=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct=!0,status:ut,size:ft,disabled:gt,onBlur:xt,onFocus:$t,suffix:_t,allowClear:wt,addonAfter:Tt,addonBefore:Rt,className:It,style:At,styles:jt,rootClassName:Nt,onChange:kt,classNames:Ft,variant:Ht}=_e,Wt=__rest$C(_e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Vt,direction:qt,input:Xt}=React$1.useContext(ConfigContext$1),Gt=Vt("input",st),Zt=reactExports.useRef(null),er=useCSSVarCls(Gt),[lr,cr,ur]=useStyle$J(Gt,er),{compactSize:fr,compactItemClassnames:hr}=useCompactItemContext(Gt,qt),pr=useSize(kr=>{var Fr;return(Fr=ft??fr)!==null&&Fr!==void 0?Fr:kr}),dr=React$1.useContext(DisabledContext$2),yr=gt??dr,{status:Sr,hasFeedback:br,feedbackIcon:mr}=reactExports.useContext(FormItemInputContext),Er=getMergedStatus(Sr,ut),Tr=hasPrefixSuffix(_e)||!!br;reactExports.useRef(Tr);const Mr=useRemovePasswordTimeout(Zt,!0),Or=kr=>{Mr(),xt==null||xt(kr)},wr=kr=>{Mr(),$t==null||$t(kr)},Cr=kr=>{Mr(),kt==null||kt(kr)},Nr=(br||_t)&&React$1.createElement(React$1.Fragment,null,_t,br&&mr),Rr=getAllowClear(wt),[Pr,jr]=useVariant(Ht,ct);return lr(React$1.createElement(Input$5,Object.assign({ref:composeRef(et,Zt),prefixCls:Gt,autoComplete:Xt==null?void 0:Xt.autoComplete},Wt,{disabled:yr,onBlur:Or,onFocus:wr,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),At),styles:Object.assign(Object.assign({},Xt==null?void 0:Xt.styles),jt),suffix:Nr,allowClear:Rr,className:classNames(It,Nt,ur,er,hr,Xt==null?void 0:Xt.className),onChange:Cr,addonAfter:Tt&&React$1.createElement(NoCompactStyle,null,React$1.createElement(NoFormStyle,{override:!0,status:!0},Tt)),addonBefore:Rt&&React$1.createElement(NoCompactStyle,null,React$1.createElement(NoFormStyle,{override:!0,status:!0},Rt)),classNames:Object.assign(Object.assign(Object.assign({},Ft),Xt==null?void 0:Xt.classNames),{input:classNames({[`${Gt}-sm`]:pr==="small",[`${Gt}-lg`]:pr==="large",[`${Gt}-rtl`]:qt==="rtl"},Ft==null?void 0:Ft.input,(rt=Xt==null?void 0:Xt.classNames)===null||rt===void 0?void 0:rt.input,cr),variant:classNames({[`${Gt}-${Pr}`]:jr},getStatusClassNames(Gt,Er)),affixWrapper:classNames({[`${Gt}-affix-wrapper-sm`]:pr==="small",[`${Gt}-affix-wrapper-lg`]:pr==="large",[`${Gt}-affix-wrapper-rtl`]:qt==="rtl"},cr),wrapper:classNames({[`${Gt}-group-rtl`]:qt==="rtl"},cr),groupWrapper:classNames({[`${Gt}-group-wrapper-sm`]:pr==="small",[`${Gt}-group-wrapper-lg`]:pr==="large",[`${Gt}-group-wrapper-rtl`]:qt==="rtl",[`${Gt}-group-wrapper-${Pr}`]:jr},getStatusClassNames(`${Gt}-group-wrapper`,Er,br),cr)})})))}),InternalInput=Input$4;var EyeInvisibleOutlined$4={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"};const EyeInvisibleOutlinedSvg=EyeInvisibleOutlined$4;var EyeInvisibleOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EyeInvisibleOutlinedSvg}))};const EyeInvisibleOutlined$3=reactExports.forwardRef(EyeInvisibleOutlined$2);var EyeOutlined$4={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"};const EyeOutlinedSvg=EyeOutlined$4;var EyeOutlined$2=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:EyeOutlinedSvg}))};const EyeOutlined$3=reactExports.forwardRef(EyeOutlined$2);var __rest$B=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct_e?reactExports.createElement(EyeOutlined$3,null):reactExports.createElement(EyeInvisibleOutlined$3,null),actionMap={click:"onClick",hover:"onMouseOver"},Password$1=reactExports.forwardRef((_e,et)=>{const{visibilityToggle:rt=!0}=_e,st=typeof rt=="object"&&rt.visible!==void 0,[ct,ut]=reactExports.useState(()=>st?rt.visible:!1),ft=reactExports.useRef(null);reactExports.useEffect(()=>{st&&ut(rt.visible)},[st,rt]);const gt=useRemovePasswordTimeout(ft),xt=()=>{const{disabled:Wt}=_e;Wt||(ct&>(),ut(Vt=>{var qt;const Xt=!Vt;return typeof rt=="object"&&((qt=rt.onVisibleChange)===null||qt===void 0||qt.call(rt,Xt)),Xt}))},$t=Wt=>{const{action:Vt="click",iconRender:qt=defaultIconRender}=_e,Xt=actionMap[Vt]||"",Gt=qt(ct),Zt={[Xt]:xt,className:`${Wt}-icon`,key:"passwordIcon",onMouseDown:er=>{er.preventDefault()},onMouseUp:er=>{er.preventDefault()}};return reactExports.cloneElement(reactExports.isValidElement(Gt)?Gt:reactExports.createElement("span",null,Gt),Zt)},{className:_t,prefixCls:wt,inputPrefixCls:Tt,size:Rt}=_e,It=__rest$B(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),jt=At("input",Tt),Nt=At("input-password",wt),kt=rt&&$t(Nt),Ft=classNames(Nt,_t,{[`${Nt}-${Rt}`]:!!Rt}),Ht=Object.assign(Object.assign({},omit$2(It,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:Ft,prefixCls:jt,suffix:kt});return Rt&&(Ht.size=Rt),reactExports.createElement(InternalInput,Object.assign({ref:composeRef(et,ft)},Ht))}),Password$2=Password$1;var __rest$A=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,inputPrefixCls:st,className:ct,size:ut,suffix:ft,enterButton:gt=!1,addonAfter:xt,loading:$t,disabled:_t,onSearch:wt,onChange:Tt,onCompositionStart:Rt,onCompositionEnd:It}=_e,At=__rest$A(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:jt,direction:Nt}=reactExports.useContext(ConfigContext$1),kt=reactExports.useRef(!1),Ft=jt("input-search",rt),Ht=jt("input",st),{compactSize:Wt}=useCompactItemContext(Ft,Nt),Vt=useSize(Sr=>{var br;return(br=ut??Wt)!==null&&br!==void 0?br:Sr}),qt=reactExports.useRef(null),Xt=Sr=>{Sr&&Sr.target&&Sr.type==="click"&&wt&&wt(Sr.target.value,Sr,{source:"clear"}),Tt&&Tt(Sr)},Gt=Sr=>{var br;document.activeElement===((br=qt.current)===null||br===void 0?void 0:br.input)&&Sr.preventDefault()},Zt=Sr=>{var br,mr;wt&&wt((mr=(br=qt.current)===null||br===void 0?void 0:br.input)===null||mr===void 0?void 0:mr.value,Sr,{source:"input"})},er=Sr=>{kt.current||$t||Zt(Sr)},lr=typeof gt=="boolean"?reactExports.createElement(SearchOutlined$3,null):null,cr=`${Ft}-button`;let ur;const fr=gt||{},hr=fr.type&&fr.type.__ANT_BUTTON===!0;hr||fr.type==="button"?ur=cloneElement(fr,Object.assign({onMouseDown:Gt,onClick:Sr=>{var br,mr;(mr=(br=fr==null?void 0:fr.props)===null||br===void 0?void 0:br.onClick)===null||mr===void 0||mr.call(br,Sr),Zt(Sr)},key:"enterButton"},hr?{className:cr,size:Vt}:{})):ur=reactExports.createElement(Button$3,{className:cr,type:gt?"primary":void 0,size:Vt,disabled:_t,key:"enterButton",onMouseDown:Gt,onClick:Zt,loading:$t,icon:lr},gt),xt&&(ur=[ur,cloneElement(xt,{key:"addonAfter"})]);const pr=classNames(Ft,{[`${Ft}-rtl`]:Nt==="rtl",[`${Ft}-${Vt}`]:!!Vt,[`${Ft}-with-button`]:!!gt},ct),dr=Sr=>{kt.current=!0,Rt==null||Rt(Sr)},yr=Sr=>{kt.current=!1,It==null||It(Sr)};return reactExports.createElement(InternalInput,Object.assign({ref:composeRef(qt,et),onPressEnter:er},At,{size:Vt,onCompositionStart:dr,onCompositionEnd:yr,prefixCls:Ht,addonAfter:ur,suffix:ft,onChange:Xt,className:pr,disabled:_t}))}),Search$1=Search;var HIDDEN_TEXTAREA_STYLE=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -350,13 +350,28 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,SIZING_STYLE=["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"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=_e.getAttribute("id")||_e.getAttribute("data-reactid")||_e.getAttribute("name");if(et&&computedStyleCache[rt])return computedStyleCache[rt];var st=window.getComputedStyle(_e),ct=st.getPropertyValue("box-sizing")||st.getPropertyValue("-moz-box-sizing")||st.getPropertyValue("-webkit-box-sizing"),ut=parseFloat(st.getPropertyValue("padding-bottom"))+parseFloat(st.getPropertyValue("padding-top")),ft=parseFloat(st.getPropertyValue("border-bottom-width"))+parseFloat(st.getPropertyValue("border-top-width")),gt=SIZING_STYLE.map(function($t){return"".concat($t,":").concat(st.getPropertyValue($t))}).join(";"),xt={sizingStyle:gt,paddingSize:ut,borderSize:ft,boxSizing:ct};return et&&rt&&(computedStyleCache[rt]=xt),xt}function calculateAutoSizeStyle(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),_e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",_e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var ct=calculateNodeStyling(_e,et),ut=ct.paddingSize,ft=ct.borderSize,gt=ct.boxSizing,xt=ct.sizingStyle;hiddenTextarea.setAttribute("style","".concat(xt,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=_e.value||_e.placeholder||"";var $t=void 0,_t=void 0,wt,Tt=hiddenTextarea.scrollHeight;if(gt==="border-box"?Tt+=ft:gt==="content-box"&&(Tt-=ut),rt!==null||st!==null){hiddenTextarea.value=" ";var Rt=hiddenTextarea.scrollHeight-ut;rt!==null&&($t=Rt*rt,gt==="border-box"&&($t=$t+ut+ft),Tt=Math.max($t,Tt)),st!==null&&(_t=Rt*st,gt==="border-box"&&(_t=_t+ut+ft),wt=Tt>_t?"":"hidden",Tt=Math.min(_t,Tt))}var It={height:Tt,overflowY:wt,resize:"none"};return $t&&(It.minHeight=$t),_t&&(It.maxHeight=_t),It}var _excluded$13=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RESIZE_START=0,RESIZE_MEASURING=1,RESIZE_STABLE=2,ResizableTextArea=reactExports.forwardRef(function(_e,et){var rt=_e,st=rt.prefixCls;rt.onPressEnter;var ct=rt.defaultValue,ut=rt.value,ft=rt.autoSize,gt=rt.onResize,xt=rt.className,$t=rt.style,_t=rt.disabled,wt=rt.onChange;rt.onInternalAutoSize;var Tt=_objectWithoutProperties$2(rt,_excluded$13),Rt=useMergedState(ct,{value:ut,postState:function(Tr){return Tr??""}}),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=function(Tr){jt(Tr.target.value),wt==null||wt(Tr)},kt=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return{textArea:kt.current}});var Ft=reactExports.useMemo(function(){return ft&&_typeof$e(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=!!ft,Gt=function(){try{if(document.activeElement===kt.current){var Tr=kt.current,jr=Tr.selectionStart,Or=Tr.selectionEnd,_r=Tr.scrollTop;kt.current.setSelectionRange(jr,Or),kt.current.scrollTop=_r}}catch{}},Xt=reactExports.useState(RESIZE_STABLE),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=reactExports.useState(),ur=_slicedToArray$3(cr,2),pr=ur[0],hr=ur[1],fr=function(){er(RESIZE_START)};useLayoutEffect$3(function(){qt&&fr()},[ut,Wt,Vt,qt]),useLayoutEffect$3(function(){if(lr===RESIZE_START)er(RESIZE_MEASURING);else if(lr===RESIZE_MEASURING){var Sr=calculateAutoSizeStyle(kt.current,!1,Wt,Vt);er(RESIZE_STABLE),hr(Sr)}else Gt()},[lr]);var dr=reactExports.useRef(),yr=function(){wrapperRaf.cancel(dr.current)},$r=function(Tr){lr===RESIZE_STABLE&&(gt==null||gt(Tr),ft&&(yr(),dr.current=wrapperRaf(function(){fr()})))};reactExports.useEffect(function(){return yr},[]);var Er=qt?pr:null,mr=_objectSpread2(_objectSpread2({},$t),Er);return(lr===RESIZE_START||lr===RESIZE_MEASURING)&&(mr.overflowY="hidden",mr.overflowX="hidden"),reactExports.createElement(RefResizeObserver,{onResize:$r,disabled:!(ft||gt)},reactExports.createElement("textarea",_extends$b({},Tt,{ref:kt,style:mr,className:classNames(st,xt,_defineProperty$c({},"".concat(st,"-disabled"),_t)),disabled:_t,value:At,onChange:Nt})))}),_excluded$12=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],TextArea$2=React$1.forwardRef(function(_e,et){var rt,st,ct=_e.defaultValue,ut=_e.value,ft=_e.onFocus,gt=_e.onBlur,xt=_e.onChange,$t=_e.allowClear,_t=_e.maxLength,wt=_e.onCompositionStart,Tt=_e.onCompositionEnd,Rt=_e.suffix,It=_e.prefixCls,At=It===void 0?"rc-textarea":It,jt=_e.showCount,Nt=_e.count,kt=_e.className,Ft=_e.style,Ht=_e.disabled,Wt=_e.hidden,Vt=_e.classNames,qt=_e.styles,Gt=_e.onResize,Xt=_objectWithoutProperties$2(_e,_excluded$12),Zt=useMergedState(ct,{value:ut,defaultValue:ct}),lr=_slicedToArray$3(Zt,2),er=lr[0],cr=lr[1],ur=er==null?"":String(er),pr=React$1.useState(!1),hr=_slicedToArray$3(pr,2),fr=hr[0],dr=hr[1],yr=React$1.useRef(!1),$r=React$1.useState(null),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useRef(null),jr=function(){var Hr;return(Hr=Tr.current)===null||Hr===void 0?void 0:Hr.textArea},Or=function(){jr().focus()};reactExports.useImperativeHandle(et,function(){return{resizableTextArea:Tr.current,focus:Or,blur:function(){jr().blur()}}}),reactExports.useEffect(function(){dr(function(br){return!Ht&&br})},[Ht]);var _r=React$1.useState(null),Cr=_slicedToArray$3(_r,2),Nr=Cr[0],Rr=Cr[1];React$1.useEffect(function(){if(Nr){var br;(br=jr()).setSelectionRange.apply(br,_toConsumableArray$3(Nr))}},[Nr]);var Pr=useCount(Nt,jt),Mr=(rt=Pr.max)!==null&&rt!==void 0?rt:_t,kr=Number(Mr)>0,Fr=Pr.strategy(ur),wr=!!Mr&&Fr>Mr,Br=function(Hr,Vr){var Wr=Vr;!yr.current&&Pr.exceedFormatter&&Pr.max&&Pr.strategy(Vr)>Pr.max&&(Wr=Pr.exceedFormatter(Vr,{max:Pr.max}),Vr!==Wr&&Rr([jr().selectionStart||0,jr().selectionEnd||0])),cr(Wr),resolveOnChange(Hr.currentTarget,Hr,xt,Wr)},Dr=function(Hr){yr.current=!0,wt==null||wt(Hr)},Xr=function(Hr){yr.current=!1,Br(Hr,Hr.currentTarget.value),Tt==null||Tt(Hr)},Kr=function(Hr){Br(Hr,Hr.target.value)},zr=function(Hr){var Vr=Xt.onPressEnter,Wr=Xt.onKeyDown;Hr.key==="Enter"&&Vr&&Vr(Hr),Wr==null||Wr(Hr)},qr=function(Hr){dr(!0),ft==null||ft(Hr)},pn=function(Hr){dr(!1),gt==null||gt(Hr)},Qr=function(Hr){cr(""),Or(),resolveOnChange(jr(),Hr,xt)},Zr=Rt,vn;Pr.show&&(Pr.showFormatter?vn=Pr.showFormatter({value:ur,count:Fr,maxLength:Mr}):vn="".concat(Fr).concat(kr?" / ".concat(Mr):""),Zr=React$1.createElement(React$1.Fragment,null,Zr,React$1.createElement("span",{className:classNames("".concat(At,"-data-count"),Vt==null?void 0:Vt.count),style:qt==null?void 0:qt.count},vn)));var vr=function(Hr){var Vr;Gt==null||Gt(Hr),(Vr=jr())!==null&&Vr!==void 0&&Vr.style.height&&Sr(!0)},gr=!Xt.autoSize&&!jt&&!$t;return React$1.createElement(BaseInput,{value:ur,allowClear:$t,handleReset:Qr,suffix:Zr,prefixCls:At,classNames:_objectSpread2(_objectSpread2({},Vt),{},{affixWrapper:classNames(Vt==null?void 0:Vt.affixWrapper,(st={},_defineProperty$c(st,"".concat(At,"-show-count"),jt),_defineProperty$c(st,"".concat(At,"-textarea-allow-clear"),$t),st))}),disabled:Ht,focused:fr,className:classNames(kt,wr&&"".concat(At,"-out-of-range")),style:_objectSpread2(_objectSpread2({},Ft),mr&&!gr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vn=="string"?vn:void 0}},hidden:Wt},React$1.createElement(ResizableTextArea,_extends$b({},Xt,{maxLength:_t,onKeyDown:zr,onChange:Kr,onFocus:qr,onBlur:pn,onCompositionStart:Dr,onCompositionEnd:Xr,className:classNames(Vt==null?void 0:Vt.textarea),style:_objectSpread2(_objectSpread2({},qt==null?void 0:qt.textarea),{},{resize:Ft==null?void 0:Ft.resize}),disabled:Ht,prefixCls:At,onResize:vr,ref:Tr})))}),__rest$v=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct=!0,size:ut,disabled:ft,status:gt,allowClear:xt,classNames:$t,rootClassName:_t,className:wt,variant:Tt}=_e,Rt=__rest$v(_e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:It,direction:At}=reactExports.useContext(ConfigContext$1),jt=useSize(ut),Nt=reactExports.useContext(DisabledContext$2),kt=ft??Nt,{status:Ft,hasFeedback:Ht,feedbackIcon:Wt}=reactExports.useContext(FormItemInputContext),Vt=getMergedStatus(Ft,gt),qt=reactExports.useRef(null);reactExports.useImperativeHandle(et,()=>{var hr;return{resizableTextArea:(hr=qt.current)===null||hr===void 0?void 0:hr.resizableTextArea,focus:fr=>{var dr,yr;triggerFocus((yr=(dr=qt.current)===null||dr===void 0?void 0:dr.resizableTextArea)===null||yr===void 0?void 0:yr.textArea,fr)},blur:()=>{var fr;return(fr=qt.current)===null||fr===void 0?void 0:fr.blur()}}});const Gt=It("input",st);let Xt;typeof xt=="object"&&(xt!=null&&xt.clearIcon)?Xt=xt:xt&&(Xt={clearIcon:reactExports.createElement(CloseCircleFilled$3,null)});const Zt=useCSSVarCls(Gt),[lr,er,cr]=useStyle$H(Gt,Zt),[ur,pr]=useVariant(Tt,ct);return lr(reactExports.createElement(TextArea$2,Object.assign({},Rt,{disabled:kt,allowClear:Xt,className:classNames(cr,Zt,wt,_t),classNames:Object.assign(Object.assign({},$t),{textarea:classNames({[`${Gt}-sm`]:jt==="small",[`${Gt}-lg`]:jt==="large"},er,$t==null?void 0:$t.textarea),variant:classNames({[`${Gt}-${ur}`]:pr},getStatusClassNames(Gt,Vt)),affixWrapper:classNames(`${Gt}-textarea-affix-wrapper`,{[`${Gt}-affix-wrapper-rtl`]:At==="rtl",[`${Gt}-affix-wrapper-sm`]:jt==="small",[`${Gt}-affix-wrapper-lg`]:jt==="large",[`${Gt}-textarea-show-count`]:_e.showCount||((rt=_e.count)===null||rt===void 0?void 0:rt.show)},er)}),prefixCls:Gt,suffix:Ht&&reactExports.createElement("span",{className:`${Gt}-textarea-suffix`},Wt),ref:qt})))}),TextArea$1=TextArea,Input$2=InternalInput;Input$2.Group=Group$4;Input$2.Search=Search$1;Input$2.TextArea=TextArea$1;Input$2.Password=Password$2;const Input$3=Input$2,hexReg=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,isHexString=_e=>hexReg.test(`#${_e}`),ColorHexInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-hex-input`,[ut,ft]=reactExports.useState(rt==null?void 0:rt.toHex());reactExports.useEffect(()=>{const xt=rt==null?void 0:rt.toHex();isHexString(xt)&&rt&&ft(toHexFormat(xt))},[rt]);const gt=xt=>{const $t=xt.target.value;ft(toHexFormat($t)),isHexString(toHexFormat($t,!0))&&(st==null||st(generateColor($t)))};return React$1.createElement(Input$3,{className:ct,value:ut,prefix:"#",onChange:gt,size:"small"})},ColorHexInput$1=ColorHexInput,ColorHsbInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-hsb-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=(xt,$t)=>{const _t=ut.toHsb();_t[$t]=$t==="h"?xt:(xt||0)/100;const wt=generateColor(_t);rt||ft(wt),st==null||st(wt)};return React$1.createElement("div",{className:ct},React$1.createElement(ColorSteppers$1,{max:360,min:0,value:Number(ut.toHsb().h),prefixCls:et,className:ct,formatter:xt=>getRoundNumber(xt||0).toString(),onChange:xt=>gt(Number(xt),"h")}),React$1.createElement(ColorSteppers$1,{max:100,min:0,value:Number(ut.toHsb().s)*100,prefixCls:et,className:ct,formatter:xt=>`${getRoundNumber(xt||0)}%`,onChange:xt=>gt(Number(xt),"s")}),React$1.createElement(ColorSteppers$1,{max:100,min:0,value:Number(ut.toHsb().b)*100,prefixCls:et,className:ct,formatter:xt=>`${getRoundNumber(xt||0)}%`,onChange:xt=>gt(Number(xt),"b")}))},ColorHsbInput$1=ColorHsbInput,ColorRgbInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-rgb-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=(xt,$t)=>{const _t=ut.toRgb();_t[$t]=xt||0;const wt=generateColor(_t);rt||ft(wt),st==null||st(wt)};return React$1.createElement("div",{className:ct},React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().r),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"r")}),React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().g),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"g")}),React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().b),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"b")}))},ColorRgbInput$1=ColorRgbInput,selectOptions=[ColorFormat.hex,ColorFormat.hsb,ColorFormat.rgb].map(_e=>({value:_e,label:_e.toLocaleUpperCase()})),ColorInput=_e=>{const{prefixCls:et,format:rt,value:st,disabledAlpha:ct,onFormatChange:ut,onChange:ft}=_e,[gt,xt]=useMergedState(ColorFormat.hex,{value:rt,onChange:ut}),$t=`${et}-input`,_t=Tt=>{xt(Tt)},wt=reactExports.useMemo(()=>{const Tt={value:st,prefixCls:et,onChange:ft};switch(gt){case ColorFormat.hsb:return React$1.createElement(ColorHsbInput$1,Object.assign({},Tt));case ColorFormat.rgb:return React$1.createElement(ColorRgbInput$1,Object.assign({},Tt));case ColorFormat.hex:default:return React$1.createElement(ColorHexInput$1,Object.assign({},Tt))}},[gt,et,st,ft]);return React$1.createElement("div",{className:`${$t}-container`},React$1.createElement(Select$3,{value:gt,variant:"borderless",getPopupContainer:Tt=>Tt,popupMatchSelectWidth:68,placement:"bottomRight",onChange:_t,className:`${et}-format-select`,size:"small",options:selectOptions}),React$1.createElement("div",{className:$t},wt),!ct&&React$1.createElement(ColorAlphaInput$1,{prefixCls:et,value:st,onChange:ft}))},ColorInput$1=ColorInput;var __rest$u=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const _e=reactExports.useContext(PanelPickerContext),{prefixCls:et,colorCleared:rt,allowClear:st,value:ct,disabledAlpha:ut,onChange:ft,onClear:gt,onChangeComplete:xt}=_e,$t=__rest$u(_e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return React$1.createElement(React$1.Fragment,null,st&&React$1.createElement(ColorClear$1,Object.assign({prefixCls:et,value:ct,colorCleared:rt,onChange:_t=>{ft==null||ft(_t),gt==null||gt()}},$t)),React$1.createElement(ColorPicker$3,{prefixCls:et,value:ct==null?void 0:ct.toHsb(),disabledAlpha:ut,onChange:(_t,wt)=>ft==null?void 0:ft(_t,wt,!0),onChangeComplete:xt}),React$1.createElement(ColorInput$1,Object.assign({value:ct,onChange:ft,prefixCls:et,disabledAlpha:ut},$t)))},PanelPicker$1=PanelPicker,genPresetColor$1=_e=>_e.map(et=>(et.colors=et.colors.map(generateColor),et)),isBright=(_e,et)=>{const{r:rt,g:st,b:ct,a:ut}=_e.toRgb(),ft=new Color(_e.toRgbString()).onBackground(et).toHsv();return ut<=.5?ft.v>.5:rt*.299+st*.587+ct*.114>192},genCollapsePanelKey=_e=>{let{label:et}=_e;return`panel-${et}`},ColorPresets=_e=>{let{prefixCls:et,presets:rt,value:st,onChange:ct}=_e;const[ut]=useLocale$3("ColorPicker"),[,ft]=useToken$4(),[gt]=useMergedState(genPresetColor$1(rt),{value:genPresetColor$1(rt),postState:genPresetColor$1}),xt=`${et}-presets`,$t=reactExports.useMemo(()=>gt.reduce((Tt,Rt)=>{const{defaultOpen:It=!0}=Rt;return It&&Tt.push(genCollapsePanelKey(Rt)),Tt},[]),[gt]),_t=Tt=>{ct==null||ct(Tt)},wt=gt.map(Tt=>{var Rt;return{key:genCollapsePanelKey(Tt),label:React$1.createElement("div",{className:`${xt}-label`},Tt==null?void 0:Tt.label),children:React$1.createElement("div",{className:`${xt}-items`},Array.isArray(Tt==null?void 0:Tt.colors)&&((Rt=Tt.colors)===null||Rt===void 0?void 0:Rt.length)>0?Tt.colors.map((It,At)=>React$1.createElement(ColorBlock,{key:`preset-${At}-${It.toHexString()}`,color:generateColor(It).toRgbString(),prefixCls:et,className:classNames(`${xt}-color`,{[`${xt}-color-checked`]:It.toHexString()===(st==null?void 0:st.toHexString()),[`${xt}-color-bright`]:isBright(It,ft.colorBgElevated)}),onClick:()=>_t(It)})):React$1.createElement("span",{className:`${xt}-empty`},ut.presetEmpty))}});return React$1.createElement("div",{className:xt},React$1.createElement(Collapse$1,{defaultActiveKey:$t,ghost:!0,items:wt}))},ColorPresets$1=ColorPresets,PanelPresets=()=>{const{prefixCls:_e,value:et,presets:rt,onChange:st}=reactExports.useContext(PanelPresetsContext);return Array.isArray(rt)?React$1.createElement(ColorPresets$1,{value:et,presets:rt,prefixCls:_e,onChange:st}):null},PanelPresets$1=PanelPresets;var __rest$t=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,presets:rt,panelRender:st,color:ct,onChange:ut,onClear:ft}=_e,gt=__rest$t(_e,["prefixCls","presets","panelRender","color","onChange","onClear"]),xt=`${et}-inner`,$t=Object.assign({prefixCls:et,value:ct,onChange:ut,onClear:ft},gt),_t=React$1.useMemo(()=>({prefixCls:et,value:ct,presets:rt,onChange:ut}),[et,ct,rt,ut]),wt=React$1.createElement("div",{className:`${xt}-content`},React$1.createElement(PanelPicker$1,null),Array.isArray(rt)&&React$1.createElement(Divider$1,null),React$1.createElement(PanelPresets$1,null));return React$1.createElement(PanelPickerProvider,{value:$t},React$1.createElement(PanelPresetsProvider,{value:_t},React$1.createElement("div",{className:xt},typeof st=="function"?st(wt,{components:{Picker:PanelPicker$1,Presets:PanelPresets$1}}):wt)))},ColorPickerPanel$1=ColorPickerPanel;var __rest$s=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{color:rt,prefixCls:st,open:ct,colorCleared:ut,disabled:ft,format:gt,className:xt,showText:$t}=_e,_t=__rest$s(_e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),wt=`${st}-trigger`,Tt=reactExports.useMemo(()=>ut?React$1.createElement(ColorClear$1,{prefixCls:st}):React$1.createElement(ColorBlock,{prefixCls:st,color:rt.toRgbString()}),[rt,ut,st]),Rt=()=>{const At=rt.toHexString().toUpperCase(),jt=getAlphaColor$2(rt);switch(gt){case"rgb":return rt.toRgbString();case"hsb":return rt.toHsbString();case"hex":default:return jt<100?`${At.slice(0,7)},${jt}%`:At}},It=()=>{if(typeof $t=="function")return $t(rt);if($t)return Rt()};return React$1.createElement("div",Object.assign({ref:et,className:classNames(wt,xt,{[`${wt}-active`]:ct,[`${wt}-disabled`]:ft})},_t),Tt,$t&&React$1.createElement("div",{className:`${wt}-text`},It()))}),ColorTrigger$1=ColorTrigger;function hasValue$1(_e){return _e!==void 0}const useColorState=(_e,et)=>{const{defaultValue:rt,value:st}=et,[ct,ut]=reactExports.useState(()=>{let ft;return hasValue$1(st)?ft=st:hasValue$1(rt)?ft=rt:ft=_e,generateColor(ft||"")});return reactExports.useEffect(()=>{st&&ut(generateColor(st))},[st]),[ct,ut]},getTransBg=(_e,et)=>({backgroundImage:`conic-gradient(${et} 0 25%, transparent 0 50%, ${et} 0 75%, transparent 0)`,backgroundSize:`${_e} ${_e}`}),genColorBlockStyle=(_e,et)=>{const{componentCls:rt,borderRadiusSM:st,colorPickerInsetShadow:ct,lineWidth:ut,colorFillSecondary:ft}=_e;return{[`${rt}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:st,width:et,height:et,boxShadow:ct},getTransBg("50%",_e.colorFillSecondary)),{[`${rt}-color-block-inner`]:{width:"100%",height:"100%",border:`${unit$1(ut)} solid ${ft}`,borderRadius:"inherit"}})}},genInputStyle=_e=>{const{componentCls:et,antCls:rt,fontSizeSM:st,lineHeightSM:ct,colorPickerAlphaInputWidth:ut,marginXXS:ft,paddingXXS:gt,controlHeightSM:xt,marginXS:$t,fontSizeIcon:_t,paddingXS:wt,colorTextPlaceholder:Tt,colorPickerInputNumberHandleWidth:Rt,lineWidth:It}=_e;return{[`${et}-input-container`]:{display:"flex",[`${et}-steppers${rt}-input-number`]:{fontSize:st,lineHeight:ct,[`${rt}-input-number-input`]:{paddingInlineStart:gt,paddingInlineEnd:0},[`${rt}-input-number-handler-wrap`]:{width:Rt}},[`${et}-steppers${et}-alpha-input`]:{flex:`0 0 ${unit$1(ut)}`,marginInlineStart:ft},[`${et}-format-select${rt}-select`]:{marginInlineEnd:$t,width:"auto","&-single":{[`${rt}-select-selector`]:{padding:0,border:0},[`${rt}-select-arrow`]:{insetInlineEnd:0},[`${rt}-select-selection-item`]:{paddingInlineEnd:_e.calc(_t).add(ft).equal(),fontSize:st,lineHeight:`${unit$1(xt)}`},[`${rt}-select-item-option-content`]:{fontSize:st,lineHeight:ct},[`${rt}-select-dropdown`]:{[`${rt}-select-item`]:{minHeight:"auto"}}}},[`${et}-input`]:{gap:ft,alignItems:"center",flex:1,width:0,[`${et}-hsb-input,${et}-rgb-input`]:{display:"flex",gap:ft,alignItems:"center"},[`${et}-steppers`]:{flex:1},[`${et}-hex-input${rt}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit$1(wt)}`,[`${rt}-input`]:{fontSize:st,textTransform:"uppercase",lineHeight:unit$1(_e.calc(xt).sub(_e.calc(It).mul(2)).equal())},[`${rt}-input-prefix`]:{color:Tt}}}}}},genPickerStyle=_e=>{const{componentCls:et,controlHeightLG:rt,borderRadiusSM:st,colorPickerInsetShadow:ct,marginSM:ut,colorBgElevated:ft,colorFillSecondary:gt,lineWidthBold:xt,colorPickerHandlerSize:$t,colorPickerHandlerSizeSM:_t,colorPickerSliderHeight:wt}=_e;return{[`${et}-select`]:{[`${et}-palette`]:{minHeight:_e.calc(rt).mul(4).equal(),overflow:"hidden",borderRadius:st},[`${et}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:ct,inset:0},marginBottom:ut},[`${et}-handler`]:{width:$t,height:$t,border:`${unit$1(xt)} solid ${ft}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${ct}, 0 0 0 1px ${gt}`,"&-sm":{width:_t,height:_t}},[`${et}-slider`]:{borderRadius:_e.calc(wt).div(2).equal(),[`${et}-palette`]:{height:wt},[`${et}-gradient`]:{borderRadius:_e.calc(wt).div(2).equal(),boxShadow:ct},"&-alpha":getTransBg(`${unit$1(wt)}`,_e.colorFillSecondary),"&-hue":{marginBottom:ut}},[`${et}-slider-container`]:{display:"flex",gap:ut,marginBottom:ut,[`${et}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${et}-slider`]:{flex:1,marginBottom:0}}}}}},genPresetsStyle=_e=>{const{componentCls:et,antCls:rt,colorTextQuaternary:st,paddingXXS:ct,colorPickerPresetColorSize:ut,fontSizeSM:ft,colorText:gt,lineHeightSM:xt,lineWidth:$t,borderRadius:_t,colorFill:wt,colorWhite:Tt,marginXXS:Rt,paddingXS:It,fontHeightSM:At}=_e;return{[`${et}-presets`]:{[`${rt}-collapse-item > ${rt}-collapse-header`]:{padding:0,[`${rt}-collapse-expand-icon`]:{height:At,color:st,paddingInlineEnd:ct}},[`${rt}-collapse`]:{display:"flex",flexDirection:"column",gap:Rt},[`${rt}-collapse-item > ${rt}-collapse-content > ${rt}-collapse-content-box`]:{padding:`${unit$1(It)} 0`},"&-label":{fontSize:ft,color:gt,lineHeight:xt},"&-items":{display:"flex",flexWrap:"wrap",gap:_e.calc(Rt).mul(1.5).equal(),[`${et}-presets-color`]:{position:"relative",cursor:"pointer",width:ut,height:ut,"&::before":{content:'""',pointerEvents:"none",width:_e.calc(ut).add(_e.calc($t).mul(4)).equal(),height:_e.calc(ut).add(_e.calc($t).mul(4)).equal(),position:"absolute",top:_e.calc($t).mul(-2).equal(),insetInlineStart:_e.calc($t).mul(-2).equal(),borderRadius:_t,border:`${unit$1($t)} solid transparent`,transition:`border-color ${_e.motionDurationMid} ${_e.motionEaseInBack}`},"&:hover::before":{borderColor:wt},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:_e.calc(ut).div(13).mul(5).equal(),height:_e.calc(ut).div(13).mul(8).equal(),border:`${unit$1(_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}`},[`&${et}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:Tt,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${_e.motionDurationMid} ${_e.motionEaseOutBack} ${_e.motionDurationFast}`},[`&${et}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ft,color:st}}}},genActiveStyle=(_e,et,rt)=>({borderInlineEndWidth:_e.lineWidth,borderColor:et,boxShadow:`0 0 0 ${unit$1(_e.controlOutlineWidth)} ${rt}`,outline:0}),genRtlStyle$1=_e=>{const{componentCls:et}=_e;return{"&-rtl":{[`${et}-presets-color`]:{"&::after":{direction:"ltr"}},[`${et}-clear`]:{"&::after":{direction:"ltr"}}}}},genClearStyle=(_e,et,rt)=>{const{componentCls:st,borderRadiusSM:ct,lineWidth:ut,colorSplit:ft,red6:gt}=_e;return{[`${st}-clear`]:Object.assign(Object.assign({width:et,height:et,borderRadius:ct,border:`${unit$1(ut)} solid ${ft}`,position:"relative",overflow:"hidden"},rt),{"&::after":{content:'""',position:"absolute",insetInlineEnd:ut,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:gt}})}},genStatusStyle=_e=>{const{componentCls:et,colorError:rt,colorWarning:st,colorErrorHover:ct,colorWarningHover:ut,colorErrorOutline:ft,colorWarningOutline:gt}=_e;return{[`&${et}-status-error`]:{borderColor:rt,"&:hover":{borderColor:ct},[`&${et}-trigger-active`]:Object.assign({},genActiveStyle(_e,rt,ft))},[`&${et}-status-warning`]:{borderColor:st,"&:hover":{borderColor:ut},[`&${et}-trigger-active`]:Object.assign({},genActiveStyle(_e,st,gt))}}},genSizeStyle=_e=>{const{componentCls:et,controlHeightLG:rt,controlHeightSM:st,controlHeight:ct,controlHeightXS:ut,borderRadius:ft,borderRadiusSM:gt,borderRadiusXS:xt,borderRadiusLG:$t,fontSizeLG:_t}=_e;return{[`&${et}-lg`]:{minWidth:rt,height:rt,borderRadius:$t,[`${et}-color-block, ${et}-clear`]:{width:ct,height:ct,borderRadius:ft},[`${et}-trigger-text`]:{fontSize:_t}},[`&${et}-sm`]:{minWidth:st,height:st,borderRadius:gt,[`${et}-color-block, ${et}-clear`]:{width:ut,height:ut,borderRadius:xt}}}},genColorPickerStyle=_e=>{const{antCls:et,componentCls:rt,colorPickerWidth:st,colorPrimary:ct,motionDurationMid:ut,colorBgElevated:ft,colorTextDisabled:gt,colorText:xt,colorBgContainerDisabled:$t,borderRadius:_t,marginXS:wt,marginSM:Tt,controlHeight:Rt,controlHeightSM:It,colorBgTextActive:At,colorPickerPresetColorSize:jt,colorPickerPreviewSize:Nt,lineWidth:kt,colorBorder:Ft,paddingXXS:Ht,fontSize:Wt,colorPrimaryHover:Vt,controlOutline:qt}=_e;return[{[rt]:Object.assign({[`${rt}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:st,[`& > ${et}-divider`]:{margin:`${unit$1(Tt)} 0 ${unit$1(wt)}`}},[`${rt}-panel`]:Object.assign({},genPickerStyle(_e))},genColorBlockStyle(_e,Nt)),genInputStyle(_e)),genPresetsStyle(_e)),genClearStyle(_e,jt,{marginInlineStart:"auto",marginBottom:wt})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Rt,height:Rt,borderRadius:_t,border:`${unit$1(kt)} solid ${Ft}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${ut}`,background:ft,padding:_e.calc(Ht).sub(kt).equal(),[`${rt}-trigger-text`]:{marginInlineStart:wt,marginInlineEnd:_e.calc(wt).sub(_e.calc(Ht).sub(kt)).equal(),fontSize:Wt,color:xt},"&:hover":{borderColor:Vt},[`&${rt}-trigger-active`]:Object.assign({},genActiveStyle(_e,ct,qt)),"&-disabled":{color:gt,background:$t,cursor:"not-allowed","&:hover":{borderColor:At},[`${rt}-trigger-text`]:{color:gt}}},genClearStyle(_e,It)),genColorBlockStyle(_e,It)),genStatusStyle(_e)),genSizeStyle(_e))},genRtlStyle$1(_e))}]},useStyle$y=genStyleHooks("ColorPicker",_e=>{const{colorTextQuaternary:et,marginSM:rt}=_e,st=8,ct=merge$7(_e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${et}`,colorPickerSliderHeight:st,colorPickerPreviewSize:_e.calc(st).mul(2).add(rt).equal()});return[genColorPickerStyle(ct)]});var __rest$r=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{value:et,defaultValue:rt,format:st,defaultFormat:ct,allowClear:ut=!1,presets:ft,children:gt,trigger:xt="click",open:$t,disabled:_t,placement:wt="bottomLeft",arrow:Tt=!0,panelRender:Rt,showText:It,style:At,className:jt,size:Nt,rootClassName:kt,prefixCls:Ft,styles:Ht,disabledAlpha:Wt=!1,onFormatChange:Vt,onChange:qt,onClear:Gt,onOpenChange:Xt,onChangeComplete:Zt,getPopupContainer:lr,autoAdjustOverflow:er=!0,destroyTooltipOnHide:cr}=_e,ur=__rest$r(_e,["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"]),{getPrefixCls:pr,direction:hr,colorPicker:fr}=reactExports.useContext(ConfigContext$1),dr=reactExports.useContext(DisabledContext$2),yr=_t??dr,[$r,Er]=useColorState("",{value:et,defaultValue:rt}),[mr,Sr]=useMergedState(!1,{value:$t,postState:gr=>!yr&&gr,onChange:Xt}),[Tr,jr]=useMergedState(st,{value:st,defaultValue:ct,onChange:Vt}),[Or,_r]=reactExports.useState(!et&&!rt),Cr=pr("color-picker",Ft),Nr=reactExports.useMemo(()=>getAlphaColor$2($r)<100,[$r]),{status:Rr}=React$1.useContext(FormItemInputContext),Pr=useSize(Nt),Mr=useCSSVarCls(Cr),[kr,Fr,wr]=useStyle$y(Cr,Mr),Br={[`${Cr}-rtl`]:hr},Dr=classNames(kt,wr,Mr,Br),Xr=classNames(getStatusClassNames(Cr,Rr),{[`${Cr}-sm`]:Pr==="small",[`${Cr}-lg`]:Pr==="large"},fr==null?void 0:fr.className,Dr,jt,Fr),Kr=classNames(Cr,Dr),zr=reactExports.useRef(!0),qr=(gr,br,Hr)=>{let Vr=generateColor(gr);(Or||(et===null||!et&&rt===null))&&(_r(!1),getAlphaColor$2($r)===0&&br!=="alpha"&&(Vr=genAlphaColor(Vr))),Wt&&Nr&&(Vr=genAlphaColor(Vr)),Hr?zr.current=!1:Zt==null||Zt(Vr),Er(Vr),qt==null||qt(Vr,Vr.toHexString())},pn=()=>{_r(!0),Gt==null||Gt()},Qr=gr=>{zr.current=!0;let br=generateColor(gr);Wt&&Nr&&(br=genAlphaColor(gr)),Zt==null||Zt(br)},Zr={open:mr,trigger:xt,placement:wt,arrow:Tt,rootClassName:kt,getPopupContainer:lr,autoAdjustOverflow:er,destroyTooltipOnHide:cr},vn={prefixCls:Cr,color:$r,allowClear:ut,colorCleared:Or,disabled:yr,disabledAlpha:Wt,presets:ft,panelRender:Rt,format:Tr,onFormatChange:jr,onChangeComplete:Qr},vr=Object.assign(Object.assign({},fr==null?void 0:fr.style),At);return kr(React$1.createElement(Popover$2,Object.assign({style:Ht==null?void 0:Ht.popup,overlayInnerStyle:Ht==null?void 0:Ht.popupOverlayInner,onOpenChange:gr=>{zr.current&&!yr&&Sr(gr)},content:React$1.createElement(NoFormStyle,{override:!0,status:!0},React$1.createElement(ColorPickerPanel$1,Object.assign({},vn,{onChange:qr,onChangeComplete:Qr,onClear:pn}))),overlayClassName:Kr},Zr),gt||React$1.createElement(ColorTrigger$1,Object.assign({open:mr,className:Xr,style:vr,color:et?generateColor(et):$r,prefixCls:Cr,disabled:yr,colorCleared:Or,showText:It,format:Tr},ur))))},PurePanel$6=genPurePanel(ColorPicker$1,"color-picker",_e=>_e,_e=>Object.assign(Object.assign({},_e),{placement:"bottom",autoAdjustOverflow:!1}));ColorPicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$6;const ColorPicker$2=ColorPicker$1;var CalendarOutlined$2={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"};const CalendarOutlinedSvg=CalendarOutlined$2;var CalendarOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CalendarOutlinedSvg}))};const CalendarOutlined$1=reactExports.forwardRef(CalendarOutlined);var ClockCircleOutlined$2={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"};const ClockCircleOutlinedSvg=ClockCircleOutlined$2;var ClockCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:ClockCircleOutlinedSvg}))};const ClockCircleOutlined$1=reactExports.forwardRef(ClockCircleOutlined);var SwapRightOutlined$2={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"};const SwapRightOutlinedSvg=SwapRightOutlined$2;var SwapRightOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:SwapRightOutlinedSvg}))};const SwapRightOutlined$1=reactExports.forwardRef(SwapRightOutlined);function getPlaceholder(_e,et,rt){return rt!==void 0?rt:et==="year"&&_e.lang.yearPlaceholder?_e.lang.yearPlaceholder:et==="quarter"&&_e.lang.quarterPlaceholder?_e.lang.quarterPlaceholder:et==="month"&&_e.lang.monthPlaceholder?_e.lang.monthPlaceholder:et==="week"&&_e.lang.weekPlaceholder?_e.lang.weekPlaceholder:et==="time"&&_e.timePickerLocale.placeholder?_e.timePickerLocale.placeholder:_e.lang.placeholder}function getRangePlaceholder(_e,et,rt){return rt!==void 0?rt:et==="year"&&_e.lang.yearPlaceholder?_e.lang.rangeYearPlaceholder:et==="quarter"&&_e.lang.quarterPlaceholder?_e.lang.rangeQuarterPlaceholder:et==="month"&&_e.lang.monthPlaceholder?_e.lang.rangeMonthPlaceholder:et==="week"&&_e.lang.weekPlaceholder?_e.lang.rangeWeekPlaceholder:et==="time"&&_e.timePickerLocale.placeholder?_e.timePickerLocale.rangePlaceholder:_e.lang.rangePlaceholder}function transPlacement2DropdownAlign(_e,et){const rt={adjustX:1,adjustY:1};switch(et){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:rt};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:rt};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:rt};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:rt};default:return{points:_e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:rt}}}function useIcons(_e,et){const{allowClear:rt=!0}=_e,{clearIcon:st,removeIcon:ct}=useIcons$1(Object.assign(Object.assign({},_e),{prefixCls:et,componentName:"DatePicker"}));return[reactExports.useMemo(()=>rt===!1?!1:Object.assign({clearIcon:st},rt===!0?{}:rt),[rt,st]),ct]}function PickerButton(_e){return reactExports.createElement(Button$3,Object.assign({size:"small",type:"primary"},_e))}function useComponents(_e){return reactExports.useMemo(()=>Object.assign({button:PickerButton},_e),[_e])}var __rest$q=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var ct;const{prefixCls:ut,getPopupContainer:ft,components:gt,className:xt,style:$t,placement:_t,size:wt,disabled:Tt,bordered:Rt=!0,placeholder:It,popupClassName:At,dropdownClassName:jt,status:Nt,rootClassName:kt,variant:Ft}=rt,Ht=__rest$q(rt,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),Wt=reactExports.useRef(null),{getPrefixCls:Vt,direction:qt,getPopupContainer:Gt,rangePicker:Xt}=reactExports.useContext(ConfigContext$1),Zt=Vt("picker",ut),{compactSize:lr,compactItemClassnames:er}=useCompactItemContext(Zt,qt),{picker:cr}=rt,ur=Vt(),[pr,hr]=useVariant(Ft,Rt),fr=useCSSVarCls(Zt),[dr,yr,$r]=useStyle$G(Zt,fr),[Er]=useIcons(rt,Zt),mr=useComponents(gt),Sr=useSize(Fr=>{var wr;return(wr=wt??lr)!==null&&wr!==void 0?wr:Fr}),Tr=reactExports.useContext(DisabledContext$2),jr=Tt??Tr,Or=reactExports.useContext(FormItemInputContext),{hasFeedback:_r,status:Cr,feedbackIcon:Nr}=Or,Rr=reactExports.createElement(reactExports.Fragment,null,cr==="time"?reactExports.createElement(ClockCircleOutlined$1,null):reactExports.createElement(CalendarOutlined$1,null),_r&&Nr);reactExports.useImperativeHandle(st,()=>Wt.current);const[Pr]=useLocale$3("Calendar",enUS$2),Mr=Object.assign(Object.assign({},Pr),rt.locale),[kr]=useZIndex("DatePicker",(ct=rt.popupStyle)===null||ct===void 0?void 0:ct.zIndex);return dr(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(RefRangePicker,Object.assign({separator:reactExports.createElement("span",{"aria-label":"to",className:`${Zt}-separator`},reactExports.createElement(SwapRightOutlined$1,null)),disabled:jr,ref:Wt,popupAlign:transPlacement2DropdownAlign(qt,_t),placeholder:getRangePlaceholder(Mr,cr,It),suffixIcon:Rr,prevIcon:reactExports.createElement("span",{className:`${Zt}-prev-icon`}),nextIcon:reactExports.createElement("span",{className:`${Zt}-next-icon`}),superPrevIcon:reactExports.createElement("span",{className:`${Zt}-super-prev-icon`}),superNextIcon:reactExports.createElement("span",{className:`${Zt}-super-next-icon`}),transitionName:`${ur}-slide-up`},Ht,{className:classNames({[`${Zt}-${Sr}`]:Sr,[`${Zt}-${pr}`]:hr},getStatusClassNames(Zt,getMergedStatus(Cr,Nt),_r),yr,er,xt,Xt==null?void 0:Xt.className,$r,fr,kt),style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),$t),locale:Mr.lang,prefixCls:Zt,getPopupContainer:ft||Gt,generateConfig:_e,components:mr,direction:qt,classNames:{popup:classNames(yr,At||jt,$r,fr,kt)},styles:{popup:Object.assign(Object.assign({},rt.popupStyle),{zIndex:kr})},allowClear:Er}))))})}var __rest$p=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var It;const{prefixCls:At,getPopupContainer:jt,components:Nt,style:kt,className:Ft,rootClassName:Ht,size:Wt,bordered:Vt,placement:qt,placeholder:Gt,popupClassName:Xt,dropdownClassName:Zt,disabled:lr,status:er,variant:cr}=Tt,ur=__rest$p(Tt,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant"]),{getPrefixCls:pr,direction:hr,getPopupContainer:fr,[_t]:dr}=reactExports.useContext(ConfigContext$1),yr=pr("picker",At),{compactSize:$r,compactItemClassnames:Er}=useCompactItemContext(yr,hr),mr=reactExports.useRef(null),[Sr,Tr]=useVariant(cr,Vt),jr=useCSSVarCls(yr),[Or,_r,Cr]=useStyle$G(yr,jr);reactExports.useImperativeHandle(Rt,()=>mr.current);const Nr={showToday:!0},Rr=xt||Tt.picker,Pr=pr(),[Mr,kr]=useIcons(Tt,yr),Fr=useComponents(Nt),wr=useSize(vr=>{var gr;return(gr=Wt??$r)!==null&&gr!==void 0?gr:vr}),Br=reactExports.useContext(DisabledContext$2),Dr=lr??Br,Xr=reactExports.useContext(FormItemInputContext),{hasFeedback:Kr,status:zr,feedbackIcon:qr}=Xr,pn=reactExports.createElement(reactExports.Fragment,null,Rr==="time"?reactExports.createElement(ClockCircleOutlined$1,null):reactExports.createElement(CalendarOutlined$1,null),Kr&&qr),[Qr]=useLocale$3("DatePicker",enUS$2),Zr=Object.assign(Object.assign({},Qr),Tt.locale),[vn]=useZIndex("DatePicker",(It=Tt.popupStyle)===null||It===void 0?void 0:It.zIndex);return Or(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(RefPicker,Object.assign({ref:mr,placeholder:getPlaceholder(Zr,Rr,Gt),suffixIcon:pn,dropdownAlign:transPlacement2DropdownAlign(hr,qt),prevIcon:reactExports.createElement("span",{className:`${yr}-prev-icon`}),nextIcon:reactExports.createElement("span",{className:`${yr}-next-icon`}),superPrevIcon:reactExports.createElement("span",{className:`${yr}-super-prev-icon`}),superNextIcon:reactExports.createElement("span",{className:`${yr}-super-next-icon`}),transitionName:`${Pr}-slide-up`,picker:xt},Nr,ur,{locale:Zr.lang,className:classNames({[`${yr}-${wr}`]:wr,[`${yr}-${Sr}`]:Tr},getStatusClassNames(yr,getMergedStatus(zr,er),Kr),_r,Er,dr==null?void 0:dr.className,Ft,Cr,jr,Ht),style:Object.assign(Object.assign({},dr==null?void 0:dr.style),kt),prefixCls:yr,getPopupContainer:jt||fr,generateConfig:_e,components:Fr,direction:hr,disabled:Dr,classNames:{popup:classNames(_r,Cr,jr,Ht,Xt||Zt)},styles:{popup:Object.assign(Object.assign({},Tt.popupStyle),{zIndex:vn})},allowClear:Mr,removeIcon:kr}))))})}const rt=et(),st=et("week","WeekPicker"),ct=et("month","MonthPicker"),ut=et("year","YearPicker"),ft=et("time","TimePicker"),gt=et("quarter","QuarterPicker");return{DatePicker:rt,WeekPicker:st,MonthPicker:ct,YearPicker:ut,TimePicker:ft,QuarterPicker:gt}}function generatePicker(_e){const{DatePicker:et,WeekPicker:rt,MonthPicker:st,YearPicker:ct,TimePicker:ut,QuarterPicker:ft}=generatePicker$1(_e),gt=generateRangePicker(_e),xt=et;return xt.WeekPicker=rt,xt.MonthPicker=st,xt.YearPicker=ct,xt.RangePicker=gt,xt.TimePicker=ut,xt.QuarterPicker=ft,xt}const DatePicker$1=generatePicker(generateConfig);function postPureProps(_e){const et=transPlacement2DropdownAlign(_e.direction,_e.placement);return et.overflow.adjustY=!1,et.overflow.adjustX=!1,Object.assign(Object.assign({},_e),{dropdownAlign:et})}const PurePanel$5=genPurePanel(DatePicker$1,"picker",null,postPureProps);DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$5;const PureRangePanel=genPurePanel(DatePicker$1.RangePicker,"picker",null,postPureProps);DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired=PureRangePanel;DatePicker$1.generatePicker=generatePicker;const DatePicker$2=DatePicker$1,DEFAULT_COLUMN_MAP={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},DEFAULT_COLUMN_MAP$1=DEFAULT_COLUMN_MAP,DescriptionsContext=React$1.createContext({}),DescriptionsContext$1=DescriptionsContext;var __rest$o=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);cttoArray$d(_e).map(et=>Object.assign(Object.assign({},et==null?void 0:et.props),{key:et.key}));function useItems(_e,et,rt){const st=reactExports.useMemo(()=>et||transChildren2Items(rt),[et,rt]);return reactExports.useMemo(()=>st.map(ut=>{var{span:ft}=ut,gt=__rest$o(ut,["span"]);return Object.assign(Object.assign({},gt),{span:typeof ft=="number"?ft:matchScreen(_e,ft)})}),[st,_e])}function getFilledItem(_e,et,rt){let st=_e,ct=!1;return(rt===void 0||rt>et)&&(st=Object.assign(Object.assign({},_e),{span:et}),ct=rt!==void 0),[st,ct]}function getCalcRows(_e,et){const rt=[];let st=[],ct=et,ut=!1;return _e.filter(ft=>ft).forEach((ft,gt)=>{const xt=ft==null?void 0:ft.span,$t=xt||1;if(gt===_e.length-1){const[_t,wt]=getFilledItem(ft,ct,xt);ut=ut||wt,st.push(_t),rt.push(st);return}if($t{const[rt,st]=reactExports.useMemo(()=>getCalcRows(et,_e),[et,_e]);return rt},DescriptionsItem=_e=>{let{children:et}=_e;return et},DescriptionsItem$1=DescriptionsItem;function notEmpty(_e){return _e!=null}const Cell=_e=>{const{itemPrefixCls:et,component:rt,span:st,className:ct,style:ut,labelStyle:ft,contentStyle:gt,bordered:xt,label:$t,content:_t,colon:wt,type:Tt}=_e,Rt=rt;return xt?reactExports.createElement(Rt,{className:classNames({[`${et}-item-label`]:Tt==="label",[`${et}-item-content`]:Tt==="content"},ct),style:ut,colSpan:st},notEmpty($t)&&reactExports.createElement("span",{style:ft},$t),notEmpty(_t)&&reactExports.createElement("span",{style:gt},_t)):reactExports.createElement(Rt,{className:classNames(`${et}-item`,ct),style:ut,colSpan:st},reactExports.createElement("div",{className:`${et}-item-container`},($t||$t===0)&&reactExports.createElement("span",{className:classNames(`${et}-item-label`,{[`${et}-item-no-colon`]:!wt}),style:ft},$t),(_t||_t===0)&&reactExports.createElement("span",{className:classNames(`${et}-item-content`),style:gt},_t)))},Cell$1=Cell;function renderCells(_e,et,rt){let{colon:st,prefixCls:ct,bordered:ut}=et,{component:ft,type:gt,showLabel:xt,showContent:$t,labelStyle:_t,contentStyle:wt}=rt;return _e.map((Tt,Rt)=>{let{label:It,children:At,prefixCls:jt=ct,className:Nt,style:kt,labelStyle:Ft,contentStyle:Ht,span:Wt=1,key:Vt}=Tt;return typeof ft=="string"?reactExports.createElement(Cell$1,{key:`${gt}-${Vt||Rt}`,className:Nt,style:kt,labelStyle:Object.assign(Object.assign({},_t),Ft),contentStyle:Object.assign(Object.assign({},wt),Ht),span:Wt,colon:st,component:ft,itemPrefixCls:jt,bordered:ut,label:xt?It:null,content:$t?At:null,type:gt}):[reactExports.createElement(Cell$1,{key:`label-${Vt||Rt}`,className:Nt,style:Object.assign(Object.assign(Object.assign({},_t),kt),Ft),span:1,colon:st,component:ft[0],itemPrefixCls:jt,bordered:ut,label:It,type:"label"}),reactExports.createElement(Cell$1,{key:`content-${Vt||Rt}`,className:Nt,style:Object.assign(Object.assign(Object.assign({},wt),kt),Ht),span:Wt*2-1,component:ft[1],itemPrefixCls:jt,bordered:ut,content:At,type:"content"})]})}const Row=_e=>{const et=reactExports.useContext(DescriptionsContext$1),{prefixCls:rt,vertical:st,row:ct,index:ut,bordered:ft}=_e;return st?reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("tr",{key:`label-${ut}`,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:"th",type:"label",showLabel:!0},et))),reactExports.createElement("tr",{key:`content-${ut}`,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:"td",type:"content",showContent:!0},et)))):reactExports.createElement("tr",{key:ut,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:ft?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},et)))},Row$1=Row,genBorderedStyle=_e=>{const{componentCls:et,labelBg:rt}=_e;return{[`&${et}-bordered`]:{[`> ${et}-view`]:{border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${et}-row`]:{borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`,borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${et}-item-label`]:{color:_e.colorTextSecondary,backgroundColor:rt,"&::after":{display:"none"}}}},[`&${et}-middle`]:{[`${et}-row`]:{[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.paddingSM)} ${unit$1(_e.paddingLG)}`}}},[`&${et}-small`]:{[`${et}-row`]:{[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.paddingXS)} ${unit$1(_e.padding)}`}}}}}},genDescriptionStyles=_e=>{const{componentCls:et,extraColor:rt,itemPaddingBottom:st,colonMarginRight:ct,colonMarginLeft:ut,titleMarginBottom:ft}=_e;return{[et]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genBorderedStyle(_e)),{"&-rtl":{direction:"rtl"},[`${et}-header`]:{display:"flex",alignItems:"center",marginBottom:ft},[`${et}-title`]:Object.assign(Object.assign({},textEllipsis),{flex:"auto",color:_e.titleColor,fontWeight:_e.fontWeightStrong,fontSize:_e.fontSizeLG,lineHeight:_e.lineHeightLG}),[`${et}-extra`]:{marginInlineStart:"auto",color:rt,fontSize:_e.fontSize},[`${et}-view`]:{width:"100%",borderRadius:_e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${et}-row`]:{"> th, > td":{paddingBottom:st},"&:last-child":{borderBottom:"none"}},[`${et}-item-label`]:{color:_e.colorTextTertiary,fontWeight:"normal",fontSize:_e.fontSize,lineHeight:_e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${unit$1(ut)} ${unit$1(ct)}`},[`&${et}-item-no-colon::after`]:{content:'""'}},[`${et}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${et}-item-content`]:{display:"table-cell",flex:1,color:_e.contentColor,fontSize:_e.fontSize,lineHeight:_e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${et}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${et}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${et}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${et}-row`]:{"> th, > td":{paddingBottom:_e.paddingSM}}},"&-small":{[`${et}-row`]:{"> th, > td":{paddingBottom:_e.paddingXS}}}})}},prepareComponentToken$f=_e=>({labelBg:_e.colorFillAlter,titleColor:_e.colorText,titleMarginBottom:_e.fontSizeSM*_e.lineHeightSM,itemPaddingBottom:_e.padding,colonMarginRight:_e.marginXS,colonMarginLeft:_e.marginXXS/2,contentColor:_e.colorText,extraColor:_e.colorText}),useStyle$x=genStyleHooks("Descriptions",_e=>{const et=merge$7(_e,{});return genDescriptionStyles(et)},prepareComponentToken$f);var __rest$n=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,title:rt,extra:st,column:ct,colon:ut=!0,bordered:ft,layout:gt,children:xt,className:$t,rootClassName:_t,style:wt,size:Tt,labelStyle:Rt,contentStyle:It,items:At}=_e,jt=__rest$n(_e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Nt,direction:kt,descriptions:Ft}=reactExports.useContext(ConfigContext$1),Ht=Nt("descriptions",et),Wt=useBreakpoint$1(),Vt=reactExports.useMemo(()=>{var ur;return typeof ct=="number"?ct:(ur=matchScreen(Wt,Object.assign(Object.assign({},DEFAULT_COLUMN_MAP$1),ct)))!==null&&ur!==void 0?ur:3},[Wt,ct]),qt=useItems(Wt,At,xt),Gt=useSize(Tt),Xt=useRow(Vt,qt),[Zt,lr,er]=useStyle$x(Ht),cr=reactExports.useMemo(()=>({labelStyle:Rt,contentStyle:It}),[Rt,It]);return Zt(reactExports.createElement(DescriptionsContext$1.Provider,{value:cr},reactExports.createElement("div",Object.assign({className:classNames(Ht,Ft==null?void 0:Ft.className,{[`${Ht}-${Gt}`]:Gt&&Gt!=="default",[`${Ht}-bordered`]:!!ft,[`${Ht}-rtl`]:kt==="rtl"},$t,_t,lr,er),style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),wt)},jt),(rt||st)&&reactExports.createElement("div",{className:`${Ht}-header`},rt&&reactExports.createElement("div",{className:`${Ht}-title`},rt),st&&reactExports.createElement("div",{className:`${Ht}-extra`},st)),reactExports.createElement("div",{className:`${Ht}-view`},reactExports.createElement("table",null,reactExports.createElement("tbody",null,Xt.map((ur,pr)=>reactExports.createElement(Row$1,{key:pr,index:pr,colon:ut,prefixCls:Ht,vertical:gt==="vertical",bordered:ft,row:ur}))))))))};Descriptions.Item=DescriptionsItem$1;const Descriptions$1=Descriptions;var DrawerContext=reactExports.createContext(null),RefContext$1=reactExports.createContext({}),DrawerPanel$2=function(et){var rt=et.prefixCls,st=et.className,ct=et.style,ut=et.children,ft=et.containerRef,gt=et.id,xt=et.onMouseEnter,$t=et.onMouseOver,_t=et.onMouseLeave,wt=et.onClick,Tt=et.onKeyDown,Rt=et.onKeyUp,It={onMouseEnter:xt,onMouseOver:$t,onMouseLeave:_t,onClick:wt,onKeyDown:Tt,onKeyUp:Rt},At=reactExports.useContext(RefContext$1),jt=At.panel,Nt=useComposeRef(jt,ft);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",_extends$b({id:gt,className:classNames("".concat(rt,"-content"),st),style:_objectSpread2({},ct),"aria-modal":"true",role:"dialog",ref:Nt},It),ut))};function parseWidthHeight(_e){return typeof _e=="string"&&String(Number(_e))===_e?(warningOnce$1(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(_e)):_e}var sentinelStyle$1={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function DrawerPopup(_e,et){var rt,st,ct,ut=_e.prefixCls,ft=_e.open,gt=_e.placement,xt=_e.inline,$t=_e.push,_t=_e.forceRender,wt=_e.autoFocus,Tt=_e.keyboard,Rt=_e.classNames,It=_e.rootClassName,At=_e.rootStyle,jt=_e.zIndex,Nt=_e.className,kt=_e.id,Ft=_e.style,Ht=_e.motion,Wt=_e.width,Vt=_e.height,qt=_e.children,Gt=_e.mask,Xt=_e.maskClosable,Zt=_e.maskMotion,lr=_e.maskClassName,er=_e.maskStyle,cr=_e.afterOpenChange,ur=_e.onClose,pr=_e.onMouseEnter,hr=_e.onMouseOver,fr=_e.onMouseLeave,dr=_e.onClick,yr=_e.onKeyDown,$r=_e.onKeyUp,Er=_e.styles,mr=reactExports.useRef(),Sr=reactExports.useRef(),Tr=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return mr.current});var jr=function(qr){var pn=qr.keyCode,Qr=qr.shiftKey;switch(pn){case KeyCode.TAB:{if(pn===KeyCode.TAB){if(!Qr&&document.activeElement===Tr.current){var Zr;(Zr=Sr.current)===null||Zr===void 0||Zr.focus({preventScroll:!0})}else if(Qr&&document.activeElement===Sr.current){var vn;(vn=Tr.current)===null||vn===void 0||vn.focus({preventScroll:!0})}}break}case KeyCode.ESC:{ur&&Tt&&(qr.stopPropagation(),ur(qr));break}}};reactExports.useEffect(function(){if(ft&&wt){var zr;(zr=mr.current)===null||zr===void 0||zr.focus({preventScroll:!0})}},[ft]);var Or=reactExports.useState(!1),_r=_slicedToArray$3(Or,2),Cr=_r[0],Nr=_r[1],Rr=reactExports.useContext(DrawerContext),Pr;$t===!1?Pr={distance:0}:$t===!0?Pr={}:Pr=$t||{};var Mr=(rt=(st=(ct=Pr)===null||ct===void 0?void 0:ct.distance)!==null&&st!==void 0?st:Rr==null?void 0:Rr.pushDistance)!==null&&rt!==void 0?rt:180,kr=reactExports.useMemo(function(){return{pushDistance:Mr,push:function(){Nr(!0)},pull:function(){Nr(!1)}}},[Mr]);reactExports.useEffect(function(){if(ft){var zr;Rr==null||(zr=Rr.push)===null||zr===void 0||zr.call(Rr)}else{var qr;Rr==null||(qr=Rr.pull)===null||qr===void 0||qr.call(Rr)}},[ft]),reactExports.useEffect(function(){return function(){var zr;Rr==null||(zr=Rr.pull)===null||zr===void 0||zr.call(Rr)}},[]);var Fr=Gt&&reactExports.createElement(CSSMotion,_extends$b({key:"mask"},Zt,{visible:ft}),function(zr,qr){var pn=zr.className,Qr=zr.style;return reactExports.createElement("div",{className:classNames("".concat(ut,"-mask"),pn,Rt==null?void 0:Rt.mask,lr),style:_objectSpread2(_objectSpread2(_objectSpread2({},Qr),er),Er==null?void 0:Er.mask),onClick:Xt&&ft?ur:void 0,ref:qr})}),wr=typeof Ht=="function"?Ht(gt):Ht,Br={};if(Cr&&Mr)switch(gt){case"top":Br.transform="translateY(".concat(Mr,"px)");break;case"bottom":Br.transform="translateY(".concat(-Mr,"px)");break;case"left":Br.transform="translateX(".concat(Mr,"px)");break;default:Br.transform="translateX(".concat(-Mr,"px)");break}gt==="left"||gt==="right"?Br.width=parseWidthHeight(Wt):Br.height=parseWidthHeight(Vt);var Dr={onMouseEnter:pr,onMouseOver:hr,onMouseLeave:fr,onClick:dr,onKeyDown:yr,onKeyUp:$r},Xr=reactExports.createElement(CSSMotion,_extends$b({key:"panel"},wr,{visible:ft,forceRender:_t,onVisibleChanged:function(qr){cr==null||cr(qr)},removeOnLeave:!1,leavedClassName:"".concat(ut,"-content-wrapper-hidden")}),function(zr,qr){var pn=zr.className,Qr=zr.style;return reactExports.createElement("div",_extends$b({className:classNames("".concat(ut,"-content-wrapper"),Rt==null?void 0:Rt.wrapper,pn),style:_objectSpread2(_objectSpread2(_objectSpread2({},Br),Qr),Er==null?void 0:Er.wrapper)},pickAttrs(_e,{data:!0})),reactExports.createElement(DrawerPanel$2,_extends$b({id:kt,containerRef:qr,prefixCls:ut,className:classNames(Nt,Rt==null?void 0:Rt.content),style:_objectSpread2(_objectSpread2({},Ft),Er==null?void 0:Er.content)},Dr),qt))}),Kr=_objectSpread2({},At);return jt&&(Kr.zIndex=jt),reactExports.createElement(DrawerContext.Provider,{value:kr},reactExports.createElement("div",{className:classNames(ut,"".concat(ut,"-").concat(gt),It,_defineProperty$c(_defineProperty$c({},"".concat(ut,"-open"),ft),"".concat(ut,"-inline"),xt)),style:Kr,tabIndex:-1,ref:mr,onKeyDown:jr},Fr,reactExports.createElement("div",{tabIndex:0,ref:Sr,style:sentinelStyle$1,"aria-hidden":"true","data-sentinel":"start"}),Xr,reactExports.createElement("div",{tabIndex:0,ref:Tr,style:sentinelStyle$1,"aria-hidden":"true","data-sentinel":"end"})))}var RefDrawerPopup=reactExports.forwardRef(DrawerPopup),Drawer$2=function(et){var rt=et.open,st=rt===void 0?!1:rt,ct=et.prefixCls,ut=ct===void 0?"rc-drawer":ct,ft=et.placement,gt=ft===void 0?"right":ft,xt=et.autoFocus,$t=xt===void 0?!0:xt,_t=et.keyboard,wt=_t===void 0?!0:_t,Tt=et.width,Rt=Tt===void 0?378:Tt,It=et.mask,At=It===void 0?!0:It,jt=et.maskClosable,Nt=jt===void 0?!0:jt,kt=et.getContainer,Ft=et.forceRender,Ht=et.afterOpenChange,Wt=et.destroyOnClose,Vt=et.onMouseEnter,qt=et.onMouseOver,Gt=et.onMouseLeave,Xt=et.onClick,Zt=et.onKeyDown,lr=et.onKeyUp,er=et.panelRef,cr=reactExports.useState(!1),ur=_slicedToArray$3(cr,2),pr=ur[0],hr=ur[1],fr=reactExports.useState(!1),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1];useLayoutEffect$3(function(){$r(!0)},[]);var Er=yr?st:!1,mr=reactExports.useRef(),Sr=reactExports.useRef();useLayoutEffect$3(function(){Er&&(Sr.current=document.activeElement)},[Er]);var Tr=function(Nr){var Rr;if(hr(Nr),Ht==null||Ht(Nr),!Nr&&Sr.current&&!((Rr=mr.current)!==null&&Rr!==void 0&&Rr.contains(Sr.current))){var Pr;(Pr=Sr.current)===null||Pr===void 0||Pr.focus({preventScroll:!0})}},jr=reactExports.useMemo(function(){return{panel:er}},[er]);if(!Ft&&!pr&&!Er&&Wt)return null;var Or={onMouseEnter:Vt,onMouseOver:qt,onMouseLeave:Gt,onClick:Xt,onKeyDown:Zt,onKeyUp:lr},_r=_objectSpread2(_objectSpread2({},et),{},{open:Er,prefixCls:ut,placement:gt,autoFocus:$t,keyboard:wt,width:Rt,mask:At,maskClosable:Nt,inline:kt===!1,afterOpenChange:Tr,ref:mr},Or);return reactExports.createElement(RefContext$1.Provider,{value:jr},reactExports.createElement(Portal,{open:Er||Ft||pr,autoDestroy:!1,getContainer:kt,autoLock:At&&(Er||pr)},reactExports.createElement(RefDrawerPopup,_r)))};const DrawerPanel=_e=>{var et,rt;const{prefixCls:st,title:ct,footer:ut,extra:ft,closeIcon:gt,closable:xt,onClose:$t,headerStyle:_t,bodyStyle:wt,footerStyle:Tt,children:Rt,classNames:It,styles:At}=_e,{drawer:jt}=reactExports.useContext(ConfigContext$1),Nt=reactExports.useCallback(Vt=>reactExports.createElement("button",{type:"button",onClick:$t,"aria-label":"Close",className:`${st}-close`},Vt),[$t]),[kt,Ft]=useClosable(xt,typeof gt<"u"?gt:jt==null?void 0:jt.closeIcon,Nt,void 0,!0),Ht=reactExports.useMemo(()=>{var Vt,qt;return!ct&&!kt?null:reactExports.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Vt=jt==null?void 0:jt.styles)===null||Vt===void 0?void 0:Vt.header),_t),At==null?void 0:At.header),className:classNames(`${st}-header`,{[`${st}-header-close-only`]:kt&&!ct&&!ft},(qt=jt==null?void 0:jt.classNames)===null||qt===void 0?void 0:qt.header,It==null?void 0:It.header)},reactExports.createElement("div",{className:`${st}-header-title`},Ft,ct&&reactExports.createElement("div",{className:`${st}-title`},ct)),ft&&reactExports.createElement("div",{className:`${st}-extra`},ft))},[kt,Ft,ft,_t,st,ct]),Wt=reactExports.useMemo(()=>{var Vt,qt;if(!ut)return null;const Gt=`${st}-footer`;return reactExports.createElement("div",{className:classNames(Gt,(Vt=jt==null?void 0:jt.classNames)===null||Vt===void 0?void 0:Vt.footer,It==null?void 0:It.footer),style:Object.assign(Object.assign(Object.assign({},(qt=jt==null?void 0:jt.styles)===null||qt===void 0?void 0:qt.footer),Tt),At==null?void 0:At.footer)},ut)},[ut,Tt,st]);return reactExports.createElement(reactExports.Fragment,null,Ht,reactExports.createElement("div",{className:classNames(`${st}-body`,It==null?void 0:It.body,(et=jt==null?void 0:jt.classNames)===null||et===void 0?void 0:et.body),style:Object.assign(Object.assign(Object.assign({},(rt=jt==null?void 0:jt.styles)===null||rt===void 0?void 0:rt.body),wt),At==null?void 0:At.body)},Rt),Wt)},DrawerPanel$1=DrawerPanel,getMoveTranslate=_e=>{const et="100%";return{left:`translateX(-${et})`,right:`translateX(${et})`,top:`translateY(-${et})`,bottom:`translateY(${et})`}[_e]},getEnterLeaveStyle=(_e,et)=>({"&-enter, &-appear":Object.assign(Object.assign({},_e),{"&-active":et}),"&-leave":Object.assign(Object.assign({},et),{"&-active":_e})}),getFadeStyle=(_e,et)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${et}`}}},getEnterLeaveStyle({opacity:_e},{opacity:1})),getPanelMotionStyles=(_e,et)=>[getFadeStyle(.7,et),getEnterLeaveStyle({transform:getMoveTranslate(_e)},{transform:"none"})],genMotionStyle$1=_e=>{const{componentCls:et,motionDurationSlow:rt}=_e;return{[et]:{[`${et}-mask-motion`]:getFadeStyle(0,rt),[`${et}-panel-motion`]:["left","right","top","bottom"].reduce((st,ct)=>Object.assign(Object.assign({},st),{[`&-${ct}`]:getPanelMotionStyles(ct,rt)}),{})}}},genDrawerStyle=_e=>{const{componentCls:et,zIndexPopup:rt,colorBgMask:st,colorBgElevated:ct,motionDurationSlow:ut,motionDurationMid:ft,padding:gt,paddingLG:xt,fontSizeLG:$t,lineHeightLG:_t,lineWidth:wt,lineType:Tt,colorSplit:Rt,marginSM:It,colorIcon:At,colorIconHover:jt,colorText:Nt,fontWeightStrong:kt,footerPaddingBlock:Ft,footerPaddingInline:Ht}=_e,Wt=`${et}-content-wrapper`;return{[et]:{position:"fixed",inset:0,zIndex:rt,pointerEvents:"none","&-pure":{position:"relative",background:ct,display:"flex",flexDirection:"column",[`&${et}-left`]:{boxShadow:_e.boxShadowDrawerLeft},[`&${et}-right`]:{boxShadow:_e.boxShadowDrawerRight},[`&${et}-top`]:{boxShadow:_e.boxShadowDrawerUp},[`&${et}-bottom`]:{boxShadow:_e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${et}-mask`]:{position:"absolute",inset:0,zIndex:rt,background:st,pointerEvents:"auto"},[Wt]:{position:"absolute",zIndex:rt,maxWidth:"100vw",transition:`all ${ut}`,"&-hidden":{display:"none"}},[`&-left > ${Wt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowDrawerLeft},[`&-right > ${Wt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:_e.boxShadowDrawerRight},[`&-top > ${Wt}`]:{top:0,insetInline:0,boxShadow:_e.boxShadowDrawerUp},[`&-bottom > ${Wt}`]:{bottom:0,insetInline:0,boxShadow:_e.boxShadowDrawerDown},[`${et}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ct,pointerEvents:"auto"},[`${et}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit$1(gt)} ${unit$1(xt)}`,fontSize:$t,lineHeight:_t,borderBottom:`${unit$1(wt)} ${Tt} ${Rt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${et}-extra`]:{flex:"none"},[`${et}-close`]:{display:"inline-block",marginInlineEnd:It,color:At,fontWeight:kt,fontSize:$t,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ft}`,textRendering:"auto","&:focus, &:hover":{color:jt,textDecoration:"none"}},[`${et}-title`]:{flex:1,margin:0,color:Nt,fontWeight:_e.fontWeightStrong,fontSize:$t,lineHeight:_t},[`${et}-body`]:{flex:1,minWidth:0,minHeight:0,padding:xt,overflow:"auto"},[`${et}-footer`]:{flexShrink:0,padding:`${unit$1(Ft)} ${unit$1(Ht)}`,borderTop:`${unit$1(wt)} ${Tt} ${Rt}`},"&-rtl":{direction:"rtl"}}}},prepareComponentToken$e=_e=>({zIndexPopup:_e.zIndexPopupBase,footerPaddingBlock:_e.paddingXS,footerPaddingInline:_e.padding}),useStyle$w=genStyleHooks("Drawer",_e=>{const et=merge$7(_e,{});return[genDrawerStyle(et),genMotionStyle$1(et)]},prepareComponentToken$e);var __rest$m=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{rootClassName:et,width:rt,height:st,size:ct="default",mask:ut=!0,push:ft=defaultPushState,open:gt,afterOpenChange:xt,onClose:$t,prefixCls:_t,getContainer:wt,style:Tt,className:Rt,visible:It,afterVisibleChange:At,maskStyle:jt,drawerStyle:Nt,contentWrapperStyle:kt}=_e,Ft=__rest$m(_e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Ht,getPrefixCls:Wt,direction:Vt,drawer:qt}=reactExports.useContext(ConfigContext$1),Gt=Wt("drawer",_t),[Xt,Zt,lr]=useStyle$w(Gt),er=wt===void 0&&Ht?()=>Ht(document.body):wt,cr=classNames({"no-mask":!ut,[`${Gt}-rtl`]:Vt==="rtl"},et,Zt,lr),ur=reactExports.useMemo(()=>rt??(ct==="large"?736:378),[rt,ct]),pr=reactExports.useMemo(()=>st??(ct==="large"?736:378),[st,ct]),hr={motionName:getTransitionName(Gt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},fr=jr=>({motionName:getTransitionName(Gt,`panel-motion-${jr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=usePanelRef(),[yr,$r]=useZIndex("Drawer",Ft.zIndex),{classNames:Er={},styles:mr={}}=Ft,{classNames:Sr={},styles:Tr={}}=qt||{};return Xt(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{status:!0,override:!0},reactExports.createElement(zIndexContext$1.Provider,{value:$r},reactExports.createElement(Drawer$2,Object.assign({prefixCls:Gt,onClose:$t,maskMotion:hr,motion:fr},Ft,{classNames:{mask:classNames(Er.mask,Sr.mask),content:classNames(Er.content,Sr.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},mr.mask),jt),Tr.mask),content:Object.assign(Object.assign(Object.assign({},mr.content),Nt),Tr.content),wrapper:Object.assign(Object.assign(Object.assign({},mr.wrapper),kt),Tr.wrapper)},open:gt??It,mask:ut,push:ft,width:ur,height:pr,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Tt),className:classNames(qt==null?void 0:qt.className,Rt),rootClassName:cr,getContainer:er,afterOpenChange:xt??At,panelRef:dr,zIndex:yr}),reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:Gt},Ft,{onClose:$t})))))))},PurePanel$4=_e=>{const{prefixCls:et,style:rt,className:st,placement:ct="right"}=_e,ut=__rest$m(_e,["prefixCls","style","className","placement"]),{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("drawer",et),[xt,$t,_t]=useStyle$w(gt),wt=classNames(gt,`${gt}-pure`,`${gt}-${ct}`,$t,_t,st);return xt(reactExports.createElement("div",{className:wt,style:rt},reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:gt},ut))))};Drawer._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$4;const Drawer$1=Drawer;function isPresetSize(_e){return["small","middle","large"].includes(_e)}function isValidGapNumber(_e){return _e?typeof _e=="number"&&!Number.isNaN(_e):!1}const SpaceContext=React$1.createContext({latestIndex:0}),SpaceContextProvider=SpaceContext.Provider,Item$2=_e=>{let{className:et,index:rt,children:st,split:ct,style:ut}=_e;const{latestIndex:ft}=reactExports.useContext(SpaceContext);return st==null?null:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:et,style:ut},st),rt{var rt,st;const{getPrefixCls:ct,space:ut,direction:ft}=reactExports.useContext(ConfigContext$1),{size:gt=(ut==null?void 0:ut.size)||"small",align:xt,className:$t,rootClassName:_t,children:wt,direction:Tt="horizontal",prefixCls:Rt,split:It,style:At,wrap:jt=!1,classNames:Nt,styles:kt}=_e,Ft=__rest$l(_e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ht,Wt]=Array.isArray(gt)?gt:[gt,gt],Vt=isPresetSize(Wt),qt=isPresetSize(Ht),Gt=isValidGapNumber(Wt),Xt=isValidGapNumber(Ht),Zt=toArray$d(wt,{keepEmpty:!0}),lr=xt===void 0&&Tt==="horizontal"?"center":xt,er=ct("space",Rt),[cr,ur,pr]=useStyle$U(er),hr=classNames(er,ut==null?void 0:ut.className,ur,`${er}-${Tt}`,{[`${er}-rtl`]:ft==="rtl",[`${er}-align-${lr}`]:lr,[`${er}-gap-row-${Wt}`]:Vt,[`${er}-gap-col-${Ht}`]:qt},$t,_t,pr),fr=classNames(`${er}-item`,(rt=Nt==null?void 0:Nt.item)!==null&&rt!==void 0?rt:(st=ut==null?void 0:ut.classNames)===null||st===void 0?void 0:st.item);let dr=0;const yr=Zt.map((mr,Sr)=>{var Tr,jr;mr!=null&&(dr=Sr);const Or=mr&&mr.key||`${fr}-${Sr}`;return reactExports.createElement(Item$3,{className:fr,key:Or,index:Sr,split:It,style:(Tr=kt==null?void 0:kt.item)!==null&&Tr!==void 0?Tr:(jr=ut==null?void 0:ut.styles)===null||jr===void 0?void 0:jr.item},mr)}),$r=reactExports.useMemo(()=>({latestIndex:dr}),[dr]);if(Zt.length===0)return null;const Er={};return jt&&(Er.flexWrap="wrap"),!qt&&Xt&&(Er.columnGap=Ht),!Vt&&Gt&&(Er.rowGap=Wt),cr(reactExports.createElement("div",Object.assign({ref:et,className:hr,style:Object.assign(Object.assign(Object.assign({},Er),ut==null?void 0:ut.style),At)},Ft),reactExports.createElement(SpaceContextProvider,{value:$r},yr)))}),CompoundedSpace=Space;CompoundedSpace.Compact=Compact;const Space$1=CompoundedSpace;function useDebounce(_e){const[et,rt]=reactExports.useState(_e);return reactExports.useEffect(()=>{const st=setTimeout(()=>{rt(_e)},_e.length?0:10);return()=>{clearTimeout(st)}},[_e]),et}const genFormValidateMotionStyle=_e=>{const{componentCls:et}=_e,rt=`${et}-show-help`,st=`${et}-show-help-item`;return{[rt]:{transition:`opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[st]:{overflow:"hidden",transition:`height ${_e.motionDurationSlow} ${_e.motionEaseInOut}, +`,SIZING_STYLE=["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"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=_e.getAttribute("id")||_e.getAttribute("data-reactid")||_e.getAttribute("name");if(et&&computedStyleCache[rt])return computedStyleCache[rt];var st=window.getComputedStyle(_e),ct=st.getPropertyValue("box-sizing")||st.getPropertyValue("-moz-box-sizing")||st.getPropertyValue("-webkit-box-sizing"),ut=parseFloat(st.getPropertyValue("padding-bottom"))+parseFloat(st.getPropertyValue("padding-top")),ft=parseFloat(st.getPropertyValue("border-bottom-width"))+parseFloat(st.getPropertyValue("border-top-width")),gt=SIZING_STYLE.map(function($t){return"".concat($t,":").concat(st.getPropertyValue($t))}).join(";"),xt={sizingStyle:gt,paddingSize:ut,borderSize:ft,boxSizing:ct};return et&&rt&&(computedStyleCache[rt]=xt),xt}function calculateAutoSizeStyle(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),_e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",_e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var ct=calculateNodeStyling(_e,et),ut=ct.paddingSize,ft=ct.borderSize,gt=ct.boxSizing,xt=ct.sizingStyle;hiddenTextarea.setAttribute("style","".concat(xt,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=_e.value||_e.placeholder||"";var $t=void 0,_t=void 0,wt,Tt=hiddenTextarea.scrollHeight;if(gt==="border-box"?Tt+=ft:gt==="content-box"&&(Tt-=ut),rt!==null||st!==null){hiddenTextarea.value=" ";var Rt=hiddenTextarea.scrollHeight-ut;rt!==null&&($t=Rt*rt,gt==="border-box"&&($t=$t+ut+ft),Tt=Math.max($t,Tt)),st!==null&&(_t=Rt*st,gt==="border-box"&&(_t=_t+ut+ft),wt=Tt>_t?"":"hidden",Tt=Math.min(_t,Tt))}var It={height:Tt,overflowY:wt,resize:"none"};return $t&&(It.minHeight=$t),_t&&(It.maxHeight=_t),It}var _excluded$13=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RESIZE_START=0,RESIZE_MEASURING=1,RESIZE_STABLE=2,ResizableTextArea=reactExports.forwardRef(function(_e,et){var rt=_e,st=rt.prefixCls;rt.onPressEnter;var ct=rt.defaultValue,ut=rt.value,ft=rt.autoSize,gt=rt.onResize,xt=rt.className,$t=rt.style,_t=rt.disabled,wt=rt.onChange;rt.onInternalAutoSize;var Tt=_objectWithoutProperties$2(rt,_excluded$13),Rt=useMergedState(ct,{value:ut,postState:function(Tr){return Tr??""}}),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=function(Tr){jt(Tr.target.value),wt==null||wt(Tr)},kt=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return{textArea:kt.current}});var Ft=reactExports.useMemo(function(){return ft&&_typeof$e(ft)==="object"?[ft.minRows,ft.maxRows]:[]},[ft]),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=!!ft,Xt=function(){try{if(document.activeElement===kt.current){var Tr=kt.current,Mr=Tr.selectionStart,Or=Tr.selectionEnd,wr=Tr.scrollTop;kt.current.setSelectionRange(Mr,Or),kt.current.scrollTop=wr}}catch{}},Gt=reactExports.useState(RESIZE_STABLE),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=reactExports.useState(),ur=_slicedToArray$3(cr,2),fr=ur[0],hr=ur[1],pr=function(){lr(RESIZE_START)};useLayoutEffect$3(function(){qt&&pr()},[ut,Wt,Vt,qt]),useLayoutEffect$3(function(){if(er===RESIZE_START)lr(RESIZE_MEASURING);else if(er===RESIZE_MEASURING){var Er=calculateAutoSizeStyle(kt.current,!1,Wt,Vt);lr(RESIZE_STABLE),hr(Er)}else Xt()},[er]);var dr=reactExports.useRef(),yr=function(){wrapperRaf.cancel(dr.current)},Sr=function(Tr){er===RESIZE_STABLE&&(gt==null||gt(Tr),ft&&(yr(),dr.current=wrapperRaf(function(){pr()})))};reactExports.useEffect(function(){return yr},[]);var br=qt?fr:null,mr=_objectSpread2(_objectSpread2({},$t),br);return(er===RESIZE_START||er===RESIZE_MEASURING)&&(mr.overflowY="hidden",mr.overflowX="hidden"),reactExports.createElement(RefResizeObserver,{onResize:Sr,disabled:!(ft||gt)},reactExports.createElement("textarea",_extends$b({},Tt,{ref:kt,style:mr,className:classNames(st,xt,_defineProperty$c({},"".concat(st,"-disabled"),_t)),disabled:_t,value:At,onChange:Nt})))}),_excluded$12=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],TextArea$2=React$1.forwardRef(function(_e,et){var rt,st,ct=_e.defaultValue,ut=_e.value,ft=_e.onFocus,gt=_e.onBlur,xt=_e.onChange,$t=_e.allowClear,_t=_e.maxLength,wt=_e.onCompositionStart,Tt=_e.onCompositionEnd,Rt=_e.suffix,It=_e.prefixCls,At=It===void 0?"rc-textarea":It,jt=_e.showCount,Nt=_e.count,kt=_e.className,Ft=_e.style,Ht=_e.disabled,Wt=_e.hidden,Vt=_e.classNames,qt=_e.styles,Xt=_e.onResize,Gt=_objectWithoutProperties$2(_e,_excluded$12),Zt=useMergedState(ct,{value:ut,defaultValue:ct}),er=_slicedToArray$3(Zt,2),lr=er[0],cr=er[1],ur=lr==null?"":String(lr),fr=React$1.useState(!1),hr=_slicedToArray$3(fr,2),pr=hr[0],dr=hr[1],yr=React$1.useRef(!1),Sr=React$1.useState(null),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useRef(null),Mr=function(){var zr;return(zr=Tr.current)===null||zr===void 0?void 0:zr.textArea},Or=function(){Mr().focus()};reactExports.useImperativeHandle(et,function(){return{resizableTextArea:Tr.current,focus:Or,blur:function(){Mr().blur()}}}),reactExports.useEffect(function(){dr(function($r){return!Ht&&$r})},[Ht]);var wr=React$1.useState(null),Cr=_slicedToArray$3(wr,2),Nr=Cr[0],Rr=Cr[1];React$1.useEffect(function(){if(Nr){var $r;($r=Mr()).setSelectionRange.apply($r,_toConsumableArray$3(Nr))}},[Nr]);var Pr=useCount(Nt,jt),jr=(rt=Pr.max)!==null&&rt!==void 0?rt:_t,kr=Number(jr)>0,Fr=Pr.strategy(ur),_r=!!jr&&Fr>jr,Br=function(zr,qr){var Wr=qr;!yr.current&&Pr.exceedFormatter&&Pr.max&&Pr.strategy(qr)>Pr.max&&(Wr=Pr.exceedFormatter(qr,{max:Pr.max}),qr!==Wr&&Rr([Mr().selectionStart||0,Mr().selectionEnd||0])),cr(Wr),resolveOnChange(zr.currentTarget,zr,xt,Wr)},Dr=function(zr){yr.current=!0,wt==null||wt(zr)},Xr=function(zr){yr.current=!1,Br(zr,zr.currentTarget.value),Tt==null||Tt(zr)},Kr=function(zr){Br(zr,zr.target.value)},Hr=function(zr){var qr=Gt.onPressEnter,Wr=Gt.onKeyDown;zr.key==="Enter"&&qr&&qr(zr),Wr==null||Wr(zr)},Vr=function(zr){dr(!0),ft==null||ft(zr)},ln=function(zr){dr(!1),gt==null||gt(zr)},Qr=function(zr){cr(""),Or(),resolveOnChange(Mr(),zr,xt)},Zr=Rt,vn;Pr.show&&(Pr.showFormatter?vn=Pr.showFormatter({value:ur,count:Fr,maxLength:jr}):vn="".concat(Fr).concat(kr?" / ".concat(jr):""),Zr=React$1.createElement(React$1.Fragment,null,Zr,React$1.createElement("span",{className:classNames("".concat(At,"-data-count"),Vt==null?void 0:Vt.count),style:qt==null?void 0:qt.count},vn)));var vr=function(zr){var qr;Xt==null||Xt(zr),(qr=Mr())!==null&&qr!==void 0&&qr.style.height&&Er(!0)},gr=!Gt.autoSize&&!jt&&!$t;return React$1.createElement(BaseInput,{value:ur,allowClear:$t,handleReset:Qr,suffix:Zr,prefixCls:At,classNames:_objectSpread2(_objectSpread2({},Vt),{},{affixWrapper:classNames(Vt==null?void 0:Vt.affixWrapper,(st={},_defineProperty$c(st,"".concat(At,"-show-count"),jt),_defineProperty$c(st,"".concat(At,"-textarea-allow-clear"),$t),st))}),disabled:Ht,focused:pr,className:classNames(kt,_r&&"".concat(At,"-out-of-range")),style:_objectSpread2(_objectSpread2({},Ft),mr&&!gr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vn=="string"?vn:void 0}},hidden:Wt},React$1.createElement(ResizableTextArea,_extends$b({},Gt,{maxLength:_t,onKeyDown:Hr,onChange:Kr,onFocus:Vr,onBlur:ln,onCompositionStart:Dr,onCompositionEnd:Xr,className:classNames(Vt==null?void 0:Vt.textarea),style:_objectSpread2(_objectSpread2({},qt==null?void 0:qt.textarea),{},{resize:Ft==null?void 0:Ft.resize}),disabled:Ht,prefixCls:At,onResize:vr,ref:Tr})))}),__rest$z=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt;const{prefixCls:st,bordered:ct=!0,size:ut,disabled:ft,status:gt,allowClear:xt,classNames:$t,rootClassName:_t,className:wt,variant:Tt}=_e,Rt=__rest$z(_e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:It,direction:At}=reactExports.useContext(ConfigContext$1),jt=useSize(ut),Nt=reactExports.useContext(DisabledContext$2),kt=ft??Nt,{status:Ft,hasFeedback:Ht,feedbackIcon:Wt}=reactExports.useContext(FormItemInputContext),Vt=getMergedStatus(Ft,gt),qt=reactExports.useRef(null);reactExports.useImperativeHandle(et,()=>{var hr;return{resizableTextArea:(hr=qt.current)===null||hr===void 0?void 0:hr.resizableTextArea,focus:pr=>{var dr,yr;triggerFocus((yr=(dr=qt.current)===null||dr===void 0?void 0:dr.resizableTextArea)===null||yr===void 0?void 0:yr.textArea,pr)},blur:()=>{var pr;return(pr=qt.current)===null||pr===void 0?void 0:pr.blur()}}});const Xt=It("input",st);let Gt;typeof xt=="object"&&(xt!=null&&xt.clearIcon)?Gt=xt:xt&&(Gt={clearIcon:reactExports.createElement(CloseCircleFilled$3,null)});const Zt=useCSSVarCls(Xt),[er,lr,cr]=useStyle$J(Xt,Zt),[ur,fr]=useVariant(Tt,ct);return er(reactExports.createElement(TextArea$2,Object.assign({},Rt,{disabled:kt,allowClear:Gt,className:classNames(cr,Zt,wt,_t),classNames:Object.assign(Object.assign({},$t),{textarea:classNames({[`${Xt}-sm`]:jt==="small",[`${Xt}-lg`]:jt==="large"},lr,$t==null?void 0:$t.textarea),variant:classNames({[`${Xt}-${ur}`]:fr},getStatusClassNames(Xt,Vt)),affixWrapper:classNames(`${Xt}-textarea-affix-wrapper`,{[`${Xt}-affix-wrapper-rtl`]:At==="rtl",[`${Xt}-affix-wrapper-sm`]:jt==="small",[`${Xt}-affix-wrapper-lg`]:jt==="large",[`${Xt}-textarea-show-count`]:_e.showCount||((rt=_e.count)===null||rt===void 0?void 0:rt.show)},lr)}),prefixCls:Xt,suffix:Ht&&reactExports.createElement("span",{className:`${Xt}-textarea-suffix`},Wt),ref:qt})))}),TextArea$1=TextArea,Input$2=InternalInput;Input$2.Group=Group$4;Input$2.Search=Search$1;Input$2.TextArea=TextArea$1;Input$2.Password=Password$2;const Input$3=Input$2,hexReg=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,isHexString=_e=>hexReg.test(`#${_e}`),ColorHexInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-hex-input`,[ut,ft]=reactExports.useState(rt==null?void 0:rt.toHex());reactExports.useEffect(()=>{const xt=rt==null?void 0:rt.toHex();isHexString(xt)&&rt&&ft(toHexFormat(xt))},[rt]);const gt=xt=>{const $t=xt.target.value;ft(toHexFormat($t)),isHexString(toHexFormat($t,!0))&&(st==null||st(generateColor($t)))};return React$1.createElement(Input$3,{className:ct,value:ut,prefix:"#",onChange:gt,size:"small"})},ColorHexInput$1=ColorHexInput,ColorHsbInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-hsb-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=(xt,$t)=>{const _t=ut.toHsb();_t[$t]=$t==="h"?xt:(xt||0)/100;const wt=generateColor(_t);rt||ft(wt),st==null||st(wt)};return React$1.createElement("div",{className:ct},React$1.createElement(ColorSteppers$1,{max:360,min:0,value:Number(ut.toHsb().h),prefixCls:et,className:ct,formatter:xt=>getRoundNumber(xt||0).toString(),onChange:xt=>gt(Number(xt),"h")}),React$1.createElement(ColorSteppers$1,{max:100,min:0,value:Number(ut.toHsb().s)*100,prefixCls:et,className:ct,formatter:xt=>`${getRoundNumber(xt||0)}%`,onChange:xt=>gt(Number(xt),"s")}),React$1.createElement(ColorSteppers$1,{max:100,min:0,value:Number(ut.toHsb().b)*100,prefixCls:et,className:ct,formatter:xt=>`${getRoundNumber(xt||0)}%`,onChange:xt=>gt(Number(xt),"b")}))},ColorHsbInput$1=ColorHsbInput,ColorRgbInput=_e=>{let{prefixCls:et,value:rt,onChange:st}=_e;const ct=`${et}-rgb-input`,[ut,ft]=reactExports.useState(generateColor(rt||"#000"));reactExports.useEffect(()=>{rt&&ft(rt)},[rt]);const gt=(xt,$t)=>{const _t=ut.toRgb();_t[$t]=xt||0;const wt=generateColor(_t);rt||ft(wt),st==null||st(wt)};return React$1.createElement("div",{className:ct},React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().r),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"r")}),React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().g),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"g")}),React$1.createElement(ColorSteppers$1,{max:255,min:0,value:Number(ut.toRgb().b),prefixCls:et,className:ct,onChange:xt=>gt(Number(xt),"b")}))},ColorRgbInput$1=ColorRgbInput,selectOptions=[ColorFormat.hex,ColorFormat.hsb,ColorFormat.rgb].map(_e=>({value:_e,label:_e.toLocaleUpperCase()})),ColorInput=_e=>{const{prefixCls:et,format:rt,value:st,disabledAlpha:ct,onFormatChange:ut,onChange:ft}=_e,[gt,xt]=useMergedState(ColorFormat.hex,{value:rt,onChange:ut}),$t=`${et}-input`,_t=Tt=>{xt(Tt)},wt=reactExports.useMemo(()=>{const Tt={value:st,prefixCls:et,onChange:ft};switch(gt){case ColorFormat.hsb:return React$1.createElement(ColorHsbInput$1,Object.assign({},Tt));case ColorFormat.rgb:return React$1.createElement(ColorRgbInput$1,Object.assign({},Tt));case ColorFormat.hex:default:return React$1.createElement(ColorHexInput$1,Object.assign({},Tt))}},[gt,et,st,ft]);return React$1.createElement("div",{className:`${$t}-container`},React$1.createElement(Select$3,{value:gt,variant:"borderless",getPopupContainer:Tt=>Tt,popupMatchSelectWidth:68,placement:"bottomRight",onChange:_t,className:`${et}-format-select`,size:"small",options:selectOptions}),React$1.createElement("div",{className:$t},wt),!ct&&React$1.createElement(ColorAlphaInput$1,{prefixCls:et,value:st,onChange:ft}))},ColorInput$1=ColorInput;var __rest$y=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const _e=reactExports.useContext(PanelPickerContext),{prefixCls:et,colorCleared:rt,allowClear:st,value:ct,disabledAlpha:ut,onChange:ft,onClear:gt,onChangeComplete:xt}=_e,$t=__rest$y(_e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return React$1.createElement(React$1.Fragment,null,st&&React$1.createElement(ColorClear$1,Object.assign({prefixCls:et,value:ct,colorCleared:rt,onChange:_t=>{ft==null||ft(_t),gt==null||gt()}},$t)),React$1.createElement(ColorPicker$3,{prefixCls:et,value:ct==null?void 0:ct.toHsb(),disabledAlpha:ut,onChange:(_t,wt)=>ft==null?void 0:ft(_t,wt,!0),onChangeComplete:xt}),React$1.createElement(ColorInput$1,Object.assign({value:ct,onChange:ft,prefixCls:et,disabledAlpha:ut},$t)))},PanelPicker$1=PanelPicker,genPresetColor$1=_e=>_e.map(et=>(et.colors=et.colors.map(generateColor),et)),isBright=(_e,et)=>{const{r:rt,g:st,b:ct,a:ut}=_e.toRgb(),ft=new Color(_e.toRgbString()).onBackground(et).toHsv();return ut<=.5?ft.v>.5:rt*.299+st*.587+ct*.114>192},genCollapsePanelKey=_e=>{let{label:et}=_e;return`panel-${et}`},ColorPresets=_e=>{let{prefixCls:et,presets:rt,value:st,onChange:ct}=_e;const[ut]=useLocale$3("ColorPicker"),[,ft]=useToken$4(),[gt]=useMergedState(genPresetColor$1(rt),{value:genPresetColor$1(rt),postState:genPresetColor$1}),xt=`${et}-presets`,$t=reactExports.useMemo(()=>gt.reduce((Tt,Rt)=>{const{defaultOpen:It=!0}=Rt;return It&&Tt.push(genCollapsePanelKey(Rt)),Tt},[]),[gt]),_t=Tt=>{ct==null||ct(Tt)},wt=gt.map(Tt=>{var Rt;return{key:genCollapsePanelKey(Tt),label:React$1.createElement("div",{className:`${xt}-label`},Tt==null?void 0:Tt.label),children:React$1.createElement("div",{className:`${xt}-items`},Array.isArray(Tt==null?void 0:Tt.colors)&&((Rt=Tt.colors)===null||Rt===void 0?void 0:Rt.length)>0?Tt.colors.map((It,At)=>React$1.createElement(ColorBlock,{key:`preset-${At}-${It.toHexString()}`,color:generateColor(It).toRgbString(),prefixCls:et,className:classNames(`${xt}-color`,{[`${xt}-color-checked`]:It.toHexString()===(st==null?void 0:st.toHexString()),[`${xt}-color-bright`]:isBright(It,ft.colorBgElevated)}),onClick:()=>_t(It)})):React$1.createElement("span",{className:`${xt}-empty`},ut.presetEmpty))}});return React$1.createElement("div",{className:xt},React$1.createElement(Collapse$1,{defaultActiveKey:$t,ghost:!0,items:wt}))},ColorPresets$1=ColorPresets,PanelPresets=()=>{const{prefixCls:_e,value:et,presets:rt,onChange:st}=reactExports.useContext(PanelPresetsContext);return Array.isArray(rt)?React$1.createElement(ColorPresets$1,{value:et,presets:rt,prefixCls:_e,onChange:st}):null},PanelPresets$1=PanelPresets;var __rest$x=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,presets:rt,panelRender:st,color:ct,onChange:ut,onClear:ft}=_e,gt=__rest$x(_e,["prefixCls","presets","panelRender","color","onChange","onClear"]),xt=`${et}-inner`,$t=Object.assign({prefixCls:et,value:ct,onChange:ut,onClear:ft},gt),_t=React$1.useMemo(()=>({prefixCls:et,value:ct,presets:rt,onChange:ut}),[et,ct,rt,ut]),wt=React$1.createElement("div",{className:`${xt}-content`},React$1.createElement(PanelPicker$1,null),Array.isArray(rt)&&React$1.createElement(Divider$1,null),React$1.createElement(PanelPresets$1,null));return React$1.createElement(PanelPickerProvider,{value:$t},React$1.createElement(PanelPresetsProvider,{value:_t},React$1.createElement("div",{className:xt},typeof st=="function"?st(wt,{components:{Picker:PanelPicker$1,Presets:PanelPresets$1}}):wt)))},ColorPickerPanel$1=ColorPickerPanel;var __rest$w=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{color:rt,prefixCls:st,open:ct,colorCleared:ut,disabled:ft,format:gt,className:xt,showText:$t}=_e,_t=__rest$w(_e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),wt=`${st}-trigger`,Tt=reactExports.useMemo(()=>ut?React$1.createElement(ColorClear$1,{prefixCls:st}):React$1.createElement(ColorBlock,{prefixCls:st,color:rt.toRgbString()}),[rt,ut,st]),Rt=()=>{const At=rt.toHexString().toUpperCase(),jt=getAlphaColor$2(rt);switch(gt){case"rgb":return rt.toRgbString();case"hsb":return rt.toHsbString();case"hex":default:return jt<100?`${At.slice(0,7)},${jt}%`:At}},It=()=>{if(typeof $t=="function")return $t(rt);if($t)return Rt()};return React$1.createElement("div",Object.assign({ref:et,className:classNames(wt,xt,{[`${wt}-active`]:ct,[`${wt}-disabled`]:ft})},_t),Tt,$t&&React$1.createElement("div",{className:`${wt}-text`},It()))}),ColorTrigger$1=ColorTrigger;function hasValue$1(_e){return _e!==void 0}const useColorState=(_e,et)=>{const{defaultValue:rt,value:st}=et,[ct,ut]=reactExports.useState(()=>{let ft;return hasValue$1(st)?ft=st:hasValue$1(rt)?ft=rt:ft=_e,generateColor(ft||"")});return reactExports.useEffect(()=>{st&&ut(generateColor(st))},[st]),[ct,ut]},getTransBg=(_e,et)=>({backgroundImage:`conic-gradient(${et} 0 25%, transparent 0 50%, ${et} 0 75%, transparent 0)`,backgroundSize:`${_e} ${_e}`}),genColorBlockStyle=(_e,et)=>{const{componentCls:rt,borderRadiusSM:st,colorPickerInsetShadow:ct,lineWidth:ut,colorFillSecondary:ft}=_e;return{[`${rt}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:st,width:et,height:et,boxShadow:ct},getTransBg("50%",_e.colorFillSecondary)),{[`${rt}-color-block-inner`]:{width:"100%",height:"100%",border:`${unit$1(ut)} solid ${ft}`,borderRadius:"inherit"}})}},genInputStyle=_e=>{const{componentCls:et,antCls:rt,fontSizeSM:st,lineHeightSM:ct,colorPickerAlphaInputWidth:ut,marginXXS:ft,paddingXXS:gt,controlHeightSM:xt,marginXS:$t,fontSizeIcon:_t,paddingXS:wt,colorTextPlaceholder:Tt,colorPickerInputNumberHandleWidth:Rt,lineWidth:It}=_e;return{[`${et}-input-container`]:{display:"flex",[`${et}-steppers${rt}-input-number`]:{fontSize:st,lineHeight:ct,[`${rt}-input-number-input`]:{paddingInlineStart:gt,paddingInlineEnd:0},[`${rt}-input-number-handler-wrap`]:{width:Rt}},[`${et}-steppers${et}-alpha-input`]:{flex:`0 0 ${unit$1(ut)}`,marginInlineStart:ft},[`${et}-format-select${rt}-select`]:{marginInlineEnd:$t,width:"auto","&-single":{[`${rt}-select-selector`]:{padding:0,border:0},[`${rt}-select-arrow`]:{insetInlineEnd:0},[`${rt}-select-selection-item`]:{paddingInlineEnd:_e.calc(_t).add(ft).equal(),fontSize:st,lineHeight:`${unit$1(xt)}`},[`${rt}-select-item-option-content`]:{fontSize:st,lineHeight:ct},[`${rt}-select-dropdown`]:{[`${rt}-select-item`]:{minHeight:"auto"}}}},[`${et}-input`]:{gap:ft,alignItems:"center",flex:1,width:0,[`${et}-hsb-input,${et}-rgb-input`]:{display:"flex",gap:ft,alignItems:"center"},[`${et}-steppers`]:{flex:1},[`${et}-hex-input${rt}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit$1(wt)}`,[`${rt}-input`]:{fontSize:st,textTransform:"uppercase",lineHeight:unit$1(_e.calc(xt).sub(_e.calc(It).mul(2)).equal())},[`${rt}-input-prefix`]:{color:Tt}}}}}},genPickerStyle=_e=>{const{componentCls:et,controlHeightLG:rt,borderRadiusSM:st,colorPickerInsetShadow:ct,marginSM:ut,colorBgElevated:ft,colorFillSecondary:gt,lineWidthBold:xt,colorPickerHandlerSize:$t,colorPickerHandlerSizeSM:_t,colorPickerSliderHeight:wt}=_e;return{[`${et}-select`]:{[`${et}-palette`]:{minHeight:_e.calc(rt).mul(4).equal(),overflow:"hidden",borderRadius:st},[`${et}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:ct,inset:0},marginBottom:ut},[`${et}-handler`]:{width:$t,height:$t,border:`${unit$1(xt)} solid ${ft}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${ct}, 0 0 0 1px ${gt}`,"&-sm":{width:_t,height:_t}},[`${et}-slider`]:{borderRadius:_e.calc(wt).div(2).equal(),[`${et}-palette`]:{height:wt},[`${et}-gradient`]:{borderRadius:_e.calc(wt).div(2).equal(),boxShadow:ct},"&-alpha":getTransBg(`${unit$1(wt)}`,_e.colorFillSecondary),"&-hue":{marginBottom:ut}},[`${et}-slider-container`]:{display:"flex",gap:ut,marginBottom:ut,[`${et}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${et}-slider`]:{flex:1,marginBottom:0}}}}}},genPresetsStyle=_e=>{const{componentCls:et,antCls:rt,colorTextQuaternary:st,paddingXXS:ct,colorPickerPresetColorSize:ut,fontSizeSM:ft,colorText:gt,lineHeightSM:xt,lineWidth:$t,borderRadius:_t,colorFill:wt,colorWhite:Tt,marginXXS:Rt,paddingXS:It,fontHeightSM:At}=_e;return{[`${et}-presets`]:{[`${rt}-collapse-item > ${rt}-collapse-header`]:{padding:0,[`${rt}-collapse-expand-icon`]:{height:At,color:st,paddingInlineEnd:ct}},[`${rt}-collapse`]:{display:"flex",flexDirection:"column",gap:Rt},[`${rt}-collapse-item > ${rt}-collapse-content > ${rt}-collapse-content-box`]:{padding:`${unit$1(It)} 0`},"&-label":{fontSize:ft,color:gt,lineHeight:xt},"&-items":{display:"flex",flexWrap:"wrap",gap:_e.calc(Rt).mul(1.5).equal(),[`${et}-presets-color`]:{position:"relative",cursor:"pointer",width:ut,height:ut,"&::before":{content:'""',pointerEvents:"none",width:_e.calc(ut).add(_e.calc($t).mul(4)).equal(),height:_e.calc(ut).add(_e.calc($t).mul(4)).equal(),position:"absolute",top:_e.calc($t).mul(-2).equal(),insetInlineStart:_e.calc($t).mul(-2).equal(),borderRadius:_t,border:`${unit$1($t)} solid transparent`,transition:`border-color ${_e.motionDurationMid} ${_e.motionEaseInBack}`},"&:hover::before":{borderColor:wt},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:_e.calc(ut).div(13).mul(5).equal(),height:_e.calc(ut).div(13).mul(8).equal(),border:`${unit$1(_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}`},[`&${et}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:Tt,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${_e.motionDurationMid} ${_e.motionEaseOutBack} ${_e.motionDurationFast}`},[`&${et}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ft,color:st}}}},genActiveStyle=(_e,et,rt)=>({borderInlineEndWidth:_e.lineWidth,borderColor:et,boxShadow:`0 0 0 ${unit$1(_e.controlOutlineWidth)} ${rt}`,outline:0}),genRtlStyle$1=_e=>{const{componentCls:et}=_e;return{"&-rtl":{[`${et}-presets-color`]:{"&::after":{direction:"ltr"}},[`${et}-clear`]:{"&::after":{direction:"ltr"}}}}},genClearStyle=(_e,et,rt)=>{const{componentCls:st,borderRadiusSM:ct,lineWidth:ut,colorSplit:ft,red6:gt}=_e;return{[`${st}-clear`]:Object.assign(Object.assign({width:et,height:et,borderRadius:ct,border:`${unit$1(ut)} solid ${ft}`,position:"relative",overflow:"hidden"},rt),{"&::after":{content:'""',position:"absolute",insetInlineEnd:ut,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:gt}})}},genStatusStyle=_e=>{const{componentCls:et,colorError:rt,colorWarning:st,colorErrorHover:ct,colorWarningHover:ut,colorErrorOutline:ft,colorWarningOutline:gt}=_e;return{[`&${et}-status-error`]:{borderColor:rt,"&:hover":{borderColor:ct},[`&${et}-trigger-active`]:Object.assign({},genActiveStyle(_e,rt,ft))},[`&${et}-status-warning`]:{borderColor:st,"&:hover":{borderColor:ut},[`&${et}-trigger-active`]:Object.assign({},genActiveStyle(_e,st,gt))}}},genSizeStyle=_e=>{const{componentCls:et,controlHeightLG:rt,controlHeightSM:st,controlHeight:ct,controlHeightXS:ut,borderRadius:ft,borderRadiusSM:gt,borderRadiusXS:xt,borderRadiusLG:$t,fontSizeLG:_t}=_e;return{[`&${et}-lg`]:{minWidth:rt,height:rt,borderRadius:$t,[`${et}-color-block, ${et}-clear`]:{width:ct,height:ct,borderRadius:ft},[`${et}-trigger-text`]:{fontSize:_t}},[`&${et}-sm`]:{minWidth:st,height:st,borderRadius:gt,[`${et}-color-block, ${et}-clear`]:{width:ut,height:ut,borderRadius:xt}}}},genColorPickerStyle=_e=>{const{antCls:et,componentCls:rt,colorPickerWidth:st,colorPrimary:ct,motionDurationMid:ut,colorBgElevated:ft,colorTextDisabled:gt,colorText:xt,colorBgContainerDisabled:$t,borderRadius:_t,marginXS:wt,marginSM:Tt,controlHeight:Rt,controlHeightSM:It,colorBgTextActive:At,colorPickerPresetColorSize:jt,colorPickerPreviewSize:Nt,lineWidth:kt,colorBorder:Ft,paddingXXS:Ht,fontSize:Wt,colorPrimaryHover:Vt,controlOutline:qt}=_e;return[{[rt]:Object.assign({[`${rt}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:st,[`& > ${et}-divider`]:{margin:`${unit$1(Tt)} 0 ${unit$1(wt)}`}},[`${rt}-panel`]:Object.assign({},genPickerStyle(_e))},genColorBlockStyle(_e,Nt)),genInputStyle(_e)),genPresetsStyle(_e)),genClearStyle(_e,jt,{marginInlineStart:"auto",marginBottom:wt})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Rt,height:Rt,borderRadius:_t,border:`${unit$1(kt)} solid ${Ft}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${ut}`,background:ft,padding:_e.calc(Ht).sub(kt).equal(),[`${rt}-trigger-text`]:{marginInlineStart:wt,marginInlineEnd:_e.calc(wt).sub(_e.calc(Ht).sub(kt)).equal(),fontSize:Wt,color:xt},"&:hover":{borderColor:Vt},[`&${rt}-trigger-active`]:Object.assign({},genActiveStyle(_e,ct,qt)),"&-disabled":{color:gt,background:$t,cursor:"not-allowed","&:hover":{borderColor:At},[`${rt}-trigger-text`]:{color:gt}}},genClearStyle(_e,It)),genColorBlockStyle(_e,It)),genStatusStyle(_e)),genSizeStyle(_e))},genRtlStyle$1(_e))}]},useStyle$A=genStyleHooks("ColorPicker",_e=>{const{colorTextQuaternary:et,marginSM:rt}=_e,st=8,ct=merge$7(_e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${et}`,colorPickerSliderHeight:st,colorPickerPreviewSize:_e.calc(st).mul(2).add(rt).equal()});return[genColorPickerStyle(ct)]});var __rest$v=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{value:et,defaultValue:rt,format:st,defaultFormat:ct,allowClear:ut=!1,presets:ft,children:gt,trigger:xt="click",open:$t,disabled:_t,placement:wt="bottomLeft",arrow:Tt=!0,panelRender:Rt,showText:It,style:At,className:jt,size:Nt,rootClassName:kt,prefixCls:Ft,styles:Ht,disabledAlpha:Wt=!1,onFormatChange:Vt,onChange:qt,onClear:Xt,onOpenChange:Gt,onChangeComplete:Zt,getPopupContainer:er,autoAdjustOverflow:lr=!0,destroyTooltipOnHide:cr}=_e,ur=__rest$v(_e,["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"]),{getPrefixCls:fr,direction:hr,colorPicker:pr}=reactExports.useContext(ConfigContext$1),dr=reactExports.useContext(DisabledContext$2),yr=_t??dr,[Sr,br]=useColorState("",{value:et,defaultValue:rt}),[mr,Er]=useMergedState(!1,{value:$t,postState:gr=>!yr&&gr,onChange:Gt}),[Tr,Mr]=useMergedState(st,{value:st,defaultValue:ct,onChange:Vt}),[Or,wr]=reactExports.useState(!et&&!rt),Cr=fr("color-picker",Ft),Nr=reactExports.useMemo(()=>getAlphaColor$2(Sr)<100,[Sr]),{status:Rr}=React$1.useContext(FormItemInputContext),Pr=useSize(Nt),jr=useCSSVarCls(Cr),[kr,Fr,_r]=useStyle$A(Cr,jr),Br={[`${Cr}-rtl`]:hr},Dr=classNames(kt,_r,jr,Br),Xr=classNames(getStatusClassNames(Cr,Rr),{[`${Cr}-sm`]:Pr==="small",[`${Cr}-lg`]:Pr==="large"},pr==null?void 0:pr.className,Dr,jt,Fr),Kr=classNames(Cr,Dr),Hr=reactExports.useRef(!0),Vr=(gr,$r,zr)=>{let qr=generateColor(gr);(Or||(et===null||!et&&rt===null))&&(wr(!1),getAlphaColor$2(Sr)===0&&$r!=="alpha"&&(qr=genAlphaColor(qr))),Wt&&Nr&&(qr=genAlphaColor(qr)),zr?Hr.current=!1:Zt==null||Zt(qr),br(qr),qt==null||qt(qr,qr.toHexString())},ln=()=>{wr(!0),Xt==null||Xt()},Qr=gr=>{Hr.current=!0;let $r=generateColor(gr);Wt&&Nr&&($r=genAlphaColor(gr)),Zt==null||Zt($r)},Zr={open:mr,trigger:xt,placement:wt,arrow:Tt,rootClassName:kt,getPopupContainer:er,autoAdjustOverflow:lr,destroyTooltipOnHide:cr},vn={prefixCls:Cr,color:Sr,allowClear:ut,colorCleared:Or,disabled:yr,disabledAlpha:Wt,presets:ft,panelRender:Rt,format:Tr,onFormatChange:Mr,onChangeComplete:Qr},vr=Object.assign(Object.assign({},pr==null?void 0:pr.style),At);return kr(React$1.createElement(Popover$2,Object.assign({style:Ht==null?void 0:Ht.popup,overlayInnerStyle:Ht==null?void 0:Ht.popupOverlayInner,onOpenChange:gr=>{Hr.current&&!yr&&Er(gr)},content:React$1.createElement(NoFormStyle,{override:!0,status:!0},React$1.createElement(ColorPickerPanel$1,Object.assign({},vn,{onChange:Vr,onChangeComplete:Qr,onClear:ln}))),overlayClassName:Kr},Zr),gt||React$1.createElement(ColorTrigger$1,Object.assign({open:mr,className:Xr,style:vr,color:et?generateColor(et):Sr,prefixCls:Cr,disabled:yr,colorCleared:Or,showText:It,format:Tr},ur))))},PurePanel$8=genPurePanel(ColorPicker$1,"color-picker",_e=>_e,_e=>Object.assign(Object.assign({},_e),{placement:"bottom",autoAdjustOverflow:!1}));ColorPicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$8;const ColorPicker$2=ColorPicker$1;var CalendarOutlined$2={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"};const CalendarOutlinedSvg=CalendarOutlined$2;var CalendarOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CalendarOutlinedSvg}))};const CalendarOutlined$1=reactExports.forwardRef(CalendarOutlined);var ClockCircleOutlined$2={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"};const ClockCircleOutlinedSvg=ClockCircleOutlined$2;var ClockCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:ClockCircleOutlinedSvg}))};const ClockCircleOutlined$1=reactExports.forwardRef(ClockCircleOutlined);var SwapRightOutlined$2={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"};const SwapRightOutlinedSvg=SwapRightOutlined$2;var SwapRightOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:SwapRightOutlinedSvg}))};const SwapRightOutlined$1=reactExports.forwardRef(SwapRightOutlined);function getPlaceholder(_e,et,rt){return rt!==void 0?rt:et==="year"&&_e.lang.yearPlaceholder?_e.lang.yearPlaceholder:et==="quarter"&&_e.lang.quarterPlaceholder?_e.lang.quarterPlaceholder:et==="month"&&_e.lang.monthPlaceholder?_e.lang.monthPlaceholder:et==="week"&&_e.lang.weekPlaceholder?_e.lang.weekPlaceholder:et==="time"&&_e.timePickerLocale.placeholder?_e.timePickerLocale.placeholder:_e.lang.placeholder}function getRangePlaceholder(_e,et,rt){return rt!==void 0?rt:et==="year"&&_e.lang.yearPlaceholder?_e.lang.rangeYearPlaceholder:et==="quarter"&&_e.lang.quarterPlaceholder?_e.lang.rangeQuarterPlaceholder:et==="month"&&_e.lang.monthPlaceholder?_e.lang.rangeMonthPlaceholder:et==="week"&&_e.lang.weekPlaceholder?_e.lang.rangeWeekPlaceholder:et==="time"&&_e.timePickerLocale.placeholder?_e.timePickerLocale.rangePlaceholder:_e.lang.rangePlaceholder}function transPlacement2DropdownAlign(_e,et){const rt={adjustX:1,adjustY:1};switch(et){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:rt};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:rt};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:rt};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:rt};default:return{points:_e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:rt}}}function useIcons(_e,et){const{allowClear:rt=!0}=_e,{clearIcon:st,removeIcon:ct}=useIcons$1(Object.assign(Object.assign({},_e),{prefixCls:et,componentName:"DatePicker"}));return[reactExports.useMemo(()=>rt===!1?!1:Object.assign({clearIcon:st},rt===!0?{}:rt),[rt,st]),ct]}function PickerButton(_e){return reactExports.createElement(Button$3,Object.assign({size:"small",type:"primary"},_e))}function useComponents(_e){return reactExports.useMemo(()=>Object.assign({button:PickerButton},_e),[_e])}var __rest$u=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var ct;const{prefixCls:ut,getPopupContainer:ft,components:gt,className:xt,style:$t,placement:_t,size:wt,disabled:Tt,bordered:Rt=!0,placeholder:It,popupClassName:At,dropdownClassName:jt,status:Nt,rootClassName:kt,variant:Ft}=rt,Ht=__rest$u(rt,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),Wt=reactExports.useRef(null),{getPrefixCls:Vt,direction:qt,getPopupContainer:Xt,rangePicker:Gt}=reactExports.useContext(ConfigContext$1),Zt=Vt("picker",ut),{compactSize:er,compactItemClassnames:lr}=useCompactItemContext(Zt,qt),{picker:cr}=rt,ur=Vt(),[fr,hr]=useVariant(Ft,Rt),pr=useCSSVarCls(Zt),[dr,yr,Sr]=useStyle$I(Zt,pr),[br]=useIcons(rt,Zt),mr=useComponents(gt),Er=useSize(Fr=>{var _r;return(_r=wt??er)!==null&&_r!==void 0?_r:Fr}),Tr=reactExports.useContext(DisabledContext$2),Mr=Tt??Tr,Or=reactExports.useContext(FormItemInputContext),{hasFeedback:wr,status:Cr,feedbackIcon:Nr}=Or,Rr=reactExports.createElement(reactExports.Fragment,null,cr==="time"?reactExports.createElement(ClockCircleOutlined$1,null):reactExports.createElement(CalendarOutlined$1,null),wr&&Nr);reactExports.useImperativeHandle(st,()=>Wt.current);const[Pr]=useLocale$3("Calendar",enUS$2),jr=Object.assign(Object.assign({},Pr),rt.locale),[kr]=useZIndex("DatePicker",(ct=rt.popupStyle)===null||ct===void 0?void 0:ct.zIndex);return dr(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(RefRangePicker,Object.assign({separator:reactExports.createElement("span",{"aria-label":"to",className:`${Zt}-separator`},reactExports.createElement(SwapRightOutlined$1,null)),disabled:Mr,ref:Wt,popupAlign:transPlacement2DropdownAlign(qt,_t),placeholder:getRangePlaceholder(jr,cr,It),suffixIcon:Rr,prevIcon:reactExports.createElement("span",{className:`${Zt}-prev-icon`}),nextIcon:reactExports.createElement("span",{className:`${Zt}-next-icon`}),superPrevIcon:reactExports.createElement("span",{className:`${Zt}-super-prev-icon`}),superNextIcon:reactExports.createElement("span",{className:`${Zt}-super-next-icon`}),transitionName:`${ur}-slide-up`},Ht,{className:classNames({[`${Zt}-${Er}`]:Er,[`${Zt}-${fr}`]:hr},getStatusClassNames(Zt,getMergedStatus(Cr,Nt),wr),yr,lr,xt,Gt==null?void 0:Gt.className,Sr,pr,kt),style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),$t),locale:jr.lang,prefixCls:Zt,getPopupContainer:ft||Xt,generateConfig:_e,components:mr,direction:qt,classNames:{popup:classNames(yr,At||jt,Sr,pr,kt)},styles:{popup:Object.assign(Object.assign({},rt.popupStyle),{zIndex:kr})},allowClear:br}))))})}var __rest$t=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var It;const{prefixCls:At,getPopupContainer:jt,components:Nt,style:kt,className:Ft,rootClassName:Ht,size:Wt,bordered:Vt,placement:qt,placeholder:Xt,popupClassName:Gt,dropdownClassName:Zt,disabled:er,status:lr,variant:cr}=Tt,ur=__rest$t(Tt,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant"]),{getPrefixCls:fr,direction:hr,getPopupContainer:pr,[_t]:dr}=reactExports.useContext(ConfigContext$1),yr=fr("picker",At),{compactSize:Sr,compactItemClassnames:br}=useCompactItemContext(yr,hr),mr=reactExports.useRef(null),[Er,Tr]=useVariant(cr,Vt),Mr=useCSSVarCls(yr),[Or,wr,Cr]=useStyle$I(yr,Mr);reactExports.useImperativeHandle(Rt,()=>mr.current);const Nr={showToday:!0},Rr=xt||Tt.picker,Pr=fr(),[jr,kr]=useIcons(Tt,yr),Fr=useComponents(Nt),_r=useSize(vr=>{var gr;return(gr=Wt??Sr)!==null&&gr!==void 0?gr:vr}),Br=reactExports.useContext(DisabledContext$2),Dr=er??Br,Xr=reactExports.useContext(FormItemInputContext),{hasFeedback:Kr,status:Hr,feedbackIcon:Vr}=Xr,ln=reactExports.createElement(reactExports.Fragment,null,Rr==="time"?reactExports.createElement(ClockCircleOutlined$1,null):reactExports.createElement(CalendarOutlined$1,null),Kr&&Vr),[Qr]=useLocale$3("DatePicker",enUS$2),Zr=Object.assign(Object.assign({},Qr),Tt.locale),[vn]=useZIndex("DatePicker",(It=Tt.popupStyle)===null||It===void 0?void 0:It.zIndex);return Or(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(RefPicker,Object.assign({ref:mr,placeholder:getPlaceholder(Zr,Rr,Xt),suffixIcon:ln,dropdownAlign:transPlacement2DropdownAlign(hr,qt),prevIcon:reactExports.createElement("span",{className:`${yr}-prev-icon`}),nextIcon:reactExports.createElement("span",{className:`${yr}-next-icon`}),superPrevIcon:reactExports.createElement("span",{className:`${yr}-super-prev-icon`}),superNextIcon:reactExports.createElement("span",{className:`${yr}-super-next-icon`}),transitionName:`${Pr}-slide-up`,picker:xt},Nr,ur,{locale:Zr.lang,className:classNames({[`${yr}-${_r}`]:_r,[`${yr}-${Er}`]:Tr},getStatusClassNames(yr,getMergedStatus(Hr,lr),Kr),wr,br,dr==null?void 0:dr.className,Ft,Cr,Mr,Ht),style:Object.assign(Object.assign({},dr==null?void 0:dr.style),kt),prefixCls:yr,getPopupContainer:jt||pr,generateConfig:_e,components:Fr,direction:hr,disabled:Dr,classNames:{popup:classNames(wr,Cr,Mr,Ht,Gt||Zt)},styles:{popup:Object.assign(Object.assign({},Tt.popupStyle),{zIndex:vn})},allowClear:jr,removeIcon:kr}))))})}const rt=et(),st=et("week","WeekPicker"),ct=et("month","MonthPicker"),ut=et("year","YearPicker"),ft=et("time","TimePicker"),gt=et("quarter","QuarterPicker");return{DatePicker:rt,WeekPicker:st,MonthPicker:ct,YearPicker:ut,TimePicker:ft,QuarterPicker:gt}}function generatePicker(_e){const{DatePicker:et,WeekPicker:rt,MonthPicker:st,YearPicker:ct,TimePicker:ut,QuarterPicker:ft}=generatePicker$1(_e),gt=generateRangePicker(_e),xt=et;return xt.WeekPicker=rt,xt.MonthPicker=st,xt.YearPicker=ct,xt.RangePicker=gt,xt.TimePicker=ut,xt.QuarterPicker=ft,xt}const DatePicker$1=generatePicker(generateConfig);function postPureProps(_e){const et=transPlacement2DropdownAlign(_e.direction,_e.placement);return et.overflow.adjustY=!1,et.overflow.adjustX=!1,Object.assign(Object.assign({},_e),{dropdownAlign:et})}const PurePanel$7=genPurePanel(DatePicker$1,"picker",null,postPureProps);DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$7;const PureRangePanel=genPurePanel(DatePicker$1.RangePicker,"picker",null,postPureProps);DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired=PureRangePanel;DatePicker$1.generatePicker=generatePicker;const DatePicker$2=DatePicker$1,DEFAULT_COLUMN_MAP={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},DEFAULT_COLUMN_MAP$1=DEFAULT_COLUMN_MAP,DescriptionsContext=React$1.createContext({}),DescriptionsContext$1=DescriptionsContext;var __rest$s=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);cttoArray$e(_e).map(et=>Object.assign(Object.assign({},et==null?void 0:et.props),{key:et.key}));function useItems(_e,et,rt){const st=reactExports.useMemo(()=>et||transChildren2Items(rt),[et,rt]);return reactExports.useMemo(()=>st.map(ut=>{var{span:ft}=ut,gt=__rest$s(ut,["span"]);return Object.assign(Object.assign({},gt),{span:typeof ft=="number"?ft:matchScreen(_e,ft)})}),[st,_e])}function getFilledItem(_e,et,rt){let st=_e,ct=!1;return(rt===void 0||rt>et)&&(st=Object.assign(Object.assign({},_e),{span:et}),ct=rt!==void 0),[st,ct]}function getCalcRows(_e,et){const rt=[];let st=[],ct=et,ut=!1;return _e.filter(ft=>ft).forEach((ft,gt)=>{const xt=ft==null?void 0:ft.span,$t=xt||1;if(gt===_e.length-1){const[_t,wt]=getFilledItem(ft,ct,xt);ut=ut||wt,st.push(_t),rt.push(st);return}if($t{const[rt,st]=reactExports.useMemo(()=>getCalcRows(et,_e),[et,_e]);return rt},DescriptionsItem=_e=>{let{children:et}=_e;return et},DescriptionsItem$1=DescriptionsItem;function notEmpty(_e){return _e!=null}const Cell=_e=>{const{itemPrefixCls:et,component:rt,span:st,className:ct,style:ut,labelStyle:ft,contentStyle:gt,bordered:xt,label:$t,content:_t,colon:wt,type:Tt}=_e,Rt=rt;return xt?reactExports.createElement(Rt,{className:classNames({[`${et}-item-label`]:Tt==="label",[`${et}-item-content`]:Tt==="content"},ct),style:ut,colSpan:st},notEmpty($t)&&reactExports.createElement("span",{style:ft},$t),notEmpty(_t)&&reactExports.createElement("span",{style:gt},_t)):reactExports.createElement(Rt,{className:classNames(`${et}-item`,ct),style:ut,colSpan:st},reactExports.createElement("div",{className:`${et}-item-container`},($t||$t===0)&&reactExports.createElement("span",{className:classNames(`${et}-item-label`,{[`${et}-item-no-colon`]:!wt}),style:ft},$t),(_t||_t===0)&&reactExports.createElement("span",{className:classNames(`${et}-item-content`),style:gt},_t)))},Cell$1=Cell;function renderCells(_e,et,rt){let{colon:st,prefixCls:ct,bordered:ut}=et,{component:ft,type:gt,showLabel:xt,showContent:$t,labelStyle:_t,contentStyle:wt}=rt;return _e.map((Tt,Rt)=>{let{label:It,children:At,prefixCls:jt=ct,className:Nt,style:kt,labelStyle:Ft,contentStyle:Ht,span:Wt=1,key:Vt}=Tt;return typeof ft=="string"?reactExports.createElement(Cell$1,{key:`${gt}-${Vt||Rt}`,className:Nt,style:kt,labelStyle:Object.assign(Object.assign({},_t),Ft),contentStyle:Object.assign(Object.assign({},wt),Ht),span:Wt,colon:st,component:ft,itemPrefixCls:jt,bordered:ut,label:xt?It:null,content:$t?At:null,type:gt}):[reactExports.createElement(Cell$1,{key:`label-${Vt||Rt}`,className:Nt,style:Object.assign(Object.assign(Object.assign({},_t),kt),Ft),span:1,colon:st,component:ft[0],itemPrefixCls:jt,bordered:ut,label:It,type:"label"}),reactExports.createElement(Cell$1,{key:`content-${Vt||Rt}`,className:Nt,style:Object.assign(Object.assign(Object.assign({},wt),kt),Ht),span:Wt*2-1,component:ft[1],itemPrefixCls:jt,bordered:ut,content:At,type:"content"})]})}const Row=_e=>{const et=reactExports.useContext(DescriptionsContext$1),{prefixCls:rt,vertical:st,row:ct,index:ut,bordered:ft}=_e;return st?reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("tr",{key:`label-${ut}`,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:"th",type:"label",showLabel:!0},et))),reactExports.createElement("tr",{key:`content-${ut}`,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:"td",type:"content",showContent:!0},et)))):reactExports.createElement("tr",{key:ut,className:`${rt}-row`},renderCells(ct,_e,Object.assign({component:ft?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},et)))},Row$1=Row,genBorderedStyle$2=_e=>{const{componentCls:et,labelBg:rt}=_e;return{[`&${et}-bordered`]:{[`> ${et}-view`]:{border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${et}-row`]:{borderBottom:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.padding)} ${unit$1(_e.paddingLG)}`,borderInlineEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${et}-item-label`]:{color:_e.colorTextSecondary,backgroundColor:rt,"&::after":{display:"none"}}}},[`&${et}-middle`]:{[`${et}-row`]:{[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.paddingSM)} ${unit$1(_e.paddingLG)}`}}},[`&${et}-small`]:{[`${et}-row`]:{[`> ${et}-item-label, > ${et}-item-content`]:{padding:`${unit$1(_e.paddingXS)} ${unit$1(_e.padding)}`}}}}}},genDescriptionStyles=_e=>{const{componentCls:et,extraColor:rt,itemPaddingBottom:st,colonMarginRight:ct,colonMarginLeft:ut,titleMarginBottom:ft}=_e;return{[et]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),genBorderedStyle$2(_e)),{"&-rtl":{direction:"rtl"},[`${et}-header`]:{display:"flex",alignItems:"center",marginBottom:ft},[`${et}-title`]:Object.assign(Object.assign({},textEllipsis),{flex:"auto",color:_e.titleColor,fontWeight:_e.fontWeightStrong,fontSize:_e.fontSizeLG,lineHeight:_e.lineHeightLG}),[`${et}-extra`]:{marginInlineStart:"auto",color:rt,fontSize:_e.fontSize},[`${et}-view`]:{width:"100%",borderRadius:_e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${et}-row`]:{"> th, > td":{paddingBottom:st},"&:last-child":{borderBottom:"none"}},[`${et}-item-label`]:{color:_e.colorTextTertiary,fontWeight:"normal",fontSize:_e.fontSize,lineHeight:_e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${unit$1(ut)} ${unit$1(ct)}`},[`&${et}-item-no-colon::after`]:{content:'""'}},[`${et}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${et}-item-content`]:{display:"table-cell",flex:1,color:_e.contentColor,fontSize:_e.fontSize,lineHeight:_e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${et}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${et}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${et}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${et}-row`]:{"> th, > td":{paddingBottom:_e.paddingSM}}},"&-small":{[`${et}-row`]:{"> th, > td":{paddingBottom:_e.paddingXS}}}})}},prepareComponentToken$h=_e=>({labelBg:_e.colorFillAlter,titleColor:_e.colorText,titleMarginBottom:_e.fontSizeSM*_e.lineHeightSM,itemPaddingBottom:_e.padding,colonMarginRight:_e.marginXS,colonMarginLeft:_e.marginXXS/2,contentColor:_e.colorText,extraColor:_e.colorText}),useStyle$z=genStyleHooks("Descriptions",_e=>{const et=merge$7(_e,{});return genDescriptionStyles(et)},prepareComponentToken$h);var __rest$r=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,title:rt,extra:st,column:ct,colon:ut=!0,bordered:ft,layout:gt,children:xt,className:$t,rootClassName:_t,style:wt,size:Tt,labelStyle:Rt,contentStyle:It,items:At}=_e,jt=__rest$r(_e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Nt,direction:kt,descriptions:Ft}=reactExports.useContext(ConfigContext$1),Ht=Nt("descriptions",et),Wt=useBreakpoint$1(),Vt=reactExports.useMemo(()=>{var ur;return typeof ct=="number"?ct:(ur=matchScreen(Wt,Object.assign(Object.assign({},DEFAULT_COLUMN_MAP$1),ct)))!==null&&ur!==void 0?ur:3},[Wt,ct]),qt=useItems(Wt,At,xt),Xt=useSize(Tt),Gt=useRow(Vt,qt),[Zt,er,lr]=useStyle$z(Ht),cr=reactExports.useMemo(()=>({labelStyle:Rt,contentStyle:It}),[Rt,It]);return Zt(reactExports.createElement(DescriptionsContext$1.Provider,{value:cr},reactExports.createElement("div",Object.assign({className:classNames(Ht,Ft==null?void 0:Ft.className,{[`${Ht}-${Xt}`]:Xt&&Xt!=="default",[`${Ht}-bordered`]:!!ft,[`${Ht}-rtl`]:kt==="rtl"},$t,_t,er,lr),style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),wt)},jt),(rt||st)&&reactExports.createElement("div",{className:`${Ht}-header`},rt&&reactExports.createElement("div",{className:`${Ht}-title`},rt),st&&reactExports.createElement("div",{className:`${Ht}-extra`},st)),reactExports.createElement("div",{className:`${Ht}-view`},reactExports.createElement("table",null,reactExports.createElement("tbody",null,Gt.map((ur,fr)=>reactExports.createElement(Row$1,{key:fr,index:fr,colon:ut,prefixCls:Ht,vertical:gt==="vertical",bordered:ft,row:ur}))))))))};Descriptions.Item=DescriptionsItem$1;const Descriptions$1=Descriptions;var DrawerContext=reactExports.createContext(null),RefContext$1=reactExports.createContext({}),DrawerPanel$2=function(et){var rt=et.prefixCls,st=et.className,ct=et.style,ut=et.children,ft=et.containerRef,gt=et.id,xt=et.onMouseEnter,$t=et.onMouseOver,_t=et.onMouseLeave,wt=et.onClick,Tt=et.onKeyDown,Rt=et.onKeyUp,It={onMouseEnter:xt,onMouseOver:$t,onMouseLeave:_t,onClick:wt,onKeyDown:Tt,onKeyUp:Rt},At=reactExports.useContext(RefContext$1),jt=At.panel,Nt=useComposeRef(jt,ft);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",_extends$b({id:gt,className:classNames("".concat(rt,"-content"),st),style:_objectSpread2({},ct),"aria-modal":"true",role:"dialog",ref:Nt},It),ut))};function parseWidthHeight(_e){return typeof _e=="string"&&String(Number(_e))===_e?(warningOnce$1(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(_e)):_e}var sentinelStyle$1={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function DrawerPopup(_e,et){var rt,st,ct,ut=_e.prefixCls,ft=_e.open,gt=_e.placement,xt=_e.inline,$t=_e.push,_t=_e.forceRender,wt=_e.autoFocus,Tt=_e.keyboard,Rt=_e.classNames,It=_e.rootClassName,At=_e.rootStyle,jt=_e.zIndex,Nt=_e.className,kt=_e.id,Ft=_e.style,Ht=_e.motion,Wt=_e.width,Vt=_e.height,qt=_e.children,Xt=_e.mask,Gt=_e.maskClosable,Zt=_e.maskMotion,er=_e.maskClassName,lr=_e.maskStyle,cr=_e.afterOpenChange,ur=_e.onClose,fr=_e.onMouseEnter,hr=_e.onMouseOver,pr=_e.onMouseLeave,dr=_e.onClick,yr=_e.onKeyDown,Sr=_e.onKeyUp,br=_e.styles,mr=reactExports.useRef(),Er=reactExports.useRef(),Tr=reactExports.useRef();reactExports.useImperativeHandle(et,function(){return mr.current});var Mr=function(Vr){var ln=Vr.keyCode,Qr=Vr.shiftKey;switch(ln){case KeyCode.TAB:{if(ln===KeyCode.TAB){if(!Qr&&document.activeElement===Tr.current){var Zr;(Zr=Er.current)===null||Zr===void 0||Zr.focus({preventScroll:!0})}else if(Qr&&document.activeElement===Er.current){var vn;(vn=Tr.current)===null||vn===void 0||vn.focus({preventScroll:!0})}}break}case KeyCode.ESC:{ur&&Tt&&(Vr.stopPropagation(),ur(Vr));break}}};reactExports.useEffect(function(){if(ft&&wt){var Hr;(Hr=mr.current)===null||Hr===void 0||Hr.focus({preventScroll:!0})}},[ft]);var Or=reactExports.useState(!1),wr=_slicedToArray$3(Or,2),Cr=wr[0],Nr=wr[1],Rr=reactExports.useContext(DrawerContext),Pr;$t===!1?Pr={distance:0}:$t===!0?Pr={}:Pr=$t||{};var jr=(rt=(st=(ct=Pr)===null||ct===void 0?void 0:ct.distance)!==null&&st!==void 0?st:Rr==null?void 0:Rr.pushDistance)!==null&&rt!==void 0?rt:180,kr=reactExports.useMemo(function(){return{pushDistance:jr,push:function(){Nr(!0)},pull:function(){Nr(!1)}}},[jr]);reactExports.useEffect(function(){if(ft){var Hr;Rr==null||(Hr=Rr.push)===null||Hr===void 0||Hr.call(Rr)}else{var Vr;Rr==null||(Vr=Rr.pull)===null||Vr===void 0||Vr.call(Rr)}},[ft]),reactExports.useEffect(function(){return function(){var Hr;Rr==null||(Hr=Rr.pull)===null||Hr===void 0||Hr.call(Rr)}},[]);var Fr=Xt&&reactExports.createElement(CSSMotion,_extends$b({key:"mask"},Zt,{visible:ft}),function(Hr,Vr){var ln=Hr.className,Qr=Hr.style;return reactExports.createElement("div",{className:classNames("".concat(ut,"-mask"),ln,Rt==null?void 0:Rt.mask,er),style:_objectSpread2(_objectSpread2(_objectSpread2({},Qr),lr),br==null?void 0:br.mask),onClick:Gt&&ft?ur:void 0,ref:Vr})}),_r=typeof Ht=="function"?Ht(gt):Ht,Br={};if(Cr&&jr)switch(gt){case"top":Br.transform="translateY(".concat(jr,"px)");break;case"bottom":Br.transform="translateY(".concat(-jr,"px)");break;case"left":Br.transform="translateX(".concat(jr,"px)");break;default:Br.transform="translateX(".concat(-jr,"px)");break}gt==="left"||gt==="right"?Br.width=parseWidthHeight(Wt):Br.height=parseWidthHeight(Vt);var Dr={onMouseEnter:fr,onMouseOver:hr,onMouseLeave:pr,onClick:dr,onKeyDown:yr,onKeyUp:Sr},Xr=reactExports.createElement(CSSMotion,_extends$b({key:"panel"},_r,{visible:ft,forceRender:_t,onVisibleChanged:function(Vr){cr==null||cr(Vr)},removeOnLeave:!1,leavedClassName:"".concat(ut,"-content-wrapper-hidden")}),function(Hr,Vr){var ln=Hr.className,Qr=Hr.style;return reactExports.createElement("div",_extends$b({className:classNames("".concat(ut,"-content-wrapper"),Rt==null?void 0:Rt.wrapper,ln),style:_objectSpread2(_objectSpread2(_objectSpread2({},Br),Qr),br==null?void 0:br.wrapper)},pickAttrs(_e,{data:!0})),reactExports.createElement(DrawerPanel$2,_extends$b({id:kt,containerRef:Vr,prefixCls:ut,className:classNames(Nt,Rt==null?void 0:Rt.content),style:_objectSpread2(_objectSpread2({},Ft),br==null?void 0:br.content)},Dr),qt))}),Kr=_objectSpread2({},At);return jt&&(Kr.zIndex=jt),reactExports.createElement(DrawerContext.Provider,{value:kr},reactExports.createElement("div",{className:classNames(ut,"".concat(ut,"-").concat(gt),It,_defineProperty$c(_defineProperty$c({},"".concat(ut,"-open"),ft),"".concat(ut,"-inline"),xt)),style:Kr,tabIndex:-1,ref:mr,onKeyDown:Mr},Fr,reactExports.createElement("div",{tabIndex:0,ref:Er,style:sentinelStyle$1,"aria-hidden":"true","data-sentinel":"start"}),Xr,reactExports.createElement("div",{tabIndex:0,ref:Tr,style:sentinelStyle$1,"aria-hidden":"true","data-sentinel":"end"})))}var RefDrawerPopup=reactExports.forwardRef(DrawerPopup),Drawer$2=function(et){var rt=et.open,st=rt===void 0?!1:rt,ct=et.prefixCls,ut=ct===void 0?"rc-drawer":ct,ft=et.placement,gt=ft===void 0?"right":ft,xt=et.autoFocus,$t=xt===void 0?!0:xt,_t=et.keyboard,wt=_t===void 0?!0:_t,Tt=et.width,Rt=Tt===void 0?378:Tt,It=et.mask,At=It===void 0?!0:It,jt=et.maskClosable,Nt=jt===void 0?!0:jt,kt=et.getContainer,Ft=et.forceRender,Ht=et.afterOpenChange,Wt=et.destroyOnClose,Vt=et.onMouseEnter,qt=et.onMouseOver,Xt=et.onMouseLeave,Gt=et.onClick,Zt=et.onKeyDown,er=et.onKeyUp,lr=et.panelRef,cr=reactExports.useState(!1),ur=_slicedToArray$3(cr,2),fr=ur[0],hr=ur[1],pr=reactExports.useState(!1),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1];useLayoutEffect$3(function(){Sr(!0)},[]);var br=yr?st:!1,mr=reactExports.useRef(),Er=reactExports.useRef();useLayoutEffect$3(function(){br&&(Er.current=document.activeElement)},[br]);var Tr=function(Nr){var Rr;if(hr(Nr),Ht==null||Ht(Nr),!Nr&&Er.current&&!((Rr=mr.current)!==null&&Rr!==void 0&&Rr.contains(Er.current))){var Pr;(Pr=Er.current)===null||Pr===void 0||Pr.focus({preventScroll:!0})}},Mr=reactExports.useMemo(function(){return{panel:lr}},[lr]);if(!Ft&&!fr&&!br&&Wt)return null;var Or={onMouseEnter:Vt,onMouseOver:qt,onMouseLeave:Xt,onClick:Gt,onKeyDown:Zt,onKeyUp:er},wr=_objectSpread2(_objectSpread2({},et),{},{open:br,prefixCls:ut,placement:gt,autoFocus:$t,keyboard:wt,width:Rt,mask:At,maskClosable:Nt,inline:kt===!1,afterOpenChange:Tr,ref:mr},Or);return reactExports.createElement(RefContext$1.Provider,{value:Mr},reactExports.createElement(Portal,{open:br||Ft||fr,autoDestroy:!1,getContainer:kt,autoLock:At&&(br||fr)},reactExports.createElement(RefDrawerPopup,wr)))};const DrawerPanel=_e=>{var et,rt;const{prefixCls:st,title:ct,footer:ut,extra:ft,closeIcon:gt,closable:xt,onClose:$t,headerStyle:_t,bodyStyle:wt,footerStyle:Tt,children:Rt,classNames:It,styles:At}=_e,{drawer:jt}=reactExports.useContext(ConfigContext$1),Nt=reactExports.useCallback(Vt=>reactExports.createElement("button",{type:"button",onClick:$t,"aria-label":"Close",className:`${st}-close`},Vt),[$t]),[kt,Ft]=useClosable(xt,typeof gt<"u"?gt:jt==null?void 0:jt.closeIcon,Nt,void 0,!0),Ht=reactExports.useMemo(()=>{var Vt,qt;return!ct&&!kt?null:reactExports.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Vt=jt==null?void 0:jt.styles)===null||Vt===void 0?void 0:Vt.header),_t),At==null?void 0:At.header),className:classNames(`${st}-header`,{[`${st}-header-close-only`]:kt&&!ct&&!ft},(qt=jt==null?void 0:jt.classNames)===null||qt===void 0?void 0:qt.header,It==null?void 0:It.header)},reactExports.createElement("div",{className:`${st}-header-title`},Ft,ct&&reactExports.createElement("div",{className:`${st}-title`},ct)),ft&&reactExports.createElement("div",{className:`${st}-extra`},ft))},[kt,Ft,ft,_t,st,ct]),Wt=reactExports.useMemo(()=>{var Vt,qt;if(!ut)return null;const Xt=`${st}-footer`;return reactExports.createElement("div",{className:classNames(Xt,(Vt=jt==null?void 0:jt.classNames)===null||Vt===void 0?void 0:Vt.footer,It==null?void 0:It.footer),style:Object.assign(Object.assign(Object.assign({},(qt=jt==null?void 0:jt.styles)===null||qt===void 0?void 0:qt.footer),Tt),At==null?void 0:At.footer)},ut)},[ut,Tt,st]);return reactExports.createElement(reactExports.Fragment,null,Ht,reactExports.createElement("div",{className:classNames(`${st}-body`,It==null?void 0:It.body,(et=jt==null?void 0:jt.classNames)===null||et===void 0?void 0:et.body),style:Object.assign(Object.assign(Object.assign({},(rt=jt==null?void 0:jt.styles)===null||rt===void 0?void 0:rt.body),wt),At==null?void 0:At.body)},Rt),Wt)},DrawerPanel$1=DrawerPanel,getMoveTranslate=_e=>{const et="100%";return{left:`translateX(-${et})`,right:`translateX(${et})`,top:`translateY(-${et})`,bottom:`translateY(${et})`}[_e]},getEnterLeaveStyle=(_e,et)=>({"&-enter, &-appear":Object.assign(Object.assign({},_e),{"&-active":et}),"&-leave":Object.assign(Object.assign({},et),{"&-active":_e})}),getFadeStyle=(_e,et)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${et}`}}},getEnterLeaveStyle({opacity:_e},{opacity:1})),getPanelMotionStyles=(_e,et)=>[getFadeStyle(.7,et),getEnterLeaveStyle({transform:getMoveTranslate(_e)},{transform:"none"})],genMotionStyle$1=_e=>{const{componentCls:et,motionDurationSlow:rt}=_e;return{[et]:{[`${et}-mask-motion`]:getFadeStyle(0,rt),[`${et}-panel-motion`]:["left","right","top","bottom"].reduce((st,ct)=>Object.assign(Object.assign({},st),{[`&-${ct}`]:getPanelMotionStyles(ct,rt)}),{})}}},genDrawerStyle=_e=>{const{componentCls:et,zIndexPopup:rt,colorBgMask:st,colorBgElevated:ct,motionDurationSlow:ut,motionDurationMid:ft,padding:gt,paddingLG:xt,fontSizeLG:$t,lineHeightLG:_t,lineWidth:wt,lineType:Tt,colorSplit:Rt,marginSM:It,colorIcon:At,colorIconHover:jt,colorText:Nt,fontWeightStrong:kt,footerPaddingBlock:Ft,footerPaddingInline:Ht}=_e,Wt=`${et}-content-wrapper`;return{[et]:{position:"fixed",inset:0,zIndex:rt,pointerEvents:"none","&-pure":{position:"relative",background:ct,display:"flex",flexDirection:"column",[`&${et}-left`]:{boxShadow:_e.boxShadowDrawerLeft},[`&${et}-right`]:{boxShadow:_e.boxShadowDrawerRight},[`&${et}-top`]:{boxShadow:_e.boxShadowDrawerUp},[`&${et}-bottom`]:{boxShadow:_e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${et}-mask`]:{position:"absolute",inset:0,zIndex:rt,background:st,pointerEvents:"auto"},[Wt]:{position:"absolute",zIndex:rt,maxWidth:"100vw",transition:`all ${ut}`,"&-hidden":{display:"none"}},[`&-left > ${Wt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowDrawerLeft},[`&-right > ${Wt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:_e.boxShadowDrawerRight},[`&-top > ${Wt}`]:{top:0,insetInline:0,boxShadow:_e.boxShadowDrawerUp},[`&-bottom > ${Wt}`]:{bottom:0,insetInline:0,boxShadow:_e.boxShadowDrawerDown},[`${et}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ct,pointerEvents:"auto"},[`${et}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit$1(gt)} ${unit$1(xt)}`,fontSize:$t,lineHeight:_t,borderBottom:`${unit$1(wt)} ${Tt} ${Rt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${et}-extra`]:{flex:"none"},[`${et}-close`]:{display:"inline-block",marginInlineEnd:It,color:At,fontWeight:kt,fontSize:$t,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ft}`,textRendering:"auto","&:focus, &:hover":{color:jt,textDecoration:"none"}},[`${et}-title`]:{flex:1,margin:0,color:Nt,fontWeight:_e.fontWeightStrong,fontSize:$t,lineHeight:_t},[`${et}-body`]:{flex:1,minWidth:0,minHeight:0,padding:xt,overflow:"auto"},[`${et}-footer`]:{flexShrink:0,padding:`${unit$1(Ft)} ${unit$1(Ht)}`,borderTop:`${unit$1(wt)} ${Tt} ${Rt}`},"&-rtl":{direction:"rtl"}}}},prepareComponentToken$g=_e=>({zIndexPopup:_e.zIndexPopupBase,footerPaddingBlock:_e.paddingXS,footerPaddingInline:_e.padding}),useStyle$y=genStyleHooks("Drawer",_e=>{const et=merge$7(_e,{});return[genDrawerStyle(et),genMotionStyle$1(et)]},prepareComponentToken$g);var __rest$q=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{rootClassName:et,width:rt,height:st,size:ct="default",mask:ut=!0,push:ft=defaultPushState,open:gt,afterOpenChange:xt,onClose:$t,prefixCls:_t,getContainer:wt,style:Tt,className:Rt,visible:It,afterVisibleChange:At,maskStyle:jt,drawerStyle:Nt,contentWrapperStyle:kt}=_e,Ft=__rest$q(_e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Ht,getPrefixCls:Wt,direction:Vt,drawer:qt}=reactExports.useContext(ConfigContext$1),Xt=Wt("drawer",_t),[Gt,Zt,er]=useStyle$y(Xt),lr=wt===void 0&&Ht?()=>Ht(document.body):wt,cr=classNames({"no-mask":!ut,[`${Xt}-rtl`]:Vt==="rtl"},et,Zt,er),ur=reactExports.useMemo(()=>rt??(ct==="large"?736:378),[rt,ct]),fr=reactExports.useMemo(()=>st??(ct==="large"?736:378),[st,ct]),hr={motionName:getTransitionName(Xt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pr=Mr=>({motionName:getTransitionName(Xt,`panel-motion-${Mr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=usePanelRef(),[yr,Sr]=useZIndex("Drawer",Ft.zIndex),{classNames:br={},styles:mr={}}=Ft,{classNames:Er={},styles:Tr={}}=qt||{};return Gt(reactExports.createElement(NoCompactStyle,null,reactExports.createElement(NoFormStyle,{status:!0,override:!0},reactExports.createElement(zIndexContext$1.Provider,{value:Sr},reactExports.createElement(Drawer$2,Object.assign({prefixCls:Xt,onClose:$t,maskMotion:hr,motion:pr},Ft,{classNames:{mask:classNames(br.mask,Er.mask),content:classNames(br.content,Er.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},mr.mask),jt),Tr.mask),content:Object.assign(Object.assign(Object.assign({},mr.content),Nt),Tr.content),wrapper:Object.assign(Object.assign(Object.assign({},mr.wrapper),kt),Tr.wrapper)},open:gt??It,mask:ut,push:ft,width:ur,height:fr,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),Tt),className:classNames(qt==null?void 0:qt.className,Rt),rootClassName:cr,getContainer:lr,afterOpenChange:xt??At,panelRef:dr,zIndex:yr}),reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:Xt},Ft,{onClose:$t})))))))},PurePanel$6=_e=>{const{prefixCls:et,style:rt,className:st,placement:ct="right"}=_e,ut=__rest$q(_e,["prefixCls","style","className","placement"]),{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("drawer",et),[xt,$t,_t]=useStyle$y(gt),wt=classNames(gt,`${gt}-pure`,`${gt}-${ct}`,$t,_t,st);return xt(reactExports.createElement("div",{className:wt,style:rt},reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:gt},ut))))};Drawer._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$6;const Drawer$1=Drawer;function isPresetSize(_e){return["small","middle","large"].includes(_e)}function isValidGapNumber(_e){return _e?typeof _e=="number"&&!Number.isNaN(_e):!1}const SpaceContext=React$1.createContext({latestIndex:0}),SpaceContextProvider=SpaceContext.Provider,Item$4=_e=>{let{className:et,index:rt,children:st,split:ct,style:ut}=_e;const{latestIndex:ft}=reactExports.useContext(SpaceContext);return st==null?null:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:et,style:ut},st),rt{var rt,st;const{getPrefixCls:ct,space:ut,direction:ft}=reactExports.useContext(ConfigContext$1),{size:gt=(ut==null?void 0:ut.size)||"small",align:xt,className:$t,rootClassName:_t,children:wt,direction:Tt="horizontal",prefixCls:Rt,split:It,style:At,wrap:jt=!1,classNames:Nt,styles:kt}=_e,Ft=__rest$p(_e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ht,Wt]=Array.isArray(gt)?gt:[gt,gt],Vt=isPresetSize(Wt),qt=isPresetSize(Ht),Xt=isValidGapNumber(Wt),Gt=isValidGapNumber(Ht),Zt=toArray$e(wt,{keepEmpty:!0}),er=xt===void 0&&Tt==="horizontal"?"center":xt,lr=ct("space",Rt),[cr,ur,fr]=useStyle$W(lr),hr=classNames(lr,ut==null?void 0:ut.className,ur,`${lr}-${Tt}`,{[`${lr}-rtl`]:ft==="rtl",[`${lr}-align-${er}`]:er,[`${lr}-gap-row-${Wt}`]:Vt,[`${lr}-gap-col-${Ht}`]:qt},$t,_t,fr),pr=classNames(`${lr}-item`,(rt=Nt==null?void 0:Nt.item)!==null&&rt!==void 0?rt:(st=ut==null?void 0:ut.classNames)===null||st===void 0?void 0:st.item);let dr=0;const yr=Zt.map((mr,Er)=>{var Tr,Mr;mr!=null&&(dr=Er);const Or=mr&&mr.key||`${pr}-${Er}`;return reactExports.createElement(Item$5,{className:pr,key:Or,index:Er,split:It,style:(Tr=kt==null?void 0:kt.item)!==null&&Tr!==void 0?Tr:(Mr=ut==null?void 0:ut.styles)===null||Mr===void 0?void 0:Mr.item},mr)}),Sr=reactExports.useMemo(()=>({latestIndex:dr}),[dr]);if(Zt.length===0)return null;const br={};return jt&&(br.flexWrap="wrap"),!qt&&Gt&&(br.columnGap=Ht),!Vt&&Xt&&(br.rowGap=Wt),cr(reactExports.createElement("div",Object.assign({ref:et,className:hr,style:Object.assign(Object.assign(Object.assign({},br),ut==null?void 0:ut.style),At)},Ft),reactExports.createElement(SpaceContextProvider,{value:Sr},yr)))}),CompoundedSpace=Space;CompoundedSpace.Compact=Compact;const Space$1=CompoundedSpace;function useDebounce(_e){const[et,rt]=reactExports.useState(_e);return reactExports.useEffect(()=>{const st=setTimeout(()=>{rt(_e)},_e.length?0:10);return()=>{clearTimeout(st)}},[_e]),et}const genFormValidateMotionStyle=_e=>{const{componentCls:et}=_e,rt=`${et}-show-help`,st=`${et}-show-help-item`;return{[rt]:{transition:`opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[st]:{overflow:"hidden",transition:`height ${_e.motionDurationSlow} ${_e.motionEaseInOut}, opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}, transform ${_e.motionDurationSlow} ${_e.motionEaseInOut} !important`,[`&${st}-appear, &${st}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${st}-leave-active`]:{transform:"translateY(-5px)"}}}}},resetForm=_e=>({legend:{display:"block",width:"100%",marginBottom:_e.marginLG,padding:0,color:_e.colorTextDescription,fontSize:_e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit$1(_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 ${unit$1(_e.controlOutlineWidth)} ${_e.controlOutline}`},output:{display:"block",paddingTop:15,color:_e.colorText,fontSize:_e.fontSize,lineHeight:_e.lineHeight}}),genFormSize=(_e,et)=>{const{formItemCls:rt}=_e;return{[rt]:{[`${rt}-label > label`]:{height:et},[`${rt}-control-input`]:{minHeight:et}}}},genFormStyle=_e=>{const{componentCls:et}=_e;return{[_e.componentCls]:Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),resetForm(_e)),{[`${et}-text`]:{display:"inline-block",paddingInlineEnd:_e.paddingSM},"&-small":Object.assign({},genFormSize(_e,_e.controlHeightSM)),"&-large":Object.assign({},genFormSize(_e,_e.controlHeightLG))})}},genFormItemStyle=_e=>{const{formItemCls:et,iconCls:rt,componentCls:st,rootPrefixCls:ct,labelRequiredMarkColor:ut,labelColor:ft,labelFontSize:gt,labelHeight:xt,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:_t,itemMarginBottom:wt}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{marginBottom:wt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${ct}-row`]:{display:"none"},"&-has-warning":{[`${et}-split`]:{color:_e.colorError}},"&-has-error":{[`${et}-split`]:{color:_e.colorWarning}},[`${et}-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:xt,color:ft,fontSize:gt,[`> ${rt}`]:{fontSize:_e.fontSize,verticalAlign:"top"},[`&${et}-required:not(${et}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:_e.marginXXS,color:ut,fontSize:_e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${st}-hide-required-mark &`]:{display:"none"}},[`${et}-optional`]:{display:"inline-block",marginInlineStart:_e.marginXXS,color:_e.colorTextDescription,[`${st}-hide-required-mark &`]:{display:"none"}},[`${et}-tooltip`]:{color:_e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:_e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:_t},[`&${et}-no-colon::after`]:{content:'"\\a0"'}}},[`${et}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ct}-col-'"]):not([class*="' ${ct}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:_e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[et]:{"&-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 ${et}-explain`]:{height:"auto",opacity:1},[`${et}-feedback-icon`]:{fontSize:_e.fontSize,textAlign:"center",visibility:"visible",animationName:zoomIn,animationDuration:_e.motionDurationMid,animationTimingFunction:_e.motionEaseOutBack,pointerEvents:"none","&-success":{color:_e.colorSuccess},"&-error":{color:_e.colorError},"&-warning":{color:_e.colorWarning},"&-validating":{color:_e.colorPrimary}}})}},genHorizontalStyle$1=_e=>{const{componentCls:et,formItemCls:rt}=_e;return{[`${et}-horizontal`]:{[`${rt}-label`]:{flexGrow:0},[`${rt}-control`]:{flex:"1 1 0",minWidth:0},[`${rt}-label[class$='-24'], ${rt}-label[class*='-24 ']`]:{[`& + ${rt}-control`]:{minWidth:"unset"}}}}},genInlineStyle=_e=>{const{componentCls:et,formItemCls:rt}=_e;return{[`${et}-inline`]:{display:"flex",flexWrap:"wrap",[rt]:{flex:"none",marginInlineEnd:_e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${rt}-label, > ${rt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${rt}-label`]:{flex:"none"},[`${et}-text`]:{display:"inline-block"},[`${rt}-has-feedback`]:{display:"inline-block"}}}}},makeVerticalLayoutLabel=_e=>({padding:_e.verticalLabelPadding,margin:_e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),makeVerticalLayout=_e=>{const{componentCls:et,formItemCls:rt,rootPrefixCls:st}=_e;return{[`${rt} ${rt}-label`]:makeVerticalLayoutLabel(_e),[`${et}:not(${et}-inline)`]:{[rt]:{flexWrap:"wrap",[`${rt}-label, ${rt}-control`]:{[`&:not([class*=" ${st}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},genVerticalStyle$1=_e=>{const{componentCls:et,formItemCls:rt,rootPrefixCls:st}=_e;return{[`${et}-vertical`]:{[rt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${et}-item-control`]:{width:"100%"}}},[`${et}-vertical ${rt}-label, .${st}-col-24${rt}-label, - .${st}-col-xl-24${rt}-label`]:makeVerticalLayoutLabel(_e),[`@media (max-width: ${unit$1(_e.screenXSMax)})`]:[makeVerticalLayout(_e),{[et]:{[`.${st}-col-xs-24${rt}-label`]:makeVerticalLayoutLabel(_e)}}],[`@media (max-width: ${unit$1(_e.screenSMMax)})`]:{[et]:{[`.${st}-col-sm-24${rt}-label`]:makeVerticalLayoutLabel(_e)}},[`@media (max-width: ${unit$1(_e.screenMDMax)})`]:{[et]:{[`.${st}-col-md-24${rt}-label`]:makeVerticalLayoutLabel(_e)}},[`@media (max-width: ${unit$1(_e.screenLGMax)})`]:{[et]:{[`.${st}-col-lg-24${rt}-label`]:makeVerticalLayoutLabel(_e)}}}},prepareComponentToken$d=_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}),prepareToken=(_e,et)=>merge$7(_e,{formItemCls:`${_e.componentCls}-item`,rootPrefixCls:et}),useStyle$v=genStyleHooks("Form",(_e,et)=>{let{rootPrefixCls:rt}=et;const st=prepareToken(_e,rt);return[genFormStyle(st),genFormItemStyle(st),genFormValidateMotionStyle(st),genHorizontalStyle$1(st),genInlineStyle(st),genVerticalStyle$1(st),genCollapseMotion(st),zoomIn]},prepareComponentToken$d,{order:-1e3}),EMPTY_LIST=[];function toErrorEntity(_e,et,rt){let st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _e=="string"?_e:`${et}-${st}`,error:_e,errorStatus:rt}}const ErrorList=_e=>{let{help:et,helpStatus:rt,errors:st=EMPTY_LIST,warnings:ct=EMPTY_LIST,className:ut,fieldId:ft,onVisibleChanged:gt}=_e;const{prefixCls:xt}=reactExports.useContext(FormItemPrefixContext),$t=`${xt}-item-explain`,_t=useCSSVarCls(xt),[wt,Tt,Rt]=useStyle$v(xt,_t),It=reactExports.useMemo(()=>initCollapseMotion$1(xt),[xt]),At=useDebounce(st),jt=useDebounce(ct),Nt=reactExports.useMemo(()=>et!=null?[toErrorEntity(et,"help",rt)]:[].concat(_toConsumableArray$3(At.map((Ft,Ht)=>toErrorEntity(Ft,"error","error",Ht))),_toConsumableArray$3(jt.map((Ft,Ht)=>toErrorEntity(Ft,"warning","warning",Ht)))),[et,rt,At,jt]),kt={};return ft&&(kt.id=`${ft}_help`),wt(reactExports.createElement(CSSMotion,{motionDeadline:It.motionDeadline,motionName:`${xt}-show-help`,visible:!!Nt.length,onVisibleChanged:gt},Ft=>{const{className:Ht,style:Wt}=Ft;return reactExports.createElement("div",Object.assign({},kt,{className:classNames($t,Ht,Rt,_t,ut,Tt),style:Wt,role:"alert"}),reactExports.createElement(CSSMotionList,Object.assign({keys:Nt},initCollapseMotion$1(xt),{motionName:`${xt}-show-help-item`,component:!1}),Vt=>{const{key:qt,error:Gt,errorStatus:Xt,className:Zt,style:lr}=Vt;return reactExports.createElement("div",{key:qt,className:classNames(Zt,{[`${$t}-${Xt}`]:Xt}),style:lr},Gt)}))}))},ErrorList$1=ErrorList,formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$7(_e){return _e===void 0||_e===!1?[]:Array.isArray(_e)?_e:[_e]}function getFieldId(_e,et){if(!_e.length)return;const rt=_e.join("_");return et?`${et}_${rt}`:formItemNameBlackList.includes(rt)?`${defaultItemNamePrefixCls}_${rt}`:rt}function getStatus(_e,et,rt,st,ct,ut){let ft=st;return ut!==void 0?ft=ut:rt.validating?ft="validating":_e.length?ft="error":et.length?ft="warning":(rt.touched||ct&&rt.validated)&&(ft="success"),ft}function toNamePathStr(_e){return toArray$7(_e).join("_")}function useForm(_e){const[et]=useForm$1(),rt=reactExports.useRef({}),st=reactExports.useMemo(()=>_e??Object.assign(Object.assign({},et),{__INTERNAL__:{itemRef:ct=>ut=>{const ft=toNamePathStr(ct);ut?rt.current[ft]=ut:delete rt.current[ft]}},scrollToField:function(ct){let ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ft=toArray$7(ct),gt=getFieldId(ft,st.__INTERNAL__.name),xt=gt?document.getElementById(gt):null;xt&&e$2(xt,Object.assign({scrollMode:"if-needed",block:"nearest"},ut))},getFieldInstance:ct=>{const ut=toNamePathStr(ct);return rt.current[ut]}}),[_e,et]);return[st]}var __rest$k=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const rt=reactExports.useContext(DisabledContext$2),{getPrefixCls:st,direction:ct,form:ut}=reactExports.useContext(ConfigContext$1),{prefixCls:ft,className:gt,rootClassName:xt,size:$t,disabled:_t=rt,form:wt,colon:Tt,labelAlign:Rt,labelWrap:It,labelCol:At,wrapperCol:jt,hideRequiredMark:Nt,layout:kt="horizontal",scrollToFirstError:Ft,requiredMark:Ht,onFinishFailed:Wt,name:Vt,style:qt,feedbackIcons:Gt,variant:Xt}=_e,Zt=__rest$k(_e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),lr=useSize($t),er=reactExports.useContext(ValidateMessagesContext),cr=reactExports.useMemo(()=>Ht!==void 0?Ht:Nt?!1:ut&&ut.requiredMark!==void 0?ut.requiredMark:!0,[Nt,Ht,ut]),ur=Tt??(ut==null?void 0:ut.colon),pr=st("form",ft),hr=useCSSVarCls(pr),[fr,dr,yr]=useStyle$v(pr,hr),$r=classNames(pr,`${pr}-${kt}`,{[`${pr}-hide-required-mark`]:cr===!1,[`${pr}-rtl`]:ct==="rtl",[`${pr}-${lr}`]:lr},yr,hr,dr,ut==null?void 0:ut.className,gt,xt),[Er]=useForm(wt),{__INTERNAL__:mr}=Er;mr.name=Vt;const Sr=reactExports.useMemo(()=>({name:Vt,labelAlign:Rt,labelCol:At,labelWrap:It,wrapperCol:jt,vertical:kt==="vertical",colon:ur,requiredMark:cr,itemRef:mr.itemRef,form:Er,feedbackIcons:Gt}),[Vt,Rt,At,jt,kt,ur,cr,Er,Gt]);reactExports.useImperativeHandle(et,()=>Er);const Tr=(Or,_r)=>{if(Or){let Cr={block:"nearest"};typeof Or=="object"&&(Cr=Or),Er.scrollToField(_r,Cr)}},jr=Or=>{if(Wt==null||Wt(Or),Or.errorFields.length){const _r=Or.errorFields[0].name;if(Ft!==void 0){Tr(Ft,_r);return}ut&&ut.scrollToFirstError!==void 0&&Tr(ut.scrollToFirstError,_r)}};return fr(reactExports.createElement(VariantContext.Provider,{value:Xt},reactExports.createElement(DisabledContextProvider,{disabled:_t},reactExports.createElement(SizeContext$2.Provider,{value:lr},reactExports.createElement(FormProvider,{validateMessages:er},reactExports.createElement(FormContext.Provider,{value:Sr},reactExports.createElement(RefForm,Object.assign({id:Vt},Zt,{name:Vt,onFinishFailed:jr,form:Er,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),qt),className:$r}))))))))},Form$1=reactExports.forwardRef(InternalForm);function useChildren(_e){if(typeof _e=="function")return _e;const et=toArray$d(_e);return et.length<=1?et[0]:et}const useFormItemStatus=()=>{const{status:_e,errors:et=[],warnings:rt=[]}=reactExports.useContext(FormItemInputContext);return{status:_e,errors:et,warnings:rt}};useFormItemStatus.Context=FormItemInputContext;const useFormItemStatus$1=useFormItemStatus;function useFrameState(_e){const[et,rt]=reactExports.useState(_e),st=reactExports.useRef(null),ct=reactExports.useRef([]),ut=reactExports.useRef(!1);reactExports.useEffect(()=>(ut.current=!1,()=>{ut.current=!0,wrapperRaf.cancel(st.current),st.current=null}),[]);function ft(gt){ut.current||(st.current===null&&(ct.current=[],st.current=wrapperRaf(()=>{st.current=null,rt(xt=>{let $t=xt;return ct.current.forEach(_t=>{$t=_t($t)}),$t})})),ct.current.push(gt))}return[et,ft]}function useItemRef(){const{itemRef:_e}=reactExports.useContext(FormContext),et=reactExports.useRef({});function rt(st,ct){const ut=ct&&typeof ct=="object"&&ct.ref,ft=st.join("_");return(et.current.name!==ft||et.current.originRef!==ut)&&(et.current.name=ft,et.current.originRef=ut,et.current.ref=composeRef(_e(st),ut)),et.current.ref}return rt}const genFallbackStyle=_e=>{const{formItemCls:et}=_e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${et}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(_e,et)=>{let{rootPrefixCls:rt}=et;const st=prepareToken(_e,rt);return[genFallbackStyle(st)]}),FormItemInput=_e=>{const{prefixCls:et,status:rt,wrapperCol:st,children:ct,errors:ut,warnings:ft,_internalItemRender:gt,extra:xt,help:$t,fieldId:_t,marginBottom:wt,onErrorVisibleChanged:Tt}=_e,Rt=`${et}-item`,It=reactExports.useContext(FormContext),At=st||It.wrapperCol||{},jt=classNames(`${Rt}-control`,At.className),Nt=reactExports.useMemo(()=>Object.assign({},It),[It]);delete Nt.labelCol,delete Nt.wrapperCol;const kt=reactExports.createElement("div",{className:`${Rt}-control-input`},reactExports.createElement("div",{className:`${Rt}-control-input-content`},ct)),Ft=reactExports.useMemo(()=>({prefixCls:et,status:rt}),[et,rt]),Ht=wt!==null||ut.length||ft.length?reactExports.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},reactExports.createElement(FormItemPrefixContext.Provider,{value:Ft},reactExports.createElement(ErrorList$1,{fieldId:_t,errors:ut,warnings:ft,help:$t,helpStatus:rt,className:`${Rt}-explain-connected`,onVisibleChanged:Tt})),!!wt&&reactExports.createElement("div",{style:{width:0,height:wt}})):null,Wt={};_t&&(Wt.id=`${_t}_extra`);const Vt=xt?reactExports.createElement("div",Object.assign({},Wt,{className:`${Rt}-extra`}),xt):null,qt=gt&>.mark==="pro_table_render"&>.render?gt.render(_e,{input:kt,errorList:Ht,extra:Vt}):reactExports.createElement(reactExports.Fragment,null,kt,Ht,Vt);return reactExports.createElement(FormContext.Provider,{value:Nt},reactExports.createElement(Col$1,Object.assign({},At,{className:jt}),qt),reactExports.createElement(FallbackCmp,{prefixCls:et}))},FormItemInput$1=FormItemInput;var QuestionCircleOutlined$2={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"};const QuestionCircleOutlinedSvg=QuestionCircleOutlined$2;var QuestionCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:QuestionCircleOutlinedSvg}))};const QuestionCircleOutlined$1=reactExports.forwardRef(QuestionCircleOutlined);var __rest$j=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{prefixCls:et,label:rt,htmlFor:st,labelCol:ct,labelAlign:ut,colon:ft,required:gt,requiredMark:xt,tooltip:$t}=_e;var _t;const[wt]=useLocale$3("Form"),{vertical:Tt,labelAlign:Rt,labelCol:It,labelWrap:At,colon:jt}=reactExports.useContext(FormContext);if(!rt)return null;const Nt=ct||It||{},kt=ut||Rt,Ft=`${et}-item-label`,Ht=classNames(Ft,kt==="left"&&`${Ft}-left`,Nt.className,{[`${Ft}-wrap`]:!!At});let Wt=rt;const Vt=ft===!0||jt!==!1&&ft!==!1;Vt&&!Tt&&typeof rt=="string"&&rt.trim()!==""&&(Wt=rt.replace(/[:|:]\s*$/,""));const Gt=toTooltipProps($t);if(Gt){const{icon:er=reactExports.createElement(QuestionCircleOutlined$1,null)}=Gt,cr=__rest$j(Gt,["icon"]),ur=reactExports.createElement(Tooltip$1,Object.assign({},cr),reactExports.cloneElement(er,{className:`${et}-item-tooltip`,title:"",onClick:pr=>{pr.preventDefault()},tabIndex:null}));Wt=reactExports.createElement(reactExports.Fragment,null,Wt,ur)}const Xt=xt==="optional",Zt=typeof xt=="function";Zt?Wt=xt(Wt,{required:!!gt}):Xt&&!gt&&(Wt=reactExports.createElement(reactExports.Fragment,null,Wt,reactExports.createElement("span",{className:`${et}-item-optional`,title:""},(wt==null?void 0:wt.optional)||((_t=localeValues$1.Form)===null||_t===void 0?void 0:_t.optional))));const lr=classNames({[`${et}-item-required`]:gt,[`${et}-item-required-mark-optional`]:Xt||Zt,[`${et}-item-no-colon`]:!Vt});return reactExports.createElement(Col$1,Object.assign({},Nt,{className:Ht}),reactExports.createElement("label",{htmlFor:st,className:lr,title:typeof rt=="string"?rt:""},Wt))},FormItemLabel$1=FormItemLabel,iconMap={success:CheckCircleFilled$1,warning:ExclamationCircleFilled$1,error:CloseCircleFilled$3,validating:LoadingOutlined$3};function StatusProvider(_e){let{children:et,errors:rt,warnings:st,hasFeedback:ct,validateStatus:ut,prefixCls:ft,meta:gt,noStyle:xt}=_e;const $t=`${ft}-item`,{feedbackIcons:_t}=reactExports.useContext(FormContext),wt=getStatus(rt,st,gt,null,!!ct,ut),{isFormItemInput:Tt,status:Rt,hasFeedback:It,feedbackIcon:At}=reactExports.useContext(FormItemInputContext),jt=reactExports.useMemo(()=>{var Nt;let kt;if(ct){const Ht=ct!==!0&&ct.icons||_t,Wt=wt&&((Nt=Ht==null?void 0:Ht({status:wt,errors:rt,warnings:st}))===null||Nt===void 0?void 0:Nt[wt]),Vt=wt&&iconMap[wt];kt=Wt!==!1&&Vt?reactExports.createElement("span",{className:classNames(`${$t}-feedback-icon`,`${$t}-feedback-icon-${wt}`)},Wt||reactExports.createElement(Vt,null)):null}const Ft={status:wt||"",errors:rt,warnings:st,hasFeedback:!!ct,feedbackIcon:kt,isFormItemInput:!0};return xt&&(Ft.status=(wt??Rt)||"",Ft.isFormItemInput=Tt,Ft.hasFeedback=!!(ct??It),Ft.feedbackIcon=ct!==void 0?Ft.feedbackIcon:At),Ft},[wt,ct,xt,Tt,Rt]);return reactExports.createElement(FormItemInputContext.Provider,{value:jt},et)}var __rest$i=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(Gt&&Ht.current){const hr=getComputedStyle(Ht.current);lr(parseInt(hr.marginBottom,10))}},[Gt,Xt]);const er=hr=>{hr||lr(null)},ur=function(){let hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fr=hr?Wt:$t.errors,dr=hr?Vt:$t.warnings;return getStatus(fr,dr,$t,"",!!_t,xt)}(),pr=classNames(kt,rt,st,{[`${kt}-with-help`]:qt||Wt.length||Vt.length,[`${kt}-has-feedback`]:ur&&_t,[`${kt}-has-success`]:ur==="success",[`${kt}-has-warning`]:ur==="warning",[`${kt}-has-error`]:ur==="error",[`${kt}-is-validating`]:ur==="validating",[`${kt}-hidden`]:wt});return reactExports.createElement("div",{className:pr,style:ct,ref:Ht},reactExports.createElement(Row$3,Object.assign({className:`${kt}-row`},omit$2(Nt,["_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"])),reactExports.createElement(FormItemLabel$1,Object.assign({htmlFor:Rt},_e,{requiredMark:Ft,required:It??At,prefixCls:et})),reactExports.createElement(FormItemInput$1,Object.assign({},_e,$t,{errors:Wt,warnings:Vt,prefixCls:et,status:ur,help:ut,marginBottom:Zt,onErrorVisibleChanged:er}),reactExports.createElement(NoStyleItemContext.Provider,{value:jt},reactExports.createElement(StatusProvider,{prefixCls:et,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:_t,validateStatus:ur},Tt)))),!!Zt&&reactExports.createElement("div",{className:`${kt}-margin-offset`,style:{marginBottom:-Zt}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(_e,et){const rt=Object.keys(_e),st=Object.keys(et);return rt.length===st.length&&rt.every(ct=>{const ut=_e[ct],ft=et[ct];return ut===ft||typeof ut=="function"||typeof ft=="function"})}const MemoInput=reactExports.memo(_e=>{let{children:et}=_e;return et},(_e,et)=>isSimilarControl(_e.control,et.control)&&_e.update===et.update&&_e.childProps.length===et.childProps.length&&_e.childProps.every((rt,st)=>rt===et.childProps[st]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(_e){const{name:et,noStyle:rt,className:st,dependencies:ct,prefixCls:ut,shouldUpdate:ft,rules:gt,children:xt,required:$t,label:_t,messageVariables:wt,trigger:Tt="onChange",validateTrigger:Rt,hidden:It,help:At}=_e,{getPrefixCls:jt}=reactExports.useContext(ConfigContext$1),{name:Nt}=reactExports.useContext(FormContext),kt=useChildren(xt),Ft=typeof kt=="function",Ht=reactExports.useContext(NoStyleItemContext),{validateTrigger:Wt}=reactExports.useContext(Context$8),Vt=Rt!==void 0?Rt:Wt,qt=et!=null,Gt=jt("form",ut),Xt=useCSSVarCls(Gt),[Zt,lr,er]=useStyle$v(Gt,Xt);devUseWarning();const cr=reactExports.useContext(ListContext),ur=reactExports.useRef(),[pr,hr]=useFrameState({}),[fr,dr]=useSafeState(()=>genEmptyMeta()),yr=Or=>{const _r=cr==null?void 0:cr.getKey(Or.name);if(dr(Or.destroy?genEmptyMeta():Or,!0),rt&&At!==!1&&Ht){let Cr=Or.name;if(Or.destroy)Cr=ur.current||Cr;else if(_r!==void 0){const[Nr,Rr]=_r;Cr=[Nr].concat(_toConsumableArray$3(Rr)),ur.current=Cr}Ht(Or,Cr)}},$r=(Or,_r)=>{hr(Cr=>{const Nr=Object.assign({},Cr),Pr=[].concat(_toConsumableArray$3(Or.name.slice(0,-1)),_toConsumableArray$3(_r)).join(NAME_SPLIT);return Or.destroy?delete Nr[Pr]:Nr[Pr]=Or,Nr})},[Er,mr]=reactExports.useMemo(()=>{const Or=_toConsumableArray$3(fr.errors),_r=_toConsumableArray$3(fr.warnings);return Object.values(pr).forEach(Cr=>{Or.push.apply(Or,_toConsumableArray$3(Cr.errors||[])),_r.push.apply(_r,_toConsumableArray$3(Cr.warnings||[]))}),[Or,_r]},[pr,fr.errors,fr.warnings]),Sr=useItemRef();function Tr(Or,_r,Cr){return rt&&!It?reactExports.createElement(StatusProvider,{prefixCls:Gt,hasFeedback:_e.hasFeedback,validateStatus:_e.validateStatus,meta:fr,errors:Er,warnings:mr,noStyle:!0},Or):reactExports.createElement(ItemHolder,Object.assign({key:"row"},_e,{className:classNames(st,er,Xt,lr),prefixCls:Gt,fieldId:_r,isRequired:Cr,errors:Er,warnings:mr,meta:fr,onSubItemMetaChange:$r}),Or)}if(!qt&&!Ft&&!ct)return Zt(Tr(kt));let jr={};return typeof _t=="string"?jr.label=_t:et&&(jr.label=String(et)),wt&&(jr=Object.assign(Object.assign({},jr),wt)),Zt(reactExports.createElement(WrapperField,Object.assign({},_e,{messageVariables:jr,trigger:Tt,validateTrigger:Vt,onMetaChange:yr}),(Or,_r,Cr)=>{const Nr=toArray$7(et).length&&_r?_r.name:[],Rr=getFieldId(Nr,Nt),Pr=$t!==void 0?$t:!!(gt&>.some(Fr=>{if(Fr&&typeof Fr=="object"&&Fr.required&&!Fr.warningOnly)return!0;if(typeof Fr=="function"){const wr=Fr(Cr);return wr&&wr.required&&!wr.warningOnly}return!1})),Mr=Object.assign({},Or);let kr=null;if(Array.isArray(kt)&&qt)kr=kt;else if(!(Ft&&(!(ft||ct)||qt))){if(!(ct&&!Ft&&!qt))if(isValidElement(kt)){const Fr=Object.assign(Object.assign({},kt.props),Mr);if(Fr.id||(Fr.id=Rr),At||Er.length>0||mr.length>0||_e.extra){const Dr=[];(At||Er.length>0)&&Dr.push(`${Rr}_help`),_e.extra&&Dr.push(`${Rr}_extra`),Fr["aria-describedby"]=Dr.join(" ")}Er.length>0&&(Fr["aria-invalid"]="true"),Pr&&(Fr["aria-required"]="true"),supportRef(kt)&&(Fr.ref=Sr(Nr,kt)),new Set([].concat(_toConsumableArray$3(toArray$7(Tt)),_toConsumableArray$3(toArray$7(Vt)))).forEach(Dr=>{Fr[Dr]=function(){for(var Xr,Kr,zr,qr,pn,Qr=arguments.length,Zr=new Array(Qr),vn=0;vn{var{prefixCls:et,children:rt}=_e,st=__rest$h(_e,["prefixCls","children"]);const{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("form",et),ft=reactExports.useMemo(()=>({prefixCls:ut,status:"error"}),[ut]);return reactExports.createElement(List$2,Object.assign({},st),(gt,xt,$t)=>reactExports.createElement(FormItemPrefixContext.Provider,{value:ft},rt(gt.map(_t=>Object.assign(Object.assign({},_t),{fieldKey:_t.key})),xt,{errors:$t.errors,warnings:$t.warnings})))},List=FormList;function useFormInstance(){const{form:_e}=reactExports.useContext(FormContext);return _e}const Form=Form$1;Form.Item=Item$1;Form.List=List;Form.ErrorList=ErrorList$1;Form.useForm=useForm;Form.useFormInstance=useFormInstance;Form.useWatch=useWatch$1;Form.Provider=FormProvider;Form.create=()=>{};function getClientSize(){var _e=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:_e,height:et}}function getOffset$1(_e){var et=_e.getBoundingClientRect(),rt=document.documentElement;return{left:et.left+(window.pageXOffset||rt.scrollLeft)-(rt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||rt.scrollTop)-(rt.clientTop||document.body.clientTop||0)}}var COMMON_PROPS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],PreviewGroupContext=reactExports.createContext(null),uid$1=0;function useRegisterImage(_e,et){var rt=reactExports.useState(function(){return uid$1+=1,String(uid$1)}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useContext(PreviewGroupContext),ft={data:et,canPreview:_e};return reactExports.useEffect(function(){if(ut)return ut.register(ct,ft)},[]),reactExports.useEffect(function(){ut&&ut.register(ct,ft)},[_e,et]),ct}function isImageValid(_e){return new Promise(function(et){var rt=document.createElement("img");rt.onerror=function(){return et(!1)},rt.onload=function(){return et(!0)},rt.src=_e})}function useStatus(_e){var et=_e.src,rt=_e.isCustomPlaceholder,st=_e.fallback,ct=reactExports.useState(rt?"loading":"normal"),ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1],xt=reactExports.useRef(!1),$t=ft==="error";reactExports.useEffect(function(){var Rt=!0;return isImageValid(et).then(function(It){!It&&Rt&>("error")}),function(){Rt=!1}},[et]),reactExports.useEffect(function(){rt&&!xt.current?gt("loading"):$t&>("normal")},[et]);var _t=function(){gt("normal")},wt=function(It){xt.current=!1,ft==="loading"&&It!==null&&It!==void 0&&It.complete&&(It.naturalWidth||It.naturalHeight)&&(xt.current=!0,_t())},Tt=$t&&st?{src:st}:{onLoad:_t,src:et};return[wt,Tt,ft]}var RefContext=reactExports.createContext({});function getMotionName(_e,et,rt){var st=et;return!st&&rt&&(st="".concat(_e,"-").concat(rt)),st}function getScroll$1(_e,et){var rt=_e["page".concat(et?"Y":"X","Offset")],st="scroll".concat(et?"Top":"Left");if(typeof rt!="number"){var ct=_e.document;rt=ct.documentElement[st],typeof rt!="number"&&(rt=ct.body[st])}return rt}function offset$1(_e){var et=_e.getBoundingClientRect(),rt={left:et.left,top:et.top},st=_e.ownerDocument,ct=st.defaultView||st.parentWindow;return rt.left+=getScroll$1(ct),rt.top+=getScroll$1(ct,!0),rt}const MemoChildren=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){var rt=et.shouldUpdate;return!rt});var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"},Panel=React$1.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.className,ct=_e.style,ut=_e.title,ft=_e.ariaId,gt=_e.footer,xt=_e.closable,$t=_e.closeIcon,_t=_e.onClose,wt=_e.children,Tt=_e.bodyStyle,Rt=_e.bodyProps,It=_e.modalRender,At=_e.onMouseDown,jt=_e.onMouseUp,Nt=_e.holderRef,kt=_e.visible,Ft=_e.forceRender,Ht=_e.width,Wt=_e.height,Vt=_e.classNames,qt=_e.styles,Gt=React$1.useContext(RefContext),Xt=Gt.panel,Zt=useComposeRef(Nt,Xt),lr=reactExports.useRef(),er=reactExports.useRef();React$1.useImperativeHandle(et,function(){return{focus:function(){var yr;(yr=lr.current)===null||yr===void 0||yr.focus()},changeActive:function(yr){var $r=document,Er=$r.activeElement;yr&&Er===er.current?lr.current.focus():!yr&&Er===lr.current&&er.current.focus()}}});var cr={};Ht!==void 0&&(cr.width=Ht),Wt!==void 0&&(cr.height=Wt);var ur;gt&&(ur=React$1.createElement("div",{className:classNames("".concat(rt,"-footer"),Vt==null?void 0:Vt.footer),style:_objectSpread2({},qt==null?void 0:qt.footer)},gt));var pr;ut&&(pr=React$1.createElement("div",{className:classNames("".concat(rt,"-header"),Vt==null?void 0:Vt.header),style:_objectSpread2({},qt==null?void 0:qt.header)},React$1.createElement("div",{className:"".concat(rt,"-title"),id:ft},ut)));var hr;xt&&(hr=React$1.createElement("button",{type:"button",onClick:_t,"aria-label":"Close",className:"".concat(rt,"-close")},$t||React$1.createElement("span",{className:"".concat(rt,"-close-x")})));var fr=React$1.createElement("div",{className:classNames("".concat(rt,"-content"),Vt==null?void 0:Vt.content),style:qt==null?void 0:qt.content},hr,pr,React$1.createElement("div",_extends$b({className:classNames("".concat(rt,"-body"),Vt==null?void 0:Vt.body),style:_objectSpread2(_objectSpread2({},Tt),qt==null?void 0:qt.body)},Rt),wt),ur);return React$1.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":ut?ft:null,"aria-modal":"true",ref:Zt,style:_objectSpread2(_objectSpread2({},ct),cr),className:classNames(rt,st),onMouseDown:At,onMouseUp:jt},React$1.createElement("div",{tabIndex:0,ref:lr,style:sentinelStyle,"aria-hidden":"true"}),React$1.createElement(MemoChildren,{shouldUpdate:kt||Ft},It?It(fr):fr),React$1.createElement("div",{tabIndex:0,ref:er,style:sentinelStyle,"aria-hidden":"true"}))}),Content$6=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.title,ct=_e.style,ut=_e.className,ft=_e.visible,gt=_e.forceRender,xt=_e.destroyOnClose,$t=_e.motionName,_t=_e.ariaId,wt=_e.onVisibleChanged,Tt=_e.mousePosition,Rt=reactExports.useRef(),It=reactExports.useState(),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt={};jt&&(kt.transformOrigin=jt);function Ft(){var Ht=offset$1(Rt.current);Nt(Tt?"".concat(Tt.x-Ht.left,"px ").concat(Tt.y-Ht.top,"px"):"")}return reactExports.createElement(CSSMotion,{visible:ft,onVisibleChanged:wt,onAppearPrepare:Ft,onEnterPrepare:Ft,forceRender:gt,motionName:$t,removeOnLeave:xt,ref:Rt},function(Ht,Wt){var Vt=Ht.className,qt=Ht.style;return reactExports.createElement(Panel,_extends$b({},_e,{ref:et,title:st,ariaId:_t,prefixCls:rt,holderRef:Wt,style:_objectSpread2(_objectSpread2(_objectSpread2({},qt),ct),kt),className:classNames(ut,Vt)}))})});Content$6.displayName="Content";function Mask(_e){var et=_e.prefixCls,rt=_e.style,st=_e.visible,ct=_e.maskProps,ut=_e.motionName,ft=_e.className;return reactExports.createElement(CSSMotion,{key:"mask",visible:st,motionName:ut,leavedClassName:"".concat(et,"-mask-hidden")},function(gt,xt){var $t=gt.className,_t=gt.style;return reactExports.createElement("div",_extends$b({ref:xt,style:_objectSpread2(_objectSpread2({},_t),rt),className:classNames("".concat(et,"-mask"),$t,ft)},ct))})}function Dialog(_e){var et=_e.prefixCls,rt=et===void 0?"rc-dialog":et,st=_e.zIndex,ct=_e.visible,ut=ct===void 0?!1:ct,ft=_e.keyboard,gt=ft===void 0?!0:ft,xt=_e.focusTriggerAfterClose,$t=xt===void 0?!0:xt,_t=_e.wrapStyle,wt=_e.wrapClassName,Tt=_e.wrapProps,Rt=_e.onClose,It=_e.afterOpenChange,At=_e.afterClose,jt=_e.transitionName,Nt=_e.animation,kt=_e.closable,Ft=kt===void 0?!0:kt,Ht=_e.mask,Wt=Ht===void 0?!0:Ht,Vt=_e.maskTransitionName,qt=_e.maskAnimation,Gt=_e.maskClosable,Xt=Gt===void 0?!0:Gt,Zt=_e.maskStyle,lr=_e.maskProps,er=_e.rootClassName,cr=_e.classNames,ur=_e.styles,pr=reactExports.useRef(),hr=reactExports.useRef(),fr=reactExports.useRef(),dr=reactExports.useState(ut),yr=_slicedToArray$3(dr,2),$r=yr[0],Er=yr[1],mr=useId$4();function Sr(){contains$1(hr.current,document.activeElement)||(pr.current=document.activeElement)}function Tr(){if(!contains$1(hr.current,document.activeElement)){var kr;(kr=fr.current)===null||kr===void 0||kr.focus()}}function jr(kr){if(kr)Tr();else{if(Er(!1),Wt&&pr.current&&$t){try{pr.current.focus({preventScroll:!0})}catch{}pr.current=null}$r&&(At==null||At())}It==null||It(kr)}function Or(kr){Rt==null||Rt(kr)}var _r=reactExports.useRef(!1),Cr=reactExports.useRef(),Nr=function(){clearTimeout(Cr.current),_r.current=!0},Rr=function(){Cr.current=setTimeout(function(){_r.current=!1})},Pr=null;Xt&&(Pr=function(Fr){_r.current?_r.current=!1:hr.current===Fr.target&&Or(Fr)});function Mr(kr){if(gt&&kr.keyCode===KeyCode.ESC){kr.stopPropagation(),Or(kr);return}ut&&kr.keyCode===KeyCode.TAB&&fr.current.changeActive(!kr.shiftKey)}return reactExports.useEffect(function(){ut&&(Er(!0),Sr())},[ut]),reactExports.useEffect(function(){return function(){clearTimeout(Cr.current)}},[]),reactExports.createElement("div",_extends$b({className:classNames("".concat(rt,"-root"),er)},pickAttrs(_e,{data:!0})),reactExports.createElement(Mask,{prefixCls:rt,visible:Wt&&ut,motionName:getMotionName(rt,Vt,qt),style:_objectSpread2(_objectSpread2({zIndex:st},Zt),ur==null?void 0:ur.mask),maskProps:lr,className:cr==null?void 0:cr.mask}),reactExports.createElement("div",_extends$b({tabIndex:-1,onKeyDown:Mr,className:classNames("".concat(rt,"-wrap"),wt,cr==null?void 0:cr.wrapper),ref:hr,onClick:Pr,style:_objectSpread2(_objectSpread2(_objectSpread2({zIndex:st},_t),ur==null?void 0:ur.wrapper),{},{display:$r?null:"none"})},Tt),reactExports.createElement(Content$6,_extends$b({},_e,{onMouseDown:Nr,onMouseUp:Rr,ref:fr,closable:Ft,ariaId:mr,prefixCls:rt,visible:ut&&$r,onClose:Or,onVisibleChanged:jr,motionName:getMotionName(rt,jt,Nt)}))))}var DialogWrap=function(et){var rt=et.visible,st=et.getContainer,ct=et.forceRender,ut=et.destroyOnClose,ft=ut===void 0?!1:ut,gt=et.afterClose,xt=et.panelRef,$t=reactExports.useState(rt),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1],Rt=reactExports.useMemo(function(){return{panel:xt}},[xt]);return reactExports.useEffect(function(){rt&&Tt(!0)},[rt]),!ct&&ft&&!wt?null:reactExports.createElement(RefContext.Provider,{value:Rt},reactExports.createElement(Portal,{open:rt||ct||wt,autoDestroy:!1,getContainer:st,autoLock:rt||wt},reactExports.createElement(Dialog,_extends$b({},et,{destroyOnClose:ft,afterClose:function(){gt==null||gt(),Tt(!1)}}))))};DialogWrap.displayName="Dialog";function addEventListenerWrap(_e,et,rt,st){var ct=ReactDOM.unstable_batchedUpdates?function(ft){ReactDOM.unstable_batchedUpdates(rt,ft)}:rt;return _e!=null&&_e.addEventListener&&_e.addEventListener(et,ct,st),{remove:function(){_e!=null&&_e.removeEventListener&&_e.removeEventListener(et,ct,st)}}}var initialTransform={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function useImageTransform(_e,et,rt,st){var ct=reactExports.useRef(null),ut=reactExports.useRef([]),ft=reactExports.useState(initialTransform),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=function(It){$t(initialTransform),st&&!isEqual$1(initialTransform,xt)&&st({transform:initialTransform,action:It})},wt=function(It,At){ct.current===null&&(ut.current=[],ct.current=wrapperRaf(function(){$t(function(jt){var Nt=jt;return ut.current.forEach(function(kt){Nt=_objectSpread2(_objectSpread2({},Nt),kt)}),ct.current=null,st==null||st({transform:Nt,action:At}),Nt})})),ut.current.push(_objectSpread2(_objectSpread2({},xt),It))},Tt=function(It,At,jt,Nt,kt){var Ft=_e.current,Ht=Ft.width,Wt=Ft.height,Vt=Ft.offsetWidth,qt=Ft.offsetHeight,Gt=Ft.offsetLeft,Xt=Ft.offsetTop,Zt=It,lr=xt.scale*It;lr>rt?(lr=rt,Zt=rt/xt.scale):lrst){if(et>0)return _defineProperty$c({},_e,ut);if(et<0&&ctst)return _defineProperty$c({},_e,et<0?ut:-ut);return{}}function getFixScaleEleTransPosition(_e,et,rt,st){var ct=getClientSize(),ut=ct.width,ft=ct.height,gt=null;return _e<=ut&&et<=ft?gt={x:0,y:0}:(_e>ut||et>ft)&&(gt=_objectSpread2(_objectSpread2({},fixPoint("x",rt,_e,ut)),fixPoint("y",st,et,ft))),gt}var BASE_SCALE_RATIO=1,WHEEL_MAX_SCALE_RATIO=1;function useMouseEvent(_e,et,rt,st,ct,ut,ft){var gt=ct.rotate,xt=ct.scale,$t=ct.x,_t=ct.y,wt=reactExports.useState(!1),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=reactExports.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),jt=function(Wt){!et||Wt.button!==0||(Wt.preventDefault(),Wt.stopPropagation(),At.current={diffX:Wt.pageX-$t,diffY:Wt.pageY-_t,transformX:$t,transformY:_t},It(!0))},Nt=function(Wt){rt&&Rt&&ut({x:Wt.pageX-At.current.diffX,y:Wt.pageY-At.current.diffY},"move")},kt=function(){if(rt&&Rt){It(!1);var Wt=At.current,Vt=Wt.transformX,qt=Wt.transformY,Gt=$t!==Vt&&_t!==qt;if(!Gt)return;var Xt=_e.current.offsetWidth*xt,Zt=_e.current.offsetHeight*xt,lr=_e.current.getBoundingClientRect(),er=lr.left,cr=lr.top,ur=gt%180!==0,pr=getFixScaleEleTransPosition(ur?Zt:Xt,ur?Xt:Zt,er,cr);pr&&ut(_objectSpread2({},pr),"dragRebound")}},Ft=function(Wt){if(!(!rt||Wt.deltaY==0)){var Vt=Math.abs(Wt.deltaY/100),qt=Math.min(Vt,WHEEL_MAX_SCALE_RATIO),Gt=BASE_SCALE_RATIO+qt*st;Wt.deltaY>0&&(Gt=BASE_SCALE_RATIO/Gt),ft(Gt,"wheel",Wt.clientX,Wt.clientY)}};return reactExports.useEffect(function(){var Ht,Wt,Vt,qt;if(et){Vt=addEventListenerWrap(window,"mouseup",kt,!1),qt=addEventListenerWrap(window,"mousemove",Nt,!1);try{window.top!==window.self&&(Ht=addEventListenerWrap(window.top,"mouseup",kt,!1),Wt=addEventListenerWrap(window.top,"mousemove",Nt,!1))}catch{}}return function(){var Gt,Xt,Zt,lr;(Gt=Vt)===null||Gt===void 0||Gt.remove(),(Xt=qt)===null||Xt===void 0||Xt.remove(),(Zt=Ht)===null||Zt===void 0||Zt.remove(),(lr=Wt)===null||lr===void 0||lr.remove()}},[rt,Rt,$t,_t,gt,et]),{isMoving:Rt,onMouseDown:jt,onMouseMove:Nt,onMouseUp:kt,onWheel:Ft}}function getDistance(_e,et){var rt=_e.x-et.x,st=_e.y-et.y;return Math.hypot(rt,st)}function getCenter(_e,et,rt,st){var ct=getDistance(_e,rt),ut=getDistance(et,st);if(ct===0&&ut===0)return[_e.x,_e.y];var ft=ct/(ct+ut),gt=_e.x+ft*(et.x-_e.x),xt=_e.y+ft*(et.y-_e.y);return[gt,xt]}function useTouchEvent(_e,et,rt,st,ct,ut,ft){var gt=ct.rotate,xt=ct.scale,$t=ct.x,_t=ct.y,wt=reactExports.useState(!1),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=reactExports.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),jt=function(Wt){At.current=_objectSpread2(_objectSpread2({},At.current),Wt)},Nt=function(Wt){if(et){Wt.stopPropagation(),It(!0);var Vt=Wt.touches,qt=Vt===void 0?[]:Vt;qt.length>1?jt({point1:{x:qt[0].clientX,y:qt[0].clientY},point2:{x:qt[1].clientX,y:qt[1].clientY},eventType:"touchZoom"}):jt({point1:{x:qt[0].clientX-$t,y:qt[0].clientY-_t},eventType:"move"})}},kt=function(Wt){var Vt=Wt.touches,qt=Vt===void 0?[]:Vt,Gt=At.current,Xt=Gt.point1,Zt=Gt.point2,lr=Gt.eventType;if(qt.length>1&&lr==="touchZoom"){var er={x:qt[0].clientX,y:qt[0].clientY},cr={x:qt[1].clientX,y:qt[1].clientY},ur=getCenter(Xt,Zt,er,cr),pr=_slicedToArray$3(ur,2),hr=pr[0],fr=pr[1],dr=getDistance(er,cr)/getDistance(Xt,Zt);ft(dr,"touchZoom",hr,fr,!0),jt({point1:er,point2:cr,eventType:"touchZoom"})}else lr==="move"&&(ut({x:qt[0].clientX-Xt.x,y:qt[0].clientY-Xt.y},"move"),jt({eventType:"move"}))},Ft=function(){if(rt){if(Rt&&It(!1),jt({eventType:"none"}),st>xt)return ut({x:0,y:0,scale:st},"touchZoom");var Wt=_e.current.offsetWidth*xt,Vt=_e.current.offsetHeight*xt,qt=_e.current.getBoundingClientRect(),Gt=qt.left,Xt=qt.top,Zt=gt%180!==0,lr=getFixScaleEleTransPosition(Zt?Vt:Wt,Zt?Wt:Vt,Gt,Xt);lr&&ut(_objectSpread2({},lr),"dragRebound")}};return reactExports.useEffect(function(){var Ht;return rt&&et&&(Ht=addEventListenerWrap(window,"touchmove",function(Wt){return Wt.preventDefault()},{passive:!1})),function(){var Wt;(Wt=Ht)===null||Wt===void 0||Wt.remove()}},[rt,et]),{isTouching:Rt,onTouchStart:Nt,onTouchMove:kt,onTouchEnd:Ft}}var Operations=function(et){var rt=et.visible,st=et.maskTransitionName,ct=et.getContainer,ut=et.prefixCls,ft=et.rootClassName,gt=et.icons,xt=et.countRender,$t=et.showSwitch,_t=et.showProgress,wt=et.current,Tt=et.transform,Rt=et.count,It=et.scale,At=et.minScale,jt=et.maxScale,Nt=et.closeIcon,kt=et.onSwitchLeft,Ft=et.onSwitchRight,Ht=et.onClose,Wt=et.onZoomIn,Vt=et.onZoomOut,qt=et.onRotateRight,Gt=et.onRotateLeft,Xt=et.onFlipX,Zt=et.onFlipY,lr=et.toolbarRender,er=et.zIndex,cr=reactExports.useContext(PreviewGroupContext),ur=gt.rotateLeft,pr=gt.rotateRight,hr=gt.zoomIn,fr=gt.zoomOut,dr=gt.close,yr=gt.left,$r=gt.right,Er=gt.flipX,mr=gt.flipY,Sr="".concat(ut,"-operations-operation");reactExports.useEffect(function(){var _r=function(Nr){Nr.keyCode===KeyCode.ESC&&Ht()};return rt&&window.addEventListener("keydown",_r),function(){window.removeEventListener("keydown",_r)}},[rt]);var Tr=[{icon:mr,onClick:Zt,type:"flipY"},{icon:Er,onClick:Xt,type:"flipX"},{icon:ur,onClick:Gt,type:"rotateLeft"},{icon:pr,onClick:qt,type:"rotateRight"},{icon:fr,onClick:Vt,type:"zoomOut",disabled:It<=At},{icon:hr,onClick:Wt,type:"zoomIn",disabled:It===jt}],jr=Tr.map(function(_r){var Cr,Nr=_r.icon,Rr=_r.onClick,Pr=_r.type,Mr=_r.disabled;return reactExports.createElement("div",{className:classNames(Sr,(Cr={},_defineProperty$c(Cr,"".concat(ut,"-operations-operation-").concat(Pr),!0),_defineProperty$c(Cr,"".concat(ut,"-operations-operation-disabled"),!!Mr),Cr)),onClick:Rr,key:Pr},Nr)}),Or=reactExports.createElement("div",{className:"".concat(ut,"-operations")},jr);return reactExports.createElement(CSSMotion,{visible:rt,motionName:st},function(_r){var Cr=_r.className,Nr=_r.style;return reactExports.createElement(Portal,{open:!0,getContainer:ct??document.body},reactExports.createElement("div",{className:classNames("".concat(ut,"-operations-wrapper"),Cr,ft),style:_objectSpread2(_objectSpread2({},Nr),{},{zIndex:er})},Nt===null?null:reactExports.createElement("button",{className:"".concat(ut,"-close"),onClick:Ht},Nt||dr),$t&&reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:classNames("".concat(ut,"-switch-left"),_defineProperty$c({},"".concat(ut,"-switch-left-disabled"),wt===0)),onClick:kt},yr),reactExports.createElement("div",{className:classNames("".concat(ut,"-switch-right"),_defineProperty$c({},"".concat(ut,"-switch-right-disabled"),wt===Rt-1)),onClick:Ft},$r)),reactExports.createElement("div",{className:"".concat(ut,"-footer")},_t&&reactExports.createElement("div",{className:"".concat(ut,"-progress")},xt?xt(wt+1,Rt):"".concat(wt+1," / ").concat(Rt)),lr?lr(Or,_objectSpread2({icons:{flipYIcon:jr[0],flipXIcon:jr[1],rotateLeftIcon:jr[2],rotateRightIcon:jr[3],zoomOutIcon:jr[4],zoomInIcon:jr[5]},actions:{onFlipY:Zt,onFlipX:Xt,onRotateLeft:Gt,onRotateRight:qt,onZoomOut:Vt,onZoomIn:Wt},transform:Tt},cr?{current:wt,total:Rt}:{})):Or)))})},_excluded$11=["fallback","src","imgRef"],_excluded2$h=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],PreviewImage=function(et){var rt=et.fallback,st=et.src,ct=et.imgRef,ut=_objectWithoutProperties$2(et,_excluded$11),ft=useStatus({src:st,fallback:rt}),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];return React$1.createElement("img",_extends$b({ref:function(wt){ct.current=wt,xt(wt)}},ut,$t))},Preview=function(et){var rt=et.prefixCls,st=et.src,ct=et.alt,ut=et.fallback,ft=et.movable,gt=ft===void 0?!0:ft,xt=et.onClose,$t=et.visible,_t=et.icons,wt=_t===void 0?{}:_t,Tt=et.rootClassName,Rt=et.closeIcon,It=et.getContainer,At=et.current,jt=At===void 0?0:At,Nt=et.count,kt=Nt===void 0?1:Nt,Ft=et.countRender,Ht=et.scaleStep,Wt=Ht===void 0?.5:Ht,Vt=et.minScale,qt=Vt===void 0?1:Vt,Gt=et.maxScale,Xt=Gt===void 0?50:Gt,Zt=et.transitionName,lr=Zt===void 0?"zoom":Zt,er=et.maskTransitionName,cr=er===void 0?"fade":er,ur=et.imageRender,pr=et.imgCommonProps,hr=et.toolbarRender,fr=et.onTransform,dr=et.onChange,yr=_objectWithoutProperties$2(et,_excluded2$h),$r=reactExports.useRef(),Er=reactExports.useContext(PreviewGroupContext),mr=Er&&kt>1,Sr=Er&&kt>=1,Tr=reactExports.useState(!0),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1],Cr=useImageTransform($r,qt,Xt,fr),Nr=Cr.transform,Rr=Cr.resetTransform,Pr=Cr.updateTransform,Mr=Cr.dispatchZoomChange,kr=useMouseEvent($r,gt,$t,Wt,Nr,Pr,Mr),Fr=kr.isMoving,wr=kr.onMouseDown,Br=kr.onWheel,Dr=useTouchEvent($r,gt,$t,qt,Nr,Pr,Mr),Xr=Dr.isTouching,Kr=Dr.onTouchStart,zr=Dr.onTouchMove,qr=Dr.onTouchEnd,pn=Nr.rotate,Qr=Nr.scale,Zr=classNames(_defineProperty$c({},"".concat(rt,"-moving"),Fr));reactExports.useEffect(function(){Or||_r(!0)},[Or]);var vn=function(){Rr("close")},vr=function(){Mr(BASE_SCALE_RATIO+Wt,"zoomIn")},gr=function(){Mr(BASE_SCALE_RATIO/(BASE_SCALE_RATIO+Wt),"zoomOut")},br=function(){Pr({rotate:pn+90},"rotateRight")},Hr=function(){Pr({rotate:pn-90},"rotateLeft")},Vr=function(){Pr({flipX:!Nr.flipX},"flipX")},Wr=function(){Pr({flipY:!Nr.flipY},"flipY")},Gr=function(Dn){Dn==null||Dn.preventDefault(),Dn==null||Dn.stopPropagation(),jt>0&&(_r(!1),Rr("prev"),dr==null||dr(jt-1,jt))},cn=function(Dn){Dn==null||Dn.preventDefault(),Dn==null||Dn.stopPropagation(),jt({position:_e||"absolute",inset:0}),genImageMaskStyle=_e=>{const{iconCls:et,motionDurationSlow:rt,paddingXXS:st,marginXXS:ct,prefixCls:ut,colorTextLightSolid:ft}=_e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ft,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${rt}`,[`.${ut}-mask-info`]:Object.assign(Object.assign({},textEllipsis),{padding:`0 ${unit$1(st)}`,[et]:{marginInlineEnd:ct,svg:{verticalAlign:"baseline"}}})}},genPreviewOperationsStyle=_e=>{const{previewCls:et,modalMaskBg:rt,paddingSM:st,marginXL:ct,margin:ut,paddingLG:ft,previewOperationColorDisabled:gt,previewOperationHoverColor:xt,motionDurationSlow:$t,iconCls:_t,colorTextLightSolid:wt}=_e,Tt=new TinyColor(rt).setAlpha(.1),Rt=Tt.clone().setAlpha(.2);return{[`${et}-footer`]:{position:"fixed",bottom:ct,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:_e.previewOperationColor},[`${et}-progress`]:{marginBottom:ut},[`${et}-close`]:{position:"fixed",top:ct,right:{_skip_check_:!0,value:ct},display:"flex",color:wt,backgroundColor:Tt.toRgbString(),borderRadius:"50%",padding:st,outline:0,border:0,cursor:"pointer",transition:`all ${$t}`,"&:hover":{backgroundColor:Rt.toRgbString()},[`& > ${_t}`]:{fontSize:_e.previewOperationSize}},[`${et}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit$1(ft)}`,backgroundColor:Tt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:st,padding:st,cursor:"pointer",transition:`all ${$t}`,userSelect:"none",[`&:not(${et}-operations-operation-disabled):hover > ${_t}`]:{color:xt},"&-disabled":{color:gt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${_t}`]:{fontSize:_e.previewOperationSize}}}}},genPreviewSwitchStyle=_e=>{const{modalMaskBg:et,iconCls:rt,previewOperationColorDisabled:st,previewCls:ct,zIndexPopup:ut,motionDurationSlow:ft}=_e,gt=new TinyColor(et).setAlpha(.1),xt=gt.clone().setAlpha(.2);return{[`${ct}-switch-left, ${ct}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:_e.calc(ut).add(1).equal({unit:!1}),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:gt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ft}`,userSelect:"none","&:hover":{background:xt.toRgbString()},"&-disabled":{"&, &:hover":{color:st,background:"transparent",cursor:"not-allowed",[`> ${rt}`]:{cursor:"not-allowed"}}},[`> ${rt}`]:{fontSize:_e.previewOperationSize}},[`${ct}-switch-left`]:{insetInlineStart:_e.marginSM},[`${ct}-switch-right`]:{insetInlineEnd:_e.marginSM}}},genImagePreviewStyle=_e=>{const{motionEaseOut:et,previewCls:rt,motionDurationSlow:st,componentCls:ct}=_e;return[{[`${ct}-preview-root`]:{[rt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${rt}-body`]:Object.assign(Object.assign({},genBoxStyle()),{overflow:"hidden"}),[`${rt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${st} ${et} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},genBoxStyle()),{transition:`transform ${st} ${et} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${rt}-moving`]:{[`${rt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${ct}-preview-root`]:{[`${rt}-wrap`]:{zIndex:_e.zIndexPopup}}},{[`${ct}-preview-operations-wrapper`]:{position:"fixed",zIndex:_e.calc(_e.zIndexPopup).add(1).equal({unit:!1})},"&":[genPreviewOperationsStyle(_e),genPreviewSwitchStyle(_e)]}]},genImageStyle=_e=>{const{componentCls:et}=_e;return{[et]:{position:"relative",display:"inline-block",[`${et}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${et}-img-placeholder`]:{backgroundColor:_e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${et}-mask`]:Object.assign({},genImageMaskStyle(_e)),[`${et}-mask:hover`]:{opacity:1},[`${et}-placeholder`]:Object.assign({},genBoxStyle())}}},genPreviewMotion=_e=>{const{previewCls:et}=_e;return{[`${et}-root`]:initZoomMotion(_e,"zoom"),"&":initFadeMotion(_e,!0)}},prepareComponentToken$c=_e=>({zIndexPopup:_e.zIndexPopupBase+80,previewOperationColor:new TinyColor(_e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(_e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(_e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:_e.fontSizeIcon*1.5}),useStyle$u=genStyleHooks("Image",_e=>{const et=`${_e.componentCls}-preview`,rt=merge$7(_e,{previewCls:et,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:_e.controlHeightLG});return[genImageStyle(rt),genImagePreviewStyle(rt),genModalMaskStyle(merge$7(rt,{componentCls:et})),genPreviewMotion(rt)]},prepareComponentToken$c);var __rest$g=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{previewPrefixCls:et,preview:rt}=_e,st=__rest$g(_e,["previewPrefixCls","preview"]);const{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("image",et),ft=`${ut}-preview`,gt=ct(),xt=useCSSVarCls(ut),[$t,_t,wt]=useStyle$u(ut,xt),[Tt]=useZIndex("ImagePreview",typeof rt=="object"?rt.zIndex:void 0),Rt=reactExports.useMemo(()=>{var It;if(rt===!1)return rt;const At=typeof rt=="object"?rt:{},jt=classNames(_t,wt,xt,(It=At.rootClassName)!==null&&It!==void 0?It:"");return Object.assign(Object.assign({},At),{transitionName:getTransitionName(gt,"zoom",At.transitionName),maskTransitionName:getTransitionName(gt,"fade",At.maskTransitionName),rootClassName:jt,zIndex:Tt})},[rt]);return $t(reactExports.createElement(ImageInternal.PreviewGroup,Object.assign({preview:Rt,previewPrefixCls:ft,icons},st)))},PreviewGroup=InternalPreviewGroup;var __rest$f=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var et;const{prefixCls:rt,preview:st,className:ct,rootClassName:ut,style:ft}=_e,gt=__rest$f(_e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:xt,locale:$t=localeValues$1,getPopupContainer:_t,image:wt}=reactExports.useContext(ConfigContext$1),Tt=xt("image",rt),Rt=xt(),It=$t.Image||localeValues$1.Image,At=useCSSVarCls(Tt),[jt,Nt,kt]=useStyle$u(Tt,At),Ft=classNames(ut,Nt,kt,At),Ht=classNames(ct,Nt,wt==null?void 0:wt.className),[Wt]=useZIndex("ImagePreview",typeof st=="object"?st.zIndex:void 0),Vt=reactExports.useMemo(()=>{var Gt;if(st===!1)return st;const Xt=typeof st=="object"?st:{},{getContainer:Zt,closeIcon:lr}=Xt,er=__rest$f(Xt,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:reactExports.createElement("div",{className:`${Tt}-mask-info`},reactExports.createElement(EyeOutlined$3,null),It==null?void 0:It.preview),icons},er),{getContainer:Zt??_t,transitionName:getTransitionName(Rt,"zoom",Xt.transitionName),maskTransitionName:getTransitionName(Rt,"fade",Xt.maskTransitionName),zIndex:Wt,closeIcon:lr??((Gt=wt==null?void 0:wt.preview)===null||Gt===void 0?void 0:Gt.closeIcon)})},[st,It,(et=wt==null?void 0:wt.preview)===null||et===void 0?void 0:et.closeIcon]),qt=Object.assign(Object.assign({},wt==null?void 0:wt.style),ft);return jt(reactExports.createElement(ImageInternal,Object.assign({prefixCls:Tt,preview:Vt,rootClassName:Ft,className:Ht,style:qt},gt)))};Image$1.PreviewGroup=PreviewGroup;const Image$2=Image$1;function useHasSider$1(_e,et,rt){return typeof rt=="boolean"?rt:_e.length?!0:toArray$d(et).some(ct=>ct.type===Sider$8)}const genLayoutLightStyle=_e=>{const{componentCls:et,bodyBg:rt,lightSiderBg:st,lightTriggerBg:ct,lightTriggerColor:ut}=_e;return{[`${et}-sider-light`]:{background:st,[`${et}-sider-trigger`]:{color:ut,background:ct},[`${et}-sider-zero-width-trigger`]:{color:ut,background:ct,border:`1px solid ${rt}`,borderInlineStart:0}}}},genLayoutStyle=_e=>{const{antCls:et,componentCls:rt,colorText:st,triggerColor:ct,footerBg:ut,triggerBg:ft,headerHeight:gt,headerPadding:xt,headerColor:$t,footerPadding:_t,triggerHeight:wt,zeroTriggerHeight:Tt,zeroTriggerWidth:Rt,motionDurationMid:It,motionDurationSlow:At,fontSize:jt,borderRadius:Nt,bodyBg:kt,headerBg:Ft,siderBg:Ht}=_e;return{[rt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:kt,"&, *":{boxSizing:"border-box"},[`&${rt}-has-sider`]:{flexDirection:"row",[`> ${rt}, > ${rt}-content`]:{width:0}},[`${rt}-header, &${rt}-footer`]:{flex:"0 0 auto"},[`${rt}-sider`]:{position:"relative",minWidth:0,background:Ht,transition:`all ${It}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${et}-menu${et}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:wt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:wt,color:ct,lineHeight:unit$1(wt),textAlign:"center",background:ft,cursor:"pointer",transition:`all ${It}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:gt,insetInlineEnd:_e.calc(Rt).mul(-1).equal(),zIndex:1,width:Rt,height:Tt,color:ct,fontSize:_e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ht,borderStartStartRadius:0,borderStartEndRadius:Nt,borderEndEndRadius:Nt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${At} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${At}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:_e.calc(Rt).mul(-1).equal(),borderStartStartRadius:Nt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Nt}}}}},genLayoutLightStyle(_e)),{"&-rtl":{direction:"rtl"}}),[`${rt}-header`]:{height:gt,padding:xt,color:$t,lineHeight:unit$1(gt),background:Ft,[`${et}-menu`]:{lineHeight:"inherit"}},[`${rt}-footer`]:{padding:_t,color:st,fontSize:jt,background:ut},[`${rt}-content`]:{flex:"auto",minHeight:0}}},prepareComponentToken$b=_e=>{const{colorBgLayout:et,controlHeight:rt,controlHeightLG:st,colorText:ct,controlHeightSM:ut,marginXXS:ft,colorTextLightSolid:gt,colorBgContainer:xt}=_e,$t=st*1.25;return{colorBgHeader:"#001529",colorBgBody:et,colorBgTrigger:"#002140",bodyBg:et,headerBg:"#001529",headerHeight:rt*2,headerPadding:`0 ${$t}px`,headerColor:ct,footerPadding:`${ut}px ${$t}px`,footerBg:et,siderBg:"#001529",triggerHeight:st+ft*2,triggerBg:"#002140",triggerColor:gt,zeroTriggerWidth:st,zeroTriggerHeight:st,lightSiderBg:xt,lightTriggerBg:xt,lightTriggerColor:ct}},useStyle$t=genStyleHooks("Layout",_e=>[genLayoutStyle(_e)],prepareComponentToken$b,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var __rest$e=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctreactExports.forwardRef((ft,gt)=>reactExports.createElement(ct,Object.assign({ref:gt,suffixCls:et,tagName:rt},ft)))}const Basic$2=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,suffixCls:st,className:ct,tagName:ut}=_e,ft=__rest$e(_e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("layout",rt),[$t,_t,wt]=useStyle$t(xt),Tt=st?`${xt}-${st}`:xt;return $t(reactExports.createElement(ut,Object.assign({className:classNames(rt||Tt,ct,_t,wt),ref:et},ft)))}),BasicLayout$1=reactExports.forwardRef((_e,et)=>{const{direction:rt}=reactExports.useContext(ConfigContext$1),[st,ct]=reactExports.useState([]),{prefixCls:ut,className:ft,rootClassName:gt,children:xt,hasSider:$t,tagName:_t,style:wt}=_e,Tt=__rest$e(_e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Rt=omit$2(Tt,["suffixCls"]),{getPrefixCls:It,layout:At}=reactExports.useContext(ConfigContext$1),jt=It("layout",ut),Nt=useHasSider$1(st,xt,$t),[kt,Ft,Ht]=useStyle$t(jt),Wt=classNames(jt,{[`${jt}-has-sider`]:Nt,[`${jt}-rtl`]:rt==="rtl"},At==null?void 0:At.className,ft,gt,Ft,Ht),Vt=reactExports.useMemo(()=>({siderHook:{addSider:qt=>{ct(Gt=>[].concat(_toConsumableArray$3(Gt),[qt]))},removeSider:qt=>{ct(Gt=>Gt.filter(Xt=>Xt!==qt))}}}),[]);return kt(reactExports.createElement(LayoutContext.Provider,{value:Vt},reactExports.createElement(_t,Object.assign({ref:et,className:Wt,style:Object.assign(Object.assign({},At==null?void 0:At.style),wt)},Rt),xt)))}),Layout$3=generator$1({tagName:"div",displayName:"Layout"})(BasicLayout$1),Header$5=generator$1({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic$2),Footer$2=generator$1({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic$2),Content$5=generator$1({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic$2),InternalLayout=Layout$3,Layout$1=InternalLayout;Layout$1.Header=Header$5;Layout$1.Footer=Footer$2;Layout$1.Content=Content$5;Layout$1.Sider=Sider$8;Layout$1._InternalSiderContext=SiderContext$1;const Layout$2=Layout$1;var locale$6={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:"页码"};const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=_e=>{const{componentCls:et,calc:rt}=_e;return{[`${et}`]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",display:"none",color:_e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${_e.motionDurationSlow} ${_e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${et}-text`]:{fontSize:_e.fontSize,paddingTop:rt(rt(_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"},[`${et}-dot ${et}-dot-item`]:{backgroundColor:_e.colorWhite},[`${et}-text`]:{color:_e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${et}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:_e.contentHeight,[`${et}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:rt(_e.dotSize).mul(-1).div(2).equal()},[`${et}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${_e.colorBgContainer}`},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${et}-dot`]:{margin:rt(_e.dotSizeSM).mul(-1).div(2).equal()},[`${et}-text`]:{paddingTop:rt(rt(_e.dotSizeSM).sub(_e.fontSize)).div(2).add(2).equal()},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${et}-dot`]:{margin:rt(_e.dotSizeLG).mul(-1).div(2).equal()},[`${et}-text`]:{paddingTop:rt(rt(_e.dotSizeLG).sub(_e.fontSize)).div(2).add(2).equal()},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${et}-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"}},[`${et}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:_e.spinDotDefault},[`${et}-dot`]:{position:"relative",display:"inline-block",fontSize:_e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:rt(_e.dotSize).sub(rt(_e.marginXXS).div(2)).div(2).equal(),height:rt(_e.dotSize).sub(rt(_e.marginXXS).div(2)).div(2).equal(),backgroundColor:_e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${et}-dot`]:{fontSize:_e.dotSizeSM,i:{width:rt(rt(_e.dotSizeSM).sub(rt(_e.marginXXS).div(2))).div(2).equal(),height:rt(rt(_e.dotSizeSM).sub(rt(_e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${et}-dot`]:{fontSize:_e.dotSizeLG,i:{width:rt(rt(_e.dotSizeLG).sub(_e.marginXXS)).div(2).equal(),height:rt(rt(_e.dotSizeLG).sub(_e.marginXXS)).div(2).equal()}},[`&${et}-show-text ${et}-text`]:{display:"block"}})}},prepareComponentToken$a=_e=>{const{controlHeightLG:et,controlHeight:rt}=_e;return{contentHeight:400,dotSize:et/2,dotSizeSM:et*.35,dotSizeLG:rt}},useStyle$s=genStyleHooks("Spin",_e=>{const et=merge$7(_e,{spinDotDefault:_e.colorTextDescription});return[genSpinStyle(et)]},prepareComponentToken$a);var __rest$d=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,spinning:rt=!0,delay:st=0,className:ct,rootClassName:ut,size:ft="default",tip:gt,wrapperClassName:xt,style:$t,children:_t,fullscreen:wt=!1}=_e,Tt=__rest$d(_e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:Rt}=reactExports.useContext(ConfigContext$1),It=Rt("spin",et),[At,jt,Nt]=useStyle$s(It),[kt,Ft]=reactExports.useState(()=>rt&&!shouldDelay(rt,st));reactExports.useEffect(()=>{if(rt){const er=debounce$3(st,()=>{Ft(!0)});return er(),()=>{var cr;(cr=er==null?void 0:er.cancel)===null||cr===void 0||cr.call(er)}}Ft(!1)},[st,rt]);const Ht=reactExports.useMemo(()=>typeof _t<"u"&&!wt,[_t,wt]),{direction:Wt,spin:Vt}=reactExports.useContext(ConfigContext$1),qt=classNames(It,Vt==null?void 0:Vt.className,{[`${It}-sm`]:ft==="small",[`${It}-lg`]:ft==="large",[`${It}-spinning`]:kt,[`${It}-show-text`]:!!gt,[`${It}-fullscreen`]:wt,[`${It}-fullscreen-show`]:wt&&kt,[`${It}-rtl`]:Wt==="rtl"},ct,ut,jt,Nt),Gt=classNames(`${It}-container`,{[`${It}-blur`]:kt}),Xt=omit$2(Tt,["indicator"]),Zt=Object.assign(Object.assign({},Vt==null?void 0:Vt.style),$t),lr=reactExports.createElement("div",Object.assign({},Xt,{style:Zt,className:qt,"aria-live":"polite","aria-busy":kt}),renderIndicator(It,_e),gt&&(Ht||wt)?reactExports.createElement("div",{className:`${It}-text`},gt):null);return At(Ht?reactExports.createElement("div",Object.assign({},Xt,{className:classNames(`${It}-nested-loading`,xt,jt,Nt)}),kt&&reactExports.createElement("div",{key:"loading"},lr),reactExports.createElement("div",{className:Gt,key:"container"},_t)):lr)};Spin.setDefaultIndicator=_e=>{defaultIndicator=_e};const Spin$1=Spin;let message$1=null,act=_e=>_e(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:_e,duration:et,rtl:rt,maxCount:st,top:ct}=defaultGlobalConfig,ut=(_e==null?void 0:_e())||document.body;return{getContainer:()=>ut,duration:et,rtl:rt,maxCount:st,top:ct}}const GlobalHolder=React$1.forwardRef((_e,et)=>{const{messageConfig:rt,sync:st}=_e,{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=defaultGlobalConfig.prefixCls||ct("message"),ft=reactExports.useContext(AppConfigContext),[gt,xt]=useInternalMessage(Object.assign(Object.assign(Object.assign({},rt),{prefixCls:ut}),ft.message));return React$1.useImperativeHandle(et,()=>{const $t=Object.assign({},gt);return Object.keys($t).forEach(_t=>{$t[_t]=function(){return st(),gt[_t].apply(gt,arguments)}}),{instance:$t,sync:st}}),xt}),GlobalHolderWrapper=React$1.forwardRef((_e,et)=>{const[rt,st]=React$1.useState(getGlobalContext),ct=()=>{st(getGlobalContext)};React$1.useEffect(ct,[]);const ut=globalConfig(),ft=ut.getRootPrefixCls(),gt=ut.getIconPrefixCls(),xt=ut.getTheme(),$t=React$1.createElement(GlobalHolder,{ref:et,sync:ct,messageConfig:rt});return React$1.createElement(ConfigProvider$1,{prefixCls:ft,iconPrefixCls:gt,theme:xt},ut.holderRender?ut.holderRender($t):$t)});function flushNotice(){if(!message$1){const _e=document.createDocumentFragment(),et={fragment:_e};message$1=et,act(()=>{render$1(React$1.createElement(GlobalHolderWrapper,{ref:rt=>{const{instance:st,sync:ct}=rt||{};Promise.resolve().then(()=>{!et.instance&&st&&(et.instance=st,et.sync=ct,flushNotice())})}}),_e)});return}message$1.instance&&(taskQueue.forEach(_e=>{const{type:et,skipped:rt}=_e;if(!rt)switch(et){case"open":{act(()=>{const st=message$1.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),_e.config));st==null||st.then(_e.resolve),_e.setCloseFn(st)});break}case"destroy":act(()=>{message$1==null||message$1.instance.destroy(_e.key)});break;default:act(()=>{var st;const ct=(st=message$1.instance)[et].apply(st,_toConsumableArray$3(_e.args));ct==null||ct.then(_e.resolve),_e.setCloseFn(ct)})}}),taskQueue=[])}function setMessageGlobalConfig(_e){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),_e),act(()=>{var et;(et=message$1==null?void 0:message$1.sync)===null||et===void 0||et.call(message$1)})}function open(_e){const et=wrapPromiseFn(rt=>{let st;const ct={type:"open",config:_e,resolve:rt,setCloseFn:ut=>{st=ut}};return taskQueue.push(ct),()=>{st?act(()=>{st()}):ct.skipped=!0}});return flushNotice(),et}function typeOpen(_e,et){const rt=wrapPromiseFn(st=>{let ct;const ut={type:_e,args:et,resolve:st,setCloseFn:ft=>{ct=ft}};return taskQueue.push(ut),()=>{ct?act(()=>{ct()}):ut.skipped=!0}});return flushNotice(),rt}function destroy(_e){taskQueue.push({type:"destroy",key:_e}),flushNotice()}const methods=["success","info","warning","error","loading"],baseStaticMethods={open,destroy,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$d},staticMethods=baseStaticMethods;methods.forEach(_e=>{staticMethods[_e]=function(){for(var et=arguments.length,rt=new Array(et),st=0;st{const{componentCls:et,iconCls:rt,antCls:st,zIndexPopup:ct,colorText:ut,colorWarning:ft,marginXXS:gt,marginXS:xt,fontSize:$t,fontWeightStrong:_t,colorTextHeading:wt}=_e;return{[et]:{zIndex:ct,[`&${st}-popover`]:{fontSize:$t},[`${et}-message`]:{marginBottom:xt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${et}-message-icon ${rt}`]:{color:ft,fontSize:$t,lineHeight:1,marginInlineEnd:xt},[`${et}-title`]:{fontWeight:_t,color:wt,"&:only-child":{fontWeight:"normal"}},[`${et}-description`]:{marginTop:gt,color:ut}},[`${et}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:xt}}}}},prepareComponentToken$9=_e=>{const{zIndexPopupBase:et}=_e;return{zIndexPopup:et+60}},useStyle$r=genStyleHooks("Popconfirm",_e=>genBaseStyle$6(_e),prepareComponentToken$9,{resetStyle:!1});var __rest$c=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,okButtonProps:rt,cancelButtonProps:st,title:ct,description:ut,cancelText:ft,okText:gt,okType:xt="primary",icon:$t=reactExports.createElement(ExclamationCircleFilled$1,null),showCancel:_t=!0,close:wt,onConfirm:Tt,onCancel:Rt,onPopupClick:It}=_e,{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),[jt]=useLocale$3("Popconfirm",localeValues$1.Popconfirm),Nt=getRenderPropValue(ct),kt=getRenderPropValue(ut);return reactExports.createElement("div",{className:`${et}-inner-content`,onClick:It},reactExports.createElement("div",{className:`${et}-message`},$t&&reactExports.createElement("span",{className:`${et}-message-icon`},$t),reactExports.createElement("div",{className:`${et}-message-text`},Nt&&reactExports.createElement("div",{className:classNames(`${et}-title`)},Nt),kt&&reactExports.createElement("div",{className:`${et}-description`},kt))),reactExports.createElement("div",{className:`${et}-buttons`},_t&&reactExports.createElement(Button$3,Object.assign({onClick:Rt,size:"small"},st),ft||(jt==null?void 0:jt.cancelText)),reactExports.createElement(ActionButton$1,{buttonProps:Object.assign(Object.assign({size:"small"},convertLegacyProps(xt)),rt),actionFn:Tt,close:wt,prefixCls:At("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},gt||(jt==null?void 0:jt.okText))))},PurePanel$2=_e=>{const{prefixCls:et,placement:rt,className:st,style:ct}=_e,ut=__rest$c(_e,["prefixCls","placement","className","style"]),{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("popconfirm",et),[xt]=useStyle$r(gt);return xt(reactExports.createElement(PopoverPurePanel,{placement:rt,className:classNames(gt,st),style:ct,content:reactExports.createElement(Overlay,Object.assign({prefixCls:gt},ut))}))},PurePanel$3=PurePanel$2;var __rest$b=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{prefixCls:ct,placement:ut="top",trigger:ft="click",okType:gt="primary",icon:xt=reactExports.createElement(ExclamationCircleFilled$1,null),children:$t,overlayClassName:_t,onOpenChange:wt,onVisibleChange:Tt}=_e,Rt=__rest$b(_e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:It}=reactExports.useContext(ConfigContext$1),[At,jt]=useMergedState(!1,{value:(rt=_e.open)!==null&&rt!==void 0?rt:_e.visible,defaultValue:(st=_e.defaultOpen)!==null&&st!==void 0?st:_e.defaultVisible}),Nt=(Zt,lr)=>{jt(Zt,!0),Tt==null||Tt(Zt),wt==null||wt(Zt,lr)},kt=Zt=>{Nt(!1,Zt)},Ft=Zt=>{var lr;return(lr=_e.onConfirm)===null||lr===void 0?void 0:lr.call(void 0,Zt)},Ht=Zt=>{var lr;Nt(!1,Zt),(lr=_e.onCancel)===null||lr===void 0||lr.call(void 0,Zt)},Wt=Zt=>{Zt.keyCode===KeyCode.ESC&&At&&Nt(!1,Zt)},Vt=Zt=>{const{disabled:lr=!1}=_e;lr||Nt(Zt)},qt=It("popconfirm",ct),Gt=classNames(qt,_t),[Xt]=useStyle$r(qt);return Xt(reactExports.createElement(Popover$2,Object.assign({},omit$2(Rt,["title"]),{trigger:ft,placement:ut,onOpenChange:Vt,open:At,ref:et,overlayClassName:Gt,content:reactExports.createElement(Overlay,Object.assign({okType:gt,icon:xt},_e,{prefixCls:qt,close:kt,onConfirm:Ft,onCancel:Ht})),"data-popover-inject":!0}),cloneElement($t,{onKeyDown:Zt=>{var lr,er;reactExports.isValidElement($t)&&((er=$t==null?void 0:(lr=$t.props).onKeyDown)===null||er===void 0||er.call(lr,Zt)),Wt(Zt)}})))});Popconfirm._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$3;const Popconfirm$1=Popconfirm;var defaultProps$1={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var et=reactExports.useRef([]),rt=reactExports.useRef(null);return reactExports.useEffect(function(){var st=Date.now(),ct=!1;et.current.forEach(function(ut){if(ut){ct=!0;var ft=ut.style;ft.transitionDuration=".3s, .3s, .3s, .06s",rt.current&&st-rt.current<100&&(ft.transitionDuration="0s, 0s")}}),ct&&(rt.current=Date.now())}),et.current},uuid$1=0,isBrowserClient$2=canUseDom$1();function getUUID$1(){var _e;return isBrowserClient$2?(_e=uuid$1,uuid$1+=1):_e="TEST_OR_SSR",_e}const useId$1=function(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_progress_".concat(getUUID$1()))},[]),_e||st};var Block=function(et){var rt=et.bg,st=et.children;return reactExports.createElement("div",{style:{width:"100%",height:"100%",background:rt}},st)};function getPtgColors(_e,et){return Object.keys(_e).map(function(rt){var st=parseFloat(rt),ct="".concat(Math.floor(st*et),"%");return"".concat(_e[rt]," ").concat(ct)})}var PtgCircle=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.color,ct=_e.gradientId,ut=_e.radius,ft=_e.style,gt=_e.ptg,xt=_e.strokeLinecap,$t=_e.strokeWidth,_t=_e.size,wt=_e.gapDegree,Tt=st&&_typeof$e(st)==="object",Rt=Tt?"#FFF":void 0,It=_t/2,At=reactExports.createElement("circle",{className:"".concat(rt,"-circle-path"),r:ut,cx:It,cy:It,stroke:Rt,strokeLinecap:xt,strokeWidth:$t,opacity:gt===0?0:1,style:ft,ref:et});if(!Tt)return At;var jt="".concat(ct,"-conic"),Nt=wt?"".concat(180+wt/2,"deg"):"0deg",kt=getPtgColors(st,(360-wt)/360),Ft=getPtgColors(st,1),Ht="conic-gradient(from ".concat(Nt,", ").concat(kt.join(", "),")"),Wt="linear-gradient(to ".concat(wt?"bottom":"top",", ").concat(Ft.join(", "),")");return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("mask",{id:jt},At),reactExports.createElement("foreignObject",{x:0,y:0,width:_t,height:_t,mask:"url(#".concat(jt,")")},reactExports.createElement(Block,{bg:Wt},reactExports.createElement(Block,{bg:Ht}))))}),VIEW_BOX_SIZE=100,getCircleStyle=function(et,rt,st,ct,ut,ft,gt,xt,$t,_t){var wt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Tt=st/100*360*((360-ft)/360),Rt=ft===0?0:{bottom:0,top:180,left:90,right:-90}[gt],It=(100-ct)/100*rt;$t==="round"&&ct!==100&&(It+=_t/2,It>=rt&&(It=rt-.01));var At=VIEW_BOX_SIZE/2;return{stroke:typeof xt=="string"?xt:void 0,strokeDasharray:"".concat(rt,"px ").concat(et),strokeDashoffset:It+wt,transform:"rotate(".concat(ut+Tt+Rt,"deg)"),transformOrigin:"".concat(At,"px ").concat(At,"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}},_excluded$_=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$6(_e){var et=_e??[];return Array.isArray(et)?et:[et]}var Circle$2=function(et){var rt=_objectSpread2(_objectSpread2({},defaultProps$1),et),st=rt.id,ct=rt.prefixCls,ut=rt.steps,ft=rt.strokeWidth,gt=rt.trailWidth,xt=rt.gapDegree,$t=xt===void 0?0:xt,_t=rt.gapPosition,wt=rt.trailColor,Tt=rt.strokeLinecap,Rt=rt.style,It=rt.className,At=rt.strokeColor,jt=rt.percent,Nt=_objectWithoutProperties$2(rt,_excluded$_),kt=VIEW_BOX_SIZE/2,Ft=useId$1(st),Ht="".concat(Ft,"-gradient"),Wt=kt-ft/2,Vt=Math.PI*2*Wt,qt=$t>0?90+$t/2:-90,Gt=Vt*((360-$t)/360),Xt=_typeof$e(ut)==="object"?ut:{count:ut,space:2},Zt=Xt.count,lr=Xt.space,er=toArray$6(jt),cr=toArray$6(At),ur=cr.find(function(Er){return Er&&_typeof$e(Er)==="object"}),pr=ur&&_typeof$e(ur)==="object",hr=pr?"butt":Tt,fr=getCircleStyle(Vt,Gt,0,100,qt,$t,_t,wt,hr,ft),dr=useTransitionDuration(),yr=function(){var mr=0;return er.map(function(Sr,Tr){var jr=cr[Tr]||cr[cr.length-1],Or=getCircleStyle(Vt,Gt,mr,Sr,qt,$t,_t,jr,hr,ft);return mr+=Sr,reactExports.createElement(PtgCircle,{key:Tr,color:jr,ptg:Sr,radius:Wt,prefixCls:ct,gradientId:Ht,style:Or,strokeLinecap:hr,strokeWidth:ft,gapDegree:$t,ref:function(Cr){dr[Tr]=Cr},size:VIEW_BOX_SIZE})}).reverse()},$r=function(){var mr=Math.round(Zt*(er[0]/100)),Sr=100/Zt,Tr=0;return new Array(Zt).fill(null).map(function(jr,Or){var _r=Or<=mr-1?cr[0]:wt,Cr=_r&&_typeof$e(_r)==="object"?"url(#".concat(Ht,")"):void 0,Nr=getCircleStyle(Vt,Gt,Tr,Sr,qt,$t,_t,_r,"butt",ft,lr);return Tr+=(Gt-Nr.strokeDashoffset+lr)*100/Gt,reactExports.createElement("circle",{key:Or,className:"".concat(ct,"-circle-path"),r:Wt,cx:kt,cy:kt,stroke:Cr,strokeWidth:ft,opacity:1,style:Nr,ref:function(Pr){dr[Or]=Pr}})})};return reactExports.createElement("svg",_extends$b({className:classNames("".concat(ct,"-circle"),It),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:Rt,id:st,role:"presentation"},Nt),!Zt&&reactExports.createElement("circle",{className:"".concat(ct,"-circle-trail"),r:Wt,cx:kt,cy:kt,stroke:wt,strokeLinecap:hr,strokeWidth:gt||ft,style:fr}),Zt?$r():yr())};function validProgress(_e){return!_e||_e<0?0:_e>100?100:_e}function getSuccessPercent(_e){let{success:et,successPercent:rt}=_e,st=rt;return et&&"progress"in et&&(st=et.progress),et&&"percent"in et&&(st=et.percent),st}const getPercentage=_e=>{let{percent:et,success:rt,successPercent:st}=_e;const ct=validProgress(getSuccessPercent({success:rt,successPercent:st}));return[ct,validProgress(validProgress(et)-ct)]},getStrokeColor=_e=>{let{success:et={},strokeColor:rt}=_e;const{strokeColor:st}=et;return[st||presetPrimaryColors$5.green,rt||null]},getSize=(_e,et,rt)=>{var st,ct,ut,ft;let gt=-1,xt=-1;if(et==="step"){const $t=rt.steps,_t=rt.strokeWidth;typeof _e=="string"||typeof _e>"u"?(gt=_e==="small"?2:14,xt=_t??8):typeof _e=="number"?[gt,xt]=[_e,_e]:[gt=14,xt=8]=_e,gt*=$t}else if(et==="line"){const $t=rt==null?void 0:rt.strokeWidth;typeof _e=="string"||typeof _e>"u"?xt=$t||(_e==="small"?6:8):typeof _e=="number"?[gt,xt]=[_e,_e]:[gt=-1,xt=8]=_e}else(et==="circle"||et==="dashboard")&&(typeof _e=="string"||typeof _e>"u"?[gt,xt]=_e==="small"?[60,60]:[120,120]:typeof _e=="number"?[gt,xt]=[_e,_e]:(gt=(ct=(st=_e[0])!==null&&st!==void 0?st:_e[1])!==null&&ct!==void 0?ct:120,xt=(ft=(ut=_e[0])!==null&&ut!==void 0?ut:_e[1])!==null&&ft!==void 0?ft:120));return[gt,xt]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=_e=>CIRCLE_MIN_STROKE_WIDTH/_e*100,Circle=_e=>{const{prefixCls:et,trailColor:rt=null,strokeLinecap:st="round",gapPosition:ct,gapDegree:ut,width:ft=120,type:gt,children:xt,success:$t,size:_t=ft}=_e,[wt,Tt]=getSize(_t,"circle");let{strokeWidth:Rt}=_e;Rt===void 0&&(Rt=Math.max(getMinPercent(wt),6));const It={width:wt,height:Tt,fontSize:wt*.15+6},At=reactExports.useMemo(()=>{if(ut||ut===0)return ut;if(gt==="dashboard")return 75},[ut,gt]),jt=ct||gt==="dashboard"&&"bottom"||void 0,Nt=Object.prototype.toString.call(_e.strokeColor)==="[object Object]",kt=getStrokeColor({success:$t,strokeColor:_e.strokeColor}),Ft=classNames(`${et}-inner`,{[`${et}-circle-gradient`]:Nt}),Ht=reactExports.createElement(Circle$2,{percent:getPercentage(_e),strokeWidth:Rt,trailWidth:Rt,strokeColor:kt,strokeLinecap:st,trailColor:rt,prefixCls:et,gapDegree:At,gapPosition:jt});return reactExports.createElement("div",{className:Ft,style:It},wt<=20?reactExports.createElement(Tooltip$1,{title:xt},reactExports.createElement("span",null,Ht)):reactExports.createElement(reactExports.Fragment,null,Ht,xt))},Circle$1=Circle,LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=_e=>{const et=_e?"100%":"-100%";return new Keyframe(`antProgress${_e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${et}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${et}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$5=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:_e.fontSize,marginInlineEnd:_e.marginXS,marginBottom:_e.marginXS},[`${et}-outer`]:{display:"inline-block",width:"100%"},[`&${et}-show-info`]:{[`${et}-outer`]:{marginInlineEnd:`calc(-2em - ${unit$1(_e.marginXS)})`,paddingInlineEnd:`calc(2em + ${unit$1(_e.paddingXS)})`}},[`${et}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:_e.remainingColor,borderRadius:_e.lineBorderRadius},[`${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.defaultColor}},[`${et}-success-bg, ${et}-bg`]:{position:"relative",background:_e.defaultColor,borderRadius:_e.lineBorderRadius,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOutCirc}`},[`${et}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"}},[`${et}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:_e.colorSuccess},[`${et}-text`]:{display:"inline-block",width:"2em",marginInlineStart:_e.marginXS,color:_e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[rt]:{fontSize:_e.fontSize}},[`&${et}-status-active`]:{[`${et}-bg::before`]:{position:"absolute",inset:0,backgroundColor:_e.colorBgContainer,borderRadius:_e.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:_e.progressActiveMotionDuration,animationTimingFunction:_e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${et}-rtl${et}-status-active`]:{[`${et}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${et}-status-exception`]:{[`${et}-bg`]:{backgroundColor:_e.colorError},[`${et}-text`]:{color:_e.colorError}},[`&${et}-status-exception ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.colorError}},[`&${et}-status-success`]:{[`${et}-bg`]:{backgroundColor:_e.colorSuccess},[`${et}-text`]:{color:_e.colorSuccess}},[`&${et}-status-success ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.colorSuccess}}})}},genCircleStyle=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:{[`${et}-circle-trail`]:{stroke:_e.remainingColor},[`&${et}-circle ${et}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${et}-circle ${et}-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%)",[rt]:{fontSize:_e.circleIconFontSize}},[`${et}-circle&-status-exception`]:{[`${et}-text`]:{color:_e.colorError}},[`${et}-circle&-status-success`]:{[`${et}-text`]:{color:_e.colorSuccess}}},[`${et}-inline-circle`]:{lineHeight:1,[`${et}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=_e=>{const{componentCls:et}=_e;return{[et]:{[`${et}-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}}}}}},genSmallLine=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:{[`${et}-small&-line, ${et}-small&-line ${et}-text ${rt}`]:{fontSize:_e.fontSizeSM}}}},prepareComponentToken$8=_e=>({circleTextColor:_e.colorText,defaultColor:_e.colorInfo,remainingColor:_e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${_e.fontSize/_e.fontSizeSM}em`}),useStyle$q=genStyleHooks("Progress",_e=>{const et=_e.calc(_e.marginXXS).div(2).equal(),rt=merge$7(_e,{progressStepMarginInlineEnd:et,progressStepMinWidth:et,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$5(rt),genCircleStyle(rt),genStepStyle(rt),genSmallLine(rt)]},prepareComponentToken$8);var __rest$a=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let et=[];return Object.keys(_e).forEach(rt=>{const st=parseFloat(rt.replace(/%/g,""));isNaN(st)||et.push({key:st,value:_e[rt]})}),et=et.sort((rt,st)=>rt.key-st.key),et.map(rt=>{let{key:st,value:ct}=rt;return`${ct} ${st}%`}).join(", ")},handleGradient=(_e,et)=>{const{from:rt=presetPrimaryColors$5.blue,to:st=presetPrimaryColors$5.blue,direction:ct=et==="rtl"?"to left":"to right"}=_e,ut=__rest$a(_e,["from","to","direction"]);if(Object.keys(ut).length!==0){const gt=sortGradient(ut),xt=`linear-gradient(${ct}, ${gt})`;return{background:xt,[LineStrokeColorVar]:xt}}const ft=`linear-gradient(${ct}, ${rt}, ${st})`;return{background:ft,[LineStrokeColorVar]:ft}},Line=_e=>{const{prefixCls:et,direction:rt,percent:st,size:ct,strokeWidth:ut,strokeColor:ft,strokeLinecap:gt="round",children:xt,trailColor:$t=null,success:_t}=_e,wt=ft&&typeof ft!="string"?handleGradient(ft,rt):{[LineStrokeColorVar]:ft,background:ft},Tt=gt==="square"||gt==="butt"?0:void 0,Rt=ct??[-1,ut||(ct==="small"?6:8)],[It,At]=getSize(Rt,"line",{strokeWidth:ut}),jt={backgroundColor:$t||void 0,borderRadius:Tt},Nt=Object.assign(Object.assign({width:`${validProgress(st)}%`,height:At,borderRadius:Tt},wt),{[Percent]:validProgress(st)/100}),kt=getSuccessPercent(_e),Ft={width:`${validProgress(kt)}%`,height:At,borderRadius:Tt,backgroundColor:_t==null?void 0:_t.strokeColor},Ht={width:It<0?"100%":It,height:At};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:`${et}-outer`,style:Ht},reactExports.createElement("div",{className:`${et}-inner`,style:jt},reactExports.createElement("div",{className:`${et}-bg`,style:Nt}),kt!==void 0?reactExports.createElement("div",{className:`${et}-success-bg`,style:Ft}):null)),xt)},Line$1=Line,Steps$1=_e=>{const{size:et,steps:rt,percent:st=0,strokeWidth:ct=8,strokeColor:ut,trailColor:ft=null,prefixCls:gt,children:xt}=_e,$t=Math.round(rt*(st/100)),wt=et??[et==="small"?2:14,ct],[Tt,Rt]=getSize(wt,"step",{steps:rt,strokeWidth:ct}),It=Tt/rt,At=new Array(rt);for(let jt=0;jt{const{prefixCls:rt,className:st,rootClassName:ct,steps:ut,strokeColor:ft,percent:gt=0,size:xt="default",showInfo:$t=!0,type:_t="line",status:wt,format:Tt,style:Rt}=_e,It=__rest$9(_e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),At=reactExports.useMemo(()=>{var cr,ur;const pr=getSuccessPercent(_e);return parseInt(pr!==void 0?(cr=pr??0)===null||cr===void 0?void 0:cr.toString():(ur=gt??0)===null||ur===void 0?void 0:ur.toString(),10)},[gt,_e.success,_e.successPercent]),jt=reactExports.useMemo(()=>!ProgressStatuses.includes(wt)&&At>=100?"success":wt||"normal",[wt,At]),{getPrefixCls:Nt,direction:kt,progress:Ft}=reactExports.useContext(ConfigContext$1),Ht=Nt("progress",rt),[Wt,Vt,qt]=useStyle$q(Ht),Gt=reactExports.useMemo(()=>{if(!$t)return null;const cr=getSuccessPercent(_e);let ur;const pr=Tt||(fr=>`${fr}%`),hr=_t==="line";return Tt||jt!=="exception"&&jt!=="success"?ur=pr(validProgress(gt),validProgress(cr)):jt==="exception"?ur=hr?reactExports.createElement(CloseCircleFilled$3,null):reactExports.createElement(CloseOutlined$1,null):jt==="success"&&(ur=hr?reactExports.createElement(CheckCircleFilled$1,null):reactExports.createElement(CheckOutlined$1,null)),reactExports.createElement("span",{className:`${Ht}-text`,title:typeof ur=="string"?ur:void 0},ur)},[$t,gt,At,jt,_t,Ht,Tt]),Xt=Array.isArray(ft)?ft[0]:ft,Zt=typeof ft=="string"||Array.isArray(ft)?ft:void 0;let lr;_t==="line"?lr=ut?reactExports.createElement(Steps$2,Object.assign({},_e,{strokeColor:Zt,prefixCls:Ht,steps:ut}),Gt):reactExports.createElement(Line$1,Object.assign({},_e,{strokeColor:Xt,prefixCls:Ht,direction:kt}),Gt):(_t==="circle"||_t==="dashboard")&&(lr=reactExports.createElement(Circle$1,Object.assign({},_e,{strokeColor:Xt,prefixCls:Ht,progressStatus:jt}),Gt));const er=classNames(Ht,`${Ht}-status-${jt}`,`${Ht}-${_t==="dashboard"&&"circle"||ut&&"steps"||_t}`,{[`${Ht}-inline-circle`]:_t==="circle"&&getSize(xt,"circle")[0]<=20,[`${Ht}-show-info`]:$t,[`${Ht}-${xt}`]:typeof xt=="string",[`${Ht}-rtl`]:kt==="rtl"},Ft==null?void 0:Ft.className,st,ct,Vt,qt);return Wt(reactExports.createElement("div",Object.assign({ref:et,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Rt),className:er,role:"progressbar","aria-valuenow":At},omit$2(It,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),lr))}),Progress$1=Progress;var ReloadOutlined$2={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"};const ReloadOutlinedSvg=ReloadOutlined$2;var ReloadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:ReloadOutlinedSvg}))};const ReloadOutlined$1=reactExports.forwardRef(ReloadOutlined);var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(_e,et,rt)=>et in _e?__defProp(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:rt}):_e[et]=rt,__spreadValues=(_e,et)=>{for(var rt in et||(et={}))__hasOwnProp.call(et,rt)&&__defNormalProp(_e,rt,et[rt]);if(__getOwnPropSymbols)for(var rt of __getOwnPropSymbols(et))__propIsEnum.call(et,rt)&&__defNormalProp(_e,rt,et[rt]);return _e},__objRest=(_e,et)=>{var rt={};for(var st in _e)__hasOwnProp.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&__getOwnPropSymbols)for(var st of __getOwnPropSymbols(_e))et.indexOf(st)<0&&__propIsEnum.call(_e,st)&&(rt[st]=_e[st]);return rt};/** + .${st}-col-xl-24${rt}-label`]:makeVerticalLayoutLabel(_e),[`@media (max-width: ${unit$1(_e.screenXSMax)})`]:[makeVerticalLayout(_e),{[et]:{[`.${st}-col-xs-24${rt}-label`]:makeVerticalLayoutLabel(_e)}}],[`@media (max-width: ${unit$1(_e.screenSMMax)})`]:{[et]:{[`.${st}-col-sm-24${rt}-label`]:makeVerticalLayoutLabel(_e)}},[`@media (max-width: ${unit$1(_e.screenMDMax)})`]:{[et]:{[`.${st}-col-md-24${rt}-label`]:makeVerticalLayoutLabel(_e)}},[`@media (max-width: ${unit$1(_e.screenLGMax)})`]:{[et]:{[`.${st}-col-lg-24${rt}-label`]:makeVerticalLayoutLabel(_e)}}}},prepareComponentToken$f=_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}),prepareToken$1=(_e,et)=>merge$7(_e,{formItemCls:`${_e.componentCls}-item`,rootPrefixCls:et}),useStyle$x=genStyleHooks("Form",(_e,et)=>{let{rootPrefixCls:rt}=et;const st=prepareToken$1(_e,rt);return[genFormStyle(st),genFormItemStyle(st),genFormValidateMotionStyle(st),genHorizontalStyle$1(st),genInlineStyle(st),genVerticalStyle$1(st),genCollapseMotion(st),zoomIn]},prepareComponentToken$f,{order:-1e3}),EMPTY_LIST=[];function toErrorEntity(_e,et,rt){let st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _e=="string"?_e:`${et}-${st}`,error:_e,errorStatus:rt}}const ErrorList=_e=>{let{help:et,helpStatus:rt,errors:st=EMPTY_LIST,warnings:ct=EMPTY_LIST,className:ut,fieldId:ft,onVisibleChanged:gt}=_e;const{prefixCls:xt}=reactExports.useContext(FormItemPrefixContext),$t=`${xt}-item-explain`,_t=useCSSVarCls(xt),[wt,Tt,Rt]=useStyle$x(xt,_t),It=reactExports.useMemo(()=>initCollapseMotion$1(xt),[xt]),At=useDebounce(st),jt=useDebounce(ct),Nt=reactExports.useMemo(()=>et!=null?[toErrorEntity(et,"help",rt)]:[].concat(_toConsumableArray$3(At.map((Ft,Ht)=>toErrorEntity(Ft,"error","error",Ht))),_toConsumableArray$3(jt.map((Ft,Ht)=>toErrorEntity(Ft,"warning","warning",Ht)))),[et,rt,At,jt]),kt={};return ft&&(kt.id=`${ft}_help`),wt(reactExports.createElement(CSSMotion,{motionDeadline:It.motionDeadline,motionName:`${xt}-show-help`,visible:!!Nt.length,onVisibleChanged:gt},Ft=>{const{className:Ht,style:Wt}=Ft;return reactExports.createElement("div",Object.assign({},kt,{className:classNames($t,Ht,Rt,_t,ut,Tt),style:Wt,role:"alert"}),reactExports.createElement(CSSMotionList,Object.assign({keys:Nt},initCollapseMotion$1(xt),{motionName:`${xt}-show-help-item`,component:!1}),Vt=>{const{key:qt,error:Xt,errorStatus:Gt,className:Zt,style:er}=Vt;return reactExports.createElement("div",{key:qt,className:classNames(Zt,{[`${$t}-${Gt}`]:Gt}),style:er},Xt)}))}))},ErrorList$1=ErrorList,formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$8(_e){return _e===void 0||_e===!1?[]:Array.isArray(_e)?_e:[_e]}function getFieldId(_e,et){if(!_e.length)return;const rt=_e.join("_");return et?`${et}_${rt}`:formItemNameBlackList.includes(rt)?`${defaultItemNamePrefixCls}_${rt}`:rt}function getStatus(_e,et,rt,st,ct,ut){let ft=st;return ut!==void 0?ft=ut:rt.validating?ft="validating":_e.length?ft="error":et.length?ft="warning":(rt.touched||ct&&rt.validated)&&(ft="success"),ft}function toNamePathStr(_e){return toArray$8(_e).join("_")}function useForm(_e){const[et]=useForm$1(),rt=reactExports.useRef({}),st=reactExports.useMemo(()=>_e??Object.assign(Object.assign({},et),{__INTERNAL__:{itemRef:ct=>ut=>{const ft=toNamePathStr(ct);ut?rt.current[ft]=ut:delete rt.current[ft]}},scrollToField:function(ct){let ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ft=toArray$8(ct),gt=getFieldId(ft,st.__INTERNAL__.name),xt=gt?document.getElementById(gt):null;xt&&e$2(xt,Object.assign({scrollMode:"if-needed",block:"nearest"},ut))},getFieldInstance:ct=>{const ut=toNamePathStr(ct);return rt.current[ut]}}),[_e,et]);return[st]}var __rest$o=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const rt=reactExports.useContext(DisabledContext$2),{getPrefixCls:st,direction:ct,form:ut}=reactExports.useContext(ConfigContext$1),{prefixCls:ft,className:gt,rootClassName:xt,size:$t,disabled:_t=rt,form:wt,colon:Tt,labelAlign:Rt,labelWrap:It,labelCol:At,wrapperCol:jt,hideRequiredMark:Nt,layout:kt="horizontal",scrollToFirstError:Ft,requiredMark:Ht,onFinishFailed:Wt,name:Vt,style:qt,feedbackIcons:Xt,variant:Gt}=_e,Zt=__rest$o(_e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),er=useSize($t),lr=reactExports.useContext(ValidateMessagesContext),cr=reactExports.useMemo(()=>Ht!==void 0?Ht:Nt?!1:ut&&ut.requiredMark!==void 0?ut.requiredMark:!0,[Nt,Ht,ut]),ur=Tt??(ut==null?void 0:ut.colon),fr=st("form",ft),hr=useCSSVarCls(fr),[pr,dr,yr]=useStyle$x(fr,hr),Sr=classNames(fr,`${fr}-${kt}`,{[`${fr}-hide-required-mark`]:cr===!1,[`${fr}-rtl`]:ct==="rtl",[`${fr}-${er}`]:er},yr,hr,dr,ut==null?void 0:ut.className,gt,xt),[br]=useForm(wt),{__INTERNAL__:mr}=br;mr.name=Vt;const Er=reactExports.useMemo(()=>({name:Vt,labelAlign:Rt,labelCol:At,labelWrap:It,wrapperCol:jt,vertical:kt==="vertical",colon:ur,requiredMark:cr,itemRef:mr.itemRef,form:br,feedbackIcons:Xt}),[Vt,Rt,At,jt,kt,ur,cr,br,Xt]);reactExports.useImperativeHandle(et,()=>br);const Tr=(Or,wr)=>{if(Or){let Cr={block:"nearest"};typeof Or=="object"&&(Cr=Or),br.scrollToField(wr,Cr)}},Mr=Or=>{if(Wt==null||Wt(Or),Or.errorFields.length){const wr=Or.errorFields[0].name;if(Ft!==void 0){Tr(Ft,wr);return}ut&&ut.scrollToFirstError!==void 0&&Tr(ut.scrollToFirstError,wr)}};return pr(reactExports.createElement(VariantContext.Provider,{value:Gt},reactExports.createElement(DisabledContextProvider,{disabled:_t},reactExports.createElement(SizeContext$2.Provider,{value:er},reactExports.createElement(FormProvider,{validateMessages:lr},reactExports.createElement(FormContext.Provider,{value:Er},reactExports.createElement(RefForm,Object.assign({id:Vt},Zt,{name:Vt,onFinishFailed:Mr,form:br,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),qt),className:Sr}))))))))},Form$1=reactExports.forwardRef(InternalForm);function useChildren(_e){if(typeof _e=="function")return _e;const et=toArray$e(_e);return et.length<=1?et[0]:et}const useFormItemStatus=()=>{const{status:_e,errors:et=[],warnings:rt=[]}=reactExports.useContext(FormItemInputContext);return{status:_e,errors:et,warnings:rt}};useFormItemStatus.Context=FormItemInputContext;const useFormItemStatus$1=useFormItemStatus;function useFrameState(_e){const[et,rt]=reactExports.useState(_e),st=reactExports.useRef(null),ct=reactExports.useRef([]),ut=reactExports.useRef(!1);reactExports.useEffect(()=>(ut.current=!1,()=>{ut.current=!0,wrapperRaf.cancel(st.current),st.current=null}),[]);function ft(gt){ut.current||(st.current===null&&(ct.current=[],st.current=wrapperRaf(()=>{st.current=null,rt(xt=>{let $t=xt;return ct.current.forEach(_t=>{$t=_t($t)}),$t})})),ct.current.push(gt))}return[et,ft]}function useItemRef(){const{itemRef:_e}=reactExports.useContext(FormContext),et=reactExports.useRef({});function rt(st,ct){const ut=ct&&typeof ct=="object"&&ct.ref,ft=st.join("_");return(et.current.name!==ft||et.current.originRef!==ut)&&(et.current.name=ft,et.current.originRef=ut,et.current.ref=composeRef(_e(st),ut)),et.current.ref}return rt}const genFallbackStyle=_e=>{const{formItemCls:et}=_e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${et}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(_e,et)=>{let{rootPrefixCls:rt}=et;const st=prepareToken$1(_e,rt);return[genFallbackStyle(st)]}),FormItemInput=_e=>{const{prefixCls:et,status:rt,wrapperCol:st,children:ct,errors:ut,warnings:ft,_internalItemRender:gt,extra:xt,help:$t,fieldId:_t,marginBottom:wt,onErrorVisibleChanged:Tt}=_e,Rt=`${et}-item`,It=reactExports.useContext(FormContext),At=st||It.wrapperCol||{},jt=classNames(`${Rt}-control`,At.className),Nt=reactExports.useMemo(()=>Object.assign({},It),[It]);delete Nt.labelCol,delete Nt.wrapperCol;const kt=reactExports.createElement("div",{className:`${Rt}-control-input`},reactExports.createElement("div",{className:`${Rt}-control-input-content`},ct)),Ft=reactExports.useMemo(()=>({prefixCls:et,status:rt}),[et,rt]),Ht=wt!==null||ut.length||ft.length?reactExports.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},reactExports.createElement(FormItemPrefixContext.Provider,{value:Ft},reactExports.createElement(ErrorList$1,{fieldId:_t,errors:ut,warnings:ft,help:$t,helpStatus:rt,className:`${Rt}-explain-connected`,onVisibleChanged:Tt})),!!wt&&reactExports.createElement("div",{style:{width:0,height:wt}})):null,Wt={};_t&&(Wt.id=`${_t}_extra`);const Vt=xt?reactExports.createElement("div",Object.assign({},Wt,{className:`${Rt}-extra`}),xt):null,qt=gt&>.mark==="pro_table_render"&>.render?gt.render(_e,{input:kt,errorList:Ht,extra:Vt}):reactExports.createElement(reactExports.Fragment,null,kt,Ht,Vt);return reactExports.createElement(FormContext.Provider,{value:Nt},reactExports.createElement(Col$1,Object.assign({},At,{className:jt}),qt),reactExports.createElement(FallbackCmp,{prefixCls:et}))},FormItemInput$1=FormItemInput;var QuestionCircleOutlined$2={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"};const QuestionCircleOutlinedSvg=QuestionCircleOutlined$2;var QuestionCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:QuestionCircleOutlinedSvg}))};const QuestionCircleOutlined$1=reactExports.forwardRef(QuestionCircleOutlined);var __rest$n=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let{prefixCls:et,label:rt,htmlFor:st,labelCol:ct,labelAlign:ut,colon:ft,required:gt,requiredMark:xt,tooltip:$t}=_e;var _t;const[wt]=useLocale$3("Form"),{vertical:Tt,labelAlign:Rt,labelCol:It,labelWrap:At,colon:jt}=reactExports.useContext(FormContext);if(!rt)return null;const Nt=ct||It||{},kt=ut||Rt,Ft=`${et}-item-label`,Ht=classNames(Ft,kt==="left"&&`${Ft}-left`,Nt.className,{[`${Ft}-wrap`]:!!At});let Wt=rt;const Vt=ft===!0||jt!==!1&&ft!==!1;Vt&&!Tt&&typeof rt=="string"&&rt.trim()!==""&&(Wt=rt.replace(/[:|:]\s*$/,""));const Xt=toTooltipProps($t);if(Xt){const{icon:lr=reactExports.createElement(QuestionCircleOutlined$1,null)}=Xt,cr=__rest$n(Xt,["icon"]),ur=reactExports.createElement(Tooltip$1,Object.assign({},cr),reactExports.cloneElement(lr,{className:`${et}-item-tooltip`,title:"",onClick:fr=>{fr.preventDefault()},tabIndex:null}));Wt=reactExports.createElement(reactExports.Fragment,null,Wt,ur)}const Gt=xt==="optional",Zt=typeof xt=="function";Zt?Wt=xt(Wt,{required:!!gt}):Gt&&!gt&&(Wt=reactExports.createElement(reactExports.Fragment,null,Wt,reactExports.createElement("span",{className:`${et}-item-optional`,title:""},(wt==null?void 0:wt.optional)||((_t=localeValues$1.Form)===null||_t===void 0?void 0:_t.optional))));const er=classNames({[`${et}-item-required`]:gt,[`${et}-item-required-mark-optional`]:Gt||Zt,[`${et}-item-no-colon`]:!Vt});return reactExports.createElement(Col$1,Object.assign({},Nt,{className:Ht}),reactExports.createElement("label",{htmlFor:st,className:er,title:typeof rt=="string"?rt:""},Wt))},FormItemLabel$1=FormItemLabel,iconMap={success:CheckCircleFilled$1,warning:ExclamationCircleFilled$1,error:CloseCircleFilled$3,validating:LoadingOutlined$3};function StatusProvider(_e){let{children:et,errors:rt,warnings:st,hasFeedback:ct,validateStatus:ut,prefixCls:ft,meta:gt,noStyle:xt}=_e;const $t=`${ft}-item`,{feedbackIcons:_t}=reactExports.useContext(FormContext),wt=getStatus(rt,st,gt,null,!!ct,ut),{isFormItemInput:Tt,status:Rt,hasFeedback:It,feedbackIcon:At}=reactExports.useContext(FormItemInputContext),jt=reactExports.useMemo(()=>{var Nt;let kt;if(ct){const Ht=ct!==!0&&ct.icons||_t,Wt=wt&&((Nt=Ht==null?void 0:Ht({status:wt,errors:rt,warnings:st}))===null||Nt===void 0?void 0:Nt[wt]),Vt=wt&&iconMap[wt];kt=Wt!==!1&&Vt?reactExports.createElement("span",{className:classNames(`${$t}-feedback-icon`,`${$t}-feedback-icon-${wt}`)},Wt||reactExports.createElement(Vt,null)):null}const Ft={status:wt||"",errors:rt,warnings:st,hasFeedback:!!ct,feedbackIcon:kt,isFormItemInput:!0};return xt&&(Ft.status=(wt??Rt)||"",Ft.isFormItemInput=Tt,Ft.hasFeedback=!!(ct??It),Ft.feedbackIcon=ct!==void 0?Ft.feedbackIcon:At),Ft},[wt,ct,xt,Tt,Rt]);return reactExports.createElement(FormItemInputContext.Provider,{value:jt},et)}var __rest$m=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{if(Xt&&Ht.current){const hr=getComputedStyle(Ht.current);er(parseInt(hr.marginBottom,10))}},[Xt,Gt]);const lr=hr=>{hr||er(null)},ur=function(){let hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const pr=hr?Wt:$t.errors,dr=hr?Vt:$t.warnings;return getStatus(pr,dr,$t,"",!!_t,xt)}(),fr=classNames(kt,rt,st,{[`${kt}-with-help`]:qt||Wt.length||Vt.length,[`${kt}-has-feedback`]:ur&&_t,[`${kt}-has-success`]:ur==="success",[`${kt}-has-warning`]:ur==="warning",[`${kt}-has-error`]:ur==="error",[`${kt}-is-validating`]:ur==="validating",[`${kt}-hidden`]:wt});return reactExports.createElement("div",{className:fr,style:ct,ref:Ht},reactExports.createElement(Row$3,Object.assign({className:`${kt}-row`},omit$2(Nt,["_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"])),reactExports.createElement(FormItemLabel$1,Object.assign({htmlFor:Rt},_e,{requiredMark:Ft,required:It??At,prefixCls:et})),reactExports.createElement(FormItemInput$1,Object.assign({},_e,$t,{errors:Wt,warnings:Vt,prefixCls:et,status:ur,help:ut,marginBottom:Zt,onErrorVisibleChanged:lr}),reactExports.createElement(NoStyleItemContext.Provider,{value:jt},reactExports.createElement(StatusProvider,{prefixCls:et,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:_t,validateStatus:ur},Tt)))),!!Zt&&reactExports.createElement("div",{className:`${kt}-margin-offset`,style:{marginBottom:-Zt}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(_e,et){const rt=Object.keys(_e),st=Object.keys(et);return rt.length===st.length&&rt.every(ct=>{const ut=_e[ct],ft=et[ct];return ut===ft||typeof ut=="function"||typeof ft=="function"})}const MemoInput=reactExports.memo(_e=>{let{children:et}=_e;return et},(_e,et)=>isSimilarControl(_e.control,et.control)&&_e.update===et.update&&_e.childProps.length===et.childProps.length&&_e.childProps.every((rt,st)=>rt===et.childProps[st]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(_e){const{name:et,noStyle:rt,className:st,dependencies:ct,prefixCls:ut,shouldUpdate:ft,rules:gt,children:xt,required:$t,label:_t,messageVariables:wt,trigger:Tt="onChange",validateTrigger:Rt,hidden:It,help:At}=_e,{getPrefixCls:jt}=reactExports.useContext(ConfigContext$1),{name:Nt}=reactExports.useContext(FormContext),kt=useChildren(xt),Ft=typeof kt=="function",Ht=reactExports.useContext(NoStyleItemContext),{validateTrigger:Wt}=reactExports.useContext(Context$8),Vt=Rt!==void 0?Rt:Wt,qt=et!=null,Xt=jt("form",ut),Gt=useCSSVarCls(Xt),[Zt,er,lr]=useStyle$x(Xt,Gt);devUseWarning();const cr=reactExports.useContext(ListContext$1),ur=reactExports.useRef(),[fr,hr]=useFrameState({}),[pr,dr]=useSafeState(()=>genEmptyMeta()),yr=Or=>{const wr=cr==null?void 0:cr.getKey(Or.name);if(dr(Or.destroy?genEmptyMeta():Or,!0),rt&&At!==!1&&Ht){let Cr=Or.name;if(Or.destroy)Cr=ur.current||Cr;else if(wr!==void 0){const[Nr,Rr]=wr;Cr=[Nr].concat(_toConsumableArray$3(Rr)),ur.current=Cr}Ht(Or,Cr)}},Sr=(Or,wr)=>{hr(Cr=>{const Nr=Object.assign({},Cr),Pr=[].concat(_toConsumableArray$3(Or.name.slice(0,-1)),_toConsumableArray$3(wr)).join(NAME_SPLIT);return Or.destroy?delete Nr[Pr]:Nr[Pr]=Or,Nr})},[br,mr]=reactExports.useMemo(()=>{const Or=_toConsumableArray$3(pr.errors),wr=_toConsumableArray$3(pr.warnings);return Object.values(fr).forEach(Cr=>{Or.push.apply(Or,_toConsumableArray$3(Cr.errors||[])),wr.push.apply(wr,_toConsumableArray$3(Cr.warnings||[]))}),[Or,wr]},[fr,pr.errors,pr.warnings]),Er=useItemRef();function Tr(Or,wr,Cr){return rt&&!It?reactExports.createElement(StatusProvider,{prefixCls:Xt,hasFeedback:_e.hasFeedback,validateStatus:_e.validateStatus,meta:pr,errors:br,warnings:mr,noStyle:!0},Or):reactExports.createElement(ItemHolder,Object.assign({key:"row"},_e,{className:classNames(st,lr,Gt,er),prefixCls:Xt,fieldId:wr,isRequired:Cr,errors:br,warnings:mr,meta:pr,onSubItemMetaChange:Sr}),Or)}if(!qt&&!Ft&&!ct)return Zt(Tr(kt));let Mr={};return typeof _t=="string"?Mr.label=_t:et&&(Mr.label=String(et)),wt&&(Mr=Object.assign(Object.assign({},Mr),wt)),Zt(reactExports.createElement(WrapperField,Object.assign({},_e,{messageVariables:Mr,trigger:Tt,validateTrigger:Vt,onMetaChange:yr}),(Or,wr,Cr)=>{const Nr=toArray$8(et).length&&wr?wr.name:[],Rr=getFieldId(Nr,Nt),Pr=$t!==void 0?$t:!!(gt&>.some(Fr=>{if(Fr&&typeof Fr=="object"&&Fr.required&&!Fr.warningOnly)return!0;if(typeof Fr=="function"){const _r=Fr(Cr);return _r&&_r.required&&!_r.warningOnly}return!1})),jr=Object.assign({},Or);let kr=null;if(Array.isArray(kt)&&qt)kr=kt;else if(!(Ft&&(!(ft||ct)||qt))){if(!(ct&&!Ft&&!qt))if(isValidElement(kt)){const Fr=Object.assign(Object.assign({},kt.props),jr);if(Fr.id||(Fr.id=Rr),At||br.length>0||mr.length>0||_e.extra){const Dr=[];(At||br.length>0)&&Dr.push(`${Rr}_help`),_e.extra&&Dr.push(`${Rr}_extra`),Fr["aria-describedby"]=Dr.join(" ")}br.length>0&&(Fr["aria-invalid"]="true"),Pr&&(Fr["aria-required"]="true"),supportRef(kt)&&(Fr.ref=Er(Nr,kt)),new Set([].concat(_toConsumableArray$3(toArray$8(Tt)),_toConsumableArray$3(toArray$8(Vt)))).forEach(Dr=>{Fr[Dr]=function(){for(var Xr,Kr,Hr,Vr,ln,Qr=arguments.length,Zr=new Array(Qr),vn=0;vn{var{prefixCls:et,children:rt}=_e,st=__rest$l(_e,["prefixCls","children"]);const{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("form",et),ft=reactExports.useMemo(()=>({prefixCls:ut,status:"error"}),[ut]);return reactExports.createElement(List$3,Object.assign({},st),(gt,xt,$t)=>reactExports.createElement(FormItemPrefixContext.Provider,{value:ft},rt(gt.map(_t=>Object.assign(Object.assign({},_t),{fieldKey:_t.key})),xt,{errors:$t.errors,warnings:$t.warnings})))},List$1=FormList;function useFormInstance(){const{form:_e}=reactExports.useContext(FormContext);return _e}const Form=Form$1;Form.Item=Item$3;Form.List=List$1;Form.ErrorList=ErrorList$1;Form.useForm=useForm;Form.useFormInstance=useFormInstance;Form.useWatch=useWatch$1;Form.Provider=FormProvider;Form.create=()=>{};function getClientSize(){var _e=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:_e,height:et}}function getOffset$1(_e){var et=_e.getBoundingClientRect(),rt=document.documentElement;return{left:et.left+(window.pageXOffset||rt.scrollLeft)-(rt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||rt.scrollTop)-(rt.clientTop||document.body.clientTop||0)}}var COMMON_PROPS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],PreviewGroupContext=reactExports.createContext(null),uid$1=0;function useRegisterImage(_e,et){var rt=reactExports.useState(function(){return uid$1+=1,String(uid$1)}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useContext(PreviewGroupContext),ft={data:et,canPreview:_e};return reactExports.useEffect(function(){if(ut)return ut.register(ct,ft)},[]),reactExports.useEffect(function(){ut&&ut.register(ct,ft)},[_e,et]),ct}function isImageValid(_e){return new Promise(function(et){var rt=document.createElement("img");rt.onerror=function(){return et(!1)},rt.onload=function(){return et(!0)},rt.src=_e})}function useStatus(_e){var et=_e.src,rt=_e.isCustomPlaceholder,st=_e.fallback,ct=reactExports.useState(rt?"loading":"normal"),ut=_slicedToArray$3(ct,2),ft=ut[0],gt=ut[1],xt=reactExports.useRef(!1),$t=ft==="error";reactExports.useEffect(function(){var Rt=!0;return isImageValid(et).then(function(It){!It&&Rt&>("error")}),function(){Rt=!1}},[et]),reactExports.useEffect(function(){rt&&!xt.current?gt("loading"):$t&>("normal")},[et]);var _t=function(){gt("normal")},wt=function(It){xt.current=!1,ft==="loading"&&It!==null&&It!==void 0&&It.complete&&(It.naturalWidth||It.naturalHeight)&&(xt.current=!0,_t())},Tt=$t&&st?{src:st}:{onLoad:_t,src:et};return[wt,Tt,ft]}var RefContext=reactExports.createContext({});function getMotionName(_e,et,rt){var st=et;return!st&&rt&&(st="".concat(_e,"-").concat(rt)),st}function getScroll$1(_e,et){var rt=_e["page".concat(et?"Y":"X","Offset")],st="scroll".concat(et?"Top":"Left");if(typeof rt!="number"){var ct=_e.document;rt=ct.documentElement[st],typeof rt!="number"&&(rt=ct.body[st])}return rt}function offset$1(_e){var et=_e.getBoundingClientRect(),rt={left:et.left,top:et.top},st=_e.ownerDocument,ct=st.defaultView||st.parentWindow;return rt.left+=getScroll$1(ct),rt.top+=getScroll$1(ct,!0),rt}const MemoChildren=reactExports.memo(function(_e){var et=_e.children;return et},function(_e,et){var rt=et.shouldUpdate;return!rt});var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"},Panel=React$1.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.className,ct=_e.style,ut=_e.title,ft=_e.ariaId,gt=_e.footer,xt=_e.closable,$t=_e.closeIcon,_t=_e.onClose,wt=_e.children,Tt=_e.bodyStyle,Rt=_e.bodyProps,It=_e.modalRender,At=_e.onMouseDown,jt=_e.onMouseUp,Nt=_e.holderRef,kt=_e.visible,Ft=_e.forceRender,Ht=_e.width,Wt=_e.height,Vt=_e.classNames,qt=_e.styles,Xt=React$1.useContext(RefContext),Gt=Xt.panel,Zt=useComposeRef(Nt,Gt),er=reactExports.useRef(),lr=reactExports.useRef();React$1.useImperativeHandle(et,function(){return{focus:function(){var yr;(yr=er.current)===null||yr===void 0||yr.focus()},changeActive:function(yr){var Sr=document,br=Sr.activeElement;yr&&br===lr.current?er.current.focus():!yr&&br===er.current&&lr.current.focus()}}});var cr={};Ht!==void 0&&(cr.width=Ht),Wt!==void 0&&(cr.height=Wt);var ur;gt&&(ur=React$1.createElement("div",{className:classNames("".concat(rt,"-footer"),Vt==null?void 0:Vt.footer),style:_objectSpread2({},qt==null?void 0:qt.footer)},gt));var fr;ut&&(fr=React$1.createElement("div",{className:classNames("".concat(rt,"-header"),Vt==null?void 0:Vt.header),style:_objectSpread2({},qt==null?void 0:qt.header)},React$1.createElement("div",{className:"".concat(rt,"-title"),id:ft},ut)));var hr;xt&&(hr=React$1.createElement("button",{type:"button",onClick:_t,"aria-label":"Close",className:"".concat(rt,"-close")},$t||React$1.createElement("span",{className:"".concat(rt,"-close-x")})));var pr=React$1.createElement("div",{className:classNames("".concat(rt,"-content"),Vt==null?void 0:Vt.content),style:qt==null?void 0:qt.content},hr,fr,React$1.createElement("div",_extends$b({className:classNames("".concat(rt,"-body"),Vt==null?void 0:Vt.body),style:_objectSpread2(_objectSpread2({},Tt),qt==null?void 0:qt.body)},Rt),wt),ur);return React$1.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":ut?ft:null,"aria-modal":"true",ref:Zt,style:_objectSpread2(_objectSpread2({},ct),cr),className:classNames(rt,st),onMouseDown:At,onMouseUp:jt},React$1.createElement("div",{tabIndex:0,ref:er,style:sentinelStyle,"aria-hidden":"true"}),React$1.createElement(MemoChildren,{shouldUpdate:kt||Ft},It?It(pr):pr),React$1.createElement("div",{tabIndex:0,ref:lr,style:sentinelStyle,"aria-hidden":"true"}))}),Content$6=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.title,ct=_e.style,ut=_e.className,ft=_e.visible,gt=_e.forceRender,xt=_e.destroyOnClose,$t=_e.motionName,_t=_e.ariaId,wt=_e.onVisibleChanged,Tt=_e.mousePosition,Rt=reactExports.useRef(),It=reactExports.useState(),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt={};jt&&(kt.transformOrigin=jt);function Ft(){var Ht=offset$1(Rt.current);Nt(Tt?"".concat(Tt.x-Ht.left,"px ").concat(Tt.y-Ht.top,"px"):"")}return reactExports.createElement(CSSMotion,{visible:ft,onVisibleChanged:wt,onAppearPrepare:Ft,onEnterPrepare:Ft,forceRender:gt,motionName:$t,removeOnLeave:xt,ref:Rt},function(Ht,Wt){var Vt=Ht.className,qt=Ht.style;return reactExports.createElement(Panel,_extends$b({},_e,{ref:et,title:st,ariaId:_t,prefixCls:rt,holderRef:Wt,style:_objectSpread2(_objectSpread2(_objectSpread2({},qt),ct),kt),className:classNames(ut,Vt)}))})});Content$6.displayName="Content";function Mask(_e){var et=_e.prefixCls,rt=_e.style,st=_e.visible,ct=_e.maskProps,ut=_e.motionName,ft=_e.className;return reactExports.createElement(CSSMotion,{key:"mask",visible:st,motionName:ut,leavedClassName:"".concat(et,"-mask-hidden")},function(gt,xt){var $t=gt.className,_t=gt.style;return reactExports.createElement("div",_extends$b({ref:xt,style:_objectSpread2(_objectSpread2({},_t),rt),className:classNames("".concat(et,"-mask"),$t,ft)},ct))})}function Dialog(_e){var et=_e.prefixCls,rt=et===void 0?"rc-dialog":et,st=_e.zIndex,ct=_e.visible,ut=ct===void 0?!1:ct,ft=_e.keyboard,gt=ft===void 0?!0:ft,xt=_e.focusTriggerAfterClose,$t=xt===void 0?!0:xt,_t=_e.wrapStyle,wt=_e.wrapClassName,Tt=_e.wrapProps,Rt=_e.onClose,It=_e.afterOpenChange,At=_e.afterClose,jt=_e.transitionName,Nt=_e.animation,kt=_e.closable,Ft=kt===void 0?!0:kt,Ht=_e.mask,Wt=Ht===void 0?!0:Ht,Vt=_e.maskTransitionName,qt=_e.maskAnimation,Xt=_e.maskClosable,Gt=Xt===void 0?!0:Xt,Zt=_e.maskStyle,er=_e.maskProps,lr=_e.rootClassName,cr=_e.classNames,ur=_e.styles,fr=reactExports.useRef(),hr=reactExports.useRef(),pr=reactExports.useRef(),dr=reactExports.useState(ut),yr=_slicedToArray$3(dr,2),Sr=yr[0],br=yr[1],mr=useId$4();function Er(){contains$1(hr.current,document.activeElement)||(fr.current=document.activeElement)}function Tr(){if(!contains$1(hr.current,document.activeElement)){var kr;(kr=pr.current)===null||kr===void 0||kr.focus()}}function Mr(kr){if(kr)Tr();else{if(br(!1),Wt&&fr.current&&$t){try{fr.current.focus({preventScroll:!0})}catch{}fr.current=null}Sr&&(At==null||At())}It==null||It(kr)}function Or(kr){Rt==null||Rt(kr)}var wr=reactExports.useRef(!1),Cr=reactExports.useRef(),Nr=function(){clearTimeout(Cr.current),wr.current=!0},Rr=function(){Cr.current=setTimeout(function(){wr.current=!1})},Pr=null;Gt&&(Pr=function(Fr){wr.current?wr.current=!1:hr.current===Fr.target&&Or(Fr)});function jr(kr){if(gt&&kr.keyCode===KeyCode.ESC){kr.stopPropagation(),Or(kr);return}ut&&kr.keyCode===KeyCode.TAB&&pr.current.changeActive(!kr.shiftKey)}return reactExports.useEffect(function(){ut&&(br(!0),Er())},[ut]),reactExports.useEffect(function(){return function(){clearTimeout(Cr.current)}},[]),reactExports.createElement("div",_extends$b({className:classNames("".concat(rt,"-root"),lr)},pickAttrs(_e,{data:!0})),reactExports.createElement(Mask,{prefixCls:rt,visible:Wt&&ut,motionName:getMotionName(rt,Vt,qt),style:_objectSpread2(_objectSpread2({zIndex:st},Zt),ur==null?void 0:ur.mask),maskProps:er,className:cr==null?void 0:cr.mask}),reactExports.createElement("div",_extends$b({tabIndex:-1,onKeyDown:jr,className:classNames("".concat(rt,"-wrap"),wt,cr==null?void 0:cr.wrapper),ref:hr,onClick:Pr,style:_objectSpread2(_objectSpread2(_objectSpread2({zIndex:st},_t),ur==null?void 0:ur.wrapper),{},{display:Sr?null:"none"})},Tt),reactExports.createElement(Content$6,_extends$b({},_e,{onMouseDown:Nr,onMouseUp:Rr,ref:pr,closable:Ft,ariaId:mr,prefixCls:rt,visible:ut&&Sr,onClose:Or,onVisibleChanged:Mr,motionName:getMotionName(rt,jt,Nt)}))))}var DialogWrap=function(et){var rt=et.visible,st=et.getContainer,ct=et.forceRender,ut=et.destroyOnClose,ft=ut===void 0?!1:ut,gt=et.afterClose,xt=et.panelRef,$t=reactExports.useState(rt),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1],Rt=reactExports.useMemo(function(){return{panel:xt}},[xt]);return reactExports.useEffect(function(){rt&&Tt(!0)},[rt]),!ct&&ft&&!wt?null:reactExports.createElement(RefContext.Provider,{value:Rt},reactExports.createElement(Portal,{open:rt||ct||wt,autoDestroy:!1,getContainer:st,autoLock:rt||wt},reactExports.createElement(Dialog,_extends$b({},et,{destroyOnClose:ft,afterClose:function(){gt==null||gt(),Tt(!1)}}))))};DialogWrap.displayName="Dialog";function addEventListenerWrap(_e,et,rt,st){var ct=ReactDOM.unstable_batchedUpdates?function(ft){ReactDOM.unstable_batchedUpdates(rt,ft)}:rt;return _e!=null&&_e.addEventListener&&_e.addEventListener(et,ct,st),{remove:function(){_e!=null&&_e.removeEventListener&&_e.removeEventListener(et,ct,st)}}}var initialTransform={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function useImageTransform(_e,et,rt,st){var ct=reactExports.useRef(null),ut=reactExports.useRef([]),ft=reactExports.useState(initialTransform),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1],_t=function(It){$t(initialTransform),st&&!isEqual$1(initialTransform,xt)&&st({transform:initialTransform,action:It})},wt=function(It,At){ct.current===null&&(ut.current=[],ct.current=wrapperRaf(function(){$t(function(jt){var Nt=jt;return ut.current.forEach(function(kt){Nt=_objectSpread2(_objectSpread2({},Nt),kt)}),ct.current=null,st==null||st({transform:Nt,action:At}),Nt})})),ut.current.push(_objectSpread2(_objectSpread2({},xt),It))},Tt=function(It,At,jt,Nt,kt){var Ft=_e.current,Ht=Ft.width,Wt=Ft.height,Vt=Ft.offsetWidth,qt=Ft.offsetHeight,Xt=Ft.offsetLeft,Gt=Ft.offsetTop,Zt=It,er=xt.scale*It;er>rt?(er=rt,Zt=rt/xt.scale):erst){if(et>0)return _defineProperty$c({},_e,ut);if(et<0&&ctst)return _defineProperty$c({},_e,et<0?ut:-ut);return{}}function getFixScaleEleTransPosition(_e,et,rt,st){var ct=getClientSize(),ut=ct.width,ft=ct.height,gt=null;return _e<=ut&&et<=ft?gt={x:0,y:0}:(_e>ut||et>ft)&&(gt=_objectSpread2(_objectSpread2({},fixPoint("x",rt,_e,ut)),fixPoint("y",st,et,ft))),gt}var BASE_SCALE_RATIO=1,WHEEL_MAX_SCALE_RATIO=1;function useMouseEvent(_e,et,rt,st,ct,ut,ft){var gt=ct.rotate,xt=ct.scale,$t=ct.x,_t=ct.y,wt=reactExports.useState(!1),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=reactExports.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),jt=function(Wt){!et||Wt.button!==0||(Wt.preventDefault(),Wt.stopPropagation(),At.current={diffX:Wt.pageX-$t,diffY:Wt.pageY-_t,transformX:$t,transformY:_t},It(!0))},Nt=function(Wt){rt&&Rt&&ut({x:Wt.pageX-At.current.diffX,y:Wt.pageY-At.current.diffY},"move")},kt=function(){if(rt&&Rt){It(!1);var Wt=At.current,Vt=Wt.transformX,qt=Wt.transformY,Xt=$t!==Vt&&_t!==qt;if(!Xt)return;var Gt=_e.current.offsetWidth*xt,Zt=_e.current.offsetHeight*xt,er=_e.current.getBoundingClientRect(),lr=er.left,cr=er.top,ur=gt%180!==0,fr=getFixScaleEleTransPosition(ur?Zt:Gt,ur?Gt:Zt,lr,cr);fr&&ut(_objectSpread2({},fr),"dragRebound")}},Ft=function(Wt){if(!(!rt||Wt.deltaY==0)){var Vt=Math.abs(Wt.deltaY/100),qt=Math.min(Vt,WHEEL_MAX_SCALE_RATIO),Xt=BASE_SCALE_RATIO+qt*st;Wt.deltaY>0&&(Xt=BASE_SCALE_RATIO/Xt),ft(Xt,"wheel",Wt.clientX,Wt.clientY)}};return reactExports.useEffect(function(){var Ht,Wt,Vt,qt;if(et){Vt=addEventListenerWrap(window,"mouseup",kt,!1),qt=addEventListenerWrap(window,"mousemove",Nt,!1);try{window.top!==window.self&&(Ht=addEventListenerWrap(window.top,"mouseup",kt,!1),Wt=addEventListenerWrap(window.top,"mousemove",Nt,!1))}catch{}}return function(){var Xt,Gt,Zt,er;(Xt=Vt)===null||Xt===void 0||Xt.remove(),(Gt=qt)===null||Gt===void 0||Gt.remove(),(Zt=Ht)===null||Zt===void 0||Zt.remove(),(er=Wt)===null||er===void 0||er.remove()}},[rt,Rt,$t,_t,gt,et]),{isMoving:Rt,onMouseDown:jt,onMouseMove:Nt,onMouseUp:kt,onWheel:Ft}}function getDistance(_e,et){var rt=_e.x-et.x,st=_e.y-et.y;return Math.hypot(rt,st)}function getCenter(_e,et,rt,st){var ct=getDistance(_e,rt),ut=getDistance(et,st);if(ct===0&&ut===0)return[_e.x,_e.y];var ft=ct/(ct+ut),gt=_e.x+ft*(et.x-_e.x),xt=_e.y+ft*(et.y-_e.y);return[gt,xt]}function useTouchEvent(_e,et,rt,st,ct,ut,ft){var gt=ct.rotate,xt=ct.scale,$t=ct.x,_t=ct.y,wt=reactExports.useState(!1),Tt=_slicedToArray$3(wt,2),Rt=Tt[0],It=Tt[1],At=reactExports.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),jt=function(Wt){At.current=_objectSpread2(_objectSpread2({},At.current),Wt)},Nt=function(Wt){if(et){Wt.stopPropagation(),It(!0);var Vt=Wt.touches,qt=Vt===void 0?[]:Vt;qt.length>1?jt({point1:{x:qt[0].clientX,y:qt[0].clientY},point2:{x:qt[1].clientX,y:qt[1].clientY},eventType:"touchZoom"}):jt({point1:{x:qt[0].clientX-$t,y:qt[0].clientY-_t},eventType:"move"})}},kt=function(Wt){var Vt=Wt.touches,qt=Vt===void 0?[]:Vt,Xt=At.current,Gt=Xt.point1,Zt=Xt.point2,er=Xt.eventType;if(qt.length>1&&er==="touchZoom"){var lr={x:qt[0].clientX,y:qt[0].clientY},cr={x:qt[1].clientX,y:qt[1].clientY},ur=getCenter(Gt,Zt,lr,cr),fr=_slicedToArray$3(ur,2),hr=fr[0],pr=fr[1],dr=getDistance(lr,cr)/getDistance(Gt,Zt);ft(dr,"touchZoom",hr,pr,!0),jt({point1:lr,point2:cr,eventType:"touchZoom"})}else er==="move"&&(ut({x:qt[0].clientX-Gt.x,y:qt[0].clientY-Gt.y},"move"),jt({eventType:"move"}))},Ft=function(){if(rt){if(Rt&&It(!1),jt({eventType:"none"}),st>xt)return ut({x:0,y:0,scale:st},"touchZoom");var Wt=_e.current.offsetWidth*xt,Vt=_e.current.offsetHeight*xt,qt=_e.current.getBoundingClientRect(),Xt=qt.left,Gt=qt.top,Zt=gt%180!==0,er=getFixScaleEleTransPosition(Zt?Vt:Wt,Zt?Wt:Vt,Xt,Gt);er&&ut(_objectSpread2({},er),"dragRebound")}};return reactExports.useEffect(function(){var Ht;return rt&&et&&(Ht=addEventListenerWrap(window,"touchmove",function(Wt){return Wt.preventDefault()},{passive:!1})),function(){var Wt;(Wt=Ht)===null||Wt===void 0||Wt.remove()}},[rt,et]),{isTouching:Rt,onTouchStart:Nt,onTouchMove:kt,onTouchEnd:Ft}}var Operations=function(et){var rt=et.visible,st=et.maskTransitionName,ct=et.getContainer,ut=et.prefixCls,ft=et.rootClassName,gt=et.icons,xt=et.countRender,$t=et.showSwitch,_t=et.showProgress,wt=et.current,Tt=et.transform,Rt=et.count,It=et.scale,At=et.minScale,jt=et.maxScale,Nt=et.closeIcon,kt=et.onSwitchLeft,Ft=et.onSwitchRight,Ht=et.onClose,Wt=et.onZoomIn,Vt=et.onZoomOut,qt=et.onRotateRight,Xt=et.onRotateLeft,Gt=et.onFlipX,Zt=et.onFlipY,er=et.toolbarRender,lr=et.zIndex,cr=reactExports.useContext(PreviewGroupContext),ur=gt.rotateLeft,fr=gt.rotateRight,hr=gt.zoomIn,pr=gt.zoomOut,dr=gt.close,yr=gt.left,Sr=gt.right,br=gt.flipX,mr=gt.flipY,Er="".concat(ut,"-operations-operation");reactExports.useEffect(function(){var wr=function(Nr){Nr.keyCode===KeyCode.ESC&&Ht()};return rt&&window.addEventListener("keydown",wr),function(){window.removeEventListener("keydown",wr)}},[rt]);var Tr=[{icon:mr,onClick:Zt,type:"flipY"},{icon:br,onClick:Gt,type:"flipX"},{icon:ur,onClick:Xt,type:"rotateLeft"},{icon:fr,onClick:qt,type:"rotateRight"},{icon:pr,onClick:Vt,type:"zoomOut",disabled:It<=At},{icon:hr,onClick:Wt,type:"zoomIn",disabled:It===jt}],Mr=Tr.map(function(wr){var Cr,Nr=wr.icon,Rr=wr.onClick,Pr=wr.type,jr=wr.disabled;return reactExports.createElement("div",{className:classNames(Er,(Cr={},_defineProperty$c(Cr,"".concat(ut,"-operations-operation-").concat(Pr),!0),_defineProperty$c(Cr,"".concat(ut,"-operations-operation-disabled"),!!jr),Cr)),onClick:Rr,key:Pr},Nr)}),Or=reactExports.createElement("div",{className:"".concat(ut,"-operations")},Mr);return reactExports.createElement(CSSMotion,{visible:rt,motionName:st},function(wr){var Cr=wr.className,Nr=wr.style;return reactExports.createElement(Portal,{open:!0,getContainer:ct??document.body},reactExports.createElement("div",{className:classNames("".concat(ut,"-operations-wrapper"),Cr,ft),style:_objectSpread2(_objectSpread2({},Nr),{},{zIndex:lr})},Nt===null?null:reactExports.createElement("button",{className:"".concat(ut,"-close"),onClick:Ht},Nt||dr),$t&&reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:classNames("".concat(ut,"-switch-left"),_defineProperty$c({},"".concat(ut,"-switch-left-disabled"),wt===0)),onClick:kt},yr),reactExports.createElement("div",{className:classNames("".concat(ut,"-switch-right"),_defineProperty$c({},"".concat(ut,"-switch-right-disabled"),wt===Rt-1)),onClick:Ft},Sr)),reactExports.createElement("div",{className:"".concat(ut,"-footer")},_t&&reactExports.createElement("div",{className:"".concat(ut,"-progress")},xt?xt(wt+1,Rt):"".concat(wt+1," / ").concat(Rt)),er?er(Or,_objectSpread2({icons:{flipYIcon:Mr[0],flipXIcon:Mr[1],rotateLeftIcon:Mr[2],rotateRightIcon:Mr[3],zoomOutIcon:Mr[4],zoomInIcon:Mr[5]},actions:{onFlipY:Zt,onFlipX:Gt,onRotateLeft:Xt,onRotateRight:qt,onZoomOut:Vt,onZoomIn:Wt},transform:Tt},cr?{current:wt,total:Rt}:{})):Or)))})},_excluded$11=["fallback","src","imgRef"],_excluded2$h=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],PreviewImage=function(et){var rt=et.fallback,st=et.src,ct=et.imgRef,ut=_objectWithoutProperties$2(et,_excluded$11),ft=useStatus({src:st,fallback:rt}),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];return React$1.createElement("img",_extends$b({ref:function(wt){ct.current=wt,xt(wt)}},ut,$t))},Preview=function(et){var rt=et.prefixCls,st=et.src,ct=et.alt,ut=et.fallback,ft=et.movable,gt=ft===void 0?!0:ft,xt=et.onClose,$t=et.visible,_t=et.icons,wt=_t===void 0?{}:_t,Tt=et.rootClassName,Rt=et.closeIcon,It=et.getContainer,At=et.current,jt=At===void 0?0:At,Nt=et.count,kt=Nt===void 0?1:Nt,Ft=et.countRender,Ht=et.scaleStep,Wt=Ht===void 0?.5:Ht,Vt=et.minScale,qt=Vt===void 0?1:Vt,Xt=et.maxScale,Gt=Xt===void 0?50:Xt,Zt=et.transitionName,er=Zt===void 0?"zoom":Zt,lr=et.maskTransitionName,cr=lr===void 0?"fade":lr,ur=et.imageRender,fr=et.imgCommonProps,hr=et.toolbarRender,pr=et.onTransform,dr=et.onChange,yr=_objectWithoutProperties$2(et,_excluded2$h),Sr=reactExports.useRef(),br=reactExports.useContext(PreviewGroupContext),mr=br&&kt>1,Er=br&&kt>=1,Tr=reactExports.useState(!0),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1],Cr=useImageTransform(Sr,qt,Gt,pr),Nr=Cr.transform,Rr=Cr.resetTransform,Pr=Cr.updateTransform,jr=Cr.dispatchZoomChange,kr=useMouseEvent(Sr,gt,$t,Wt,Nr,Pr,jr),Fr=kr.isMoving,_r=kr.onMouseDown,Br=kr.onWheel,Dr=useTouchEvent(Sr,gt,$t,qt,Nr,Pr,jr),Xr=Dr.isTouching,Kr=Dr.onTouchStart,Hr=Dr.onTouchMove,Vr=Dr.onTouchEnd,ln=Nr.rotate,Qr=Nr.scale,Zr=classNames(_defineProperty$c({},"".concat(rt,"-moving"),Fr));reactExports.useEffect(function(){Or||wr(!0)},[Or]);var vn=function(){Rr("close")},vr=function(){jr(BASE_SCALE_RATIO+Wt,"zoomIn")},gr=function(){jr(BASE_SCALE_RATIO/(BASE_SCALE_RATIO+Wt),"zoomOut")},$r=function(){Pr({rotate:ln+90},"rotateRight")},zr=function(){Pr({rotate:ln-90},"rotateLeft")},qr=function(){Pr({flipX:!Nr.flipX},"flipX")},Wr=function(){Pr({flipY:!Nr.flipY},"flipY")},Gr=function(kn){kn==null||kn.preventDefault(),kn==null||kn.stopPropagation(),jt>0&&(wr(!1),Rr("prev"),dr==null||dr(jt-1,jt))},dn=function(kn){kn==null||kn.preventDefault(),kn==null||kn.stopPropagation(),jt({position:_e||"absolute",inset:0}),genImageMaskStyle=_e=>{const{iconCls:et,motionDurationSlow:rt,paddingXXS:st,marginXXS:ct,prefixCls:ut,colorTextLightSolid:ft}=_e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ft,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${rt}`,[`.${ut}-mask-info`]:Object.assign(Object.assign({},textEllipsis),{padding:`0 ${unit$1(st)}`,[et]:{marginInlineEnd:ct,svg:{verticalAlign:"baseline"}}})}},genPreviewOperationsStyle=_e=>{const{previewCls:et,modalMaskBg:rt,paddingSM:st,marginXL:ct,margin:ut,paddingLG:ft,previewOperationColorDisabled:gt,previewOperationHoverColor:xt,motionDurationSlow:$t,iconCls:_t,colorTextLightSolid:wt}=_e,Tt=new TinyColor(rt).setAlpha(.1),Rt=Tt.clone().setAlpha(.2);return{[`${et}-footer`]:{position:"fixed",bottom:ct,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:_e.previewOperationColor},[`${et}-progress`]:{marginBottom:ut},[`${et}-close`]:{position:"fixed",top:ct,right:{_skip_check_:!0,value:ct},display:"flex",color:wt,backgroundColor:Tt.toRgbString(),borderRadius:"50%",padding:st,outline:0,border:0,cursor:"pointer",transition:`all ${$t}`,"&:hover":{backgroundColor:Rt.toRgbString()},[`& > ${_t}`]:{fontSize:_e.previewOperationSize}},[`${et}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit$1(ft)}`,backgroundColor:Tt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:st,padding:st,cursor:"pointer",transition:`all ${$t}`,userSelect:"none",[`&:not(${et}-operations-operation-disabled):hover > ${_t}`]:{color:xt},"&-disabled":{color:gt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${_t}`]:{fontSize:_e.previewOperationSize}}}}},genPreviewSwitchStyle=_e=>{const{modalMaskBg:et,iconCls:rt,previewOperationColorDisabled:st,previewCls:ct,zIndexPopup:ut,motionDurationSlow:ft}=_e,gt=new TinyColor(et).setAlpha(.1),xt=gt.clone().setAlpha(.2);return{[`${ct}-switch-left, ${ct}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:_e.calc(ut).add(1).equal({unit:!1}),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:gt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ft}`,userSelect:"none","&:hover":{background:xt.toRgbString()},"&-disabled":{"&, &:hover":{color:st,background:"transparent",cursor:"not-allowed",[`> ${rt}`]:{cursor:"not-allowed"}}},[`> ${rt}`]:{fontSize:_e.previewOperationSize}},[`${ct}-switch-left`]:{insetInlineStart:_e.marginSM},[`${ct}-switch-right`]:{insetInlineEnd:_e.marginSM}}},genImagePreviewStyle=_e=>{const{motionEaseOut:et,previewCls:rt,motionDurationSlow:st,componentCls:ct}=_e;return[{[`${ct}-preview-root`]:{[rt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${rt}-body`]:Object.assign(Object.assign({},genBoxStyle()),{overflow:"hidden"}),[`${rt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${st} ${et} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},genBoxStyle()),{transition:`transform ${st} ${et} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${rt}-moving`]:{[`${rt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${ct}-preview-root`]:{[`${rt}-wrap`]:{zIndex:_e.zIndexPopup}}},{[`${ct}-preview-operations-wrapper`]:{position:"fixed",zIndex:_e.calc(_e.zIndexPopup).add(1).equal({unit:!1})},"&":[genPreviewOperationsStyle(_e),genPreviewSwitchStyle(_e)]}]},genImageStyle=_e=>{const{componentCls:et}=_e;return{[et]:{position:"relative",display:"inline-block",[`${et}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${et}-img-placeholder`]:{backgroundColor:_e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${et}-mask`]:Object.assign({},genImageMaskStyle(_e)),[`${et}-mask:hover`]:{opacity:1},[`${et}-placeholder`]:Object.assign({},genBoxStyle())}}},genPreviewMotion=_e=>{const{previewCls:et}=_e;return{[`${et}-root`]:initZoomMotion(_e,"zoom"),"&":initFadeMotion(_e,!0)}},prepareComponentToken$e=_e=>({zIndexPopup:_e.zIndexPopupBase+80,previewOperationColor:new TinyColor(_e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(_e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(_e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:_e.fontSizeIcon*1.5}),useStyle$w=genStyleHooks("Image",_e=>{const et=`${_e.componentCls}-preview`,rt=merge$7(_e,{previewCls:et,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:_e.controlHeightLG});return[genImageStyle(rt),genImagePreviewStyle(rt),genModalMaskStyle(merge$7(rt,{componentCls:et})),genPreviewMotion(rt)]},prepareComponentToken$e);var __rest$k=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{previewPrefixCls:et,preview:rt}=_e,st=__rest$k(_e,["previewPrefixCls","preview"]);const{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=ct("image",et),ft=`${ut}-preview`,gt=ct(),xt=useCSSVarCls(ut),[$t,_t,wt]=useStyle$w(ut,xt),[Tt]=useZIndex("ImagePreview",typeof rt=="object"?rt.zIndex:void 0),Rt=reactExports.useMemo(()=>{var It;if(rt===!1)return rt;const At=typeof rt=="object"?rt:{},jt=classNames(_t,wt,xt,(It=At.rootClassName)!==null&&It!==void 0?It:"");return Object.assign(Object.assign({},At),{transitionName:getTransitionName(gt,"zoom",At.transitionName),maskTransitionName:getTransitionName(gt,"fade",At.maskTransitionName),rootClassName:jt,zIndex:Tt})},[rt]);return $t(reactExports.createElement(ImageInternal.PreviewGroup,Object.assign({preview:Rt,previewPrefixCls:ft,icons},st)))},PreviewGroup=InternalPreviewGroup;var __rest$j=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var et;const{prefixCls:rt,preview:st,className:ct,rootClassName:ut,style:ft}=_e,gt=__rest$j(_e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:xt,locale:$t=localeValues$1,getPopupContainer:_t,image:wt}=reactExports.useContext(ConfigContext$1),Tt=xt("image",rt),Rt=xt(),It=$t.Image||localeValues$1.Image,At=useCSSVarCls(Tt),[jt,Nt,kt]=useStyle$w(Tt,At),Ft=classNames(ut,Nt,kt,At),Ht=classNames(ct,Nt,wt==null?void 0:wt.className),[Wt]=useZIndex("ImagePreview",typeof st=="object"?st.zIndex:void 0),Vt=reactExports.useMemo(()=>{var Xt;if(st===!1)return st;const Gt=typeof st=="object"?st:{},{getContainer:Zt,closeIcon:er}=Gt,lr=__rest$j(Gt,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:reactExports.createElement("div",{className:`${Tt}-mask-info`},reactExports.createElement(EyeOutlined$3,null),It==null?void 0:It.preview),icons},lr),{getContainer:Zt??_t,transitionName:getTransitionName(Rt,"zoom",Gt.transitionName),maskTransitionName:getTransitionName(Rt,"fade",Gt.maskTransitionName),zIndex:Wt,closeIcon:er??((Xt=wt==null?void 0:wt.preview)===null||Xt===void 0?void 0:Xt.closeIcon)})},[st,It,(et=wt==null?void 0:wt.preview)===null||et===void 0?void 0:et.closeIcon]),qt=Object.assign(Object.assign({},wt==null?void 0:wt.style),ft);return jt(reactExports.createElement(ImageInternal,Object.assign({prefixCls:Tt,preview:Vt,rootClassName:Ft,className:Ht,style:qt},gt)))};Image$1.PreviewGroup=PreviewGroup;const Image$2=Image$1;function useHasSider$1(_e,et,rt){return typeof rt=="boolean"?rt:_e.length?!0:toArray$e(et).some(ct=>ct.type===Sider$8)}const genLayoutLightStyle=_e=>{const{componentCls:et,bodyBg:rt,lightSiderBg:st,lightTriggerBg:ct,lightTriggerColor:ut}=_e;return{[`${et}-sider-light`]:{background:st,[`${et}-sider-trigger`]:{color:ut,background:ct},[`${et}-sider-zero-width-trigger`]:{color:ut,background:ct,border:`1px solid ${rt}`,borderInlineStart:0}}}},genLayoutStyle=_e=>{const{antCls:et,componentCls:rt,colorText:st,triggerColor:ct,footerBg:ut,triggerBg:ft,headerHeight:gt,headerPadding:xt,headerColor:$t,footerPadding:_t,triggerHeight:wt,zeroTriggerHeight:Tt,zeroTriggerWidth:Rt,motionDurationMid:It,motionDurationSlow:At,fontSize:jt,borderRadius:Nt,bodyBg:kt,headerBg:Ft,siderBg:Ht}=_e;return{[rt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:kt,"&, *":{boxSizing:"border-box"},[`&${rt}-has-sider`]:{flexDirection:"row",[`> ${rt}, > ${rt}-content`]:{width:0}},[`${rt}-header, &${rt}-footer`]:{flex:"0 0 auto"},[`${rt}-sider`]:{position:"relative",minWidth:0,background:Ht,transition:`all ${It}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${et}-menu${et}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:wt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:wt,color:ct,lineHeight:unit$1(wt),textAlign:"center",background:ft,cursor:"pointer",transition:`all ${It}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:gt,insetInlineEnd:_e.calc(Rt).mul(-1).equal(),zIndex:1,width:Rt,height:Tt,color:ct,fontSize:_e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ht,borderStartStartRadius:0,borderStartEndRadius:Nt,borderEndEndRadius:Nt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${At} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${At}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:_e.calc(Rt).mul(-1).equal(),borderStartStartRadius:Nt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Nt}}}}},genLayoutLightStyle(_e)),{"&-rtl":{direction:"rtl"}}),[`${rt}-header`]:{height:gt,padding:xt,color:$t,lineHeight:unit$1(gt),background:Ft,[`${et}-menu`]:{lineHeight:"inherit"}},[`${rt}-footer`]:{padding:_t,color:st,fontSize:jt,background:ut},[`${rt}-content`]:{flex:"auto",minHeight:0}}},prepareComponentToken$d=_e=>{const{colorBgLayout:et,controlHeight:rt,controlHeightLG:st,colorText:ct,controlHeightSM:ut,marginXXS:ft,colorTextLightSolid:gt,colorBgContainer:xt}=_e,$t=st*1.25;return{colorBgHeader:"#001529",colorBgBody:et,colorBgTrigger:"#002140",bodyBg:et,headerBg:"#001529",headerHeight:rt*2,headerPadding:`0 ${$t}px`,headerColor:ct,footerPadding:`${ut}px ${$t}px`,footerBg:et,siderBg:"#001529",triggerHeight:st+ft*2,triggerBg:"#002140",triggerColor:gt,zeroTriggerWidth:st,zeroTriggerHeight:st,lightSiderBg:xt,lightTriggerBg:xt,lightTriggerColor:ct}},useStyle$v=genStyleHooks("Layout",_e=>[genLayoutStyle(_e)],prepareComponentToken$d,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var __rest$i=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctreactExports.forwardRef((ft,gt)=>reactExports.createElement(ct,Object.assign({ref:gt,suffixCls:et,tagName:rt},ft)))}const Basic$2=reactExports.forwardRef((_e,et)=>{const{prefixCls:rt,suffixCls:st,className:ct,tagName:ut}=_e,ft=__rest$i(_e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("layout",rt),[$t,_t,wt]=useStyle$v(xt),Tt=st?`${xt}-${st}`:xt;return $t(reactExports.createElement(ut,Object.assign({className:classNames(rt||Tt,ct,_t,wt),ref:et},ft)))}),BasicLayout$1=reactExports.forwardRef((_e,et)=>{const{direction:rt}=reactExports.useContext(ConfigContext$1),[st,ct]=reactExports.useState([]),{prefixCls:ut,className:ft,rootClassName:gt,children:xt,hasSider:$t,tagName:_t,style:wt}=_e,Tt=__rest$i(_e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Rt=omit$2(Tt,["suffixCls"]),{getPrefixCls:It,layout:At}=reactExports.useContext(ConfigContext$1),jt=It("layout",ut),Nt=useHasSider$1(st,xt,$t),[kt,Ft,Ht]=useStyle$v(jt),Wt=classNames(jt,{[`${jt}-has-sider`]:Nt,[`${jt}-rtl`]:rt==="rtl"},At==null?void 0:At.className,ft,gt,Ft,Ht),Vt=reactExports.useMemo(()=>({siderHook:{addSider:qt=>{ct(Xt=>[].concat(_toConsumableArray$3(Xt),[qt]))},removeSider:qt=>{ct(Xt=>Xt.filter(Gt=>Gt!==qt))}}}),[]);return kt(reactExports.createElement(LayoutContext.Provider,{value:Vt},reactExports.createElement(_t,Object.assign({ref:et,className:Wt,style:Object.assign(Object.assign({},At==null?void 0:At.style),wt)},Rt),xt)))}),Layout$3=generator$1({tagName:"div",displayName:"Layout"})(BasicLayout$1),Header$5=generator$1({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic$2),Footer$2=generator$1({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic$2),Content$5=generator$1({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic$2),InternalLayout=Layout$3,Layout$1=InternalLayout;Layout$1.Header=Header$5;Layout$1.Footer=Footer$2;Layout$1.Content=Content$5;Layout$1.Sider=Sider$8;Layout$1._InternalSiderContext=SiderContext$1;const Layout$2=Layout$1,extendsObject=function(){const _e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let et=1;et{const ct=rt[st];ct!==void 0&&(_e[st]=ct)})}return _e},extendsObject$1=extendsObject;var DoubleLeftOutlined$2={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"};const DoubleLeftOutlinedSvg=DoubleLeftOutlined$2;var DoubleLeftOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DoubleLeftOutlinedSvg}))};const DoubleLeftOutlined$1=reactExports.forwardRef(DoubleLeftOutlined);var DoubleRightOutlined$2={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"};const DoubleRightOutlinedSvg=DoubleRightOutlined$2;var DoubleRightOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DoubleRightOutlinedSvg}))};const DoubleRightOutlined$1=reactExports.forwardRef(DoubleRightOutlined);var locale$6={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:"页码"},defaultPageSizeOptions=["10","20","50","100"],Options=function(et){var rt=et.pageSizeOptions,st=rt===void 0?defaultPageSizeOptions:rt,ct=et.locale,ut=et.changeSize,ft=et.pageSize,gt=et.goButton,xt=et.quickGo,$t=et.rootPrefixCls,_t=et.selectComponentClass,wt=et.selectPrefixCls,Tt=et.disabled,Rt=et.buildOptionText,It=React$1.useState(""),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt=function(){return!jt||Number.isNaN(jt)?void 0:Number(jt)},Ft=typeof Rt=="function"?Rt:function(ur){return"".concat(ur," ").concat(ct.items_per_page)},Ht=function(fr){ut==null||ut(Number(fr))},Wt=function(fr){Nt(fr.target.value)},Vt=function(fr){gt||jt===""||(Nt(""),!(fr.relatedTarget&&(fr.relatedTarget.className.indexOf("".concat($t,"-item-link"))>=0||fr.relatedTarget.className.indexOf("".concat($t,"-item"))>=0))&&(xt==null||xt(kt())))},qt=function(fr){jt!==""&&(fr.keyCode===KeyCode.ENTER||fr.type==="click")&&(Nt(""),xt==null||xt(kt()))},Xt=function(){return st.some(function(fr){return fr.toString()===ft.toString()})?st:st.concat([ft.toString()]).sort(function(fr,hr){var pr=Number.isNaN(Number(fr))?0:Number(fr),dr=Number.isNaN(Number(hr))?0:Number(hr);return pr-dr})},Gt="".concat($t,"-options");if(!ut&&!xt)return null;var Zt=null,er=null,lr=null;if(ut&&_t){var cr=Xt().map(function(ur,fr){return React$1.createElement(_t.Option,{key:fr,value:ur.toString()},Ft(ur))});Zt=React$1.createElement(_t,{disabled:Tt,prefixCls:wt,showSearch:!1,className:"".concat(Gt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ft||st[0]).toString(),onChange:Ht,getPopupContainer:function(fr){return fr.parentNode},"aria-label":ct.page_size,defaultOpen:!1},cr)}return xt&&(gt&&(lr=typeof gt=="boolean"?React$1.createElement("button",{type:"button",onClick:qt,onKeyUp:qt,disabled:Tt,className:"".concat(Gt,"-quick-jumper-button")},ct.jump_to_confirm):React$1.createElement("span",{onClick:qt,onKeyUp:qt},gt)),er=React$1.createElement("div",{className:"".concat(Gt,"-quick-jumper")},ct.jump_to,React$1.createElement("input",{disabled:Tt,type:"text",value:jt,onChange:Wt,onKeyUp:qt,onBlur:Vt,"aria-label":ct.page}),ct.page,lr)),React$1.createElement("li",{className:Gt},Zt,er)},Pager=function(et){var rt,st=et.rootPrefixCls,ct=et.page,ut=et.active,ft=et.className,gt=et.showTitle,xt=et.onClick,$t=et.onKeyPress,_t=et.itemRender,wt="".concat(st,"-item"),Tt=classNames(wt,"".concat(wt,"-").concat(ct),(rt={},_defineProperty$c(rt,"".concat(wt,"-active"),ut),_defineProperty$c(rt,"".concat(wt,"-disabled"),!ct),rt),ft),Rt=function(){xt(ct)},It=function(Nt){$t(Nt,xt,ct)},At=_t(ct,"page",React$1.createElement("a",{rel:"nofollow"},ct));return At?React$1.createElement("li",{title:gt?String(ct):null,className:Tt,onClick:Rt,onKeyDown:It,tabIndex:0},At):null},defaultItemRender$1=function(et,rt,st){return st};function noop$5(){}function isInteger(_e){var et=Number(_e);return typeof et=="number"&&!Number.isNaN(et)&&isFinite(et)&&Math.floor(et)===et}function calculatePage(_e,et,rt){var st=typeof _e>"u"?et:_e;return Math.floor((rt-1)/st)+1}var Pagination$2=function(et){var rt,st=et.prefixCls,ct=st===void 0?"rc-pagination":st,ut=et.selectPrefixCls,ft=ut===void 0?"rc-select":ut,gt=et.className,xt=et.selectComponentClass,$t=et.current,_t=et.defaultCurrent,wt=_t===void 0?1:_t,Tt=et.total,Rt=Tt===void 0?0:Tt,It=et.pageSize,At=et.defaultPageSize,jt=At===void 0?10:At,Nt=et.onChange,kt=Nt===void 0?noop$5:Nt,Ft=et.hideOnSinglePage,Ht=et.showPrevNextJumpers,Wt=Ht===void 0?!0:Ht,Vt=et.showQuickJumper,qt=et.showLessItems,Xt=et.showTitle,Gt=Xt===void 0?!0:Xt,Zt=et.onShowSizeChange,er=Zt===void 0?noop$5:Zt,lr=et.locale,cr=lr===void 0?locale$6:lr,ur=et.style,fr=et.totalBoundaryShowSizeChanger,hr=fr===void 0?50:fr,pr=et.disabled,dr=et.simple,yr=et.showTotal,Sr=et.showSizeChanger,br=et.pageSizeOptions,mr=et.itemRender,Er=mr===void 0?defaultItemRender$1:mr,Tr=et.jumpPrevIcon,Mr=et.jumpNextIcon,Or=et.prevIcon,wr=et.nextIcon,Cr=React$1.useRef(null),Nr=useMergedState(10,{value:It,defaultValue:jt}),Rr=_slicedToArray$3(Nr,2),Pr=Rr[0],jr=Rr[1],kr=useMergedState(1,{value:$t,defaultValue:wt,postState:function(Ro){return Math.max(1,Math.min(Ro,calculatePage(void 0,Pr,Rt)))}}),Fr=_slicedToArray$3(kr,2),_r=Fr[0],Br=Fr[1],Dr=React$1.useState(_r),Xr=_slicedToArray$3(Dr,2),Kr=Xr[0],Hr=Xr[1];reactExports.useEffect(function(){Hr(_r)},[_r]);var Vr=Math.max(1,_r-(qt?3:5)),ln=Math.min(calculatePage(void 0,Pr,Rt),_r+(qt?3:5));function Qr(so,Ro){var Po=so||React$1.createElement("button",{type:"button","aria-label":Ro,className:"".concat(ct,"-item-link")});return typeof so=="function"&&(Po=React$1.createElement(so,_objectSpread2({},et))),Po}function Zr(so){var Ro=so.target.value,Po=calculatePage(void 0,Pr,Rt),Ao;return Ro===""?Ao=Ro:Number.isNaN(Number(Ro))?Ao=Kr:Ro>=Po?Ao=Po:Ao=Number(Ro),Ao}function vn(so){return isInteger(so)&&so!==_r&&isInteger(Rt)&&Rt>0}var vr=Rt>Pr?Vt:!1;function gr(so){(so.keyCode===KeyCode.UP||so.keyCode===KeyCode.DOWN)&&so.preventDefault()}function $r(so){var Ro=Zr(so);switch(Ro!==Kr&&Hr(Ro),so.keyCode){case KeyCode.ENTER:Wr(Ro);break;case KeyCode.UP:Wr(Ro-1);break;case KeyCode.DOWN:Wr(Ro+1);break}}function zr(so){Wr(Zr(so))}function qr(so){var Ro=calculatePage(so,Pr,Rt),Po=_r>Ro&&Ro!==0?Ro:_r;jr(so),Hr(Po),er==null||er(_r,so),Br(Po),kt==null||kt(Po,so)}function Wr(so){if(vn(so)&&!pr){var Ro=calculatePage(void 0,Pr,Rt),Po=so;return so>Ro?Po=Ro:so<1&&(Po=1),Po!==Kr&&Hr(Po),Br(Po),kt==null||kt(Po,Pr),Po}return _r}var Gr=_r>1,dn=_rhr;function hn(){Gr&&Wr(_r-1)}function Cn(){dn&&Wr(_r+1)}function Rn(){Wr(Vr)}function kn(){Wr(ln)}function Bn(so,Ro){if(so.key==="Enter"||so.charCode===KeyCode.ENTER||so.keyCode===KeyCode.ENTER){for(var Po=arguments.length,Ao=new Array(Po>2?Po-2:0),Wo=2;WoRt?Rt:_r*Pr])),$n=null,Sn=calculatePage(void 0,Pr,Rt);if(Ft&&Rt<=Pr)return null;var xn=[],In={rootPrefixCls:ct,onClick:Wr,onKeyPress:Bn,showTitle:Gt,itemRender:Er,page:-1},jn=_r-1>0?_r-1:0,Hn=_r+1=Vn*2&&_r!==3&&(xn[0]=React$1.cloneElement(xn[0],{className:classNames("".concat(ct,"-item-after-jump-prev"),xn[0].props.className)}),xn.unshift(Tn)),Sn-_r>=Vn*2&&_r!==Sn-2){var ro=xn[xn.length-1];xn[xn.length-1]=React$1.cloneElement(ro,{className:classNames("".concat(ct,"-item-before-jump-next"),ro.props.className)}),xn.push($n)}An!==1&&xn.unshift(React$1.createElement(Pager,_extends$b({},In,{key:1,page:1}))),Xn!==Sn&&xn.push(React$1.createElement(Pager,_extends$b({},In,{key:Sn,page:Sn})))}var Kn=gn(jn);if(Kn){var co=!Gr||!Sn;Kn=React$1.createElement("li",{title:Gt?cr.prev_page:null,onClick:hn,tabIndex:co?null:0,onKeyDown:Yn,className:classNames("".concat(ct,"-prev"),_defineProperty$c({},"".concat(ct,"-disabled"),co)),"aria-disabled":co},Kn)}var uo=yn(Hn);if(uo){var vo,Bo;dr?(vo=!dn,Bo=Gr?0:null):(vo=!dn||!Sn,Bo=vo?null:0),uo=React$1.createElement("li",{title:Gt?cr.next_page:null,onClick:Cn,tabIndex:Bo,onKeyDown:Gn,className:classNames("".concat(ct,"-next"),_defineProperty$c({},"".concat(ct,"-disabled"),vo)),"aria-disabled":vo},uo)}var Ho=classNames(ct,gt,(rt={},_defineProperty$c(rt,"".concat(ct,"-simple"),dr),_defineProperty$c(rt,"".concat(ct,"-disabled"),pr),rt));return React$1.createElement("ul",_extends$b({className:Ho,style:ur,ref:Cr},Nn),On,Kn,dr?ao:xn,uo,React$1.createElement(Options,{locale:cr,rootPrefixCls:ct,disabled:pr,selectComponentClass:xt,selectPrefixCls:ft,changeSize:mn?qr:null,pageSize:Pr,pageSizeOptions:br,quickGo:vr?Wr:null,goButton:Jn}))};const MiniSelect=_e=>reactExports.createElement(Select$3,Object.assign({},_e,{showSearch:!0,size:"small"})),MiddleSelect=_e=>reactExports.createElement(Select$3,Object.assign({},_e,{showSearch:!0,size:"middle"}));MiniSelect.Option=Select$3.Option;MiddleSelect.Option=Select$3.Option;const genPaginationDisabledStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${et}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${et}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}}},[`&${et}-disabled`]:{cursor:"not-allowed",[`${et}-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}}},[`${et}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${et}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${et}-simple-pager`]:{color:_e.colorTextDisabled},[`${et}-jump-prev, ${et}-jump-next`]:{[`${et}-item-link-icon`]:{opacity:0},[`${et}-item-ellipsis`]:{opacity:1}}},[`&${et}-simple`]:{[`${et}-prev, ${et}-next`]:{[`&${et}-disabled ${et}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},genPaginationMiniStyle=_e=>{const{componentCls:et}=_e;return{[`&${et}-mini ${et}-total-text, &${et}-mini ${et}-simple-pager`]:{height:_e.itemSizeSM,lineHeight:unit$1(_e.itemSizeSM)},[`&${et}-mini ${et}-item`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:unit$1(_e.calc(_e.itemSizeSM).sub(2).equal())},[`&${et}-mini:not(${et}-disabled) ${et}-item:not(${et}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},[`&${et}-mini ${et}-prev, &${et}-mini ${et}-next`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:unit$1(_e.itemSizeSM)},[`&${et}-mini:not(${et}-disabled)`]:{[`${et}-prev, ${et}-next`]:{[`&:hover ${et}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${et}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${et}-disabled:hover ${et}-item-link`]:{backgroundColor:"transparent"}}},[` + &${et}-mini ${et}-prev ${et}-item-link, + &${et}-mini ${et}-next ${et}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:_e.itemSizeSM,lineHeight:unit$1(_e.itemSizeSM)}},[`&${et}-mini ${et}-jump-prev, &${et}-mini ${et}-jump-next`]:{height:_e.itemSizeSM,marginInlineEnd:0,lineHeight:unit$1(_e.itemSizeSM)},[`&${et}-mini ${et}-options`]:{marginInlineStart:_e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:_e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:_e.itemSizeSM,lineHeight:unit$1(_e.itemSizeSM),input:Object.assign(Object.assign({},genInputSmallStyle(_e)),{width:_e.paginationMiniQuickJumperInputWidth,height:_e.controlHeightSM})}}}},genPaginationSimpleStyle=_e=>{const{componentCls:et}=_e;return{[` + &${et}-simple ${et}-prev, + &${et}-simple ${et}-next + `]:{height:_e.itemSizeSM,lineHeight:unit$1(_e.itemSizeSM),verticalAlign:"top",[`${et}-item-link`]:{height:_e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive},"&::after":{height:_e.itemSizeSM,lineHeight:unit$1(_e.itemSizeSM)}}},[`&${et}-simple ${et}-simple-pager`]:{display:"inline-block",height:_e.itemSizeSM,marginInlineEnd:_e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:_e.marginXS,padding:`0 ${unit$1(_e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:_e.itemInputBg,border:`${unit$1(_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:`${unit$1(_e.inputOutlineOffset)} 0 ${unit$1(_e.controlOutlineWidth)} ${_e.controlOutline}`},"&[disabled]":{color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,cursor:"not-allowed"}}}}},genPaginationJumpStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-jump-prev, ${et}-jump-next`]:{outline:0,[`${et}-item-container`]:{position:"relative",[`${et}-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"}},[`${et}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:_e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:_e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:_e.paginationEllipsisTextIndent,opacity:1,transition:`all ${_e.motionDurationMid}`}},"&:hover":{[`${et}-item-link-icon`]:{opacity:1},[`${et}-item-ellipsis`]:{opacity:0}}},[` + ${et}-prev, + ${et}-jump-prev, + ${et}-jump-next + `]:{marginInlineEnd:_e.marginXS},[` + ${et}-prev, + ${et}-next, + ${et}-jump-prev, + ${et}-jump-next + `]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,color:_e.colorText,fontFamily:_e.fontFamily,lineHeight:`${unit$1(_e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:_e.borderRadius,cursor:"pointer",transition:`all ${_e.motionDurationMid}`},[`${et}-prev, ${et}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:_e.colorText,cursor:"pointer",userSelect:"none"},[`${et}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:_e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:"none",transition:`all ${_e.motionDurationMid}`},[`&:hover ${et}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${et}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${et}-disabled:hover`]:{[`${et}-item-link`]:{backgroundColor:"transparent"}}},[`${et}-slash`]:{marginInlineEnd:_e.paginationSlashMarginInlineEnd,marginInlineStart:_e.paginationSlashMarginInlineStart},[`${et}-options`]:{display:"inline-block",marginInlineStart:_e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:_e.controlHeight,marginInlineStart:_e.marginXS,lineHeight:unit$1(_e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},genBasicInputStyle(_e)),genBaseOutlinedStyle(_e,{borderColor:_e.colorBorder,hoverBorderColor:_e.colorPrimaryHover,activeBorderColor:_e.colorPrimary,activeShadow:_e.activeShadow})),{"&[disabled]":Object.assign({},genDisabledStyle(_e)),width:_e.calc(_e.controlHeightLG).mul(1.25).equal(),height:_e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:_e.marginXS,marginInlineEnd:_e.marginXS})}}}},genPaginationItemStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-item`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,marginInlineEnd:_e.marginXS,fontFamily:_e.fontFamily,lineHeight:unit$1(_e.calc(_e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${unit$1(_e.lineWidth)} ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit$1(_e.paginationItemPaddingInline)}`,color:_e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${et}-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}}}}},genPaginationStyle=_e=>{const{componentCls:et}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${et}-total-text`]:{display:"inline-block",height:_e.itemSize,marginInlineEnd:_e.marginXS,lineHeight:unit$1(_e.calc(_e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),genPaginationItemStyle(_e)),genPaginationJumpStyle(_e)),genPaginationSimpleStyle(_e)),genPaginationMiniStyle(_e)),genPaginationDisabledStyle(_e)),{[`@media only screen and (max-width: ${_e.screenLG}px)`]:{[`${et}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${_e.screenSM}px)`]:{[`${et}-options`]:{display:"none"}}}),[`&${_e.componentCls}-rtl`]:{direction:"rtl"}}},genPaginationFocusStyle=_e=>{const{componentCls:et}=_e;return{[`${et}:not(${et}-disabled)`]:{[`${et}-item`]:Object.assign({},genFocusStyle(_e)),[`${et}-jump-prev, ${et}-jump-next`]:{"&:focus-visible":Object.assign({[`${et}-item-link-icon`]:{opacity:1},[`${et}-item-ellipsis`]:{opacity:0}},genFocusOutline(_e))},[`${et}-prev, ${et}-next`]:{[`&:focus-visible ${et}-item-link`]:Object.assign({},genFocusOutline(_e))}}}},prepareComponentToken$c=_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},initComponentToken$1(_e)),prepareToken=_e=>merge$7(_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.marginXXS,paginationSlashMarginInlineEnd:_e.marginSM,paginationEllipsisTextIndent:"0.13em"},initInputToken(_e)),useStyle$u=genStyleHooks("Pagination",_e=>{const et=prepareToken(_e);return[genPaginationStyle(et),genPaginationFocusStyle(et)]},prepareComponentToken$c),genBorderedStyle$1=_e=>{const{componentCls:et}=_e;return{[`${et}${et}-bordered${et}-disabled:not(${et}-mini)`]:{"&, &:hover":{[`${et}-item-link`]:{borderColor:_e.colorBorder}},"&:focus-visible":{[`${et}-item-link`]:{borderColor:_e.colorBorder}},[`${et}-item, ${et}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,[`&:hover:not(${et}-item-active)`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,a:{color:_e.colorTextDisabled}},[`&${et}-item-active`]:{backgroundColor:_e.itemActiveBgDisabled}},[`${et}-prev, ${et}-next`]:{"&:hover button":{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,color:_e.colorTextDisabled},[`${et}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder}}},[`${et}${et}-bordered:not(${et}-mini)`]:{[`${et}-prev, ${et}-next`]:{"&:hover button":{borderColor:_e.colorPrimaryHover,backgroundColor:_e.itemBg},[`${et}-item-link`]:{backgroundColor:_e.itemLinkBg,borderColor:_e.colorBorder},[`&:hover ${et}-item-link`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,color:_e.colorPrimary},[`&${et}-disabled`]:{[`${et}-item-link`]:{borderColor:_e.colorBorder,color:_e.colorTextDisabled}}},[`${et}-item`]:{backgroundColor:_e.itemBg,border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,[`&:hover:not(${et}-item-active)`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,a:{color:_e.colorPrimary}},"&-active":{borderColor:_e.colorPrimary}}}}},BorderedStyle=genSubStyleComponent(["Pagination","bordered"],_e=>{const et=prepareToken(_e);return[genBorderedStyle$1(et)]},prepareComponentToken$c);var __rest$h=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,selectPrefixCls:rt,className:st,rootClassName:ct,style:ut,size:ft,locale:gt,selectComponentClass:xt,responsive:$t,showSizeChanger:_t}=_e,wt=__rest$h(_e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Tt}=useBreakpoint$1($t),[,Rt]=useToken$4(),{getPrefixCls:It,direction:At,pagination:jt={}}=reactExports.useContext(ConfigContext$1),Nt=It("pagination",et),[kt,Ft,Ht]=useStyle$u(Nt),Wt=_t??jt.showSizeChanger,Vt=reactExports.useMemo(()=>{const ur=reactExports.createElement("span",{className:`${Nt}-item-ellipsis`},"•••"),fr=reactExports.createElement("button",{className:`${Nt}-item-link`,type:"button",tabIndex:-1},At==="rtl"?reactExports.createElement(RightOutlined$6,null):reactExports.createElement(LeftOutlined$4,null)),hr=reactExports.createElement("button",{className:`${Nt}-item-link`,type:"button",tabIndex:-1},At==="rtl"?reactExports.createElement(LeftOutlined$4,null):reactExports.createElement(RightOutlined$6,null)),pr=reactExports.createElement("a",{className:`${Nt}-item-link`},reactExports.createElement("div",{className:`${Nt}-item-container`},At==="rtl"?reactExports.createElement(DoubleRightOutlined$1,{className:`${Nt}-item-link-icon`}):reactExports.createElement(DoubleLeftOutlined$1,{className:`${Nt}-item-link-icon`}),ur)),dr=reactExports.createElement("a",{className:`${Nt}-item-link`},reactExports.createElement("div",{className:`${Nt}-item-container`},At==="rtl"?reactExports.createElement(DoubleLeftOutlined$1,{className:`${Nt}-item-link-icon`}):reactExports.createElement(DoubleRightOutlined$1,{className:`${Nt}-item-link-icon`}),ur));return{prevIcon:fr,nextIcon:hr,jumpPrevIcon:pr,jumpNextIcon:dr}},[At,Nt]),[qt]=useLocale$3("Pagination",locale$a),Xt=Object.assign(Object.assign({},qt),gt),Gt=useSize(ft),Zt=Gt==="small"||!!(Tt&&!Gt&&$t),er=It("select",rt),lr=classNames({[`${Nt}-mini`]:Zt,[`${Nt}-rtl`]:At==="rtl",[`${Nt}-bordered`]:Rt.wireframe},jt==null?void 0:jt.className,st,ct,Ft,Ht),cr=Object.assign(Object.assign({},jt==null?void 0:jt.style),ut);return kt(reactExports.createElement(reactExports.Fragment,null,Rt.wireframe&&reactExports.createElement(BorderedStyle,{prefixCls:Nt}),reactExports.createElement(Pagination$2,Object.assign({},Vt,wt,{style:cr,prefixCls:Nt,selectPrefixCls:er,className:lr,selectComponentClass:xt||(Zt?MiniSelect:MiddleSelect),locale:Xt,showSizeChanger:Wt}))))},Pagination$1=Pagination,antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=_e=>{const{componentCls:et,calc:rt}=_e;return{[`${et}`]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"absolute",display:"none",color:_e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${_e.motionDurationSlow} ${_e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${et}-text`]:{fontSize:_e.fontSize,paddingTop:rt(rt(_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"},[`${et}-dot ${et}-dot-item`]:{backgroundColor:_e.colorWhite},[`${et}-text`]:{color:_e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${et}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:_e.contentHeight,[`${et}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:rt(_e.dotSize).mul(-1).div(2).equal()},[`${et}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${_e.colorBgContainer}`},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${et}-dot`]:{margin:rt(_e.dotSizeSM).mul(-1).div(2).equal()},[`${et}-text`]:{paddingTop:rt(rt(_e.dotSizeSM).sub(_e.fontSize)).div(2).add(2).equal()},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${et}-dot`]:{margin:rt(_e.dotSizeLG).mul(-1).div(2).equal()},[`${et}-text`]:{paddingTop:rt(rt(_e.dotSizeLG).sub(_e.fontSize)).div(2).add(2).equal()},[`&${et}-show-text ${et}-dot`]:{marginTop:rt(_e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${et}-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"}},[`${et}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:_e.spinDotDefault},[`${et}-dot`]:{position:"relative",display:"inline-block",fontSize:_e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:rt(_e.dotSize).sub(rt(_e.marginXXS).div(2)).div(2).equal(),height:rt(_e.dotSize).sub(rt(_e.marginXXS).div(2)).div(2).equal(),backgroundColor:_e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${et}-dot`]:{fontSize:_e.dotSizeSM,i:{width:rt(rt(_e.dotSizeSM).sub(rt(_e.marginXXS).div(2))).div(2).equal(),height:rt(rt(_e.dotSizeSM).sub(rt(_e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${et}-dot`]:{fontSize:_e.dotSizeLG,i:{width:rt(rt(_e.dotSizeLG).sub(_e.marginXXS)).div(2).equal(),height:rt(rt(_e.dotSizeLG).sub(_e.marginXXS)).div(2).equal()}},[`&${et}-show-text ${et}-text`]:{display:"block"}})}},prepareComponentToken$b=_e=>{const{controlHeightLG:et,controlHeight:rt}=_e;return{contentHeight:400,dotSize:et/2,dotSizeSM:et*.35,dotSizeLG:rt}},useStyle$t=genStyleHooks("Spin",_e=>{const et=merge$7(_e,{spinDotDefault:_e.colorTextDescription});return[genSpinStyle(et)]},prepareComponentToken$b);var __rest$g=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,spinning:rt=!0,delay:st=0,className:ct,rootClassName:ut,size:ft="default",tip:gt,wrapperClassName:xt,style:$t,children:_t,fullscreen:wt=!1}=_e,Tt=__rest$g(_e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:Rt}=reactExports.useContext(ConfigContext$1),It=Rt("spin",et),[At,jt,Nt]=useStyle$t(It),[kt,Ft]=reactExports.useState(()=>rt&&!shouldDelay(rt,st));reactExports.useEffect(()=>{if(rt){const lr=debounce$3(st,()=>{Ft(!0)});return lr(),()=>{var cr;(cr=lr==null?void 0:lr.cancel)===null||cr===void 0||cr.call(lr)}}Ft(!1)},[st,rt]);const Ht=reactExports.useMemo(()=>typeof _t<"u"&&!wt,[_t,wt]),{direction:Wt,spin:Vt}=reactExports.useContext(ConfigContext$1),qt=classNames(It,Vt==null?void 0:Vt.className,{[`${It}-sm`]:ft==="small",[`${It}-lg`]:ft==="large",[`${It}-spinning`]:kt,[`${It}-show-text`]:!!gt,[`${It}-fullscreen`]:wt,[`${It}-fullscreen-show`]:wt&&kt,[`${It}-rtl`]:Wt==="rtl"},ct,ut,jt,Nt),Xt=classNames(`${It}-container`,{[`${It}-blur`]:kt}),Gt=omit$2(Tt,["indicator"]),Zt=Object.assign(Object.assign({},Vt==null?void 0:Vt.style),$t),er=reactExports.createElement("div",Object.assign({},Gt,{style:Zt,className:qt,"aria-live":"polite","aria-busy":kt}),renderIndicator(It,_e),gt&&(Ht||wt)?reactExports.createElement("div",{className:`${It}-text`},gt):null);return At(Ht?reactExports.createElement("div",Object.assign({},Gt,{className:classNames(`${It}-nested-loading`,xt,jt,Nt)}),kt&&reactExports.createElement("div",{key:"loading"},er),reactExports.createElement("div",{className:Xt,key:"container"},_t)):er)};Spin.setDefaultIndicator=_e=>{defaultIndicator=_e};const Spin$1=Spin,ListContext=React$1.createContext({});ListContext.Consumer;var __rest$f=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{prefixCls:et,className:rt,avatar:st,title:ct,description:ut}=_e,ft=__rest$f(_e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:gt}=reactExports.useContext(ConfigContext$1),xt=gt("list",et),$t=classNames(`${xt}-item-meta`,rt),_t=React$1.createElement("div",{className:`${xt}-item-meta-content`},ct&&React$1.createElement("h4",{className:`${xt}-item-meta-title`},ct),ut&&React$1.createElement("div",{className:`${xt}-item-meta-description`},ut));return React$1.createElement("div",Object.assign({},ft,{className:$t}),st&&React$1.createElement("div",{className:`${xt}-item-meta-avatar`},st),(ct||ut)&&_t)},InternalItem=(_e,et)=>{var{prefixCls:rt,children:st,actions:ct,extra:ut,className:ft,colStyle:gt}=_e,xt=__rest$f(_e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:$t,itemLayout:_t}=reactExports.useContext(ListContext),{getPrefixCls:wt}=reactExports.useContext(ConfigContext$1),Tt=()=>{let kt;return reactExports.Children.forEach(st,Ft=>{typeof Ft=="string"&&(kt=!0)}),kt&&reactExports.Children.count(st)>1},Rt=()=>_t==="vertical"?!!ut:!Tt(),It=wt("list",rt),At=ct&&ct.length>0&&React$1.createElement("ul",{className:`${It}-item-action`,key:"actions"},ct.map((kt,Ft)=>React$1.createElement("li",{key:`${It}-item-action-${Ft}`},kt,Ft!==ct.length-1&&React$1.createElement("em",{className:`${It}-item-action-split`})))),jt=$t?"div":"li",Nt=React$1.createElement(jt,Object.assign({},xt,$t?{}:{ref:et},{className:classNames(`${It}-item`,{[`${It}-item-no-flex`]:!Rt()},ft)}),_t==="vertical"&&ut?[React$1.createElement("div",{className:`${It}-item-main`,key:"content"},st,At),React$1.createElement("div",{className:`${It}-item-extra`,key:"extra"},ut)]:[st,At,cloneElement(ut,{key:"extra"})]);return $t?React$1.createElement(Col$1,{ref:et,flex:1,style:gt},Nt):Nt},Item$1=reactExports.forwardRef(InternalItem);Item$1.Meta=Meta;const Item$2=Item$1,genBorderedStyle=_e=>{const{listBorderedCls:et,componentCls:rt,paddingLG:st,margin:ct,itemPaddingSM:ut,itemPaddingLG:ft,marginLG:gt,borderRadiusLG:xt}=_e;return{[`${et}`]:{border:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorBorder}`,borderRadius:xt,[`${rt}-header,${rt}-footer,${rt}-item`]:{paddingInline:st},[`${rt}-pagination`]:{margin:`${unit$1(ct)} ${unit$1(gt)}`}},[`${et}${rt}-sm`]:{[`${rt}-item,${rt}-header,${rt}-footer`]:{padding:ut}},[`${et}${rt}-lg`]:{[`${rt}-item,${rt}-header,${rt}-footer`]:{padding:ft}}}},genResponsiveStyle=_e=>{const{componentCls:et,screenSM:rt,screenMD:st,marginLG:ct,marginSM:ut,margin:ft}=_e;return{[`@media screen and (max-width:${st}px)`]:{[`${et}`]:{[`${et}-item`]:{[`${et}-item-action`]:{marginInlineStart:ct}}},[`${et}-vertical`]:{[`${et}-item`]:{[`${et}-item-extra`]:{marginInlineStart:ct}}}},[`@media screen and (max-width: ${rt}px)`]:{[`${et}`]:{[`${et}-item`]:{flexWrap:"wrap",[`${et}-action`]:{marginInlineStart:ut}}},[`${et}-vertical`]:{[`${et}-item`]:{flexWrap:"wrap-reverse",[`${et}-item-main`]:{minWidth:_e.contentWidth},[`${et}-item-extra`]:{margin:`auto auto ${unit$1(ft)}`}}}}}},genBaseStyle$7=_e=>{const{componentCls:et,antCls:rt,controlHeight:st,minHeight:ct,paddingSM:ut,marginLG:ft,padding:gt,itemPadding:xt,colorPrimary:$t,itemPaddingSM:_t,itemPaddingLG:wt,paddingXS:Tt,margin:Rt,colorText:It,colorTextDescription:At,motionDurationSlow:jt,lineWidth:Nt,headerBg:kt,footerBg:Ft,emptyTextPadding:Ht,metaMarginBottom:Wt,avatarMarginRight:Vt,titleMarginBottom:qt,descriptionFontSize:Xt}=_e,Gt={};return["start","center","end"].forEach(Zt=>{Gt[`&-align-${Zt}`]={textAlign:Zt}}),{[`${et}`]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative","*":{outline:"none"},[`${et}-header`]:{background:kt},[`${et}-footer`]:{background:Ft},[`${et}-header, ${et}-footer`]:{paddingBlock:ut},[`${et}-pagination`]:Object.assign(Object.assign({marginBlockStart:ft},Gt),{[`${rt}-pagination-options`]:{textAlign:"start"}}),[`${et}-spin`]:{minHeight:ct,textAlign:"center"},[`${et}-items`]:{margin:0,padding:0,listStyle:"none"},[`${et}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:xt,color:It,[`${et}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${et}-item-meta-avatar`]:{marginInlineEnd:Vt},[`${et}-item-meta-content`]:{flex:"1 0",width:0,color:It},[`${et}-item-meta-title`]:{margin:`0 0 ${unit$1(_e.marginXXS)} 0`,color:It,fontSize:_e.fontSize,lineHeight:_e.lineHeight,"> a":{color:It,transition:`all ${jt}`,"&:hover":{color:$t}}},[`${et}-item-meta-description`]:{color:At,fontSize:Xt,lineHeight:_e.lineHeight}},[`${et}-item-action`]:{flex:"0 0 auto",marginInlineStart:_e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${unit$1(Tt)}`,color:At,fontSize:_e.fontSize,lineHeight:_e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${et}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:Nt,height:_e.calc(_e.fontHeight).sub(_e.calc(_e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:_e.colorSplit}}},[`${et}-empty`]:{padding:`${unit$1(gt)} 0`,color:At,fontSize:_e.fontSizeSM,textAlign:"center"},[`${et}-empty-text`]:{padding:Ht,color:_e.colorTextDisabled,fontSize:_e.fontSize,textAlign:"center"},[`${et}-item-no-flex`]:{display:"block"}}),[`${et}-grid ${rt}-col > ${et}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:Rt,paddingBlock:0,borderBlockEnd:"none"},[`${et}-vertical ${et}-item`]:{alignItems:"initial",[`${et}-item-main`]:{display:"block",flex:1},[`${et}-item-extra`]:{marginInlineStart:ft},[`${et}-item-meta`]:{marginBlockEnd:Wt,[`${et}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:qt,color:It,fontSize:_e.fontSizeLG,lineHeight:_e.lineHeightLG}},[`${et}-item-action`]:{marginBlockStart:gt,marginInlineStart:"auto","> li":{padding:`0 ${unit$1(gt)}`,"&:first-child":{paddingInlineStart:0}}}},[`${et}-split ${et}-item`]:{borderBlockEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${et}-split ${et}-header`]:{borderBlockEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},[`${et}-split${et}-empty ${et}-footer`]:{borderTop:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},[`${et}-loading ${et}-spin-nested-loading`]:{minHeight:st},[`${et}-split${et}-something-after-last-item ${rt}-spin-container > ${et}-items > ${et}-item:last-child`]:{borderBlockEnd:`${unit$1(_e.lineWidth)} ${_e.lineType} ${_e.colorSplit}`},[`${et}-lg ${et}-item`]:{padding:wt},[`${et}-sm ${et}-item`]:{padding:_t},[`${et}:not(${et}-vertical)`]:{[`${et}-item-no-flex`]:{[`${et}-item-action`]:{float:"right"}}}}},prepareComponentToken$a=_e=>({contentWidth:220,itemPadding:`${unit$1(_e.paddingContentVertical)} 0`,itemPaddingSM:`${unit$1(_e.paddingContentVerticalSM)} ${unit$1(_e.paddingContentHorizontal)}`,itemPaddingLG:`${unit$1(_e.paddingContentVerticalLG)} ${unit$1(_e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:_e.padding,metaMarginBottom:_e.padding,avatarMarginRight:_e.padding,titleMarginBottom:_e.paddingSM,descriptionFontSize:_e.fontSize}),useStyle$s=genStyleHooks("List",_e=>{const et=merge$7(_e,{listBorderedCls:`${_e.componentCls}-bordered`,minHeight:_e.controlHeightLG});return[genBaseStyle$7(et),genBorderedStyle(et),genResponsiveStyle(et)]},prepareComponentToken$a);var __rest$e=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct(ln,Qr)=>{var Zr;Xt(ln),Zt(Qr),rt&&rt[Vr]&&((Zr=rt==null?void 0:rt[Vr])===null||Zr===void 0||Zr.call(rt,ln,Qr))},pr=hr("onChange"),dr=hr("onShowSizeChange"),yr=(Vr,ln)=>{if(!Ft)return null;let Qr;return typeof kt=="function"?Qr=kt(Vr):kt?Qr=Vr[kt]:Qr=Vr.key,Qr||(Qr=`list-item-${ln}`),reactExports.createElement(reactExports.Fragment,{key:Qr},Ft(Vr,ln))},Sr=()=>!!(wt||rt||jt),br=er("list",st),[mr,Er,Tr]=useStyle$s(br);let Mr=Nt;typeof Mr=="boolean"&&(Mr={spinning:Mr});const Or=Mr&&Mr.spinning,wr=useSize(It);let Cr="";switch(wr){case"large":Cr="lg";break;case"small":Cr="sm";break}const Nr=classNames(br,{[`${br}-vertical`]:_t==="vertical",[`${br}-${Cr}`]:Cr,[`${br}-split`]:ut,[`${br}-bordered`]:ct,[`${br}-loading`]:Or,[`${br}-grid`]:!!Tt,[`${br}-something-after-last-item`]:Sr(),[`${br}-rtl`]:cr==="rtl"},ur==null?void 0:ur.className,ft,gt,Er,Tr),Rr=extendsObject$1(fr,{total:Rt.length,current:qt,pageSize:Gt},rt||{}),Pr=Math.ceil(Rr.total/Rr.pageSize);Rr.current>Pr&&(Rr.current=Pr);const jr=rt?reactExports.createElement("div",{className:classNames(`${br}-pagination`,`${br}-pagination-align-${(et=Rr==null?void 0:Rr.align)!==null&&et!==void 0?et:"end"}`)},reactExports.createElement(Pagination$1,Object.assign({},Rr,{onChange:pr,onShowSizeChange:dr}))):null;let kr=_toConsumableArray$3(Rt);rt&&Rt.length>(Rr.current-1)*Rr.pageSize&&(kr=_toConsumableArray$3(Rt).splice((Rr.current-1)*Rr.pageSize,Rr.pageSize));const Fr=Object.keys(Tt||{}).some(Vr=>["xs","sm","md","lg","xl","xxl"].includes(Vr)),_r=useBreakpoint$1(Fr),Br=reactExports.useMemo(()=>{for(let Vr=0;Vr{if(!Tt)return;const Vr=Br&&Tt[Br]?Tt[Br]:Tt.column;if(Vr)return{width:`${100/Vr}%`,maxWidth:`${100/Vr}%`}},[Tt==null?void 0:Tt.column,Br]);let Xr=Or&&reactExports.createElement("div",{style:{minHeight:53}});if(kr.length>0){const Vr=kr.map((ln,Qr)=>yr(ln,Qr));Xr=Tt?reactExports.createElement(Row$3,{gutter:Tt.gutter},reactExports.Children.map(Vr,ln=>reactExports.createElement("div",{key:ln==null?void 0:ln.key,style:Dr},ln))):reactExports.createElement("ul",{className:`${br}-items`},Vr)}else!$t&&!Or&&(Xr=reactExports.createElement("div",{className:`${br}-empty-text`},Ht&&Ht.emptyText||(lr==null?void 0:lr("List"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"List"})));const Kr=Rr.position||"bottom",Hr=reactExports.useMemo(()=>({grid:Tt,itemLayout:_t}),[JSON.stringify(Tt),_t]);return mr(reactExports.createElement(ListContext.Provider,{value:Hr},reactExports.createElement("div",Object.assign({style:Object.assign(Object.assign({},ur==null?void 0:ur.style),xt),className:Nr},Wt),(Kr==="top"||Kr==="both")&&jr,At&&reactExports.createElement("div",{className:`${br}-header`},At),reactExports.createElement(Spin$1,Object.assign({},Mr),Xr,$t),jt&&reactExports.createElement("div",{className:`${br}-footer`},jt),wt||(Kr==="bottom"||Kr==="both")&&jr)))}List.Item=Item$2;let message$1=null,act=_e=>_e(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:_e,duration:et,rtl:rt,maxCount:st,top:ct}=defaultGlobalConfig,ut=(_e==null?void 0:_e())||document.body;return{getContainer:()=>ut,duration:et,rtl:rt,maxCount:st,top:ct}}const GlobalHolder=React$1.forwardRef((_e,et)=>{const{messageConfig:rt,sync:st}=_e,{getPrefixCls:ct}=reactExports.useContext(ConfigContext$1),ut=defaultGlobalConfig.prefixCls||ct("message"),ft=reactExports.useContext(AppConfigContext),[gt,xt]=useInternalMessage(Object.assign(Object.assign(Object.assign({},rt),{prefixCls:ut}),ft.message));return React$1.useImperativeHandle(et,()=>{const $t=Object.assign({},gt);return Object.keys($t).forEach(_t=>{$t[_t]=function(){return st(),gt[_t].apply(gt,arguments)}}),{instance:$t,sync:st}}),xt}),GlobalHolderWrapper=React$1.forwardRef((_e,et)=>{const[rt,st]=React$1.useState(getGlobalContext),ct=()=>{st(getGlobalContext)};React$1.useEffect(ct,[]);const ut=globalConfig(),ft=ut.getRootPrefixCls(),gt=ut.getIconPrefixCls(),xt=ut.getTheme(),$t=React$1.createElement(GlobalHolder,{ref:et,sync:ct,messageConfig:rt});return React$1.createElement(ConfigProvider$1,{prefixCls:ft,iconPrefixCls:gt,theme:xt},ut.holderRender?ut.holderRender($t):$t)});function flushNotice(){if(!message$1){const _e=document.createDocumentFragment(),et={fragment:_e};message$1=et,act(()=>{render$1(React$1.createElement(GlobalHolderWrapper,{ref:rt=>{const{instance:st,sync:ct}=rt||{};Promise.resolve().then(()=>{!et.instance&&st&&(et.instance=st,et.sync=ct,flushNotice())})}}),_e)});return}message$1.instance&&(taskQueue.forEach(_e=>{const{type:et,skipped:rt}=_e;if(!rt)switch(et){case"open":{act(()=>{const st=message$1.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),_e.config));st==null||st.then(_e.resolve),_e.setCloseFn(st)});break}case"destroy":act(()=>{message$1==null||message$1.instance.destroy(_e.key)});break;default:act(()=>{var st;const ct=(st=message$1.instance)[et].apply(st,_toConsumableArray$3(_e.args));ct==null||ct.then(_e.resolve),_e.setCloseFn(ct)})}}),taskQueue=[])}function setMessageGlobalConfig(_e){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),_e),act(()=>{var et;(et=message$1==null?void 0:message$1.sync)===null||et===void 0||et.call(message$1)})}function open(_e){const et=wrapPromiseFn(rt=>{let st;const ct={type:"open",config:_e,resolve:rt,setCloseFn:ut=>{st=ut}};return taskQueue.push(ct),()=>{st?act(()=>{st()}):ct.skipped=!0}});return flushNotice(),et}function typeOpen(_e,et){const rt=wrapPromiseFn(st=>{let ct;const ut={type:_e,args:et,resolve:st,setCloseFn:ft=>{ct=ft}};return taskQueue.push(ut),()=>{ct?act(()=>{ct()}):ut.skipped=!0}});return flushNotice(),rt}function destroy(_e){taskQueue.push({type:"destroy",key:_e}),flushNotice()}const methods=["success","info","warning","error","loading"],baseStaticMethods={open,destroy,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$f},staticMethods=baseStaticMethods;methods.forEach(_e=>{staticMethods[_e]=function(){for(var et=arguments.length,rt=new Array(et),st=0;st{const{prefixCls:et,className:rt,closeIcon:st,closable:ct,type:ut,title:ft,children:gt,footer:xt}=_e,$t=__rest$d(_e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:_t}=reactExports.useContext(ConfigContext$1),wt=_t(),Tt=et||_t("modal"),Rt=useCSSVarCls(wt),[It,At,jt]=useStyle$U(Tt,Rt),Nt=`${Tt}-confirm`;let kt={};return ut?kt={closable:ct??!1,title:"",footer:"",children:reactExports.createElement(ConfirmContent,Object.assign({},_e,{prefixCls:Tt,confirmPrefixCls:Nt,rootPrefixCls:wt,content:gt}))}:kt={closable:ct??!0,title:ft,footer:xt!==null&&reactExports.createElement(Footer$4,Object.assign({},_e)),children:gt},It(reactExports.createElement(Panel$2,Object.assign({prefixCls:Tt,className:classNames(At,`${Tt}-pure-panel`,ut&&Nt,ut&&`${Nt}-${ut}`,rt,jt,Rt)},$t,{closeIcon:renderCloseIcon(Tt,st),closable:ct},kt)))},PurePanel$5=withPureRenderTheme(PurePanel$4);function modalWarn(_e){return confirm(withWarn(_e))}const Modal$1=OriginModal;Modal$1.useModal=useModal;Modal$1.info=function(et){return confirm(withInfo(et))};Modal$1.success=function(et){return confirm(withSuccess(et))};Modal$1.error=function(et){return confirm(withError(et))};Modal$1.warning=modalWarn;Modal$1.warn=modalWarn;Modal$1.confirm=function(et){return confirm(withConfirm(et))};Modal$1.destroyAll=function(){for(;destroyFns.length;){const et=destroyFns.pop();et&&et()}};Modal$1.config=modalGlobalConfig;Modal$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$5;const Modal$2=Modal$1,genBaseStyle$6=_e=>{const{componentCls:et,iconCls:rt,antCls:st,zIndexPopup:ct,colorText:ut,colorWarning:ft,marginXXS:gt,marginXS:xt,fontSize:$t,fontWeightStrong:_t,colorTextHeading:wt}=_e;return{[et]:{zIndex:ct,[`&${st}-popover`]:{fontSize:$t},[`${et}-message`]:{marginBottom:xt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${et}-message-icon ${rt}`]:{color:ft,fontSize:$t,lineHeight:1,marginInlineEnd:xt},[`${et}-title`]:{fontWeight:_t,color:wt,"&:only-child":{fontWeight:"normal"}},[`${et}-description`]:{marginTop:gt,color:ut}},[`${et}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:xt}}}}},prepareComponentToken$9=_e=>{const{zIndexPopupBase:et}=_e;return{zIndexPopup:et+60}},useStyle$r=genStyleHooks("Popconfirm",_e=>genBaseStyle$6(_e),prepareComponentToken$9,{resetStyle:!1});var __rest$c=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:et,okButtonProps:rt,cancelButtonProps:st,title:ct,description:ut,cancelText:ft,okText:gt,okType:xt="primary",icon:$t=reactExports.createElement(ExclamationCircleFilled$1,null),showCancel:_t=!0,close:wt,onConfirm:Tt,onCancel:Rt,onPopupClick:It}=_e,{getPrefixCls:At}=reactExports.useContext(ConfigContext$1),[jt]=useLocale$3("Popconfirm",localeValues$1.Popconfirm),Nt=getRenderPropValue(ct),kt=getRenderPropValue(ut);return reactExports.createElement("div",{className:`${et}-inner-content`,onClick:It},reactExports.createElement("div",{className:`${et}-message`},$t&&reactExports.createElement("span",{className:`${et}-message-icon`},$t),reactExports.createElement("div",{className:`${et}-message-text`},Nt&&reactExports.createElement("div",{className:classNames(`${et}-title`)},Nt),kt&&reactExports.createElement("div",{className:`${et}-description`},kt))),reactExports.createElement("div",{className:`${et}-buttons`},_t&&reactExports.createElement(Button$3,Object.assign({onClick:Rt,size:"small"},st),ft||(jt==null?void 0:jt.cancelText)),reactExports.createElement(ActionButton$1,{buttonProps:Object.assign(Object.assign({size:"small"},convertLegacyProps(xt)),rt),actionFn:Tt,close:wt,prefixCls:At("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},gt||(jt==null?void 0:jt.okText))))},PurePanel$2=_e=>{const{prefixCls:et,placement:rt,className:st,style:ct}=_e,ut=__rest$c(_e,["prefixCls","placement","className","style"]),{getPrefixCls:ft}=reactExports.useContext(ConfigContext$1),gt=ft("popconfirm",et),[xt]=useStyle$r(gt);return xt(reactExports.createElement(PopoverPurePanel,{placement:rt,className:classNames(gt,st),style:ct,content:reactExports.createElement(Overlay,Object.assign({prefixCls:gt},ut))}))},PurePanel$3=PurePanel$2;var __rest$b=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,st;const{prefixCls:ct,placement:ut="top",trigger:ft="click",okType:gt="primary",icon:xt=reactExports.createElement(ExclamationCircleFilled$1,null),children:$t,overlayClassName:_t,onOpenChange:wt,onVisibleChange:Tt}=_e,Rt=__rest$b(_e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:It}=reactExports.useContext(ConfigContext$1),[At,jt]=useMergedState(!1,{value:(rt=_e.open)!==null&&rt!==void 0?rt:_e.visible,defaultValue:(st=_e.defaultOpen)!==null&&st!==void 0?st:_e.defaultVisible}),Nt=(Zt,er)=>{jt(Zt,!0),Tt==null||Tt(Zt),wt==null||wt(Zt,er)},kt=Zt=>{Nt(!1,Zt)},Ft=Zt=>{var er;return(er=_e.onConfirm)===null||er===void 0?void 0:er.call(void 0,Zt)},Ht=Zt=>{var er;Nt(!1,Zt),(er=_e.onCancel)===null||er===void 0||er.call(void 0,Zt)},Wt=Zt=>{Zt.keyCode===KeyCode.ESC&&At&&Nt(!1,Zt)},Vt=Zt=>{const{disabled:er=!1}=_e;er||Nt(Zt)},qt=It("popconfirm",ct),Xt=classNames(qt,_t),[Gt]=useStyle$r(qt);return Gt(reactExports.createElement(Popover$2,Object.assign({},omit$2(Rt,["title"]),{trigger:ft,placement:ut,onOpenChange:Vt,open:At,ref:et,overlayClassName:Xt,content:reactExports.createElement(Overlay,Object.assign({okType:gt,icon:xt},_e,{prefixCls:qt,close:kt,onConfirm:Ft,onCancel:Ht})),"data-popover-inject":!0}),cloneElement($t,{onKeyDown:Zt=>{var er,lr;reactExports.isValidElement($t)&&((lr=$t==null?void 0:(er=$t.props).onKeyDown)===null||lr===void 0||lr.call(er,Zt)),Wt(Zt)}})))});Popconfirm._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$3;const Popconfirm$1=Popconfirm;var defaultProps$1={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var et=reactExports.useRef([]),rt=reactExports.useRef(null);return reactExports.useEffect(function(){var st=Date.now(),ct=!1;et.current.forEach(function(ut){if(ut){ct=!0;var ft=ut.style;ft.transitionDuration=".3s, .3s, .3s, .06s",rt.current&&st-rt.current<100&&(ft.transitionDuration="0s, 0s")}}),ct&&(rt.current=Date.now())}),et.current},uuid$1=0,isBrowserClient$2=canUseDom$1();function getUUID$1(){var _e;return isBrowserClient$2?(_e=uuid$1,uuid$1+=1):_e="TEST_OR_SSR",_e}const useId$1=function(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_progress_".concat(getUUID$1()))},[]),_e||st};var Block=function(et){var rt=et.bg,st=et.children;return reactExports.createElement("div",{style:{width:"100%",height:"100%",background:rt}},st)};function getPtgColors(_e,et){return Object.keys(_e).map(function(rt){var st=parseFloat(rt),ct="".concat(Math.floor(st*et),"%");return"".concat(_e[rt]," ").concat(ct)})}var PtgCircle=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.color,ct=_e.gradientId,ut=_e.radius,ft=_e.style,gt=_e.ptg,xt=_e.strokeLinecap,$t=_e.strokeWidth,_t=_e.size,wt=_e.gapDegree,Tt=st&&_typeof$e(st)==="object",Rt=Tt?"#FFF":void 0,It=_t/2,At=reactExports.createElement("circle",{className:"".concat(rt,"-circle-path"),r:ut,cx:It,cy:It,stroke:Rt,strokeLinecap:xt,strokeWidth:$t,opacity:gt===0?0:1,style:ft,ref:et});if(!Tt)return At;var jt="".concat(ct,"-conic"),Nt=wt?"".concat(180+wt/2,"deg"):"0deg",kt=getPtgColors(st,(360-wt)/360),Ft=getPtgColors(st,1),Ht="conic-gradient(from ".concat(Nt,", ").concat(kt.join(", "),")"),Wt="linear-gradient(to ".concat(wt?"bottom":"top",", ").concat(Ft.join(", "),")");return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("mask",{id:jt},At),reactExports.createElement("foreignObject",{x:0,y:0,width:_t,height:_t,mask:"url(#".concat(jt,")")},reactExports.createElement(Block,{bg:Wt},reactExports.createElement(Block,{bg:Ht}))))}),VIEW_BOX_SIZE=100,getCircleStyle=function(et,rt,st,ct,ut,ft,gt,xt,$t,_t){var wt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Tt=st/100*360*((360-ft)/360),Rt=ft===0?0:{bottom:0,top:180,left:90,right:-90}[gt],It=(100-ct)/100*rt;$t==="round"&&ct!==100&&(It+=_t/2,It>=rt&&(It=rt-.01));var At=VIEW_BOX_SIZE/2;return{stroke:typeof xt=="string"?xt:void 0,strokeDasharray:"".concat(rt,"px ").concat(et),strokeDashoffset:It+wt,transform:"rotate(".concat(ut+Tt+Rt,"deg)"),transformOrigin:"".concat(At,"px ").concat(At,"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}},_excluded$_=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$7(_e){var et=_e??[];return Array.isArray(et)?et:[et]}var Circle$2=function(et){var rt=_objectSpread2(_objectSpread2({},defaultProps$1),et),st=rt.id,ct=rt.prefixCls,ut=rt.steps,ft=rt.strokeWidth,gt=rt.trailWidth,xt=rt.gapDegree,$t=xt===void 0?0:xt,_t=rt.gapPosition,wt=rt.trailColor,Tt=rt.strokeLinecap,Rt=rt.style,It=rt.className,At=rt.strokeColor,jt=rt.percent,Nt=_objectWithoutProperties$2(rt,_excluded$_),kt=VIEW_BOX_SIZE/2,Ft=useId$1(st),Ht="".concat(Ft,"-gradient"),Wt=kt-ft/2,Vt=Math.PI*2*Wt,qt=$t>0?90+$t/2:-90,Xt=Vt*((360-$t)/360),Gt=_typeof$e(ut)==="object"?ut:{count:ut,space:2},Zt=Gt.count,er=Gt.space,lr=toArray$7(jt),cr=toArray$7(At),ur=cr.find(function(br){return br&&_typeof$e(br)==="object"}),fr=ur&&_typeof$e(ur)==="object",hr=fr?"butt":Tt,pr=getCircleStyle(Vt,Xt,0,100,qt,$t,_t,wt,hr,ft),dr=useTransitionDuration(),yr=function(){var mr=0;return lr.map(function(Er,Tr){var Mr=cr[Tr]||cr[cr.length-1],Or=getCircleStyle(Vt,Xt,mr,Er,qt,$t,_t,Mr,hr,ft);return mr+=Er,reactExports.createElement(PtgCircle,{key:Tr,color:Mr,ptg:Er,radius:Wt,prefixCls:ct,gradientId:Ht,style:Or,strokeLinecap:hr,strokeWidth:ft,gapDegree:$t,ref:function(Cr){dr[Tr]=Cr},size:VIEW_BOX_SIZE})}).reverse()},Sr=function(){var mr=Math.round(Zt*(lr[0]/100)),Er=100/Zt,Tr=0;return new Array(Zt).fill(null).map(function(Mr,Or){var wr=Or<=mr-1?cr[0]:wt,Cr=wr&&_typeof$e(wr)==="object"?"url(#".concat(Ht,")"):void 0,Nr=getCircleStyle(Vt,Xt,Tr,Er,qt,$t,_t,wr,"butt",ft,er);return Tr+=(Xt-Nr.strokeDashoffset+er)*100/Xt,reactExports.createElement("circle",{key:Or,className:"".concat(ct,"-circle-path"),r:Wt,cx:kt,cy:kt,stroke:Cr,strokeWidth:ft,opacity:1,style:Nr,ref:function(Pr){dr[Or]=Pr}})})};return reactExports.createElement("svg",_extends$b({className:classNames("".concat(ct,"-circle"),It),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:Rt,id:st,role:"presentation"},Nt),!Zt&&reactExports.createElement("circle",{className:"".concat(ct,"-circle-trail"),r:Wt,cx:kt,cy:kt,stroke:wt,strokeLinecap:hr,strokeWidth:gt||ft,style:pr}),Zt?Sr():yr())};function validProgress(_e){return!_e||_e<0?0:_e>100?100:_e}function getSuccessPercent(_e){let{success:et,successPercent:rt}=_e,st=rt;return et&&"progress"in et&&(st=et.progress),et&&"percent"in et&&(st=et.percent),st}const getPercentage=_e=>{let{percent:et,success:rt,successPercent:st}=_e;const ct=validProgress(getSuccessPercent({success:rt,successPercent:st}));return[ct,validProgress(validProgress(et)-ct)]},getStrokeColor=_e=>{let{success:et={},strokeColor:rt}=_e;const{strokeColor:st}=et;return[st||presetPrimaryColors$5.green,rt||null]},getSize=(_e,et,rt)=>{var st,ct,ut,ft;let gt=-1,xt=-1;if(et==="step"){const $t=rt.steps,_t=rt.strokeWidth;typeof _e=="string"||typeof _e>"u"?(gt=_e==="small"?2:14,xt=_t??8):typeof _e=="number"?[gt,xt]=[_e,_e]:[gt=14,xt=8]=_e,gt*=$t}else if(et==="line"){const $t=rt==null?void 0:rt.strokeWidth;typeof _e=="string"||typeof _e>"u"?xt=$t||(_e==="small"?6:8):typeof _e=="number"?[gt,xt]=[_e,_e]:[gt=-1,xt=8]=_e}else(et==="circle"||et==="dashboard")&&(typeof _e=="string"||typeof _e>"u"?[gt,xt]=_e==="small"?[60,60]:[120,120]:typeof _e=="number"?[gt,xt]=[_e,_e]:(gt=(ct=(st=_e[0])!==null&&st!==void 0?st:_e[1])!==null&&ct!==void 0?ct:120,xt=(ft=(ut=_e[0])!==null&&ut!==void 0?ut:_e[1])!==null&&ft!==void 0?ft:120));return[gt,xt]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=_e=>CIRCLE_MIN_STROKE_WIDTH/_e*100,Circle=_e=>{const{prefixCls:et,trailColor:rt=null,strokeLinecap:st="round",gapPosition:ct,gapDegree:ut,width:ft=120,type:gt,children:xt,success:$t,size:_t=ft}=_e,[wt,Tt]=getSize(_t,"circle");let{strokeWidth:Rt}=_e;Rt===void 0&&(Rt=Math.max(getMinPercent(wt),6));const It={width:wt,height:Tt,fontSize:wt*.15+6},At=reactExports.useMemo(()=>{if(ut||ut===0)return ut;if(gt==="dashboard")return 75},[ut,gt]),jt=ct||gt==="dashboard"&&"bottom"||void 0,Nt=Object.prototype.toString.call(_e.strokeColor)==="[object Object]",kt=getStrokeColor({success:$t,strokeColor:_e.strokeColor}),Ft=classNames(`${et}-inner`,{[`${et}-circle-gradient`]:Nt}),Ht=reactExports.createElement(Circle$2,{percent:getPercentage(_e),strokeWidth:Rt,trailWidth:Rt,strokeColor:kt,strokeLinecap:st,trailColor:rt,prefixCls:et,gapDegree:At,gapPosition:jt});return reactExports.createElement("div",{className:Ft,style:It},wt<=20?reactExports.createElement(Tooltip$1,{title:xt},reactExports.createElement("span",null,Ht)):reactExports.createElement(reactExports.Fragment,null,Ht,xt))},Circle$1=Circle,LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=_e=>{const et=_e?"100%":"-100%";return new Keyframe(`antProgress${_e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${et}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${et}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$5=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:_e.fontSize,marginInlineEnd:_e.marginXS,marginBottom:_e.marginXS},[`${et}-outer`]:{display:"inline-block",width:"100%"},[`&${et}-show-info`]:{[`${et}-outer`]:{marginInlineEnd:`calc(-2em - ${unit$1(_e.marginXS)})`,paddingInlineEnd:`calc(2em + ${unit$1(_e.paddingXS)})`}},[`${et}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:_e.remainingColor,borderRadius:_e.lineBorderRadius},[`${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.defaultColor}},[`${et}-success-bg, ${et}-bg`]:{position:"relative",background:_e.defaultColor,borderRadius:_e.lineBorderRadius,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOutCirc}`},[`${et}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"}},[`${et}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:_e.colorSuccess},[`${et}-text`]:{display:"inline-block",width:"2em",marginInlineStart:_e.marginXS,color:_e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[rt]:{fontSize:_e.fontSize}},[`&${et}-status-active`]:{[`${et}-bg::before`]:{position:"absolute",inset:0,backgroundColor:_e.colorBgContainer,borderRadius:_e.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:_e.progressActiveMotionDuration,animationTimingFunction:_e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${et}-rtl${et}-status-active`]:{[`${et}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${et}-status-exception`]:{[`${et}-bg`]:{backgroundColor:_e.colorError},[`${et}-text`]:{color:_e.colorError}},[`&${et}-status-exception ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.colorError}},[`&${et}-status-success`]:{[`${et}-bg`]:{backgroundColor:_e.colorSuccess},[`${et}-text`]:{color:_e.colorSuccess}},[`&${et}-status-success ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:_e.colorSuccess}}})}},genCircleStyle=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:{[`${et}-circle-trail`]:{stroke:_e.remainingColor},[`&${et}-circle ${et}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${et}-circle ${et}-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%)",[rt]:{fontSize:_e.circleIconFontSize}},[`${et}-circle&-status-exception`]:{[`${et}-text`]:{color:_e.colorError}},[`${et}-circle&-status-success`]:{[`${et}-text`]:{color:_e.colorSuccess}}},[`${et}-inline-circle`]:{lineHeight:1,[`${et}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=_e=>{const{componentCls:et}=_e;return{[et]:{[`${et}-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}}}}}},genSmallLine=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[et]:{[`${et}-small&-line, ${et}-small&-line ${et}-text ${rt}`]:{fontSize:_e.fontSizeSM}}}},prepareComponentToken$8=_e=>({circleTextColor:_e.colorText,defaultColor:_e.colorInfo,remainingColor:_e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${_e.fontSize/_e.fontSizeSM}em`}),useStyle$q=genStyleHooks("Progress",_e=>{const et=_e.calc(_e.marginXXS).div(2).equal(),rt=merge$7(_e,{progressStepMarginInlineEnd:et,progressStepMinWidth:et,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$5(rt),genCircleStyle(rt),genStepStyle(rt),genSmallLine(rt)]},prepareComponentToken$8);var __rest$a=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{let et=[];return Object.keys(_e).forEach(rt=>{const st=parseFloat(rt.replace(/%/g,""));isNaN(st)||et.push({key:st,value:_e[rt]})}),et=et.sort((rt,st)=>rt.key-st.key),et.map(rt=>{let{key:st,value:ct}=rt;return`${ct} ${st}%`}).join(", ")},handleGradient=(_e,et)=>{const{from:rt=presetPrimaryColors$5.blue,to:st=presetPrimaryColors$5.blue,direction:ct=et==="rtl"?"to left":"to right"}=_e,ut=__rest$a(_e,["from","to","direction"]);if(Object.keys(ut).length!==0){const gt=sortGradient(ut),xt=`linear-gradient(${ct}, ${gt})`;return{background:xt,[LineStrokeColorVar]:xt}}const ft=`linear-gradient(${ct}, ${rt}, ${st})`;return{background:ft,[LineStrokeColorVar]:ft}},Line=_e=>{const{prefixCls:et,direction:rt,percent:st,size:ct,strokeWidth:ut,strokeColor:ft,strokeLinecap:gt="round",children:xt,trailColor:$t=null,success:_t}=_e,wt=ft&&typeof ft!="string"?handleGradient(ft,rt):{[LineStrokeColorVar]:ft,background:ft},Tt=gt==="square"||gt==="butt"?0:void 0,Rt=ct??[-1,ut||(ct==="small"?6:8)],[It,At]=getSize(Rt,"line",{strokeWidth:ut}),jt={backgroundColor:$t||void 0,borderRadius:Tt},Nt=Object.assign(Object.assign({width:`${validProgress(st)}%`,height:At,borderRadius:Tt},wt),{[Percent]:validProgress(st)/100}),kt=getSuccessPercent(_e),Ft={width:`${validProgress(kt)}%`,height:At,borderRadius:Tt,backgroundColor:_t==null?void 0:_t.strokeColor},Ht={width:It<0?"100%":It,height:At};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:`${et}-outer`,style:Ht},reactExports.createElement("div",{className:`${et}-inner`,style:jt},reactExports.createElement("div",{className:`${et}-bg`,style:Nt}),kt!==void 0?reactExports.createElement("div",{className:`${et}-success-bg`,style:Ft}):null)),xt)},Line$1=Line,Steps$1=_e=>{const{size:et,steps:rt,percent:st=0,strokeWidth:ct=8,strokeColor:ut,trailColor:ft=null,prefixCls:gt,children:xt}=_e,$t=Math.round(rt*(st/100)),wt=et??[et==="small"?2:14,ct],[Tt,Rt]=getSize(wt,"step",{steps:rt,strokeWidth:ct}),It=Tt/rt,At=new Array(rt);for(let jt=0;jt{const{prefixCls:rt,className:st,rootClassName:ct,steps:ut,strokeColor:ft,percent:gt=0,size:xt="default",showInfo:$t=!0,type:_t="line",status:wt,format:Tt,style:Rt}=_e,It=__rest$9(_e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),At=reactExports.useMemo(()=>{var cr,ur;const fr=getSuccessPercent(_e);return parseInt(fr!==void 0?(cr=fr??0)===null||cr===void 0?void 0:cr.toString():(ur=gt??0)===null||ur===void 0?void 0:ur.toString(),10)},[gt,_e.success,_e.successPercent]),jt=reactExports.useMemo(()=>!ProgressStatuses.includes(wt)&&At>=100?"success":wt||"normal",[wt,At]),{getPrefixCls:Nt,direction:kt,progress:Ft}=reactExports.useContext(ConfigContext$1),Ht=Nt("progress",rt),[Wt,Vt,qt]=useStyle$q(Ht),Xt=reactExports.useMemo(()=>{if(!$t)return null;const cr=getSuccessPercent(_e);let ur;const fr=Tt||(pr=>`${pr}%`),hr=_t==="line";return Tt||jt!=="exception"&&jt!=="success"?ur=fr(validProgress(gt),validProgress(cr)):jt==="exception"?ur=hr?reactExports.createElement(CloseCircleFilled$3,null):reactExports.createElement(CloseOutlined$1,null):jt==="success"&&(ur=hr?reactExports.createElement(CheckCircleFilled$1,null):reactExports.createElement(CheckOutlined$1,null)),reactExports.createElement("span",{className:`${Ht}-text`,title:typeof ur=="string"?ur:void 0},ur)},[$t,gt,At,jt,_t,Ht,Tt]),Gt=Array.isArray(ft)?ft[0]:ft,Zt=typeof ft=="string"||Array.isArray(ft)?ft:void 0;let er;_t==="line"?er=ut?reactExports.createElement(Steps$2,Object.assign({},_e,{strokeColor:Zt,prefixCls:Ht,steps:ut}),Xt):reactExports.createElement(Line$1,Object.assign({},_e,{strokeColor:Gt,prefixCls:Ht,direction:kt}),Xt):(_t==="circle"||_t==="dashboard")&&(er=reactExports.createElement(Circle$1,Object.assign({},_e,{strokeColor:Gt,prefixCls:Ht,progressStatus:jt}),Xt));const lr=classNames(Ht,`${Ht}-status-${jt}`,`${Ht}-${_t==="dashboard"&&"circle"||ut&&"steps"||_t}`,{[`${Ht}-inline-circle`]:_t==="circle"&&getSize(xt,"circle")[0]<=20,[`${Ht}-show-info`]:$t,[`${Ht}-${xt}`]:typeof xt=="string",[`${Ht}-rtl`]:kt==="rtl"},Ft==null?void 0:Ft.className,st,ct,Vt,qt);return Wt(reactExports.createElement("div",Object.assign({ref:et,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Rt),className:lr,role:"progressbar","aria-valuenow":At},omit$2(It,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),er))}),Progress$1=Progress;var ReloadOutlined$2={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"};const ReloadOutlinedSvg=ReloadOutlined$2;var ReloadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:ReloadOutlinedSvg}))};const ReloadOutlined$1=reactExports.forwardRef(ReloadOutlined);var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(_e,et,rt)=>et in _e?__defProp(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:rt}):_e[et]=rt,__spreadValues=(_e,et)=>{for(var rt in et||(et={}))__hasOwnProp.call(et,rt)&&__defNormalProp(_e,rt,et[rt]);if(__getOwnPropSymbols)for(var rt of __getOwnPropSymbols(et))__propIsEnum.call(et,rt)&&__defNormalProp(_e,rt,et[rt]);return _e},__objRest=(_e,et)=>{var rt={};for(var st in _e)__hasOwnProp.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&__getOwnPropSymbols)for(var st of __getOwnPropSymbols(_e))et.indexOf(st)<0&&__propIsEnum.call(_e,st)&&(rt[st]=_e[st]);return rt};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT @@ -364,7 +379,7 @@ html body { * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var ERROR_LEVEL_MAP={L:qrcodegen_default.QrCode.Ecc.LOW,M:qrcodegen_default.QrCode.Ecc.MEDIUM,Q:qrcodegen_default.QrCode.Ecc.QUARTILE,H:qrcodegen_default.QrCode.Ecc.HIGH},DEFAULT_SIZE=128,DEFAULT_LEVEL="L",DEFAULT_BGCOLOR="#FFFFFF",DEFAULT_FGCOLOR="#000000",DEFAULT_INCLUDEMARGIN=!1,MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1;function generatePath(_e,et=0){const rt=[];return _e.forEach(function(st,ct){let ut=null;st.forEach(function(ft,gt){if(!ft&&ut!==null){rt.push(`M${ut+et} ${ct+et}h${gt-ut}v1H${ut+et}z`),ut=null;return}if(gt===st.length-1){if(!ft)return;ut===null?rt.push(`M${gt+et},${ct+et} h1v1H${gt+et}z`):rt.push(`M${ut+et},${ct+et} h${gt+1-ut}v1H${ut+et}z`);return}ft&&ut===null&&(ut=gt)})}),rt.join("")}function excavateModules(_e,et){return _e.slice().map((rt,st)=>st=et.y+et.h?rt:rt.map((ct,ut)=>ut=et.x+et.w?ct:!1))}function getImageSettings(_e,et,rt,st){if(st==null)return null;const ct=rt?MARGIN_SIZE:0,ut=_e.length+ct*2,ft=Math.floor(et*DEFAULT_IMG_SCALE),gt=ut/et,xt=(st.width||ft)*gt,$t=(st.height||ft)*gt,_t=st.x==null?_e.length/2-xt/2:st.x*gt,wt=st.y==null?_e.length/2-$t/2:st.y*gt;let Tt=null;if(st.excavate){let Rt=Math.floor(_t),It=Math.floor(wt),At=Math.ceil(xt+_t-Rt),jt=Math.ceil($t+wt-It);Tt={x:Rt,y:It,w:At,h:jt}}return{x:_t,y:wt,h:$t,w:xt,excavation:Tt}}var SUPPORTS_PATH2D=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QRCodeCanvas(_e){const et=_e,{value:rt,size:st=DEFAULT_SIZE,level:ct=DEFAULT_LEVEL,bgColor:ut=DEFAULT_BGCOLOR,fgColor:ft=DEFAULT_FGCOLOR,includeMargin:gt=DEFAULT_INCLUDEMARGIN,style:xt,imageSettings:$t}=et,_t=__objRest(et,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),wt=$t==null?void 0:$t.src,Tt=reactExports.useRef(null),Rt=reactExports.useRef(null),[It,At]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Tt.current!=null){const kt=Tt.current,Ft=kt.getContext("2d");if(!Ft)return;let Ht=qrcodegen_default.QrCode.encodeText(rt,ERROR_LEVEL_MAP[ct]).getModules();const Wt=gt?MARGIN_SIZE:0,Vt=Ht.length+Wt*2,qt=getImageSettings(Ht,st,gt,$t),Gt=Rt.current,Xt=qt!=null&&Gt!==null&&Gt.complete&&Gt.naturalHeight!==0&&Gt.naturalWidth!==0;Xt&&qt.excavation!=null&&(Ht=excavateModules(Ht,qt.excavation));const Zt=window.devicePixelRatio||1;kt.height=kt.width=st*Zt;const lr=st/Vt*Zt;Ft.scale(lr,lr),Ft.fillStyle=ut,Ft.fillRect(0,0,Vt,Vt),Ft.fillStyle=ft,SUPPORTS_PATH2D?Ft.fill(new Path2D(generatePath(Ht,Wt))):Ht.forEach(function(er,cr){er.forEach(function(ur,pr){ur&&Ft.fillRect(pr+Wt,cr+Wt,1,1)})}),Xt&&Ft.drawImage(Gt,qt.x+Wt,qt.y+Wt,qt.w,qt.h)}}),reactExports.useEffect(()=>{At(!1)},[wt]);const jt=__spreadValues({height:st,width:st},xt);let Nt=null;return wt!=null&&(Nt=React$1.createElement("img",{src:wt,key:wt,style:{display:"none"},onLoad:()=>{At(!0)},ref:Rt})),React$1.createElement(React$1.Fragment,null,React$1.createElement("canvas",__spreadValues({style:jt,height:st,width:st,ref:Tt},_t)),Nt)}function QRCodeSVG(_e){const et=_e,{value:rt,size:st=DEFAULT_SIZE,level:ct=DEFAULT_LEVEL,bgColor:ut=DEFAULT_BGCOLOR,fgColor:ft=DEFAULT_FGCOLOR,includeMargin:gt=DEFAULT_INCLUDEMARGIN,imageSettings:xt}=et,$t=__objRest(et,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let _t=qrcodegen_default.QrCode.encodeText(rt,ERROR_LEVEL_MAP[ct]).getModules();const wt=gt?MARGIN_SIZE:0,Tt=_t.length+wt*2,Rt=getImageSettings(_t,st,gt,xt);let It=null;xt!=null&&Rt!=null&&(Rt.excavation!=null&&(_t=excavateModules(_t,Rt.excavation)),It=React$1.createElement("image",{xlinkHref:xt.src,height:Rt.h,width:Rt.w,x:Rt.x+wt,y:Rt.y+wt,preserveAspectRatio:"none"}));const At=generatePath(_t,wt);return React$1.createElement("svg",__spreadValues({height:st,width:st,viewBox:`0 0 ${Tt} ${Tt}`},$t),React$1.createElement("path",{fill:ut,d:`M0,0 h${Tt}v${Tt}H0z`,shapeRendering:"crispEdges"}),React$1.createElement("path",{fill:ft,d:At,shapeRendering:"crispEdges"}),It)}const genQRCodeStyle=_e=>{const{componentCls:et,lineWidth:rt,lineType:st,colorSplit:ct}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:_e.paddingSM,backgroundColor:_e.colorWhite,borderRadius:_e.borderRadiusLG,border:`${unit$1(rt)} ${st} ${ct}`,position:"relative",overflow:"hidden",[`& > ${et}-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",[`& > ${et}-expired, & > ${et}-scanned`]:{color:_e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:_e.marginXS,fontSize:_e.controlHeight}}),[`${et}-borderless`]:{borderColor:"transparent"}}},prepareComponentToken$7=_e=>({QRCodeMaskBackgroundColor:new TinyColor(_e.colorBgContainer).setAlpha(.96).toRgbString()}),useStyle$p=genStyleHooks("QRCode",_e=>{const et=merge$7(_e,{QRCodeTextColor:_e.colorText});return genQRCodeStyle(et)},prepareComponentToken$7),QRCode=_e=>{const[,et]=useToken$4(),{value:rt,type:st="canvas",icon:ct="",size:ut=160,iconSize:ft=40,color:gt=et.colorText,errorLevel:xt="M",status:$t="active",bordered:_t=!0,onRefresh:wt,style:Tt,className:Rt,rootClassName:It,prefixCls:At,bgColor:jt="transparent"}=_e,{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),kt=Nt("qrcode",At),[Ft,Ht,Wt]=useStyle$p(kt),qt={value:rt,size:ut,level:xt,bgColor:jt,fgColor:gt,style:{width:void 0,height:void 0},imageSettings:ct?{src:ct,x:void 0,y:void 0,height:ft,width:ft,excavate:!0}:void 0},[Gt]=useLocale$3("QRCode");if(!rt)return null;const Xt=classNames(kt,Rt,It,Ht,Wt,{[`${kt}-borderless`]:!_t});return Ft(React$1.createElement("div",{className:Xt,style:Object.assign(Object.assign({},Tt),{width:ut,height:ut,backgroundColor:jt})},$t!=="active"&&React$1.createElement("div",{className:`${kt}-mask`},$t==="loading"&&React$1.createElement(Spin$1,null),$t==="expired"&&React$1.createElement(React$1.Fragment,null,React$1.createElement("p",{className:`${kt}-expired`},Gt==null?void 0:Gt.expired),wt&&React$1.createElement(Button$3,{type:"link",icon:React$1.createElement(ReloadOutlined$1,null),onClick:wt},Gt==null?void 0:Gt.refresh)),$t==="scanned"&&React$1.createElement("p",{className:`${kt}-scanned`},Gt==null?void 0:Gt.scanned)),st==="canvas"?React$1.createElement(QRCodeCanvas,Object.assign({},qt)):React$1.createElement(QRCodeSVG,Object.assign({},qt))))},QRCode$1=QRCode;var StarFilled$2={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"};const StarFilledSvg=StarFilled$2;var StarFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:StarFilledSvg}))};const StarFilled$1=reactExports.forwardRef(StarFilled);function Star(_e,et){var rt=_e.disabled,st=_e.prefixCls,ct=_e.character,ut=_e.characterRender,ft=_e.index,gt=_e.count,xt=_e.value,$t=_e.allowHalf,_t=_e.focused,wt=_e.onHover,Tt=_e.onClick,Rt=function(Wt){wt(Wt,ft)},It=function(Wt){Tt(Wt,ft)},At=function(Wt){Wt.keyCode===KeyCode.ENTER&&Tt(Wt,ft)},jt=ft+1,Nt=new Set([st]);xt===0&&ft===0&&_t?Nt.add("".concat(st,"-focused")):$t&&xt+.5>=jt&&xtft?"true":"false","aria-posinset":ft+1,"aria-setsize":gt,tabIndex:rt?-1:0},React$1.createElement("div",{className:"".concat(st,"-first")},kt),React$1.createElement("div",{className:"".concat(st,"-second")},kt)));return ut&&(Ft=ut(Ft,_e)),Ft}const Star$1=React$1.forwardRef(Star);function useRefs(){var _e=reactExports.useRef({});function et(st){return _e.current[st]}function rt(st){return function(ct){_e.current[st]=ct}}return[et,rt]}function getScroll(_e){var et=_e.pageXOffset,rt="scrollLeft";if(typeof et!="number"){var st=_e.document;et=st.documentElement[rt],typeof et!="number"&&(et=st.body[rt])}return et}function getClientPosition(_e){var et,rt,st=_e.ownerDocument,ct=st.body,ut=st&&st.documentElement,ft=_e.getBoundingClientRect();return et=ft.left,rt=ft.top,et-=ut.clientLeft||ct.clientLeft||0,rt-=ut.clientTop||ct.clientTop||0,{left:et,top:rt}}function getOffsetLeft(_e){var et=getClientPosition(_e),rt=_e.ownerDocument,st=rt.defaultView||rt.parentWindow;return et.left+=getScroll(st),et.left}var _excluded$Z=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Rate$2(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-rate":st,ut=_e.className,ft=_e.defaultValue,gt=_e.value,xt=_e.count,$t=xt===void 0?5:xt,_t=_e.allowHalf,wt=_t===void 0?!1:_t,Tt=_e.allowClear,Rt=Tt===void 0?!0:Tt,It=_e.character,At=It===void 0?"★":It,jt=_e.characterRender,Nt=_e.disabled,kt=_e.direction,Ft=kt===void 0?"ltr":kt,Ht=_e.tabIndex,Wt=Ht===void 0?0:Ht,Vt=_e.autoFocus,qt=_e.onHoverChange,Gt=_e.onChange,Xt=_e.onFocus,Zt=_e.onBlur,lr=_e.onKeyDown,er=_e.onMouseLeave,cr=_objectWithoutProperties$2(_e,_excluded$Z),ur=useRefs(),pr=_slicedToArray$3(ur,2),hr=pr[0],fr=pr[1],dr=React$1.useRef(null),yr=function(){if(!Nt){var gr;(gr=dr.current)===null||gr===void 0||gr.focus()}};React$1.useImperativeHandle(et,function(){return{focus:yr,blur:function(){if(!Nt){var gr;(gr=dr.current)===null||gr===void 0||gr.blur()}}}});var $r=useMergedState(ft||0,{value:gt}),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=useMergedState(null),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1],Cr=function(gr,br){var Hr=Ft==="rtl",Vr=gr+1;if(wt){var Wr=hr(gr),Gr=getOffsetLeft(Wr),cn=Wr.clientWidth;(Hr&&br-Gr>cn/2||!Hr&&br-Gr0&&!Hr||br===KeyCode.RIGHT&&Vr>0&&Hr?(wt?Vr-=.5:Vr-=1,Nr(Vr),gr.preventDefault()):br===KeyCode.LEFT&&Vr<$t&&Hr&&(wt?Vr+=.5:Vr+=1,Nr(Vr),gr.preventDefault()),lr==null||lr(gr)};React$1.useEffect(function(){Vt&&!Nt&&yr()},[]);var Zr=new Array($t).fill(0).map(function(vr,gr){return React$1.createElement(Star$1,{ref:fr(gr),index:gr,count:$t,disabled:Nt,prefixCls:"".concat(ct,"-star"),allowHalf:wt,value:Xr===null?mr:Xr,onClick:pn,onHover:zr,key:vr||gr,character:At,characterRender:jt,focused:Mr})}),vn=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-disabled"),Nt),_defineProperty$c(rt,"".concat(ct,"-rtl"),Ft==="rtl"),rt));return React$1.createElement("ul",_extends$b({className:vn,onMouseLeave:qr,tabIndex:Nt?-1:Wt,onFocus:Nt?null:Fr,onBlur:Nt?null:wr,onKeyDown:Nt?null:Qr,ref:dr,role:"radiogroup"},pickAttrs(cr,{aria:!0,data:!0,attr:!0})),Zr)}const Rate$3=React$1.forwardRef(Rate$2),genRateStarStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-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:`${unit$1(_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 ${et}-star-first, &-half ${et}-star-second`]:{opacity:1},[`&-half ${et}-star-first, &-full ${et}-star-second`]:{color:"inherit"}}}},genRateRtlStyle=_e=>({[`&-rtl${_e.componentCls}`]:{direction:"rtl"}}),genRateStyle=_e=>{const{componentCls:et}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",margin:0,padding:0,color:_e.starColor,fontSize:_e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${et} ${et}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),genRateStarStyle(_e)),genRateRtlStyle(_e))}},prepareComponentToken$6=_e=>({starColor:_e.yellow6,starSize:_e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:_e.colorFillContent}),useStyle$o=genStyleHooks("Rate",_e=>{const et=merge$7(_e,{});return[genRateStyle(et)]},prepareComponentToken$6);var __rest$8=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,className:st,rootClassName:ct,style:ut,tooltips:ft,character:gt=reactExports.createElement(StarFilled$1,null)}=_e,xt=__rest$8(_e,["prefixCls","className","rootClassName","style","tooltips","character"]),$t=(kt,Ft)=>{let{index:Ht}=Ft;return ft?reactExports.createElement(Tooltip$1,{title:ft[Ht]},kt):kt},{getPrefixCls:_t,direction:wt,rate:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("rate",rt),[It,At,jt]=useStyle$o(Rt),Nt=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),ut);return It(reactExports.createElement(Rate$3,Object.assign({ref:et,character:gt,characterRender:$t},xt,{className:classNames(st,ct,At,jt,Tt==null?void 0:Tt.className),style:Nt,prefixCls:Rt,direction:wt})))}),Rate$1=Rate;var WarningFilled$2={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"};const WarningFilledSvg=WarningFilled$2;var WarningFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:WarningFilledSvg}))};const WarningFilled$1=reactExports.forwardRef(WarningFilled),NoFound=()=>reactExports.createElement("svg",{width:"252",height:"294"},reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .012)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.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)"})),reactExports.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"}),reactExports.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),reactExports.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),reactExports.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"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),noFound=NoFound,ServerError=()=>reactExports.createElement("svg",{width:"254",height:"294"},reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),reactExports.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .067)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.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)"})),reactExports.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"}),reactExports.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),reactExports.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}))),serverError=ServerError,genBaseStyle$4=_e=>{const{componentCls:et,lineHeightHeading3:rt,iconCls:st,padding:ct,paddingXL:ut,paddingXS:ft,paddingLG:gt,marginXS:xt,lineHeight:$t}=_e;return{[et]:{padding:`${unit$1(_e.calc(gt).mul(2).equal())} ${unit$1(ut)}`,"&-rtl":{direction:"rtl"}},[`${et} ${et}-image`]:{width:_e.imageWidth,height:_e.imageHeight,margin:"auto"},[`${et} ${et}-icon`]:{marginBottom:gt,textAlign:"center",[`& > ${st}`]:{fontSize:_e.iconFontSize}},[`${et} ${et}-title`]:{color:_e.colorTextHeading,fontSize:_e.titleFontSize,lineHeight:rt,marginBlock:xt,textAlign:"center"},[`${et} ${et}-subtitle`]:{color:_e.colorTextDescription,fontSize:_e.subtitleFontSize,lineHeight:$t,textAlign:"center"},[`${et} ${et}-content`]:{marginTop:gt,padding:`${unit$1(gt)} ${unit$1(_e.calc(ct).mul(2.5).equal())}`,backgroundColor:_e.colorFillAlter},[`${et} ${et}-extra`]:{margin:_e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ft,"&:last-child":{marginInlineEnd:0}}}}},genStatusIconStyle=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[`${et}-success ${et}-icon > ${rt}`]:{color:_e.resultSuccessIconColor},[`${et}-error ${et}-icon > ${rt}`]:{color:_e.resultErrorIconColor},[`${et}-info ${et}-icon > ${rt}`]:{color:_e.resultInfoIconColor},[`${et}-warning ${et}-icon > ${rt}`]:{color:_e.resultWarningIconColor}}},genResultStyle=_e=>[genBaseStyle$4(_e),genStatusIconStyle(_e)],getStyle=_e=>genResultStyle(_e),prepareComponentToken$5=_e=>({titleFontSize:_e.fontSizeHeading3,subtitleFontSize:_e.fontSize,iconFontSize:_e.fontSizeHeading3*3,extraMargin:`${_e.paddingLG}px 0 0 0`}),useStyle$n=genStyleHooks("Result",_e=>{const et=_e.colorInfo,rt=_e.colorError,st=_e.colorSuccess,ct=_e.colorWarning,ut=merge$7(_e,{resultInfoIconColor:et,resultErrorIconColor:rt,resultSuccessIconColor:st,resultWarningIconColor:ct,imageWidth:250,imageHeight:295});return[getStyle(ut)]},prepareComponentToken$5),Unauthorized=()=>reactExports.createElement("svg",{width:"251",height:"294"},reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}))),unauthorized=Unauthorized,IconMap={success:CheckCircleFilled$1,error:CloseCircleFilled$3,info:ExclamationCircleFilled$1,warning:WarningFilled$1},ExceptionMap={404:noFound,500:serverError,403:unauthorized},ExceptionStatus=Object.keys(ExceptionMap),Icon$8=_e=>{let{prefixCls:et,icon:rt,status:st}=_e;const ct=classNames(`${et}-icon`);if(ExceptionStatus.includes(`${st}`)){const ft=ExceptionMap[st];return reactExports.createElement("div",{className:`${ct} ${et}-image`},reactExports.createElement(ft,null))}const ut=reactExports.createElement(IconMap[st]);return rt===null||rt===!1?null:reactExports.createElement("div",{className:ct},rt||ut)},Extra=_e=>{let{prefixCls:et,extra:rt}=_e;return rt?reactExports.createElement("div",{className:`${et}-extra`},rt):null},Result=_e=>{let{prefixCls:et,className:rt,rootClassName:st,subTitle:ct,title:ut,style:ft,children:gt,status:xt="info",icon:$t,extra:_t}=_e;const{getPrefixCls:wt,direction:Tt,result:Rt}=reactExports.useContext(ConfigContext$1),It=wt("result",et),[At,jt,Nt]=useStyle$n(It),kt=classNames(It,`${It}-${xt}`,rt,Rt==null?void 0:Rt.className,st,{[`${It}-rtl`]:Tt==="rtl"},jt,Nt),Ft=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ft);return At(reactExports.createElement("div",{className:kt,style:Ft},reactExports.createElement(Icon$8,{prefixCls:It,status:xt,icon:$t}),reactExports.createElement("div",{className:`${It}-title`},ut),ct&&reactExports.createElement("div",{className:`${It}-subtitle`},ct),reactExports.createElement(Extra,{prefixCls:It,extra:_t}),gt&&reactExports.createElement("div",{className:`${It}-content`},gt)))};Result.PRESENTED_IMAGE_403=ExceptionMap[403];Result.PRESENTED_IMAGE_404=ExceptionMap[404];Result.PRESENTED_IMAGE_500=ExceptionMap[500];const Result$1=Result;var calcThumbStyle=function(et){return et?{left:et.offsetLeft,right:et.parentElement.clientWidth-et.clientWidth-et.offsetLeft,width:et.clientWidth}:null},toPX=function(et){return et!==void 0?"".concat(et,"px"):void 0};function MotionThumb(_e){var et=_e.prefixCls,rt=_e.containerRef,st=_e.value,ct=_e.getValueIndex,ut=_e.motionName,ft=_e.onMotionStart,gt=_e.onMotionEnd,xt=_e.direction,$t=reactExports.useRef(null),_t=reactExports.useState(st),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=function(cr){var ur,pr=ct(cr),hr=(ur=rt.current)===null||ur===void 0?void 0:ur.querySelectorAll(".".concat(et,"-item"))[pr];return(hr==null?void 0:hr.offsetParent)&&hr},At=reactExports.useState(null),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useState(null),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1];useLayoutEffect$3(function(){if(Tt!==st){var er=It(Tt),cr=It(st),ur=calcThumbStyle(er),pr=calcThumbStyle(cr);Rt(st),kt(ur),Vt(pr),er&&cr?ft():gt()}},[st]);var qt=reactExports.useMemo(function(){return toPX(xt==="rtl"?-(Nt==null?void 0:Nt.right):Nt==null?void 0:Nt.left)},[xt,Nt]),Gt=reactExports.useMemo(function(){return toPX(xt==="rtl"?-(Wt==null?void 0:Wt.right):Wt==null?void 0:Wt.left)},[xt,Wt]),Xt=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Zt=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},lr=function(){kt(null),Vt(null),gt()};return!Nt||!Wt?null:reactExports.createElement(CSSMotion,{visible:!0,motionName:ut,motionAppear:!0,onAppearStart:Xt,onAppearActive:Zt,onVisibleChanged:lr},function(er,cr){var ur=er.className,pr=er.style,hr=_objectSpread2(_objectSpread2({},pr),{},{"--thumb-start-left":qt,"--thumb-start-width":toPX(Nt==null?void 0:Nt.width),"--thumb-active-left":Gt,"--thumb-active-width":toPX(Wt==null?void 0:Wt.width)}),fr={ref:composeRef($t,cr),style:hr,className:classNames("".concat(et,"-thumb"),ur)};return reactExports.createElement("div",fr)})}var _excluded$Y=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function getValidTitle(_e){if(typeof _e.title<"u")return _e.title;if(_typeof$e(_e.label)!=="object"){var et;return(et=_e.label)===null||et===void 0?void 0:et.toString()}}function normalizeOptions(_e){return _e.map(function(et){if(_typeof$e(et)==="object"&&et!==null){var rt=getValidTitle(et);return _objectSpread2(_objectSpread2({},et),{},{title:rt})}return{label:et==null?void 0:et.toString(),title:et==null?void 0:et.toString(),value:et}})}var InternalSegmentedOption=function(et){var rt=et.prefixCls,st=et.className,ct=et.disabled,ut=et.checked,ft=et.label,gt=et.title,xt=et.value,$t=et.onChange,_t=function(Tt){ct||$t(Tt,xt)};return reactExports.createElement("label",{className:classNames(st,_defineProperty$c({},"".concat(rt,"-item-disabled"),ct))},reactExports.createElement("input",{className:"".concat(rt,"-item-input"),type:"radio",disabled:ct,checked:ut,onChange:_t}),reactExports.createElement("div",{className:"".concat(rt,"-item-label"),title:gt},ft))},Segmented$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.prefixCls,ut=ct===void 0?"rc-segmented":ct,ft=_e.direction,gt=_e.options,xt=gt===void 0?[]:gt,$t=_e.disabled,_t=_e.defaultValue,wt=_e.value,Tt=_e.onChange,Rt=_e.className,It=Rt===void 0?"":Rt,At=_e.motionName,jt=At===void 0?"thumb-motion":At,Nt=_objectWithoutProperties$2(_e,_excluded$Y),kt=reactExports.useRef(null),Ft=reactExports.useMemo(function(){return composeRef(kt,et)},[kt,et]),Ht=reactExports.useMemo(function(){return normalizeOptions(xt)},[xt]),Wt=useMergedState((rt=Ht[0])===null||rt===void 0?void 0:rt.value,{value:wt,defaultValue:_t}),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Gt=Vt[1],Xt=reactExports.useState(!1),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=function(hr,fr){$t||(Gt(fr),Tt==null||Tt(fr))},ur=omit$2(Nt,["children"]);return reactExports.createElement("div",_extends$b({},ur,{className:classNames(ut,(st={},_defineProperty$c(st,"".concat(ut,"-rtl"),ft==="rtl"),_defineProperty$c(st,"".concat(ut,"-disabled"),$t),st),It),ref:Ft}),reactExports.createElement("div",{className:"".concat(ut,"-group")},reactExports.createElement(MotionThumb,{prefixCls:ut,value:qt,containerRef:kt,motionName:"".concat(ut,"-").concat(jt),direction:ft,getValueIndex:function(hr){return Ht.findIndex(function(fr){return fr.value===hr})},onMotionStart:function(){er(!0)},onMotionEnd:function(){er(!1)}}),Ht.map(function(pr){return reactExports.createElement(InternalSegmentedOption,_extends$b({},pr,{key:pr.value,prefixCls:ut,className:classNames(pr.className,"".concat(ut,"-item"),_defineProperty$c({},"".concat(ut,"-item-selected"),pr.value===qt&&!lr)),checked:pr.value===qt,onChange:cr,disabled:!!$t||!!pr.disabled}))})))}),TypedSegmented=Segmented$2;function getItemDisabledStyle(_e,et){return{[`${_e}, ${_e}:hover, ${_e}:focus`]:{color:et.colorTextDisabled,cursor:"not-allowed"}}}function getItemSelectedStyle(_e){return{backgroundColor:_e.itemSelectedBg,boxShadow:_e.boxShadowTertiary}}const segmentedTextEllipsisCss=Object.assign({overflow:"hidden"},textEllipsis),genSegmentedStyle=_e=>{const{componentCls:et}=_e,rt=_e.calc(_e.controlHeight).sub(_e.calc(_e.trackPadding).mul(2)).equal(),st=_e.calc(_e.controlHeightLG).sub(_e.calc(_e.trackPadding).mul(2)).equal(),ct=_e.calc(_e.controlHeightSM).sub(_e.calc(_e.trackPadding).mul(2)).equal();return{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",padding:_e.trackPadding,color:_e.itemColor,background:_e.trackBg,borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,[`${et}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${et}-rtl`]:{direction:"rtl"},[`&${et}-block`]:{display:"flex"},[`&${et}-block ${et}-item`]:{flex:1,minWidth:0},[`${et}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${_e.motionDurationMid} ${_e.motionEaseInOut}`,borderRadius:_e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},getItemSelectedStyle(_e)),{color:_e.itemSelectedColor}),"&::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(${et}-item-selected):not(${et}-item-disabled)`]:{color:_e.itemHoverColor,"&::after":{backgroundColor:_e.itemHoverBg}},[`&:active:not(${et}-item-selected):not(${et}-item-disabled)`]:{color:_e.itemHoverColor,"&::after":{backgroundColor:_e.itemActiveBg}},"&-label":Object.assign({minHeight:rt,lineHeight:unit$1(rt),padding:`0 ${unit$1(_e.segmentedPaddingHorizontal)}`},segmentedTextEllipsisCss),"&-icon + *":{marginInlineStart:_e.calc(_e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${et}-thumb`]:Object.assign(Object.assign({},getItemSelectedStyle(_e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit$1(_e.paddingXXS)} 0`,borderRadius:_e.borderRadiusSM,[`& ~ ${et}-item:not(${et}-item-selected):not(${et}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${et}-lg`]:{borderRadius:_e.borderRadiusLG,[`${et}-item-label`]:{minHeight:st,lineHeight:unit$1(st),padding:`0 ${unit$1(_e.segmentedPaddingHorizontal)}`,fontSize:_e.fontSizeLG},[`${et}-item, ${et}-thumb`]:{borderRadius:_e.borderRadius}},[`&${et}-sm`]:{borderRadius:_e.borderRadiusSM,[`${et}-item-label`]:{minHeight:ct,lineHeight:unit$1(ct),padding:`0 ${unit$1(_e.segmentedPaddingHorizontalSM)}`},[`${et}-item, ${et}-thumb`]:{borderRadius:_e.borderRadiusXS}}}),getItemDisabledStyle(`&-disabled ${et}-item`,_e)),getItemDisabledStyle(`${et}-item-disabled`,_e)),{[`${et}-thumb-motion-appear-active`]:{transition:`transform ${_e.motionDurationSlow} ${_e.motionEaseInOut}, width ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,willChange:"transform, width"}})}},prepareComponentToken$4=_e=>{const{colorTextLabel:et,colorText:rt,colorFillSecondary:st,colorBgElevated:ct,colorFill:ut,lineWidthBold:ft,colorBgLayout:gt}=_e;return{trackPadding:ft,trackBg:gt,itemColor:et,itemHoverColor:rt,itemHoverBg:st,itemSelectedBg:ct,itemActiveBg:ut,itemSelectedColor:rt}},useStyle$m=genStyleHooks("Segmented",_e=>{const{lineWidth:et,calc:rt}=_e,st=merge$7(_e,{segmentedPaddingHorizontal:rt(_e.controlPaddingHorizontal).sub(et).equal(),segmentedPaddingHorizontalSM:rt(_e.controlPaddingHorizontalSM).sub(et).equal()});return[genSegmentedStyle(st)]},prepareComponentToken$4);var __rest$7=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,className:st,rootClassName:ct,block:ut,options:ft=[],size:gt="middle",style:xt}=_e,$t=__rest$7(_e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:_t,direction:wt,segmented:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("segmented",rt),[It,At,jt]=useStyle$m(Rt),Nt=useSize(gt),kt=reactExports.useMemo(()=>ft.map(Wt=>{if(isSegmentedLabeledOptionWithIcon(Wt)){const{icon:Vt,label:qt}=Wt,Gt=__rest$7(Wt,["icon","label"]);return Object.assign(Object.assign({},Gt),{label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:`${Rt}-item-icon`},Vt),qt&&reactExports.createElement("span",null,qt))})}return Wt}),[ft,Rt]),Ft=classNames(st,ct,Tt==null?void 0:Tt.className,{[`${Rt}-block`]:ut,[`${Rt}-sm`]:Nt==="small",[`${Rt}-lg`]:Nt==="large"},At,jt),Ht=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),xt);return It(reactExports.createElement(TypedSegmented,Object.assign({},$t,{className:Ft,style:Ht,options:kt,ref:et,prefixCls:Rt,direction:wt})))}),Segmented=InternalSegmented,Segmented$1=Segmented;var SliderContext=reactExports.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function getOffset(_e,et,rt){return(_e-et)/(rt-et)}function getDirectionStyle(_e,et,rt,st){var ct=getOffset(et,rt,st),ut={};switch(_e){case"rtl":ut.right="".concat(ct*100,"%"),ut.transform="translateX(50%)";break;case"btt":ut.bottom="".concat(ct*100,"%"),ut.transform="translateY(50%)";break;case"ttb":ut.top="".concat(ct*100,"%"),ut.transform="translateY(-50%)";break;default:ut.left="".concat(ct*100,"%"),ut.transform="translateX(-50%)";break}return ut}function getIndex(_e,et){return Array.isArray(_e)?_e[et]:_e}var _excluded$X=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],Handle=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.prefixCls,ut=_e.value,ft=_e.valueIndex,gt=_e.onStartMove,xt=_e.style,$t=_e.render,_t=_e.dragging,wt=_e.onOffsetChange,Tt=_e.onChangeComplete,Rt=_objectWithoutProperties$2(_e,_excluded$X),It=reactExports.useContext(SliderContext),At=It.min,jt=It.max,Nt=It.direction,kt=It.disabled,Ft=It.keyboard,Ht=It.range,Wt=It.tabIndex,Vt=It.ariaLabelForHandle,qt=It.ariaLabelledByForHandle,Gt=It.ariaValueTextFormatterForHandle,Xt=It.styles,Zt=It.classNames,lr="".concat(ct,"-handle"),er=function(dr){kt||gt(dr,ft)},cr=function(dr){if(!kt&&Ft){var yr=null;switch(dr.which||dr.keyCode){case KeyCode.LEFT:yr=Nt==="ltr"||Nt==="btt"?-1:1;break;case KeyCode.RIGHT:yr=Nt==="ltr"||Nt==="btt"?1:-1;break;case KeyCode.UP:yr=Nt!=="ttb"?1:-1;break;case KeyCode.DOWN:yr=Nt!=="ttb"?-1:1;break;case KeyCode.HOME:yr="min";break;case KeyCode.END:yr="max";break;case KeyCode.PAGE_UP:yr=2;break;case KeyCode.PAGE_DOWN:yr=-2;break}yr!==null&&(dr.preventDefault(),wt(yr,ft))}},ur=function(dr){switch(dr.which||dr.keyCode){case KeyCode.LEFT:case KeyCode.RIGHT:case KeyCode.UP:case KeyCode.DOWN:case KeyCode.HOME:case KeyCode.END:case KeyCode.PAGE_UP:case KeyCode.PAGE_DOWN:Tt==null||Tt();break}},pr=getDirectionStyle(Nt,ut,At,jt),hr=reactExports.createElement("div",_extends$b({ref:et,className:classNames(lr,(rt={},_defineProperty$c(rt,"".concat(lr,"-").concat(ft+1),Ht),_defineProperty$c(rt,"".concat(lr,"-dragging"),_t),rt),Zt.handle),style:_objectSpread2(_objectSpread2(_objectSpread2({},pr),xt),Xt.handle),onMouseDown:er,onTouchStart:er,onKeyDown:cr,onKeyUp:ur,tabIndex:kt?null:getIndex(Wt,ft),role:"slider","aria-valuemin":At,"aria-valuemax":jt,"aria-valuenow":ut,"aria-disabled":kt,"aria-label":getIndex(Vt,ft),"aria-labelledby":getIndex(qt,ft),"aria-valuetext":(st=getIndex(Gt,ft))===null||st===void 0?void 0:st(ut),"aria-orientation":Nt==="ltr"||Nt==="rtl"?"horizontal":"vertical"},Rt));return $t&&(hr=$t(hr,{index:ft,prefixCls:ct,value:ut,dragging:_t})),hr}),_excluded$W=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Handles=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.style,ct=_e.onStartMove,ut=_e.onOffsetChange,ft=_e.values,gt=_e.handleRender,xt=_e.draggingIndex,$t=_objectWithoutProperties$2(_e,_excluded$W),_t=reactExports.useRef({});return reactExports.useImperativeHandle(et,function(){return{focus:function(Tt){var Rt;(Rt=_t.current[Tt])===null||Rt===void 0||Rt.focus()}}}),reactExports.createElement(reactExports.Fragment,null,ft.map(function(wt,Tt){return reactExports.createElement(Handle,_extends$b({ref:function(It){It?_t.current[Tt]=It:delete _t.current[Tt]},dragging:xt===Tt,prefixCls:rt,style:getIndex(st,Tt),key:Tt,value:wt,valueIndex:Tt,onStartMove:ct,onOffsetChange:ut,render:gt},$t))}))});function getPosition$1(_e){var et="touches"in _e?_e.touches[0]:_e;return{pageX:et.pageX,pageY:et.pageY}}function useDrag(_e,et,rt,st,ct,ut,ft,gt,xt){var $t=reactExports.useState(null),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1],Rt=reactExports.useState(-1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=reactExports.useState(rt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=reactExports.useState(rt),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Gt=Vt[1],Xt=reactExports.useRef(null),Zt=reactExports.useRef(null);reactExports.useEffect(function(){At===-1&&Ht(rt)},[rt,At]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",Xt.current),document.removeEventListener("mouseup",Zt.current),document.removeEventListener("touchmove",Xt.current),document.removeEventListener("touchend",Zt.current)}},[]);var lr=function(fr,dr){Ft.some(function(yr,$r){return yr!==fr[$r]})&&(dr!==void 0&&Tt(dr),Ht(fr),ft(fr))},er=function(fr,dr){if(fr===-1){var yr=qt[0],$r=qt[qt.length-1],Er=st-yr,mr=ct-$r,Sr=dr*(ct-st);Sr=Math.max(Sr,Er),Sr=Math.min(Sr,mr);var Tr=ut(yr+Sr);Sr=Tr-yr;var jr=qt.map(function(Nr){return Nr+Sr});lr(jr)}else{var Or=(ct-st)*dr,_r=_toConsumableArray$3(Ft);_r[fr]=qt[fr];var Cr=xt(_r,Or,fr,"dist");lr(Cr.values,Cr.value)}},cr=reactExports.useRef(er);cr.current=er;var ur=function(fr,dr,yr){fr.stopPropagation();var $r=yr||rt,Er=$r[dr];jt(dr),Tt(Er),Gt($r);var mr=getPosition$1(fr),Sr=mr.pageX,Tr=mr.pageY,jr=function(Cr){Cr.preventDefault();var Nr=getPosition$1(Cr),Rr=Nr.pageX,Pr=Nr.pageY,Mr=Rr-Sr,kr=Pr-Tr,Fr=_e.current.getBoundingClientRect(),wr=Fr.width,Br=Fr.height,Dr;switch(et){case"btt":Dr=-kr/Br;break;case"ttb":Dr=kr/Br;break;case"rtl":Dr=-Mr/wr;break;default:Dr=Mr/wr}cr.current(dr,Dr)},Or=function _r(Cr){Cr.preventDefault(),document.removeEventListener("mouseup",_r),document.removeEventListener("mousemove",jr),document.removeEventListener("touchend",_r),document.removeEventListener("touchmove",jr),Xt.current=null,Zt.current=null,jt(-1),gt()};document.addEventListener("mouseup",Or),document.addEventListener("mousemove",jr),document.addEventListener("touchend",Or),document.addEventListener("touchmove",jr),Xt.current=jr,Zt.current=Or},pr=reactExports.useMemo(function(){var hr=_toConsumableArray$3(rt).sort(function(dr,yr){return dr-yr}),fr=_toConsumableArray$3(Ft).sort(function(dr,yr){return dr-yr});return hr.every(function(dr,yr){return dr===fr[yr]})?Ft:rt},[rt,Ft]);return[At,wt,pr,ur]}function useOffset(_e,et,rt,st,ct,ut){var ft=reactExports.useCallback(function(Rt){var It=isFinite(Rt)?Rt:_e;return It=Math.min(et,Rt),It=Math.max(_e,It),It},[_e,et]),gt=reactExports.useCallback(function(Rt){if(rt!==null){var It=_e+Math.round((ft(Rt)-_e)/rt)*rt,At=function(Ft){return(String(Ft).split(".")[1]||"").length},jt=Math.max(At(rt),At(et),At(_e)),Nt=Number(It.toFixed(jt));return _e<=Nt&&Nt<=et?Nt:null}return null},[rt,_e,et,ft]),xt=reactExports.useCallback(function(Rt){var It=ft(Rt),At=st.map(function(kt){return kt.value});rt!==null&&At.push(gt(Rt)),At.push(_e,et);var jt=At[0],Nt=et-_e;return At.forEach(function(kt){var Ft=Math.abs(It-kt);Ft<=Nt&&(jt=kt,Nt=Ft)}),jt},[_e,et,st,rt,ft,gt]),$t=function Rt(It,At,jt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof At=="number"){var kt,Ft=It[jt],Ht=Ft+At,Wt=[];st.forEach(function(Zt){Wt.push(Zt.value)}),Wt.push(_e,et),Wt.push(gt(Ft));var Vt=At>0?1:-1;Nt==="unit"?Wt.push(gt(Ft+Vt*rt)):Wt.push(gt(Ht)),Wt=Wt.filter(function(Zt){return Zt!==null}).filter(function(Zt){return At<0?Zt<=Ft:Zt>=Ft}),Nt==="unit"&&(Wt=Wt.filter(function(Zt){return Zt!==Ft}));var qt=Nt==="unit"?Ft:Ht;kt=Wt[0];var Gt=Math.abs(kt-qt);if(Wt.forEach(function(Zt){var lr=Math.abs(Zt-qt);lr1){var Xt=_toConsumableArray$3(It);return Xt[jt]=kt,Rt(Xt,At-Vt,jt,Nt)}return kt}else{if(At==="min")return _e;if(At==="max")return et}},_t=function(It,At,jt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",kt=It[jt],Ft=$t(It,At,jt,Nt);return{value:Ft,changed:Ft!==kt}},wt=function(It){return ut===null&&It===0||typeof ut=="number"&&It3&&arguments[3]!==void 0?arguments[3]:"unit",kt=It.map(xt),Ft=kt[jt],Ht=$t(kt,At,jt,Nt);if(kt[jt]=Ht,ct===!1){var Wt=ut||0;jt>0&&kt[jt-1]!==Ft&&(kt[jt]=Math.max(kt[jt],kt[jt-1]+Wt)),jt0;Xt-=1)for(var Zt=!0;wt(kt[Xt]-kt[Xt-1])&&Zt;){var lr=_t(kt,-1,Xt-1);kt[Xt-1]=lr.value,Zt=lr.changed}for(var er=kt.length-1;er>0;er-=1)for(var cr=!0;wt(kt[er]-kt[er-1])&&cr;){var ur=_t(kt,-1,er-1);kt[er-1]=ur.value,cr=ur.changed}for(var pr=0;pr=0?fr:!1},[fr,pn]),Zr=reactExports.useMemo(function(){var Wn=Object.keys(Nr||{});return Wn.map(function(zn){var _n=Nr[zn],ln={value:Number(zn)};return _n&&_typeof$e(_n)==="object"&&!reactExports.isValidElement(_n)&&("label"in _n||"style"in _n)?(ln.style=_n.style,ln.label=_n.label):ln.label=_n,ln}).filter(function(zn){var _n=zn.label;return _n||typeof _n=="number"}).sort(function(zn,_n){return zn.value-_n.value})},[Nr]),vn=useOffset(zr,qr,pn,Zr,pr,Qr),vr=_slicedToArray$3(vn,2),gr=vr[0],br=vr[1],Hr=useMergedState(qt,{value:Vt}),Vr=_slicedToArray$3(Hr,2),Wr=Vr[0],Gr=Vr[1],cn=reactExports.useMemo(function(){var Wn=Wr==null?[]:Array.isArray(Wr)?Wr:[Wr],zn=_slicedToArray$3(Wn,1),_n=zn[0],ln=_n===void 0?zr:_n,Pn=Wr===null?[]:[ln];if(Gt){if(Pn=_toConsumableArray$3(Wn),Xt||Wr===void 0){var An=Xt>=0?Xt+1:2;for(Pn=Pn.slice(0,An);Pn.length=0&&Dr.current.focus(Wn)}On(null)},[Nn]);var Cn=reactExports.useMemo(function(){return dr&&pn===null?!1:dr},[dr,pn]),Sn=function(zn,_n){dn(zn,_n),lr==null||lr(hn(mn.current))},Mn=Yn!==-1;reactExports.useEffect(function(){if(!Mn){var Wn=cn.lastIndexOf(qn);Dr.current.focus(Wn)}},[Mn]);var jn=reactExports.useMemo(function(){return _toConsumableArray$3(ao).sort(function(Wn,zn){return Wn-zn})},[ao]),Un=reactExports.useMemo(function(){return Gt?[jn[0],jn[jn.length-1]]:[zr,jn[0]]},[jn,Gt,zr]),Gn=_slicedToArray$3(Un,2),eo=Gn[0],io=Gn[1];reactExports.useImperativeHandle(et,function(){return{focus:function(){Dr.current.focus(0)},blur:function(){var zn=document,_n=zn.activeElement;Xr.current.contains(_n)&&(_n==null||_n.blur())}}}),reactExports.useEffect(function(){Rt&&Dr.current.focus(0)},[]);var Kn=reactExports.useMemo(function(){return{min:zr,max:qr,direction:Kr,disabled:_t,keyboard:Tt,step:pn,included:mr,includedStart:eo,includedEnd:io,range:Gt,tabIndex:kr,ariaLabelForHandle:Fr,ariaLabelledByForHandle:wr,ariaValueTextFormatterForHandle:Br,styles:xt||{},classNames:gt||{}}},[zr,qr,Kr,_t,Tt,pn,mr,eo,io,Gt,kr,Fr,wr,Br,xt,gt]);return reactExports.createElement(SliderContext.Provider,{value:Kn},reactExports.createElement("div",{ref:Xr,className:classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-disabled"),_t),_defineProperty$c(rt,"".concat(ct,"-vertical"),$r),_defineProperty$c(rt,"".concat(ct,"-horizontal"),!$r),_defineProperty$c(rt,"".concat(ct,"-with-marks"),Zr.length),rt)),style:ft,onMouseDown:yn},reactExports.createElement("div",{className:classNames("".concat(ct,"-rail"),gt==null?void 0:gt.rail),style:_objectSpread2(_objectSpread2({},Or),xt==null?void 0:xt.rail)}),reactExports.createElement(Tracks,{prefixCls:ct,style:Tr,values:jn,startPoint:Sr,onStartMove:Cn?Sn:null}),reactExports.createElement(Steps,{prefixCls:ct,marks:Zr,dots:Rr,style:_r,activeStyle:Cr}),reactExports.createElement(Handles,{ref:Dr,prefixCls:ct,style:jr,values:ao,draggingIndex:Yn,onStartMove:Sn,onOffsetChange:xn,onFocus:It,onBlur:At,handleRender:Pr,onChangeComplete:Rn}),reactExports.createElement(Marks,{prefixCls:ct,marks:Zr,onClick:gn})))});const SliderTooltip=reactExports.forwardRef((_e,et)=>{const{open:rt}=_e,st=reactExports.useRef(null),ct=reactExports.useRef(null);function ut(){wrapperRaf.cancel(ct.current),ct.current=null}function ft(){ct.current=wrapperRaf(()=>{var gt;(gt=st.current)===null||gt===void 0||gt.forceAlign(),ct.current=null})}return reactExports.useEffect(()=>(rt?ft():ut(),ut),[rt,_e.title]),reactExports.createElement(Tooltip$1,Object.assign({ref:composeRef(st,et)},_e))}),SliderTooltip$1=SliderTooltip,genBaseStyle$3=_e=>{const{componentCls:et,antCls:rt,controlSize:st,dotSize:ct,marginFull:ut,marginPart:ft,colorFillContentHover:gt,handleColorDisabled:xt,calc:$t}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",height:st,margin:`${unit$1(ft)} ${unit$1(ut)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit$1(ut)} ${unit$1(ft)}`},[`${et}-rail`]:{position:"absolute",backgroundColor:_e.railBg,borderRadius:_e.borderRadiusXS,transition:`background-color ${_e.motionDurationMid}`},[`${et}-track,${et}-tracks`]:{position:"absolute",transition:`background-color ${_e.motionDurationMid}`},[`${et}-track`]:{backgroundColor:_e.trackBg,borderRadius:_e.borderRadiusXS},[`${et}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${et}-rail`]:{backgroundColor:_e.railHoverBg},[`${et}-track`]:{backgroundColor:_e.trackHoverBg},[`${et}-dot`]:{borderColor:gt},[`${et}-handle::after`]:{boxShadow:`0 0 0 ${unit$1(_e.handleLineWidth)} ${_e.colorPrimaryBorderHover}`},[`${et}-dot-active`]:{borderColor:_e.dotActiveBorderColor}},[`${et}-handle`]:{position:"absolute",width:_e.handleSize,height:_e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:$t(_e.handleLineWidth).mul(-1).equal(),insetBlockStart:$t(_e.handleLineWidth).mul(-1).equal(),width:$t(_e.handleSize).add($t(_e.handleLineWidth).mul(2)).equal(),height:$t(_e.handleSize).add($t(_e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:_e.handleSize,height:_e.handleSize,backgroundColor:_e.colorBgElevated,boxShadow:`0 0 0 ${unit$1(_e.handleLineWidth)} ${_e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + */var ERROR_LEVEL_MAP={L:qrcodegen_default.QrCode.Ecc.LOW,M:qrcodegen_default.QrCode.Ecc.MEDIUM,Q:qrcodegen_default.QrCode.Ecc.QUARTILE,H:qrcodegen_default.QrCode.Ecc.HIGH},DEFAULT_SIZE=128,DEFAULT_LEVEL="L",DEFAULT_BGCOLOR="#FFFFFF",DEFAULT_FGCOLOR="#000000",DEFAULT_INCLUDEMARGIN=!1,MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1;function generatePath(_e,et=0){const rt=[];return _e.forEach(function(st,ct){let ut=null;st.forEach(function(ft,gt){if(!ft&&ut!==null){rt.push(`M${ut+et} ${ct+et}h${gt-ut}v1H${ut+et}z`),ut=null;return}if(gt===st.length-1){if(!ft)return;ut===null?rt.push(`M${gt+et},${ct+et} h1v1H${gt+et}z`):rt.push(`M${ut+et},${ct+et} h${gt+1-ut}v1H${ut+et}z`);return}ft&&ut===null&&(ut=gt)})}),rt.join("")}function excavateModules(_e,et){return _e.slice().map((rt,st)=>st=et.y+et.h?rt:rt.map((ct,ut)=>ut=et.x+et.w?ct:!1))}function getImageSettings(_e,et,rt,st){if(st==null)return null;const ct=rt?MARGIN_SIZE:0,ut=_e.length+ct*2,ft=Math.floor(et*DEFAULT_IMG_SCALE),gt=ut/et,xt=(st.width||ft)*gt,$t=(st.height||ft)*gt,_t=st.x==null?_e.length/2-xt/2:st.x*gt,wt=st.y==null?_e.length/2-$t/2:st.y*gt;let Tt=null;if(st.excavate){let Rt=Math.floor(_t),It=Math.floor(wt),At=Math.ceil(xt+_t-Rt),jt=Math.ceil($t+wt-It);Tt={x:Rt,y:It,w:At,h:jt}}return{x:_t,y:wt,h:$t,w:xt,excavation:Tt}}var SUPPORTS_PATH2D=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QRCodeCanvas(_e){const et=_e,{value:rt,size:st=DEFAULT_SIZE,level:ct=DEFAULT_LEVEL,bgColor:ut=DEFAULT_BGCOLOR,fgColor:ft=DEFAULT_FGCOLOR,includeMargin:gt=DEFAULT_INCLUDEMARGIN,style:xt,imageSettings:$t}=et,_t=__objRest(et,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),wt=$t==null?void 0:$t.src,Tt=reactExports.useRef(null),Rt=reactExports.useRef(null),[It,At]=reactExports.useState(!1);reactExports.useEffect(()=>{if(Tt.current!=null){const kt=Tt.current,Ft=kt.getContext("2d");if(!Ft)return;let Ht=qrcodegen_default.QrCode.encodeText(rt,ERROR_LEVEL_MAP[ct]).getModules();const Wt=gt?MARGIN_SIZE:0,Vt=Ht.length+Wt*2,qt=getImageSettings(Ht,st,gt,$t),Xt=Rt.current,Gt=qt!=null&&Xt!==null&&Xt.complete&&Xt.naturalHeight!==0&&Xt.naturalWidth!==0;Gt&&qt.excavation!=null&&(Ht=excavateModules(Ht,qt.excavation));const Zt=window.devicePixelRatio||1;kt.height=kt.width=st*Zt;const er=st/Vt*Zt;Ft.scale(er,er),Ft.fillStyle=ut,Ft.fillRect(0,0,Vt,Vt),Ft.fillStyle=ft,SUPPORTS_PATH2D?Ft.fill(new Path2D(generatePath(Ht,Wt))):Ht.forEach(function(lr,cr){lr.forEach(function(ur,fr){ur&&Ft.fillRect(fr+Wt,cr+Wt,1,1)})}),Gt&&Ft.drawImage(Xt,qt.x+Wt,qt.y+Wt,qt.w,qt.h)}}),reactExports.useEffect(()=>{At(!1)},[wt]);const jt=__spreadValues({height:st,width:st},xt);let Nt=null;return wt!=null&&(Nt=React$1.createElement("img",{src:wt,key:wt,style:{display:"none"},onLoad:()=>{At(!0)},ref:Rt})),React$1.createElement(React$1.Fragment,null,React$1.createElement("canvas",__spreadValues({style:jt,height:st,width:st,ref:Tt},_t)),Nt)}function QRCodeSVG(_e){const et=_e,{value:rt,size:st=DEFAULT_SIZE,level:ct=DEFAULT_LEVEL,bgColor:ut=DEFAULT_BGCOLOR,fgColor:ft=DEFAULT_FGCOLOR,includeMargin:gt=DEFAULT_INCLUDEMARGIN,imageSettings:xt}=et,$t=__objRest(et,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let _t=qrcodegen_default.QrCode.encodeText(rt,ERROR_LEVEL_MAP[ct]).getModules();const wt=gt?MARGIN_SIZE:0,Tt=_t.length+wt*2,Rt=getImageSettings(_t,st,gt,xt);let It=null;xt!=null&&Rt!=null&&(Rt.excavation!=null&&(_t=excavateModules(_t,Rt.excavation)),It=React$1.createElement("image",{xlinkHref:xt.src,height:Rt.h,width:Rt.w,x:Rt.x+wt,y:Rt.y+wt,preserveAspectRatio:"none"}));const At=generatePath(_t,wt);return React$1.createElement("svg",__spreadValues({height:st,width:st,viewBox:`0 0 ${Tt} ${Tt}`},$t),React$1.createElement("path",{fill:ut,d:`M0,0 h${Tt}v${Tt}H0z`,shapeRendering:"crispEdges"}),React$1.createElement("path",{fill:ft,d:At,shapeRendering:"crispEdges"}),It)}const genQRCodeStyle=_e=>{const{componentCls:et,lineWidth:rt,lineType:st,colorSplit:ct}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:_e.paddingSM,backgroundColor:_e.colorWhite,borderRadius:_e.borderRadiusLG,border:`${unit$1(rt)} ${st} ${ct}`,position:"relative",overflow:"hidden",[`& > ${et}-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",[`& > ${et}-expired, & > ${et}-scanned`]:{color:_e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:_e.marginXS,fontSize:_e.controlHeight}}),[`${et}-borderless`]:{borderColor:"transparent"}}},prepareComponentToken$7=_e=>({QRCodeMaskBackgroundColor:new TinyColor(_e.colorBgContainer).setAlpha(.96).toRgbString()}),useStyle$p=genStyleHooks("QRCode",_e=>{const et=merge$7(_e,{QRCodeTextColor:_e.colorText});return genQRCodeStyle(et)},prepareComponentToken$7),QRCode=_e=>{const[,et]=useToken$4(),{value:rt,type:st="canvas",icon:ct="",size:ut=160,iconSize:ft=40,color:gt=et.colorText,errorLevel:xt="M",status:$t="active",bordered:_t=!0,onRefresh:wt,style:Tt,className:Rt,rootClassName:It,prefixCls:At,bgColor:jt="transparent"}=_e,{getPrefixCls:Nt}=reactExports.useContext(ConfigContext$1),kt=Nt("qrcode",At),[Ft,Ht,Wt]=useStyle$p(kt),qt={value:rt,size:ut,level:xt,bgColor:jt,fgColor:gt,style:{width:void 0,height:void 0},imageSettings:ct?{src:ct,x:void 0,y:void 0,height:ft,width:ft,excavate:!0}:void 0},[Xt]=useLocale$3("QRCode");if(!rt)return null;const Gt=classNames(kt,Rt,It,Ht,Wt,{[`${kt}-borderless`]:!_t});return Ft(React$1.createElement("div",{className:Gt,style:Object.assign(Object.assign({},Tt),{width:ut,height:ut,backgroundColor:jt})},$t!=="active"&&React$1.createElement("div",{className:`${kt}-mask`},$t==="loading"&&React$1.createElement(Spin$1,null),$t==="expired"&&React$1.createElement(React$1.Fragment,null,React$1.createElement("p",{className:`${kt}-expired`},Xt==null?void 0:Xt.expired),wt&&React$1.createElement(Button$3,{type:"link",icon:React$1.createElement(ReloadOutlined$1,null),onClick:wt},Xt==null?void 0:Xt.refresh)),$t==="scanned"&&React$1.createElement("p",{className:`${kt}-scanned`},Xt==null?void 0:Xt.scanned)),st==="canvas"?React$1.createElement(QRCodeCanvas,Object.assign({},qt)):React$1.createElement(QRCodeSVG,Object.assign({},qt))))},QRCode$1=QRCode;var StarFilled$2={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"};const StarFilledSvg=StarFilled$2;var StarFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:StarFilledSvg}))};const StarFilled$1=reactExports.forwardRef(StarFilled);function Star(_e,et){var rt=_e.disabled,st=_e.prefixCls,ct=_e.character,ut=_e.characterRender,ft=_e.index,gt=_e.count,xt=_e.value,$t=_e.allowHalf,_t=_e.focused,wt=_e.onHover,Tt=_e.onClick,Rt=function(Wt){wt(Wt,ft)},It=function(Wt){Tt(Wt,ft)},At=function(Wt){Wt.keyCode===KeyCode.ENTER&&Tt(Wt,ft)},jt=ft+1,Nt=new Set([st]);xt===0&&ft===0&&_t?Nt.add("".concat(st,"-focused")):$t&&xt+.5>=jt&&xtft?"true":"false","aria-posinset":ft+1,"aria-setsize":gt,tabIndex:rt?-1:0},React$1.createElement("div",{className:"".concat(st,"-first")},kt),React$1.createElement("div",{className:"".concat(st,"-second")},kt)));return ut&&(Ft=ut(Ft,_e)),Ft}const Star$1=React$1.forwardRef(Star);function useRefs(){var _e=reactExports.useRef({});function et(st){return _e.current[st]}function rt(st){return function(ct){_e.current[st]=ct}}return[et,rt]}function getScroll(_e){var et=_e.pageXOffset,rt="scrollLeft";if(typeof et!="number"){var st=_e.document;et=st.documentElement[rt],typeof et!="number"&&(et=st.body[rt])}return et}function getClientPosition(_e){var et,rt,st=_e.ownerDocument,ct=st.body,ut=st&&st.documentElement,ft=_e.getBoundingClientRect();return et=ft.left,rt=ft.top,et-=ut.clientLeft||ct.clientLeft||0,rt-=ut.clientTop||ct.clientTop||0,{left:et,top:rt}}function getOffsetLeft(_e){var et=getClientPosition(_e),rt=_e.ownerDocument,st=rt.defaultView||rt.parentWindow;return et.left+=getScroll(st),et.left}var _excluded$Z=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Rate$2(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-rate":st,ut=_e.className,ft=_e.defaultValue,gt=_e.value,xt=_e.count,$t=xt===void 0?5:xt,_t=_e.allowHalf,wt=_t===void 0?!1:_t,Tt=_e.allowClear,Rt=Tt===void 0?!0:Tt,It=_e.character,At=It===void 0?"★":It,jt=_e.characterRender,Nt=_e.disabled,kt=_e.direction,Ft=kt===void 0?"ltr":kt,Ht=_e.tabIndex,Wt=Ht===void 0?0:Ht,Vt=_e.autoFocus,qt=_e.onHoverChange,Xt=_e.onChange,Gt=_e.onFocus,Zt=_e.onBlur,er=_e.onKeyDown,lr=_e.onMouseLeave,cr=_objectWithoutProperties$2(_e,_excluded$Z),ur=useRefs(),fr=_slicedToArray$3(ur,2),hr=fr[0],pr=fr[1],dr=React$1.useRef(null),yr=function(){if(!Nt){var gr;(gr=dr.current)===null||gr===void 0||gr.focus()}};React$1.useImperativeHandle(et,function(){return{focus:yr,blur:function(){if(!Nt){var gr;(gr=dr.current)===null||gr===void 0||gr.blur()}}}});var Sr=useMergedState(ft||0,{value:gt}),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=useMergedState(null),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1],Cr=function(gr,$r){var zr=Ft==="rtl",qr=gr+1;if(wt){var Wr=hr(gr),Gr=getOffsetLeft(Wr),dn=Wr.clientWidth;(zr&&$r-Gr>dn/2||!zr&&$r-Gr0&&!zr||$r===KeyCode.RIGHT&&qr>0&&zr?(wt?qr-=.5:qr-=1,Nr(qr),gr.preventDefault()):$r===KeyCode.LEFT&&qr<$t&&zr&&(wt?qr+=.5:qr+=1,Nr(qr),gr.preventDefault()),er==null||er(gr)};React$1.useEffect(function(){Vt&&!Nt&&yr()},[]);var Zr=new Array($t).fill(0).map(function(vr,gr){return React$1.createElement(Star$1,{ref:pr(gr),index:gr,count:$t,disabled:Nt,prefixCls:"".concat(ct,"-star"),allowHalf:wt,value:Xr===null?mr:Xr,onClick:ln,onHover:Hr,key:vr||gr,character:At,characterRender:jt,focused:jr})}),vn=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-disabled"),Nt),_defineProperty$c(rt,"".concat(ct,"-rtl"),Ft==="rtl"),rt));return React$1.createElement("ul",_extends$b({className:vn,onMouseLeave:Vr,tabIndex:Nt?-1:Wt,onFocus:Nt?null:Fr,onBlur:Nt?null:_r,onKeyDown:Nt?null:Qr,ref:dr,role:"radiogroup"},pickAttrs(cr,{aria:!0,data:!0,attr:!0})),Zr)}const Rate$3=React$1.forwardRef(Rate$2),genRateStarStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-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:`${unit$1(_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 ${et}-star-first, &-half ${et}-star-second`]:{opacity:1},[`&-half ${et}-star-first, &-full ${et}-star-second`]:{color:"inherit"}}}},genRateRtlStyle=_e=>({[`&-rtl${_e.componentCls}`]:{direction:"rtl"}}),genRateStyle=_e=>{const{componentCls:et}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",margin:0,padding:0,color:_e.starColor,fontSize:_e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${et} ${et}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),genRateStarStyle(_e)),genRateRtlStyle(_e))}},prepareComponentToken$6=_e=>({starColor:_e.yellow6,starSize:_e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:_e.colorFillContent}),useStyle$o=genStyleHooks("Rate",_e=>{const et=merge$7(_e,{});return[genRateStyle(et)]},prepareComponentToken$6);var __rest$8=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,className:st,rootClassName:ct,style:ut,tooltips:ft,character:gt=reactExports.createElement(StarFilled$1,null)}=_e,xt=__rest$8(_e,["prefixCls","className","rootClassName","style","tooltips","character"]),$t=(kt,Ft)=>{let{index:Ht}=Ft;return ft?reactExports.createElement(Tooltip$1,{title:ft[Ht]},kt):kt},{getPrefixCls:_t,direction:wt,rate:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("rate",rt),[It,At,jt]=useStyle$o(Rt),Nt=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),ut);return It(reactExports.createElement(Rate$3,Object.assign({ref:et,character:gt,characterRender:$t},xt,{className:classNames(st,ct,At,jt,Tt==null?void 0:Tt.className),style:Nt,prefixCls:Rt,direction:wt})))}),Rate$1=Rate;var WarningFilled$2={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"};const WarningFilledSvg=WarningFilled$2;var WarningFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:WarningFilledSvg}))};const WarningFilled$1=reactExports.forwardRef(WarningFilled),NoFound=()=>reactExports.createElement("svg",{width:"252",height:"294"},reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .012)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.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)"})),reactExports.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"}),reactExports.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),reactExports.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),reactExports.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"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),noFound=NoFound,ServerError=()=>reactExports.createElement("svg",{width:"254",height:"294"},reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),reactExports.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .067)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.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)"})),reactExports.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"}),reactExports.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),reactExports.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}),reactExports.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.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)"}),reactExports.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)"}),reactExports.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)"}))),serverError=ServerError,genBaseStyle$4=_e=>{const{componentCls:et,lineHeightHeading3:rt,iconCls:st,padding:ct,paddingXL:ut,paddingXS:ft,paddingLG:gt,marginXS:xt,lineHeight:$t}=_e;return{[et]:{padding:`${unit$1(_e.calc(gt).mul(2).equal())} ${unit$1(ut)}`,"&-rtl":{direction:"rtl"}},[`${et} ${et}-image`]:{width:_e.imageWidth,height:_e.imageHeight,margin:"auto"},[`${et} ${et}-icon`]:{marginBottom:gt,textAlign:"center",[`& > ${st}`]:{fontSize:_e.iconFontSize}},[`${et} ${et}-title`]:{color:_e.colorTextHeading,fontSize:_e.titleFontSize,lineHeight:rt,marginBlock:xt,textAlign:"center"},[`${et} ${et}-subtitle`]:{color:_e.colorTextDescription,fontSize:_e.subtitleFontSize,lineHeight:$t,textAlign:"center"},[`${et} ${et}-content`]:{marginTop:gt,padding:`${unit$1(gt)} ${unit$1(_e.calc(ct).mul(2.5).equal())}`,backgroundColor:_e.colorFillAlter},[`${et} ${et}-extra`]:{margin:_e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ft,"&:last-child":{marginInlineEnd:0}}}}},genStatusIconStyle=_e=>{const{componentCls:et,iconCls:rt}=_e;return{[`${et}-success ${et}-icon > ${rt}`]:{color:_e.resultSuccessIconColor},[`${et}-error ${et}-icon > ${rt}`]:{color:_e.resultErrorIconColor},[`${et}-info ${et}-icon > ${rt}`]:{color:_e.resultInfoIconColor},[`${et}-warning ${et}-icon > ${rt}`]:{color:_e.resultWarningIconColor}}},genResultStyle=_e=>[genBaseStyle$4(_e),genStatusIconStyle(_e)],getStyle=_e=>genResultStyle(_e),prepareComponentToken$5=_e=>({titleFontSize:_e.fontSizeHeading3,subtitleFontSize:_e.fontSize,iconFontSize:_e.fontSizeHeading3*3,extraMargin:`${_e.paddingLG}px 0 0 0`}),useStyle$n=genStyleHooks("Result",_e=>{const et=_e.colorInfo,rt=_e.colorError,st=_e.colorSuccess,ct=_e.colorWarning,ut=merge$7(_e,{resultInfoIconColor:et,resultErrorIconColor:rt,resultSuccessIconColor:st,resultWarningIconColor:ct,imageWidth:250,imageHeight:295});return[getStyle(ut)]},prepareComponentToken$5),Unauthorized=()=>reactExports.createElement("svg",{width:"251",height:"294"},reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}),reactExports.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"}))),unauthorized=Unauthorized,IconMap={success:CheckCircleFilled$1,error:CloseCircleFilled$3,info:ExclamationCircleFilled$1,warning:WarningFilled$1},ExceptionMap={404:noFound,500:serverError,403:unauthorized},ExceptionStatus=Object.keys(ExceptionMap),Icon$8=_e=>{let{prefixCls:et,icon:rt,status:st}=_e;const ct=classNames(`${et}-icon`);if(ExceptionStatus.includes(`${st}`)){const ft=ExceptionMap[st];return reactExports.createElement("div",{className:`${ct} ${et}-image`},reactExports.createElement(ft,null))}const ut=reactExports.createElement(IconMap[st]);return rt===null||rt===!1?null:reactExports.createElement("div",{className:ct},rt||ut)},Extra=_e=>{let{prefixCls:et,extra:rt}=_e;return rt?reactExports.createElement("div",{className:`${et}-extra`},rt):null},Result=_e=>{let{prefixCls:et,className:rt,rootClassName:st,subTitle:ct,title:ut,style:ft,children:gt,status:xt="info",icon:$t,extra:_t}=_e;const{getPrefixCls:wt,direction:Tt,result:Rt}=reactExports.useContext(ConfigContext$1),It=wt("result",et),[At,jt,Nt]=useStyle$n(It),kt=classNames(It,`${It}-${xt}`,rt,Rt==null?void 0:Rt.className,st,{[`${It}-rtl`]:Tt==="rtl"},jt,Nt),Ft=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ft);return At(reactExports.createElement("div",{className:kt,style:Ft},reactExports.createElement(Icon$8,{prefixCls:It,status:xt,icon:$t}),reactExports.createElement("div",{className:`${It}-title`},ut),ct&&reactExports.createElement("div",{className:`${It}-subtitle`},ct),reactExports.createElement(Extra,{prefixCls:It,extra:_t}),gt&&reactExports.createElement("div",{className:`${It}-content`},gt)))};Result.PRESENTED_IMAGE_403=ExceptionMap[403];Result.PRESENTED_IMAGE_404=ExceptionMap[404];Result.PRESENTED_IMAGE_500=ExceptionMap[500];const Result$1=Result;var calcThumbStyle=function(et){return et?{left:et.offsetLeft,right:et.parentElement.clientWidth-et.clientWidth-et.offsetLeft,width:et.clientWidth}:null},toPX=function(et){return et!==void 0?"".concat(et,"px"):void 0};function MotionThumb(_e){var et=_e.prefixCls,rt=_e.containerRef,st=_e.value,ct=_e.getValueIndex,ut=_e.motionName,ft=_e.onMotionStart,gt=_e.onMotionEnd,xt=_e.direction,$t=reactExports.useRef(null),_t=reactExports.useState(st),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1],It=function(cr){var ur,fr=ct(cr),hr=(ur=rt.current)===null||ur===void 0?void 0:ur.querySelectorAll(".".concat(et,"-item"))[fr];return(hr==null?void 0:hr.offsetParent)&&hr},At=reactExports.useState(null),jt=_slicedToArray$3(At,2),Nt=jt[0],kt=jt[1],Ft=reactExports.useState(null),Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1];useLayoutEffect$3(function(){if(Tt!==st){var lr=It(Tt),cr=It(st),ur=calcThumbStyle(lr),fr=calcThumbStyle(cr);Rt(st),kt(ur),Vt(fr),lr&&cr?ft():gt()}},[st]);var qt=reactExports.useMemo(function(){return toPX(xt==="rtl"?-(Nt==null?void 0:Nt.right):Nt==null?void 0:Nt.left)},[xt,Nt]),Xt=reactExports.useMemo(function(){return toPX(xt==="rtl"?-(Wt==null?void 0:Wt.right):Wt==null?void 0:Wt.left)},[xt,Wt]),Gt=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Zt=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},er=function(){kt(null),Vt(null),gt()};return!Nt||!Wt?null:reactExports.createElement(CSSMotion,{visible:!0,motionName:ut,motionAppear:!0,onAppearStart:Gt,onAppearActive:Zt,onVisibleChanged:er},function(lr,cr){var ur=lr.className,fr=lr.style,hr=_objectSpread2(_objectSpread2({},fr),{},{"--thumb-start-left":qt,"--thumb-start-width":toPX(Nt==null?void 0:Nt.width),"--thumb-active-left":Xt,"--thumb-active-width":toPX(Wt==null?void 0:Wt.width)}),pr={ref:composeRef($t,cr),style:hr,className:classNames("".concat(et,"-thumb"),ur)};return reactExports.createElement("div",pr)})}var _excluded$Y=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function getValidTitle(_e){if(typeof _e.title<"u")return _e.title;if(_typeof$e(_e.label)!=="object"){var et;return(et=_e.label)===null||et===void 0?void 0:et.toString()}}function normalizeOptions(_e){return _e.map(function(et){if(_typeof$e(et)==="object"&&et!==null){var rt=getValidTitle(et);return _objectSpread2(_objectSpread2({},et),{},{title:rt})}return{label:et==null?void 0:et.toString(),title:et==null?void 0:et.toString(),value:et}})}var InternalSegmentedOption=function(et){var rt=et.prefixCls,st=et.className,ct=et.disabled,ut=et.checked,ft=et.label,gt=et.title,xt=et.value,$t=et.onChange,_t=function(Tt){ct||$t(Tt,xt)};return reactExports.createElement("label",{className:classNames(st,_defineProperty$c({},"".concat(rt,"-item-disabled"),ct))},reactExports.createElement("input",{className:"".concat(rt,"-item-input"),type:"radio",disabled:ct,checked:ut,onChange:_t}),reactExports.createElement("div",{className:"".concat(rt,"-item-label"),title:gt},ft))},Segmented$2=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.prefixCls,ut=ct===void 0?"rc-segmented":ct,ft=_e.direction,gt=_e.options,xt=gt===void 0?[]:gt,$t=_e.disabled,_t=_e.defaultValue,wt=_e.value,Tt=_e.onChange,Rt=_e.className,It=Rt===void 0?"":Rt,At=_e.motionName,jt=At===void 0?"thumb-motion":At,Nt=_objectWithoutProperties$2(_e,_excluded$Y),kt=reactExports.useRef(null),Ft=reactExports.useMemo(function(){return composeRef(kt,et)},[kt,et]),Ht=reactExports.useMemo(function(){return normalizeOptions(xt)},[xt]),Wt=useMergedState((rt=Ht[0])===null||rt===void 0?void 0:rt.value,{value:wt,defaultValue:_t}),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Xt=Vt[1],Gt=reactExports.useState(!1),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=function(hr,pr){$t||(Xt(pr),Tt==null||Tt(pr))},ur=omit$2(Nt,["children"]);return reactExports.createElement("div",_extends$b({},ur,{className:classNames(ut,(st={},_defineProperty$c(st,"".concat(ut,"-rtl"),ft==="rtl"),_defineProperty$c(st,"".concat(ut,"-disabled"),$t),st),It),ref:Ft}),reactExports.createElement("div",{className:"".concat(ut,"-group")},reactExports.createElement(MotionThumb,{prefixCls:ut,value:qt,containerRef:kt,motionName:"".concat(ut,"-").concat(jt),direction:ft,getValueIndex:function(hr){return Ht.findIndex(function(pr){return pr.value===hr})},onMotionStart:function(){lr(!0)},onMotionEnd:function(){lr(!1)}}),Ht.map(function(fr){return reactExports.createElement(InternalSegmentedOption,_extends$b({},fr,{key:fr.value,prefixCls:ut,className:classNames(fr.className,"".concat(ut,"-item"),_defineProperty$c({},"".concat(ut,"-item-selected"),fr.value===qt&&!er)),checked:fr.value===qt,onChange:cr,disabled:!!$t||!!fr.disabled}))})))}),TypedSegmented=Segmented$2;function getItemDisabledStyle(_e,et){return{[`${_e}, ${_e}:hover, ${_e}:focus`]:{color:et.colorTextDisabled,cursor:"not-allowed"}}}function getItemSelectedStyle(_e){return{backgroundColor:_e.itemSelectedBg,boxShadow:_e.boxShadowTertiary}}const segmentedTextEllipsisCss=Object.assign({overflow:"hidden"},textEllipsis),genSegmentedStyle=_e=>{const{componentCls:et}=_e,rt=_e.calc(_e.controlHeight).sub(_e.calc(_e.trackPadding).mul(2)).equal(),st=_e.calc(_e.controlHeightLG).sub(_e.calc(_e.trackPadding).mul(2)).equal(),ct=_e.calc(_e.controlHeightSM).sub(_e.calc(_e.trackPadding).mul(2)).equal();return{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{display:"inline-block",padding:_e.trackPadding,color:_e.itemColor,background:_e.trackBg,borderRadius:_e.borderRadius,transition:`all ${_e.motionDurationMid} ${_e.motionEaseInOut}`,[`${et}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${et}-rtl`]:{direction:"rtl"},[`&${et}-block`]:{display:"flex"},[`&${et}-block ${et}-item`]:{flex:1,minWidth:0},[`${et}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${_e.motionDurationMid} ${_e.motionEaseInOut}`,borderRadius:_e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},getItemSelectedStyle(_e)),{color:_e.itemSelectedColor}),"&::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(${et}-item-selected):not(${et}-item-disabled)`]:{color:_e.itemHoverColor,"&::after":{backgroundColor:_e.itemHoverBg}},[`&:active:not(${et}-item-selected):not(${et}-item-disabled)`]:{color:_e.itemHoverColor,"&::after":{backgroundColor:_e.itemActiveBg}},"&-label":Object.assign({minHeight:rt,lineHeight:unit$1(rt),padding:`0 ${unit$1(_e.segmentedPaddingHorizontal)}`},segmentedTextEllipsisCss),"&-icon + *":{marginInlineStart:_e.calc(_e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${et}-thumb`]:Object.assign(Object.assign({},getItemSelectedStyle(_e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit$1(_e.paddingXXS)} 0`,borderRadius:_e.borderRadiusSM,[`& ~ ${et}-item:not(${et}-item-selected):not(${et}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${et}-lg`]:{borderRadius:_e.borderRadiusLG,[`${et}-item-label`]:{minHeight:st,lineHeight:unit$1(st),padding:`0 ${unit$1(_e.segmentedPaddingHorizontal)}`,fontSize:_e.fontSizeLG},[`${et}-item, ${et}-thumb`]:{borderRadius:_e.borderRadius}},[`&${et}-sm`]:{borderRadius:_e.borderRadiusSM,[`${et}-item-label`]:{minHeight:ct,lineHeight:unit$1(ct),padding:`0 ${unit$1(_e.segmentedPaddingHorizontalSM)}`},[`${et}-item, ${et}-thumb`]:{borderRadius:_e.borderRadiusXS}}}),getItemDisabledStyle(`&-disabled ${et}-item`,_e)),getItemDisabledStyle(`${et}-item-disabled`,_e)),{[`${et}-thumb-motion-appear-active`]:{transition:`transform ${_e.motionDurationSlow} ${_e.motionEaseInOut}, width ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,willChange:"transform, width"}})}},prepareComponentToken$4=_e=>{const{colorTextLabel:et,colorText:rt,colorFillSecondary:st,colorBgElevated:ct,colorFill:ut,lineWidthBold:ft,colorBgLayout:gt}=_e;return{trackPadding:ft,trackBg:gt,itemColor:et,itemHoverColor:rt,itemHoverBg:st,itemSelectedBg:ct,itemActiveBg:ut,itemSelectedColor:rt}},useStyle$m=genStyleHooks("Segmented",_e=>{const{lineWidth:et,calc:rt}=_e,st=merge$7(_e,{segmentedPaddingHorizontal:rt(_e.controlPaddingHorizontal).sub(et).equal(),segmentedPaddingHorizontalSM:rt(_e.controlPaddingHorizontalSM).sub(et).equal()});return[genSegmentedStyle(st)]},prepareComponentToken$4);var __rest$7=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,className:st,rootClassName:ct,block:ut,options:ft=[],size:gt="middle",style:xt}=_e,$t=__rest$7(_e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:_t,direction:wt,segmented:Tt}=reactExports.useContext(ConfigContext$1),Rt=_t("segmented",rt),[It,At,jt]=useStyle$m(Rt),Nt=useSize(gt),kt=reactExports.useMemo(()=>ft.map(Wt=>{if(isSegmentedLabeledOptionWithIcon(Wt)){const{icon:Vt,label:qt}=Wt,Xt=__rest$7(Wt,["icon","label"]);return Object.assign(Object.assign({},Xt),{label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:`${Rt}-item-icon`},Vt),qt&&reactExports.createElement("span",null,qt))})}return Wt}),[ft,Rt]),Ft=classNames(st,ct,Tt==null?void 0:Tt.className,{[`${Rt}-block`]:ut,[`${Rt}-sm`]:Nt==="small",[`${Rt}-lg`]:Nt==="large"},At,jt),Ht=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),xt);return It(reactExports.createElement(TypedSegmented,Object.assign({},$t,{className:Ft,style:Ht,options:kt,ref:et,prefixCls:Rt,direction:wt})))}),Segmented=InternalSegmented,Segmented$1=Segmented;var SliderContext=reactExports.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function getOffset(_e,et,rt){return(_e-et)/(rt-et)}function getDirectionStyle(_e,et,rt,st){var ct=getOffset(et,rt,st),ut={};switch(_e){case"rtl":ut.right="".concat(ct*100,"%"),ut.transform="translateX(50%)";break;case"btt":ut.bottom="".concat(ct*100,"%"),ut.transform="translateY(50%)";break;case"ttb":ut.top="".concat(ct*100,"%"),ut.transform="translateY(-50%)";break;default:ut.left="".concat(ct*100,"%"),ut.transform="translateX(-50%)";break}return ut}function getIndex(_e,et){return Array.isArray(_e)?_e[et]:_e}var _excluded$X=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],Handle=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.prefixCls,ut=_e.value,ft=_e.valueIndex,gt=_e.onStartMove,xt=_e.style,$t=_e.render,_t=_e.dragging,wt=_e.onOffsetChange,Tt=_e.onChangeComplete,Rt=_objectWithoutProperties$2(_e,_excluded$X),It=reactExports.useContext(SliderContext),At=It.min,jt=It.max,Nt=It.direction,kt=It.disabled,Ft=It.keyboard,Ht=It.range,Wt=It.tabIndex,Vt=It.ariaLabelForHandle,qt=It.ariaLabelledByForHandle,Xt=It.ariaValueTextFormatterForHandle,Gt=It.styles,Zt=It.classNames,er="".concat(ct,"-handle"),lr=function(dr){kt||gt(dr,ft)},cr=function(dr){if(!kt&&Ft){var yr=null;switch(dr.which||dr.keyCode){case KeyCode.LEFT:yr=Nt==="ltr"||Nt==="btt"?-1:1;break;case KeyCode.RIGHT:yr=Nt==="ltr"||Nt==="btt"?1:-1;break;case KeyCode.UP:yr=Nt!=="ttb"?1:-1;break;case KeyCode.DOWN:yr=Nt!=="ttb"?-1:1;break;case KeyCode.HOME:yr="min";break;case KeyCode.END:yr="max";break;case KeyCode.PAGE_UP:yr=2;break;case KeyCode.PAGE_DOWN:yr=-2;break}yr!==null&&(dr.preventDefault(),wt(yr,ft))}},ur=function(dr){switch(dr.which||dr.keyCode){case KeyCode.LEFT:case KeyCode.RIGHT:case KeyCode.UP:case KeyCode.DOWN:case KeyCode.HOME:case KeyCode.END:case KeyCode.PAGE_UP:case KeyCode.PAGE_DOWN:Tt==null||Tt();break}},fr=getDirectionStyle(Nt,ut,At,jt),hr=reactExports.createElement("div",_extends$b({ref:et,className:classNames(er,(rt={},_defineProperty$c(rt,"".concat(er,"-").concat(ft+1),Ht),_defineProperty$c(rt,"".concat(er,"-dragging"),_t),rt),Zt.handle),style:_objectSpread2(_objectSpread2(_objectSpread2({},fr),xt),Gt.handle),onMouseDown:lr,onTouchStart:lr,onKeyDown:cr,onKeyUp:ur,tabIndex:kt?null:getIndex(Wt,ft),role:"slider","aria-valuemin":At,"aria-valuemax":jt,"aria-valuenow":ut,"aria-disabled":kt,"aria-label":getIndex(Vt,ft),"aria-labelledby":getIndex(qt,ft),"aria-valuetext":(st=getIndex(Xt,ft))===null||st===void 0?void 0:st(ut),"aria-orientation":Nt==="ltr"||Nt==="rtl"?"horizontal":"vertical"},Rt));return $t&&(hr=$t(hr,{index:ft,prefixCls:ct,value:ut,dragging:_t})),hr}),_excluded$W=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Handles=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.style,ct=_e.onStartMove,ut=_e.onOffsetChange,ft=_e.values,gt=_e.handleRender,xt=_e.draggingIndex,$t=_objectWithoutProperties$2(_e,_excluded$W),_t=reactExports.useRef({});return reactExports.useImperativeHandle(et,function(){return{focus:function(Tt){var Rt;(Rt=_t.current[Tt])===null||Rt===void 0||Rt.focus()}}}),reactExports.createElement(reactExports.Fragment,null,ft.map(function(wt,Tt){return reactExports.createElement(Handle,_extends$b({ref:function(It){It?_t.current[Tt]=It:delete _t.current[Tt]},dragging:xt===Tt,prefixCls:rt,style:getIndex(st,Tt),key:Tt,value:wt,valueIndex:Tt,onStartMove:ct,onOffsetChange:ut,render:gt},$t))}))});function getPosition$1(_e){var et="touches"in _e?_e.touches[0]:_e;return{pageX:et.pageX,pageY:et.pageY}}function useDrag(_e,et,rt,st,ct,ut,ft,gt,xt){var $t=reactExports.useState(null),_t=_slicedToArray$3($t,2),wt=_t[0],Tt=_t[1],Rt=reactExports.useState(-1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=reactExports.useState(rt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=reactExports.useState(rt),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Xt=Vt[1],Gt=reactExports.useRef(null),Zt=reactExports.useRef(null);reactExports.useEffect(function(){At===-1&&Ht(rt)},[rt,At]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",Gt.current),document.removeEventListener("mouseup",Zt.current),document.removeEventListener("touchmove",Gt.current),document.removeEventListener("touchend",Zt.current)}},[]);var er=function(pr,dr){Ft.some(function(yr,Sr){return yr!==pr[Sr]})&&(dr!==void 0&&Tt(dr),Ht(pr),ft(pr))},lr=function(pr,dr){if(pr===-1){var yr=qt[0],Sr=qt[qt.length-1],br=st-yr,mr=ct-Sr,Er=dr*(ct-st);Er=Math.max(Er,br),Er=Math.min(Er,mr);var Tr=ut(yr+Er);Er=Tr-yr;var Mr=qt.map(function(Nr){return Nr+Er});er(Mr)}else{var Or=(ct-st)*dr,wr=_toConsumableArray$3(Ft);wr[pr]=qt[pr];var Cr=xt(wr,Or,pr,"dist");er(Cr.values,Cr.value)}},cr=reactExports.useRef(lr);cr.current=lr;var ur=function(pr,dr,yr){pr.stopPropagation();var Sr=yr||rt,br=Sr[dr];jt(dr),Tt(br),Xt(Sr);var mr=getPosition$1(pr),Er=mr.pageX,Tr=mr.pageY,Mr=function(Cr){Cr.preventDefault();var Nr=getPosition$1(Cr),Rr=Nr.pageX,Pr=Nr.pageY,jr=Rr-Er,kr=Pr-Tr,Fr=_e.current.getBoundingClientRect(),_r=Fr.width,Br=Fr.height,Dr;switch(et){case"btt":Dr=-kr/Br;break;case"ttb":Dr=kr/Br;break;case"rtl":Dr=-jr/_r;break;default:Dr=jr/_r}cr.current(dr,Dr)},Or=function wr(Cr){Cr.preventDefault(),document.removeEventListener("mouseup",wr),document.removeEventListener("mousemove",Mr),document.removeEventListener("touchend",wr),document.removeEventListener("touchmove",Mr),Gt.current=null,Zt.current=null,jt(-1),gt()};document.addEventListener("mouseup",Or),document.addEventListener("mousemove",Mr),document.addEventListener("touchend",Or),document.addEventListener("touchmove",Mr),Gt.current=Mr,Zt.current=Or},fr=reactExports.useMemo(function(){var hr=_toConsumableArray$3(rt).sort(function(dr,yr){return dr-yr}),pr=_toConsumableArray$3(Ft).sort(function(dr,yr){return dr-yr});return hr.every(function(dr,yr){return dr===pr[yr]})?Ft:rt},[rt,Ft]);return[At,wt,fr,ur]}function useOffset(_e,et,rt,st,ct,ut){var ft=reactExports.useCallback(function(Rt){var It=isFinite(Rt)?Rt:_e;return It=Math.min(et,Rt),It=Math.max(_e,It),It},[_e,et]),gt=reactExports.useCallback(function(Rt){if(rt!==null){var It=_e+Math.round((ft(Rt)-_e)/rt)*rt,At=function(Ft){return(String(Ft).split(".")[1]||"").length},jt=Math.max(At(rt),At(et),At(_e)),Nt=Number(It.toFixed(jt));return _e<=Nt&&Nt<=et?Nt:null}return null},[rt,_e,et,ft]),xt=reactExports.useCallback(function(Rt){var It=ft(Rt),At=st.map(function(kt){return kt.value});rt!==null&&At.push(gt(Rt)),At.push(_e,et);var jt=At[0],Nt=et-_e;return At.forEach(function(kt){var Ft=Math.abs(It-kt);Ft<=Nt&&(jt=kt,Nt=Ft)}),jt},[_e,et,st,rt,ft,gt]),$t=function Rt(It,At,jt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof At=="number"){var kt,Ft=It[jt],Ht=Ft+At,Wt=[];st.forEach(function(Zt){Wt.push(Zt.value)}),Wt.push(_e,et),Wt.push(gt(Ft));var Vt=At>0?1:-1;Nt==="unit"?Wt.push(gt(Ft+Vt*rt)):Wt.push(gt(Ht)),Wt=Wt.filter(function(Zt){return Zt!==null}).filter(function(Zt){return At<0?Zt<=Ft:Zt>=Ft}),Nt==="unit"&&(Wt=Wt.filter(function(Zt){return Zt!==Ft}));var qt=Nt==="unit"?Ft:Ht;kt=Wt[0];var Xt=Math.abs(kt-qt);if(Wt.forEach(function(Zt){var er=Math.abs(Zt-qt);er1){var Gt=_toConsumableArray$3(It);return Gt[jt]=kt,Rt(Gt,At-Vt,jt,Nt)}return kt}else{if(At==="min")return _e;if(At==="max")return et}},_t=function(It,At,jt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",kt=It[jt],Ft=$t(It,At,jt,Nt);return{value:Ft,changed:Ft!==kt}},wt=function(It){return ut===null&&It===0||typeof ut=="number"&&It3&&arguments[3]!==void 0?arguments[3]:"unit",kt=It.map(xt),Ft=kt[jt],Ht=$t(kt,At,jt,Nt);if(kt[jt]=Ht,ct===!1){var Wt=ut||0;jt>0&&kt[jt-1]!==Ft&&(kt[jt]=Math.max(kt[jt],kt[jt-1]+Wt)),jt0;Gt-=1)for(var Zt=!0;wt(kt[Gt]-kt[Gt-1])&&Zt;){var er=_t(kt,-1,Gt-1);kt[Gt-1]=er.value,Zt=er.changed}for(var lr=kt.length-1;lr>0;lr-=1)for(var cr=!0;wt(kt[lr]-kt[lr-1])&&cr;){var ur=_t(kt,-1,lr-1);kt[lr-1]=ur.value,cr=ur.changed}for(var fr=0;fr=0?pr:!1},[pr,ln]),Zr=reactExports.useMemo(function(){var Wn=Object.keys(Nr||{});return Wn.map(function(zn){var wn=Nr[zn],cn={value:Number(zn)};return wn&&_typeof$e(wn)==="object"&&!reactExports.isValidElement(wn)&&("label"in wn||"style"in wn)?(cn.style=wn.style,cn.label=wn.label):cn.label=wn,cn}).filter(function(zn){var wn=zn.label;return wn||typeof wn=="number"}).sort(function(zn,wn){return zn.value-wn.value})},[Nr]),vn=useOffset(Hr,Vr,ln,Zr,fr,Qr),vr=_slicedToArray$3(vn,2),gr=vr[0],$r=vr[1],zr=useMergedState(qt,{value:Vt}),qr=_slicedToArray$3(zr,2),Wr=qr[0],Gr=qr[1],dn=reactExports.useMemo(function(){var Wn=Wr==null?[]:Array.isArray(Wr)?Wr:[Wr],zn=_slicedToArray$3(Wn,1),wn=zn[0],cn=wn===void 0?Hr:wn,Pn=Wr===null?[]:[cn];if(Xt){if(Pn=_toConsumableArray$3(Wn),Gt||Wr===void 0){var An=Gt>=0?Gt+1:2;for(Pn=Pn.slice(0,An);Pn.length=0&&Dr.current.focus(Wn)}On(null)},[Nn]);var Sn=reactExports.useMemo(function(){return dr&&ln===null?!1:dr},[dr,ln]),xn=function(zn,wn){pn(zn,wn),er==null||er(hn(mn.current))},In=Yn!==-1;reactExports.useEffect(function(){if(!In){var Wn=dn.lastIndexOf(Gn);Dr.current.focus(Wn)}},[In]);var jn=reactExports.useMemo(function(){return _toConsumableArray$3(io).sort(function(Wn,zn){return Wn-zn})},[io]),Hn=reactExports.useMemo(function(){return Xt?[jn[0],jn[jn.length-1]]:[Hr,jn[0]]},[jn,Xt,Hr]),qn=_slicedToArray$3(Hn,2),Jn=qn[0],ao=qn[1];reactExports.useImperativeHandle(et,function(){return{focus:function(){Dr.current.focus(0)},blur:function(){var zn=document,wn=zn.activeElement;Xr.current.contains(wn)&&(wn==null||wn.blur())}}}),reactExports.useEffect(function(){Rt&&Dr.current.focus(0)},[]);var Vn=reactExports.useMemo(function(){return{min:Hr,max:Vr,direction:Kr,disabled:_t,keyboard:Tt,step:ln,included:mr,includedStart:Jn,includedEnd:ao,range:Xt,tabIndex:kr,ariaLabelForHandle:Fr,ariaLabelledByForHandle:_r,ariaValueTextFormatterForHandle:Br,styles:xt||{},classNames:gt||{}}},[Hr,Vr,Kr,_t,Tt,ln,mr,Jn,ao,Xt,kr,Fr,_r,Br,xt,gt]);return reactExports.createElement(SliderContext.Provider,{value:Vn},reactExports.createElement("div",{ref:Xr,className:classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-disabled"),_t),_defineProperty$c(rt,"".concat(ct,"-vertical"),Sr),_defineProperty$c(rt,"".concat(ct,"-horizontal"),!Sr),_defineProperty$c(rt,"".concat(ct,"-with-marks"),Zr.length),rt)),style:ft,onMouseDown:yn},reactExports.createElement("div",{className:classNames("".concat(ct,"-rail"),gt==null?void 0:gt.rail),style:_objectSpread2(_objectSpread2({},Or),xt==null?void 0:xt.rail)}),reactExports.createElement(Tracks,{prefixCls:ct,style:Tr,values:jn,startPoint:Er,onStartMove:Sn?xn:null}),reactExports.createElement(Steps,{prefixCls:ct,marks:Zr,dots:Rr,style:wr,activeStyle:Cr}),reactExports.createElement(Handles,{ref:Dr,prefixCls:ct,style:Mr,values:io,draggingIndex:Yn,onStartMove:xn,onOffsetChange:$n,onFocus:It,onBlur:At,handleRender:Pr,onChangeComplete:Rn}),reactExports.createElement(Marks,{prefixCls:ct,marks:Zr,onClick:gn})))});const SliderTooltip=reactExports.forwardRef((_e,et)=>{const{open:rt}=_e,st=reactExports.useRef(null),ct=reactExports.useRef(null);function ut(){wrapperRaf.cancel(ct.current),ct.current=null}function ft(){ct.current=wrapperRaf(()=>{var gt;(gt=st.current)===null||gt===void 0||gt.forceAlign(),ct.current=null})}return reactExports.useEffect(()=>(rt?ft():ut(),ut),[rt,_e.title]),reactExports.createElement(Tooltip$1,Object.assign({ref:composeRef(st,et)},_e))}),SliderTooltip$1=SliderTooltip,genBaseStyle$3=_e=>{const{componentCls:et,antCls:rt,controlSize:st,dotSize:ct,marginFull:ut,marginPart:ft,colorFillContentHover:gt,handleColorDisabled:xt,calc:$t}=_e;return{[et]:Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",height:st,margin:`${unit$1(ft)} ${unit$1(ut)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit$1(ut)} ${unit$1(ft)}`},[`${et}-rail`]:{position:"absolute",backgroundColor:_e.railBg,borderRadius:_e.borderRadiusXS,transition:`background-color ${_e.motionDurationMid}`},[`${et}-track,${et}-tracks`]:{position:"absolute",transition:`background-color ${_e.motionDurationMid}`},[`${et}-track`]:{backgroundColor:_e.trackBg,borderRadius:_e.borderRadiusXS},[`${et}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${et}-rail`]:{backgroundColor:_e.railHoverBg},[`${et}-track`]:{backgroundColor:_e.trackHoverBg},[`${et}-dot`]:{borderColor:gt},[`${et}-handle::after`]:{boxShadow:`0 0 0 ${unit$1(_e.handleLineWidth)} ${_e.colorPrimaryBorderHover}`},[`${et}-dot-active`]:{borderColor:_e.dotActiveBorderColor}},[`${et}-handle`]:{position:"absolute",width:_e.handleSize,height:_e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:$t(_e.handleLineWidth).mul(-1).equal(),insetBlockStart:$t(_e.handleLineWidth).mul(-1).equal(),width:$t(_e.handleSize).add($t(_e.handleLineWidth).mul(2)).equal(),height:$t(_e.handleSize).add($t(_e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:_e.handleSize,height:_e.handleSize,backgroundColor:_e.colorBgElevated,boxShadow:`0 0 0 ${unit$1(_e.handleLineWidth)} ${_e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${_e.motionDurationMid}, inset-block-start ${_e.motionDurationMid}, width ${_e.motionDurationMid}, @@ -375,9 +390,9 @@ html body { `]:{backgroundColor:_e.colorBgElevated,borderColor:_e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${et}-handle::after`]:{backgroundColor:_e.colorBgElevated,cursor:"not-allowed",width:_e.handleSize,height:_e.handleSize,boxShadow:`0 0 0 ${unit$1(_e.handleLineWidth)} ${xt}`,insetInlineStart:0,insetBlockStart:0},[` ${et}-mark-text, ${et}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${rt}-tooltip-inner`]:{minWidth:"unset"}})}},genDirectionStyle=(_e,et)=>{const{componentCls:rt,railSize:st,handleSize:ct,dotSize:ut,marginFull:ft,calc:gt}=_e,xt=et?"paddingBlock":"paddingInline",$t=et?"width":"height",_t=et?"height":"width",wt=et?"insetBlockStart":"insetInlineStart",Tt=et?"top":"insetInlineStart",Rt=gt(st).mul(3).sub(ct).div(2).equal(),It=gt(ct).sub(st).div(2).equal(),At=et?{borderWidth:`${unit$1(It)} 0`,transform:`translateY(${unit$1(gt(It).mul(-1).equal())})`}:{borderWidth:`0 ${unit$1(It)}`,transform:`translateX(${unit$1(_e.calc(It).mul(-1).equal())})`};return{[xt]:st,[_t]:gt(st).mul(3).equal(),[`${rt}-rail`]:{[$t]:"100%",[_t]:st},[`${rt}-track,${rt}-tracks`]:{[_t]:st},[`${rt}-track-draggable`]:Object.assign({},At),[`${rt}-handle`]:{[wt]:Rt},[`${rt}-mark`]:{insetInlineStart:0,top:0,[Tt]:gt(st).mul(3).add(et?0:ft).equal(),[$t]:"100%"},[`${rt}-step`]:{insetInlineStart:0,top:0,[Tt]:st,[$t]:"100%",[_t]:st},[`${rt}-dot`]:{position:"absolute",[wt]:gt(st).sub(ut).div(2).equal()}}},genHorizontalStyle=_e=>{const{componentCls:et,marginPartWithMark:rt}=_e;return{[`${et}-horizontal`]:Object.assign(Object.assign({},genDirectionStyle(_e,!0)),{[`&${et}-with-marks`]:{marginBottom:rt}})}},genVerticalStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-vertical`]:Object.assign(Object.assign({},genDirectionStyle(_e,!1)),{height:"100%"})}},prepareComponentToken$3=_e=>{const rt=_e.controlHeightLG/4,st=_e.controlHeightSM/2,ct=_e.lineWidth+1,ut=_e.lineWidth+1*3;return{controlSize:rt,railSize:4,handleSize:rt,handleSizeHover:st,dotSize:8,handleLineWidth:ct,handleLineWidthHover:ut,railBg:_e.colorFillTertiary,railHoverBg:_e.colorFillSecondary,trackBg:_e.colorPrimaryBorder,trackHoverBg:_e.colorPrimaryBorderHover,handleColor:_e.colorPrimaryBorder,handleActiveColor:_e.colorPrimary,handleColorDisabled:new TinyColor(_e.colorTextDisabled).onBackground(_e.colorBgContainer).toHexShortString(),dotBorderColor:_e.colorBorderSecondary,dotActiveBorderColor:_e.colorPrimaryBorder,trackBgDisabled:_e.colorBgContainerDisabled}},useStyle$l=genStyleHooks("Slider",_e=>{const et=merge$7(_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[genBaseStyle$3(et),genHorizontalStyle(et),genVerticalStyle(et)]},prepareComponentToken$3);var __rest$6=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);cttypeof rt=="number"?rt.toString():""}const Slider=React$1.forwardRef((_e,et)=>{const{prefixCls:rt,range:st,className:ct,rootClassName:ut,style:ft,disabled:gt,tooltipPrefixCls:xt,tipFormatter:$t,tooltipVisible:_t,getTooltipPopupContainer:wt,tooltipPlacement:Tt}=_e,Rt=__rest$6(_e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:It,slider:At,getPrefixCls:jt,getPopupContainer:Nt}=React$1.useContext(ConfigContext$1),kt=React$1.useContext(DisabledContext$2),Ft=gt??kt,[Ht,Wt]=React$1.useState({}),Vt=(fr,dr)=>{Wt(yr=>Object.assign(Object.assign({},yr),{[fr]:dr}))},qt=(fr,dr)=>fr||(dr?It==="rtl"?"left":"right":"top"),Gt=jt("slider",rt),[Xt,Zt,lr]=useStyle$l(Gt),er=classNames(ct,At==null?void 0:At.className,ut,{[`${Gt}-rtl`]:It==="rtl"},Zt,lr);It==="rtl"&&!Rt.vertical&&(Rt.reverse=!Rt.reverse);const[cr,ur]=React$1.useMemo(()=>st?typeof st=="object"?[!0,st.draggableTrack]:[!0,!1]:[!1],[st]),pr=(fr,dr)=>{var yr;const{index:$r,dragging:Er}=dr,{tooltip:mr={},vertical:Sr}=_e,Tr=Object.assign({},mr),{open:jr,placement:Or,getPopupContainer:_r,prefixCls:Cr,formatter:Nr}=Tr,Rr=getTipFormatter(Nr,$t),Pr=Rr?Ht[$r]||Er:!1,Mr=(yr=jr??_t)!==null&&yr!==void 0?yr:jr===void 0&&Pr,kr=Object.assign(Object.assign({},fr.props),{onMouseEnter:()=>Vt($r,!0),onMouseLeave:()=>Vt($r,!1),onFocus:Fr=>{var wr;Vt($r,!0),(wr=Rt.onFocus)===null||wr===void 0||wr.call(Rt,Fr)},onBlur:Fr=>{var wr;Vt($r,!1),(wr=Rt.onBlur)===null||wr===void 0||wr.call(Rt,Fr)}});return React$1.createElement(SliderTooltip$1,Object.assign({},Tr,{prefixCls:jt("tooltip",Cr??xt),title:Rr?Rr(dr.value):"",open:Mr,placement:qt(Or??Tt,Sr),key:$r,overlayClassName:`${Gt}-tooltip`,getPopupContainer:_r||wt||Nt}),React$1.cloneElement(fr,kr))},hr=Object.assign(Object.assign({},At==null?void 0:At.style),ft);return Xt(React$1.createElement(Slider$2,Object.assign({},Rt,{step:Rt.step,range:cr,draggableTrack:ur,className:er,style:hr,disabled:Ft,ref:et,prefixCls:Gt,handleRender:pr})))}),Slider$1=Slider;var _excluded$V=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-switch":st,ut=_e.className,ft=_e.checked,gt=_e.defaultChecked,xt=_e.disabled,$t=_e.loadingIcon,_t=_e.checkedChildren,wt=_e.unCheckedChildren,Tt=_e.onClick,Rt=_e.onChange,It=_e.onKeyDown,At=_objectWithoutProperties$2(_e,_excluded$V),jt=useMergedState(!1,{value:ft,defaultValue:gt}),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1];function Ht(Gt,Xt){var Zt=kt;return xt||(Zt=Gt,Ft(Zt),Rt==null||Rt(Zt,Xt)),Zt}function Wt(Gt){Gt.which===KeyCode.LEFT?Ht(!1,Gt):Gt.which===KeyCode.RIGHT&&Ht(!0,Gt),It==null||It(Gt)}function Vt(Gt){var Xt=Ht(!kt,Gt);Tt==null||Tt(Xt,Gt)}var qt=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-checked"),kt),_defineProperty$c(rt,"".concat(ct,"-disabled"),xt),rt));return reactExports.createElement("button",_extends$b({},At,{type:"button",role:"switch","aria-checked":kt,disabled:xt,className:qt,ref:et,onKeyDown:Wt,onClick:Vt}),$t,reactExports.createElement("span",{className:"".concat(ct,"-inner")},reactExports.createElement("span",{className:"".concat(ct,"-inner-checked")},_t),reactExports.createElement("span",{className:"".concat(ct,"-inner-unchecked")},wt)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=_e=>{const{componentCls:et,trackHeightSM:rt,trackPadding:st,trackMinWidthSM:ct,innerMinMarginSM:ut,innerMaxMarginSM:ft,handleSizeSM:gt,calc:xt}=_e,$t=`${et}-inner`,_t=unit$1(xt(gt).add(xt(st).mul(2)).equal()),wt=unit$1(xt(ft).mul(2).equal());return{[et]:{[`&${et}-small`]:{minWidth:ct,height:rt,lineHeight:unit$1(rt),[`${et}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:ut,[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${_t} - ${wt})`,marginInlineEnd:`calc(100% - ${_t} + ${wt})`},[`${$t}-unchecked`]:{marginTop:xt(rt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${et}-handle`]:{width:gt,height:gt},[`${et}-loading-icon`]:{top:xt(xt(gt).sub(_e.switchLoadingIconSize)).div(2).equal(),fontSize:_e.switchLoadingIconSize},[`&${et}-checked`]:{[`${et}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:ft,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${_t} + ${wt})`,marginInlineEnd:`calc(-100% + ${_t} - ${wt})`}},[`${et}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(xt(gt).add(st).equal())})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:xt(_e.marginXXS).div(2).equal(),marginInlineEnd:xt(_e.marginXXS).mul(-1).div(2).equal()}},[`&${et}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:xt(_e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:xt(_e.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=_e=>{const{componentCls:et,handleSize:rt,calc:st}=_e;return{[et]:{[`${et}-loading-icon${_e.iconCls}`]:{position:"relative",top:st(st(rt).sub(_e.fontSize)).div(2).equal(),color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${et}-checked ${et}-loading-icon`]:{color:_e.switchColor}}}},genSwitchHandleStyle=_e=>{const{componentCls:et,trackPadding:rt,handleBg:st,handleShadow:ct,handleSize:ut,calc:ft}=_e,gt=`${et}-handle`;return{[et]:{[gt]:{position:"absolute",top:rt,insetInlineStart:rt,width:ut,height:ut,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:st,borderRadius:ft(ut).div(2).equal(),boxShadow:ct,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${et}-checked ${gt}`]:{insetInlineStart:`calc(100% - ${unit$1(ft(ut).add(rt).equal())})`},[`&:not(${et}-disabled):active`]:{[`${gt}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${et}-checked ${gt}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}}}},genSwitchInnerStyle=_e=>{const{componentCls:et,trackHeight:rt,trackPadding:st,innerMinMargin:ct,innerMaxMargin:ut,handleSize:ft,calc:gt}=_e,xt=`${et}-inner`,$t=unit$1(gt(ft).add(gt(st).mul(2)).equal()),_t=unit$1(gt(ut).mul(2).equal());return{[et]:{[xt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ut,paddingInlineEnd:ct,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${xt}-checked, ${xt}-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"},[`${xt}-checked`]:{marginInlineStart:`calc(-100% + ${$t} - ${_t})`,marginInlineEnd:`calc(100% - ${$t} + ${_t})`},[`${xt}-unchecked`]:{marginTop:gt(rt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${et}-checked ${xt}`]:{paddingInlineStart:ct,paddingInlineEnd:ut,[`${xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xt}-unchecked`]:{marginInlineStart:`calc(100% - ${$t} + ${_t})`,marginInlineEnd:`calc(-100% + ${$t} - ${_t})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${xt}`]:{[`${xt}-unchecked`]:{marginInlineStart:gt(st).mul(2).equal(),marginInlineEnd:gt(st).mul(-1).mul(2).equal()}},[`&${et}-checked ${xt}`]:{[`${xt}-checked`]:{marginInlineStart:gt(st).mul(-1).mul(2).equal(),marginInlineEnd:gt(st).mul(2).equal()}}}}}},genSwitchStyle=_e=>{const{componentCls:et,trackHeight:rt,trackMinWidth:st}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:st,height:rt,lineHeight:`${unit$1(rt)}`,verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${et}-disabled)`]:{background:_e.colorTextTertiary}}),genFocusStyle(_e)),{[`&${et}-checked`]:{background:_e.switchColor,[`&:hover:not(${et}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${et}-loading, &${et}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${et}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$2=_e=>{const{fontSize:et,lineHeight:rt,controlHeight:st,colorWhite:ct}=_e,ut=et*rt,ft=st/2,gt=2,xt=ut-gt*2,$t=ft-gt*2;return{trackHeight:ut,trackHeightSM:ft,trackMinWidth:xt*2+gt*4,trackMinWidthSM:$t*2+gt*2,trackPadding:gt,handleBg:ct,handleSize:xt,handleSizeSM:$t,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:xt/2,innerMaxMargin:xt+gt+gt*2,innerMinMarginSM:$t/2,innerMaxMarginSM:$t+gt+gt*2}},useStyle$k=genStyleHooks("Switch",_e=>{const et=merge$7(_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[genSwitchStyle(et),genSwitchInnerStyle(et),genSwitchHandleStyle(et),genSwitchLoadingStyle(et),genSwitchSmallStyle(et)]},prepareComponentToken$2);var __rest$5=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,size:st,disabled:ct,loading:ut,className:ft,rootClassName:gt,style:xt,checked:$t,value:_t,defaultChecked:wt,defaultValue:Tt,onChange:Rt}=_e,It=__rest$5(_e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[At,jt]=useMergedState(!1,{value:$t??_t,defaultValue:wt??Tt}),{getPrefixCls:Nt,direction:kt,switch:Ft}=reactExports.useContext(ConfigContext$1),Ht=reactExports.useContext(DisabledContext$2),Wt=(ct??Ht)||ut,Vt=Nt("switch",rt),qt=reactExports.createElement("div",{className:`${Vt}-handle`},ut&&reactExports.createElement(LoadingOutlined$3,{className:`${Vt}-loading-icon`})),[Gt,Xt,Zt]=useStyle$k(Vt),lr=useSize(st),er=classNames(Ft==null?void 0:Ft.className,{[`${Vt}-small`]:lr==="small",[`${Vt}-loading`]:ut,[`${Vt}-rtl`]:kt==="rtl"},ft,gt,Xt,Zt),cr=Object.assign(Object.assign({},Ft==null?void 0:Ft.style),xt),ur=function(){jt(arguments.length<=0?void 0:arguments[0]),Rt==null||Rt.apply(void 0,arguments)};return Gt(reactExports.createElement(Wave$1,{component:"Switch"},reactExports.createElement(Switch$2,Object.assign({},It,{checked:At,onChange:ur,prefixCls:Vt,className:er,style:cr,disabled:Wt,ref:et,loadingIcon:qt}))))});Switch.__ANT_SWITCH=!0;const Switch$1=Switch;function _objectDestructuringEmpty(_e){if(_e==null)throw new TypeError("Cannot destructure "+_e)}var FileOutlined$2={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"};const FileOutlinedSvg=FileOutlined$2;var FileOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:FileOutlinedSvg}))};const FileOutlined$1=reactExports.forwardRef(FileOutlined),treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(_e,et)=>({[`.${_e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),getDropIndicatorStyle=(_e,et)=>({[`.${_e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(et.lineWidthBold)} solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(_e,et)=>{const{treeCls:rt,treeNodeCls:st,treeNodePadding:ct,titleHeight:ut,nodeSelectedBg:ft,nodeHoverBg:gt}=et,xt=et.paddingXS;return{[rt]:Object.assign(Object.assign({},resetComponent$1(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${rt}-rtl`]:{[`${rt}-switcher`]:{"&_close":{[`${rt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${rt}-active-focused)`]:Object.assign({},genFocusOutline(et)),[`${rt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${rt}-block-node`]:{[`${rt}-list-holder-inner`]:{alignItems:"stretch",[`${rt}-node-content-wrapper`]:{flex:"auto"},[`${st}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ct,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${st}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${unit$1(ct)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${rt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${rt}-node-content-wrapper`]:{background:et.controlItemBgHover},[`&:not(${st}-disabled).filter-node ${rt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${rt}-draggable-icon`]:{flexShrink:0,width:ut,lineHeight:`${unit$1(ut)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${st}:hover &`]:{opacity:.45}},[`&${st}-disabled`]:{[`${rt}-draggable-icon`]:{visibility:"hidden"}}}},[`${rt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ut}},[`${rt}-draggable-icon`]:{visibility:"hidden"},[`${rt}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(_e,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ut,margin:0,lineHeight:`${unit$1(ut)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${et.motionDurationSlow}`,borderRadius:et.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${rt}-switcher-noop):hover`]:{backgroundColor:et.colorBgTextHover},"&_close":{[`${rt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:et.calc(ut).div(2).equal(),bottom:et.calc(ct).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:et.calc(et.calc(ut).div(2).equal()).mul(.8).equal(),height:et.calc(ut).div(2).equal(),borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${rt}-checkbox`]:{top:"initial",marginInlineEnd:xt,alignSelf:"flex-start",marginTop:et.marginXXS},[`${rt}-node-content-wrapper, ${rt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ut,margin:0,padding:`0 ${unit$1(et.calc(et.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${unit$1(ut)}`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:gt},[`&${rt}-node-selected`]:{backgroundColor:ft},[`${rt}-iconEle`]:{display:"inline-block",width:ut,height:ut,lineHeight:`${unit$1(ut)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${rt}-unselectable ${rt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${rt}-node-content-wrapper`]:Object.assign({lineHeight:`${unit$1(ut)}`,userSelect:"none"},getDropIndicatorStyle(_e,et)),[`${st}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${rt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:et.calc(ut).div(2).equal(),bottom:et.calc(ct).mul(-1).equal(),borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${rt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${st}-leaf-last`]:{[`${rt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${unit$1(et.calc(ut).div(2).equal())} !important`}}}}})}},genDirectoryStyle=_e=>{const{treeCls:et,treeNodeCls:rt,treeNodePadding:st,directoryNodeSelectedBg:ct,directoryNodeSelectedColor:ut}=_e;return{[`${et}${et}-directory`]:{[rt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,transition:`background-color ${_e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:_e.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${_e.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ut,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ct},[`${et}-switcher`]:{color:ut},[`${et}-node-content-wrapper`]:{color:ut,background:"transparent"}}}}}},genTreeStyle=(_e,et)=>{const rt=`.${_e}`,st=`${rt}-treenode`,ct=et.calc(et.paddingXS).div(2).equal(),ut=merge$7(et,{treeCls:rt,treeNodeCls:st,treeNodePadding:ct});return[genBaseStyle$2(_e,ut),genDirectoryStyle(ut)]},initComponentToken=_e=>{const{controlHeightSM:et}=_e;return{titleHeight:et,nodeHoverBg:_e.controlItemBgHover,nodeSelectedBg:_e.controlItemBgActive}},prepareComponentToken$1=_e=>{const{colorTextLightSolid:et,colorPrimary:rt}=_e;return Object.assign(Object.assign({},initComponentToken(_e)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:rt})};genStyleHooks("Tree",(_e,et)=>{let{prefixCls:rt}=et;return[{[_e.componentCls]:getStyle$1(`${rt}-checkbox`,_e)},genTreeStyle(rt,_e),genCollapseMotion(_e)]},prepareComponentToken$1);var CaretDownFilled$2={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"};const CaretDownFilledSvg=CaretDownFilled$2;var CaretDownFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CaretDownFilledSvg}))};const CaretDownFilled$1=reactExports.forwardRef(CaretDownFilled);var MinusSquareOutlined$2={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"};const MinusSquareOutlinedSvg=MinusSquareOutlined$2;var MinusSquareOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:MinusSquareOutlinedSvg}))};const MinusSquareOutlined$1=reactExports.forwardRef(MinusSquareOutlined);var PlusSquareOutlined$2={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"};const PlusSquareOutlinedSvg=PlusSquareOutlined$2;var PlusSquareOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PlusSquareOutlinedSvg}))};const PlusSquareOutlined$1=reactExports.forwardRef(PlusSquareOutlined),SwitcherIconCom=_e=>{const{prefixCls:et,switcherIcon:rt,treeNodeProps:st,showLine:ct}=_e,{isLeaf:ut,expanded:ft,loading:gt}=st;if(gt)return reactExports.createElement(LoadingOutlined$3,{className:`${et}-switcher-loading-icon`});let xt;if(ct&&typeof ct=="object"&&(xt=ct.showLeafIcon),ut){if(!ct)return null;if(typeof xt!="boolean"&&xt){const wt=typeof xt=="function"?xt(st):xt,Tt=`${et}-switcher-line-custom-icon`;return isValidElement(wt)?cloneElement(wt,{className:classNames(wt.props.className||"",Tt)}):wt}return xt?reactExports.createElement(FileOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement("span",{className:`${et}-switcher-leaf-line`})}const $t=`${et}-switcher-icon`,_t=typeof rt=="function"?rt(st):rt;return isValidElement(_t)?cloneElement(_t,{className:classNames(_t.props.className||"",$t)}):_t!==void 0?_t:ct?ft?reactExports.createElement(MinusSquareOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement(PlusSquareOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement(CaretDownFilled$1,{className:$t})},SwitcherIconCom$1=SwitcherIconCom,getDesignToken=_e=>{const et=_e!=null&&_e.algorithm?createTheme(_e.algorithm):createTheme(derivative$2),rt=Object.assign(Object.assign({},seedToken),_e==null?void 0:_e.token);return getComputedToken$1(rt,{override:_e==null?void 0:_e.token},et,formatToken)},getDesignToken$1=getDesignToken;function genSizeMapToken$1(_e){const{sizeUnit:et,sizeStep:rt}=_e,st=rt-2;return{sizeXXL:et*(st+10),sizeXL:et*(st+6),sizeLG:et*(st+2),sizeMD:et*(st+2),sizeMS:et*(st+1),size:et*st,sizeSM:et*st,sizeXS:et*(st-1),sizeXXS:et*(st-1)}}const derivative$1=(_e,et)=>{const rt=et??derivative$2(_e),st=rt.fontSizeSM,ct=rt.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rt),genSizeMapToken$1(et??_e)),genFontMapToken$1(st)),{controlHeight:ct}),genControlHeight$1(Object.assign(Object.assign({},rt),{controlHeight:ct})))},compactAlgorithm=derivative$1,getAlphaColor$1=(_e,et)=>new TinyColor(_e).setAlpha(et).toRgbString(),getSolidColor=(_e,et)=>new TinyColor(_e).lighten(et).toHexString(),generateColorPalettes=_e=>{const et=generate$b(_e,{theme:"dark"});return{1:et[0],2:et[1],3:et[2],4:et[3],5:et[6],6:et[5],7:et[4],8:et[6],9:et[5],10:et[4]}},generateNeutralColorPalettes=(_e,et)=>{const rt=_e||"#000",st=et||"#fff";return{colorBgBase:rt,colorTextBase:st,colorText:getAlphaColor$1(st,.85),colorTextSecondary:getAlphaColor$1(st,.65),colorTextTertiary:getAlphaColor$1(st,.45),colorTextQuaternary:getAlphaColor$1(st,.25),colorFill:getAlphaColor$1(st,.18),colorFillSecondary:getAlphaColor$1(st,.12),colorFillTertiary:getAlphaColor$1(st,.08),colorFillQuaternary:getAlphaColor$1(st,.04),colorBgElevated:getSolidColor(rt,12),colorBgContainer:getSolidColor(rt,8),colorBgLayout:getSolidColor(rt,0),colorBgSpotlight:getSolidColor(rt,26),colorBgBlur:getAlphaColor$1(st,.04),colorBorder:getSolidColor(rt,26),colorBorderSecondary:getSolidColor(rt,19)}},derivative=(_e,et)=>{const rt=Object.keys(defaultPresetColors).map(ct=>{const ut=generate$b(_e[ct],{theme:"dark"});return new Array(10).fill(1).reduce((ft,gt,xt)=>(ft[`${ct}-${xt+1}`]=ut[xt],ft[`${ct}${xt+1}`]=ut[xt],ft),{})}).reduce((ct,ut)=>(ct=Object.assign(Object.assign({},ct),ut),ct),{}),st=et??derivative$2(_e);return Object.assign(Object.assign(Object.assign({},st),rt),genColorMapToken$1(_e,{generateColorPalettes,generateNeutralColorPalettes}))},darkAlgorithm$1=derivative;function useToken$3(){const[_e,et,rt]=useToken$4();return{theme:_e,token:et,hashId:rt}}const theme={defaultConfig:defaultConfig$1,defaultSeed:defaultConfig$1.token,useToken:useToken$3,defaultAlgorithm:derivative$2,darkAlgorithm:darkAlgorithm$1,compactAlgorithm,getDesignToken:getDesignToken$1};var __rest$4=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctreactExports.createElement(InternalRangePicker,Object.assign({},_e,{picker:"time",mode:void 0,ref:et}))),TimePicker$1=reactExports.forwardRef((_e,et)=>{var{addon:rt,renderExtraFooter:st}=_e,ct=__rest$4(_e,["addon","renderExtraFooter"]);const ut=reactExports.useMemo(()=>{if(st)return st;if(rt)return rt},[rt,st]);return reactExports.createElement(InternalTimePicker,Object.assign({},ct,{mode:void 0,ref:et,renderExtraFooter:ut}))}),PurePanel$1=genPurePanel(TimePicker$1,"picker");TimePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;TimePicker$1.RangePicker=RangePicker;TimePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;const TimePicker$2=TimePicker$1;var DeleteOutlined$2={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"};const DeleteOutlinedSvg=DeleteOutlined$2;var DeleteOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DeleteOutlinedSvg}))};const DeleteOutlined$1=reactExports.forwardRef(DeleteOutlined);var TransBtn=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var Input$1=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Gt=qt,Xt=Gt.ref,Zt=Gt.props,lr=Zt.onKeyDown,er=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,pr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Xt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),lr&&lr(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),er&&er(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),pr&&pr(dr)},onPaste:kt})),qt},RefInput=reactExports.forwardRef(Input$1);function toArray$5(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$1=isClient;function hasValue(_e){return _e!=null}function isComboNoValue(_e){return!_e&&_e!==0}function isTitleType$1(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle(_e){var et=void 0;return _e&&(isTitleType$1(_e.title)?et=_e.title.toString():isTitleType$1(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect(_e,et){isBrowserClient$1?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$1(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Gt=et.onRemove,Xt=et.onInputChange,Zt=et.onInputPaste,lr=et.onInputKeyDown,er=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,pr=reactExports.useRef(null),hr=reactExports.useState(0),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState(!1),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr="".concat(st,"-selection"),jr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect(function(){yr(pr.current.scrollWidth)},[jr]);var _r=function(Fr,wr,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},wr),Dr&&reactExports.createElement(TransBtn,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,wr,Br,Dr,Xr){var Kr=function(qr){onPreventMouseDown(qr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:wr,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var wr=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!wr,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var zr=String(Kr);zr.length>Ft&&(Kr="".concat(zr.slice(0,Ft),"..."))}var qr=function(Qr){Qr&&Qr.stopPropagation(),Gt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,wr,Xr,qr):_r(Fr,Kr,wr,Xr,qr)},Rr=function(Fr){var wr=typeof Wt=="function"?Wt(Fr):Wt;return _r({title:wr},wr,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Sr(!0)},onBlur:function(){Sr(!1)}},reactExports.createElement(RefInput,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:jr,onKeyDown:lr,onMouseDown:er,onChange:Xt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:pr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},jr," ")),Mr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$1,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,Mr,!ct.length&&!jr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Gt=et.onInputCompositionEnd,Xt=et.title,Zt=reactExports.useState(!1),lr=_slicedToArray$3(Zt,2),er=lr[0],cr=lr[1],ur=_t==="combobox",pr=ur||At,hr=Tt[0],fr=jt||"";ur&&Nt&&!er&&(fr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!fr,yr=Xt===void 0?getTitle(hr):Xt,$r=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:pr,activeDescendantId:$t,value:fr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Gt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,$r)};function isValidateOpenKey(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(fr){var dr=fr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&fr.preventDefault(),It&&It(fr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(fr.target.value)),isValidateOpenKey(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(fr){wt(fr,!0,ct.current)!==!1&&Rt(!0)},Gt=function(){ct.current=!0},Xt=function(fr){ct.current=!1,gt!=="combobox"&&qt(fr.target.value)},Zt=function(fr){var dr=fr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},lr=function(fr){var dr=fr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},er=function(fr){var dr=fr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(fr){var dr=kt();fr.target!==st.current&&!dr&>!=="combobox"&&fr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:lr,onInputCompositionStart:Gt,onInputCompositionEnd:Xt},pr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector,_extends$b({},et,ur)):reactExports.createElement(SingleSelector,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:er,onMouseDown:cr},pr)},ForwardSelector=reactExports.forwardRef(Selector),_excluded$U=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements=function(et){var rt=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(et,rt){var st=et.prefixCls;et.disabled;var ct=et.visible,ut=et.children,ft=et.popupElement,gt=et.animation,xt=et.transitionName,$t=et.dropdownStyle,_t=et.dropdownClassName,wt=et.direction,Tt=wt===void 0?"ltr":wt,Rt=et.placement,It=et.builtinPlacements,At=et.dropdownMatchSelectWidth,jt=et.dropdownRender,Nt=et.dropdownAlign,kt=et.getPopupContainer,Ft=et.empty,Ht=et.getTriggerDOMNode,Wt=et.onPopupVisibleChange,Vt=et.onPopupMouseEnter,qt=_objectWithoutProperties$2(et,_excluded$U),Gt="".concat(st,"-dropdown"),Xt=ft;jt&&(Xt=jt(ft));var Zt=reactExports.useMemo(function(){return It||getBuiltInPlacements(At)},[It,At]),lr=gt?"".concat(Gt,"-").concat(gt):xt,er=typeof At=="number",cr=reactExports.useMemo(function(){return er?null:At===!1?"minWidth":"width"},[At,er]),ur=$t;er&&(ur=_objectSpread2(_objectSpread2({},ur),{},{width:At}));var pr=reactExports.useRef(null);return reactExports.useImperativeHandle(rt,function(){return{getPopupElement:function(){return pr.current}}}),reactExports.createElement(Trigger,_extends$b({},qt,{showAction:Wt?["click"]:[],hideAction:Wt?["click"]:[],popupPlacement:Rt||(Tt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zt,prefixCls:Gt,popupTransitionName:lr,popup:reactExports.createElement("div",{ref:pr,onMouseEnter:Vt},Xt),stretch:cr,popupAlign:Nt,popupVisible:ct,getPopupContainer:kt,popupClassName:classNames(_t,_defineProperty$c({},"".concat(Gt,"-empty"),Ft)),popupStyle:ur,getTriggerDOMNode:Ht,onPopupVisibleChange:Wt}),ut)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey$1(_e,et){var rt=_e.key,st;return"value"in _e&&(st=_e.value),rt??(st!==void 0?st:"rc-index-key-".concat(et))}function fillFieldNames$2(_e,et){var rt=_e||{},st=rt.label,ct=rt.value,ut=rt.options,ft=rt.groupLabel,gt=st||(et?"children":"label");return{label:gt,value:ct||"value",options:ut||"options",groupLabel:ft||gt}}function flattenOptions(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$2(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$1(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$1(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext=reactExports.createContext(null),_excluded$T=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(et){return et==="tags"||et==="multiple"},BaseSelect=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Gt=_e.onDropdownVisibleChange,Xt=_e.activeValue,Zt=_e.onActiveValueChange,lr=_e.activeDescendantId,er=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,pr=_e.onSearchSplit,hr=_e.tokenSeparators,fr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,$r=_e.OptionList,Er=_e.animation,mr=_e.transitionName,Sr=_e.dropdownStyle,Tr=_e.dropdownClassName,jr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,_r=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,Mr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,wr=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$T),Kr=isMultiple(Nt),zr=(gt!==void 0?gt:Kr)||Nt==="combobox",qr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS.forEach(function(Fn){delete qr[Fn]}),_t==null||_t.forEach(function(Fn){delete qr[Fn]});var pn=reactExports.useState(!1),Qr=_slicedToArray$3(pn,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),br=reactExports.useRef(null),Hr=reactExports.useRef(null),Vr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset(),cn=_slicedToArray$3(Gr,3),mn=cn[0],hn=cn[1],En=cn[2];reactExports.useImperativeHandle(et,function(){var Fn,kn;return{focus:(Fn=Hr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(kn=Hr.current)===null||kn===void 0?void 0:kn.blur,scrollTo:function(Eo){var so;return(so=Vr.current)===null||so===void 0?void 0:so.scrollTo(Eo)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return er;var kn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof kn=="string"||typeof kn=="number"?String(kn):""},[er,Nt,wt]),Dn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),qn=reactExports.useState(!1),ao=_slicedToArray$3(qn,2),dn=ao[0],gn=ao[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),wn=_slicedToArray$3(yn,2),Tn=wn[0],Nn=wn[1],On=dn?Tn:!1,xn=!At&&Rt;(kt||xn&&On&&Nt==="combobox")&&(On=!1);var Cn=xn?!1:On,Sn=reactExports.useCallback(function(Fn){var kn=Fn!==void 0?Fn:!On;kt||(Nn(kn),On!==kn&&(Gt==null||Gt(kn)))},[kt,On,Nn,Gt]),Mn=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${rt}-tooltip-inner`]:{minWidth:"unset"}})}},genDirectionStyle=(_e,et)=>{const{componentCls:rt,railSize:st,handleSize:ct,dotSize:ut,marginFull:ft,calc:gt}=_e,xt=et?"paddingBlock":"paddingInline",$t=et?"width":"height",_t=et?"height":"width",wt=et?"insetBlockStart":"insetInlineStart",Tt=et?"top":"insetInlineStart",Rt=gt(st).mul(3).sub(ct).div(2).equal(),It=gt(ct).sub(st).div(2).equal(),At=et?{borderWidth:`${unit$1(It)} 0`,transform:`translateY(${unit$1(gt(It).mul(-1).equal())})`}:{borderWidth:`0 ${unit$1(It)}`,transform:`translateX(${unit$1(_e.calc(It).mul(-1).equal())})`};return{[xt]:st,[_t]:gt(st).mul(3).equal(),[`${rt}-rail`]:{[$t]:"100%",[_t]:st},[`${rt}-track,${rt}-tracks`]:{[_t]:st},[`${rt}-track-draggable`]:Object.assign({},At),[`${rt}-handle`]:{[wt]:Rt},[`${rt}-mark`]:{insetInlineStart:0,top:0,[Tt]:gt(st).mul(3).add(et?0:ft).equal(),[$t]:"100%"},[`${rt}-step`]:{insetInlineStart:0,top:0,[Tt]:st,[$t]:"100%",[_t]:st},[`${rt}-dot`]:{position:"absolute",[wt]:gt(st).sub(ut).div(2).equal()}}},genHorizontalStyle=_e=>{const{componentCls:et,marginPartWithMark:rt}=_e;return{[`${et}-horizontal`]:Object.assign(Object.assign({},genDirectionStyle(_e,!0)),{[`&${et}-with-marks`]:{marginBottom:rt}})}},genVerticalStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-vertical`]:Object.assign(Object.assign({},genDirectionStyle(_e,!1)),{height:"100%"})}},prepareComponentToken$3=_e=>{const rt=_e.controlHeightLG/4,st=_e.controlHeightSM/2,ct=_e.lineWidth+1,ut=_e.lineWidth+1*3;return{controlSize:rt,railSize:4,handleSize:rt,handleSizeHover:st,dotSize:8,handleLineWidth:ct,handleLineWidthHover:ut,railBg:_e.colorFillTertiary,railHoverBg:_e.colorFillSecondary,trackBg:_e.colorPrimaryBorder,trackHoverBg:_e.colorPrimaryBorderHover,handleColor:_e.colorPrimaryBorder,handleActiveColor:_e.colorPrimary,handleColorDisabled:new TinyColor(_e.colorTextDisabled).onBackground(_e.colorBgContainer).toHexShortString(),dotBorderColor:_e.colorBorderSecondary,dotActiveBorderColor:_e.colorPrimaryBorder,trackBgDisabled:_e.colorBgContainerDisabled}},useStyle$l=genStyleHooks("Slider",_e=>{const et=merge$7(_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[genBaseStyle$3(et),genHorizontalStyle(et),genVerticalStyle(et)]},prepareComponentToken$3);var __rest$6=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);cttypeof rt=="number"?rt.toString():""}const Slider=React$1.forwardRef((_e,et)=>{const{prefixCls:rt,range:st,className:ct,rootClassName:ut,style:ft,disabled:gt,tooltipPrefixCls:xt,tipFormatter:$t,tooltipVisible:_t,getTooltipPopupContainer:wt,tooltipPlacement:Tt}=_e,Rt=__rest$6(_e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:It,slider:At,getPrefixCls:jt,getPopupContainer:Nt}=React$1.useContext(ConfigContext$1),kt=React$1.useContext(DisabledContext$2),Ft=gt??kt,[Ht,Wt]=React$1.useState({}),Vt=(pr,dr)=>{Wt(yr=>Object.assign(Object.assign({},yr),{[pr]:dr}))},qt=(pr,dr)=>pr||(dr?It==="rtl"?"left":"right":"top"),Xt=jt("slider",rt),[Gt,Zt,er]=useStyle$l(Xt),lr=classNames(ct,At==null?void 0:At.className,ut,{[`${Xt}-rtl`]:It==="rtl"},Zt,er);It==="rtl"&&!Rt.vertical&&(Rt.reverse=!Rt.reverse);const[cr,ur]=React$1.useMemo(()=>st?typeof st=="object"?[!0,st.draggableTrack]:[!0,!1]:[!1],[st]),fr=(pr,dr)=>{var yr;const{index:Sr,dragging:br}=dr,{tooltip:mr={},vertical:Er}=_e,Tr=Object.assign({},mr),{open:Mr,placement:Or,getPopupContainer:wr,prefixCls:Cr,formatter:Nr}=Tr,Rr=getTipFormatter(Nr,$t),Pr=Rr?Ht[Sr]||br:!1,jr=(yr=Mr??_t)!==null&&yr!==void 0?yr:Mr===void 0&&Pr,kr=Object.assign(Object.assign({},pr.props),{onMouseEnter:()=>Vt(Sr,!0),onMouseLeave:()=>Vt(Sr,!1),onFocus:Fr=>{var _r;Vt(Sr,!0),(_r=Rt.onFocus)===null||_r===void 0||_r.call(Rt,Fr)},onBlur:Fr=>{var _r;Vt(Sr,!1),(_r=Rt.onBlur)===null||_r===void 0||_r.call(Rt,Fr)}});return React$1.createElement(SliderTooltip$1,Object.assign({},Tr,{prefixCls:jt("tooltip",Cr??xt),title:Rr?Rr(dr.value):"",open:jr,placement:qt(Or??Tt,Er),key:Sr,overlayClassName:`${Xt}-tooltip`,getPopupContainer:wr||wt||Nt}),React$1.cloneElement(pr,kr))},hr=Object.assign(Object.assign({},At==null?void 0:At.style),ft);return Gt(React$1.createElement(Slider$2,Object.assign({},Rt,{step:Rt.step,range:cr,draggableTrack:ur,className:lr,style:hr,disabled:Ft,ref:et,prefixCls:Xt,handleRender:fr})))}),Slider$1=Slider;var _excluded$V=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=reactExports.forwardRef(function(_e,et){var rt,st=_e.prefixCls,ct=st===void 0?"rc-switch":st,ut=_e.className,ft=_e.checked,gt=_e.defaultChecked,xt=_e.disabled,$t=_e.loadingIcon,_t=_e.checkedChildren,wt=_e.unCheckedChildren,Tt=_e.onClick,Rt=_e.onChange,It=_e.onKeyDown,At=_objectWithoutProperties$2(_e,_excluded$V),jt=useMergedState(!1,{value:ft,defaultValue:gt}),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1];function Ht(Xt,Gt){var Zt=kt;return xt||(Zt=Xt,Ft(Zt),Rt==null||Rt(Zt,Gt)),Zt}function Wt(Xt){Xt.which===KeyCode.LEFT?Ht(!1,Xt):Xt.which===KeyCode.RIGHT&&Ht(!0,Xt),It==null||It(Xt)}function Vt(Xt){var Gt=Ht(!kt,Xt);Tt==null||Tt(Gt,Xt)}var qt=classNames(ct,ut,(rt={},_defineProperty$c(rt,"".concat(ct,"-checked"),kt),_defineProperty$c(rt,"".concat(ct,"-disabled"),xt),rt));return reactExports.createElement("button",_extends$b({},At,{type:"button",role:"switch","aria-checked":kt,disabled:xt,className:qt,ref:et,onKeyDown:Wt,onClick:Vt}),$t,reactExports.createElement("span",{className:"".concat(ct,"-inner")},reactExports.createElement("span",{className:"".concat(ct,"-inner-checked")},_t),reactExports.createElement("span",{className:"".concat(ct,"-inner-unchecked")},wt)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=_e=>{const{componentCls:et,trackHeightSM:rt,trackPadding:st,trackMinWidthSM:ct,innerMinMarginSM:ut,innerMaxMarginSM:ft,handleSizeSM:gt,calc:xt}=_e,$t=`${et}-inner`,_t=unit$1(xt(gt).add(xt(st).mul(2)).equal()),wt=unit$1(xt(ft).mul(2).equal());return{[et]:{[`&${et}-small`]:{minWidth:ct,height:rt,lineHeight:unit$1(rt),[`${et}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:ut,[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${_t} - ${wt})`,marginInlineEnd:`calc(100% - ${_t} + ${wt})`},[`${$t}-unchecked`]:{marginTop:xt(rt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${et}-handle`]:{width:gt,height:gt},[`${et}-loading-icon`]:{top:xt(xt(gt).sub(_e.switchLoadingIconSize)).div(2).equal(),fontSize:_e.switchLoadingIconSize},[`&${et}-checked`]:{[`${et}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:ft,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${_t} + ${wt})`,marginInlineEnd:`calc(-100% + ${_t} - ${wt})`}},[`${et}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(xt(gt).add(st).equal())})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:xt(_e.marginXXS).div(2).equal(),marginInlineEnd:xt(_e.marginXXS).mul(-1).div(2).equal()}},[`&${et}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:xt(_e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:xt(_e.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=_e=>{const{componentCls:et,handleSize:rt,calc:st}=_e;return{[et]:{[`${et}-loading-icon${_e.iconCls}`]:{position:"relative",top:st(st(rt).sub(_e.fontSize)).div(2).equal(),color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${et}-checked ${et}-loading-icon`]:{color:_e.switchColor}}}},genSwitchHandleStyle=_e=>{const{componentCls:et,trackPadding:rt,handleBg:st,handleShadow:ct,handleSize:ut,calc:ft}=_e,gt=`${et}-handle`;return{[et]:{[gt]:{position:"absolute",top:rt,insetInlineStart:rt,width:ut,height:ut,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:st,borderRadius:ft(ut).div(2).equal(),boxShadow:ct,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${et}-checked ${gt}`]:{insetInlineStart:`calc(100% - ${unit$1(ft(ut).add(rt).equal())})`},[`&:not(${et}-disabled):active`]:{[`${gt}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${et}-checked ${gt}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}}}},genSwitchInnerStyle=_e=>{const{componentCls:et,trackHeight:rt,trackPadding:st,innerMinMargin:ct,innerMaxMargin:ut,handleSize:ft,calc:gt}=_e,xt=`${et}-inner`,$t=unit$1(gt(ft).add(gt(st).mul(2)).equal()),_t=unit$1(gt(ut).mul(2).equal());return{[et]:{[xt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ut,paddingInlineEnd:ct,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${xt}-checked, ${xt}-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"},[`${xt}-checked`]:{marginInlineStart:`calc(-100% + ${$t} - ${_t})`,marginInlineEnd:`calc(100% - ${$t} + ${_t})`},[`${xt}-unchecked`]:{marginTop:gt(rt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${et}-checked ${xt}`]:{paddingInlineStart:ct,paddingInlineEnd:ut,[`${xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xt}-unchecked`]:{marginInlineStart:`calc(100% - ${$t} + ${_t})`,marginInlineEnd:`calc(-100% + ${$t} - ${_t})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${xt}`]:{[`${xt}-unchecked`]:{marginInlineStart:gt(st).mul(2).equal(),marginInlineEnd:gt(st).mul(-1).mul(2).equal()}},[`&${et}-checked ${xt}`]:{[`${xt}-checked`]:{marginInlineStart:gt(st).mul(-1).mul(2).equal(),marginInlineEnd:gt(st).mul(2).equal()}}}}}},genSwitchStyle=_e=>{const{componentCls:et,trackHeight:rt,trackMinWidth:st}=_e;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent$1(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:st,height:rt,lineHeight:`${unit$1(rt)}`,verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${et}-disabled)`]:{background:_e.colorTextTertiary}}),genFocusStyle(_e)),{[`&${et}-checked`]:{background:_e.switchColor,[`&:hover:not(${et}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${et}-loading, &${et}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${et}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$2=_e=>{const{fontSize:et,lineHeight:rt,controlHeight:st,colorWhite:ct}=_e,ut=et*rt,ft=st/2,gt=2,xt=ut-gt*2,$t=ft-gt*2;return{trackHeight:ut,trackHeightSM:ft,trackMinWidth:xt*2+gt*4,trackMinWidthSM:$t*2+gt*2,trackPadding:gt,handleBg:ct,handleSize:xt,handleSizeSM:$t,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:xt/2,innerMaxMargin:xt+gt+gt*2,innerMinMarginSM:$t/2,innerMaxMarginSM:$t+gt+gt*2}},useStyle$k=genStyleHooks("Switch",_e=>{const et=merge$7(_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[genSwitchStyle(et),genSwitchInnerStyle(et),genSwitchHandleStyle(et),genSwitchLoadingStyle(et),genSwitchSmallStyle(et)]},prepareComponentToken$2);var __rest$5=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{const{prefixCls:rt,size:st,disabled:ct,loading:ut,className:ft,rootClassName:gt,style:xt,checked:$t,value:_t,defaultChecked:wt,defaultValue:Tt,onChange:Rt}=_e,It=__rest$5(_e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[At,jt]=useMergedState(!1,{value:$t??_t,defaultValue:wt??Tt}),{getPrefixCls:Nt,direction:kt,switch:Ft}=reactExports.useContext(ConfigContext$1),Ht=reactExports.useContext(DisabledContext$2),Wt=(ct??Ht)||ut,Vt=Nt("switch",rt),qt=reactExports.createElement("div",{className:`${Vt}-handle`},ut&&reactExports.createElement(LoadingOutlined$3,{className:`${Vt}-loading-icon`})),[Xt,Gt,Zt]=useStyle$k(Vt),er=useSize(st),lr=classNames(Ft==null?void 0:Ft.className,{[`${Vt}-small`]:er==="small",[`${Vt}-loading`]:ut,[`${Vt}-rtl`]:kt==="rtl"},ft,gt,Gt,Zt),cr=Object.assign(Object.assign({},Ft==null?void 0:Ft.style),xt),ur=function(){jt(arguments.length<=0?void 0:arguments[0]),Rt==null||Rt.apply(void 0,arguments)};return Xt(reactExports.createElement(Wave$1,{component:"Switch"},reactExports.createElement(Switch$2,Object.assign({},It,{checked:At,onChange:ur,prefixCls:Vt,className:lr,style:cr,disabled:Wt,ref:et,loadingIcon:qt}))))});Switch.__ANT_SWITCH=!0;const Switch$1=Switch;function _objectDestructuringEmpty(_e){if(_e==null)throw new TypeError("Cannot destructure "+_e)}var FileOutlined$2={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"};const FileOutlinedSvg=FileOutlined$2;var FileOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:FileOutlinedSvg}))};const FileOutlined$1=reactExports.forwardRef(FileOutlined),treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(_e,et)=>({[`.${_e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),getDropIndicatorStyle=(_e,et)=>({[`.${_e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(et.lineWidthBold)} solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(_e,et)=>{const{treeCls:rt,treeNodeCls:st,treeNodePadding:ct,titleHeight:ut,nodeSelectedBg:ft,nodeHoverBg:gt}=et,xt=et.paddingXS;return{[rt]:Object.assign(Object.assign({},resetComponent$1(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${rt}-rtl`]:{[`${rt}-switcher`]:{"&_close":{[`${rt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${rt}-active-focused)`]:Object.assign({},genFocusOutline(et)),[`${rt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${rt}-block-node`]:{[`${rt}-list-holder-inner`]:{alignItems:"stretch",[`${rt}-node-content-wrapper`]:{flex:"auto"},[`${st}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ct,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${st}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${unit$1(ct)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${rt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${rt}-node-content-wrapper`]:{background:et.controlItemBgHover},[`&:not(${st}-disabled).filter-node ${rt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${rt}-draggable-icon`]:{flexShrink:0,width:ut,lineHeight:`${unit$1(ut)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${st}:hover &`]:{opacity:.45}},[`&${st}-disabled`]:{[`${rt}-draggable-icon`]:{visibility:"hidden"}}}},[`${rt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ut}},[`${rt}-draggable-icon`]:{visibility:"hidden"},[`${rt}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(_e,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ut,margin:0,lineHeight:`${unit$1(ut)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${et.motionDurationSlow}`,borderRadius:et.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${rt}-switcher-noop):hover`]:{backgroundColor:et.colorBgTextHover},"&_close":{[`${rt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:et.calc(ut).div(2).equal(),bottom:et.calc(ct).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:et.calc(et.calc(ut).div(2).equal()).mul(.8).equal(),height:et.calc(ut).div(2).equal(),borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${rt}-checkbox`]:{top:"initial",marginInlineEnd:xt,alignSelf:"flex-start",marginTop:et.marginXXS},[`${rt}-node-content-wrapper, ${rt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ut,margin:0,padding:`0 ${unit$1(et.calc(et.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${unit$1(ut)}`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:gt},[`&${rt}-node-selected`]:{backgroundColor:ft},[`${rt}-iconEle`]:{display:"inline-block",width:ut,height:ut,lineHeight:`${unit$1(ut)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${rt}-unselectable ${rt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${rt}-node-content-wrapper`]:Object.assign({lineHeight:`${unit$1(ut)}`,userSelect:"none"},getDropIndicatorStyle(_e,et)),[`${st}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${rt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:et.calc(ut).div(2).equal(),bottom:et.calc(ct).mul(-1).equal(),borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${rt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${st}-leaf-last`]:{[`${rt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${unit$1(et.calc(ut).div(2).equal())} !important`}}}}})}},genDirectoryStyle=_e=>{const{treeCls:et,treeNodeCls:rt,treeNodePadding:st,directoryNodeSelectedBg:ct,directoryNodeSelectedColor:ut}=_e;return{[`${et}${et}-directory`]:{[rt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,transition:`background-color ${_e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:_e.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${_e.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ut,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ct},[`${et}-switcher`]:{color:ut},[`${et}-node-content-wrapper`]:{color:ut,background:"transparent"}}}}}},genTreeStyle=(_e,et)=>{const rt=`.${_e}`,st=`${rt}-treenode`,ct=et.calc(et.paddingXS).div(2).equal(),ut=merge$7(et,{treeCls:rt,treeNodeCls:st,treeNodePadding:ct});return[genBaseStyle$2(_e,ut),genDirectoryStyle(ut)]},initComponentToken=_e=>{const{controlHeightSM:et}=_e;return{titleHeight:et,nodeHoverBg:_e.controlItemBgHover,nodeSelectedBg:_e.controlItemBgActive}},prepareComponentToken$1=_e=>{const{colorTextLightSolid:et,colorPrimary:rt}=_e;return Object.assign(Object.assign({},initComponentToken(_e)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:rt})};genStyleHooks("Tree",(_e,et)=>{let{prefixCls:rt}=et;return[{[_e.componentCls]:getStyle$1(`${rt}-checkbox`,_e)},genTreeStyle(rt,_e),genCollapseMotion(_e)]},prepareComponentToken$1);var CaretDownFilled$2={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"};const CaretDownFilledSvg=CaretDownFilled$2;var CaretDownFilled=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:CaretDownFilledSvg}))};const CaretDownFilled$1=reactExports.forwardRef(CaretDownFilled);var MinusSquareOutlined$2={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"};const MinusSquareOutlinedSvg=MinusSquareOutlined$2;var MinusSquareOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:MinusSquareOutlinedSvg}))};const MinusSquareOutlined$1=reactExports.forwardRef(MinusSquareOutlined);var PlusSquareOutlined$2={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"};const PlusSquareOutlinedSvg=PlusSquareOutlined$2;var PlusSquareOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PlusSquareOutlinedSvg}))};const PlusSquareOutlined$1=reactExports.forwardRef(PlusSquareOutlined),SwitcherIconCom=_e=>{const{prefixCls:et,switcherIcon:rt,treeNodeProps:st,showLine:ct}=_e,{isLeaf:ut,expanded:ft,loading:gt}=st;if(gt)return reactExports.createElement(LoadingOutlined$3,{className:`${et}-switcher-loading-icon`});let xt;if(ct&&typeof ct=="object"&&(xt=ct.showLeafIcon),ut){if(!ct)return null;if(typeof xt!="boolean"&&xt){const wt=typeof xt=="function"?xt(st):xt,Tt=`${et}-switcher-line-custom-icon`;return isValidElement(wt)?cloneElement(wt,{className:classNames(wt.props.className||"",Tt)}):wt}return xt?reactExports.createElement(FileOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement("span",{className:`${et}-switcher-leaf-line`})}const $t=`${et}-switcher-icon`,_t=typeof rt=="function"?rt(st):rt;return isValidElement(_t)?cloneElement(_t,{className:classNames(_t.props.className||"",$t)}):_t!==void 0?_t:ct?ft?reactExports.createElement(MinusSquareOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement(PlusSquareOutlined$1,{className:`${et}-switcher-line-icon`}):reactExports.createElement(CaretDownFilled$1,{className:$t})},SwitcherIconCom$1=SwitcherIconCom,getDesignToken=_e=>{const et=_e!=null&&_e.algorithm?createTheme(_e.algorithm):createTheme(derivative$2),rt=Object.assign(Object.assign({},seedToken),_e==null?void 0:_e.token);return getComputedToken$1(rt,{override:_e==null?void 0:_e.token},et,formatToken)},getDesignToken$1=getDesignToken;function genSizeMapToken$1(_e){const{sizeUnit:et,sizeStep:rt}=_e,st=rt-2;return{sizeXXL:et*(st+10),sizeXL:et*(st+6),sizeLG:et*(st+2),sizeMD:et*(st+2),sizeMS:et*(st+1),size:et*st,sizeSM:et*st,sizeXS:et*(st-1),sizeXXS:et*(st-1)}}const derivative$1=(_e,et)=>{const rt=et??derivative$2(_e),st=rt.fontSizeSM,ct=rt.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rt),genSizeMapToken$1(et??_e)),genFontMapToken$1(st)),{controlHeight:ct}),genControlHeight$1(Object.assign(Object.assign({},rt),{controlHeight:ct})))},compactAlgorithm=derivative$1,getAlphaColor$1=(_e,et)=>new TinyColor(_e).setAlpha(et).toRgbString(),getSolidColor=(_e,et)=>new TinyColor(_e).lighten(et).toHexString(),generateColorPalettes=_e=>{const et=generate$b(_e,{theme:"dark"});return{1:et[0],2:et[1],3:et[2],4:et[3],5:et[6],6:et[5],7:et[4],8:et[6],9:et[5],10:et[4]}},generateNeutralColorPalettes=(_e,et)=>{const rt=_e||"#000",st=et||"#fff";return{colorBgBase:rt,colorTextBase:st,colorText:getAlphaColor$1(st,.85),colorTextSecondary:getAlphaColor$1(st,.65),colorTextTertiary:getAlphaColor$1(st,.45),colorTextQuaternary:getAlphaColor$1(st,.25),colorFill:getAlphaColor$1(st,.18),colorFillSecondary:getAlphaColor$1(st,.12),colorFillTertiary:getAlphaColor$1(st,.08),colorFillQuaternary:getAlphaColor$1(st,.04),colorBgElevated:getSolidColor(rt,12),colorBgContainer:getSolidColor(rt,8),colorBgLayout:getSolidColor(rt,0),colorBgSpotlight:getSolidColor(rt,26),colorBgBlur:getAlphaColor$1(st,.04),colorBorder:getSolidColor(rt,26),colorBorderSecondary:getSolidColor(rt,19)}},derivative=(_e,et)=>{const rt=Object.keys(defaultPresetColors).map(ct=>{const ut=generate$b(_e[ct],{theme:"dark"});return new Array(10).fill(1).reduce((ft,gt,xt)=>(ft[`${ct}-${xt+1}`]=ut[xt],ft[`${ct}${xt+1}`]=ut[xt],ft),{})}).reduce((ct,ut)=>(ct=Object.assign(Object.assign({},ct),ut),ct),{}),st=et??derivative$2(_e);return Object.assign(Object.assign(Object.assign({},st),rt),genColorMapToken$1(_e,{generateColorPalettes,generateNeutralColorPalettes}))},darkAlgorithm$1=derivative;function useToken$3(){const[_e,et,rt]=useToken$4();return{theme:_e,token:et,hashId:rt}}const theme={defaultConfig:defaultConfig$1,defaultSeed:defaultConfig$1.token,useToken:useToken$3,defaultAlgorithm:derivative$2,darkAlgorithm:darkAlgorithm$1,compactAlgorithm,getDesignToken:getDesignToken$1};var __rest$4=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctreactExports.createElement(InternalRangePicker,Object.assign({},_e,{picker:"time",mode:void 0,ref:et}))),TimePicker$1=reactExports.forwardRef((_e,et)=>{var{addon:rt,renderExtraFooter:st}=_e,ct=__rest$4(_e,["addon","renderExtraFooter"]);const ut=reactExports.useMemo(()=>{if(st)return st;if(rt)return rt},[rt,st]);return reactExports.createElement(InternalTimePicker,Object.assign({},ct,{mode:void 0,ref:et,renderExtraFooter:ut}))}),PurePanel$1=genPurePanel(TimePicker$1,"picker");TimePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;TimePicker$1.RangePicker=RangePicker;TimePicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;const TimePicker$2=TimePicker$1;var DeleteOutlined$2={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"};const DeleteOutlinedSvg=DeleteOutlined$2;var DeleteOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DeleteOutlinedSvg}))};const DeleteOutlined$1=reactExports.forwardRef(DeleteOutlined);var TransBtn=function(et){var rt=et.className,st=et.customizeIcon,ct=et.customizeIconProps,ut=et.children,ft=et.onMouseDown,gt=et.onClick,xt=typeof st=="function"?st(ct):st;return reactExports.createElement("span",{className:rt,onMouseDown:function(_t){_t.preventDefault(),ft==null||ft(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gt,"aria-hidden":!0},xt!==void 0?xt:reactExports.createElement("span",{className:classNames(rt.split(/\s+/).map(function($t){return"".concat($t,"-icon")}))},ut))},useAllowClear=function(et,rt,st,ct,ut){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gt=arguments.length>6?arguments[6]:void 0,xt=arguments.length>7?arguments[7]:void 0,$t=React$1.useMemo(function(){if(_typeof$e(ct)==="object")return ct.clearIcon;if(ut)return ut},[ct,ut]),_t=React$1.useMemo(function(){return!!(!ft&&ct&&(st.length||gt)&&!(xt==="combobox"&>===""))},[ct,ft,st.length,gt,xt]);return{allowClear:_t,clearIcon:React$1.createElement(TransBtn,{className:"".concat(et,"-clear"),onMouseDown:rt,customizeIcon:$t},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=reactExports.useState(!1),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1],ut=reactExports.useRef(null),ft=function(){window.clearTimeout(ut.current)};reactExports.useEffect(function(){return ft},[]);var gt=function($t,_t){ft(),ut.current=window.setTimeout(function(){ct($t),_t&&_t()},_e)};return[st,gt,ft]}function useLock(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=reactExports.useRef(null),rt=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function st(ct){(ct||et.current===null)&&(et.current=ct),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){et.current=null},_e)}return[function(){return et.current},st]}function useSelectTriggerControl(_e,et,rt,st){var ct=reactExports.useRef(null);ct.current={open:et,triggerOpen:rt,customizedTrigger:st},reactExports.useEffect(function(){function ut(ft){var gt;if(!((gt=ct.current)!==null&>!==void 0&>.customizedTrigger)){var xt=ft.target;xt.shadowRoot&&ft.composed&&(xt=ft.composedPath()[0]||xt),ct.current.open&&_e().filter(function($t){return $t}).every(function($t){return!$t.contains(xt)&&$t!==xt})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ut),function(){return window.removeEventListener("mousedown",ut)}},[])}var Input$1=function(et,rt){var st,ct=et.prefixCls,ut=et.id,ft=et.inputElement,gt=et.disabled,xt=et.tabIndex,$t=et.autoFocus,_t=et.autoComplete,wt=et.editable,Tt=et.activeDescendantId,Rt=et.value,It=et.maxLength,At=et.onKeyDown,jt=et.onMouseDown,Nt=et.onChange,kt=et.onPaste,Ft=et.onCompositionStart,Ht=et.onCompositionEnd,Wt=et.open,Vt=et.attrs,qt=ft||reactExports.createElement("input",null),Xt=qt,Gt=Xt.ref,Zt=Xt.props,er=Zt.onKeyDown,lr=Zt.onChange,cr=Zt.onMouseDown,ur=Zt.onCompositionStart,fr=Zt.onCompositionEnd,hr=Zt.style;return"maxLength"in qt.props,qt=reactExports.cloneElement(qt,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},Zt),{},{id:ut,ref:composeRef(rt,Gt),disabled:gt,tabIndex:xt,autoComplete:_t||"off",autoFocus:$t,className:classNames("".concat(ct,"-selection-search-input"),(st=qt)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":Wt?Tt:void 0},Vt),{},{value:wt?Rt:"",maxLength:It,readOnly:!wt,unselectable:wt?null:"on",style:_objectSpread2(_objectSpread2({},hr),{},{opacity:wt?null:0}),onKeyDown:function(dr){At(dr),er&&er(dr)},onMouseDown:function(dr){jt(dr),cr&&cr(dr)},onChange:function(dr){Nt(dr),lr&&lr(dr)},onCompositionStart:function(dr){Ft(dr),ur&&ur(dr)},onCompositionEnd:function(dr){Ht(dr),fr&&fr(dr)},onPaste:kt})),qt},RefInput=reactExports.forwardRef(Input$1);function toArray$6(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$1=isClient;function hasValue(_e){return _e!=null}function isComboNoValue(_e){return!_e&&_e!==0}function isTitleType$1(_e){return["string","number"].includes(_typeof$e(_e))}function getTitle(_e){var et=void 0;return _e&&(isTitleType$1(_e.title)?et=_e.title.toString():isTitleType$1(_e.label)&&(et=_e.label.toString())),et}function useLayoutEffect(_e,et){isBrowserClient$1?reactExports.useLayoutEffect(_e,et):reactExports.useEffect(_e,et)}function itemKey$1(_e){var et;return(et=_e.key)!==null&&et!==void 0?et:_e.value}var onPreventMouseDown=function(et){et.preventDefault(),et.stopPropagation()},SelectSelector=function(et){var rt=et.id,st=et.prefixCls,ct=et.values,ut=et.open,ft=et.searchValue,gt=et.autoClearSearchValue,xt=et.inputRef,$t=et.placeholder,_t=et.disabled,wt=et.mode,Tt=et.showSearch,Rt=et.autoFocus,It=et.autoComplete,At=et.activeDescendantId,jt=et.tabIndex,Nt=et.removeIcon,kt=et.maxTagCount,Ft=et.maxTagTextLength,Ht=et.maxTagPlaceholder,Wt=Ht===void 0?function(kr){return"+ ".concat(kr.length," ...")}:Ht,Vt=et.tagRender,qt=et.onToggleOpen,Xt=et.onRemove,Gt=et.onInputChange,Zt=et.onInputPaste,er=et.onInputKeyDown,lr=et.onInputMouseDown,cr=et.onInputCompositionStart,ur=et.onInputCompositionEnd,fr=reactExports.useRef(null),hr=reactExports.useState(0),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState(!1),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr="".concat(st,"-selection"),Mr=ut||wt==="multiple"&>===!1||wt==="tags"?ft:"",Or=wt==="tags"||wt==="multiple"&>===!1||Tt&&(ut||mr);useLayoutEffect(function(){yr(fr.current.scrollWidth)},[Mr]);var wr=function(Fr,_r,Br,Dr,Xr){return reactExports.createElement("span",{title:getTitle(Fr),className:classNames("".concat(Tr,"-item"),_defineProperty$c({},"".concat(Tr,"-item-disabled"),Br))},reactExports.createElement("span",{className:"".concat(Tr,"-item-content")},_r),Dr&&reactExports.createElement(TransBtn,{className:"".concat(Tr,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Xr,customizeIcon:Nt},"×"))},Cr=function(Fr,_r,Br,Dr,Xr){var Kr=function(Vr){onPreventMouseDown(Vr),qt(!ut)};return reactExports.createElement("span",{onMouseDown:Kr},Vt({label:_r,value:Fr,disabled:Br,closable:Dr,onClose:Xr}))},Nr=function(Fr){var _r=Fr.disabled,Br=Fr.label,Dr=Fr.value,Xr=!_t&&!_r,Kr=Br;if(typeof Ft=="number"&&(typeof Br=="string"||typeof Br=="number")){var Hr=String(Kr);Hr.length>Ft&&(Kr="".concat(Hr.slice(0,Ft),"..."))}var Vr=function(Qr){Qr&&Qr.stopPropagation(),Xt(Fr)};return typeof Vt=="function"?Cr(Dr,Kr,_r,Xr,Vr):wr(Fr,Kr,_r,Xr,Vr)},Rr=function(Fr){var _r=typeof Wt=="function"?Wt(Fr):Wt;return wr({title:_r},_r,!1)},Pr=reactExports.createElement("div",{className:"".concat(Tr,"-search"),style:{width:dr},onFocus:function(){Er(!0)},onBlur:function(){Er(!1)}},reactExports.createElement(RefInput,{ref:xt,open:ut,prefixCls:st,id:rt,inputElement:null,disabled:_t,autoFocus:Rt,autoComplete:It,editable:Or,activeDescendantId:At,value:Mr,onKeyDown:er,onMouseDown:lr,onChange:Gt,onPaste:Zt,onCompositionStart:cr,onCompositionEnd:ur,tabIndex:jt,attrs:pickAttrs(et,!0)}),reactExports.createElement("span",{ref:fr,className:"".concat(Tr,"-search-mirror"),"aria-hidden":!0},Mr," ")),jr=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Tr,"-overflow"),data:ct,renderItem:Nr,renderRest:Rr,suffix:Pr,itemKey:itemKey$1,maxCount:kt});return reactExports.createElement(reactExports.Fragment,null,jr,!ct.length&&!Mr&&reactExports.createElement("span",{className:"".concat(Tr,"-placeholder")},$t))},SingleSelector=function(et){var rt=et.inputElement,st=et.prefixCls,ct=et.id,ut=et.inputRef,ft=et.disabled,gt=et.autoFocus,xt=et.autoComplete,$t=et.activeDescendantId,_t=et.mode,wt=et.open,Tt=et.values,Rt=et.placeholder,It=et.tabIndex,At=et.showSearch,jt=et.searchValue,Nt=et.activeValue,kt=et.maxLength,Ft=et.onInputKeyDown,Ht=et.onInputMouseDown,Wt=et.onInputChange,Vt=et.onInputPaste,qt=et.onInputCompositionStart,Xt=et.onInputCompositionEnd,Gt=et.title,Zt=reactExports.useState(!1),er=_slicedToArray$3(Zt,2),lr=er[0],cr=er[1],ur=_t==="combobox",fr=ur||At,hr=Tt[0],pr=jt||"";ur&&Nt&&!lr&&(pr=Nt),reactExports.useEffect(function(){ur&&cr(!1)},[ur,Nt]);var dr=_t!=="combobox"&&!wt&&!At?!1:!!pr,yr=Gt===void 0?getTitle(hr):Gt,Sr=reactExports.useMemo(function(){return hr?null:reactExports.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Rt)},[hr,dr,Rt,st]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:"".concat(st,"-selection-search")},reactExports.createElement(RefInput,{ref:ut,prefixCls:st,id:ct,open:wt,inputElement:rt,disabled:ft,autoFocus:gt,autoComplete:xt,editable:fr,activeDescendantId:$t,value:pr,onKeyDown:Ft,onMouseDown:Ht,onChange:function(mr){cr(!0),Wt(mr)},onPaste:Vt,onCompositionStart:qt,onCompositionEnd:Xt,tabIndex:It,attrs:pickAttrs(et,!0),maxLength:ur?kt:void 0})),!ur&&hr?reactExports.createElement("span",{className:"".concat(st,"-selection-item"),title:yr,style:dr?{visibility:"hidden"}:void 0},hr.label):null,Sr)};function isValidateOpenKey(_e){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(_e)}var Selector=function(et,rt){var st=reactExports.useRef(null),ct=reactExports.useRef(!1),ut=et.prefixCls,ft=et.open,gt=et.mode,xt=et.showSearch,$t=et.tokenWithEnter,_t=et.autoClearSearchValue,wt=et.onSearch,Tt=et.onSearchSubmit,Rt=et.onToggleOpen,It=et.onInputKeyDown,At=et.domRef;reactExports.useImperativeHandle(rt,function(){return{focus:function(){st.current.focus()},blur:function(){st.current.blur()}}});var jt=useLock(0),Nt=_slicedToArray$3(jt,2),kt=Nt[0],Ft=Nt[1],Ht=function(pr){var dr=pr.which;(dr===KeyCode.UP||dr===KeyCode.DOWN)&&pr.preventDefault(),It&&It(pr),dr===KeyCode.ENTER&>==="tags"&&!ct.current&&!ft&&(Tt==null||Tt(pr.target.value)),isValidateOpenKey(dr)&&Rt(!0)},Wt=function(){Ft(!0)},Vt=reactExports.useRef(null),qt=function(pr){wt(pr,!0,ct.current)!==!1&&Rt(!0)},Xt=function(){ct.current=!0},Gt=function(pr){ct.current=!1,gt!=="combobox"&&qt(pr.target.value)},Zt=function(pr){var dr=pr.target.value;if($t&&Vt.current&&/[\r\n]/.test(Vt.current)){var yr=Vt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");dr=dr.replace(yr,Vt.current)}Vt.current=null,qt(dr)},er=function(pr){var dr=pr.clipboardData,yr=dr==null?void 0:dr.getData("text");Vt.current=yr||""},lr=function(pr){var dr=pr.target;if(dr!==st.current){var yr=document.body.style.msTouchAction!==void 0;yr?setTimeout(function(){st.current.focus()}):st.current.focus()}},cr=function(pr){var dr=kt();pr.target!==st.current&&!dr&>!=="combobox"&&pr.preventDefault(),(gt!=="combobox"&&(!xt||!dr)||!ft)&&(ft&&_t!==!1&&wt("",!0,!1),Rt())},ur={inputRef:st,onInputKeyDown:Ht,onInputMouseDown:Wt,onInputChange:Zt,onInputPaste:er,onInputCompositionStart:Xt,onInputCompositionEnd:Gt},fr=gt==="multiple"||gt==="tags"?reactExports.createElement(SelectSelector,_extends$b({},et,ur)):reactExports.createElement(SingleSelector,_extends$b({},et,ur));return reactExports.createElement("div",{ref:At,className:"".concat(ut,"-selector"),onClick:lr,onMouseDown:cr},fr)},ForwardSelector=reactExports.forwardRef(Selector),_excluded$U=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements=function(et){var rt=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(et,rt){var st=et.prefixCls;et.disabled;var ct=et.visible,ut=et.children,ft=et.popupElement,gt=et.animation,xt=et.transitionName,$t=et.dropdownStyle,_t=et.dropdownClassName,wt=et.direction,Tt=wt===void 0?"ltr":wt,Rt=et.placement,It=et.builtinPlacements,At=et.dropdownMatchSelectWidth,jt=et.dropdownRender,Nt=et.dropdownAlign,kt=et.getPopupContainer,Ft=et.empty,Ht=et.getTriggerDOMNode,Wt=et.onPopupVisibleChange,Vt=et.onPopupMouseEnter,qt=_objectWithoutProperties$2(et,_excluded$U),Xt="".concat(st,"-dropdown"),Gt=ft;jt&&(Gt=jt(ft));var Zt=reactExports.useMemo(function(){return It||getBuiltInPlacements(At)},[It,At]),er=gt?"".concat(Xt,"-").concat(gt):xt,lr=typeof At=="number",cr=reactExports.useMemo(function(){return lr?null:At===!1?"minWidth":"width"},[At,lr]),ur=$t;lr&&(ur=_objectSpread2(_objectSpread2({},ur),{},{width:At}));var fr=reactExports.useRef(null);return reactExports.useImperativeHandle(rt,function(){return{getPopupElement:function(){return fr.current}}}),reactExports.createElement(Trigger,_extends$b({},qt,{showAction:Wt?["click"]:[],hideAction:Wt?["click"]:[],popupPlacement:Rt||(Tt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zt,prefixCls:Xt,popupTransitionName:er,popup:reactExports.createElement("div",{ref:fr,onMouseEnter:Vt},Gt),stretch:cr,popupAlign:Nt,popupVisible:ct,getPopupContainer:kt,popupClassName:classNames(_t,_defineProperty$c({},"".concat(Xt,"-empty"),Ft)),popupStyle:ur,getTriggerDOMNode:Ht,onPopupVisibleChange:Wt}),ut)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey$1(_e,et){var rt=_e.key,st;return"value"in _e&&(st=_e.value),rt??(st!==void 0?st:"rc-index-key-".concat(et))}function fillFieldNames$2(_e,et){var rt=_e||{},st=rt.label,ct=rt.value,ut=rt.options,ft=rt.groupLabel,gt=st||(et?"children":"label");return{label:gt,value:ct||"value",options:ut||"options",groupLabel:ft||gt}}function flattenOptions(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=et.fieldNames,st=et.childrenAsData,ct=[],ut=fillFieldNames$2(rt,!1),ft=ut.label,gt=ut.value,xt=ut.options,$t=ut.groupLabel;function _t(wt,Tt){Array.isArray(wt)&&wt.forEach(function(Rt){if(Tt||!(xt in Rt)){var It=Rt[gt];ct.push({key:getKey$1(Rt,ct.length),groupOption:Tt,data:Rt,label:Rt[ft],value:It})}else{var At=Rt[$t];At===void 0&&st&&(At=Rt.label),ct.push({key:getKey$1(Rt,ct.length),group:!0,data:Rt,label:At}),_t(Rt[xt],!0)}})}return _t(_e,!1),ct}function injectPropsWithOption(_e){var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var getSeparatedContent=function(et,rt,st){if(!rt||!rt.length)return null;var ct=!1,ut=function gt(xt,$t){var _t=_toArray($t),wt=_t[0],Tt=_t.slice(1);if(!wt)return[xt];var Rt=xt.split(wt);return ct=ct||Rt.length>1,Rt.reduce(function(It,At){return[].concat(_toConsumableArray$3(It),_toConsumableArray$3(gt(At,Tt)))},[]).filter(Boolean)},ft=ut(et,rt);return ct?typeof st<"u"?ft.slice(0,st):ft:null},SelectContext=reactExports.createContext(null),_excluded$T=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(et){return et==="tags"||et==="multiple"},BaseSelect=reactExports.forwardRef(function(_e,et){var rt,st,ct=_e.id,ut=_e.prefixCls,ft=_e.className,gt=_e.showSearch,xt=_e.tagRender,$t=_e.direction,_t=_e.omitDomProps,wt=_e.displayValues,Tt=_e.onDisplayValuesChange,Rt=_e.emptyOptions,It=_e.notFoundContent,At=It===void 0?"Not Found":It,jt=_e.onClear,Nt=_e.mode,kt=_e.disabled,Ft=_e.loading,Ht=_e.getInputElement,Wt=_e.getRawInputElement,Vt=_e.open,qt=_e.defaultOpen,Xt=_e.onDropdownVisibleChange,Gt=_e.activeValue,Zt=_e.onActiveValueChange,er=_e.activeDescendantId,lr=_e.searchValue,cr=_e.autoClearSearchValue,ur=_e.onSearch,fr=_e.onSearchSplit,hr=_e.tokenSeparators,pr=_e.allowClear,dr=_e.suffixIcon,yr=_e.clearIcon,Sr=_e.OptionList,br=_e.animation,mr=_e.transitionName,Er=_e.dropdownStyle,Tr=_e.dropdownClassName,Mr=_e.dropdownMatchSelectWidth,Or=_e.dropdownRender,wr=_e.dropdownAlign,Cr=_e.placement,Nr=_e.builtinPlacements,Rr=_e.getPopupContainer,Pr=_e.showAction,jr=Pr===void 0?[]:Pr,kr=_e.onFocus,Fr=_e.onBlur,_r=_e.onKeyUp,Br=_e.onKeyDown,Dr=_e.onMouseDown,Xr=_objectWithoutProperties$2(_e,_excluded$T),Kr=isMultiple(Nt),Hr=(gt!==void 0?gt:Kr)||Nt==="combobox",Vr=_objectSpread2({},Xr);DEFAULT_OMIT_PROPS.forEach(function(Fn){delete Vr[Fn]}),_t==null||_t.forEach(function(Fn){delete Vr[Fn]});var ln=reactExports.useState(!1),Qr=_slicedToArray$3(ln,2),Zr=Qr[0],vn=Qr[1];reactExports.useEffect(function(){vn(isMobile())},[]);var vr=reactExports.useRef(null),gr=reactExports.useRef(null),$r=reactExports.useRef(null),zr=reactExports.useRef(null),qr=reactExports.useRef(null),Wr=reactExports.useRef(!1),Gr=useDelayReset(),dn=_slicedToArray$3(Gr,3),mn=dn[0],hn=dn[1],Cn=dn[2];reactExports.useImperativeHandle(et,function(){var Fn,Dn;return{focus:(Fn=zr.current)===null||Fn===void 0?void 0:Fn.focus,blur:(Dn=zr.current)===null||Dn===void 0?void 0:Dn.blur,scrollTo:function(To){var fo;return(fo=qr.current)===null||fo===void 0?void 0:fo.scrollTo(To)}}});var Rn=reactExports.useMemo(function(){var Fn;if(Nt!=="combobox")return lr;var Dn=(Fn=wt[0])===null||Fn===void 0?void 0:Fn.value;return typeof Dn=="string"||typeof Dn=="number"?String(Dn):""},[lr,Nt,wt]),kn=Nt==="combobox"&&typeof Ht=="function"&&Ht()||null,Bn=typeof Wt=="function"&&Wt(),Yn=useComposeRef(gr,Bn==null||(rt=Bn.props)===null||rt===void 0?void 0:rt.ref),Gn=reactExports.useState(!1),io=_slicedToArray$3(Gn,2),pn=io[0],gn=io[1];useLayoutEffect$3(function(){gn(!0)},[]);var yn=useMergedState(!1,{defaultValue:qt,value:Vt}),_n=_slicedToArray$3(yn,2),Tn=_n[0],Nn=_n[1],On=pn?Tn:!1,$n=!At&&Rt;(kt||$n&&On&&Nt==="combobox")&&(On=!1);var Sn=$n?!1:On,xn=reactExports.useCallback(function(Fn){var Dn=Fn!==void 0?Fn:!On;kt||(Nn(Dn),On!==Dn&&(Xt==null||Xt(Dn)))},[kt,On,Nn,Xt]),In=reactExports.useMemo(function(){return(hr||[]).some(function(Fn){return[` `,`\r -`].includes(Fn)})},[hr]),jn=reactExports.useContext(SelectContext)||{},Un=jn.maxCount,Gn=jn.rawValues,eo=function(kn,co,Eo){if(!((Gn==null?void 0:Gn.size)>=Un)){var so=!0,Xn=kn;Zt==null||Zt(null);var no=getSeparatedContent(kn,hr,Un&&Un-Gn.size),To=Eo?null:no;return Nt!=="combobox"&&To&&(Xn="",pr==null||pr(To),Sn(!1),so=!1),ur&&Rn!==Xn&&ur(Xn,{source:co?"typing":"effect"}),so}},io=function(kn){!kn||!kn.trim()||ur(kn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&eo("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Kn=useLock(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1],ln=function(kn){var co=zn(),Eo=kn.which;if(Eo===KeyCode.ENTER&&(Nt!=="combobox"&&kn.preventDefault(),On||Sn(!0)),_n(!!Rn),Eo===KeyCode.BACKSPACE&&!co&&Kr&&!Rn&&wt.length){for(var so=_toConsumableArray$3(wt),Xn=null,no=so.length-1;no>=0;no-=1){var To=so[no];if(!To.disabled){so.splice(no,1),Xn=To;break}}Xn&&Tt(so,{type:"remove",values:[Xn]})}for(var Po=arguments.length,Fo=new Array(Po>1?Po-1:0),fo=1;fo1?co-1:0),so=1;so1?no-1:0),Po=1;Po=It},[gt,It,Ht==null?void 0:Ht.size]),pr=function(Pr){Pr.preventDefault()},hr=function(Pr){var Mr;(Mr=cr.current)===null||Mr===void 0||Mr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},fr=function(Pr){for(var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=er.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;Er(Pr);var kr={source:Mr?"keyboard":"mouse"},Fr=er[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?fr(0):-1)},[er.length,$t]);var Sr=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var Mr=Array.from(Ht)[0],kr=er.findIndex(function(Fr){var wr=Fr.data;return wr.value===Mr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var Mr=Pr.which,kr=Pr.ctrlKey;switch(Mr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(Mr===KeyCode.UP?Fr=-1:Mr===KeyCode.DOWN?Fr=1:isPlatformMac()&&kr&&(Mr===KeyCode.N?Fr=1:Mr===KeyCode.P&&(Fr=-1)),Fr!==0){var wr=fr($r+Fr,Fr);hr(wr),mr(wr,!0)}break}case KeyCode.ENTER:{var Br,Dr=er[$r];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),er.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(lr,"-empty"),onMouseDown:pr},wt);var jr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function _r(Rr,Pr){var Mr=Rr.group;return{role:Mr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var Mr=er[Pr];if(!Mr)return null;var kr=Mr.data||{},Fr=kr.value,wr=Mr.group,Br=pickAttrs(kr,!0),Dr=Or(Mr);return Mr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!wr?Dr:null},Br,{key:Pr},_r(Mr,Pr),{"aria-selected":Sr(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr($r-1),Cr($r),Cr($r+1)),reactExports.createElement(List$1,{itemKey:"key",ref:cr,data:er,height:Gt,itemHeight:Xt,fullHeight:!1,onMouseDown:pr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var Mr,kr=Rr.group,Fr=Rr.groupOption,wr=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=wr.key;if(kr){var Kr,zr=(Kr=wr.title)!==null&&Kr!==void 0?Kr:isTitleType(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(lr,"".concat(lr,"-group")),title:zr},Br!==void 0?Br:Xr)}var qr=wr.disabled,pn=wr.title;wr.children;var Qr=wr.style,Zr=wr.className,vn=_objectWithoutProperties$2(wr,_excluded$S),vr=omit$2(vn,jr),gr=Sr(Dr),br=qr||!gr&&ur,Hr="".concat(lr,"-option"),Vr=classNames(lr,Hr,Zr,(Mr={},_defineProperty$c(Mr,"".concat(Hr,"-grouped"),Fr),_defineProperty$c(Mr,"".concat(Hr,"-active"),$r===Pr&&!br),_defineProperty$c(Mr,"".concat(Hr,"-disabled"),br),_defineProperty$c(Mr,"".concat(Hr,"-selected"),gr),Mr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,cn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType(cn)?cn.toString():void 0;return pn!==void 0&&(mn=pn),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:_r(Rr,Pr),{"aria-selected":gr,className:Vr,title:mn,onMouseMove:function(){$r===Pr||br||mr(Pr)},onClick:function(){br||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(Hr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):cn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn,{className:"".concat(lr,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:br,isSelected:gr}},gr?"✓":null))}))},RefOptionList$1=reactExports.forwardRef(OptionList$1);const useCache$1=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes(_e,et){return toArray$5(_e).join("").toUpperCase().includes(et)}const useFilterOptions=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes(It[ct],_t):It[ut]?includes(It[ft!=="children"?ft:"label"],_t):includes(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid=0,isBrowserClient=canUseDom$1();function getUUID(){var _e;return isBrowserClient?(_e=uuid,uuid+=1):_e="TEST_OR_SSR",_e}function useId(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID()))},[]),_e||st}var _excluded$R=["children","value"],_excluded2$e=["children"];function convertNodeToOption(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$R);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$d(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$e);return et||!ut?convertNodeToOption(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$1(xt)})}).filter(function(rt){return rt})}var useOptions=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$1(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},Mn=Sn.source,jn=Mn===void 0?"keyboard":Mn;qn(Cn),ft&&st==="combobox"&&xn!==null&&jn==="keyboard"&&Rn(String(xn))},[ft,st]),gn=function(Cn,Sn,Mn){var jn=function(){var Pn,An=Zr(Cn);return[dr?{label:An==null?void 0:An[Or.label],value:Cn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Cn}:Cn,injectPropsWithOption(An)]};if(Sn&&Rt){var Un=jn(),Gn=_slicedToArray$3(Un,2),eo=Gn[0],io=Gn[1];Rt(eo,io)}else if(!Sn&&It&&Mn!=="clear"){var Kn=jn(),Wn=_slicedToArray$3(Kn,2),zn=Wn[0],_n=Wn[1];It(zn,_n)}},yn=useRefFunc$1(function(xn,Cn){var Sn,Mn=Sr?Cn.selected:!0;Mn?Sn=Sr?[].concat(_toConsumableArray$3(Qr),[xn]):[xn]:Sn=Qr.filter(function(jn){return jn.value!==xn}),cn(Sn),gn(xn,Mn),st==="combobox"?Rn(""):(!isMultiple||Tt)&&(Rr(""),Rn(""))}),wn=function(Cn,Sn){cn(Cn);var Mn=Sn.type,jn=Sn.values;(Mn==="remove"||Mn==="clear")&&jn.forEach(function(Un){gn(Un.value,!1,Mn)})},Tn=function(Cn,Sn){if(Rr(Cn),Rn(null),Sn.source==="submit"){var Mn=(Cn||"").trim();if(Mn){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[Mn])));cn(jn),gn(Mn,!0),Rr("")}return}Sn.source!=="blur"&&(st==="combobox"&&cn(Cn),_t==null||_t(Cn))},Nn=function(Cn){var Sn=Cn;st!=="tags"&&(Sn=Cn.map(function(jn){var Un=kr.get(jn);return Un==null?void 0:Un.value}).filter(function(jn){return jn!==void 0}));var Mn=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(Sn))));cn(Mn),Mn.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var xn=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:dn,defaultActiveFirstOption:ao,onSelect:yn,menuItemSelectedIcon:Xt,rawValues:vr,fieldNames:Or,virtual:xn,direction:lr,listHeight:cr,listItemHeight:pr,childrenAsData:Tr,maxCount:$r,optionRender:Vt})},[$r,Pr,Gr,dn,ao,yn,Xt,vr,Or,Zt,jt,lr,cr,pr,Tr,Vt]);return reactExports.createElement(SelectContext.Provider,{value:On},reactExports.createElement(BaseSelect,_extends$b({},Er,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS,mode:st,displayValues:vn,onDisplayValuesChange:wn,direction:lr,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$1,emptyOptions:!Gr.length,activeValue:En,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect=Select;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getEntity(_e,et){return _e[et]}function removeFromCheckedKeys(_e,et){var rt=new Set;return _e.forEach(function(st){et.has(st)||rt.add(st)}),rt}function isCheckDisabled$1(_e){var et=_e||{},rt=et.disabled,st=et.disableCheckbox,ct=et.checkable;return!!(rt||st)||ct===!1}function fillConductCheck(_e,et,rt,st){for(var ct=new Set(_e),ut=new Set,ft=0;ft<=rt;ft+=1){var gt=et.get(ft)||new Set;gt.forEach(function(wt){var Tt=wt.key,Rt=wt.node,It=wt.children,At=It===void 0?[]:It;ct.has(Tt)&&!st(Rt)&&At.filter(function(jt){return!st(jt.node)}).forEach(function(jt){ct.add(jt.key)})})}for(var xt=new Set,$t=rt;$t>=0;$t-=1){var _t=et.get($t)||new Set;_t.forEach(function(wt){var Tt=wt.parent,Rt=wt.node;if(!(st(Rt)||!wt.parent||xt.has(wt.parent.key))){if(st(wt.parent.node)){xt.add(Tt.key);return}var It=!0,At=!1;(Tt.children||[]).filter(function(jt){return!st(jt.node)}).forEach(function(jt){var Nt=jt.key,kt=ct.has(Nt);It&&!kt&&(It=!1),!At&&(kt||ut.has(Nt))&&(At=!0)}),It&&ct.add(Tt.key),At&&ut.add(Tt.key),xt.add(Tt.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(removeFromCheckedKeys(ut,ct))}}function cleanConductCheck(_e,et,rt,st,ct){for(var ut=new Set(_e),ft=new Set(et),gt=0;gt<=st;gt+=1){var xt=rt.get(gt)||new Set;xt.forEach(function(Tt){var Rt=Tt.key,It=Tt.node,At=Tt.children,jt=At===void 0?[]:At;!ut.has(Rt)&&!ft.has(Rt)&&!ct(It)&&jt.filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){ut.delete(Nt.key)})})}ft=new Set;for(var $t=new Set,_t=st;_t>=0;_t-=1){var wt=rt.get(_t)||new Set;wt.forEach(function(Tt){var Rt=Tt.parent,It=Tt.node;if(!(ct(It)||!Tt.parent||$t.has(Tt.parent.key))){if(ct(Tt.parent.node)){$t.add(Rt.key);return}var At=!0,jt=!1;(Rt.children||[]).filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){var kt=Nt.key,Ft=ut.has(kt);At&&!Ft&&(At=!1),!jt&&(Ft||ft.has(kt))&&(jt=!0)}),At||ut.delete(Rt.key),jt&&ft.add(Rt.key),$t.add(Rt.key)}})}return{checkedKeys:Array.from(ut),halfCheckedKeys:Array.from(removeFromCheckedKeys(ft,ut))}}function conductCheck(_e,et,rt,st){var ct=[],ut;st?ut=st:ut=isCheckDisabled$1;var ft=new Set(_e.filter(function(_t){var wt=!!getEntity(rt,_t);return wt||ct.push(_t),wt})),gt=new Map,xt=0;Object.keys(rt).forEach(function(_t){var wt=rt[_t],Tt=wt.level,Rt=gt.get(Tt);Rt||(Rt=new Set,gt.set(Tt,Rt)),Rt.add(wt),xt=Math.max(xt,Tt)}),warningOnce$1(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(_t){return"'".concat(_t,"'")}).join(", ")));var $t;return et===!0?$t=fillConductCheck(ft,gt,xt,ut):$t=cleanConductCheck(ft,et.halfCheckedKeys,gt,xt,ut),$t}const useCache=function(_e){var et=reactExports.useRef({valueLabels:new Map});return reactExports.useMemo(function(){var rt=et.current.valueLabels,st=new Map,ct=_e.map(function(ut){var ft,gt=ut.value,xt=(ft=ut.label)!==null&&ft!==void 0?ft:rt.get(gt);return st.set(gt,xt),_objectSpread2(_objectSpread2({},ut),{},{label:xt})});return et.current.valueLabels=st,[ct]},[_e])},useCheckedKeys=function(_e,et,rt,st){return reactExports.useMemo(function(){var ct=_e.map(function(xt){var $t=xt.value;return $t}),ut=et.map(function(xt){var $t=xt.value;return $t}),ft=ct.filter(function(xt){return!st[xt]});if(rt){var gt=conductCheck(ct,!0,st);ct=gt.checkedKeys,ut=gt.halfCheckedKeys}return[Array.from(new Set([].concat(_toConsumableArray$3(ft),_toConsumableArray$3(ct)))),ut]},[_e,et,rt,st])};var _excluded$P=["children"];function getPosition(_e,et){return"".concat(_e,"-").concat(et)}function isTreeNode(_e){return _e&&_e.type&&_e.type.isTreeNode}function getKey(_e,et){return _e??et}function fillFieldNames$1(_e){var et=_e||{},rt=et.title,st=et._title,ct=et.key,ut=et.children,ft=rt||"title";return{title:ft,_title:st||[ft],key:ct||"key",children:ut||"children"}}function convertTreeToData(_e){function et(rt){var st=toArray$d(rt);return st.map(function(ct){if(!isTreeNode(ct))return warningOnce$1(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var ut=ct.key,ft=ct.props,gt=ft.children,xt=_objectWithoutProperties$2(ft,_excluded$P),$t=_objectSpread2({key:ut},xt),_t=et(gt);return _t.length&&($t.children=_t),$t}).filter(function(ct){return ct})}return et(_e)}function flattenTreeData(_e,et,rt){var st=fillFieldNames$1(rt),ct=st._title,ut=st.key,ft=st.children,gt=new Set(et===!0?[]:et),xt=[];function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _t.map(function(Tt,Rt){for(var It=getPosition(wt?wt.pos:"0",Rt),At=getKey(Tt[ut],It),jt,Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:{},rt=et.initWrapper,st=et.processEntity,ct=et.onProcessFinished,ut=et.externalGetKey,ft=et.childrenPropName,gt=et.fieldNames,xt=arguments.length>2?arguments[2]:void 0,$t=ut||xt,_t={},wt={},Tt={posEntities:_t,keyEntities:wt};return rt&&(Tt=rt(Tt)||Tt),traverseDataNodes(_e,function(Rt){var It=Rt.node,At=Rt.index,jt=Rt.pos,Nt=Rt.key,kt=Rt.parentPos,Ft=Rt.level,Ht=Rt.nodes,Wt={node:It,nodes:Ht,index:At,key:Nt,pos:jt,level:Ft},Vt=getKey(Nt,jt);_t[jt]=Wt,wt[Vt]=Wt,Wt.parent=_t[kt],Wt.parent&&(Wt.parent.children=Wt.parent.children||[],Wt.parent.children.push(Wt)),st&&st(Wt,Tt)},{externalGetKey:$t,childrenPropName:ft,fieldNames:gt}),ct&&ct(Tt),Tt}function getTreeNodeProps(_e,et){var rt=et.expandedKeys,st=et.selectedKeys,ct=et.loadedKeys,ut=et.loadingKeys,ft=et.checkedKeys,gt=et.halfCheckedKeys,xt=et.dragOverNodeKey,$t=et.dropPosition,_t=et.keyEntities,wt=getEntity(_t,_e),Tt={eventKey:_e,expanded:rt.indexOf(_e)!==-1,selected:st.indexOf(_e)!==-1,loaded:ct.indexOf(_e)!==-1,loading:ut.indexOf(_e)!==-1,checked:ft.indexOf(_e)!==-1,halfChecked:gt.indexOf(_e)!==-1,pos:String(wt?wt.pos:""),dragOver:xt===_e&&$t===0,dragOverGapTop:xt===_e&&$t===-1,dragOverGapBottom:xt===_e&&$t===1};return Tt}function convertNodePropsToEventData(_e){var et=_e.data,rt=_e.expanded,st=_e.selected,ct=_e.checked,ut=_e.loaded,ft=_e.loading,gt=_e.halfChecked,xt=_e.dragOver,$t=_e.dragOverGapTop,_t=_e.dragOverGapBottom,wt=_e.pos,Tt=_e.active,Rt=_e.eventKey,It=_objectSpread2(_objectSpread2({},et),{},{expanded:rt,selected:st,checked:ct,loaded:ut,loading:ft,halfChecked:gt,dragOver:xt,dragOverGapTop:$t,dragOverGapBottom:_t,pos:wt,active:Tt,key:Rt});return"props"in It||Object.defineProperty(It,"props",{get:function(){return warningOnce$1(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_e}}),It}function toArray$4(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}function fillFieldNames(_e){var et=_e||{},rt=et.label,st=et.value,ct=et.children,ut=st||"value";return{_title:rt?[rt]:["title","label"],value:ut,key:ut,children:ct||"children"}}function isCheckDisabled(_e){return!_e||_e.disabled||_e.disableCheckbox||_e.checkable===!1}function getAllKeys$3(_e,et){var rt=[];function st(ct){ct.forEach(function(ut){var ft=ut[et.children];ft&&(rt.push(ut[et.value]),st(ft))})}return st(_e),rt}function isNil$1(_e){return _e==null}const useDataEntities=function(_e,et){return reactExports.useMemo(function(){var rt=convertDataToEntities(_e,{fieldNames:et,initWrapper:function(ct){return _objectSpread2(_objectSpread2({},ct),{},{valueEntities:new Map})},processEntity:function(ct,ut){var ft=ct.node[et.value];ut.valueEntities.set(ft,ct)}});return rt},[_e,et])};var TreeNode=function(){return null},_excluded$O=["children","value"];function convertChildrenToData(_e){return toArray$d(_e).map(function(et){if(!reactExports.isValidElement(et)||!et.type)return null;var rt=et,st=rt.key,ct=rt.props,ut=ct.children,ft=ct.value,gt=_objectWithoutProperties$2(ct,_excluded$O),xt=_objectSpread2({key:st,value:ft},gt),$t=convertChildrenToData(ut);return $t.length&&(xt.children=$t),xt}).filter(function(et){return et})}function fillLegacyProps(_e){if(!_e)return _e;var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),et}}),et}function fillAdditionalInfo(_e,et,rt,st,ct,ut){var ft=null,gt=null;function xt(){function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _t.map(function(Rt,It){var At="".concat(wt,"-").concat(It),jt=Rt[ut.value],Nt=rt.includes(jt),kt=$t(Rt[ut.children]||[],At,Nt),Ft=reactExports.createElement(TreeNode,Rt,kt.map(function(Wt){return Wt.node}));if(et===jt&&(ft=Ft),Nt){var Ht={pos:At,node:Ft,children:kt};return Tt||gt.push(Ht),Ht}return null}).filter(function(Rt){return Rt})}gt||(gt=[],$t(st),gt.sort(function(_t,wt){var Tt=_t.node.props.value,Rt=wt.node.props.value,It=rt.indexOf(Tt),At=rt.indexOf(Rt);return It-At}))}Object.defineProperty(_e,"triggerNode",{get:function(){return warningOnce$1(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),xt(),ft}}),Object.defineProperty(_e,"allCheckedNodes",{get:function(){return warningOnce$1(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),xt(),ct?gt:gt.map(function(_t){var wt=_t.node;return wt})}})}const useFilterTreeData=function(_e,et,rt){var st=rt.treeNodeFilterProp,ct=rt.filterTreeNode,ut=rt.fieldNames,ft=ut.children;return reactExports.useMemo(function(){if(!et||ct===!1)return _e;var gt;if(typeof ct=="function")gt=ct;else{var xt=et.toUpperCase();gt=function(wt,Tt){var Rt=Tt[st];return String(Rt).toUpperCase().includes(xt)}}function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _t.reduce(function(Tt,Rt){var It=Rt[ft],At=wt||gt(et,fillLegacyProps(Rt)),jt=$t(It||[],At);return(At||jt.length)&&Tt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({isLeaf:void 0},ft,jt))),Tt},[])}return $t(_e)},[_e,et,ft,st,ct])};function useRefFunc(_e){var et=reactExports.useRef();et.current=_e;var rt=reactExports.useCallback(function(){return et.current.apply(et,arguments)},[]);return rt}function parseSimpleTreeData(_e,et){var rt=et.id,st=et.pId,ct=et.rootPId,ut={},ft=[],gt=_e.map(function(xt){var $t=_objectSpread2({},xt),_t=$t[rt];return ut[_t]=$t,$t.key=$t.key||_t,$t});return gt.forEach(function(xt){var $t=xt[st],_t=ut[$t];_t&&(_t.children=_t.children||[],_t.children.push(xt)),($t===ct||!_t&&ct===null)&&ft.push(xt)}),ft}function useTreeData(_e,et,rt){return reactExports.useMemo(function(){return _e?rt?parseSimpleTreeData(_e,_objectSpread2({id:"id",pId:"pId",rootPId:null},rt!==!0?rt:{})):_e:convertChildrenToData(et)},[et,rt,_e])}var LegacySelectContext=reactExports.createContext(null),TreeContext=reactExports.createContext(null);function DropIndicator(_e){var et=_e.dropPosition,rt=_e.dropLevelOffset,st=_e.indent,ct={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(et){case-1:ct.top=0,ct.left=-rt*st;break;case 1:ct.bottom=0,ct.left=-rt*st;break;case 0:ct.bottom=0,ct.left=st;break}return reactExports.createElement("div",{style:ct})}var Indent=function(et){for(var rt=et.prefixCls,st=et.level,ct=et.isStart,ut=et.isEnd,ft="".concat(rt,"-indent-unit"),gt=[],xt=0;xt0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=_e.length,st=et.length;if(Math.abs(rt-st)!==1)return{add:!1,key:null};function ct(ut,ft){var gt=new Map;ut.forEach(function($t){gt.set($t,!0)});var xt=ft.filter(function($t){return!gt.has($t)});return xt.length===1?xt[0]:null}return rt ").concat(et);return et}var NodeList=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.data;_e.selectable,_e.checkable;var ct=_e.expandedKeys,ut=_e.selectedKeys,ft=_e.checkedKeys,gt=_e.loadedKeys,xt=_e.loadingKeys,$t=_e.halfCheckedKeys,_t=_e.keyEntities,wt=_e.disabled,Tt=_e.dragging,Rt=_e.dragOverNodeKey,It=_e.dropPosition,At=_e.motion,jt=_e.height,Nt=_e.itemHeight,kt=_e.virtual,Ft=_e.focusable,Ht=_e.activeItem,Wt=_e.focused,Vt=_e.tabIndex,qt=_e.onKeyDown,Gt=_e.onFocus,Xt=_e.onBlur,Zt=_e.onActiveChange,lr=_e.onListChangeStart,er=_e.onListChangeEnd,cr=_objectWithoutProperties$2(_e,_excluded$L),ur=reactExports.useRef(null),pr=reactExports.useRef(null);reactExports.useImperativeHandle(et,function(){return{scrollTo:function(qr){ur.current.scrollTo(qr)},getIndentWidth:function(){return pr.current.offsetWidth}}});var hr=reactExports.useState(ct),fr=_slicedToArray$3(hr,2),dr=fr[0],yr=fr[1],$r=reactExports.useState(st),Er=_slicedToArray$3($r,2),mr=Er[0],Sr=Er[1],Tr=reactExports.useState(st),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1],Cr=reactExports.useState([]),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1],Mr=reactExports.useState(null),kr=_slicedToArray$3(Mr,2),Fr=kr[0],wr=kr[1],Br=reactExports.useRef(st);Br.current=st;function Dr(){var zr=Br.current;Sr(zr),_r(zr),Pr([]),wr(null),er()}useLayoutEffect$3(function(){yr(ct);var zr=findExpandedKeys(dr,ct);if(zr.key!==null)if(zr.add){var qr=mr.findIndex(function(gr){var br=gr.key;return br===zr.key}),pn=getMinimumRangeTransitionRange(getExpandRange(mr,st,zr.key),kt,jt,Nt),Qr=mr.slice();Qr.splice(qr+1,0,MotionFlattenData),_r(Qr),Pr(pn),wr("show")}else{var Zr=st.findIndex(function(gr){var br=gr.key;return br===zr.key}),vn=getMinimumRangeTransitionRange(getExpandRange(st,mr,zr.key),kt,jt,Nt),vr=st.slice();vr.splice(Zr+1,0,MotionFlattenData),_r(vr),Pr(vn),wr("hide")}else mr!==st&&(Sr(st),_r(st))},[ct,st]),reactExports.useEffect(function(){Tt||Dr()},[Tt]);var Xr=At?Or:st,Kr={expandedKeys:ct,selectedKeys:ut,loadedKeys:gt,loadingKeys:xt,checkedKeys:ft,halfCheckedKeys:$t,dragOverNodeKey:Rt,dropPosition:It,keyEntities:_t};return reactExports.createElement(reactExports.Fragment,null,Wt&&Ht&&reactExports.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(Ht)),reactExports.createElement("div",null,reactExports.createElement("input",{style:HIDDEN_STYLE$1,disabled:Ft===!1||wt,tabIndex:Ft!==!1?Vt:null,onKeyDown:qt,onFocus:Gt,onBlur:Xt,value:"",onChange:noop$4,"aria-label":"for screen reader"})),reactExports.createElement("div",{className:"".concat(rt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},reactExports.createElement("div",{className:"".concat(rt,"-indent")},reactExports.createElement("div",{ref:pr,className:"".concat(rt,"-indent-unit")}))),reactExports.createElement(List$1,_extends$b({},cr,{data:Xr,itemKey,height:jt,fullHeight:!1,virtual:kt,itemHeight:Nt,prefixCls:"".concat(rt,"-list"),ref:ur,onVisibleChange:function(qr,pn){var Qr=new Set(qr),Zr=pn.filter(function(vn){return!Qr.has(vn)});Zr.some(function(vn){return itemKey(vn)===MOTION_KEY})&&Dr()}}),function(zr){var qr=zr.pos,pn=Object.assign({},(_objectDestructuringEmpty(zr.data),zr.data)),Qr=zr.title,Zr=zr.key,vn=zr.isStart,vr=zr.isEnd,gr=getKey(Zr,qr);delete pn.key,delete pn.children;var br=getTreeNodeProps(gr,Kr);return reactExports.createElement(RefMotionTreeNode,_extends$b({},pn,br,{title:Qr,active:!!Ht&&Zr===Ht.key,pos:qr,data:zr.data,isStart:vn,isEnd:vr,motion:At,motionNodes:Zr===MOTION_KEY?Rr:null,motionType:Fr,onMotionStart:lr,onMotionEnd:Dr,treeNodeRequiredProps:Kr,onMouseMove:function(){Zt(null)}}))}))});NodeList.displayName="NodeList";function arrDel(_e,et){if(!_e)return[];var rt=_e.slice(),st=rt.indexOf(et);return st>=0&&rt.splice(st,1),rt}function arrAdd(_e,et){var rt=(_e||[]).slice();return rt.indexOf(et)===-1&&rt.push(et),rt}function posToArr(_e){return _e.split("-")}function getDragChildrenKeys(_e,et){var rt=[],st=getEntity(et,_e);function ct(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ut.forEach(function(ft){var gt=ft.key,xt=ft.children;rt.push(gt),ct(xt)})}return ct(st.children),rt}function isLastChild(_e){if(_e.parent){var et=posToArr(_e.pos);return Number(et[et.length-1])===_e.parent.children.length-1}return!1}function isFirstChild(_e){var et=posToArr(_e.pos);return Number(et[et.length-1])===0}function calcDropPosition(_e,et,rt,st,ct,ut,ft,gt,xt,$t){var _t,wt=_e.clientX,Tt=_e.clientY,Rt=_e.target.getBoundingClientRect(),It=Rt.top,At=Rt.height,jt=($t==="rtl"?-1:1)*(((ct==null?void 0:ct.x)||0)-wt),Nt=(jt-12)/st,kt=xt.filter(function(hr){var fr;return(fr=gt[hr])===null||fr===void 0||(fr=fr.children)===null||fr===void 0?void 0:fr.length}),Ft=getEntity(gt,rt.props.eventKey);if(Tt-1.5?ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:pr=!1:ut({dragNode:cr,dropNode:ur,dropPosition:0})?Zt=0:ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:pr=!1:ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:pr=!1,{dropPosition:Zt,dropLevelOffset:lr,dropTargetKey:Ft.key,dropTargetPos:Ft.pos,dragOverNodeKey:Xt,dropContainerKey:Zt===0?null:((_t=Ft.parent)===null||_t===void 0?void 0:_t.key)||null,dropAllowed:pr}}function calcSelectedKeys(_e,et){if(_e){var rt=et.multiple;return rt?_e.slice():_e.length?[_e[0]]:_e}}function parseCheckedKeys(_e){if(!_e)return null;var et;if(Array.isArray(_e))et={checkedKeys:_e,halfCheckedKeys:void 0};else if(_typeof$e(_e)==="object")et={checkedKeys:_e.checked||void 0,halfCheckedKeys:_e.halfChecked||void 0};else return warningOnce$1(!1,"`checkedKeys` is not an array or an object"),null;return et}function conductExpandParent(_e,et){var rt=new Set;function st(ct){if(!rt.has(ct)){var ut=getEntity(et,ct);if(ut){rt.add(ct);var ft=ut.parent,gt=ut.node;gt.disabled||ft&&st(ft.key)}}}return(_e||[]).forEach(function(ct){st(ct)}),_toConsumableArray$3(rt)}var MAX_RETRY_TIMES=10,Tree=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){var st;_classCallCheck$9(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft2&&arguments[2]!==void 0?arguments[2]:!1,wt=st.state,Tt=wt.dragChildrenKeys,Rt=wt.dropPosition,It=wt.dropTargetKey,At=wt.dropTargetPos,jt=wt.dropAllowed;if(jt){var Nt=st.props.onDrop;if(st.setState({dragOverNodeKey:null}),st.cleanDragState(),It!==null){var kt=_objectSpread2(_objectSpread2({},getTreeNodeProps(It,st.getTreeNodeRequiredProps())),{},{active:(($t=st.getActiveItem())===null||$t===void 0?void 0:$t.key)===It,data:getEntity(st.state.keyEntities,It).node}),Ft=Tt.indexOf(It)!==-1;warningOnce$1(!Ft,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ht=posToArr(At),Wt={event:gt,node:convertNodePropsToEventData(kt),dragNode:st.dragNode?convertNodePropsToEventData(st.dragNode.props):null,dragNodesKeys:[st.dragNode.props.eventKey].concat(Tt),dropToGap:Rt!==0,dropPosition:Rt+Number(Ht[Ht.length-1])};_t||Nt==null||Nt(Wt),st.dragNode=null}}}),_defineProperty$c(_assertThisInitialized$7(st),"cleanDragState",function(){var gt=st.state.draggingNodeKey;gt!==null&&st.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),st.dragStartMousePosition=null,st.currentMouseOverDroppableNodeKey=null}),_defineProperty$c(_assertThisInitialized$7(st),"triggerExpandActionExpand",function(gt,xt){var $t=st.state,_t=$t.expandedKeys,wt=$t.flattenNodes,Tt=xt.expanded,Rt=xt.key,It=xt.isLeaf;if(!(It||gt.shiftKey||gt.metaKey||gt.ctrlKey)){var At=wt.filter(function(Nt){return Nt.key===Rt})[0],jt=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(Rt,st.getTreeNodeRequiredProps())),{},{data:At.data}));st.setExpandedKeys(Tt?arrDel(_t,Rt):arrAdd(_t,Rt)),st.onNodeExpand(gt,jt)}}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeClick",function(gt,xt){var $t=st.props,_t=$t.onClick,wt=$t.expandAction;wt==="click"&&st.triggerExpandActionExpand(gt,xt),_t==null||_t(gt,xt)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeDoubleClick",function(gt,xt){var $t=st.props,_t=$t.onDoubleClick,wt=$t.expandAction;wt==="doubleClick"&&st.triggerExpandActionExpand(gt,xt),_t==null||_t(gt,xt)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeSelect",function(gt,xt){var $t=st.state.selectedKeys,_t=st.state,wt=_t.keyEntities,Tt=_t.fieldNames,Rt=st.props,It=Rt.onSelect,At=Rt.multiple,jt=xt.selected,Nt=xt[Tt.key],kt=!jt;kt?At?$t=arrAdd($t,Nt):$t=[Nt]:$t=arrDel($t,Nt);var Ft=$t.map(function(Ht){var Wt=getEntity(wt,Ht);return Wt?Wt.node:null}).filter(function(Ht){return Ht});st.setUncontrolledState({selectedKeys:$t}),It==null||It($t,{event:"select",selected:kt,node:xt,selectedNodes:Ft,nativeEvent:gt.nativeEvent})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeCheck",function(gt,xt,$t){var _t=st.state,wt=_t.keyEntities,Tt=_t.checkedKeys,Rt=_t.halfCheckedKeys,It=st.props,At=It.checkStrictly,jt=It.onCheck,Nt=xt.key,kt,Ft={event:"check",node:xt,checked:$t,nativeEvent:gt.nativeEvent};if(At){var Ht=$t?arrAdd(Tt,Nt):arrDel(Tt,Nt),Wt=arrDel(Rt,Nt);kt={checked:Ht,halfChecked:Wt},Ft.checkedNodes=Ht.map(function(lr){return getEntity(wt,lr)}).filter(function(lr){return lr}).map(function(lr){return lr.node}),st.setUncontrolledState({checkedKeys:Ht})}else{var Vt=conductCheck([].concat(_toConsumableArray$3(Tt),[Nt]),!0,wt),qt=Vt.checkedKeys,Gt=Vt.halfCheckedKeys;if(!$t){var Xt=new Set(qt);Xt.delete(Nt);var Zt=conductCheck(Array.from(Xt),{checked:!1,halfCheckedKeys:Gt},wt);qt=Zt.checkedKeys,Gt=Zt.halfCheckedKeys}kt=qt,Ft.checkedNodes=[],Ft.checkedNodesPositions=[],Ft.halfCheckedKeys=Gt,qt.forEach(function(lr){var er=getEntity(wt,lr);if(er){var cr=er.node,ur=er.pos;Ft.checkedNodes.push(cr),Ft.checkedNodesPositions.push({node:cr,pos:ur})}}),st.setUncontrolledState({checkedKeys:qt},!1,{halfCheckedKeys:Gt})}jt==null||jt(kt,Ft)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeLoad",function(gt){var xt=gt.key,$t=new Promise(function(_t,wt){st.setState(function(Tt){var Rt=Tt.loadedKeys,It=Rt===void 0?[]:Rt,At=Tt.loadingKeys,jt=At===void 0?[]:At,Nt=st.props,kt=Nt.loadData,Ft=Nt.onLoad;if(!kt||It.indexOf(xt)!==-1||jt.indexOf(xt)!==-1)return null;var Ht=kt(gt);return Ht.then(function(){var Wt=st.state.loadedKeys,Vt=arrAdd(Wt,xt);Ft==null||Ft(Vt,{event:"load",node:gt}),st.setUncontrolledState({loadedKeys:Vt}),st.setState(function(qt){return{loadingKeys:arrDel(qt.loadingKeys,xt)}}),_t()}).catch(function(Wt){if(st.setState(function(qt){return{loadingKeys:arrDel(qt.loadingKeys,xt)}}),st.loadingRetryTimes[xt]=(st.loadingRetryTimes[xt]||0)+1,st.loadingRetryTimes[xt]>=MAX_RETRY_TIMES){var Vt=st.state.loadedKeys;warningOnce$1(!1,"Retry for `loadData` many times but still failed. No more retry."),st.setUncontrolledState({loadedKeys:arrAdd(Vt,xt)}),_t()}wt(Wt)}),{loadingKeys:arrAdd(jt,xt)}})});return $t.catch(function(){}),$t}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeMouseEnter",function(gt,xt){var $t=st.props.onMouseEnter;$t==null||$t({event:gt,node:xt})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeMouseLeave",function(gt,xt){var $t=st.props.onMouseLeave;$t==null||$t({event:gt,node:xt})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeContextMenu",function(gt,xt){var $t=st.props.onRightClick;$t&&(gt.preventDefault(),$t({event:gt,node:xt}))}),_defineProperty$c(_assertThisInitialized$7(st),"onFocus",function(){var gt=st.props.onFocus;st.setState({focused:!0});for(var xt=arguments.length,$t=new Array(xt),_t=0;_t1&&arguments[1]!==void 0?arguments[1]:!1,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!st.destroyed){var _t=!1,wt=!0,Tt={};Object.keys(gt).forEach(function(Rt){if(Rt in st.props){wt=!1;return}_t=!0,Tt[Rt]=gt[Rt]}),_t&&(!xt||wt)&&st.setState(_objectSpread2(_objectSpread2({},Tt),$t))}}),_defineProperty$c(_assertThisInitialized$7(st),"scrollTo",function(gt){st.listRef.current.scrollTo(gt)}),st}return _createClass$7(rt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ct=this.props,ut=ct.activeKey,ft=ct.itemScrollOffset,gt=ft===void 0?0:ft;ut!==void 0&&ut!==this.state.activeKey&&(this.setState({activeKey:ut}),ut!==null&&this.scrollTo({key:ut,offset:gt}))}},{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 ct=this.state,ut=ct.focused,ft=ct.flattenNodes,gt=ct.keyEntities,xt=ct.draggingNodeKey,$t=ct.activeKey,_t=ct.dropLevelOffset,wt=ct.dropContainerKey,Tt=ct.dropTargetKey,Rt=ct.dropPosition,It=ct.dragOverNodeKey,At=ct.indent,jt=this.props,Nt=jt.prefixCls,kt=jt.className,Ft=jt.style,Ht=jt.showLine,Wt=jt.focusable,Vt=jt.tabIndex,qt=Vt===void 0?0:Vt,Gt=jt.selectable,Xt=jt.showIcon,Zt=jt.icon,lr=jt.switcherIcon,er=jt.draggable,cr=jt.checkable,ur=jt.checkStrictly,pr=jt.disabled,hr=jt.motion,fr=jt.loadData,dr=jt.filterTreeNode,yr=jt.height,$r=jt.itemHeight,Er=jt.virtual,mr=jt.titleRender,Sr=jt.dropIndicatorRender,Tr=jt.onContextMenu,jr=jt.onScroll,Or=jt.direction,_r=jt.rootClassName,Cr=jt.rootStyle,Nr=pickAttrs(this.props,{aria:!0,data:!0}),Rr;return er&&(_typeof$e(er)==="object"?Rr=er:typeof er=="function"?Rr={nodeDraggable:er}:Rr={}),reactExports.createElement(TreeContext.Provider,{value:{prefixCls:Nt,selectable:Gt,showIcon:Xt,icon:Zt,switcherIcon:lr,draggable:Rr,draggingNodeKey:xt,checkable:cr,checkStrictly:ur,disabled:pr,keyEntities:gt,dropLevelOffset:_t,dropContainerKey:wt,dropTargetKey:Tt,dropPosition:Rt,dragOverNodeKey:It,indent:At,direction:Or,dropIndicatorRender:Sr,loadData:fr,filterTreeNode:dr,titleRender:mr,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}},reactExports.createElement("div",{role:"tree",className:classNames(Nt,kt,_r,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Nt,"-show-line"),Ht),"".concat(Nt,"-focused"),ut),"".concat(Nt,"-active-focused"),$t!==null)),style:Cr},reactExports.createElement(NodeList,_extends$b({ref:this.listRef,prefixCls:Nt,style:Ft,data:ft,disabled:pr,selectable:Gt,checkable:!!cr,motion:hr,dragging:xt!==null,height:yr,itemHeight:$r,virtual:Er,focusable:Wt,focused:ut,tabIndex:qt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Tr,onScroll:jr},this.getTreeNodeRequiredProps(),Nr))))}}],[{key:"getDerivedStateFromProps",value:function(ct,ut){var ft=ut.prevProps,gt={prevProps:ct};function xt(Vt){return!ft&&Vt in ct||ft&&ft[Vt]!==ct[Vt]}var $t,_t=ut.fieldNames;if(xt("fieldNames")&&(_t=fillFieldNames$1(ct.fieldNames),gt.fieldNames=_t),xt("treeData")?$t=ct.treeData:xt("children")&&(warningOnce$1(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),$t=convertTreeToData(ct.children)),$t){gt.treeData=$t;var wt=convertDataToEntities($t,{fieldNames:_t});gt.keyEntities=_objectSpread2(_defineProperty$c({},MOTION_KEY,MotionEntity),wt.keyEntities)}var Tt=gt.keyEntities||ut.keyEntities;if(xt("expandedKeys")||ft&&xt("autoExpandParent"))gt.expandedKeys=ct.autoExpandParent||!ft&&ct.defaultExpandParent?conductExpandParent(ct.expandedKeys,Tt):ct.expandedKeys;else if(!ft&&ct.defaultExpandAll){var Rt=_objectSpread2({},Tt);delete Rt[MOTION_KEY],gt.expandedKeys=Object.keys(Rt).map(function(Vt){return Rt[Vt].key})}else!ft&&ct.defaultExpandedKeys&&(gt.expandedKeys=ct.autoExpandParent||ct.defaultExpandParent?conductExpandParent(ct.defaultExpandedKeys,Tt):ct.defaultExpandedKeys);if(gt.expandedKeys||delete gt.expandedKeys,$t||gt.expandedKeys){var It=flattenTreeData($t||ut.treeData,gt.expandedKeys||ut.expandedKeys,_t);gt.flattenNodes=It}if(ct.selectable&&(xt("selectedKeys")?gt.selectedKeys=calcSelectedKeys(ct.selectedKeys,ct):!ft&&ct.defaultSelectedKeys&&(gt.selectedKeys=calcSelectedKeys(ct.defaultSelectedKeys,ct))),ct.checkable){var At;if(xt("checkedKeys")?At=parseCheckedKeys(ct.checkedKeys)||{}:!ft&&ct.defaultCheckedKeys?At=parseCheckedKeys(ct.defaultCheckedKeys)||{}:$t&&(At=parseCheckedKeys(ct.checkedKeys)||{checkedKeys:ut.checkedKeys,halfCheckedKeys:ut.halfCheckedKeys}),At){var jt=At,Nt=jt.checkedKeys,kt=Nt===void 0?[]:Nt,Ft=jt.halfCheckedKeys,Ht=Ft===void 0?[]:Ft;if(!ct.checkStrictly){var Wt=conductCheck(kt,!0,Tt);kt=Wt.checkedKeys,Ht=Wt.halfCheckedKeys}gt.checkedKeys=kt,gt.halfCheckedKeys=Ht}}return xt("loadedKeys")&&(gt.loadedKeys=ct.loadedKeys),gt}}]),rt}(reactExports.Component);_defineProperty$c(Tree,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1});_defineProperty$c(Tree,"TreeNode",ContextTreeNode);var TreeSelectContext=reactExports.createContext(null),HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OptionList=function(et,rt){var st=useBaseProps(),ct=st.prefixCls,ut=st.multiple,ft=st.searchValue,gt=st.toggleOpen,xt=st.open,$t=st.notFoundContent,_t=reactExports.useContext(TreeSelectContext),wt=_t.virtual,Tt=_t.listHeight,Rt=_t.listItemHeight,It=_t.listItemScrollOffset,At=_t.treeData,jt=_t.fieldNames,Nt=_t.onSelect,kt=_t.dropdownMatchSelectWidth,Ft=_t.treeExpandAction,Ht=_t.treeTitleRender,Wt=reactExports.useContext(LegacySelectContext),Vt=Wt.checkable,qt=Wt.checkedKeys,Gt=Wt.halfCheckedKeys,Xt=Wt.treeExpandedKeys,Zt=Wt.treeDefaultExpandAll,lr=Wt.treeDefaultExpandedKeys,er=Wt.onTreeExpand,cr=Wt.treeIcon,ur=Wt.showTreeIcon,pr=Wt.switcherIcon,hr=Wt.treeLine,fr=Wt.treeNodeFilterProp,dr=Wt.loadData,yr=Wt.treeLoadedKeys,$r=Wt.treeMotion,Er=Wt.onTreeLoad,mr=Wt.keyEntities,Sr=reactExports.useRef(),Tr=useMemo$1(function(){return At},[xt,At],function(vr,gr){return gr[0]&&vr[1]!==gr[1]}),jr=reactExports.useState(null),Or=_slicedToArray$3(jr,2),_r=Or[0],Cr=Or[1],Nr=mr[_r],Rr=reactExports.useMemo(function(){return Vt?{checked:qt,halfChecked:Gt}:null},[Vt,qt,Gt]);reactExports.useEffect(function(){if(xt&&!ut&&qt.length){var vr;(vr=Sr.current)===null||vr===void 0||vr.scrollTo({key:qt[0]}),Cr(qt[0])}},[xt]);var Pr=String(ft).toLowerCase(),Mr=function(gr){return Pr?String(gr[fr]).toLowerCase().includes(Pr):!1},kr=reactExports.useState(lr),Fr=_slicedToArray$3(kr,2),wr=Fr[0],Br=Fr[1],Dr=reactExports.useState(null),Xr=_slicedToArray$3(Dr,2),Kr=Xr[0],zr=Xr[1],qr=reactExports.useMemo(function(){return Xt?_toConsumableArray$3(Xt):ft?Kr:wr},[wr,Kr,Xt,ft]);reactExports.useEffect(function(){ft&&zr(getAllKeys$3(At,jt))},[ft]);var pn=function(gr){Br(gr),zr(gr),er&&er(gr)},Qr=function(gr){gr.preventDefault()},Zr=function(gr,br){var Hr=br.node;Vt&&isCheckDisabled(Hr)||(Nt(Hr.key,{selected:!qt.includes(Hr.key)}),ut||gt(!1))};if(reactExports.useImperativeHandle(rt,function(){var vr;return{scrollTo:(vr=Sr.current)===null||vr===void 0?void 0:vr.scrollTo,onKeyDown:function(br){var Hr,Vr=br.which;switch(Vr){case KeyCode.UP:case KeyCode.DOWN:case KeyCode.LEFT:case KeyCode.RIGHT:(Hr=Sr.current)===null||Hr===void 0||Hr.onKeyDown(br);break;case KeyCode.ENTER:{if(Nr){var Wr=(Nr==null?void 0:Nr.node)||{},Gr=Wr.selectable,cn=Wr.value;Gr!==!1&&Zr(null,{node:{key:_r},selected:!qt.includes(cn)})}break}case KeyCode.ESC:gt(!1)}},onKeyUp:function(){}}}),Tr.length===0)return reactExports.createElement("div",{role:"listbox",className:"".concat(ct,"-empty"),onMouseDown:Qr},$t);var vn={fieldNames:jt};return yr&&(vn.loadedKeys=yr),qr&&(vn.expandedKeys=qr),reactExports.createElement("div",{onMouseDown:Qr},Nr&&xt&&reactExports.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},Nr.node.value),reactExports.createElement(Tree,_extends$b({ref:Sr,focusable:!1,prefixCls:"".concat(ct,"-tree"),treeData:Tr,height:Tt,itemHeight:Rt,itemScrollOffset:It,virtual:wt!==!1&&kt!==!1,multiple:ut,icon:cr,showIcon:ur,switcherIcon:pr,showLine:hr,loadData:ft?null:dr,motion:$r,activeKey:_r,checkable:Vt,checkStrictly:!0,checkedKeys:Rr,selectedKeys:Vt?[]:qt,defaultExpandAll:Zt,titleRender:Ht},vn,{onActiveChange:Cr,onSelect:Zr,onCheck:Zr,onExpand:pn,onLoad:Er,filterTreeNode:Mr,expandAction:Ft})))},RefOptionList=reactExports.forwardRef(OptionList),SHOW_ALL="SHOW_ALL",SHOW_PARENT="SHOW_PARENT",SHOW_CHILD="SHOW_CHILD";function formatStrategyValues(_e,et,rt,st){var ct=new Set(_e);return et===SHOW_CHILD?_e.filter(function(ut){var ft=rt[ut];return!(ft&&ft.children&&ft.children.some(function(gt){var xt=gt.node;return ct.has(xt[st.value])})&&ft.children.every(function(gt){var xt=gt.node;return isCheckDisabled(xt)||ct.has(xt[st.value])}))}):et===SHOW_PARENT?_e.filter(function(ut){var ft=rt[ut],gt=ft?ft.parent:null;return!(gt&&!isCheckDisabled(gt.node)&&ct.has(gt.key))}):_e}var _excluded$K=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function isRawValue(_e){return!_e||_typeof$e(_e)!=="object"}var TreeSelect$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-tree-select":st,ut=_e.value,ft=_e.defaultValue,gt=_e.onChange,xt=_e.onSelect,$t=_e.onDeselect,_t=_e.searchValue,wt=_e.inputValue,Tt=_e.onSearch,Rt=_e.autoClearSearchValue,It=Rt===void 0?!0:Rt,At=_e.filterTreeNode,jt=_e.treeNodeFilterProp,Nt=jt===void 0?"value":jt,kt=_e.showCheckedStrategy,Ft=_e.treeNodeLabelProp,Ht=_e.multiple,Wt=_e.treeCheckable,Vt=_e.treeCheckStrictly,qt=_e.labelInValue,Gt=_e.fieldNames,Xt=_e.treeDataSimpleMode,Zt=_e.treeData,lr=_e.children,er=_e.loadData,cr=_e.treeLoadedKeys,ur=_e.onTreeLoad,pr=_e.treeDefaultExpandAll,hr=_e.treeExpandedKeys,fr=_e.treeDefaultExpandedKeys,dr=_e.onTreeExpand,yr=_e.treeExpandAction,$r=_e.virtual,Er=_e.listHeight,mr=Er===void 0?200:Er,Sr=_e.listItemHeight,Tr=Sr===void 0?20:Sr,jr=_e.listItemScrollOffset,Or=jr===void 0?0:jr,_r=_e.onDropdownVisibleChange,Cr=_e.dropdownMatchSelectWidth,Nr=Cr===void 0?!0:Cr,Rr=_e.treeLine,Pr=_e.treeIcon,Mr=_e.showTreeIcon,kr=_e.switcherIcon,Fr=_e.treeMotion,wr=_e.treeTitleRender,Br=_objectWithoutProperties$2(_e,_excluded$K),Dr=useId(rt),Xr=Wt&&!Vt,Kr=Wt||Vt,zr=Vt||qt,qr=Kr||Ht,pn=useMergedState(ft,{value:ut}),Qr=_slicedToArray$3(pn,2),Zr=Qr[0],vn=Qr[1],vr=reactExports.useMemo(function(){return Wt?kt||SHOW_CHILD:SHOW_ALL},[kt,Wt]),gr=reactExports.useMemo(function(){return fillFieldNames(Gt)},[JSON.stringify(Gt)]),br=useMergedState("",{value:_t!==void 0?_t:wt,postState:function(ln){return ln||""}}),Hr=_slicedToArray$3(br,2),Vr=Hr[0],Wr=Hr[1],Gr=function(ln){Wr(ln),Tt==null||Tt(ln)},cn=useTreeData(Zt,lr,Xt),mn=useDataEntities(cn,gr),hn=mn.keyEntities,En=mn.valueEntities,Rn=reactExports.useCallback(function(_n){var ln=[],Pn=[];return _n.forEach(function(An){En.has(An)?Pn.push(An):ln.push(An)}),{missingRawValues:ln,existRawValues:Pn}},[En]),Dn=useFilterTreeData(cn,Vr,{fieldNames:gr,treeNodeFilterProp:Nt,filterTreeNode:At}),Bn=reactExports.useCallback(function(_n){if(_n){if(Ft)return _n[Ft];for(var ln=gr._title,Pn=0;Pn{const{componentCls:et,treePrefixCls:rt,colorBgElevated:st}=_e,ct=`.${rt}`;return[{[`${et}-dropdown`]:[{padding:`${unit$1(_e.paddingXS)} ${unit$1(_e.calc(_e.paddingXS).div(2).equal())}`},genTreeStyle(rt,merge$7(_e,{colorBgContainer:st})),{[ct]:{borderRadius:0,[`${ct}-list-holder-inner`]:{alignItems:"stretch",[`${ct}-treenode`]:{[`${ct}-node-content-wrapper`]:{flex:"auto"}}}}},getStyle$1(`${rt}-checkbox`,_e),{"&-rtl":{direction:"rtl",[`${ct}-switcher${ct}-switcher_close`]:{[`${ct}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function useTreeSelectStyle(_e,et,rt){return genStyleHooks("TreeSelect",st=>{const ct=merge$7(st,{treePrefixCls:et});return[genBaseStyle$1(ct)]},initComponentToken)(_e,rt)}var __rest$3=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,{prefixCls:st,size:ct,disabled:ut,bordered:ft=!0,className:gt,rootClassName:xt,treeCheckable:$t,multiple:_t,listHeight:wt=256,listItemHeight:Tt=26,placement:Rt,notFoundContent:It,switcherIcon:At,treeLine:jt,getPopupContainer:Nt,popupClassName:kt,dropdownClassName:Ft,treeIcon:Ht=!1,transitionName:Wt,choiceTransitionName:Vt="",status:qt,treeExpandAction:Gt,builtinPlacements:Xt,dropdownMatchSelectWidth:Zt,popupMatchSelectWidth:lr,allowClear:er,variant:cr,dropdownStyle:ur,tagRender:pr}=_e,hr=__rest$3(_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"]);const{getPopupContainer:fr,getPrefixCls:dr,renderEmpty:yr,direction:$r,virtual:Er,popupMatchSelectWidth:mr,popupOverflow:Sr}=reactExports.useContext(ConfigContext$1),Tr=dr(),jr=dr("select",st),Or=dr("select-tree",st),_r=dr("tree-select",st),{compactSize:Cr,compactItemClassnames:Nr}=useCompactItemContext(jr,$r),Rr=useCSSVarCls(jr),Pr=useCSSVarCls(_r),[Mr,kr,Fr]=useSelectStyle(jr,Rr),[wr]=useTreeSelectStyle(_r,Or,Pr),[Br,Dr]=useVariant(cr,ft),Xr=classNames(kt||Ft,`${_r}-dropdown`,{[`${_r}-dropdown-rtl`]:$r==="rtl"},xt,Fr,Rr,Pr,kr),Kr=!!($t||_t),zr=useShowArrow(hr.suffixIcon,hr.showArrow),qr=(rt=lr??Zt)!==null&&rt!==void 0?rt:mr,{status:pn,hasFeedback:Qr,isFormItemInput:Zr,feedbackIcon:vn}=reactExports.useContext(FormItemInputContext),vr=getMergedStatus(pn,qt),{suffixIcon:gr,removeIcon:br,clearIcon:Hr}=useIcons$1(Object.assign(Object.assign({},hr),{multiple:Kr,showSuffixIcon:zr,hasFeedback:Qr,feedbackIcon:vn,prefixCls:jr,componentName:"TreeSelect"})),Vr=er===!0?{clearIcon:Hr}:er;let Wr;It!==void 0?Wr=It:Wr=(yr==null?void 0:yr("Select"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Select"});const Gr=omit$2(hr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),cn=reactExports.useMemo(()=>Rt!==void 0?Rt:$r==="rtl"?"bottomRight":"bottomLeft",[Rt,$r]),mn=useSize(qn=>{var ao;return(ao=ct??Cr)!==null&&ao!==void 0?ao:qn}),hn=reactExports.useContext(DisabledContext$2),En=ut??hn,Rn=classNames(!st&&_r,{[`${jr}-lg`]:mn==="large",[`${jr}-sm`]:mn==="small",[`${jr}-rtl`]:$r==="rtl",[`${jr}-${Br}`]:Dr,[`${jr}-in-form-item`]:Zr},getStatusClassNames(jr,vr,Qr),Nr,gt,xt,Fr,Rr,Pr,kr),Dn=qn=>reactExports.createElement(SwitcherIconCom$1,{prefixCls:Or,switcherIcon:At,treeNodeProps:qn,showLine:jt}),[Bn]=useZIndex("SelectLike",ur==null?void 0:ur.zIndex),Yn=reactExports.createElement(GenericTreeSelect,Object.assign({virtual:Er,disabled:En},Gr,{dropdownMatchSelectWidth:qr,builtinPlacements:mergedBuiltinPlacements(Xt,Sr),ref:et,prefixCls:jr,className:Rn,listHeight:wt,listItemHeight:Tt,treeCheckable:$t&&reactExports.createElement("span",{className:`${jr}-tree-checkbox-inner`}),treeLine:!!jt,suffixIcon:gr,multiple:Kr,placement:cn,removeIcon:br,allowClear:Vr,switcherIcon:Dn,showTreeIcon:Ht,notFoundContent:Wr,getPopupContainer:Nt||fr,treeMotion:null,dropdownClassName:Xr,dropdownStyle:Object.assign(Object.assign({},ur),{zIndex:Bn}),choiceTransitionName:getTransitionName(Tr,"",Vt),transitionName:getTransitionName(Tr,"slide-up",Wt),treeExpandAction:Gt,tagRender:Kr?pr:void 0}));return Mr(wr(Yn))},TreeSelectRef=reactExports.forwardRef(InternalTreeSelect),TreeSelect=TreeSelectRef,PurePanel=genPurePanel(TreeSelect);TreeSelect.TreeNode=TreeNode;TreeSelect.SHOW_ALL=SHOW_ALL;TreeSelect.SHOW_PARENT=SHOW_PARENT;TreeSelect.SHOW_CHILD=SHOW_CHILD;TreeSelect._InternalPanelDoNotUseOrYouWillBeFired=PurePanel;const TreeSelect$1=TreeSelect,attrAccept=function(_e,et){if(_e&&et){var rt=Array.isArray(et)?et:et.split(","),st=_e.name||"",ct=_e.type||"",ut=ct.replace(/\/.*$/,"");return rt.some(function(ft){var gt=ft.trim();if(/^\*(\/\*)?$/.test(ft))return!0;if(gt.charAt(0)==="."){var xt=st.toLowerCase(),$t=gt.toLowerCase(),_t=[$t];return($t===".jpg"||$t===".jpeg")&&(_t=[".jpg",".jpeg"]),_t.some(function(wt){return xt.endsWith(wt)})}return/\/\*$/.test(gt)?ut===gt.replace(/\/.*$/,""):ct===gt?!0:/^\w+$/.test(gt)?(warningOnce$1(!1,"Upload takes an invalidate 'accept' type '".concat(gt,"'.Skip for check.")),!0):!1})}return!0};function getError(_e,et){var rt="cannot ".concat(_e.method," ").concat(_e.action," ").concat(et.status,"'"),st=new Error(rt);return st.status=et.status,st.method=_e.method,st.url=_e.action,st}function getBody(_e){var et=_e.responseText||_e.response;if(!et)return et;try{return JSON.parse(et)}catch{return et}}function upload(_e){var et=new XMLHttpRequest;_e.onProgress&&et.upload&&(et.upload.onprogress=function(ut){ut.total>0&&(ut.percent=ut.loaded/ut.total*100),_e.onProgress(ut)});var rt=new FormData;_e.data&&Object.keys(_e.data).forEach(function(ct){var ut=_e.data[ct];if(Array.isArray(ut)){ut.forEach(function(ft){rt.append("".concat(ct,"[]"),ft)});return}rt.append(ct,ut)}),_e.file instanceof Blob?rt.append(_e.filename,_e.file,_e.file.name):rt.append(_e.filename,_e.file),et.onerror=function(ut){_e.onError(ut)},et.onload=function(){return et.status<200||et.status>=300?_e.onError(getError(_e,et),getBody(et)):_e.onSuccess(getBody(et),et)},et.open(_e.method,_e.action,!0),_e.withCredentials&&"withCredentials"in et&&(et.withCredentials=!0);var st=_e.headers||{};return st["X-Requested-With"]!==null&&et.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(st).forEach(function(ct){st[ct]!==null&&et.setRequestHeader(ct,st[ct])}),et.send(rt),{abort:function(){et.abort()}}}function loopFiles(_e,et){var rt=_e.createReader(),st=[];function ct(){rt.readEntries(function(ut){var ft=Array.prototype.slice.apply(ut);st=st.concat(ft);var gt=!ft.length;gt?et(st):ct()})}ct()}var traverseFileTree=function(et,rt,st){var ct=function ut(ft,gt){ft&&(ft.path=gt||"",ft.isFile?ft.file(function(xt){st(xt)&&(ft.fullPath&&!xt.webkitRelativePath&&(Object.defineProperties(xt,{webkitRelativePath:{writable:!0}}),xt.webkitRelativePath=ft.fullPath.replace(/^\//,""),Object.defineProperties(xt,{webkitRelativePath:{writable:!1}})),rt([xt]))}):ft.isDirectory&&loopFiles(ft,function(xt){xt.forEach(function($t){ut($t,"".concat(gt).concat(ft.name,"/"))})}))};et.forEach(function(ut){ct(ut.webkitGetAsEntry())})},now$4=+new Date,index$1=0;function uid(){return"rc-upload-".concat(now$4,"-").concat(++index$1)}var _excluded$J=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],AjaxUploader=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){var st;_classCallCheck$9(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft{const{componentCls:et,iconCls:rt}=_e;return{[`${et}-wrapper`]:{[`${et}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:_e.colorFillAlter,border:`${unit$1(_e.lineWidth)} dashed ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,cursor:"pointer",transition:`border-color ${_e.motionDurationSlow}`,[et]:{padding:_e.padding},[`${et}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:_e.borderRadiusLG,"&:focus-visible":{outline:`${unit$1(_e.lineWidthFocus)} solid ${_e.colorPrimaryBorder}`}},[`${et}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` +`].includes(Fn)})},[hr]),jn=reactExports.useContext(SelectContext)||{},Hn=jn.maxCount,qn=jn.rawValues,Jn=function(Dn,po,To){if(!((qn==null?void 0:qn.size)>=Hn)){var fo=!0,Qn=Dn;Zt==null||Zt(null);var oo=getSeparatedContent(Dn,hr,Hn&&Hn-qn.size),Oo=To?null:oo;return Nt!=="combobox"&&Oo&&(Qn="",fr==null||fr(Oo),xn(!1),fo=!1),ur&&Rn!==Qn&&ur(Qn,{source:po?"typing":"effect"}),fo}},ao=function(Dn){!Dn||!Dn.trim()||ur(Dn,{source:"submit"})};reactExports.useEffect(function(){!On&&!Kr&&Nt!=="combobox"&&Jn("",!1,!1)},[On]),reactExports.useEffect(function(){Tn&&kt&&Nn(!1),kt&&!Wr.current&&hn(!1)},[kt]);var Vn=useLock(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1],cn=function(Dn){var po=zn(),To=Dn.which;if(To===KeyCode.ENTER&&(Nt!=="combobox"&&Dn.preventDefault(),On||xn(!0)),wn(!!Rn),To===KeyCode.BACKSPACE&&!po&&Kr&&!Rn&&wt.length){for(var fo=_toConsumableArray$3(wt),Qn=null,oo=fo.length-1;oo>=0;oo-=1){var Oo=fo[oo];if(!Oo.disabled){fo.splice(oo,1),Qn=Oo;break}}Qn&&Tt(fo,{type:"remove",values:[Qn]})}for(var Mo=arguments.length,Lo=new Array(Mo>1?Mo-1:0),go=1;go1?po-1:0),fo=1;fo1?oo-1:0),Mo=1;Mo=It},[gt,It,Ht==null?void 0:Ht.size]),fr=function(Pr){Pr.preventDefault()},hr=function(Pr){var jr;(jr=cr.current)===null||jr===void 0||jr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},pr=function(Pr){for(var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,kr=lr.length,Fr=0;Fr1&&arguments[1]!==void 0?arguments[1]:!1;br(Pr);var kr={source:jr?"keyboard":"mouse"},Fr=lr[Pr];if(!Fr){jt(null,-1,kr);return}jt(Fr.value,Pr,kr)};reactExports.useEffect(function(){mr(Nt!==!1?pr(0):-1)},[lr.length,$t]);var Er=reactExports.useCallback(function(Rr){return Ht.has(Rr)&&xt!=="combobox"},[xt,_toConsumableArray$3(Ht).toString(),Ht.size]);reactExports.useEffect(function(){var Rr=setTimeout(function(){if(!gt&&ft&&Ht.size===1){var jr=Array.from(Ht)[0],kr=lr.findIndex(function(Fr){var _r=Fr.data;return _r.value===jr});kr!==-1&&(mr(kr),hr(kr))}});if(ft){var Pr;(Pr=cr.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Rr)}},[ft,$t]);var Tr=function(Pr){Pr!==void 0&&kt(Pr,{selected:!Ht.has(Pr)}),gt||_t(!1)};if(reactExports.useImperativeHandle(rt,function(){return{onKeyDown:function(Pr){var jr=Pr.which,kr=Pr.ctrlKey;switch(jr){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Fr=0;if(jr===KeyCode.UP?Fr=-1:jr===KeyCode.DOWN?Fr=1:isPlatformMac()&&kr&&(jr===KeyCode.N?Fr=1:jr===KeyCode.P&&(Fr=-1)),Fr!==0){var _r=pr(Sr+Fr,Fr);hr(_r),mr(_r,!0)}break}case KeyCode.ENTER:{var Br,Dr=lr[Sr];Dr&&!(Dr!=null&&(Br=Dr.data)!==null&&Br!==void 0&&Br.disabled)&&!ur?Tr(Dr.value):Tr(void 0),ft&&Pr.preventDefault();break}case KeyCode.ESC:_t(!1),ft&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){hr(Pr)}}}),lr.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(ut,"_list"),className:"".concat(er,"-empty"),onMouseDown:fr},wt);var Mr=Object.keys(Wt).map(function(Rr){return Wt[Rr]}),Or=function(Pr){return Pr.label};function wr(Rr,Pr){var jr=Rr.group;return{role:jr?"presentation":"option",id:"".concat(ut,"_list_").concat(Pr)}}var Cr=function(Pr){var jr=lr[Pr];if(!jr)return null;var kr=jr.data||{},Fr=kr.value,_r=jr.group,Br=pickAttrs(kr,!0),Dr=Or(jr);return jr?reactExports.createElement("div",_extends$b({"aria-label":typeof Dr=="string"&&!_r?Dr:null},Br,{key:Pr},wr(jr,Pr),{"aria-selected":Er(Fr)}),Fr):null},Nr={role:"listbox",id:"".concat(ut,"_list")};return reactExports.createElement(reactExports.Fragment,null,Vt&&reactExports.createElement("div",_extends$b({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),Cr(Sr-1),Cr(Sr),Cr(Sr+1)),reactExports.createElement(List$2,{itemKey:"key",ref:cr,data:lr,height:Xt,itemHeight:Gt,fullHeight:!1,onMouseDown:fr,onScroll:Tt,virtual:Vt,direction:qt,innerProps:Vt?null:Nr},function(Rr,Pr){var jr,kr=Rr.group,Fr=Rr.groupOption,_r=Rr.data,Br=Rr.label,Dr=Rr.value,Xr=_r.key;if(kr){var Kr,Hr=(Kr=_r.title)!==null&&Kr!==void 0?Kr:isTitleType(Br)?Br.toString():void 0;return reactExports.createElement("div",{className:classNames(er,"".concat(er,"-group")),title:Hr},Br!==void 0?Br:Xr)}var Vr=_r.disabled,ln=_r.title;_r.children;var Qr=_r.style,Zr=_r.className,vn=_objectWithoutProperties$2(_r,_excluded$S),vr=omit$2(vn,Mr),gr=Er(Dr),$r=Vr||!gr&&ur,zr="".concat(er,"-option"),qr=classNames(er,zr,Zr,(jr={},_defineProperty$c(jr,"".concat(zr,"-grouped"),Fr),_defineProperty$c(jr,"".concat(zr,"-active"),Sr===Pr&&!$r),_defineProperty$c(jr,"".concat(zr,"-disabled"),$r),_defineProperty$c(jr,"".concat(zr,"-selected"),gr),jr)),Wr=Or(Rr),Gr=!Ft||typeof Ft=="function"||gr,dn=typeof Wr=="number"?Wr:Wr||Dr,mn=isTitleType(dn)?dn.toString():void 0;return ln!==void 0&&(mn=ln),reactExports.createElement("div",_extends$b({},pickAttrs(vr),Vt?{}:wr(Rr,Pr),{"aria-selected":gr,className:qr,title:mn,onMouseMove:function(){Sr===Pr||$r||mr(Pr)},onClick:function(){$r||Tr(Dr)},style:Qr}),reactExports.createElement("div",{className:"".concat(zr,"-content")},typeof Zt=="function"?Zt(Rr,{index:Pr}):dn),reactExports.isValidElement(Ft)||gr,Gr&&reactExports.createElement(TransBtn,{className:"".concat(er,"-option-state"),customizeIcon:Ft,customizeIconProps:{value:Dr,disabled:$r,isSelected:gr}},gr?"✓":null))}))},RefOptionList$1=reactExports.forwardRef(OptionList$1);const useCache$1=function(_e,et){var rt=reactExports.useRef({values:new Map,options:new Map}),st=reactExports.useMemo(function(){var ut=rt.current,ft=ut.values,gt=ut.options,xt=_e.map(function(wt){if(wt.label===void 0){var Tt;return _objectSpread2(_objectSpread2({},wt),{},{label:(Tt=ft.get(wt.value))===null||Tt===void 0?void 0:Tt.label})}return wt}),$t=new Map,_t=new Map;return xt.forEach(function(wt){$t.set(wt.value,wt),_t.set(wt.value,et.get(wt.value)||gt.get(wt.value))}),rt.current.values=$t,rt.current.options=_t,xt},[_e,et]),ct=reactExports.useCallback(function(ut){return et.get(ut)||rt.current.options.get(ut)},[et]);return[st,ct]};function includes(_e,et){return toArray$6(_e).join("").toUpperCase().includes(et)}const useFilterOptions=function(_e,et,rt,st,ct){return reactExports.useMemo(function(){if(!rt||st===!1)return _e;var ut=et.options,ft=et.label,gt=et.value,xt=[],$t=typeof st=="function",_t=rt.toUpperCase(),wt=$t?st:function(Rt,It){return ct?includes(It[ct],_t):It[ut]?includes(It[ft!=="children"?ft:"label"],_t):includes(It[gt],_t)},Tt=$t?function(Rt){return injectPropsWithOption(Rt)}:function(Rt){return Rt};return _e.forEach(function(Rt){if(Rt[ut]){var It=wt(rt,Tt(Rt));if(It)xt.push(Rt);else{var At=Rt[ut].filter(function(jt){return wt(rt,Tt(jt))});At.length&&xt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({},ut,At)))}return}wt(rt,Tt(Rt))&&xt.push(Rt)}),xt},[_e,st,ct,rt,et])};var uuid=0,isBrowserClient=canUseDom$1();function getUUID(){var _e;return isBrowserClient?(_e=uuid,uuid+=1):_e="TEST_OR_SSR",_e}function useId(_e){var et=reactExports.useState(),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return reactExports.useEffect(function(){ct("rc_select_".concat(getUUID()))},[]),_e||st}var _excluded$R=["children","value"],_excluded2$e=["children"];function convertNodeToOption(_e){var et=_e,rt=et.key,st=et.props,ct=st.children,ut=st.value,ft=_objectWithoutProperties$2(st,_excluded$R);return _objectSpread2({key:rt,value:ut!==void 0?ut:rt,children:ct},ft)}function convertChildrenToData$1(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$e(_e).map(function(rt,st){if(!reactExports.isValidElement(rt)||!rt.type)return null;var ct=rt,ut=ct.type.isSelectOptGroup,ft=ct.key,gt=ct.props,xt=gt.children,$t=_objectWithoutProperties$2(gt,_excluded2$e);return et||!ut?convertNodeToOption(rt):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ft===null?st:ft,"__"),label:ft},$t),{},{options:convertChildrenToData$1(xt)})}).filter(function(rt){return rt})}var useOptions=function(et,rt,st,ct,ut){return reactExports.useMemo(function(){var ft=et,gt=!et;gt&&(ft=convertChildrenToData$1(rt));var xt=new Map,$t=new Map,_t=function(Rt,It,At){At&&typeof At=="string"&&Rt.set(It[At],It)},wt=function Tt(Rt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At2&&arguments[2]!==void 0?arguments[2]:{},In=xn.source,jn=In===void 0?"keyboard":In;Gn(Sn),ft&&st==="combobox"&&$n!==null&&jn==="keyboard"&&Rn(String($n))},[ft,st]),gn=function(Sn,xn,In){var jn=function(){var Pn,An=Zr(Sn);return[dr?{label:An==null?void 0:An[Or.label],value:Sn,key:(Pn=An==null?void 0:An.key)!==null&&Pn!==void 0?Pn:Sn}:Sn,injectPropsWithOption(An)]};if(xn&&Rt){var Hn=jn(),qn=_slicedToArray$3(Hn,2),Jn=qn[0],ao=qn[1];Rt(Jn,ao)}else if(!xn&&It&&In!=="clear"){var Vn=jn(),Wn=_slicedToArray$3(Vn,2),zn=Wn[0],wn=Wn[1];It(zn,wn)}},yn=useRefFunc$1(function($n,Sn){var xn,In=Er?Sn.selected:!0;In?xn=Er?[].concat(_toConsumableArray$3(Qr),[$n]):[$n]:xn=Qr.filter(function(jn){return jn.value!==$n}),dn(xn),gn($n,In),st==="combobox"?Rn(""):(!isMultiple||Tt)&&(Rr(""),Rn(""))}),_n=function(Sn,xn){dn(Sn);var In=xn.type,jn=xn.values;(In==="remove"||In==="clear")&&jn.forEach(function(Hn){gn(Hn.value,!1,In)})},Tn=function(Sn,xn){if(Rr(Sn),Rn(null),xn.source==="submit"){var In=(Sn||"").trim();if(In){var jn=Array.from(new Set([].concat(_toConsumableArray$3(vr),[In])));dn(jn),gn(In,!0),Rr("")}return}xn.source!=="blur"&&(st==="combobox"&&dn(Sn),_t==null||_t(Sn))},Nn=function(Sn){var xn=Sn;st!=="tags"&&(xn=Sn.map(function(jn){var Hn=kr.get(jn);return Hn==null?void 0:Hn.value}).filter(function(jn){return jn!==void 0}));var In=Array.from(new Set([].concat(_toConsumableArray$3(vr),_toConsumableArray$3(xn))));dn(In),In.forEach(function(jn){gn(jn,!0)})},On=reactExports.useMemo(function(){var $n=Zt!==!1&&jt!==!1;return _objectSpread2(_objectSpread2({},Pr),{},{flattenOptions:Gr,onActiveValue:pn,defaultActiveFirstOption:io,onSelect:yn,menuItemSelectedIcon:Gt,rawValues:vr,fieldNames:Or,virtual:$n,direction:er,listHeight:cr,listItemHeight:fr,childrenAsData:Tr,maxCount:Sr,optionRender:Vt})},[Sr,Pr,Gr,pn,io,yn,Gt,vr,Or,Zt,jt,er,cr,fr,Tr,Vt]);return reactExports.createElement(SelectContext.Provider,{value:On},reactExports.createElement(BaseSelect,_extends$b({},br,{id:mr,prefixCls:ut,ref:et,omitDomProps:OMIT_DOM_PROPS,mode:st,displayValues:vn,onDisplayValuesChange:_n,direction:er,searchValue:Nr,onSearch:Tn,autoClearSearchValue:Tt,onSearchSplit:Nn,dropdownMatchSelectWidth:jt,OptionList:RefOptionList$1,emptyOptions:!Gr.length,activeValue:Cn,activeDescendantId:"".concat(mr,"_list_").concat(Yn)})))}),TypedSelect=Select;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getEntity(_e,et){return _e[et]}function removeFromCheckedKeys(_e,et){var rt=new Set;return _e.forEach(function(st){et.has(st)||rt.add(st)}),rt}function isCheckDisabled$1(_e){var et=_e||{},rt=et.disabled,st=et.disableCheckbox,ct=et.checkable;return!!(rt||st)||ct===!1}function fillConductCheck(_e,et,rt,st){for(var ct=new Set(_e),ut=new Set,ft=0;ft<=rt;ft+=1){var gt=et.get(ft)||new Set;gt.forEach(function(wt){var Tt=wt.key,Rt=wt.node,It=wt.children,At=It===void 0?[]:It;ct.has(Tt)&&!st(Rt)&&At.filter(function(jt){return!st(jt.node)}).forEach(function(jt){ct.add(jt.key)})})}for(var xt=new Set,$t=rt;$t>=0;$t-=1){var _t=et.get($t)||new Set;_t.forEach(function(wt){var Tt=wt.parent,Rt=wt.node;if(!(st(Rt)||!wt.parent||xt.has(wt.parent.key))){if(st(wt.parent.node)){xt.add(Tt.key);return}var It=!0,At=!1;(Tt.children||[]).filter(function(jt){return!st(jt.node)}).forEach(function(jt){var Nt=jt.key,kt=ct.has(Nt);It&&!kt&&(It=!1),!At&&(kt||ut.has(Nt))&&(At=!0)}),It&&ct.add(Tt.key),At&&ut.add(Tt.key),xt.add(Tt.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(removeFromCheckedKeys(ut,ct))}}function cleanConductCheck(_e,et,rt,st,ct){for(var ut=new Set(_e),ft=new Set(et),gt=0;gt<=st;gt+=1){var xt=rt.get(gt)||new Set;xt.forEach(function(Tt){var Rt=Tt.key,It=Tt.node,At=Tt.children,jt=At===void 0?[]:At;!ut.has(Rt)&&!ft.has(Rt)&&!ct(It)&&jt.filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){ut.delete(Nt.key)})})}ft=new Set;for(var $t=new Set,_t=st;_t>=0;_t-=1){var wt=rt.get(_t)||new Set;wt.forEach(function(Tt){var Rt=Tt.parent,It=Tt.node;if(!(ct(It)||!Tt.parent||$t.has(Tt.parent.key))){if(ct(Tt.parent.node)){$t.add(Rt.key);return}var At=!0,jt=!1;(Rt.children||[]).filter(function(Nt){return!ct(Nt.node)}).forEach(function(Nt){var kt=Nt.key,Ft=ut.has(kt);At&&!Ft&&(At=!1),!jt&&(Ft||ft.has(kt))&&(jt=!0)}),At||ut.delete(Rt.key),jt&&ft.add(Rt.key),$t.add(Rt.key)}})}return{checkedKeys:Array.from(ut),halfCheckedKeys:Array.from(removeFromCheckedKeys(ft,ut))}}function conductCheck(_e,et,rt,st){var ct=[],ut;st?ut=st:ut=isCheckDisabled$1;var ft=new Set(_e.filter(function(_t){var wt=!!getEntity(rt,_t);return wt||ct.push(_t),wt})),gt=new Map,xt=0;Object.keys(rt).forEach(function(_t){var wt=rt[_t],Tt=wt.level,Rt=gt.get(Tt);Rt||(Rt=new Set,gt.set(Tt,Rt)),Rt.add(wt),xt=Math.max(xt,Tt)}),warningOnce$1(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(_t){return"'".concat(_t,"'")}).join(", ")));var $t;return et===!0?$t=fillConductCheck(ft,gt,xt,ut):$t=cleanConductCheck(ft,et.halfCheckedKeys,gt,xt,ut),$t}const useCache=function(_e){var et=reactExports.useRef({valueLabels:new Map});return reactExports.useMemo(function(){var rt=et.current.valueLabels,st=new Map,ct=_e.map(function(ut){var ft,gt=ut.value,xt=(ft=ut.label)!==null&&ft!==void 0?ft:rt.get(gt);return st.set(gt,xt),_objectSpread2(_objectSpread2({},ut),{},{label:xt})});return et.current.valueLabels=st,[ct]},[_e])},useCheckedKeys=function(_e,et,rt,st){return reactExports.useMemo(function(){var ct=_e.map(function(xt){var $t=xt.value;return $t}),ut=et.map(function(xt){var $t=xt.value;return $t}),ft=ct.filter(function(xt){return!st[xt]});if(rt){var gt=conductCheck(ct,!0,st);ct=gt.checkedKeys,ut=gt.halfCheckedKeys}return[Array.from(new Set([].concat(_toConsumableArray$3(ft),_toConsumableArray$3(ct)))),ut]},[_e,et,rt,st])};var _excluded$P=["children"];function getPosition(_e,et){return"".concat(_e,"-").concat(et)}function isTreeNode(_e){return _e&&_e.type&&_e.type.isTreeNode}function getKey(_e,et){return _e??et}function fillFieldNames$1(_e){var et=_e||{},rt=et.title,st=et._title,ct=et.key,ut=et.children,ft=rt||"title";return{title:ft,_title:st||[ft],key:ct||"key",children:ut||"children"}}function convertTreeToData(_e){function et(rt){var st=toArray$e(rt);return st.map(function(ct){if(!isTreeNode(ct))return warningOnce$1(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var ut=ct.key,ft=ct.props,gt=ft.children,xt=_objectWithoutProperties$2(ft,_excluded$P),$t=_objectSpread2({key:ut},xt),_t=et(gt);return _t.length&&($t.children=_t),$t}).filter(function(ct){return ct})}return et(_e)}function flattenTreeData(_e,et,rt){var st=fillFieldNames$1(rt),ct=st._title,ut=st.key,ft=st.children,gt=new Set(et===!0?[]:et),xt=[];function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _t.map(function(Tt,Rt){for(var It=getPosition(wt?wt.pos:"0",Rt),At=getKey(Tt[ut],It),jt,Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:{},rt=et.initWrapper,st=et.processEntity,ct=et.onProcessFinished,ut=et.externalGetKey,ft=et.childrenPropName,gt=et.fieldNames,xt=arguments.length>2?arguments[2]:void 0,$t=ut||xt,_t={},wt={},Tt={posEntities:_t,keyEntities:wt};return rt&&(Tt=rt(Tt)||Tt),traverseDataNodes(_e,function(Rt){var It=Rt.node,At=Rt.index,jt=Rt.pos,Nt=Rt.key,kt=Rt.parentPos,Ft=Rt.level,Ht=Rt.nodes,Wt={node:It,nodes:Ht,index:At,key:Nt,pos:jt,level:Ft},Vt=getKey(Nt,jt);_t[jt]=Wt,wt[Vt]=Wt,Wt.parent=_t[kt],Wt.parent&&(Wt.parent.children=Wt.parent.children||[],Wt.parent.children.push(Wt)),st&&st(Wt,Tt)},{externalGetKey:$t,childrenPropName:ft,fieldNames:gt}),ct&&ct(Tt),Tt}function getTreeNodeProps(_e,et){var rt=et.expandedKeys,st=et.selectedKeys,ct=et.loadedKeys,ut=et.loadingKeys,ft=et.checkedKeys,gt=et.halfCheckedKeys,xt=et.dragOverNodeKey,$t=et.dropPosition,_t=et.keyEntities,wt=getEntity(_t,_e),Tt={eventKey:_e,expanded:rt.indexOf(_e)!==-1,selected:st.indexOf(_e)!==-1,loaded:ct.indexOf(_e)!==-1,loading:ut.indexOf(_e)!==-1,checked:ft.indexOf(_e)!==-1,halfChecked:gt.indexOf(_e)!==-1,pos:String(wt?wt.pos:""),dragOver:xt===_e&&$t===0,dragOverGapTop:xt===_e&&$t===-1,dragOverGapBottom:xt===_e&&$t===1};return Tt}function convertNodePropsToEventData(_e){var et=_e.data,rt=_e.expanded,st=_e.selected,ct=_e.checked,ut=_e.loaded,ft=_e.loading,gt=_e.halfChecked,xt=_e.dragOver,$t=_e.dragOverGapTop,_t=_e.dragOverGapBottom,wt=_e.pos,Tt=_e.active,Rt=_e.eventKey,It=_objectSpread2(_objectSpread2({},et),{},{expanded:rt,selected:st,checked:ct,loaded:ut,loading:ft,halfChecked:gt,dragOver:xt,dragOverGapTop:$t,dragOverGapBottom:_t,pos:wt,active:Tt,key:Rt});return"props"in It||Object.defineProperty(It,"props",{get:function(){return warningOnce$1(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_e}}),It}function toArray$5(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}function fillFieldNames(_e){var et=_e||{},rt=et.label,st=et.value,ct=et.children,ut=st||"value";return{_title:rt?[rt]:["title","label"],value:ut,key:ut,children:ct||"children"}}function isCheckDisabled(_e){return!_e||_e.disabled||_e.disableCheckbox||_e.checkable===!1}function getAllKeys$3(_e,et){var rt=[];function st(ct){ct.forEach(function(ut){var ft=ut[et.children];ft&&(rt.push(ut[et.value]),st(ft))})}return st(_e),rt}function isNil$1(_e){return _e==null}const useDataEntities=function(_e,et){return reactExports.useMemo(function(){var rt=convertDataToEntities(_e,{fieldNames:et,initWrapper:function(ct){return _objectSpread2(_objectSpread2({},ct),{},{valueEntities:new Map})},processEntity:function(ct,ut){var ft=ct.node[et.value];ut.valueEntities.set(ft,ct)}});return rt},[_e,et])};var TreeNode=function(){return null},_excluded$O=["children","value"];function convertChildrenToData(_e){return toArray$e(_e).map(function(et){if(!reactExports.isValidElement(et)||!et.type)return null;var rt=et,st=rt.key,ct=rt.props,ut=ct.children,ft=ct.value,gt=_objectWithoutProperties$2(ct,_excluded$O),xt=_objectSpread2({key:st,value:ft},gt),$t=convertChildrenToData(ut);return $t.length&&(xt.children=$t),xt}).filter(function(et){return et})}function fillLegacyProps(_e){if(!_e)return _e;var et=_objectSpread2({},_e);return"props"in et||Object.defineProperty(et,"props",{get:function(){return warningOnce$1(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),et}}),et}function fillAdditionalInfo(_e,et,rt,st,ct,ut){var ft=null,gt=null;function xt(){function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _t.map(function(Rt,It){var At="".concat(wt,"-").concat(It),jt=Rt[ut.value],Nt=rt.includes(jt),kt=$t(Rt[ut.children]||[],At,Nt),Ft=reactExports.createElement(TreeNode,Rt,kt.map(function(Wt){return Wt.node}));if(et===jt&&(ft=Ft),Nt){var Ht={pos:At,node:Ft,children:kt};return Tt||gt.push(Ht),Ht}return null}).filter(function(Rt){return Rt})}gt||(gt=[],$t(st),gt.sort(function(_t,wt){var Tt=_t.node.props.value,Rt=wt.node.props.value,It=rt.indexOf(Tt),At=rt.indexOf(Rt);return It-At}))}Object.defineProperty(_e,"triggerNode",{get:function(){return warningOnce$1(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),xt(),ft}}),Object.defineProperty(_e,"allCheckedNodes",{get:function(){return warningOnce$1(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),xt(),ct?gt:gt.map(function(_t){var wt=_t.node;return wt})}})}const useFilterTreeData=function(_e,et,rt){var st=rt.treeNodeFilterProp,ct=rt.filterTreeNode,ut=rt.fieldNames,ft=ut.children;return reactExports.useMemo(function(){if(!et||ct===!1)return _e;var gt;if(typeof ct=="function")gt=ct;else{var xt=et.toUpperCase();gt=function(wt,Tt){var Rt=Tt[st];return String(Rt).toUpperCase().includes(xt)}}function $t(_t){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _t.reduce(function(Tt,Rt){var It=Rt[ft],At=wt||gt(et,fillLegacyProps(Rt)),jt=$t(It||[],At);return(At||jt.length)&&Tt.push(_objectSpread2(_objectSpread2({},Rt),{},_defineProperty$c({isLeaf:void 0},ft,jt))),Tt},[])}return $t(_e)},[_e,et,ft,st,ct])};function useRefFunc(_e){var et=reactExports.useRef();et.current=_e;var rt=reactExports.useCallback(function(){return et.current.apply(et,arguments)},[]);return rt}function parseSimpleTreeData(_e,et){var rt=et.id,st=et.pId,ct=et.rootPId,ut={},ft=[],gt=_e.map(function(xt){var $t=_objectSpread2({},xt),_t=$t[rt];return ut[_t]=$t,$t.key=$t.key||_t,$t});return gt.forEach(function(xt){var $t=xt[st],_t=ut[$t];_t&&(_t.children=_t.children||[],_t.children.push(xt)),($t===ct||!_t&&ct===null)&&ft.push(xt)}),ft}function useTreeData(_e,et,rt){return reactExports.useMemo(function(){return _e?rt?parseSimpleTreeData(_e,_objectSpread2({id:"id",pId:"pId",rootPId:null},rt!==!0?rt:{})):_e:convertChildrenToData(et)},[et,rt,_e])}var LegacySelectContext=reactExports.createContext(null),TreeContext=reactExports.createContext(null);function DropIndicator(_e){var et=_e.dropPosition,rt=_e.dropLevelOffset,st=_e.indent,ct={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(et){case-1:ct.top=0,ct.left=-rt*st;break;case 1:ct.bottom=0,ct.left=-rt*st;break;case 0:ct.bottom=0,ct.left=st;break}return reactExports.createElement("div",{style:ct})}var Indent=function(et){for(var rt=et.prefixCls,st=et.level,ct=et.isStart,ut=et.isEnd,ft="".concat(rt,"-indent-unit"),gt=[],xt=0;xt0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=_e.length,st=et.length;if(Math.abs(rt-st)!==1)return{add:!1,key:null};function ct(ut,ft){var gt=new Map;ut.forEach(function($t){gt.set($t,!0)});var xt=ft.filter(function($t){return!gt.has($t)});return xt.length===1?xt[0]:null}return rt ").concat(et);return et}var NodeList=reactExports.forwardRef(function(_e,et){var rt=_e.prefixCls,st=_e.data;_e.selectable,_e.checkable;var ct=_e.expandedKeys,ut=_e.selectedKeys,ft=_e.checkedKeys,gt=_e.loadedKeys,xt=_e.loadingKeys,$t=_e.halfCheckedKeys,_t=_e.keyEntities,wt=_e.disabled,Tt=_e.dragging,Rt=_e.dragOverNodeKey,It=_e.dropPosition,At=_e.motion,jt=_e.height,Nt=_e.itemHeight,kt=_e.virtual,Ft=_e.focusable,Ht=_e.activeItem,Wt=_e.focused,Vt=_e.tabIndex,qt=_e.onKeyDown,Xt=_e.onFocus,Gt=_e.onBlur,Zt=_e.onActiveChange,er=_e.onListChangeStart,lr=_e.onListChangeEnd,cr=_objectWithoutProperties$2(_e,_excluded$L),ur=reactExports.useRef(null),fr=reactExports.useRef(null);reactExports.useImperativeHandle(et,function(){return{scrollTo:function(Vr){ur.current.scrollTo(Vr)},getIndentWidth:function(){return fr.current.offsetWidth}}});var hr=reactExports.useState(ct),pr=_slicedToArray$3(hr,2),dr=pr[0],yr=pr[1],Sr=reactExports.useState(st),br=_slicedToArray$3(Sr,2),mr=br[0],Er=br[1],Tr=reactExports.useState(st),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1],Cr=reactExports.useState([]),Nr=_slicedToArray$3(Cr,2),Rr=Nr[0],Pr=Nr[1],jr=reactExports.useState(null),kr=_slicedToArray$3(jr,2),Fr=kr[0],_r=kr[1],Br=reactExports.useRef(st);Br.current=st;function Dr(){var Hr=Br.current;Er(Hr),wr(Hr),Pr([]),_r(null),lr()}useLayoutEffect$3(function(){yr(ct);var Hr=findExpandedKeys(dr,ct);if(Hr.key!==null)if(Hr.add){var Vr=mr.findIndex(function(gr){var $r=gr.key;return $r===Hr.key}),ln=getMinimumRangeTransitionRange(getExpandRange(mr,st,Hr.key),kt,jt,Nt),Qr=mr.slice();Qr.splice(Vr+1,0,MotionFlattenData),wr(Qr),Pr(ln),_r("show")}else{var Zr=st.findIndex(function(gr){var $r=gr.key;return $r===Hr.key}),vn=getMinimumRangeTransitionRange(getExpandRange(st,mr,Hr.key),kt,jt,Nt),vr=st.slice();vr.splice(Zr+1,0,MotionFlattenData),wr(vr),Pr(vn),_r("hide")}else mr!==st&&(Er(st),wr(st))},[ct,st]),reactExports.useEffect(function(){Tt||Dr()},[Tt]);var Xr=At?Or:st,Kr={expandedKeys:ct,selectedKeys:ut,loadedKeys:gt,loadingKeys:xt,checkedKeys:ft,halfCheckedKeys:$t,dragOverNodeKey:Rt,dropPosition:It,keyEntities:_t};return reactExports.createElement(reactExports.Fragment,null,Wt&&Ht&&reactExports.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(Ht)),reactExports.createElement("div",null,reactExports.createElement("input",{style:HIDDEN_STYLE$1,disabled:Ft===!1||wt,tabIndex:Ft!==!1?Vt:null,onKeyDown:qt,onFocus:Xt,onBlur:Gt,value:"",onChange:noop$4,"aria-label":"for screen reader"})),reactExports.createElement("div",{className:"".concat(rt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},reactExports.createElement("div",{className:"".concat(rt,"-indent")},reactExports.createElement("div",{ref:fr,className:"".concat(rt,"-indent-unit")}))),reactExports.createElement(List$2,_extends$b({},cr,{data:Xr,itemKey,height:jt,fullHeight:!1,virtual:kt,itemHeight:Nt,prefixCls:"".concat(rt,"-list"),ref:ur,onVisibleChange:function(Vr,ln){var Qr=new Set(Vr),Zr=ln.filter(function(vn){return!Qr.has(vn)});Zr.some(function(vn){return itemKey(vn)===MOTION_KEY})&&Dr()}}),function(Hr){var Vr=Hr.pos,ln=Object.assign({},(_objectDestructuringEmpty(Hr.data),Hr.data)),Qr=Hr.title,Zr=Hr.key,vn=Hr.isStart,vr=Hr.isEnd,gr=getKey(Zr,Vr);delete ln.key,delete ln.children;var $r=getTreeNodeProps(gr,Kr);return reactExports.createElement(RefMotionTreeNode,_extends$b({},ln,$r,{title:Qr,active:!!Ht&&Zr===Ht.key,pos:Vr,data:Hr.data,isStart:vn,isEnd:vr,motion:At,motionNodes:Zr===MOTION_KEY?Rr:null,motionType:Fr,onMotionStart:er,onMotionEnd:Dr,treeNodeRequiredProps:Kr,onMouseMove:function(){Zt(null)}}))}))});NodeList.displayName="NodeList";function arrDel(_e,et){if(!_e)return[];var rt=_e.slice(),st=rt.indexOf(et);return st>=0&&rt.splice(st,1),rt}function arrAdd(_e,et){var rt=(_e||[]).slice();return rt.indexOf(et)===-1&&rt.push(et),rt}function posToArr(_e){return _e.split("-")}function getDragChildrenKeys(_e,et){var rt=[],st=getEntity(et,_e);function ct(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ut.forEach(function(ft){var gt=ft.key,xt=ft.children;rt.push(gt),ct(xt)})}return ct(st.children),rt}function isLastChild(_e){if(_e.parent){var et=posToArr(_e.pos);return Number(et[et.length-1])===_e.parent.children.length-1}return!1}function isFirstChild(_e){var et=posToArr(_e.pos);return Number(et[et.length-1])===0}function calcDropPosition(_e,et,rt,st,ct,ut,ft,gt,xt,$t){var _t,wt=_e.clientX,Tt=_e.clientY,Rt=_e.target.getBoundingClientRect(),It=Rt.top,At=Rt.height,jt=($t==="rtl"?-1:1)*(((ct==null?void 0:ct.x)||0)-wt),Nt=(jt-12)/st,kt=xt.filter(function(hr){var pr;return(pr=gt[hr])===null||pr===void 0||(pr=pr.children)===null||pr===void 0?void 0:pr.length}),Ft=getEntity(gt,rt.props.eventKey);if(Tt-1.5?ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:fr=!1:ut({dragNode:cr,dropNode:ur,dropPosition:0})?Zt=0:ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:fr=!1:ut({dragNode:cr,dropNode:ur,dropPosition:1})?Zt=1:fr=!1,{dropPosition:Zt,dropLevelOffset:er,dropTargetKey:Ft.key,dropTargetPos:Ft.pos,dragOverNodeKey:Gt,dropContainerKey:Zt===0?null:((_t=Ft.parent)===null||_t===void 0?void 0:_t.key)||null,dropAllowed:fr}}function calcSelectedKeys(_e,et){if(_e){var rt=et.multiple;return rt?_e.slice():_e.length?[_e[0]]:_e}}function parseCheckedKeys(_e){if(!_e)return null;var et;if(Array.isArray(_e))et={checkedKeys:_e,halfCheckedKeys:void 0};else if(_typeof$e(_e)==="object")et={checkedKeys:_e.checked||void 0,halfCheckedKeys:_e.halfChecked||void 0};else return warningOnce$1(!1,"`checkedKeys` is not an array or an object"),null;return et}function conductExpandParent(_e,et){var rt=new Set;function st(ct){if(!rt.has(ct)){var ut=getEntity(et,ct);if(ut){rt.add(ct);var ft=ut.parent,gt=ut.node;gt.disabled||ft&&st(ft.key)}}}return(_e||[]).forEach(function(ct){st(ct)}),_toConsumableArray$3(rt)}var MAX_RETRY_TIMES=10,Tree=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){var st;_classCallCheck$9(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft2&&arguments[2]!==void 0?arguments[2]:!1,wt=st.state,Tt=wt.dragChildrenKeys,Rt=wt.dropPosition,It=wt.dropTargetKey,At=wt.dropTargetPos,jt=wt.dropAllowed;if(jt){var Nt=st.props.onDrop;if(st.setState({dragOverNodeKey:null}),st.cleanDragState(),It!==null){var kt=_objectSpread2(_objectSpread2({},getTreeNodeProps(It,st.getTreeNodeRequiredProps())),{},{active:(($t=st.getActiveItem())===null||$t===void 0?void 0:$t.key)===It,data:getEntity(st.state.keyEntities,It).node}),Ft=Tt.indexOf(It)!==-1;warningOnce$1(!Ft,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ht=posToArr(At),Wt={event:gt,node:convertNodePropsToEventData(kt),dragNode:st.dragNode?convertNodePropsToEventData(st.dragNode.props):null,dragNodesKeys:[st.dragNode.props.eventKey].concat(Tt),dropToGap:Rt!==0,dropPosition:Rt+Number(Ht[Ht.length-1])};_t||Nt==null||Nt(Wt),st.dragNode=null}}}),_defineProperty$c(_assertThisInitialized$7(st),"cleanDragState",function(){var gt=st.state.draggingNodeKey;gt!==null&&st.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),st.dragStartMousePosition=null,st.currentMouseOverDroppableNodeKey=null}),_defineProperty$c(_assertThisInitialized$7(st),"triggerExpandActionExpand",function(gt,xt){var $t=st.state,_t=$t.expandedKeys,wt=$t.flattenNodes,Tt=xt.expanded,Rt=xt.key,It=xt.isLeaf;if(!(It||gt.shiftKey||gt.metaKey||gt.ctrlKey)){var At=wt.filter(function(Nt){return Nt.key===Rt})[0],jt=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(Rt,st.getTreeNodeRequiredProps())),{},{data:At.data}));st.setExpandedKeys(Tt?arrDel(_t,Rt):arrAdd(_t,Rt)),st.onNodeExpand(gt,jt)}}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeClick",function(gt,xt){var $t=st.props,_t=$t.onClick,wt=$t.expandAction;wt==="click"&&st.triggerExpandActionExpand(gt,xt),_t==null||_t(gt,xt)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeDoubleClick",function(gt,xt){var $t=st.props,_t=$t.onDoubleClick,wt=$t.expandAction;wt==="doubleClick"&&st.triggerExpandActionExpand(gt,xt),_t==null||_t(gt,xt)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeSelect",function(gt,xt){var $t=st.state.selectedKeys,_t=st.state,wt=_t.keyEntities,Tt=_t.fieldNames,Rt=st.props,It=Rt.onSelect,At=Rt.multiple,jt=xt.selected,Nt=xt[Tt.key],kt=!jt;kt?At?$t=arrAdd($t,Nt):$t=[Nt]:$t=arrDel($t,Nt);var Ft=$t.map(function(Ht){var Wt=getEntity(wt,Ht);return Wt?Wt.node:null}).filter(function(Ht){return Ht});st.setUncontrolledState({selectedKeys:$t}),It==null||It($t,{event:"select",selected:kt,node:xt,selectedNodes:Ft,nativeEvent:gt.nativeEvent})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeCheck",function(gt,xt,$t){var _t=st.state,wt=_t.keyEntities,Tt=_t.checkedKeys,Rt=_t.halfCheckedKeys,It=st.props,At=It.checkStrictly,jt=It.onCheck,Nt=xt.key,kt,Ft={event:"check",node:xt,checked:$t,nativeEvent:gt.nativeEvent};if(At){var Ht=$t?arrAdd(Tt,Nt):arrDel(Tt,Nt),Wt=arrDel(Rt,Nt);kt={checked:Ht,halfChecked:Wt},Ft.checkedNodes=Ht.map(function(er){return getEntity(wt,er)}).filter(function(er){return er}).map(function(er){return er.node}),st.setUncontrolledState({checkedKeys:Ht})}else{var Vt=conductCheck([].concat(_toConsumableArray$3(Tt),[Nt]),!0,wt),qt=Vt.checkedKeys,Xt=Vt.halfCheckedKeys;if(!$t){var Gt=new Set(qt);Gt.delete(Nt);var Zt=conductCheck(Array.from(Gt),{checked:!1,halfCheckedKeys:Xt},wt);qt=Zt.checkedKeys,Xt=Zt.halfCheckedKeys}kt=qt,Ft.checkedNodes=[],Ft.checkedNodesPositions=[],Ft.halfCheckedKeys=Xt,qt.forEach(function(er){var lr=getEntity(wt,er);if(lr){var cr=lr.node,ur=lr.pos;Ft.checkedNodes.push(cr),Ft.checkedNodesPositions.push({node:cr,pos:ur})}}),st.setUncontrolledState({checkedKeys:qt},!1,{halfCheckedKeys:Xt})}jt==null||jt(kt,Ft)}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeLoad",function(gt){var xt=gt.key,$t=new Promise(function(_t,wt){st.setState(function(Tt){var Rt=Tt.loadedKeys,It=Rt===void 0?[]:Rt,At=Tt.loadingKeys,jt=At===void 0?[]:At,Nt=st.props,kt=Nt.loadData,Ft=Nt.onLoad;if(!kt||It.indexOf(xt)!==-1||jt.indexOf(xt)!==-1)return null;var Ht=kt(gt);return Ht.then(function(){var Wt=st.state.loadedKeys,Vt=arrAdd(Wt,xt);Ft==null||Ft(Vt,{event:"load",node:gt}),st.setUncontrolledState({loadedKeys:Vt}),st.setState(function(qt){return{loadingKeys:arrDel(qt.loadingKeys,xt)}}),_t()}).catch(function(Wt){if(st.setState(function(qt){return{loadingKeys:arrDel(qt.loadingKeys,xt)}}),st.loadingRetryTimes[xt]=(st.loadingRetryTimes[xt]||0)+1,st.loadingRetryTimes[xt]>=MAX_RETRY_TIMES){var Vt=st.state.loadedKeys;warningOnce$1(!1,"Retry for `loadData` many times but still failed. No more retry."),st.setUncontrolledState({loadedKeys:arrAdd(Vt,xt)}),_t()}wt(Wt)}),{loadingKeys:arrAdd(jt,xt)}})});return $t.catch(function(){}),$t}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeMouseEnter",function(gt,xt){var $t=st.props.onMouseEnter;$t==null||$t({event:gt,node:xt})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeMouseLeave",function(gt,xt){var $t=st.props.onMouseLeave;$t==null||$t({event:gt,node:xt})}),_defineProperty$c(_assertThisInitialized$7(st),"onNodeContextMenu",function(gt,xt){var $t=st.props.onRightClick;$t&&(gt.preventDefault(),$t({event:gt,node:xt}))}),_defineProperty$c(_assertThisInitialized$7(st),"onFocus",function(){var gt=st.props.onFocus;st.setState({focused:!0});for(var xt=arguments.length,$t=new Array(xt),_t=0;_t1&&arguments[1]!==void 0?arguments[1]:!1,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!st.destroyed){var _t=!1,wt=!0,Tt={};Object.keys(gt).forEach(function(Rt){if(Rt in st.props){wt=!1;return}_t=!0,Tt[Rt]=gt[Rt]}),_t&&(!xt||wt)&&st.setState(_objectSpread2(_objectSpread2({},Tt),$t))}}),_defineProperty$c(_assertThisInitialized$7(st),"scrollTo",function(gt){st.listRef.current.scrollTo(gt)}),st}return _createClass$7(rt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ct=this.props,ut=ct.activeKey,ft=ct.itemScrollOffset,gt=ft===void 0?0:ft;ut!==void 0&&ut!==this.state.activeKey&&(this.setState({activeKey:ut}),ut!==null&&this.scrollTo({key:ut,offset:gt}))}},{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 ct=this.state,ut=ct.focused,ft=ct.flattenNodes,gt=ct.keyEntities,xt=ct.draggingNodeKey,$t=ct.activeKey,_t=ct.dropLevelOffset,wt=ct.dropContainerKey,Tt=ct.dropTargetKey,Rt=ct.dropPosition,It=ct.dragOverNodeKey,At=ct.indent,jt=this.props,Nt=jt.prefixCls,kt=jt.className,Ft=jt.style,Ht=jt.showLine,Wt=jt.focusable,Vt=jt.tabIndex,qt=Vt===void 0?0:Vt,Xt=jt.selectable,Gt=jt.showIcon,Zt=jt.icon,er=jt.switcherIcon,lr=jt.draggable,cr=jt.checkable,ur=jt.checkStrictly,fr=jt.disabled,hr=jt.motion,pr=jt.loadData,dr=jt.filterTreeNode,yr=jt.height,Sr=jt.itemHeight,br=jt.virtual,mr=jt.titleRender,Er=jt.dropIndicatorRender,Tr=jt.onContextMenu,Mr=jt.onScroll,Or=jt.direction,wr=jt.rootClassName,Cr=jt.rootStyle,Nr=pickAttrs(this.props,{aria:!0,data:!0}),Rr;return lr&&(_typeof$e(lr)==="object"?Rr=lr:typeof lr=="function"?Rr={nodeDraggable:lr}:Rr={}),reactExports.createElement(TreeContext.Provider,{value:{prefixCls:Nt,selectable:Xt,showIcon:Gt,icon:Zt,switcherIcon:er,draggable:Rr,draggingNodeKey:xt,checkable:cr,checkStrictly:ur,disabled:fr,keyEntities:gt,dropLevelOffset:_t,dropContainerKey:wt,dropTargetKey:Tt,dropPosition:Rt,dragOverNodeKey:It,indent:At,direction:Or,dropIndicatorRender:Er,loadData:pr,filterTreeNode:dr,titleRender:mr,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}},reactExports.createElement("div",{role:"tree",className:classNames(Nt,kt,wr,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Nt,"-show-line"),Ht),"".concat(Nt,"-focused"),ut),"".concat(Nt,"-active-focused"),$t!==null)),style:Cr},reactExports.createElement(NodeList,_extends$b({ref:this.listRef,prefixCls:Nt,style:Ft,data:ft,disabled:fr,selectable:Xt,checkable:!!cr,motion:hr,dragging:xt!==null,height:yr,itemHeight:Sr,virtual:br,focusable:Wt,focused:ut,tabIndex:qt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Tr,onScroll:Mr},this.getTreeNodeRequiredProps(),Nr))))}}],[{key:"getDerivedStateFromProps",value:function(ct,ut){var ft=ut.prevProps,gt={prevProps:ct};function xt(Vt){return!ft&&Vt in ct||ft&&ft[Vt]!==ct[Vt]}var $t,_t=ut.fieldNames;if(xt("fieldNames")&&(_t=fillFieldNames$1(ct.fieldNames),gt.fieldNames=_t),xt("treeData")?$t=ct.treeData:xt("children")&&(warningOnce$1(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),$t=convertTreeToData(ct.children)),$t){gt.treeData=$t;var wt=convertDataToEntities($t,{fieldNames:_t});gt.keyEntities=_objectSpread2(_defineProperty$c({},MOTION_KEY,MotionEntity),wt.keyEntities)}var Tt=gt.keyEntities||ut.keyEntities;if(xt("expandedKeys")||ft&&xt("autoExpandParent"))gt.expandedKeys=ct.autoExpandParent||!ft&&ct.defaultExpandParent?conductExpandParent(ct.expandedKeys,Tt):ct.expandedKeys;else if(!ft&&ct.defaultExpandAll){var Rt=_objectSpread2({},Tt);delete Rt[MOTION_KEY],gt.expandedKeys=Object.keys(Rt).map(function(Vt){return Rt[Vt].key})}else!ft&&ct.defaultExpandedKeys&&(gt.expandedKeys=ct.autoExpandParent||ct.defaultExpandParent?conductExpandParent(ct.defaultExpandedKeys,Tt):ct.defaultExpandedKeys);if(gt.expandedKeys||delete gt.expandedKeys,$t||gt.expandedKeys){var It=flattenTreeData($t||ut.treeData,gt.expandedKeys||ut.expandedKeys,_t);gt.flattenNodes=It}if(ct.selectable&&(xt("selectedKeys")?gt.selectedKeys=calcSelectedKeys(ct.selectedKeys,ct):!ft&&ct.defaultSelectedKeys&&(gt.selectedKeys=calcSelectedKeys(ct.defaultSelectedKeys,ct))),ct.checkable){var At;if(xt("checkedKeys")?At=parseCheckedKeys(ct.checkedKeys)||{}:!ft&&ct.defaultCheckedKeys?At=parseCheckedKeys(ct.defaultCheckedKeys)||{}:$t&&(At=parseCheckedKeys(ct.checkedKeys)||{checkedKeys:ut.checkedKeys,halfCheckedKeys:ut.halfCheckedKeys}),At){var jt=At,Nt=jt.checkedKeys,kt=Nt===void 0?[]:Nt,Ft=jt.halfCheckedKeys,Ht=Ft===void 0?[]:Ft;if(!ct.checkStrictly){var Wt=conductCheck(kt,!0,Tt);kt=Wt.checkedKeys,Ht=Wt.halfCheckedKeys}gt.checkedKeys=kt,gt.halfCheckedKeys=Ht}}return xt("loadedKeys")&&(gt.loadedKeys=ct.loadedKeys),gt}}]),rt}(reactExports.Component);_defineProperty$c(Tree,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1});_defineProperty$c(Tree,"TreeNode",ContextTreeNode);var TreeSelectContext=reactExports.createContext(null),HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OptionList=function(et,rt){var st=useBaseProps(),ct=st.prefixCls,ut=st.multiple,ft=st.searchValue,gt=st.toggleOpen,xt=st.open,$t=st.notFoundContent,_t=reactExports.useContext(TreeSelectContext),wt=_t.virtual,Tt=_t.listHeight,Rt=_t.listItemHeight,It=_t.listItemScrollOffset,At=_t.treeData,jt=_t.fieldNames,Nt=_t.onSelect,kt=_t.dropdownMatchSelectWidth,Ft=_t.treeExpandAction,Ht=_t.treeTitleRender,Wt=reactExports.useContext(LegacySelectContext),Vt=Wt.checkable,qt=Wt.checkedKeys,Xt=Wt.halfCheckedKeys,Gt=Wt.treeExpandedKeys,Zt=Wt.treeDefaultExpandAll,er=Wt.treeDefaultExpandedKeys,lr=Wt.onTreeExpand,cr=Wt.treeIcon,ur=Wt.showTreeIcon,fr=Wt.switcherIcon,hr=Wt.treeLine,pr=Wt.treeNodeFilterProp,dr=Wt.loadData,yr=Wt.treeLoadedKeys,Sr=Wt.treeMotion,br=Wt.onTreeLoad,mr=Wt.keyEntities,Er=reactExports.useRef(),Tr=useMemo$1(function(){return At},[xt,At],function(vr,gr){return gr[0]&&vr[1]!==gr[1]}),Mr=reactExports.useState(null),Or=_slicedToArray$3(Mr,2),wr=Or[0],Cr=Or[1],Nr=mr[wr],Rr=reactExports.useMemo(function(){return Vt?{checked:qt,halfChecked:Xt}:null},[Vt,qt,Xt]);reactExports.useEffect(function(){if(xt&&!ut&&qt.length){var vr;(vr=Er.current)===null||vr===void 0||vr.scrollTo({key:qt[0]}),Cr(qt[0])}},[xt]);var Pr=String(ft).toLowerCase(),jr=function(gr){return Pr?String(gr[pr]).toLowerCase().includes(Pr):!1},kr=reactExports.useState(er),Fr=_slicedToArray$3(kr,2),_r=Fr[0],Br=Fr[1],Dr=reactExports.useState(null),Xr=_slicedToArray$3(Dr,2),Kr=Xr[0],Hr=Xr[1],Vr=reactExports.useMemo(function(){return Gt?_toConsumableArray$3(Gt):ft?Kr:_r},[_r,Kr,Gt,ft]);reactExports.useEffect(function(){ft&&Hr(getAllKeys$3(At,jt))},[ft]);var ln=function(gr){Br(gr),Hr(gr),lr&&lr(gr)},Qr=function(gr){gr.preventDefault()},Zr=function(gr,$r){var zr=$r.node;Vt&&isCheckDisabled(zr)||(Nt(zr.key,{selected:!qt.includes(zr.key)}),ut||gt(!1))};if(reactExports.useImperativeHandle(rt,function(){var vr;return{scrollTo:(vr=Er.current)===null||vr===void 0?void 0:vr.scrollTo,onKeyDown:function($r){var zr,qr=$r.which;switch(qr){case KeyCode.UP:case KeyCode.DOWN:case KeyCode.LEFT:case KeyCode.RIGHT:(zr=Er.current)===null||zr===void 0||zr.onKeyDown($r);break;case KeyCode.ENTER:{if(Nr){var Wr=(Nr==null?void 0:Nr.node)||{},Gr=Wr.selectable,dn=Wr.value;Gr!==!1&&Zr(null,{node:{key:wr},selected:!qt.includes(dn)})}break}case KeyCode.ESC:gt(!1)}},onKeyUp:function(){}}}),Tr.length===0)return reactExports.createElement("div",{role:"listbox",className:"".concat(ct,"-empty"),onMouseDown:Qr},$t);var vn={fieldNames:jt};return yr&&(vn.loadedKeys=yr),Vr&&(vn.expandedKeys=Vr),reactExports.createElement("div",{onMouseDown:Qr},Nr&&xt&&reactExports.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},Nr.node.value),reactExports.createElement(Tree,_extends$b({ref:Er,focusable:!1,prefixCls:"".concat(ct,"-tree"),treeData:Tr,height:Tt,itemHeight:Rt,itemScrollOffset:It,virtual:wt!==!1&&kt!==!1,multiple:ut,icon:cr,showIcon:ur,switcherIcon:fr,showLine:hr,loadData:ft?null:dr,motion:Sr,activeKey:wr,checkable:Vt,checkStrictly:!0,checkedKeys:Rr,selectedKeys:Vt?[]:qt,defaultExpandAll:Zt,titleRender:Ht},vn,{onActiveChange:Cr,onSelect:Zr,onCheck:Zr,onExpand:ln,onLoad:br,filterTreeNode:jr,expandAction:Ft})))},RefOptionList=reactExports.forwardRef(OptionList),SHOW_ALL="SHOW_ALL",SHOW_PARENT="SHOW_PARENT",SHOW_CHILD="SHOW_CHILD";function formatStrategyValues(_e,et,rt,st){var ct=new Set(_e);return et===SHOW_CHILD?_e.filter(function(ut){var ft=rt[ut];return!(ft&&ft.children&&ft.children.some(function(gt){var xt=gt.node;return ct.has(xt[st.value])})&&ft.children.every(function(gt){var xt=gt.node;return isCheckDisabled(xt)||ct.has(xt[st.value])}))}):et===SHOW_PARENT?_e.filter(function(ut){var ft=rt[ut],gt=ft?ft.parent:null;return!(gt&&!isCheckDisabled(gt.node)&&ct.has(gt.key))}):_e}var _excluded$K=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender"];function isRawValue(_e){return!_e||_typeof$e(_e)!=="object"}var TreeSelect$2=reactExports.forwardRef(function(_e,et){var rt=_e.id,st=_e.prefixCls,ct=st===void 0?"rc-tree-select":st,ut=_e.value,ft=_e.defaultValue,gt=_e.onChange,xt=_e.onSelect,$t=_e.onDeselect,_t=_e.searchValue,wt=_e.inputValue,Tt=_e.onSearch,Rt=_e.autoClearSearchValue,It=Rt===void 0?!0:Rt,At=_e.filterTreeNode,jt=_e.treeNodeFilterProp,Nt=jt===void 0?"value":jt,kt=_e.showCheckedStrategy,Ft=_e.treeNodeLabelProp,Ht=_e.multiple,Wt=_e.treeCheckable,Vt=_e.treeCheckStrictly,qt=_e.labelInValue,Xt=_e.fieldNames,Gt=_e.treeDataSimpleMode,Zt=_e.treeData,er=_e.children,lr=_e.loadData,cr=_e.treeLoadedKeys,ur=_e.onTreeLoad,fr=_e.treeDefaultExpandAll,hr=_e.treeExpandedKeys,pr=_e.treeDefaultExpandedKeys,dr=_e.onTreeExpand,yr=_e.treeExpandAction,Sr=_e.virtual,br=_e.listHeight,mr=br===void 0?200:br,Er=_e.listItemHeight,Tr=Er===void 0?20:Er,Mr=_e.listItemScrollOffset,Or=Mr===void 0?0:Mr,wr=_e.onDropdownVisibleChange,Cr=_e.dropdownMatchSelectWidth,Nr=Cr===void 0?!0:Cr,Rr=_e.treeLine,Pr=_e.treeIcon,jr=_e.showTreeIcon,kr=_e.switcherIcon,Fr=_e.treeMotion,_r=_e.treeTitleRender,Br=_objectWithoutProperties$2(_e,_excluded$K),Dr=useId(rt),Xr=Wt&&!Vt,Kr=Wt||Vt,Hr=Vt||qt,Vr=Kr||Ht,ln=useMergedState(ft,{value:ut}),Qr=_slicedToArray$3(ln,2),Zr=Qr[0],vn=Qr[1],vr=reactExports.useMemo(function(){return Wt?kt||SHOW_CHILD:SHOW_ALL},[kt,Wt]),gr=reactExports.useMemo(function(){return fillFieldNames(Xt)},[JSON.stringify(Xt)]),$r=useMergedState("",{value:_t!==void 0?_t:wt,postState:function(cn){return cn||""}}),zr=_slicedToArray$3($r,2),qr=zr[0],Wr=zr[1],Gr=function(cn){Wr(cn),Tt==null||Tt(cn)},dn=useTreeData(Zt,er,Gt),mn=useDataEntities(dn,gr),hn=mn.keyEntities,Cn=mn.valueEntities,Rn=reactExports.useCallback(function(wn){var cn=[],Pn=[];return wn.forEach(function(An){Cn.has(An)?Pn.push(An):cn.push(An)}),{missingRawValues:cn,existRawValues:Pn}},[Cn]),kn=useFilterTreeData(dn,qr,{fieldNames:gr,treeNodeFilterProp:Nt,filterTreeNode:At}),Bn=reactExports.useCallback(function(wn){if(wn){if(Ft)return wn[Ft];for(var cn=gr._title,Pn=0;Pn{const{componentCls:et,treePrefixCls:rt,colorBgElevated:st}=_e,ct=`.${rt}`;return[{[`${et}-dropdown`]:[{padding:`${unit$1(_e.paddingXS)} ${unit$1(_e.calc(_e.paddingXS).div(2).equal())}`},genTreeStyle(rt,merge$7(_e,{colorBgContainer:st})),{[ct]:{borderRadius:0,[`${ct}-list-holder-inner`]:{alignItems:"stretch",[`${ct}-treenode`]:{[`${ct}-node-content-wrapper`]:{flex:"auto"}}}}},getStyle$1(`${rt}-checkbox`,_e),{"&-rtl":{direction:"rtl",[`${ct}-switcher${ct}-switcher_close`]:{[`${ct}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function useTreeSelectStyle(_e,et,rt){return genStyleHooks("TreeSelect",st=>{const ct=merge$7(st,{treePrefixCls:et});return[genBaseStyle$1(ct)]},initComponentToken)(_e,rt)}var __rest$3=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var rt,{prefixCls:st,size:ct,disabled:ut,bordered:ft=!0,className:gt,rootClassName:xt,treeCheckable:$t,multiple:_t,listHeight:wt=256,listItemHeight:Tt=26,placement:Rt,notFoundContent:It,switcherIcon:At,treeLine:jt,getPopupContainer:Nt,popupClassName:kt,dropdownClassName:Ft,treeIcon:Ht=!1,transitionName:Wt,choiceTransitionName:Vt="",status:qt,treeExpandAction:Xt,builtinPlacements:Gt,dropdownMatchSelectWidth:Zt,popupMatchSelectWidth:er,allowClear:lr,variant:cr,dropdownStyle:ur,tagRender:fr}=_e,hr=__rest$3(_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"]);const{getPopupContainer:pr,getPrefixCls:dr,renderEmpty:yr,direction:Sr,virtual:br,popupMatchSelectWidth:mr,popupOverflow:Er}=reactExports.useContext(ConfigContext$1),Tr=dr(),Mr=dr("select",st),Or=dr("select-tree",st),wr=dr("tree-select",st),{compactSize:Cr,compactItemClassnames:Nr}=useCompactItemContext(Mr,Sr),Rr=useCSSVarCls(Mr),Pr=useCSSVarCls(wr),[jr,kr,Fr]=useSelectStyle(Mr,Rr),[_r]=useTreeSelectStyle(wr,Or,Pr),[Br,Dr]=useVariant(cr,ft),Xr=classNames(kt||Ft,`${wr}-dropdown`,{[`${wr}-dropdown-rtl`]:Sr==="rtl"},xt,Fr,Rr,Pr,kr),Kr=!!($t||_t),Hr=useShowArrow(hr.suffixIcon,hr.showArrow),Vr=(rt=er??Zt)!==null&&rt!==void 0?rt:mr,{status:ln,hasFeedback:Qr,isFormItemInput:Zr,feedbackIcon:vn}=reactExports.useContext(FormItemInputContext),vr=getMergedStatus(ln,qt),{suffixIcon:gr,removeIcon:$r,clearIcon:zr}=useIcons$1(Object.assign(Object.assign({},hr),{multiple:Kr,showSuffixIcon:Hr,hasFeedback:Qr,feedbackIcon:vn,prefixCls:Mr,componentName:"TreeSelect"})),qr=lr===!0?{clearIcon:zr}:lr;let Wr;It!==void 0?Wr=It:Wr=(yr==null?void 0:yr("Select"))||reactExports.createElement(DefaultRenderEmpty$1,{componentName:"Select"});const Gr=omit$2(hr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),dn=reactExports.useMemo(()=>Rt!==void 0?Rt:Sr==="rtl"?"bottomRight":"bottomLeft",[Rt,Sr]),mn=useSize(Gn=>{var io;return(io=ct??Cr)!==null&&io!==void 0?io:Gn}),hn=reactExports.useContext(DisabledContext$2),Cn=ut??hn,Rn=classNames(!st&&wr,{[`${Mr}-lg`]:mn==="large",[`${Mr}-sm`]:mn==="small",[`${Mr}-rtl`]:Sr==="rtl",[`${Mr}-${Br}`]:Dr,[`${Mr}-in-form-item`]:Zr},getStatusClassNames(Mr,vr,Qr),Nr,gt,xt,Fr,Rr,Pr,kr),kn=Gn=>reactExports.createElement(SwitcherIconCom$1,{prefixCls:Or,switcherIcon:At,treeNodeProps:Gn,showLine:jt}),[Bn]=useZIndex("SelectLike",ur==null?void 0:ur.zIndex),Yn=reactExports.createElement(GenericTreeSelect,Object.assign({virtual:br,disabled:Cn},Gr,{dropdownMatchSelectWidth:Vr,builtinPlacements:mergedBuiltinPlacements(Gt,Er),ref:et,prefixCls:Mr,className:Rn,listHeight:wt,listItemHeight:Tt,treeCheckable:$t&&reactExports.createElement("span",{className:`${Mr}-tree-checkbox-inner`}),treeLine:!!jt,suffixIcon:gr,multiple:Kr,placement:dn,removeIcon:$r,allowClear:qr,switcherIcon:kn,showTreeIcon:Ht,notFoundContent:Wr,getPopupContainer:Nt||pr,treeMotion:null,dropdownClassName:Xr,dropdownStyle:Object.assign(Object.assign({},ur),{zIndex:Bn}),choiceTransitionName:getTransitionName(Tr,"",Vt),transitionName:getTransitionName(Tr,"slide-up",Wt),treeExpandAction:Xt,tagRender:Kr?fr:void 0}));return jr(_r(Yn))},TreeSelectRef=reactExports.forwardRef(InternalTreeSelect),TreeSelect=TreeSelectRef,PurePanel=genPurePanel(TreeSelect);TreeSelect.TreeNode=TreeNode;TreeSelect.SHOW_ALL=SHOW_ALL;TreeSelect.SHOW_PARENT=SHOW_PARENT;TreeSelect.SHOW_CHILD=SHOW_CHILD;TreeSelect._InternalPanelDoNotUseOrYouWillBeFired=PurePanel;const TreeSelect$1=TreeSelect,attrAccept=function(_e,et){if(_e&&et){var rt=Array.isArray(et)?et:et.split(","),st=_e.name||"",ct=_e.type||"",ut=ct.replace(/\/.*$/,"");return rt.some(function(ft){var gt=ft.trim();if(/^\*(\/\*)?$/.test(ft))return!0;if(gt.charAt(0)==="."){var xt=st.toLowerCase(),$t=gt.toLowerCase(),_t=[$t];return($t===".jpg"||$t===".jpeg")&&(_t=[".jpg",".jpeg"]),_t.some(function(wt){return xt.endsWith(wt)})}return/\/\*$/.test(gt)?ut===gt.replace(/\/.*$/,""):ct===gt?!0:/^\w+$/.test(gt)?(warningOnce$1(!1,"Upload takes an invalidate 'accept' type '".concat(gt,"'.Skip for check.")),!0):!1})}return!0};function getError(_e,et){var rt="cannot ".concat(_e.method," ").concat(_e.action," ").concat(et.status,"'"),st=new Error(rt);return st.status=et.status,st.method=_e.method,st.url=_e.action,st}function getBody(_e){var et=_e.responseText||_e.response;if(!et)return et;try{return JSON.parse(et)}catch{return et}}function upload(_e){var et=new XMLHttpRequest;_e.onProgress&&et.upload&&(et.upload.onprogress=function(ut){ut.total>0&&(ut.percent=ut.loaded/ut.total*100),_e.onProgress(ut)});var rt=new FormData;_e.data&&Object.keys(_e.data).forEach(function(ct){var ut=_e.data[ct];if(Array.isArray(ut)){ut.forEach(function(ft){rt.append("".concat(ct,"[]"),ft)});return}rt.append(ct,ut)}),_e.file instanceof Blob?rt.append(_e.filename,_e.file,_e.file.name):rt.append(_e.filename,_e.file),et.onerror=function(ut){_e.onError(ut)},et.onload=function(){return et.status<200||et.status>=300?_e.onError(getError(_e,et),getBody(et)):_e.onSuccess(getBody(et),et)},et.open(_e.method,_e.action,!0),_e.withCredentials&&"withCredentials"in et&&(et.withCredentials=!0);var st=_e.headers||{};return st["X-Requested-With"]!==null&&et.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(st).forEach(function(ct){st[ct]!==null&&et.setRequestHeader(ct,st[ct])}),et.send(rt),{abort:function(){et.abort()}}}function loopFiles(_e,et){var rt=_e.createReader(),st=[];function ct(){rt.readEntries(function(ut){var ft=Array.prototype.slice.apply(ut);st=st.concat(ft);var gt=!ft.length;gt?et(st):ct()})}ct()}var traverseFileTree=function(et,rt,st){var ct=function ut(ft,gt){ft&&(ft.path=gt||"",ft.isFile?ft.file(function(xt){st(xt)&&(ft.fullPath&&!xt.webkitRelativePath&&(Object.defineProperties(xt,{webkitRelativePath:{writable:!0}}),xt.webkitRelativePath=ft.fullPath.replace(/^\//,""),Object.defineProperties(xt,{webkitRelativePath:{writable:!1}})),rt([xt]))}):ft.isDirectory&&loopFiles(ft,function(xt){xt.forEach(function($t){ut($t,"".concat(gt).concat(ft.name,"/"))})}))};et.forEach(function(ut){ct(ut.webkitGetAsEntry())})},now$4=+new Date,index$1=0;function uid(){return"rc-upload-".concat(now$4,"-").concat(++index$1)}var _excluded$J=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],AjaxUploader=function(_e){_inherits$9(rt,_e);var et=_createSuper$7(rt);function rt(){var st;_classCallCheck$9(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft{const{componentCls:et,iconCls:rt}=_e;return{[`${et}-wrapper`]:{[`${et}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:_e.colorFillAlter,border:`${unit$1(_e.lineWidth)} dashed ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,cursor:"pointer",transition:`border-color ${_e.motionDurationSlow}`,[et]:{padding:_e.padding},[`${et}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:_e.borderRadiusLG,"&:focus-visible":{outline:`${unit$1(_e.lineWidthFocus)} solid ${_e.colorPrimaryBorder}`}},[`${et}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${et}-disabled):hover, &-hover:not(${et}-disabled) `]:{borderColor:_e.colorPrimaryHover},[`p${et}-drag-icon`]:{marginBottom:_e.margin,[rt]:{color:_e.colorPrimary,fontSize:_e.uploadThumbnailSize}},[`p${et}-text`]:{margin:`0 0 ${unit$1(_e.marginXXS)}`,color:_e.colorTextHeading,fontSize:_e.fontSizeLG},[`p${et}-hint`]:{color:_e.colorTextDescription,fontSize:_e.fontSize},[`&${et}-disabled`]:{[`p${et}-drag-icon ${rt}, @@ -397,7 +412,7 @@ html body { ${rt}-eye, ${rt}-download, ${rt}-delete - `]:{zIndex:10,width:st,margin:`0 ${unit$1(_e.marginXXS)}`,fontSize:st,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,color:ct,"&:hover":{color:ct},svg:{verticalAlign:"baseline"}}},[`${gt}-thumbnail, ${gt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${gt}-name`]:{display:"none",textAlign:"center"},[`${gt}-file + ${gt}-name`]:{position:"absolute",bottom:_e.margin,display:"block",width:`calc(100% - ${unit$1(ut(_e.paddingXS).mul(2).equal())})`},[`${gt}-uploading`]:{[`&${gt}`]:{backgroundColor:_e.colorFillAlter},[`&::before, ${rt}-eye, ${rt}-download, ${rt}-delete`]:{display:"none"}},[`${gt}-progress`]:{bottom:_e.marginXL,width:`calc(100% - ${unit$1(ut(_e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${et}-wrapper${et}-picture-circle-wrapper`]:{[`${et}${et}-select`]:{borderRadius:"50%"}}}},genRtlStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-rtl`]:{direction:"rtl"}}},genBaseStyle=_e=>{const{componentCls:et,colorTextDisabled:rt}=_e;return{[`${et}-wrapper`]:Object.assign(Object.assign({},resetComponent$1(_e)),{[et]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${et}-select`]:{display:"inline-block"},[`${et}-disabled`]:{color:rt,cursor:"not-allowed"}})}},prepareComponentToken=_e=>({actionsColor:_e.colorTextDescription}),useStyle$j=genStyleHooks("Upload",_e=>{const{fontSizeHeading3:et,fontHeight:rt,lineWidth:st,controlHeightLG:ct,calc:ut}=_e,ft=merge$7(_e,{uploadThumbnailSize:ut(et).mul(2).equal(),uploadProgressOffset:ut(ut(rt).div(2)).add(st).equal(),uploadPicCardSize:ut(ct).mul(2.55).equal()});return[genBaseStyle(ft),genDraggerStyle(ft),genPictureStyle(ft),genPictureCardStyle(ft),genListStyle(ft),genMotionStyle(ft),genRtlStyle(ft),genCollapseMotion(ft)]},prepareComponentToken);var FileTwoTone$2={icon:function(et,rt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:rt}},{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:et}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={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"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function(et,rt){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:et}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:rt}},{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:rt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:rt}},{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:et}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(_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 updateFileList(_e,et){const rt=_toConsumableArray$3(et),st=rt.findIndex(ct=>{let{uid:ut}=ct;return ut===_e.uid});return st===-1?rt.push(_e):rt[st]=_e,rt}function getFileItem(_e,et){const rt=_e.uid!==void 0?"uid":"name";return et.filter(st=>st[rt]===_e[rt])[0]}function removeFileItem(_e,et){const rt=_e.uid!==void 0?"uid":"name",st=et.filter(ct=>ct[rt]!==_e[rt]);return st.length===et.length?null:st}const extname=function(){const et=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),st=et[et.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(st)||[""])[0]},isImageFileType=_e=>_e.indexOf("image/")===0,isImageUrl=_e=>{if(_e.type&&!_e.thumbUrl)return isImageFileType(_e.type);const et=_e.thumbUrl||_e.url||"",rt=extname(et);return/^data:image\//.test(et)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(rt)?!0:!(/^data:/.test(et)||rt)},MEASURE_SIZE=200;function previewImage(_e){return new Promise(et=>{if(!_e.type||!isImageFileType(_e.type)){et("");return}const rt=document.createElement("canvas");rt.width=MEASURE_SIZE,rt.height=MEASURE_SIZE,rt.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(rt);const st=rt.getContext("2d"),ct=new Image;if(ct.onload=()=>{const{width:ut,height:ft}=ct;let gt=MEASURE_SIZE,xt=MEASURE_SIZE,$t=0,_t=0;ut>ft?(xt=ft*(MEASURE_SIZE/ut),_t=-(xt-gt)/2):(gt=ut*(MEASURE_SIZE/ft),$t=-(gt-xt)/2),st.drawImage(ct,$t,_t,gt,xt);const wt=rt.toDataURL();document.body.removeChild(rt),window.URL.revokeObjectURL(ct.src),et(wt)},ct.crossOrigin="anonymous",_e.type.startsWith("image/svg+xml")){const ut=new FileReader;ut.onload=()=>{ut.result&&typeof ut.result=="string"&&(ct.src=ut.result)},ut.readAsDataURL(_e)}else if(_e.type.startsWith("image/gif")){const ut=new FileReader;ut.onload=()=>{ut.result&&et(ut.result)},ut.readAsDataURL(_e)}else ct.src=window.URL.createObjectURL(_e)})}var DownloadOutlined$2={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"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((_e,et)=>{let{prefixCls:rt,className:st,style:ct,locale:ut,listType:ft,file:gt,items:xt,progress:$t,iconRender:_t,actionIconRender:wt,itemRender:Tt,isImgUrl:Rt,showPreviewIcon:It,showRemoveIcon:At,showDownloadIcon:jt,previewIcon:Nt,removeIcon:kt,downloadIcon:Ft,onPreview:Ht,onDownload:Wt,onClose:Vt}=_e;var qt,Gt;const{status:Xt}=gt,[Zt,lr]=reactExports.useState(Xt);reactExports.useEffect(()=>{Xt!=="removed"&&lr(Xt)},[Xt]);const[er,cr]=reactExports.useState(!1);reactExports.useEffect(()=>{const Rr=setTimeout(()=>{cr(!0)},300);return()=>{clearTimeout(Rr)}},[]);const ur=_t(gt);let pr=reactExports.createElement("div",{className:`${rt}-icon`},ur);if(ft==="picture"||ft==="picture-card"||ft==="picture-circle")if(Zt==="uploading"||!gt.thumbUrl&&!gt.url){const Rr=classNames(`${rt}-list-item-thumbnail`,{[`${rt}-list-item-file`]:Zt!=="uploading"});pr=reactExports.createElement("div",{className:Rr},ur)}else{const Rr=Rt!=null&&Rt(gt)?reactExports.createElement("img",{src:gt.thumbUrl||gt.url,alt:gt.name,className:`${rt}-list-item-image`,crossOrigin:gt.crossOrigin}):ur,Pr=classNames(`${rt}-list-item-thumbnail`,{[`${rt}-list-item-file`]:Rt&&!Rt(gt)});pr=reactExports.createElement("a",{className:Pr,onClick:Mr=>Ht(gt,Mr),href:gt.url||gt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Rr)}const hr=classNames(`${rt}-list-item`,`${rt}-list-item-${Zt}`),fr=typeof gt.linkProps=="string"?JSON.parse(gt.linkProps):gt.linkProps,dr=At?wt((typeof kt=="function"?kt(gt):kt)||reactExports.createElement(DeleteOutlined$1,null),()=>Vt(gt),rt,ut.removeFile,!0):null,yr=jt&&Zt==="done"?wt((typeof Ft=="function"?Ft(gt):Ft)||reactExports.createElement(DownloadOutlined$1,null),()=>Wt(gt),rt,ut.downloadFile):null,$r=ft!=="picture-card"&&ft!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classNames(`${rt}-list-item-actions`,{picture:ft==="picture"})},yr,dr),Er=classNames(`${rt}-list-item-name`),mr=gt.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Er,title:gt.name},fr,{href:gt.url,onClick:Rr=>Ht(gt,Rr)}),gt.name),$r]:[reactExports.createElement("span",{key:"view",className:Er,onClick:Rr=>Ht(gt,Rr),title:gt.name},gt.name),$r],Sr=It&&(gt.url||gt.thumbUrl)?reactExports.createElement("a",{href:gt.url||gt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Rr=>Ht(gt,Rr),title:ut.previewFile},typeof Nt=="function"?Nt(gt):Nt||reactExports.createElement(EyeOutlined$3,null)):null,Tr=(ft==="picture-card"||ft==="picture-circle")&&Zt!=="uploading"&&reactExports.createElement("span",{className:`${rt}-list-item-actions`},Sr,Zt==="done"&&yr,dr),{getPrefixCls:jr}=reactExports.useContext(ConfigContext$1),Or=jr(),_r=reactExports.createElement("div",{className:hr},pr,mr,Tr,er&&reactExports.createElement(CSSMotion,{motionName:`${Or}-fade`,visible:Zt==="uploading",motionDeadline:2e3},Rr=>{let{className:Pr}=Rr;const Mr="percent"in gt?reactExports.createElement(Progress$1,Object.assign({},$t,{type:"line",percent:gt.percent,"aria-label":gt["aria-label"],"aria-labelledby":gt["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classNames(`${rt}-list-item-progress`,Pr)},Mr)})),Cr=gt.response&&typeof gt.response=="string"?gt.response:((qt=gt.error)===null||qt===void 0?void 0:qt.statusText)||((Gt=gt.error)===null||Gt===void 0?void 0:Gt.message)||ut.uploadError,Nr=Zt==="error"?reactExports.createElement(Tooltip$1,{title:Cr,getPopupContainer:Rr=>Rr.parentNode},_r):_r;return reactExports.createElement("div",{className:classNames(`${rt}-list-item-container`,st),style:ct,ref:et},Tt?Tt(Nr,gt,xt,{download:Wt.bind(null,gt),preview:Ht.bind(null,gt),remove:Vt.bind(null,gt)}):Nr)}),ListItem$1=ListItem,InternalUploadList=(_e,et)=>{const{listType:rt="text",previewFile:st=previewImage,onPreview:ct,onDownload:ut,onRemove:ft,locale:gt,iconRender:xt,isImageUrl:$t=isImageUrl,prefixCls:_t,items:wt=[],showPreviewIcon:Tt=!0,showRemoveIcon:Rt=!0,showDownloadIcon:It=!1,removeIcon:At,previewIcon:jt,downloadIcon:Nt,progress:kt={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Ht=!0,itemRender:Wt,disabled:Vt}=_e,qt=useForceUpdate(),[Gt,Xt]=reactExports.useState(!1);reactExports.useEffect(()=>{rt!=="picture"&&rt!=="picture-card"&&rt!=="picture-circle"||(wt||[]).forEach(Sr=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Sr.originFileObj instanceof File||Sr.originFileObj instanceof Blob)||Sr.thumbUrl!==void 0||(Sr.thumbUrl="",st&&st(Sr.originFileObj).then(Tr=>{Sr.thumbUrl=Tr||"",qt()}))})},[rt,wt,st]),reactExports.useEffect(()=>{Xt(!0)},[]);const Zt=(Sr,Tr)=>{if(ct)return Tr==null||Tr.preventDefault(),ct(Sr)},lr=Sr=>{typeof ut=="function"?ut(Sr):Sr.url&&window.open(Sr.url)},er=Sr=>{ft==null||ft(Sr)},cr=Sr=>{if(xt)return xt(Sr,rt);const Tr=Sr.status==="uploading",jr=$t&&$t(Sr)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Or=Tr?reactExports.createElement(LoadingOutlined$3,null):reactExports.createElement(PaperClipOutlined$1,null);return rt==="picture"?Or=Tr?reactExports.createElement(LoadingOutlined$3,null):jr:(rt==="picture-card"||rt==="picture-circle")&&(Or=Tr?gt.uploading:jr),Or},ur=(Sr,Tr,jr,Or,_r)=>{const Cr={type:"text",size:"small",title:Or,onClick:Nr=>{Tr(),isValidElement(Sr)&&Sr.props.onClick&&Sr.props.onClick(Nr)},className:`${jr}-list-item-action`};if(_r&&(Cr.disabled=Vt),isValidElement(Sr)){const Nr=cloneElement(Sr,Object.assign(Object.assign({},Sr.props),{onClick:()=>{}}));return reactExports.createElement(Button$3,Object.assign({},Cr,{icon:Nr}))}return reactExports.createElement(Button$3,Object.assign({},Cr),reactExports.createElement("span",null,Sr))};reactExports.useImperativeHandle(et,()=>({handlePreview:Zt,handleDownload:lr}));const{getPrefixCls:pr}=reactExports.useContext(ConfigContext$1),hr=pr("upload",_t),fr=pr(),dr=classNames(`${hr}-list`,`${hr}-list-${rt}`),yr=_toConsumableArray$3(wt.map(Sr=>({key:Sr.uid,file:Sr})));let Er={motionDeadline:2e3,motionName:`${hr}-${rt==="picture-card"||rt==="picture-circle"?"animate-inline":"animate"}`,keys:yr,motionAppear:Gt};const mr=reactExports.useMemo(()=>{const Sr=Object.assign({},initCollapseMotion$1(fr));return delete Sr.onAppearEnd,delete Sr.onEnterEnd,delete Sr.onLeaveEnd,Sr},[fr]);return rt!=="picture-card"&&rt!=="picture-circle"&&(Er=Object.assign(Object.assign({},mr),Er)),reactExports.createElement("div",{className:dr},reactExports.createElement(CSSMotionList,Object.assign({},Er,{component:!1}),Sr=>{let{key:Tr,file:jr,className:Or,style:_r}=Sr;return reactExports.createElement(ListItem$1,{key:Tr,locale:gt,prefixCls:hr,className:Or,style:_r,file:jr,items:wt,progress:kt,listType:rt,isImgUrl:$t,showPreviewIcon:Tt,showRemoveIcon:Rt,showDownloadIcon:It,removeIcon:At,previewIcon:jt,downloadIcon:Nt,iconRender:cr,actionIconRender:ur,itemRender:Wt,onPreview:Zt,onDownload:lr,onClose:er})}),Ft&&reactExports.createElement(CSSMotion,Object.assign({},Er,{visible:Ht,forceRender:!0}),Sr=>{let{className:Tr,style:jr}=Sr;return cloneElement(Ft,Or=>({className:classNames(Or.className,Tr),style:Object.assign(Object.assign(Object.assign({},jr),{pointerEvents:Tr?"none":void 0}),Or.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(_e,et,rt,st){function ct(ut){return ut instanceof rt?ut:new rt(function(ft){ft(ut)})}return new(rt||(rt=Promise))(function(ut,ft){function gt(_t){try{$t(st.next(_t))}catch(wt){ft(wt)}}function xt(_t){try{$t(st.throw(_t))}catch(wt){ft(wt)}}function $t(_t){_t.done?ut(_t.value):ct(_t.value).then(gt,xt)}$t((st=st.apply(_e,et||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(_e,et)=>{const{fileList:rt,defaultFileList:st,onRemove:ct,showUploadList:ut=!0,listType:ft="text",onPreview:gt,onDownload:xt,onChange:$t,onDrop:_t,previewFile:wt,disabled:Tt,locale:Rt,iconRender:It,isImageUrl:At,progress:jt,prefixCls:Nt,className:kt,type:Ft="select",children:Ht,style:Wt,itemRender:Vt,maxCount:qt,data:Gt={},multiple:Xt=!1,hasControlInside:Zt=!0,action:lr="",accept:er="",supportServerRender:cr=!0,rootClassName:ur}=_e,pr=reactExports.useContext(DisabledContext$2),hr=Tt??pr,[fr,dr]=useMergedState(st||[],{value:rt,postState:Gr=>Gr??[]}),[yr,$r]=reactExports.useState("drop"),Er=reactExports.useRef(null);reactExports.useMemo(()=>{const Gr=Date.now();(rt||[]).forEach((cn,mn)=>{!cn.uid&&!Object.isFrozen(cn)&&(cn.uid=`__AUTO__${Gr}_${mn}__`)})},[rt]);const mr=(Gr,cn,mn)=>{let hn=_toConsumableArray$3(cn),En=!1;qt===1?hn=hn.slice(-1):qt&&(En=hn.length>qt,hn=hn.slice(0,qt)),reactDomExports.flushSync(()=>{dr(hn)});const Rn={file:Gr,fileList:hn};mn&&(Rn.event=mn),(!En||hn.some(Dn=>Dn.uid===Gr.uid))&&reactDomExports.flushSync(()=>{$t==null||$t(Rn)})},Sr=(Gr,cn)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:mn,transformFile:hn}=_e;let En=Gr;if(mn){const Rn=yield mn(Gr,cn);if(Rn===!1)return!1;if(delete Gr[LIST_IGNORE],Rn===LIST_IGNORE)return Object.defineProperty(Gr,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(En=Rn)}return hn&&(En=yield hn(En)),En}),Tr=Gr=>{const cn=Gr.filter(En=>!En.file[LIST_IGNORE]);if(!cn.length)return;const mn=cn.map(En=>file2Obj(En.file));let hn=_toConsumableArray$3(fr);mn.forEach(En=>{hn=updateFileList(En,hn)}),mn.forEach((En,Rn)=>{let Dn=En;if(cn[Rn].parsedFile)En.status="uploading";else{const{originFileObj:Bn}=En;let Yn;try{Yn=new File([Bn],Bn.name,{type:Bn.type})}catch{Yn=new Blob([Bn],{type:Bn.type}),Yn.name=Bn.name,Yn.lastModifiedDate=new Date,Yn.lastModified=new Date().getTime()}Yn.uid=En.uid,Dn=Yn}mr(Dn,hn)})},jr=(Gr,cn,mn)=>{try{typeof Gr=="string"&&(Gr=JSON.parse(Gr))}catch{}if(!getFileItem(cn,fr))return;const hn=file2Obj(cn);hn.status="done",hn.percent=100,hn.response=Gr,hn.xhr=mn;const En=updateFileList(hn,fr);mr(hn,En)},Or=(Gr,cn)=>{if(!getFileItem(cn,fr))return;const mn=file2Obj(cn);mn.status="uploading",mn.percent=Gr.percent;const hn=updateFileList(mn,fr);mr(mn,hn,Gr)},_r=(Gr,cn,mn)=>{if(!getFileItem(mn,fr))return;const hn=file2Obj(mn);hn.error=Gr,hn.response=cn,hn.status="error";const En=updateFileList(hn,fr);mr(hn,En)},Cr=Gr=>{let cn;Promise.resolve(typeof ct=="function"?ct(Gr):ct).then(mn=>{var hn;if(mn===!1)return;const En=removeFileItem(Gr,fr);En&&(cn=Object.assign(Object.assign({},Gr),{status:"removed"}),fr==null||fr.forEach(Rn=>{const Dn=cn.uid!==void 0?"uid":"name";Rn[Dn]===cn[Dn]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(hn=Er.current)===null||hn===void 0||hn.abort(cn),mr(cn,En))})},Nr=Gr=>{$r(Gr.type),Gr.type==="drop"&&(_t==null||_t(Gr))};reactExports.useImperativeHandle(et,()=>({onBatchStart:Tr,onSuccess:jr,onProgress:Or,onError:_r,fileList:fr,upload:Er.current}));const{getPrefixCls:Rr,direction:Pr,upload:Mr}=reactExports.useContext(ConfigContext$1),kr=Rr("upload",Nt),Fr=Object.assign(Object.assign({onBatchStart:Tr,onError:_r,onProgress:Or,onSuccess:jr},_e),{data:Gt,multiple:Xt,action:lr,accept:er,supportServerRender:cr,prefixCls:kr,disabled:hr,beforeUpload:Sr,onChange:void 0,hasControlInside:Zt});delete Fr.className,delete Fr.style,(!Ht||hr)&&delete Fr.id;const wr=`${kr}-wrapper`,[Br,Dr,Xr]=useStyle$j(kr,wr),[Kr]=useLocale$3("Upload",localeValues$1.Upload),{showRemoveIcon:zr,showPreviewIcon:qr,showDownloadIcon:pn,removeIcon:Qr,previewIcon:Zr,downloadIcon:vn}=typeof ut=="boolean"?{}:ut,vr=typeof zr>"u"?!hr:!!zr,gr=(Gr,cn)=>ut?reactExports.createElement(UploadList$1,{prefixCls:kr,listType:ft,items:fr,previewFile:wt,onPreview:gt,onDownload:xt,onRemove:Cr,showRemoveIcon:vr,showPreviewIcon:qr,showDownloadIcon:pn,removeIcon:Qr,previewIcon:Zr,downloadIcon:vn,iconRender:It,locale:Object.assign(Object.assign({},Kr),Rt),isImageUrl:At,progress:jt,appendAction:Gr,appendActionVisible:cn,itemRender:Vt,disabled:hr}):Gr,br=classNames(wr,kt,ur,Dr,Xr,Mr==null?void 0:Mr.className,{[`${kr}-rtl`]:Pr==="rtl",[`${kr}-picture-card-wrapper`]:ft==="picture-card",[`${kr}-picture-circle-wrapper`]:ft==="picture-circle"}),Hr=Object.assign(Object.assign({},Mr==null?void 0:Mr.style),Wt);if(Ft==="drag"){const Gr=classNames(Dr,kr,`${kr}-drag`,{[`${kr}-drag-uploading`]:fr.some(cn=>cn.status==="uploading"),[`${kr}-drag-hover`]:yr==="dragover",[`${kr}-disabled`]:hr,[`${kr}-rtl`]:Pr==="rtl"});return Br(reactExports.createElement("span",{className:br},reactExports.createElement("div",{className:Gr,style:Hr,onDrop:Nr,onDragOver:Nr,onDragLeave:Nr},reactExports.createElement(Upload$3,Object.assign({},Fr,{ref:Er,className:`${kr}-btn`}),reactExports.createElement("div",{className:`${kr}-drag-container`},Ht))),gr()))}const Vr=classNames(kr,`${kr}-select`,{[`${kr}-disabled`]:hr}),Wr=reactExports.createElement("div",{className:Vr,style:Ht?void 0:{display:"none"}},reactExports.createElement(Upload$3,Object.assign({},Fr,{ref:Er})));return Br(ft==="picture-card"||ft==="picture-circle"?reactExports.createElement("span",{className:br},gr(Wr,!!Ht)):reactExports.createElement("span",{className:br},Wr,gr()))},Upload$2=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$2;var __rest$2=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{style:rt,height:st,hasControlInside:ct=!1}=_e,ut=__rest$2(_e,["style","height","hasControlInside"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:et,hasControlInside:ct},ut,{type:"drag",style:Object.assign(Object.assign({},rt),{height:st})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1;Upload.LIST_IGNORE=LIST_IGNORE;const Upload$1=Upload;var Subscribable=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(){}},isServer=typeof window>"u"||"Deno"in window;function noop$3(){}function functionalUpdate(_e,et){return typeof _e=="function"?_e(et):_e}function isValidTimeout(_e){return typeof _e=="number"&&_e>=0&&_e!==1/0}function timeUntilStale(_e,et){return Math.max(_e+(et||0)-Date.now(),0)}function matchQuery(_e,et){const{type:rt="all",exact:st,fetchStatus:ct,predicate:ut,queryKey:ft,stale:gt}=_e;if(ft){if(st){if(et.queryHash!==hashQueryKeyByOptions(ft,et.options))return!1}else if(!partialMatchKey(et.queryKey,ft))return!1}if(rt!=="all"){const xt=et.isActive();if(rt==="active"&&!xt||rt==="inactive"&&xt)return!1}return!(typeof gt=="boolean"&&et.isStale()!==gt||typeof ct<"u"&&ct!==et.state.fetchStatus||ut&&!ut(et))}function matchMutation(_e,et){const{exact:rt,status:st,predicate:ct,mutationKey:ut}=_e;if(ut){if(!et.options.mutationKey)return!1;if(rt){if(hashKey(et.options.mutationKey)!==hashKey(ut))return!1}else if(!partialMatchKey(et.options.mutationKey,ut))return!1}return!(st&&et.state.status!==st||ct&&!ct(et))}function hashQueryKeyByOptions(_e,et){return((et==null?void 0:et.queryKeyHashFn)||hashKey)(_e)}function hashKey(_e){return JSON.stringify(_e,(et,rt)=>isPlainObject$4(rt)?Object.keys(rt).sort().reduce((st,ct)=>(st[ct]=rt[ct],st),{}):rt)}function partialMatchKey(_e,et){return _e===et?!0:typeof _e!=typeof et?!1:_e&&et&&typeof _e=="object"&&typeof et=="object"?!Object.keys(et).some(rt=>!partialMatchKey(_e[rt],et[rt])):!1}function replaceEqualDeep(_e,et){if(_e===et)return _e;const rt=isPlainArray(_e)&&isPlainArray(et);if(rt||isPlainObject$4(_e)&&isPlainObject$4(et)){const st=rt?_e:Object.keys(_e),ct=st.length,ut=rt?et:Object.keys(et),ft=ut.length,gt=rt?[]:{};let xt=0;for(let $t=0;$t"u")return!0;const rt=et.prototype;return!(!hasObjectPrototype(rt)||!rt.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(_e){return Object.prototype.toString.call(_e)==="[object Object]"}function sleep(_e){return new Promise(et=>{setTimeout(et,_e)})}function replaceData(_e,et,rt){return typeof rt.structuralSharing=="function"?rt.structuralSharing(_e,et):rt.structuralSharing!==!1?replaceEqualDeep(_e,et):et}function addToEnd(_e,et,rt=0){const st=[..._e,et];return rt&&st.length>rt?st.slice(1):st}function addToStart(_e,et,rt=0){const st=[et,..._e];return rt&&st.length>rt?st.slice(0,-1):st}var El,Ds,Gu,am,FocusManager=(am=class extends Subscribable{constructor(){super();go(this,El,void 0);go(this,Ds,void 0);go(this,Gu,void 0);Jn(this,Gu,et=>{if(!isServer&&window.addEventListener){const rt=()=>et();return window.addEventListener("visibilitychange",rt,!1),()=>{window.removeEventListener("visibilitychange",rt)}}})}onSubscribe(){Jr(this,Ds)||this.setEventListener(Jr(this,Gu))}onUnsubscribe(){var et;this.hasListeners()||((et=Jr(this,Ds))==null||et.call(this),Jn(this,Ds,void 0))}setEventListener(et){var rt;Jn(this,Gu,et),(rt=Jr(this,Ds))==null||rt.call(this),Jn(this,Ds,et(st=>{typeof st=="boolean"?this.setFocused(st):this.onFocus()}))}setFocused(et){Jr(this,El)!==et&&(Jn(this,El,et),this.onFocus())}onFocus(){this.listeners.forEach(et=>{et()})}isFocused(){var et;return typeof Jr(this,El)=="boolean"?Jr(this,El):((et=globalThis.document)==null?void 0:et.visibilityState)!=="hidden"}},El=new WeakMap,Ds=new WeakMap,Gu=new WeakMap,am),focusManager=new FocusManager,Yu,Ls,Xu,im,OnlineManager=(im=class extends Subscribable{constructor(){super();go(this,Yu,!0);go(this,Ls,void 0);go(this,Xu,void 0);Jn(this,Xu,et=>{if(!isServer&&window.addEventListener){const rt=()=>et(!0),st=()=>et(!1);return window.addEventListener("online",rt,!1),window.addEventListener("offline",st,!1),()=>{window.removeEventListener("online",rt),window.removeEventListener("offline",st)}}})}onSubscribe(){Jr(this,Ls)||this.setEventListener(Jr(this,Xu))}onUnsubscribe(){var et;this.hasListeners()||((et=Jr(this,Ls))==null||et.call(this),Jn(this,Ls,void 0))}setEventListener(et){var rt;Jn(this,Xu,et),(rt=Jr(this,Ls))==null||rt.call(this),Jn(this,Ls,et(this.setOnline.bind(this)))}setOnline(et){Jr(this,Yu)!==et&&(Jn(this,Yu,et),this.listeners.forEach(st=>{st(et)}))}isOnline(){return Jr(this,Yu)}},Yu=new WeakMap,Ls=new WeakMap,Xu=new WeakMap,im),onlineManager=new OnlineManager;function defaultRetryDelay(_e){return Math.min(1e3*2**_e,3e4)}function canFetch(_e){return(_e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(_e){this.revert=_e==null?void 0:_e.revert,this.silent=_e==null?void 0:_e.silent}};function isCancelledError(_e){return _e instanceof CancelledError}function createRetryer(_e){let et=!1,rt=0,st=!1,ct,ut,ft;const gt=new Promise((jt,Nt)=>{ut=jt,ft=Nt}),xt=jt=>{var Nt;st||(Rt(new CancelledError(jt)),(Nt=_e.abort)==null||Nt.call(_e))},$t=()=>{et=!0},_t=()=>{et=!1},wt=()=>!focusManager.isFocused()||_e.networkMode!=="always"&&!onlineManager.isOnline(),Tt=jt=>{var Nt;st||(st=!0,(Nt=_e.onSuccess)==null||Nt.call(_e,jt),ct==null||ct(),ut(jt))},Rt=jt=>{var Nt;st||(st=!0,(Nt=_e.onError)==null||Nt.call(_e,jt),ct==null||ct(),ft(jt))},It=()=>new Promise(jt=>{var Nt;ct=kt=>{const Ft=st||!wt();return Ft&&jt(kt),Ft},(Nt=_e.onPause)==null||Nt.call(_e)}).then(()=>{var jt;ct=void 0,st||(jt=_e.onContinue)==null||jt.call(_e)}),At=()=>{if(st)return;let jt;try{jt=_e.fn()}catch(Nt){jt=Promise.reject(Nt)}Promise.resolve(jt).then(Tt).catch(Nt=>{var Vt;if(st)return;const kt=_e.retry??(isServer?0:3),Ft=_e.retryDelay??defaultRetryDelay,Ht=typeof Ft=="function"?Ft(rt,Nt):Ft,Wt=kt===!0||typeof kt=="number"&&rt{if(wt())return It()}).then(()=>{et?Rt(Nt):At()})})};return canFetch(_e.networkMode)?At():It().then(At),{promise:gt,cancel:xt,continue:()=>(ct==null?void 0:ct())?gt:Promise.resolve(),cancelRetry:$t,continueRetry:_t}}function createNotifyManager(){let _e=[],et=0,rt=Tt=>{Tt()},st=Tt=>{Tt()},ct=Tt=>setTimeout(Tt,0);const ut=Tt=>{ct=Tt},ft=Tt=>{let Rt;et++;try{Rt=Tt()}finally{et--,et||$t()}return Rt},gt=Tt=>{et?_e.push(Tt):ct(()=>{rt(Tt)})},xt=Tt=>(...Rt)=>{gt(()=>{Tt(...Rt)})},$t=()=>{const Tt=_e;_e=[],Tt.length&&ct(()=>{st(()=>{Tt.forEach(Rt=>{rt(Rt)})})})};return{batch:ft,batchCalls:xt,schedule:gt,setNotifyFunction:Tt=>{rt=Tt},setBatchNotifyFunction:Tt=>{st=Tt},setScheduler:ut}}var notifyManager=createNotifyManager(),_l,sm,Removable=(sm=class{constructor(){go(this,_l,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Jn(this,_l,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(_e){this.gcTime=Math.max(this.gcTime||0,_e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Jr(this,_l)&&(clearTimeout(Jr(this,_l)),Jn(this,_l,void 0))}},_l=new WeakMap,sm),Zu,Qu,ys,Bs,bs,cs,yp,Tl,Ju,Pp,Es,Ps,lm,Query=(lm=class extends Removable{constructor(et){super();go(this,Ju);go(this,Es);go(this,Zu,void 0);go(this,Qu,void 0);go(this,ys,void 0);go(this,Bs,void 0);go(this,bs,void 0);go(this,cs,void 0);go(this,yp,void 0);go(this,Tl,void 0);Jn(this,Tl,!1),Jn(this,yp,et.defaultOptions),ho(this,Ju,Pp).call(this,et.options),Jn(this,cs,[]),Jn(this,ys,et.cache),this.queryKey=et.queryKey,this.queryHash=et.queryHash,Jn(this,Zu,et.state||getDefaultState$1(this.options)),this.state=Jr(this,Zu),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Jr(this,cs).length&&this.state.fetchStatus==="idle"&&Jr(this,ys).remove(this)}setData(et,rt){const st=replaceData(this.state.data,et,this.options);return ho(this,Es,Ps).call(this,{data:st,type:"success",dataUpdatedAt:rt==null?void 0:rt.updatedAt,manual:rt==null?void 0:rt.manual}),st}setState(et,rt){ho(this,Es,Ps).call(this,{type:"setState",state:et,setStateOptions:rt})}cancel(et){var st;const rt=Jr(this,Bs);return(st=Jr(this,bs))==null||st.cancel(et),rt?rt.then(noop$3).catch(noop$3):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Jr(this,Zu))}isActive(){return Jr(this,cs).some(et=>et.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Jr(this,cs).some(et=>et.getCurrentResult().isStale)}isStaleByTime(et=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,et)}onFocus(){var rt;const et=Jr(this,cs).find(st=>st.shouldFetchOnWindowFocus());et==null||et.refetch({cancelRefetch:!1}),(rt=Jr(this,bs))==null||rt.continue()}onOnline(){var rt;const et=Jr(this,cs).find(st=>st.shouldFetchOnReconnect());et==null||et.refetch({cancelRefetch:!1}),(rt=Jr(this,bs))==null||rt.continue()}addObserver(et){Jr(this,cs).includes(et)||(Jr(this,cs).push(et),this.clearGcTimeout(),Jr(this,ys).notify({type:"observerAdded",query:this,observer:et}))}removeObserver(et){Jr(this,cs).includes(et)&&(Jn(this,cs,Jr(this,cs).filter(rt=>rt!==et)),Jr(this,cs).length||(Jr(this,bs)&&(Jr(this,Tl)?Jr(this,bs).cancel({revert:!0}):Jr(this,bs).cancelRetry()),this.scheduleGc()),Jr(this,ys).notify({type:"observerRemoved",query:this,observer:et}))}getObserversCount(){return Jr(this,cs).length}invalidate(){this.state.isInvalidated||ho(this,Es,Ps).call(this,{type:"invalidate"})}fetch(et,rt){var $t,_t,wt,Tt;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(rt!=null&&rt.cancelRefetch))this.cancel({silent:!0});else if(Jr(this,Bs))return($t=Jr(this,bs))==null||$t.continueRetry(),Jr(this,Bs)}if(et&&ho(this,Ju,Pp).call(this,et),!this.options.queryFn){const Rt=Jr(this,cs).find(It=>It.options.queryFn);Rt&&ho(this,Ju,Pp).call(this,Rt.options)}const st=new AbortController,ct={queryKey:this.queryKey,meta:this.meta},ut=Rt=>{Object.defineProperty(Rt,"signal",{enumerable:!0,get:()=>(Jn(this,Tl,!0),st.signal)})};ut(ct);const ft=()=>this.options.queryFn?(Jn(this,Tl,!1),this.options.persister?this.options.persister(this.options.queryFn,ct,this):this.options.queryFn(ct)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),gt={fetchOptions:rt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:ft};ut(gt),(_t=this.options.behavior)==null||_t.onFetch(gt,this),Jn(this,Qu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((wt=gt.fetchOptions)==null?void 0:wt.meta))&&ho(this,Es,Ps).call(this,{type:"fetch",meta:(Tt=gt.fetchOptions)==null?void 0:Tt.meta});const xt=Rt=>{var It,At,jt,Nt;isCancelledError(Rt)&&Rt.silent||ho(this,Es,Ps).call(this,{type:"error",error:Rt}),isCancelledError(Rt)||((At=(It=Jr(this,ys).config).onError)==null||At.call(It,Rt,this),(Nt=(jt=Jr(this,ys).config).onSettled)==null||Nt.call(jt,this.state.data,Rt,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Jn(this,bs,createRetryer({fn:gt.fetchFn,abort:st.abort.bind(st),onSuccess:Rt=>{var It,At,jt,Nt;if(typeof Rt>"u"){xt(new Error(`${this.queryHash} data is undefined`));return}this.setData(Rt),(At=(It=Jr(this,ys).config).onSuccess)==null||At.call(It,Rt,this),(Nt=(jt=Jr(this,ys).config).onSettled)==null||Nt.call(jt,Rt,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:xt,onFail:(Rt,It)=>{ho(this,Es,Ps).call(this,{type:"failed",failureCount:Rt,error:It})},onPause:()=>{ho(this,Es,Ps).call(this,{type:"pause"})},onContinue:()=>{ho(this,Es,Ps).call(this,{type:"continue"})},retry:gt.options.retry,retryDelay:gt.options.retryDelay,networkMode:gt.options.networkMode})),Jn(this,Bs,Jr(this,bs).promise),Jr(this,Bs)}},Zu=new WeakMap,Qu=new WeakMap,ys=new WeakMap,Bs=new WeakMap,bs=new WeakMap,cs=new WeakMap,yp=new WeakMap,Tl=new WeakMap,Ju=new WeakSet,Pp=function(et){this.options={...Jr(this,yp),...et},this.updateGcTime(this.options.gcTime)},Es=new WeakSet,Ps=function(et){const rt=st=>{switch(et.type){case"failed":return{...st,fetchFailureCount:et.failureCount,fetchFailureReason:et.error};case"pause":return{...st,fetchStatus:"paused"};case"continue":return{...st,fetchStatus:"fetching"};case"fetch":return{...st,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:et.meta??null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!st.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...st,data:et.data,dataUpdateCount:st.dataUpdateCount+1,dataUpdatedAt:et.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!et.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const ct=et.error;return isCancelledError(ct)&&ct.revert&&Jr(this,Qu)?{...Jr(this,Qu),fetchStatus:"idle"}:{...st,error:ct,errorUpdateCount:st.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:st.fetchFailureCount+1,fetchFailureReason:ct,fetchStatus:"idle",status:"error"};case"invalidate":return{...st,isInvalidated:!0};case"setState":return{...st,...et.state}}};this.state=rt(this.state),notifyManager.batch(()=>{Jr(this,cs).forEach(st=>{st.onQueryUpdate()}),Jr(this,ys).notify({query:this,type:"updated",action:et})})},lm);function getDefaultState$1(_e){const et=typeof _e.initialData=="function"?_e.initialData():_e.initialData,rt=typeof et<"u",st=rt?typeof _e.initialDataUpdatedAt=="function"?_e.initialDataUpdatedAt():_e.initialDataUpdatedAt:0;return{data:et,dataUpdateCount:0,dataUpdatedAt:rt?st??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:rt?"success":"pending",fetchStatus:"idle"}}var _s,cm,QueryCache=(cm=class extends Subscribable{constructor(et={}){super();go(this,_s,void 0);this.config=et,Jn(this,_s,new Map)}build(et,rt,st){const ct=rt.queryKey,ut=rt.queryHash??hashQueryKeyByOptions(ct,rt);let ft=this.get(ut);return ft||(ft=new Query({cache:this,queryKey:ct,queryHash:ut,options:et.defaultQueryOptions(rt),state:st,defaultOptions:et.getQueryDefaults(ct)}),this.add(ft)),ft}add(et){Jr(this,_s).has(et.queryHash)||(Jr(this,_s).set(et.queryHash,et),this.notify({type:"added",query:et}))}remove(et){const rt=Jr(this,_s).get(et.queryHash);rt&&(et.destroy(),rt===et&&Jr(this,_s).delete(et.queryHash),this.notify({type:"removed",query:et}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(et=>{this.remove(et)})})}get(et){return Jr(this,_s).get(et)}getAll(){return[...Jr(this,_s).values()]}find(et){const rt={exact:!0,...et};return this.getAll().find(st=>matchQuery(rt,st))}findAll(et={}){const rt=this.getAll();return Object.keys(et).length>0?rt.filter(st=>matchQuery(et,st)):rt}notify(et){notifyManager.batch(()=>{this.listeners.forEach(rt=>{rt(et)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(et=>{et.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(et=>{et.onOnline()})})}},_s=new WeakMap,cm),ws,Cp,ms,_d,Ts,Ms,um,Mutation=(um=class extends Removable{constructor(et){super();go(this,Ts);go(this,ws,void 0);go(this,Cp,void 0);go(this,ms,void 0);go(this,_d,void 0);this.mutationId=et.mutationId,Jn(this,Cp,et.defaultOptions),Jn(this,ms,et.mutationCache),Jn(this,ws,[]),this.state=et.state||getDefaultState(),this.setOptions(et.options),this.scheduleGc()}setOptions(et){this.options={...Jr(this,Cp),...et},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(et){Jr(this,ws).includes(et)||(Jr(this,ws).push(et),this.clearGcTimeout(),Jr(this,ms).notify({type:"observerAdded",mutation:this,observer:et}))}removeObserver(et){Jn(this,ws,Jr(this,ws).filter(rt=>rt!==et)),this.scheduleGc(),Jr(this,ms).notify({type:"observerRemoved",mutation:this,observer:et})}optionalRemove(){Jr(this,ws).length||(this.state.status==="pending"?this.scheduleGc():Jr(this,ms).remove(this))}continue(){var et;return((et=Jr(this,_d))==null?void 0:et.continue())??this.execute(this.state.variables)}async execute(et){var ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt;const rt=()=>(Jn(this,_d,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(et):Promise.reject(new Error("No mutationFn found")),onFail:(Gt,Xt)=>{ho(this,Ts,Ms).call(this,{type:"failed",failureCount:Gt,error:Xt})},onPause:()=>{ho(this,Ts,Ms).call(this,{type:"pause"})},onContinue:()=>{ho(this,Ts,Ms).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Jr(this,_d).promise),st=this.state.status==="pending";try{if(!st){ho(this,Ts,Ms).call(this,{type:"pending",variables:et}),await((ut=(ct=Jr(this,ms).config).onMutate)==null?void 0:ut.call(ct,et,this));const Xt=await((gt=(ft=this.options).onMutate)==null?void 0:gt.call(ft,et));Xt!==this.state.context&&ho(this,Ts,Ms).call(this,{type:"pending",context:Xt,variables:et})}const Gt=await rt();return await(($t=(xt=Jr(this,ms).config).onSuccess)==null?void 0:$t.call(xt,Gt,et,this.state.context,this)),await((wt=(_t=this.options).onSuccess)==null?void 0:wt.call(_t,Gt,et,this.state.context)),await((Rt=(Tt=Jr(this,ms).config).onSettled)==null?void 0:Rt.call(Tt,Gt,null,this.state.variables,this.state.context,this)),await((At=(It=this.options).onSettled)==null?void 0:At.call(It,Gt,null,et,this.state.context)),ho(this,Ts,Ms).call(this,{type:"success",data:Gt}),Gt}catch(Gt){try{throw await((Nt=(jt=Jr(this,ms).config).onError)==null?void 0:Nt.call(jt,Gt,et,this.state.context,this)),await((Ft=(kt=this.options).onError)==null?void 0:Ft.call(kt,Gt,et,this.state.context)),await((Wt=(Ht=Jr(this,ms).config).onSettled)==null?void 0:Wt.call(Ht,void 0,Gt,this.state.variables,this.state.context,this)),await((qt=(Vt=this.options).onSettled)==null?void 0:qt.call(Vt,void 0,Gt,et,this.state.context)),Gt}finally{ho(this,Ts,Ms).call(this,{type:"error",error:Gt})}}}},ws=new WeakMap,Cp=new WeakMap,ms=new WeakMap,_d=new WeakMap,Ts=new WeakSet,Ms=function(et){const rt=st=>{switch(et.type){case"failed":return{...st,failureCount:et.failureCount,failureReason:et.error};case"pause":return{...st,isPaused:!0};case"continue":return{...st,isPaused:!1};case"pending":return{...st,context:et.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:et.variables,submittedAt:Date.now()};case"success":return{...st,data:et.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...st,data:void 0,error:et.error,failureCount:st.failureCount+1,failureReason:et.error,isPaused:!1,status:"error"}}};this.state=rt(this.state),notifyManager.batch(()=>{Jr(this,ws).forEach(st=>{st.onMutationUpdate(et)}),Jr(this,ms).notify({mutation:this,type:"updated",action:et})})},um);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xs,wp,Il,dm,MutationCache=(dm=class extends Subscribable{constructor(et={}){super();go(this,xs,void 0);go(this,wp,void 0);go(this,Il,void 0);this.config=et,Jn(this,xs,[]),Jn(this,wp,0)}build(et,rt,st){const ct=new Mutation({mutationCache:this,mutationId:++Sl(this,wp)._,options:et.defaultMutationOptions(rt),state:st});return this.add(ct),ct}add(et){Jr(this,xs).push(et),this.notify({type:"added",mutation:et})}remove(et){Jn(this,xs,Jr(this,xs).filter(rt=>rt!==et)),this.notify({type:"removed",mutation:et})}clear(){notifyManager.batch(()=>{Jr(this,xs).forEach(et=>{this.remove(et)})})}getAll(){return Jr(this,xs)}find(et){const rt={exact:!0,...et};return Jr(this,xs).find(st=>matchMutation(rt,st))}findAll(et={}){return Jr(this,xs).filter(rt=>matchMutation(et,rt))}notify(et){notifyManager.batch(()=>{this.listeners.forEach(rt=>{rt(et)})})}resumePausedMutations(){return Jn(this,Il,(Jr(this,Il)??Promise.resolve()).then(()=>{const et=Jr(this,xs).filter(rt=>rt.state.isPaused);return notifyManager.batch(()=>et.reduce((rt,st)=>rt.then(()=>st.continue().catch(noop$3)),Promise.resolve()))}).then(()=>{Jn(this,Il,void 0)})),Jr(this,Il)}},xs=new WeakMap,wp=new WeakMap,Il=new WeakMap,dm);function infiniteQueryBehavior(_e){return{onFetch:(et,rt)=>{const st=async()=>{var It,At,jt,Nt,kt;const ct=et.options,ut=(jt=(At=(It=et.fetchOptions)==null?void 0:It.meta)==null?void 0:At.fetchMore)==null?void 0:jt.direction,ft=((Nt=et.state.data)==null?void 0:Nt.pages)||[],gt=((kt=et.state.data)==null?void 0:kt.pageParams)||[],xt={pages:[],pageParams:[]};let $t=!1;const _t=Ft=>{Object.defineProperty(Ft,"signal",{enumerable:!0,get:()=>(et.signal.aborted?$t=!0:et.signal.addEventListener("abort",()=>{$t=!0}),et.signal)})},wt=et.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${et.options.queryHash}'`))),Tt=async(Ft,Ht,Wt)=>{if($t)return Promise.reject();if(Ht==null&&Ft.pages.length)return Promise.resolve(Ft);const Vt={queryKey:et.queryKey,pageParam:Ht,direction:Wt?"backward":"forward",meta:et.options.meta};_t(Vt);const qt=await wt(Vt),{maxPages:Gt}=et.options,Xt=Wt?addToStart:addToEnd;return{pages:Xt(Ft.pages,qt,Gt),pageParams:Xt(Ft.pageParams,Ht,Gt)}};let Rt;if(ut&&ft.length){const Ft=ut==="backward",Ht=Ft?getPreviousPageParam:getNextPageParam,Wt={pages:ft,pageParams:gt},Vt=Ht(ct,Wt);Rt=await Tt(Wt,Vt,Ft)}else{Rt=await Tt(xt,gt[0]??ct.initialPageParam);const Ft=_e??ft.length;for(let Ht=1;Ht{var ct,ut;return(ut=(ct=et.options).persister)==null?void 0:ut.call(ct,st,{queryKey:et.queryKey,meta:et.options.meta,signal:et.signal},rt)}:et.fetchFn=st}}}function getNextPageParam(_e,{pages:et,pageParams:rt}){const st=et.length-1;return _e.getNextPageParam(et[st],et,rt[st],rt)}function getPreviousPageParam(_e,{pages:et,pageParams:rt}){var st;return(st=_e.getPreviousPageParam)==null?void 0:st.call(_e,et[0],et,rt[0],rt)}var ls,Us,qs,_f,np,Ys,op,sp,fm,QueryClient=(fm=class{constructor(_e={}){go(this,ls,void 0);go(this,Us,void 0);go(this,qs,void 0);go(this,_f,void 0);go(this,np,void 0);go(this,Ys,void 0);go(this,op,void 0);go(this,sp,void 0);Jn(this,ls,_e.queryCache||new QueryCache),Jn(this,Us,_e.mutationCache||new MutationCache),Jn(this,qs,_e.defaultOptions||{}),Jn(this,_f,new Map),Jn(this,np,new Map),Jn(this,Ys,0)}mount(){Sl(this,Ys)._++,Jr(this,Ys)===1&&(Jn(this,op,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),Jr(this,ls).onFocus())})),Jn(this,sp,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),Jr(this,ls).onOnline())})))}unmount(){var _e,et;Sl(this,Ys)._--,Jr(this,Ys)===0&&((_e=Jr(this,op))==null||_e.call(this),Jn(this,op,void 0),(et=Jr(this,sp))==null||et.call(this),Jn(this,sp,void 0))}isFetching(_e){return Jr(this,ls).findAll({..._e,fetchStatus:"fetching"}).length}isMutating(_e){return Jr(this,Us).findAll({..._e,status:"pending"}).length}getQueryData(_e){var rt;const et=this.defaultQueryOptions({queryKey:_e});return(rt=Jr(this,ls).get(et.queryHash))==null?void 0:rt.state.data}ensureQueryData(_e){const et=this.getQueryData(_e.queryKey);return et!==void 0?Promise.resolve(et):this.fetchQuery(_e)}getQueriesData(_e){return this.getQueryCache().findAll(_e).map(({queryKey:et,state:rt})=>{const st=rt.data;return[et,st]})}setQueryData(_e,et,rt){const st=this.defaultQueryOptions({queryKey:_e}),ct=Jr(this,ls).get(st.queryHash),ut=ct==null?void 0:ct.state.data,ft=functionalUpdate(et,ut);if(!(typeof ft>"u"))return Jr(this,ls).build(this,st).setData(ft,{...rt,manual:!0})}setQueriesData(_e,et,rt){return notifyManager.batch(()=>this.getQueryCache().findAll(_e).map(({queryKey:st})=>[st,this.setQueryData(st,et,rt)]))}getQueryState(_e){var rt;const et=this.defaultQueryOptions({queryKey:_e});return(rt=Jr(this,ls).get(et.queryHash))==null?void 0:rt.state}removeQueries(_e){const et=Jr(this,ls);notifyManager.batch(()=>{et.findAll(_e).forEach(rt=>{et.remove(rt)})})}resetQueries(_e,et){const rt=Jr(this,ls),st={type:"active",..._e};return notifyManager.batch(()=>(rt.findAll(_e).forEach(ct=>{ct.reset()}),this.refetchQueries(st,et)))}cancelQueries(_e={},et={}){const rt={revert:!0,...et},st=notifyManager.batch(()=>Jr(this,ls).findAll(_e).map(ct=>ct.cancel(rt)));return Promise.all(st).then(noop$3).catch(noop$3)}invalidateQueries(_e={},et={}){return notifyManager.batch(()=>{if(Jr(this,ls).findAll(_e).forEach(st=>{st.invalidate()}),_e.refetchType==="none")return Promise.resolve();const rt={..._e,type:_e.refetchType??_e.type??"active"};return this.refetchQueries(rt,et)})}refetchQueries(_e={},et){const rt={...et,cancelRefetch:(et==null?void 0:et.cancelRefetch)??!0},st=notifyManager.batch(()=>Jr(this,ls).findAll(_e).filter(ct=>!ct.isDisabled()).map(ct=>{let ut=ct.fetch(void 0,rt);return rt.throwOnError||(ut=ut.catch(noop$3)),ct.state.fetchStatus==="paused"?Promise.resolve():ut}));return Promise.all(st).then(noop$3)}fetchQuery(_e){const et=this.defaultQueryOptions(_e);typeof et.retry>"u"&&(et.retry=!1);const rt=Jr(this,ls).build(this,et);return rt.isStaleByTime(et.staleTime)?rt.fetch(et):Promise.resolve(rt.state.data)}prefetchQuery(_e){return this.fetchQuery(_e).then(noop$3).catch(noop$3)}fetchInfiniteQuery(_e){return _e.behavior=infiniteQueryBehavior(_e.pages),this.fetchQuery(_e)}prefetchInfiniteQuery(_e){return this.fetchInfiniteQuery(_e).then(noop$3).catch(noop$3)}resumePausedMutations(){return Jr(this,Us).resumePausedMutations()}getQueryCache(){return Jr(this,ls)}getMutationCache(){return Jr(this,Us)}getDefaultOptions(){return Jr(this,qs)}setDefaultOptions(_e){Jn(this,qs,_e)}setQueryDefaults(_e,et){Jr(this,_f).set(hashKey(_e),{queryKey:_e,defaultOptions:et})}getQueryDefaults(_e){const et=[...Jr(this,_f).values()];let rt={};return et.forEach(st=>{partialMatchKey(_e,st.queryKey)&&(rt={...rt,...st.defaultOptions})}),rt}setMutationDefaults(_e,et){Jr(this,np).set(hashKey(_e),{mutationKey:_e,defaultOptions:et})}getMutationDefaults(_e){const et=[...Jr(this,np).values()];let rt={};return et.forEach(st=>{partialMatchKey(_e,st.mutationKey)&&(rt={...rt,...st.defaultOptions})}),rt}defaultQueryOptions(_e){if(_e._defaulted)return _e;const et={...Jr(this,qs).queries,...this.getQueryDefaults(_e.queryKey),..._e,_defaulted:!0};return et.queryHash||(et.queryHash=hashQueryKeyByOptions(et.queryKey,et)),typeof et.refetchOnReconnect>"u"&&(et.refetchOnReconnect=et.networkMode!=="always"),typeof et.throwOnError>"u"&&(et.throwOnError=!!et.suspense),typeof et.networkMode>"u"&&et.persister&&(et.networkMode="offlineFirst"),et}defaultMutationOptions(_e){return _e!=null&&_e._defaulted?_e:{...Jr(this,qs).mutations,...(_e==null?void 0:_e.mutationKey)&&this.getMutationDefaults(_e.mutationKey),..._e,_defaulted:!0}}clear(){Jr(this,ls).clear(),Jr(this,Us).clear()}},ls=new WeakMap,Us=new WeakMap,qs=new WeakMap,_f=new WeakMap,np=new WeakMap,Ys=new WeakMap,op=new WeakMap,sp=new WeakMap,fm),QueryClientContext=reactExports.createContext(void 0),QueryClientProvider=({client:_e,children:et})=>(reactExports.useEffect(()=>(_e.mount(),()=>{_e.unmount()}),[_e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:_e,children:et}));/** + `]:{zIndex:10,width:st,margin:`0 ${unit$1(_e.marginXXS)}`,fontSize:st,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,color:ct,"&:hover":{color:ct},svg:{verticalAlign:"baseline"}}},[`${gt}-thumbnail, ${gt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${gt}-name`]:{display:"none",textAlign:"center"},[`${gt}-file + ${gt}-name`]:{position:"absolute",bottom:_e.margin,display:"block",width:`calc(100% - ${unit$1(ut(_e.paddingXS).mul(2).equal())})`},[`${gt}-uploading`]:{[`&${gt}`]:{backgroundColor:_e.colorFillAlter},[`&::before, ${rt}-eye, ${rt}-download, ${rt}-delete`]:{display:"none"}},[`${gt}-progress`]:{bottom:_e.marginXL,width:`calc(100% - ${unit$1(ut(_e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${et}-wrapper${et}-picture-circle-wrapper`]:{[`${et}${et}-select`]:{borderRadius:"50%"}}}},genRtlStyle=_e=>{const{componentCls:et}=_e;return{[`${et}-rtl`]:{direction:"rtl"}}},genBaseStyle=_e=>{const{componentCls:et,colorTextDisabled:rt}=_e;return{[`${et}-wrapper`]:Object.assign(Object.assign({},resetComponent$1(_e)),{[et]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${et}-select`]:{display:"inline-block"},[`${et}-disabled`]:{color:rt,cursor:"not-allowed"}})}},prepareComponentToken=_e=>({actionsColor:_e.colorTextDescription}),useStyle$j=genStyleHooks("Upload",_e=>{const{fontSizeHeading3:et,fontHeight:rt,lineWidth:st,controlHeightLG:ct,calc:ut}=_e,ft=merge$7(_e,{uploadThumbnailSize:ut(et).mul(2).equal(),uploadProgressOffset:ut(ut(rt).div(2)).add(st).equal(),uploadPicCardSize:ut(ct).mul(2.55).equal()});return[genBaseStyle(ft),genDraggerStyle(ft),genPictureStyle(ft),genPictureCardStyle(ft),genListStyle(ft),genMotionStyle(ft),genRtlStyle(ft),genCollapseMotion(ft)]},prepareComponentToken);var FileTwoTone$2={icon:function(et,rt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:rt}},{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:et}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:FileTwoToneSvg}))};const FileTwoTone$1=reactExports.forwardRef(FileTwoTone);var PaperClipOutlined$2={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"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PaperClipOutlinedSvg}))};const PaperClipOutlined$1=reactExports.forwardRef(PaperClipOutlined);var PictureTwoTone$2={icon:function(et,rt){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:et}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:rt}},{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:rt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:rt}},{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:et}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:PictureTwoToneSvg}))};const PictureTwoTone$1=reactExports.forwardRef(PictureTwoTone);function file2Obj(_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 updateFileList(_e,et){const rt=_toConsumableArray$3(et),st=rt.findIndex(ct=>{let{uid:ut}=ct;return ut===_e.uid});return st===-1?rt.push(_e):rt[st]=_e,rt}function getFileItem(_e,et){const rt=_e.uid!==void 0?"uid":"name";return et.filter(st=>st[rt]===_e[rt])[0]}function removeFileItem(_e,et){const rt=_e.uid!==void 0?"uid":"name",st=et.filter(ct=>ct[rt]!==_e[rt]);return st.length===et.length?null:st}const extname=function(){const et=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),st=et[et.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(st)||[""])[0]},isImageFileType=_e=>_e.indexOf("image/")===0,isImageUrl=_e=>{if(_e.type&&!_e.thumbUrl)return isImageFileType(_e.type);const et=_e.thumbUrl||_e.url||"",rt=extname(et);return/^data:image\//.test(et)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(rt)?!0:!(/^data:/.test(et)||rt)},MEASURE_SIZE=200;function previewImage(_e){return new Promise(et=>{if(!_e.type||!isImageFileType(_e.type)){et("");return}const rt=document.createElement("canvas");rt.width=MEASURE_SIZE,rt.height=MEASURE_SIZE,rt.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(rt);const st=rt.getContext("2d"),ct=new Image;if(ct.onload=()=>{const{width:ut,height:ft}=ct;let gt=MEASURE_SIZE,xt=MEASURE_SIZE,$t=0,_t=0;ut>ft?(xt=ft*(MEASURE_SIZE/ut),_t=-(xt-gt)/2):(gt=ut*(MEASURE_SIZE/ft),$t=-(gt-xt)/2),st.drawImage(ct,$t,_t,gt,xt);const wt=rt.toDataURL();document.body.removeChild(rt),window.URL.revokeObjectURL(ct.src),et(wt)},ct.crossOrigin="anonymous",_e.type.startsWith("image/svg+xml")){const ut=new FileReader;ut.onload=()=>{ut.result&&typeof ut.result=="string"&&(ct.src=ut.result)},ut.readAsDataURL(_e)}else if(_e.type.startsWith("image/gif")){const ut=new FileReader;ut.onload=()=>{ut.result&&et(ut.result)},ut.readAsDataURL(_e)}else ct.src=window.URL.createObjectURL(_e)})}var DownloadOutlined$2={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"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$6,_extends$b({},et,{ref:rt,icon:DownloadOutlinedSvg}))};const DownloadOutlined$1=reactExports.forwardRef(DownloadOutlined),ListItem=reactExports.forwardRef((_e,et)=>{let{prefixCls:rt,className:st,style:ct,locale:ut,listType:ft,file:gt,items:xt,progress:$t,iconRender:_t,actionIconRender:wt,itemRender:Tt,isImgUrl:Rt,showPreviewIcon:It,showRemoveIcon:At,showDownloadIcon:jt,previewIcon:Nt,removeIcon:kt,downloadIcon:Ft,onPreview:Ht,onDownload:Wt,onClose:Vt}=_e;var qt,Xt;const{status:Gt}=gt,[Zt,er]=reactExports.useState(Gt);reactExports.useEffect(()=>{Gt!=="removed"&&er(Gt)},[Gt]);const[lr,cr]=reactExports.useState(!1);reactExports.useEffect(()=>{const Rr=setTimeout(()=>{cr(!0)},300);return()=>{clearTimeout(Rr)}},[]);const ur=_t(gt);let fr=reactExports.createElement("div",{className:`${rt}-icon`},ur);if(ft==="picture"||ft==="picture-card"||ft==="picture-circle")if(Zt==="uploading"||!gt.thumbUrl&&!gt.url){const Rr=classNames(`${rt}-list-item-thumbnail`,{[`${rt}-list-item-file`]:Zt!=="uploading"});fr=reactExports.createElement("div",{className:Rr},ur)}else{const Rr=Rt!=null&&Rt(gt)?reactExports.createElement("img",{src:gt.thumbUrl||gt.url,alt:gt.name,className:`${rt}-list-item-image`,crossOrigin:gt.crossOrigin}):ur,Pr=classNames(`${rt}-list-item-thumbnail`,{[`${rt}-list-item-file`]:Rt&&!Rt(gt)});fr=reactExports.createElement("a",{className:Pr,onClick:jr=>Ht(gt,jr),href:gt.url||gt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Rr)}const hr=classNames(`${rt}-list-item`,`${rt}-list-item-${Zt}`),pr=typeof gt.linkProps=="string"?JSON.parse(gt.linkProps):gt.linkProps,dr=At?wt((typeof kt=="function"?kt(gt):kt)||reactExports.createElement(DeleteOutlined$1,null),()=>Vt(gt),rt,ut.removeFile,!0):null,yr=jt&&Zt==="done"?wt((typeof Ft=="function"?Ft(gt):Ft)||reactExports.createElement(DownloadOutlined$1,null),()=>Wt(gt),rt,ut.downloadFile):null,Sr=ft!=="picture-card"&&ft!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classNames(`${rt}-list-item-actions`,{picture:ft==="picture"})},yr,dr),br=classNames(`${rt}-list-item-name`),mr=gt.url?[reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:br,title:gt.name},pr,{href:gt.url,onClick:Rr=>Ht(gt,Rr)}),gt.name),Sr]:[reactExports.createElement("span",{key:"view",className:br,onClick:Rr=>Ht(gt,Rr),title:gt.name},gt.name),Sr],Er=It&&(gt.url||gt.thumbUrl)?reactExports.createElement("a",{href:gt.url||gt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Rr=>Ht(gt,Rr),title:ut.previewFile},typeof Nt=="function"?Nt(gt):Nt||reactExports.createElement(EyeOutlined$3,null)):null,Tr=(ft==="picture-card"||ft==="picture-circle")&&Zt!=="uploading"&&reactExports.createElement("span",{className:`${rt}-list-item-actions`},Er,Zt==="done"&&yr,dr),{getPrefixCls:Mr}=reactExports.useContext(ConfigContext$1),Or=Mr(),wr=reactExports.createElement("div",{className:hr},fr,mr,Tr,lr&&reactExports.createElement(CSSMotion,{motionName:`${Or}-fade`,visible:Zt==="uploading",motionDeadline:2e3},Rr=>{let{className:Pr}=Rr;const jr="percent"in gt?reactExports.createElement(Progress$1,Object.assign({},$t,{type:"line",percent:gt.percent,"aria-label":gt["aria-label"],"aria-labelledby":gt["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classNames(`${rt}-list-item-progress`,Pr)},jr)})),Cr=gt.response&&typeof gt.response=="string"?gt.response:((qt=gt.error)===null||qt===void 0?void 0:qt.statusText)||((Xt=gt.error)===null||Xt===void 0?void 0:Xt.message)||ut.uploadError,Nr=Zt==="error"?reactExports.createElement(Tooltip$1,{title:Cr,getPopupContainer:Rr=>Rr.parentNode},wr):wr;return reactExports.createElement("div",{className:classNames(`${rt}-list-item-container`,st),style:ct,ref:et},Tt?Tt(Nr,gt,xt,{download:Wt.bind(null,gt),preview:Ht.bind(null,gt),remove:Vt.bind(null,gt)}):Nr)}),ListItem$1=ListItem,InternalUploadList=(_e,et)=>{const{listType:rt="text",previewFile:st=previewImage,onPreview:ct,onDownload:ut,onRemove:ft,locale:gt,iconRender:xt,isImageUrl:$t=isImageUrl,prefixCls:_t,items:wt=[],showPreviewIcon:Tt=!0,showRemoveIcon:Rt=!0,showDownloadIcon:It=!1,removeIcon:At,previewIcon:jt,downloadIcon:Nt,progress:kt={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Ht=!0,itemRender:Wt,disabled:Vt}=_e,qt=useForceUpdate(),[Xt,Gt]=reactExports.useState(!1);reactExports.useEffect(()=>{rt!=="picture"&&rt!=="picture-card"&&rt!=="picture-circle"||(wt||[]).forEach(Er=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Er.originFileObj instanceof File||Er.originFileObj instanceof Blob)||Er.thumbUrl!==void 0||(Er.thumbUrl="",st&&st(Er.originFileObj).then(Tr=>{Er.thumbUrl=Tr||"",qt()}))})},[rt,wt,st]),reactExports.useEffect(()=>{Gt(!0)},[]);const Zt=(Er,Tr)=>{if(ct)return Tr==null||Tr.preventDefault(),ct(Er)},er=Er=>{typeof ut=="function"?ut(Er):Er.url&&window.open(Er.url)},lr=Er=>{ft==null||ft(Er)},cr=Er=>{if(xt)return xt(Er,rt);const Tr=Er.status==="uploading",Mr=$t&&$t(Er)?reactExports.createElement(PictureTwoTone$1,null):reactExports.createElement(FileTwoTone$1,null);let Or=Tr?reactExports.createElement(LoadingOutlined$3,null):reactExports.createElement(PaperClipOutlined$1,null);return rt==="picture"?Or=Tr?reactExports.createElement(LoadingOutlined$3,null):Mr:(rt==="picture-card"||rt==="picture-circle")&&(Or=Tr?gt.uploading:Mr),Or},ur=(Er,Tr,Mr,Or,wr)=>{const Cr={type:"text",size:"small",title:Or,onClick:Nr=>{Tr(),isValidElement(Er)&&Er.props.onClick&&Er.props.onClick(Nr)},className:`${Mr}-list-item-action`};if(wr&&(Cr.disabled=Vt),isValidElement(Er)){const Nr=cloneElement(Er,Object.assign(Object.assign({},Er.props),{onClick:()=>{}}));return reactExports.createElement(Button$3,Object.assign({},Cr,{icon:Nr}))}return reactExports.createElement(Button$3,Object.assign({},Cr),reactExports.createElement("span",null,Er))};reactExports.useImperativeHandle(et,()=>({handlePreview:Zt,handleDownload:er}));const{getPrefixCls:fr}=reactExports.useContext(ConfigContext$1),hr=fr("upload",_t),pr=fr(),dr=classNames(`${hr}-list`,`${hr}-list-${rt}`),yr=_toConsumableArray$3(wt.map(Er=>({key:Er.uid,file:Er})));let br={motionDeadline:2e3,motionName:`${hr}-${rt==="picture-card"||rt==="picture-circle"?"animate-inline":"animate"}`,keys:yr,motionAppear:Xt};const mr=reactExports.useMemo(()=>{const Er=Object.assign({},initCollapseMotion$1(pr));return delete Er.onAppearEnd,delete Er.onEnterEnd,delete Er.onLeaveEnd,Er},[pr]);return rt!=="picture-card"&&rt!=="picture-circle"&&(br=Object.assign(Object.assign({},mr),br)),reactExports.createElement("div",{className:dr},reactExports.createElement(CSSMotionList,Object.assign({},br,{component:!1}),Er=>{let{key:Tr,file:Mr,className:Or,style:wr}=Er;return reactExports.createElement(ListItem$1,{key:Tr,locale:gt,prefixCls:hr,className:Or,style:wr,file:Mr,items:wt,progress:kt,listType:rt,isImgUrl:$t,showPreviewIcon:Tt,showRemoveIcon:Rt,showDownloadIcon:It,removeIcon:At,previewIcon:jt,downloadIcon:Nt,iconRender:cr,actionIconRender:ur,itemRender:Wt,onPreview:Zt,onDownload:er,onClose:lr})}),Ft&&reactExports.createElement(CSSMotion,Object.assign({},br,{visible:Ht,forceRender:!0}),Er=>{let{className:Tr,style:Mr}=Er;return cloneElement(Ft,Or=>({className:classNames(Or.className,Tr),style:Object.assign(Object.assign(Object.assign({},Mr),{pointerEvents:Tr?"none":void 0}),Or.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList),UploadList$1=UploadList;var __awaiter$1=function(_e,et,rt,st){function ct(ut){return ut instanceof rt?ut:new rt(function(ft){ft(ut)})}return new(rt||(rt=Promise))(function(ut,ft){function gt(_t){try{$t(st.next(_t))}catch(wt){ft(wt)}}function xt(_t){try{$t(st.throw(_t))}catch(wt){ft(wt)}}function $t(_t){_t.done?ut(_t.value):ct(_t.value).then(gt,xt)}$t((st=st.apply(_e,et||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(_e,et)=>{const{fileList:rt,defaultFileList:st,onRemove:ct,showUploadList:ut=!0,listType:ft="text",onPreview:gt,onDownload:xt,onChange:$t,onDrop:_t,previewFile:wt,disabled:Tt,locale:Rt,iconRender:It,isImageUrl:At,progress:jt,prefixCls:Nt,className:kt,type:Ft="select",children:Ht,style:Wt,itemRender:Vt,maxCount:qt,data:Xt={},multiple:Gt=!1,hasControlInside:Zt=!0,action:er="",accept:lr="",supportServerRender:cr=!0,rootClassName:ur}=_e,fr=reactExports.useContext(DisabledContext$2),hr=Tt??fr,[pr,dr]=useMergedState(st||[],{value:rt,postState:Gr=>Gr??[]}),[yr,Sr]=reactExports.useState("drop"),br=reactExports.useRef(null);reactExports.useMemo(()=>{const Gr=Date.now();(rt||[]).forEach((dn,mn)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Gr}_${mn}__`)})},[rt]);const mr=(Gr,dn,mn)=>{let hn=_toConsumableArray$3(dn),Cn=!1;qt===1?hn=hn.slice(-1):qt&&(Cn=hn.length>qt,hn=hn.slice(0,qt)),reactDomExports.flushSync(()=>{dr(hn)});const Rn={file:Gr,fileList:hn};mn&&(Rn.event=mn),(!Cn||hn.some(kn=>kn.uid===Gr.uid))&&reactDomExports.flushSync(()=>{$t==null||$t(Rn)})},Er=(Gr,dn)=>__awaiter$1(void 0,void 0,void 0,function*(){const{beforeUpload:mn,transformFile:hn}=_e;let Cn=Gr;if(mn){const Rn=yield mn(Gr,dn);if(Rn===!1)return!1;if(delete Gr[LIST_IGNORE],Rn===LIST_IGNORE)return Object.defineProperty(Gr,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(Cn=Rn)}return hn&&(Cn=yield hn(Cn)),Cn}),Tr=Gr=>{const dn=Gr.filter(Cn=>!Cn.file[LIST_IGNORE]);if(!dn.length)return;const mn=dn.map(Cn=>file2Obj(Cn.file));let hn=_toConsumableArray$3(pr);mn.forEach(Cn=>{hn=updateFileList(Cn,hn)}),mn.forEach((Cn,Rn)=>{let kn=Cn;if(dn[Rn].parsedFile)Cn.status="uploading";else{const{originFileObj:Bn}=Cn;let Yn;try{Yn=new File([Bn],Bn.name,{type:Bn.type})}catch{Yn=new Blob([Bn],{type:Bn.type}),Yn.name=Bn.name,Yn.lastModifiedDate=new Date,Yn.lastModified=new Date().getTime()}Yn.uid=Cn.uid,kn=Yn}mr(kn,hn)})},Mr=(Gr,dn,mn)=>{try{typeof Gr=="string"&&(Gr=JSON.parse(Gr))}catch{}if(!getFileItem(dn,pr))return;const hn=file2Obj(dn);hn.status="done",hn.percent=100,hn.response=Gr,hn.xhr=mn;const Cn=updateFileList(hn,pr);mr(hn,Cn)},Or=(Gr,dn)=>{if(!getFileItem(dn,pr))return;const mn=file2Obj(dn);mn.status="uploading",mn.percent=Gr.percent;const hn=updateFileList(mn,pr);mr(mn,hn,Gr)},wr=(Gr,dn,mn)=>{if(!getFileItem(mn,pr))return;const hn=file2Obj(mn);hn.error=Gr,hn.response=dn,hn.status="error";const Cn=updateFileList(hn,pr);mr(hn,Cn)},Cr=Gr=>{let dn;Promise.resolve(typeof ct=="function"?ct(Gr):ct).then(mn=>{var hn;if(mn===!1)return;const Cn=removeFileItem(Gr,pr);Cn&&(dn=Object.assign(Object.assign({},Gr),{status:"removed"}),pr==null||pr.forEach(Rn=>{const kn=dn.uid!==void 0?"uid":"name";Rn[kn]===dn[kn]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(hn=br.current)===null||hn===void 0||hn.abort(dn),mr(dn,Cn))})},Nr=Gr=>{Sr(Gr.type),Gr.type==="drop"&&(_t==null||_t(Gr))};reactExports.useImperativeHandle(et,()=>({onBatchStart:Tr,onSuccess:Mr,onProgress:Or,onError:wr,fileList:pr,upload:br.current}));const{getPrefixCls:Rr,direction:Pr,upload:jr}=reactExports.useContext(ConfigContext$1),kr=Rr("upload",Nt),Fr=Object.assign(Object.assign({onBatchStart:Tr,onError:wr,onProgress:Or,onSuccess:Mr},_e),{data:Xt,multiple:Gt,action:er,accept:lr,supportServerRender:cr,prefixCls:kr,disabled:hr,beforeUpload:Er,onChange:void 0,hasControlInside:Zt});delete Fr.className,delete Fr.style,(!Ht||hr)&&delete Fr.id;const _r=`${kr}-wrapper`,[Br,Dr,Xr]=useStyle$j(kr,_r),[Kr]=useLocale$3("Upload",localeValues$1.Upload),{showRemoveIcon:Hr,showPreviewIcon:Vr,showDownloadIcon:ln,removeIcon:Qr,previewIcon:Zr,downloadIcon:vn}=typeof ut=="boolean"?{}:ut,vr=typeof Hr>"u"?!hr:!!Hr,gr=(Gr,dn)=>ut?reactExports.createElement(UploadList$1,{prefixCls:kr,listType:ft,items:pr,previewFile:wt,onPreview:gt,onDownload:xt,onRemove:Cr,showRemoveIcon:vr,showPreviewIcon:Vr,showDownloadIcon:ln,removeIcon:Qr,previewIcon:Zr,downloadIcon:vn,iconRender:It,locale:Object.assign(Object.assign({},Kr),Rt),isImageUrl:At,progress:jt,appendAction:Gr,appendActionVisible:dn,itemRender:Vt,disabled:hr}):Gr,$r=classNames(_r,kt,ur,Dr,Xr,jr==null?void 0:jr.className,{[`${kr}-rtl`]:Pr==="rtl",[`${kr}-picture-card-wrapper`]:ft==="picture-card",[`${kr}-picture-circle-wrapper`]:ft==="picture-circle"}),zr=Object.assign(Object.assign({},jr==null?void 0:jr.style),Wt);if(Ft==="drag"){const Gr=classNames(Dr,kr,`${kr}-drag`,{[`${kr}-drag-uploading`]:pr.some(dn=>dn.status==="uploading"),[`${kr}-drag-hover`]:yr==="dragover",[`${kr}-disabled`]:hr,[`${kr}-rtl`]:Pr==="rtl"});return Br(reactExports.createElement("span",{className:$r},reactExports.createElement("div",{className:Gr,style:zr,onDrop:Nr,onDragOver:Nr,onDragLeave:Nr},reactExports.createElement(Upload$3,Object.assign({},Fr,{ref:br,className:`${kr}-btn`}),reactExports.createElement("div",{className:`${kr}-drag-container`},Ht))),gr()))}const qr=classNames(kr,`${kr}-select`,{[`${kr}-disabled`]:hr}),Wr=reactExports.createElement("div",{className:qr,style:Ht?void 0:{display:"none"}},reactExports.createElement(Upload$3,Object.assign({},Fr,{ref:br})));return Br(ft==="picture-card"||ft==="picture-circle"?reactExports.createElement("span",{className:$r},gr(Wr,!!Ht)):reactExports.createElement("span",{className:$r},Wr,gr()))},Upload$2=reactExports.forwardRef(InternalUpload),InternalUpload$1=Upload$2;var __rest$2=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ct{var{style:rt,height:st,hasControlInside:ct=!1}=_e,ut=__rest$2(_e,["style","height","hasControlInside"]);return reactExports.createElement(InternalUpload$1,Object.assign({ref:et,hasControlInside:ct},ut,{type:"drag",style:Object.assign(Object.assign({},rt),{height:st})}))}),Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1;Upload.LIST_IGNORE=LIST_IGNORE;const Upload$1=Upload;var Subscribable=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(){}},isServer=typeof window>"u"||"Deno"in window;function noop$3(){}function functionalUpdate(_e,et){return typeof _e=="function"?_e(et):_e}function isValidTimeout(_e){return typeof _e=="number"&&_e>=0&&_e!==1/0}function timeUntilStale(_e,et){return Math.max(_e+(et||0)-Date.now(),0)}function matchQuery(_e,et){const{type:rt="all",exact:st,fetchStatus:ct,predicate:ut,queryKey:ft,stale:gt}=_e;if(ft){if(st){if(et.queryHash!==hashQueryKeyByOptions(ft,et.options))return!1}else if(!partialMatchKey(et.queryKey,ft))return!1}if(rt!=="all"){const xt=et.isActive();if(rt==="active"&&!xt||rt==="inactive"&&xt)return!1}return!(typeof gt=="boolean"&&et.isStale()!==gt||typeof ct<"u"&&ct!==et.state.fetchStatus||ut&&!ut(et))}function matchMutation(_e,et){const{exact:rt,status:st,predicate:ct,mutationKey:ut}=_e;if(ut){if(!et.options.mutationKey)return!1;if(rt){if(hashKey(et.options.mutationKey)!==hashKey(ut))return!1}else if(!partialMatchKey(et.options.mutationKey,ut))return!1}return!(st&&et.state.status!==st||ct&&!ct(et))}function hashQueryKeyByOptions(_e,et){return((et==null?void 0:et.queryKeyHashFn)||hashKey)(_e)}function hashKey(_e){return JSON.stringify(_e,(et,rt)=>isPlainObject$4(rt)?Object.keys(rt).sort().reduce((st,ct)=>(st[ct]=rt[ct],st),{}):rt)}function partialMatchKey(_e,et){return _e===et?!0:typeof _e!=typeof et?!1:_e&&et&&typeof _e=="object"&&typeof et=="object"?!Object.keys(et).some(rt=>!partialMatchKey(_e[rt],et[rt])):!1}function replaceEqualDeep(_e,et){if(_e===et)return _e;const rt=isPlainArray(_e)&&isPlainArray(et);if(rt||isPlainObject$4(_e)&&isPlainObject$4(et)){const st=rt?_e:Object.keys(_e),ct=st.length,ut=rt?et:Object.keys(et),ft=ut.length,gt=rt?[]:{};let xt=0;for(let $t=0;$t"u")return!0;const rt=et.prototype;return!(!hasObjectPrototype(rt)||!rt.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(_e){return Object.prototype.toString.call(_e)==="[object Object]"}function sleep(_e){return new Promise(et=>{setTimeout(et,_e)})}function replaceData(_e,et,rt){return typeof rt.structuralSharing=="function"?rt.structuralSharing(_e,et):rt.structuralSharing!==!1?replaceEqualDeep(_e,et):et}function addToEnd(_e,et,rt=0){const st=[..._e,et];return rt&&st.length>rt?st.slice(1):st}function addToStart(_e,et,rt=0){const st=[et,..._e];return rt&&st.length>rt?st.slice(0,-1):st}var El,Ds,Yu,sm,FocusManager=(sm=class extends Subscribable{constructor(){super();ho(this,El,void 0);ho(this,Ds,void 0);ho(this,Yu,void 0);no(this,Yu,et=>{if(!isServer&&window.addEventListener){const rt=()=>et();return window.addEventListener("visibilitychange",rt,!1),()=>{window.removeEventListener("visibilitychange",rt)}}})}onSubscribe(){Jr(this,Ds)||this.setEventListener(Jr(this,Yu))}onUnsubscribe(){var et;this.hasListeners()||((et=Jr(this,Ds))==null||et.call(this),no(this,Ds,void 0))}setEventListener(et){var rt;no(this,Yu,et),(rt=Jr(this,Ds))==null||rt.call(this),no(this,Ds,et(st=>{typeof st=="boolean"?this.setFocused(st):this.onFocus()}))}setFocused(et){Jr(this,El)!==et&&(no(this,El,et),this.onFocus())}onFocus(){this.listeners.forEach(et=>{et()})}isFocused(){var et;return typeof Jr(this,El)=="boolean"?Jr(this,El):((et=globalThis.document)==null?void 0:et.visibilityState)!=="hidden"}},El=new WeakMap,Ds=new WeakMap,Yu=new WeakMap,sm),focusManager=new FocusManager,Xu,Ls,Zu,lm,OnlineManager=(lm=class extends Subscribable{constructor(){super();ho(this,Xu,!0);ho(this,Ls,void 0);ho(this,Zu,void 0);no(this,Zu,et=>{if(!isServer&&window.addEventListener){const rt=()=>et(!0),st=()=>et(!1);return window.addEventListener("online",rt,!1),window.addEventListener("offline",st,!1),()=>{window.removeEventListener("online",rt),window.removeEventListener("offline",st)}}})}onSubscribe(){Jr(this,Ls)||this.setEventListener(Jr(this,Zu))}onUnsubscribe(){var et;this.hasListeners()||((et=Jr(this,Ls))==null||et.call(this),no(this,Ls,void 0))}setEventListener(et){var rt;no(this,Zu,et),(rt=Jr(this,Ls))==null||rt.call(this),no(this,Ls,et(this.setOnline.bind(this)))}setOnline(et){Jr(this,Xu)!==et&&(no(this,Xu,et),this.listeners.forEach(st=>{st(et)}))}isOnline(){return Jr(this,Xu)}},Xu=new WeakMap,Ls=new WeakMap,Zu=new WeakMap,lm),onlineManager=new OnlineManager;function defaultRetryDelay(_e){return Math.min(1e3*2**_e,3e4)}function canFetch(_e){return(_e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(_e){this.revert=_e==null?void 0:_e.revert,this.silent=_e==null?void 0:_e.silent}};function isCancelledError(_e){return _e instanceof CancelledError}function createRetryer(_e){let et=!1,rt=0,st=!1,ct,ut,ft;const gt=new Promise((jt,Nt)=>{ut=jt,ft=Nt}),xt=jt=>{var Nt;st||(Rt(new CancelledError(jt)),(Nt=_e.abort)==null||Nt.call(_e))},$t=()=>{et=!0},_t=()=>{et=!1},wt=()=>!focusManager.isFocused()||_e.networkMode!=="always"&&!onlineManager.isOnline(),Tt=jt=>{var Nt;st||(st=!0,(Nt=_e.onSuccess)==null||Nt.call(_e,jt),ct==null||ct(),ut(jt))},Rt=jt=>{var Nt;st||(st=!0,(Nt=_e.onError)==null||Nt.call(_e,jt),ct==null||ct(),ft(jt))},It=()=>new Promise(jt=>{var Nt;ct=kt=>{const Ft=st||!wt();return Ft&&jt(kt),Ft},(Nt=_e.onPause)==null||Nt.call(_e)}).then(()=>{var jt;ct=void 0,st||(jt=_e.onContinue)==null||jt.call(_e)}),At=()=>{if(st)return;let jt;try{jt=_e.fn()}catch(Nt){jt=Promise.reject(Nt)}Promise.resolve(jt).then(Tt).catch(Nt=>{var Vt;if(st)return;const kt=_e.retry??(isServer?0:3),Ft=_e.retryDelay??defaultRetryDelay,Ht=typeof Ft=="function"?Ft(rt,Nt):Ft,Wt=kt===!0||typeof kt=="number"&&rt{if(wt())return It()}).then(()=>{et?Rt(Nt):At()})})};return canFetch(_e.networkMode)?At():It().then(At),{promise:gt,cancel:xt,continue:()=>(ct==null?void 0:ct())?gt:Promise.resolve(),cancelRetry:$t,continueRetry:_t}}function createNotifyManager(){let _e=[],et=0,rt=Tt=>{Tt()},st=Tt=>{Tt()},ct=Tt=>setTimeout(Tt,0);const ut=Tt=>{ct=Tt},ft=Tt=>{let Rt;et++;try{Rt=Tt()}finally{et--,et||$t()}return Rt},gt=Tt=>{et?_e.push(Tt):ct(()=>{rt(Tt)})},xt=Tt=>(...Rt)=>{gt(()=>{Tt(...Rt)})},$t=()=>{const Tt=_e;_e=[],Tt.length&&ct(()=>{st(()=>{Tt.forEach(Rt=>{rt(Rt)})})})};return{batch:ft,batchCalls:xt,schedule:gt,setNotifyFunction:Tt=>{rt=Tt},setBatchNotifyFunction:Tt=>{st=Tt},setScheduler:ut}}var notifyManager=createNotifyManager(),_l,cm,Removable=(cm=class{constructor(){ho(this,_l,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&no(this,_l,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(_e){this.gcTime=Math.max(this.gcTime||0,_e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Jr(this,_l)&&(clearTimeout(Jr(this,_l)),no(this,_l,void 0))}},_l=new WeakMap,cm),Qu,Ju,ys,Bs,bs,cs,Cp,Tl,_d,Op,Es,Ps,um,Query=(um=class extends Removable{constructor(et){super();ho(this,_d);ho(this,Es);ho(this,Qu,void 0);ho(this,Ju,void 0);ho(this,ys,void 0);ho(this,Bs,void 0);ho(this,bs,void 0);ho(this,cs,void 0);ho(this,Cp,void 0);ho(this,Tl,void 0);no(this,Tl,!1),no(this,Cp,et.defaultOptions),mo(this,_d,Op).call(this,et.options),no(this,cs,[]),no(this,ys,et.cache),this.queryKey=et.queryKey,this.queryHash=et.queryHash,no(this,Qu,et.state||getDefaultState$1(this.options)),this.state=Jr(this,Qu),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Jr(this,cs).length&&this.state.fetchStatus==="idle"&&Jr(this,ys).remove(this)}setData(et,rt){const st=replaceData(this.state.data,et,this.options);return mo(this,Es,Ps).call(this,{data:st,type:"success",dataUpdatedAt:rt==null?void 0:rt.updatedAt,manual:rt==null?void 0:rt.manual}),st}setState(et,rt){mo(this,Es,Ps).call(this,{type:"setState",state:et,setStateOptions:rt})}cancel(et){var st;const rt=Jr(this,Bs);return(st=Jr(this,bs))==null||st.cancel(et),rt?rt.then(noop$3).catch(noop$3):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Jr(this,Qu))}isActive(){return Jr(this,cs).some(et=>et.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Jr(this,cs).some(et=>et.getCurrentResult().isStale)}isStaleByTime(et=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,et)}onFocus(){var rt;const et=Jr(this,cs).find(st=>st.shouldFetchOnWindowFocus());et==null||et.refetch({cancelRefetch:!1}),(rt=Jr(this,bs))==null||rt.continue()}onOnline(){var rt;const et=Jr(this,cs).find(st=>st.shouldFetchOnReconnect());et==null||et.refetch({cancelRefetch:!1}),(rt=Jr(this,bs))==null||rt.continue()}addObserver(et){Jr(this,cs).includes(et)||(Jr(this,cs).push(et),this.clearGcTimeout(),Jr(this,ys).notify({type:"observerAdded",query:this,observer:et}))}removeObserver(et){Jr(this,cs).includes(et)&&(no(this,cs,Jr(this,cs).filter(rt=>rt!==et)),Jr(this,cs).length||(Jr(this,bs)&&(Jr(this,Tl)?Jr(this,bs).cancel({revert:!0}):Jr(this,bs).cancelRetry()),this.scheduleGc()),Jr(this,ys).notify({type:"observerRemoved",query:this,observer:et}))}getObserversCount(){return Jr(this,cs).length}invalidate(){this.state.isInvalidated||mo(this,Es,Ps).call(this,{type:"invalidate"})}fetch(et,rt){var $t,_t,wt,Tt;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(rt!=null&&rt.cancelRefetch))this.cancel({silent:!0});else if(Jr(this,Bs))return($t=Jr(this,bs))==null||$t.continueRetry(),Jr(this,Bs)}if(et&&mo(this,_d,Op).call(this,et),!this.options.queryFn){const Rt=Jr(this,cs).find(It=>It.options.queryFn);Rt&&mo(this,_d,Op).call(this,Rt.options)}const st=new AbortController,ct={queryKey:this.queryKey,meta:this.meta},ut=Rt=>{Object.defineProperty(Rt,"signal",{enumerable:!0,get:()=>(no(this,Tl,!0),st.signal)})};ut(ct);const ft=()=>this.options.queryFn?(no(this,Tl,!1),this.options.persister?this.options.persister(this.options.queryFn,ct,this):this.options.queryFn(ct)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),gt={fetchOptions:rt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:ft};ut(gt),(_t=this.options.behavior)==null||_t.onFetch(gt,this),no(this,Ju,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((wt=gt.fetchOptions)==null?void 0:wt.meta))&&mo(this,Es,Ps).call(this,{type:"fetch",meta:(Tt=gt.fetchOptions)==null?void 0:Tt.meta});const xt=Rt=>{var It,At,jt,Nt;isCancelledError(Rt)&&Rt.silent||mo(this,Es,Ps).call(this,{type:"error",error:Rt}),isCancelledError(Rt)||((At=(It=Jr(this,ys).config).onError)==null||At.call(It,Rt,this),(Nt=(jt=Jr(this,ys).config).onSettled)==null||Nt.call(jt,this.state.data,Rt,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return no(this,bs,createRetryer({fn:gt.fetchFn,abort:st.abort.bind(st),onSuccess:Rt=>{var It,At,jt,Nt;if(typeof Rt>"u"){xt(new Error(`${this.queryHash} data is undefined`));return}this.setData(Rt),(At=(It=Jr(this,ys).config).onSuccess)==null||At.call(It,Rt,this),(Nt=(jt=Jr(this,ys).config).onSettled)==null||Nt.call(jt,Rt,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:xt,onFail:(Rt,It)=>{mo(this,Es,Ps).call(this,{type:"failed",failureCount:Rt,error:It})},onPause:()=>{mo(this,Es,Ps).call(this,{type:"pause"})},onContinue:()=>{mo(this,Es,Ps).call(this,{type:"continue"})},retry:gt.options.retry,retryDelay:gt.options.retryDelay,networkMode:gt.options.networkMode})),no(this,Bs,Jr(this,bs).promise),Jr(this,Bs)}},Qu=new WeakMap,Ju=new WeakMap,ys=new WeakMap,Bs=new WeakMap,bs=new WeakMap,cs=new WeakMap,Cp=new WeakMap,Tl=new WeakMap,_d=new WeakSet,Op=function(et){this.options={...Jr(this,Cp),...et},this.updateGcTime(this.options.gcTime)},Es=new WeakSet,Ps=function(et){const rt=st=>{switch(et.type){case"failed":return{...st,fetchFailureCount:et.failureCount,fetchFailureReason:et.error};case"pause":return{...st,fetchStatus:"paused"};case"continue":return{...st,fetchStatus:"fetching"};case"fetch":return{...st,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:et.meta??null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!st.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...st,data:et.data,dataUpdateCount:st.dataUpdateCount+1,dataUpdatedAt:et.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!et.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const ct=et.error;return isCancelledError(ct)&&ct.revert&&Jr(this,Ju)?{...Jr(this,Ju),fetchStatus:"idle"}:{...st,error:ct,errorUpdateCount:st.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:st.fetchFailureCount+1,fetchFailureReason:ct,fetchStatus:"idle",status:"error"};case"invalidate":return{...st,isInvalidated:!0};case"setState":return{...st,...et.state}}};this.state=rt(this.state),notifyManager.batch(()=>{Jr(this,cs).forEach(st=>{st.onQueryUpdate()}),Jr(this,ys).notify({query:this,type:"updated",action:et})})},um);function getDefaultState$1(_e){const et=typeof _e.initialData=="function"?_e.initialData():_e.initialData,rt=typeof et<"u",st=rt?typeof _e.initialDataUpdatedAt=="function"?_e.initialDataUpdatedAt():_e.initialDataUpdatedAt:0;return{data:et,dataUpdateCount:0,dataUpdatedAt:rt?st??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:rt?"success":"pending",fetchStatus:"idle"}}var _s,dm,QueryCache=(dm=class extends Subscribable{constructor(et={}){super();ho(this,_s,void 0);this.config=et,no(this,_s,new Map)}build(et,rt,st){const ct=rt.queryKey,ut=rt.queryHash??hashQueryKeyByOptions(ct,rt);let ft=this.get(ut);return ft||(ft=new Query({cache:this,queryKey:ct,queryHash:ut,options:et.defaultQueryOptions(rt),state:st,defaultOptions:et.getQueryDefaults(ct)}),this.add(ft)),ft}add(et){Jr(this,_s).has(et.queryHash)||(Jr(this,_s).set(et.queryHash,et),this.notify({type:"added",query:et}))}remove(et){const rt=Jr(this,_s).get(et.queryHash);rt&&(et.destroy(),rt===et&&Jr(this,_s).delete(et.queryHash),this.notify({type:"removed",query:et}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(et=>{this.remove(et)})})}get(et){return Jr(this,_s).get(et)}getAll(){return[...Jr(this,_s).values()]}find(et){const rt={exact:!0,...et};return this.getAll().find(st=>matchQuery(rt,st))}findAll(et={}){const rt=this.getAll();return Object.keys(et).length>0?rt.filter(st=>matchQuery(et,st)):rt}notify(et){notifyManager.batch(()=>{this.listeners.forEach(rt=>{rt(et)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(et=>{et.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(et=>{et.onOnline()})})}},_s=new WeakMap,dm),ws,wp,ms,_f,Ts,Ms,fm,Mutation=(fm=class extends Removable{constructor(et){super();ho(this,Ts);ho(this,ws,void 0);ho(this,wp,void 0);ho(this,ms,void 0);ho(this,_f,void 0);this.mutationId=et.mutationId,no(this,wp,et.defaultOptions),no(this,ms,et.mutationCache),no(this,ws,[]),this.state=et.state||getDefaultState(),this.setOptions(et.options),this.scheduleGc()}setOptions(et){this.options={...Jr(this,wp),...et},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(et){Jr(this,ws).includes(et)||(Jr(this,ws).push(et),this.clearGcTimeout(),Jr(this,ms).notify({type:"observerAdded",mutation:this,observer:et}))}removeObserver(et){no(this,ws,Jr(this,ws).filter(rt=>rt!==et)),this.scheduleGc(),Jr(this,ms).notify({type:"observerRemoved",mutation:this,observer:et})}optionalRemove(){Jr(this,ws).length||(this.state.status==="pending"?this.scheduleGc():Jr(this,ms).remove(this))}continue(){var et;return((et=Jr(this,_f))==null?void 0:et.continue())??this.execute(this.state.variables)}async execute(et){var ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt;const rt=()=>(no(this,_f,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(et):Promise.reject(new Error("No mutationFn found")),onFail:(Xt,Gt)=>{mo(this,Ts,Ms).call(this,{type:"failed",failureCount:Xt,error:Gt})},onPause:()=>{mo(this,Ts,Ms).call(this,{type:"pause"})},onContinue:()=>{mo(this,Ts,Ms).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Jr(this,_f).promise),st=this.state.status==="pending";try{if(!st){mo(this,Ts,Ms).call(this,{type:"pending",variables:et}),await((ut=(ct=Jr(this,ms).config).onMutate)==null?void 0:ut.call(ct,et,this));const Gt=await((gt=(ft=this.options).onMutate)==null?void 0:gt.call(ft,et));Gt!==this.state.context&&mo(this,Ts,Ms).call(this,{type:"pending",context:Gt,variables:et})}const Xt=await rt();return await(($t=(xt=Jr(this,ms).config).onSuccess)==null?void 0:$t.call(xt,Xt,et,this.state.context,this)),await((wt=(_t=this.options).onSuccess)==null?void 0:wt.call(_t,Xt,et,this.state.context)),await((Rt=(Tt=Jr(this,ms).config).onSettled)==null?void 0:Rt.call(Tt,Xt,null,this.state.variables,this.state.context,this)),await((At=(It=this.options).onSettled)==null?void 0:At.call(It,Xt,null,et,this.state.context)),mo(this,Ts,Ms).call(this,{type:"success",data:Xt}),Xt}catch(Xt){try{throw await((Nt=(jt=Jr(this,ms).config).onError)==null?void 0:Nt.call(jt,Xt,et,this.state.context,this)),await((Ft=(kt=this.options).onError)==null?void 0:Ft.call(kt,Xt,et,this.state.context)),await((Wt=(Ht=Jr(this,ms).config).onSettled)==null?void 0:Wt.call(Ht,void 0,Xt,this.state.variables,this.state.context,this)),await((qt=(Vt=this.options).onSettled)==null?void 0:qt.call(Vt,void 0,Xt,et,this.state.context)),Xt}finally{mo(this,Ts,Ms).call(this,{type:"error",error:Xt})}}}},ws=new WeakMap,wp=new WeakMap,ms=new WeakMap,_f=new WeakMap,Ts=new WeakSet,Ms=function(et){const rt=st=>{switch(et.type){case"failed":return{...st,failureCount:et.failureCount,failureReason:et.error};case"pause":return{...st,isPaused:!0};case"continue":return{...st,isPaused:!1};case"pending":return{...st,context:et.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:et.variables,submittedAt:Date.now()};case"success":return{...st,data:et.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...st,data:void 0,error:et.error,failureCount:st.failureCount+1,failureReason:et.error,isPaused:!1,status:"error"}}};this.state=rt(this.state),notifyManager.batch(()=>{Jr(this,ws).forEach(st=>{st.onMutationUpdate(et)}),Jr(this,ms).notify({mutation:this,type:"updated",action:et})})},fm);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xs,Tp,Il,pm,MutationCache=(pm=class extends Subscribable{constructor(et={}){super();ho(this,xs,void 0);ho(this,Tp,void 0);ho(this,Il,void 0);this.config=et,no(this,xs,[]),no(this,Tp,0)}build(et,rt,st){const ct=new Mutation({mutationCache:this,mutationId:++Sl(this,Tp)._,options:et.defaultMutationOptions(rt),state:st});return this.add(ct),ct}add(et){Jr(this,xs).push(et),this.notify({type:"added",mutation:et})}remove(et){no(this,xs,Jr(this,xs).filter(rt=>rt!==et)),this.notify({type:"removed",mutation:et})}clear(){notifyManager.batch(()=>{Jr(this,xs).forEach(et=>{this.remove(et)})})}getAll(){return Jr(this,xs)}find(et){const rt={exact:!0,...et};return Jr(this,xs).find(st=>matchMutation(rt,st))}findAll(et={}){return Jr(this,xs).filter(rt=>matchMutation(et,rt))}notify(et){notifyManager.batch(()=>{this.listeners.forEach(rt=>{rt(et)})})}resumePausedMutations(){return no(this,Il,(Jr(this,Il)??Promise.resolve()).then(()=>{const et=Jr(this,xs).filter(rt=>rt.state.isPaused);return notifyManager.batch(()=>et.reduce((rt,st)=>rt.then(()=>st.continue().catch(noop$3)),Promise.resolve()))}).then(()=>{no(this,Il,void 0)})),Jr(this,Il)}},xs=new WeakMap,Tp=new WeakMap,Il=new WeakMap,pm);function infiniteQueryBehavior(_e){return{onFetch:(et,rt)=>{const st=async()=>{var It,At,jt,Nt,kt;const ct=et.options,ut=(jt=(At=(It=et.fetchOptions)==null?void 0:It.meta)==null?void 0:At.fetchMore)==null?void 0:jt.direction,ft=((Nt=et.state.data)==null?void 0:Nt.pages)||[],gt=((kt=et.state.data)==null?void 0:kt.pageParams)||[],xt={pages:[],pageParams:[]};let $t=!1;const _t=Ft=>{Object.defineProperty(Ft,"signal",{enumerable:!0,get:()=>(et.signal.aborted?$t=!0:et.signal.addEventListener("abort",()=>{$t=!0}),et.signal)})},wt=et.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${et.options.queryHash}'`))),Tt=async(Ft,Ht,Wt)=>{if($t)return Promise.reject();if(Ht==null&&Ft.pages.length)return Promise.resolve(Ft);const Vt={queryKey:et.queryKey,pageParam:Ht,direction:Wt?"backward":"forward",meta:et.options.meta};_t(Vt);const qt=await wt(Vt),{maxPages:Xt}=et.options,Gt=Wt?addToStart:addToEnd;return{pages:Gt(Ft.pages,qt,Xt),pageParams:Gt(Ft.pageParams,Ht,Xt)}};let Rt;if(ut&&ft.length){const Ft=ut==="backward",Ht=Ft?getPreviousPageParam:getNextPageParam,Wt={pages:ft,pageParams:gt},Vt=Ht(ct,Wt);Rt=await Tt(Wt,Vt,Ft)}else{Rt=await Tt(xt,gt[0]??ct.initialPageParam);const Ft=_e??ft.length;for(let Ht=1;Ht{var ct,ut;return(ut=(ct=et.options).persister)==null?void 0:ut.call(ct,st,{queryKey:et.queryKey,meta:et.options.meta,signal:et.signal},rt)}:et.fetchFn=st}}}function getNextPageParam(_e,{pages:et,pageParams:rt}){const st=et.length-1;return _e.getNextPageParam(et[st],et,rt[st],rt)}function getPreviousPageParam(_e,{pages:et,pageParams:rt}){var st;return(st=_e.getPreviousPageParam)==null?void 0:st.call(_e,et[0],et,rt[0],rt)}var ls,Us,qs,np,op,Ys,sp,lp,gm,QueryClient=(gm=class{constructor(_e={}){ho(this,ls,void 0);ho(this,Us,void 0);ho(this,qs,void 0);ho(this,np,void 0);ho(this,op,void 0);ho(this,Ys,void 0);ho(this,sp,void 0);ho(this,lp,void 0);no(this,ls,_e.queryCache||new QueryCache),no(this,Us,_e.mutationCache||new MutationCache),no(this,qs,_e.defaultOptions||{}),no(this,np,new Map),no(this,op,new Map),no(this,Ys,0)}mount(){Sl(this,Ys)._++,Jr(this,Ys)===1&&(no(this,sp,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),Jr(this,ls).onFocus())})),no(this,lp,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),Jr(this,ls).onOnline())})))}unmount(){var _e,et;Sl(this,Ys)._--,Jr(this,Ys)===0&&((_e=Jr(this,sp))==null||_e.call(this),no(this,sp,void 0),(et=Jr(this,lp))==null||et.call(this),no(this,lp,void 0))}isFetching(_e){return Jr(this,ls).findAll({..._e,fetchStatus:"fetching"}).length}isMutating(_e){return Jr(this,Us).findAll({..._e,status:"pending"}).length}getQueryData(_e){var rt;const et=this.defaultQueryOptions({queryKey:_e});return(rt=Jr(this,ls).get(et.queryHash))==null?void 0:rt.state.data}ensureQueryData(_e){const et=this.getQueryData(_e.queryKey);return et!==void 0?Promise.resolve(et):this.fetchQuery(_e)}getQueriesData(_e){return this.getQueryCache().findAll(_e).map(({queryKey:et,state:rt})=>{const st=rt.data;return[et,st]})}setQueryData(_e,et,rt){const st=this.defaultQueryOptions({queryKey:_e}),ct=Jr(this,ls).get(st.queryHash),ut=ct==null?void 0:ct.state.data,ft=functionalUpdate(et,ut);if(!(typeof ft>"u"))return Jr(this,ls).build(this,st).setData(ft,{...rt,manual:!0})}setQueriesData(_e,et,rt){return notifyManager.batch(()=>this.getQueryCache().findAll(_e).map(({queryKey:st})=>[st,this.setQueryData(st,et,rt)]))}getQueryState(_e){var rt;const et=this.defaultQueryOptions({queryKey:_e});return(rt=Jr(this,ls).get(et.queryHash))==null?void 0:rt.state}removeQueries(_e){const et=Jr(this,ls);notifyManager.batch(()=>{et.findAll(_e).forEach(rt=>{et.remove(rt)})})}resetQueries(_e,et){const rt=Jr(this,ls),st={type:"active",..._e};return notifyManager.batch(()=>(rt.findAll(_e).forEach(ct=>{ct.reset()}),this.refetchQueries(st,et)))}cancelQueries(_e={},et={}){const rt={revert:!0,...et},st=notifyManager.batch(()=>Jr(this,ls).findAll(_e).map(ct=>ct.cancel(rt)));return Promise.all(st).then(noop$3).catch(noop$3)}invalidateQueries(_e={},et={}){return notifyManager.batch(()=>{if(Jr(this,ls).findAll(_e).forEach(st=>{st.invalidate()}),_e.refetchType==="none")return Promise.resolve();const rt={..._e,type:_e.refetchType??_e.type??"active"};return this.refetchQueries(rt,et)})}refetchQueries(_e={},et){const rt={...et,cancelRefetch:(et==null?void 0:et.cancelRefetch)??!0},st=notifyManager.batch(()=>Jr(this,ls).findAll(_e).filter(ct=>!ct.isDisabled()).map(ct=>{let ut=ct.fetch(void 0,rt);return rt.throwOnError||(ut=ut.catch(noop$3)),ct.state.fetchStatus==="paused"?Promise.resolve():ut}));return Promise.all(st).then(noop$3)}fetchQuery(_e){const et=this.defaultQueryOptions(_e);typeof et.retry>"u"&&(et.retry=!1);const rt=Jr(this,ls).build(this,et);return rt.isStaleByTime(et.staleTime)?rt.fetch(et):Promise.resolve(rt.state.data)}prefetchQuery(_e){return this.fetchQuery(_e).then(noop$3).catch(noop$3)}fetchInfiniteQuery(_e){return _e.behavior=infiniteQueryBehavior(_e.pages),this.fetchQuery(_e)}prefetchInfiniteQuery(_e){return this.fetchInfiniteQuery(_e).then(noop$3).catch(noop$3)}resumePausedMutations(){return Jr(this,Us).resumePausedMutations()}getQueryCache(){return Jr(this,ls)}getMutationCache(){return Jr(this,Us)}getDefaultOptions(){return Jr(this,qs)}setDefaultOptions(_e){no(this,qs,_e)}setQueryDefaults(_e,et){Jr(this,np).set(hashKey(_e),{queryKey:_e,defaultOptions:et})}getQueryDefaults(_e){const et=[...Jr(this,np).values()];let rt={};return et.forEach(st=>{partialMatchKey(_e,st.queryKey)&&(rt={...rt,...st.defaultOptions})}),rt}setMutationDefaults(_e,et){Jr(this,op).set(hashKey(_e),{mutationKey:_e,defaultOptions:et})}getMutationDefaults(_e){const et=[...Jr(this,op).values()];let rt={};return et.forEach(st=>{partialMatchKey(_e,st.mutationKey)&&(rt={...rt,...st.defaultOptions})}),rt}defaultQueryOptions(_e){if(_e._defaulted)return _e;const et={...Jr(this,qs).queries,...this.getQueryDefaults(_e.queryKey),..._e,_defaulted:!0};return et.queryHash||(et.queryHash=hashQueryKeyByOptions(et.queryKey,et)),typeof et.refetchOnReconnect>"u"&&(et.refetchOnReconnect=et.networkMode!=="always"),typeof et.throwOnError>"u"&&(et.throwOnError=!!et.suspense),typeof et.networkMode>"u"&&et.persister&&(et.networkMode="offlineFirst"),et}defaultMutationOptions(_e){return _e!=null&&_e._defaulted?_e:{...Jr(this,qs).mutations,...(_e==null?void 0:_e.mutationKey)&&this.getMutationDefaults(_e.mutationKey),..._e,_defaulted:!0}}clear(){Jr(this,ls).clear(),Jr(this,Us).clear()}},ls=new WeakMap,Us=new WeakMap,qs=new WeakMap,np=new WeakMap,op=new WeakMap,Ys=new WeakMap,sp=new WeakMap,lp=new WeakMap,gm),QueryClientContext=reactExports.createContext(void 0),QueryClientProvider=({client:_e,children:et})=>(reactExports.useEffect(()=>(_e.mount(),()=>{_e.unmount()}),[_e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:_e,children:et}));/** * @remix-run/router v1.15.1 * * Copyright (c) Remix Software Inc. @@ -406,8 +421,8 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"u")throw new Error(et)}function warning$7(_e,et){if(!_e){typeof console<"u"&&console.warn(et);try{throw new Error(et)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(_e,et){return{usr:_e.state,key:_e.key,idx:et}}function createLocation$1(_e,et,rt,st){return rt===void 0&&(rt=null),_extends$9({pathname:typeof _e=="string"?_e:_e.pathname,search:"",hash:""},typeof et=="string"?parsePath(et):et,{state:rt,key:et&&et.key||st||createKey()})}function createPath(_e){let{pathname:et="/",search:rt="",hash:st=""}=_e;return rt&&rt!=="?"&&(et+=rt.charAt(0)==="?"?rt:"?"+rt),st&&st!=="#"&&(et+=st.charAt(0)==="#"?st:"#"+st),et}function parsePath(_e){let et={};if(_e){let rt=_e.indexOf("#");rt>=0&&(et.hash=_e.substr(rt),_e=_e.substr(0,rt));let st=_e.indexOf("?");st>=0&&(et.search=_e.substr(st),_e=_e.substr(0,st)),_e&&(et.pathname=_e)}return et}function getUrlBasedHistory(_e,et,rt,st){st===void 0&&(st={});let{window:ct=document.defaultView,v5Compat:ut=!1}=st,ft=ct.history,gt=Action$1.Pop,xt=null,$t=_t();$t==null&&($t=0,ft.replaceState(_extends$9({},ft.state,{idx:$t}),""));function _t(){return(ft.state||{idx:null}).idx}function wt(){gt=Action$1.Pop;let jt=_t(),Nt=jt==null?null:jt-$t;$t=jt,xt&&xt({action:gt,location:At.location,delta:Nt})}function Tt(jt,Nt){gt=Action$1.Push;let kt=createLocation$1(At.location,jt,Nt);rt&&rt(kt,jt),$t=_t()+1;let Ft=getHistoryState(kt,$t),Ht=At.createHref(kt);try{ft.pushState(Ft,"",Ht)}catch(Wt){if(Wt instanceof DOMException&&Wt.name==="DataCloneError")throw Wt;ct.location.assign(Ht)}ut&&xt&&xt({action:gt,location:At.location,delta:1})}function Rt(jt,Nt){gt=Action$1.Replace;let kt=createLocation$1(At.location,jt,Nt);rt&&rt(kt,jt),$t=_t();let Ft=getHistoryState(kt,$t),Ht=At.createHref(kt);ft.replaceState(Ft,"",Ht),ut&&xt&&xt({action:gt,location:At.location,delta:0})}function It(jt){let Nt=ct.location.origin!=="null"?ct.location.origin:ct.location.href,kt=typeof jt=="string"?jt:createPath(jt);return kt=kt.replace(/ $/,"%20"),invariant$3(Nt,"No window.location.(origin|href) available to create URL for href: "+kt),new URL(kt,Nt)}let At={get action(){return gt},get location(){return _e(ct,ft)},listen(jt){if(xt)throw new Error("A history only accepts one active listener");return ct.addEventListener(PopStateEventType,wt),xt=jt,()=>{ct.removeEventListener(PopStateEventType,wt),xt=null}},createHref(jt){return et(ct,jt)},createURL:It,encodeLocation(jt){let Nt=It(jt);return{pathname:Nt.pathname,search:Nt.search,hash:Nt.hash}},push:Tt,replace:Rt,go(jt){return ft.go(jt)}};return At}var ResultType;(function(_e){_e.data="data",_e.deferred="deferred",_e.redirect="redirect",_e.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(_e){return _e.index===!0}function convertRoutesToDataRoutes(_e,et,rt,st){return rt===void 0&&(rt=[]),st===void 0&&(st={}),_e.map((ct,ut)=>{let ft=[...rt,ut],gt=typeof ct.id=="string"?ct.id:ft.join("-");if(invariant$3(ct.index!==!0||!ct.children,"Cannot specify children on an index route"),invariant$3(!st[gt],'Found a route id collision on id "'+gt+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(ct)){let xt=_extends$9({},ct,et(ct),{id:gt});return st[gt]=xt,xt}else{let xt=_extends$9({},ct,et(ct),{id:gt,children:void 0});return st[gt]=xt,ct.children&&(xt.children=convertRoutesToDataRoutes(ct.children,et,ft,st)),xt}})}function matchRoutes(_e,et,rt){rt===void 0&&(rt="/");let st=typeof et=="string"?parsePath(et):et,ct=stripBasename(st.pathname||"/",rt);if(ct==null)return null;let ut=flattenRoutes(_e);rankRouteBranches(ut);let ft=null;for(let gt=0;ft==null&>{let xt={relativePath:gt===void 0?ut.path||"":gt,caseSensitive:ut.caseSensitive===!0,childrenIndex:ft,route:ut};xt.relativePath.startsWith("/")&&(invariant$3(xt.relativePath.startsWith(st),'Absolute route path "'+xt.relativePath+'" nested under path '+('"'+st+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),xt.relativePath=xt.relativePath.slice(st.length));let $t=joinPaths([st,xt.relativePath]),_t=rt.concat(xt);ut.children&&ut.children.length>0&&(invariant$3(ut.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+$t+'".')),flattenRoutes(ut.children,et,_t,$t)),!(ut.path==null&&!ut.index)&&et.push({path:$t,score:computeScore($t,ut.index),routesMeta:_t})};return _e.forEach((ut,ft)=>{var gt;if(ut.path===""||!((gt=ut.path)!=null&>.includes("?")))ct(ut,ft);else for(let xt of explodeOptionalSegments(ut.path))ct(ut,ft,xt)}),et}function explodeOptionalSegments(_e){let et=_e.split("/");if(et.length===0)return[];let[rt,...st]=et,ct=rt.endsWith("?"),ut=rt.replace(/\?$/,"");if(st.length===0)return ct?[ut,""]:[ut];let ft=explodeOptionalSegments(st.join("/")),gt=[];return gt.push(...ft.map(xt=>xt===""?ut:[ut,xt].join("/"))),ct&>.push(...ft),gt.map(xt=>_e.startsWith("/")&&xt===""?"/":xt)}function rankRouteBranches(_e){_e.sort((et,rt)=>et.score!==rt.score?rt.score-et.score:compareIndexes(et.routesMeta.map(st=>st.childrenIndex),rt.routesMeta.map(st=>st.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=_e=>_e==="*";function computeScore(_e,et){let rt=_e.split("/"),st=rt.length;return rt.some(isSplat)&&(st+=splatPenalty),et&&(st+=indexRouteValue),rt.filter(ct=>!isSplat(ct)).reduce((ct,ut)=>ct+(paramRe.test(ut)?dynamicSegmentValue:ut===""?emptySegmentValue:staticSegmentValue),st)}function compareIndexes(_e,et){return _e.length===et.length&&_e.slice(0,-1).every((st,ct)=>st===et[ct])?_e[_e.length-1]-et[et.length-1]:0}function matchRouteBranch(_e,et){let{routesMeta:rt}=_e,st={},ct="/",ut=[];for(let ft=0;ft{let{paramName:Tt,isOptional:Rt}=_t;if(Tt==="*"){let At=gt[wt]||"";ft=ut.slice(0,ut.length-At.length).replace(/(.)\/+$/,"$1")}const It=gt[wt];return Rt&&!It?$t[Tt]=void 0:$t[Tt]=(It||"").replace(/%2F/g,"/"),$t},{}),pathname:ut,pathnameBase:ft,pattern:_e}}function compilePath(_e,et,rt){et===void 0&&(et=!1),rt===void 0&&(rt=!0),warning$7(_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 st=[],ct="^"+_e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(ft,gt,xt)=>(st.push({paramName:gt,isOptional:xt!=null}),xt?"/?([^\\/]+)?":"/([^\\/]+)"));return _e.endsWith("*")?(st.push({paramName:"*"}),ct+=_e==="*"||_e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):rt?ct+="\\/*$":_e!==""&&_e!=="/"&&(ct+="(?:(?=\\/|$))"),[new RegExp(ct,et?void 0:"i"),st]}function decodePath(_e){try{return _e.split("/").map(et=>decodeURIComponent(et).replace(/\//g,"%2F")).join("/")}catch(et){return warning$7(!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 ("+et+").")),_e}}function stripBasename(_e,et){if(et==="/")return _e;if(!_e.toLowerCase().startsWith(et.toLowerCase()))return null;let rt=et.endsWith("/")?et.length-1:et.length,st=_e.charAt(rt);return st&&st!=="/"?null:_e.slice(rt)||"/"}function resolvePath(_e,et){et===void 0&&(et="/");let{pathname:rt,search:st="",hash:ct=""}=typeof _e=="string"?parsePath(_e):_e;return{pathname:rt?rt.startsWith("/")?rt:resolvePathname(rt,et):et,search:normalizeSearch(st),hash:normalizeHash(ct)}}function resolvePathname(_e,et){let rt=et.replace(/\/+$/,"").split("/");return _e.split("/").forEach(ct=>{ct===".."?rt.length>1&&rt.pop():ct!=="."&&rt.push(ct)}),rt.length>1?rt.join("/"):"/"}function getInvalidPathError(_e,et,rt,st){return"Cannot include a '"+_e+"' character in a manually specified "+("`to."+et+"` field ["+JSON.stringify(st)+"]. Please separate it out to the ")+("`to."+rt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(_e){return _e.filter((et,rt)=>rt===0||et.route.path&&et.route.path.length>0)}function getResolveToMatches(_e,et){let rt=getPathContributingMatches(_e);return et?rt.map((st,ct)=>ct===_e.length-1?st.pathname:st.pathnameBase):rt.map(st=>st.pathnameBase)}function resolveTo(_e,et,rt,st){st===void 0&&(st=!1);let ct;typeof _e=="string"?ct=parsePath(_e):(ct=_extends$9({},_e),invariant$3(!ct.pathname||!ct.pathname.includes("?"),getInvalidPathError("?","pathname","search",ct)),invariant$3(!ct.pathname||!ct.pathname.includes("#"),getInvalidPathError("#","pathname","hash",ct)),invariant$3(!ct.search||!ct.search.includes("#"),getInvalidPathError("#","search","hash",ct)));let ut=_e===""||ct.pathname==="",ft=ut?"/":ct.pathname,gt;if(ft==null)gt=rt;else{let wt=et.length-1;if(!st&&ft.startsWith("..")){let Tt=ft.split("/");for(;Tt[0]==="..";)Tt.shift(),wt-=1;ct.pathname=Tt.join("/")}gt=wt>=0?et[wt]:"/"}let xt=resolvePath(ct,gt),$t=ft&&ft!=="/"&&ft.endsWith("/"),_t=(ut||ft===".")&&rt.endsWith("/");return!xt.pathname.endsWith("/")&&($t||_t)&&(xt.pathname+="/"),xt}const joinPaths=_e=>_e.join("/").replace(/\/\/+/g,"/"),normalizePathname=_e=>_e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=_e=>!_e||_e==="?"?"":_e.startsWith("?")?_e:"?"+_e,normalizeHash=_e=>!_e||_e==="#"?"":_e.startsWith("#")?_e:"#"+_e;class ErrorResponseImpl{constructor(et,rt,st,ct){ct===void 0&&(ct=!1),this.status=et,this.statusText=rt||"",this.internal=ct,st instanceof Error?(this.data=st.toString(),this.error=st):this.data=st}}function isRouteErrorResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.internal=="boolean"&&"data"in _e}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=_e=>({hasErrorBoundary:!!_e.hasErrorBoundary}),TRANSITIONS_STORAGE_KEY="remix-router-transitions";function createRouter(_e){const et=_e.window?_e.window:typeof window<"u"?window:void 0,rt=typeof et<"u"&&typeof et.document<"u"&&typeof et.document.createElement<"u",st=!rt;invariant$3(_e.routes.length>0,"You must provide a non-empty routes array to createRouter");let ct;if(_e.mapRouteProperties)ct=_e.mapRouteProperties;else if(_e.detectErrorBoundary){let dn=_e.detectErrorBoundary;ct=gn=>({hasErrorBoundary:dn(gn)})}else ct=defaultMapRouteProperties;let ut={},ft=convertRoutesToDataRoutes(_e.routes,ct,void 0,ut),gt,xt=_e.basename||"/",$t=_extends$9({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},_e.future),_t=null,wt=new Set,Tt=null,Rt=null,It=null,At=_e.hydrationData!=null,jt=matchRoutes(ft,_e.history.location,xt),Nt=null;if(jt==null){let dn=getInternalRouterError(404,{pathname:_e.history.location.pathname}),{matches:gn,route:yn}=getShortCircuitMatches(ft);jt=gn,Nt={[yn.id]:dn}}let kt,Ft=jt.some(dn=>dn.route.lazy),Ht=jt.some(dn=>dn.route.loader);if(Ft)kt=!1;else if(!Ht)kt=!0;else if($t.v7_partialHydration){let dn=_e.hydrationData?_e.hydrationData.loaderData:null,gn=_e.hydrationData?_e.hydrationData.errors:null;kt=jt.every(yn=>yn.route.loader&&yn.route.loader.hydrate!==!0&&(dn&&dn[yn.route.id]!==void 0||gn&&gn[yn.route.id]!==void 0))}else kt=_e.hydrationData!=null;let Wt,Vt={historyAction:_e.history.action,location:_e.history.location,matches:jt,initialized:kt,navigation:IDLE_NAVIGATION,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||Nt,fetchers:new Map,blockers:new Map},qt=Action$1.Pop,Gt=!1,Xt,Zt=!1,lr=new Map,er=null,cr=!1,ur=!1,pr=[],hr=[],fr=new Map,dr=0,yr=-1,$r=new Map,Er=new Set,mr=new Map,Sr=new Map,Tr=new Set,jr=new Map,Or=new Map,_r=!1;function Cr(){if(_t=_e.history.listen(dn=>{let{action:gn,location:yn,delta:wn}=dn;if(_r){_r=!1;return}warning$7(Or.size===0||wn!=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 Tn=En({currentLocation:Vt.location,nextLocation:yn,historyAction:gn});if(Tn&&wn!=null){_r=!0,_e.history.go(wn*-1),hn(Tn,{state:"blocked",location:yn,proceed(){hn(Tn,{state:"proceeding",proceed:void 0,reset:void 0,location:yn}),_e.history.go(wn)},reset(){let Nn=new Map(Vt.blockers);Nn.set(Tn,IDLE_BLOCKER),Pr({blockers:Nn})}});return}return wr(gn,yn)}),rt){restoreAppliedTransitions(et,lr);let dn=()=>persistAppliedTransitions(et,lr);et.addEventListener("pagehide",dn),er=()=>et.removeEventListener("pagehide",dn)}return Vt.initialized||wr(Action$1.Pop,Vt.location,{initialHydration:!0}),Wt}function Nr(){_t&&_t(),er&&er(),wt.clear(),Xt&&Xt.abort(),Vt.fetchers.forEach((dn,gn)=>gr(gn)),Vt.blockers.forEach((dn,gn)=>mn(gn))}function Rr(dn){return wt.add(dn),()=>wt.delete(dn)}function Pr(dn,gn){gn===void 0&&(gn={}),Vt=_extends$9({},Vt,dn);let yn=[],wn=[];$t.v7_fetcherPersist&&Vt.fetchers.forEach((Tn,Nn)=>{Tn.state==="idle"&&(Tr.has(Nn)?wn.push(Nn):yn.push(Nn))}),[...wt].forEach(Tn=>Tn(Vt,{deletedFetchers:wn,unstable_viewTransitionOpts:gn.viewTransitionOpts,unstable_flushSync:gn.flushSync===!0})),$t.v7_fetcherPersist&&(yn.forEach(Tn=>Vt.fetchers.delete(Tn)),wn.forEach(Tn=>gr(Tn)))}function Mr(dn,gn,yn){var wn,Tn;let{flushSync:Nn}=yn===void 0?{}:yn,On=Vt.actionData!=null&&Vt.navigation.formMethod!=null&&isMutationMethod(Vt.navigation.formMethod)&&Vt.navigation.state==="loading"&&((wn=dn.state)==null?void 0:wn._isRedirect)!==!0,xn;gn.actionData?Object.keys(gn.actionData).length>0?xn=gn.actionData:xn=null:On?xn=Vt.actionData:xn=null;let Cn=gn.loaderData?mergeLoaderData(Vt.loaderData,gn.loaderData,gn.matches||[],gn.errors):Vt.loaderData,Sn=Vt.blockers;Sn.size>0&&(Sn=new Map(Sn),Sn.forEach((Un,Gn)=>Sn.set(Gn,IDLE_BLOCKER)));let Mn=Gt===!0||Vt.navigation.formMethod!=null&&isMutationMethod(Vt.navigation.formMethod)&&((Tn=dn.state)==null?void 0:Tn._isRedirect)!==!0;gt&&(ft=gt,gt=void 0),cr||qt===Action$1.Pop||(qt===Action$1.Push?_e.history.push(dn,dn.state):qt===Action$1.Replace&&_e.history.replace(dn,dn.state));let jn;if(qt===Action$1.Pop){let Un=lr.get(Vt.location.pathname);Un&&Un.has(dn.pathname)?jn={currentLocation:Vt.location,nextLocation:dn}:lr.has(dn.pathname)&&(jn={currentLocation:dn,nextLocation:Vt.location})}else if(Zt){let Un=lr.get(Vt.location.pathname);Un?Un.add(dn.pathname):(Un=new Set([dn.pathname]),lr.set(Vt.location.pathname,Un)),jn={currentLocation:Vt.location,nextLocation:dn}}Pr(_extends$9({},gn,{actionData:xn,loaderData:Cn,historyAction:qt,location:dn,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:qn(dn,gn.matches||Vt.matches),preventScrollReset:Mn,blockers:Sn}),{viewTransitionOpts:jn,flushSync:Nn===!0}),qt=Action$1.Pop,Gt=!1,Zt=!1,cr=!1,ur=!1,pr=[],hr=[]}async function kr(dn,gn){if(typeof dn=="number"){_e.history.go(dn);return}let yn=normalizeTo(Vt.location,Vt.matches,xt,$t.v7_prependBasename,dn,$t.v7_relativeSplatPath,gn==null?void 0:gn.fromRouteId,gn==null?void 0:gn.relative),{path:wn,submission:Tn,error:Nn}=normalizeNavigateOptions($t.v7_normalizeFormMethod,!1,yn,gn),On=Vt.location,xn=createLocation$1(Vt.location,wn,gn&&gn.state);xn=_extends$9({},xn,_e.history.encodeLocation(xn));let Cn=gn&&gn.replace!=null?gn.replace:void 0,Sn=Action$1.Push;Cn===!0?Sn=Action$1.Replace:Cn===!1||Tn!=null&&isMutationMethod(Tn.formMethod)&&Tn.formAction===Vt.location.pathname+Vt.location.search&&(Sn=Action$1.Replace);let Mn=gn&&"preventScrollReset"in gn?gn.preventScrollReset===!0:void 0,jn=(gn&&gn.unstable_flushSync)===!0,Un=En({currentLocation:On,nextLocation:xn,historyAction:Sn});if(Un){hn(Un,{state:"blocked",location:xn,proceed(){hn(Un,{state:"proceeding",proceed:void 0,reset:void 0,location:xn}),kr(dn,gn)},reset(){let Gn=new Map(Vt.blockers);Gn.set(Un,IDLE_BLOCKER),Pr({blockers:Gn})}});return}return await wr(Sn,xn,{submission:Tn,pendingError:Nn,preventScrollReset:Mn,replace:gn&&gn.replace,enableViewTransition:gn&&gn.unstable_viewTransition,flushSync:jn})}function Fr(){if(Qr(),Pr({revalidation:"loading"}),Vt.navigation.state!=="submitting"){if(Vt.navigation.state==="idle"){wr(Vt.historyAction,Vt.location,{startUninterruptedRevalidation:!0});return}wr(qt||Vt.historyAction,Vt.navigation.location,{overrideNavigation:Vt.navigation})}}async function wr(dn,gn,yn){Xt&&Xt.abort(),Xt=null,qt=dn,cr=(yn&&yn.startUninterruptedRevalidation)===!0,Yn(Vt.location,Vt.matches),Gt=(yn&&yn.preventScrollReset)===!0,Zt=(yn&&yn.enableViewTransition)===!0;let wn=gt||ft,Tn=yn&&yn.overrideNavigation,Nn=matchRoutes(wn,gn,xt),On=(yn&&yn.flushSync)===!0;if(!Nn){let Gn=getInternalRouterError(404,{pathname:gn.pathname}),{matches:eo,route:io}=getShortCircuitMatches(wn);Rn(),Mr(gn,{matches:eo,loaderData:{},errors:{[io.id]:Gn}},{flushSync:On});return}if(Vt.initialized&&!ur&&isHashChangeOnly(Vt.location,gn)&&!(yn&&yn.submission&&isMutationMethod(yn.submission.formMethod))){Mr(gn,{matches:Nn},{flushSync:On});return}Xt=new AbortController;let xn=createClientSideRequest(_e.history,gn,Xt.signal,yn&&yn.submission),Cn,Sn;if(yn&&yn.pendingError)Sn={[findNearestBoundary(Nn).route.id]:yn.pendingError};else if(yn&&yn.submission&&isMutationMethod(yn.submission.formMethod)){let Gn=await Br(xn,gn,yn.submission,Nn,{replace:yn.replace,flushSync:On});if(Gn.shortCircuited)return;Cn=Gn.pendingActionData,Sn=Gn.pendingActionError,Tn=getLoadingNavigation(gn,yn.submission),On=!1,xn=new Request(xn.url,{signal:xn.signal})}let{shortCircuited:Mn,loaderData:jn,errors:Un}=await Dr(xn,gn,Nn,Tn,yn&&yn.submission,yn&&yn.fetcherSubmission,yn&&yn.replace,yn&&yn.initialHydration===!0,On,Cn,Sn);Mn||(Xt=null,Mr(gn,_extends$9({matches:Nn},Cn?{actionData:Cn}:{},{loaderData:jn,errors:Un})))}async function Br(dn,gn,yn,wn,Tn){Tn===void 0&&(Tn={}),Qr();let Nn=getSubmittingNavigation(gn,yn);Pr({navigation:Nn},{flushSync:Tn.flushSync===!0});let On,xn=getTargetMatch(wn,gn);if(!xn.route.action&&!xn.route.lazy)On={type:ResultType.error,error:getInternalRouterError(405,{method:dn.method,pathname:gn.pathname,routeId:xn.route.id})};else if(On=await callLoaderOrAction("action",dn,xn,wn,ut,ct,xt,$t.v7_relativeSplatPath),dn.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(On)){let Cn;return Tn&&Tn.replace!=null?Cn=Tn.replace:Cn=On.location===Vt.location.pathname+Vt.location.search,await qr(Vt,On,{submission:yn,replace:Cn}),{shortCircuited:!0}}if(isErrorResult(On)){let Cn=findNearestBoundary(wn,xn.route.id);return(Tn&&Tn.replace)!==!0&&(qt=Action$1.Push),{pendingActionData:{},pendingActionError:{[Cn.route.id]:On.error}}}if(isDeferredResult(On))throw getInternalRouterError(400,{type:"defer-action"});return{pendingActionData:{[xn.route.id]:On.data}}}async function Dr(dn,gn,yn,wn,Tn,Nn,On,xn,Cn,Sn,Mn){let jn=wn||getLoadingNavigation(gn,Tn),Un=Tn||Nn||getSubmissionFromNavigation(jn),Gn=gt||ft,[eo,io]=getMatchesToLoad(_e.history,Vt,yn,Un,gn,$t.v7_partialHydration&&xn===!0,ur,pr,hr,Tr,mr,Er,Gn,xt,Sn,Mn);if(Rn(Vn=>!(yn&&yn.some(uo=>uo.route.id===Vn))||eo&&eo.some(uo=>uo.route.id===Vn)),yr=++dr,eo.length===0&&io.length===0){let Vn=Wr();return Mr(gn,_extends$9({matches:yn,loaderData:{},errors:Mn||null},Sn?{actionData:Sn}:{},Vn?{fetchers:new Map(Vt.fetchers)}:{}),{flushSync:Cn}),{shortCircuited:!0}}if(!cr&&(!$t.v7_partialHydration||!xn)){io.forEach(uo=>{let po=Vt.fetchers.get(uo.key),_o=getLoadingFetcher(void 0,po?po.data:void 0);Vt.fetchers.set(uo.key,_o)});let Vn=Sn||Vt.actionData;Pr(_extends$9({navigation:jn},Vn?Object.keys(Vn).length===0?{actionData:null}:{actionData:Vn}:{},io.length>0?{fetchers:new Map(Vt.fetchers)}:{}),{flushSync:Cn})}io.forEach(Vn=>{fr.has(Vn.key)&&Hr(Vn.key),Vn.controller&&fr.set(Vn.key,Vn.controller)});let Kn=()=>io.forEach(Vn=>Hr(Vn.key));Xt&&Xt.signal.addEventListener("abort",Kn);let{results:Wn,loaderResults:zn,fetcherResults:_n}=await pn(Vt.matches,yn,eo,io,dn);if(dn.signal.aborted)return{shortCircuited:!0};Xt&&Xt.signal.removeEventListener("abort",Kn),io.forEach(Vn=>fr.delete(Vn.key));let ln=findRedirect(Wn);if(ln){if(ln.idx>=eo.length){let Vn=io[ln.idx-eo.length].key;Er.add(Vn)}return await qr(Vt,ln.result,{replace:On}),{shortCircuited:!0}}let{loaderData:Pn,errors:An}=processLoaderData(Vt,yn,eo,zn,Mn,io,_n,jr);jr.forEach((Vn,uo)=>{Vn.subscribe(po=>{(po||Vn.done)&&jr.delete(uo)})});let Qn=Wr(),ro=Gr(yr),oo=Qn||ro||io.length>0;return _extends$9({loaderData:Pn,errors:An},oo?{fetchers:new Map(Vt.fetchers)}:{})}function Xr(dn,gn,yn,wn){if(st)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.");fr.has(dn)&&Hr(dn);let Tn=(wn&&wn.unstable_flushSync)===!0,Nn=gt||ft,On=normalizeTo(Vt.location,Vt.matches,xt,$t.v7_prependBasename,yn,$t.v7_relativeSplatPath,gn,wn==null?void 0:wn.relative),xn=matchRoutes(Nn,On,xt);if(!xn){vn(dn,gn,getInternalRouterError(404,{pathname:On}),{flushSync:Tn});return}let{path:Cn,submission:Sn,error:Mn}=normalizeNavigateOptions($t.v7_normalizeFormMethod,!0,On,wn);if(Mn){vn(dn,gn,Mn,{flushSync:Tn});return}let jn=getTargetMatch(xn,Cn);if(Gt=(wn&&wn.preventScrollReset)===!0,Sn&&isMutationMethod(Sn.formMethod)){Kr(dn,gn,Cn,jn,xn,Tn,Sn);return}mr.set(dn,{routeId:gn,path:Cn}),zr(dn,gn,Cn,jn,xn,Tn,Sn)}async function Kr(dn,gn,yn,wn,Tn,Nn,On){if(Qr(),mr.delete(dn),!wn.route.action&&!wn.route.lazy){let uo=getInternalRouterError(405,{method:On.formMethod,pathname:yn,routeId:gn});vn(dn,gn,uo,{flushSync:Nn});return}let xn=Vt.fetchers.get(dn);Zr(dn,getSubmittingFetcher(On,xn),{flushSync:Nn});let Cn=new AbortController,Sn=createClientSideRequest(_e.history,yn,Cn.signal,On);fr.set(dn,Cn);let Mn=dr,jn=await callLoaderOrAction("action",Sn,wn,Tn,ut,ct,xt,$t.v7_relativeSplatPath);if(Sn.signal.aborted){fr.get(dn)===Cn&&fr.delete(dn);return}if($t.v7_fetcherPersist&&Tr.has(dn)){if(isRedirectResult(jn)||isErrorResult(jn)){Zr(dn,getDoneFetcher(void 0));return}}else{if(isRedirectResult(jn))if(fr.delete(dn),yr>Mn){Zr(dn,getDoneFetcher(void 0));return}else return Er.add(dn),Zr(dn,getLoadingFetcher(On)),qr(Vt,jn,{fetcherSubmission:On});if(isErrorResult(jn)){vn(dn,gn,jn.error);return}}if(isDeferredResult(jn))throw getInternalRouterError(400,{type:"defer-action"});let Un=Vt.navigation.location||Vt.location,Gn=createClientSideRequest(_e.history,Un,Cn.signal),eo=gt||ft,io=Vt.navigation.state!=="idle"?matchRoutes(eo,Vt.navigation.location,xt):Vt.matches;invariant$3(io,"Didn't find any matches after fetcher action");let Kn=++dr;$r.set(dn,Kn);let Wn=getLoadingFetcher(On,jn.data);Vt.fetchers.set(dn,Wn);let[zn,_n]=getMatchesToLoad(_e.history,Vt,io,On,Un,!1,ur,pr,hr,Tr,mr,Er,eo,xt,{[wn.route.id]:jn.data},void 0);_n.filter(uo=>uo.key!==dn).forEach(uo=>{let po=uo.key,_o=Vt.fetchers.get(po),Uo=getLoadingFetcher(void 0,_o?_o.data:void 0);Vt.fetchers.set(po,Uo),fr.has(po)&&Hr(po),uo.controller&&fr.set(po,uo.controller)}),Pr({fetchers:new Map(Vt.fetchers)});let ln=()=>_n.forEach(uo=>Hr(uo.key));Cn.signal.addEventListener("abort",ln);let{results:Pn,loaderResults:An,fetcherResults:Qn}=await pn(Vt.matches,io,zn,_n,Gn);if(Cn.signal.aborted)return;Cn.signal.removeEventListener("abort",ln),$r.delete(dn),fr.delete(dn),_n.forEach(uo=>fr.delete(uo.key));let ro=findRedirect(Pn);if(ro){if(ro.idx>=zn.length){let uo=_n[ro.idx-zn.length].key;Er.add(uo)}return qr(Vt,ro.result)}let{loaderData:oo,errors:Vn}=processLoaderData(Vt,Vt.matches,zn,An,void 0,_n,Qn,jr);if(Vt.fetchers.has(dn)){let uo=getDoneFetcher(jn.data);Vt.fetchers.set(dn,uo)}Gr(Kn),Vt.navigation.state==="loading"&&Kn>yr?(invariant$3(qt,"Expected pending action"),Xt&&Xt.abort(),Mr(Vt.navigation.location,{matches:io,loaderData:oo,errors:Vn,fetchers:new Map(Vt.fetchers)})):(Pr({errors:Vn,loaderData:mergeLoaderData(Vt.loaderData,oo,io,Vn),fetchers:new Map(Vt.fetchers)}),ur=!1)}async function zr(dn,gn,yn,wn,Tn,Nn,On){let xn=Vt.fetchers.get(dn);Zr(dn,getLoadingFetcher(On,xn?xn.data:void 0),{flushSync:Nn});let Cn=new AbortController,Sn=createClientSideRequest(_e.history,yn,Cn.signal);fr.set(dn,Cn);let Mn=dr,jn=await callLoaderOrAction("loader",Sn,wn,Tn,ut,ct,xt,$t.v7_relativeSplatPath);if(isDeferredResult(jn)&&(jn=await resolveDeferredData(jn,Sn.signal,!0)||jn),fr.get(dn)===Cn&&fr.delete(dn),!Sn.signal.aborted){if(Tr.has(dn)){Zr(dn,getDoneFetcher(void 0));return}if(isRedirectResult(jn))if(yr>Mn){Zr(dn,getDoneFetcher(void 0));return}else{Er.add(dn),await qr(Vt,jn);return}if(isErrorResult(jn)){vn(dn,gn,jn.error);return}invariant$3(!isDeferredResult(jn),"Unhandled fetcher deferred data"),Zr(dn,getDoneFetcher(jn.data))}}async function qr(dn,gn,yn){let{submission:wn,fetcherSubmission:Tn,replace:Nn}=yn===void 0?{}:yn;gn.revalidate&&(ur=!0);let On=createLocation$1(dn.location,gn.location,{_isRedirect:!0});if(invariant$3(On,"Expected a location on the redirect navigation"),rt){let Un=!1;if(gn.reloadDocument)Un=!0;else if(ABSOLUTE_URL_REGEX$1.test(gn.location)){const Gn=_e.history.createURL(gn.location);Un=Gn.origin!==et.location.origin||stripBasename(Gn.pathname,xt)==null}if(Un){Nn?et.location.replace(gn.location):et.location.assign(gn.location);return}}Xt=null;let xn=Nn===!0?Action$1.Replace:Action$1.Push,{formMethod:Cn,formAction:Sn,formEncType:Mn}=dn.navigation;!wn&&!Tn&&Cn&&Sn&&Mn&&(wn=getSubmissionFromNavigation(dn.navigation));let jn=wn||Tn;if(redirectPreserveMethodStatusCodes.has(gn.status)&&jn&&isMutationMethod(jn.formMethod))await wr(xn,On,{submission:_extends$9({},jn,{formAction:gn.location}),preventScrollReset:Gt});else{let Un=getLoadingNavigation(On,wn);await wr(xn,On,{overrideNavigation:Un,fetcherSubmission:Tn,preventScrollReset:Gt})}}async function pn(dn,gn,yn,wn,Tn){let Nn=await Promise.all([...yn.map(Cn=>callLoaderOrAction("loader",Tn,Cn,gn,ut,ct,xt,$t.v7_relativeSplatPath)),...wn.map(Cn=>Cn.matches&&Cn.match&&Cn.controller?callLoaderOrAction("loader",createClientSideRequest(_e.history,Cn.path,Cn.controller.signal),Cn.match,Cn.matches,ut,ct,xt,$t.v7_relativeSplatPath):{type:ResultType.error,error:getInternalRouterError(404,{pathname:Cn.path})})]),On=Nn.slice(0,yn.length),xn=Nn.slice(yn.length);return await Promise.all([resolveDeferredResults(dn,yn,On,On.map(()=>Tn.signal),!1,Vt.loaderData),resolveDeferredResults(dn,wn.map(Cn=>Cn.match),xn,wn.map(Cn=>Cn.controller?Cn.controller.signal:null),!0)]),{results:Nn,loaderResults:On,fetcherResults:xn}}function Qr(){ur=!0,pr.push(...Rn()),mr.forEach((dn,gn)=>{fr.has(gn)&&(hr.push(gn),Hr(gn))})}function Zr(dn,gn,yn){yn===void 0&&(yn={}),Vt.fetchers.set(dn,gn),Pr({fetchers:new Map(Vt.fetchers)},{flushSync:(yn&&yn.flushSync)===!0})}function vn(dn,gn,yn,wn){wn===void 0&&(wn={});let Tn=findNearestBoundary(Vt.matches,gn);gr(dn),Pr({errors:{[Tn.route.id]:yn},fetchers:new Map(Vt.fetchers)},{flushSync:(wn&&wn.flushSync)===!0})}function vr(dn){return $t.v7_fetcherPersist&&(Sr.set(dn,(Sr.get(dn)||0)+1),Tr.has(dn)&&Tr.delete(dn)),Vt.fetchers.get(dn)||IDLE_FETCHER}function gr(dn){let gn=Vt.fetchers.get(dn);fr.has(dn)&&!(gn&&gn.state==="loading"&&$r.has(dn))&&Hr(dn),mr.delete(dn),$r.delete(dn),Er.delete(dn),Tr.delete(dn),Vt.fetchers.delete(dn)}function br(dn){if($t.v7_fetcherPersist){let gn=(Sr.get(dn)||0)-1;gn<=0?(Sr.delete(dn),Tr.add(dn)):Sr.set(dn,gn)}else gr(dn);Pr({fetchers:new Map(Vt.fetchers)})}function Hr(dn){let gn=fr.get(dn);invariant$3(gn,"Expected fetch controller: "+dn),gn.abort(),fr.delete(dn)}function Vr(dn){for(let gn of dn){let yn=vr(gn),wn=getDoneFetcher(yn.data);Vt.fetchers.set(gn,wn)}}function Wr(){let dn=[],gn=!1;for(let yn of Er){let wn=Vt.fetchers.get(yn);invariant$3(wn,"Expected fetcher: "+yn),wn.state==="loading"&&(Er.delete(yn),dn.push(yn),gn=!0)}return Vr(dn),gn}function Gr(dn){let gn=[];for(let[yn,wn]of $r)if(wn0}function cn(dn,gn){let yn=Vt.blockers.get(dn)||IDLE_BLOCKER;return Or.get(dn)!==gn&&Or.set(dn,gn),yn}function mn(dn){Vt.blockers.delete(dn),Or.delete(dn)}function hn(dn,gn){let yn=Vt.blockers.get(dn)||IDLE_BLOCKER;invariant$3(yn.state==="unblocked"&&gn.state==="blocked"||yn.state==="blocked"&&gn.state==="blocked"||yn.state==="blocked"&&gn.state==="proceeding"||yn.state==="blocked"&&gn.state==="unblocked"||yn.state==="proceeding"&&gn.state==="unblocked","Invalid blocker state transition: "+yn.state+" -> "+gn.state);let wn=new Map(Vt.blockers);wn.set(dn,gn),Pr({blockers:wn})}function En(dn){let{currentLocation:gn,nextLocation:yn,historyAction:wn}=dn;if(Or.size===0)return;Or.size>1&&warning$7(!1,"A router only supports one blocker at a time");let Tn=Array.from(Or.entries()),[Nn,On]=Tn[Tn.length-1],xn=Vt.blockers.get(Nn);if(!(xn&&xn.state==="proceeding")&&On({currentLocation:gn,nextLocation:yn,historyAction:wn}))return Nn}function Rn(dn){let gn=[];return jr.forEach((yn,wn)=>{(!dn||dn(wn))&&(yn.cancel(),gn.push(wn),jr.delete(wn))}),gn}function Dn(dn,gn,yn){if(Tt=dn,It=gn,Rt=yn||null,!At&&Vt.navigation===IDLE_NAVIGATION){At=!0;let wn=qn(Vt.location,Vt.matches);wn!=null&&Pr({restoreScrollPosition:wn})}return()=>{Tt=null,It=null,Rt=null}}function Bn(dn,gn){return Rt&&Rt(dn,gn.map(wn=>convertRouteMatchToUiMatch(wn,Vt.loaderData)))||dn.key}function Yn(dn,gn){if(Tt&&It){let yn=Bn(dn,gn);Tt[yn]=It()}}function qn(dn,gn){if(Tt){let yn=Bn(dn,gn),wn=Tt[yn];if(typeof wn=="number")return wn}return null}function ao(dn){ut={},gt=convertRoutesToDataRoutes(dn,ct,void 0,ut)}return Wt={get basename(){return xt},get future(){return $t},get state(){return Vt},get routes(){return ft},get window(){return et},initialize:Cr,subscribe:Rr,enableScrollRestoration:Dn,navigate:kr,fetch:Xr,revalidate:Fr,createHref:dn=>_e.history.createHref(dn),encodeLocation:dn=>_e.history.encodeLocation(dn),getFetcher:vr,deleteFetcher:br,dispose:Nr,getBlocker:cn,deleteBlocker:mn,_internalFetchControllers:fr,_internalActiveDeferreds:jr,_internalSetRoutes:ao},Wt}function isSubmissionNavigation(_e){return _e!=null&&("formData"in _e&&_e.formData!=null||"body"in _e&&_e.body!==void 0)}function normalizeTo(_e,et,rt,st,ct,ut,ft,gt){let xt,$t;if(ft){xt=[];for(let wt of et)if(xt.push(wt),wt.route.id===ft){$t=wt;break}}else xt=et,$t=et[et.length-1];let _t=resolveTo(ct||".",getResolveToMatches(xt,ut),stripBasename(_e.pathname,rt)||_e.pathname,gt==="path");return ct==null&&(_t.search=_e.search,_t.hash=_e.hash),(ct==null||ct===""||ct===".")&&$t&&$t.route.index&&!hasNakedIndexQuery(_t.search)&&(_t.search=_t.search?_t.search.replace(/^\?/,"?index&"):"?index"),st&&rt!=="/"&&(_t.pathname=_t.pathname==="/"?rt:joinPaths([rt,_t.pathname])),createPath(_t)}function normalizeNavigateOptions(_e,et,rt,st){if(!st||!isSubmissionNavigation(st))return{path:rt};if(st.formMethod&&!isValidMethod(st.formMethod))return{path:rt,error:getInternalRouterError(405,{method:st.formMethod})};let ct=()=>({path:rt,error:getInternalRouterError(400,{type:"invalid-body"})}),ut=st.formMethod||"get",ft=_e?ut.toUpperCase():ut.toLowerCase(),gt=stripHashFromPath(rt);if(st.body!==void 0){if(st.formEncType==="text/plain"){if(!isMutationMethod(ft))return ct();let Tt=typeof st.body=="string"?st.body:st.body instanceof FormData||st.body instanceof URLSearchParams?Array.from(st.body.entries()).reduce((Rt,It)=>{let[At,jt]=It;return""+Rt+At+"="+jt+` -`},""):String(st.body);return{path:rt,submission:{formMethod:ft,formAction:gt,formEncType:st.formEncType,formData:void 0,json:void 0,text:Tt}}}else if(st.formEncType==="application/json"){if(!isMutationMethod(ft))return ct();try{let Tt=typeof st.body=="string"?JSON.parse(st.body):st.body;return{path:rt,submission:{formMethod:ft,formAction:gt,formEncType:st.formEncType,formData:void 0,json:Tt,text:void 0}}}catch{return ct()}}}invariant$3(typeof FormData=="function","FormData is not available in this environment");let xt,$t;if(st.formData)xt=convertFormDataToSearchParams(st.formData),$t=st.formData;else if(st.body instanceof FormData)xt=convertFormDataToSearchParams(st.body),$t=st.body;else if(st.body instanceof URLSearchParams)xt=st.body,$t=convertSearchParamsToFormData(xt);else if(st.body==null)xt=new URLSearchParams,$t=new FormData;else try{xt=new URLSearchParams(st.body),$t=convertSearchParamsToFormData(xt)}catch{return ct()}let _t={formMethod:ft,formAction:gt,formEncType:st&&st.formEncType||"application/x-www-form-urlencoded",formData:$t,json:void 0,text:void 0};if(isMutationMethod(_t.formMethod))return{path:rt,submission:_t};let wt=parsePath(rt);return et&&wt.search&&hasNakedIndexQuery(wt.search)&&xt.append("index",""),wt.search="?"+xt,{path:createPath(wt),submission:_t}}function getLoaderMatchesUntilBoundary(_e,et){let rt=_e;if(et){let st=_e.findIndex(ct=>ct.route.id===et);st>=0&&(rt=_e.slice(0,st))}return rt}function getMatchesToLoad(_e,et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At){let jt=At?Object.values(At)[0]:It?Object.values(It)[0]:void 0,Nt=_e.createURL(et.location),kt=_e.createURL(ct),Ft=At?Object.keys(At)[0]:void 0,Wt=getLoaderMatchesUntilBoundary(rt,Ft).filter((qt,Gt)=>{let{route:Xt}=qt;if(Xt.lazy)return!0;if(Xt.loader==null)return!1;if(ut)return Xt.loader.hydrate?!0:et.loaderData[Xt.id]===void 0&&(!et.errors||et.errors[Xt.id]===void 0);if(isNewLoader(et.loaderData,et.matches[Gt],qt)||gt.some(er=>er===qt.route.id))return!0;let Zt=et.matches[Gt],lr=qt;return shouldRevalidateLoader(qt,_extends$9({currentUrl:Nt,currentParams:Zt.params,nextUrl:kt,nextParams:lr.params},st,{actionResult:jt,defaultShouldRevalidate:ft||Nt.pathname+Nt.search===kt.pathname+kt.search||Nt.search!==kt.search||isNewRouteInstance(Zt,lr)}))}),Vt=[];return _t.forEach((qt,Gt)=>{if(ut||!rt.some(cr=>cr.route.id===qt.routeId)||$t.has(Gt))return;let Xt=matchRoutes(Tt,qt.path,Rt);if(!Xt){Vt.push({key:Gt,routeId:qt.routeId,path:qt.path,matches:null,match:null,controller:null});return}let Zt=et.fetchers.get(Gt),lr=getTargetMatch(Xt,qt.path),er=!1;wt.has(Gt)?er=!1:xt.includes(Gt)?er=!0:Zt&&Zt.state!=="idle"&&Zt.data===void 0?er=ft:er=shouldRevalidateLoader(lr,_extends$9({currentUrl:Nt,currentParams:et.matches[et.matches.length-1].params,nextUrl:kt,nextParams:rt[rt.length-1].params},st,{actionResult:jt,defaultShouldRevalidate:ft})),er&&Vt.push({key:Gt,routeId:qt.routeId,path:qt.path,matches:Xt,match:lr,controller:new AbortController})}),[Wt,Vt]}function isNewLoader(_e,et,rt){let st=!et||rt.route.id!==et.route.id,ct=_e[rt.route.id]===void 0;return st||ct}function isNewRouteInstance(_e,et){let rt=_e.route.path;return _e.pathname!==et.pathname||rt!=null&&rt.endsWith("*")&&_e.params["*"]!==et.params["*"]}function shouldRevalidateLoader(_e,et){if(_e.route.shouldRevalidate){let rt=_e.route.shouldRevalidate(et);if(typeof rt=="boolean")return rt}return et.defaultShouldRevalidate}async function loadLazyRouteModule(_e,et,rt){if(!_e.lazy)return;let st=await _e.lazy();if(!_e.lazy)return;let ct=rt[_e.id];invariant$3(ct,"No route found in manifest");let ut={};for(let ft in st){let xt=ct[ft]!==void 0&&ft!=="hasErrorBoundary";warning$7(!xt,'Route "'+ct.id+'" has a static property "'+ft+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+ft+'" will be ignored.')),!xt&&!immutableRouteKeys.has(ft)&&(ut[ft]=st[ft])}Object.assign(ct,ut),Object.assign(ct,_extends$9({},et(ct),{lazy:void 0}))}async function callLoaderOrAction(_e,et,rt,st,ct,ut,ft,gt,xt){xt===void 0&&(xt={});let $t,_t,wt,Tt=At=>{let jt,Nt=new Promise((kt,Ft)=>jt=Ft);return wt=()=>jt(),et.signal.addEventListener("abort",wt),Promise.race([At({request:et,params:rt.params,context:xt.requestContext}),Nt])};try{let At=rt.route[_e];if(rt.route.lazy)if(At){let jt,Nt=await Promise.all([Tt(At).catch(kt=>{jt=kt}),loadLazyRouteModule(rt.route,ut,ct)]);if(jt)throw jt;_t=Nt[0]}else if(await loadLazyRouteModule(rt.route,ut,ct),At=rt.route[_e],At)_t=await Tt(At);else if(_e==="action"){let jt=new URL(et.url),Nt=jt.pathname+jt.search;throw getInternalRouterError(405,{method:et.method,pathname:Nt,routeId:rt.route.id})}else return{type:ResultType.data,data:void 0};else if(At)_t=await Tt(At);else{let jt=new URL(et.url),Nt=jt.pathname+jt.search;throw getInternalRouterError(404,{pathname:Nt})}invariant$3(_t!==void 0,"You defined "+(_e==="action"?"an action":"a loader")+" for route "+('"'+rt.route.id+"\" but didn't return anything from your `"+_e+"` ")+"function. Please return a value or `null`.")}catch(At){$t=ResultType.error,_t=At}finally{wt&&et.signal.removeEventListener("abort",wt)}if(isResponse(_t)){let At=_t.status;if(redirectStatusCodes.has(At)){let Nt=_t.headers.get("Location");if(invariant$3(Nt,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX$1.test(Nt))Nt=normalizeTo(new URL(et.url),st.slice(0,st.indexOf(rt)+1),ft,!0,Nt,gt);else if(!xt.isStaticRequest){let kt=new URL(et.url),Ft=Nt.startsWith("//")?new URL(kt.protocol+Nt):new URL(Nt),Ht=stripBasename(Ft.pathname,ft)!=null;Ft.origin===kt.origin&&Ht&&(Nt=Ft.pathname+Ft.search+Ft.hash)}if(xt.isStaticRequest)throw _t.headers.set("Location",Nt),_t;return{type:ResultType.redirect,status:At,location:Nt,revalidate:_t.headers.get("X-Remix-Revalidate")!==null,reloadDocument:_t.headers.get("X-Remix-Reload-Document")!==null}}if(xt.isRouteRequest)throw{type:$t===ResultType.error?ResultType.error:ResultType.data,response:_t};let jt;try{let Nt=_t.headers.get("Content-Type");Nt&&/\bapplication\/json\b/.test(Nt)?_t.body==null?jt=null:jt=await _t.json():jt=await _t.text()}catch(Nt){return{type:ResultType.error,error:Nt}}return $t===ResultType.error?{type:$t,error:new ErrorResponseImpl(At,_t.statusText,jt),headers:_t.headers}:{type:ResultType.data,data:jt,statusCode:_t.status,headers:_t.headers}}if($t===ResultType.error)return{type:$t,error:_t};if(isDeferredData(_t)){var Rt,It;return{type:ResultType.deferred,deferredData:_t,statusCode:(Rt=_t.init)==null?void 0:Rt.status,headers:((It=_t.init)==null?void 0:It.headers)&&new Headers(_t.init.headers)}}return{type:ResultType.data,data:_t}}function createClientSideRequest(_e,et,rt,st){let ct=_e.createURL(stripHashFromPath(et)).toString(),ut={signal:rt};if(st&&isMutationMethod(st.formMethod)){let{formMethod:ft,formEncType:gt}=st;ut.method=ft.toUpperCase(),gt==="application/json"?(ut.headers=new Headers({"Content-Type":gt}),ut.body=JSON.stringify(st.json)):gt==="text/plain"?ut.body=st.text:gt==="application/x-www-form-urlencoded"&&st.formData?ut.body=convertFormDataToSearchParams(st.formData):ut.body=st.formData}return new Request(ct,ut)}function convertFormDataToSearchParams(_e){let et=new URLSearchParams;for(let[rt,st]of _e.entries())et.append(rt,typeof st=="string"?st:st.name);return et}function convertSearchParamsToFormData(_e){let et=new FormData;for(let[rt,st]of _e.entries())et.append(rt,st);return et}function processRouteLoaderData(_e,et,rt,st,ct){let ut={},ft=null,gt,xt=!1,$t={};return rt.forEach((_t,wt)=>{let Tt=et[wt].route.id;if(invariant$3(!isRedirectResult(_t),"Cannot handle redirect results in processLoaderData"),isErrorResult(_t)){let Rt=findNearestBoundary(_e,Tt),It=_t.error;st&&(It=Object.values(st)[0],st=void 0),ft=ft||{},ft[Rt.route.id]==null&&(ft[Rt.route.id]=It),ut[Tt]=void 0,xt||(xt=!0,gt=isRouteErrorResponse(_t.error)?_t.error.status:500),_t.headers&&($t[Tt]=_t.headers)}else isDeferredResult(_t)?(ct.set(Tt,_t.deferredData),ut[Tt]=_t.deferredData.data):ut[Tt]=_t.data,_t.statusCode!=null&&_t.statusCode!==200&&!xt&&(gt=_t.statusCode),_t.headers&&($t[Tt]=_t.headers)}),st&&(ft=st,ut[Object.keys(st)[0]]=void 0),{loaderData:ut,errors:ft,statusCode:gt||200,loaderHeaders:$t}}function processLoaderData(_e,et,rt,st,ct,ut,ft,gt){let{loaderData:xt,errors:$t}=processRouteLoaderData(et,rt,st,ct,gt);for(let _t=0;_tst.route.id===et)+1):[..._e]).reverse().find(st=>st.route.hasErrorBoundary===!0)||_e[0]}function getShortCircuitMatches(_e){let et=_e.length===1?_e[0]:_e.find(rt=>rt.index||!rt.path||rt.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:et}],route:et}}function getInternalRouterError(_e,et){let{pathname:rt,routeId:st,method:ct,type:ut}=et===void 0?{}:et,ft="Unknown Server Error",gt="Unknown @remix-run/router error";return _e===400?(ft="Bad Request",ct&&rt&&st?gt="You made a "+ct+' request to "'+rt+'" but '+('did not provide a `loader` for route "'+st+'", ')+"so there is no way to handle the request.":ut==="defer-action"?gt="defer() is not supported in actions":ut==="invalid-body"&&(gt="Unable to encode submission body")):_e===403?(ft="Forbidden",gt='Route "'+st+'" does not match URL "'+rt+'"'):_e===404?(ft="Not Found",gt='No route matches URL "'+rt+'"'):_e===405&&(ft="Method Not Allowed",ct&&rt&&st?gt="You made a "+ct.toUpperCase()+' request to "'+rt+'" but '+('did not provide an `action` for route "'+st+'", ')+"so there is no way to handle the request.":ct&&(gt='Invalid request method "'+ct.toUpperCase()+'"')),new ErrorResponseImpl(_e||500,ft,new Error(gt),!0)}function findRedirect(_e){for(let et=_e.length-1;et>=0;et--){let rt=_e[et];if(isRedirectResult(rt))return{result:rt,idx:et}}}function stripHashFromPath(_e){let et=typeof _e=="string"?parsePath(_e):_e;return createPath(_extends$9({},et,{hash:""}))}function isHashChangeOnly(_e,et){return _e.pathname!==et.pathname||_e.search!==et.search?!1:_e.hash===""?et.hash!=="":_e.hash===et.hash?!0:et.hash!==""}function isDeferredResult(_e){return _e.type===ResultType.deferred}function isErrorResult(_e){return _e.type===ResultType.error}function isRedirectResult(_e){return(_e&&_e.type)===ResultType.redirect}function isDeferredData(_e){let et=_e;return et&&typeof et=="object"&&typeof et.data=="object"&&typeof et.subscribe=="function"&&typeof et.cancel=="function"&&typeof et.resolveData=="function"}function isResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.headers=="object"&&typeof _e.body<"u"}function isValidMethod(_e){return validRequestMethods.has(_e.toLowerCase())}function isMutationMethod(_e){return validMutationMethods.has(_e.toLowerCase())}async function resolveDeferredResults(_e,et,rt,st,ct,ut){for(let ft=0;ftwt.route.id===xt.route.id),_t=$t!=null&&!isNewRouteInstance($t,xt)&&(ut&&ut[xt.route.id])!==void 0;if(isDeferredResult(gt)&&(ct||_t)){let wt=st[ft];invariant$3(wt,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(gt,wt,ct).then(Tt=>{Tt&&(rt[ft]=Tt||rt[ft])})}}}async function resolveDeferredData(_e,et,rt){if(rt===void 0&&(rt=!1),!await _e.deferredData.resolveData(et)){if(rt)try{return{type:ResultType.data,data:_e.deferredData.unwrappedData}}catch(ct){return{type:ResultType.error,error:ct}}return{type:ResultType.data,data:_e.deferredData.data}}}function hasNakedIndexQuery(_e){return new URLSearchParams(_e).getAll("index").some(et=>et==="")}function getTargetMatch(_e,et){let rt=typeof et=="string"?parsePath(et).search:et.search;if(_e[_e.length-1].route.index&&hasNakedIndexQuery(rt||""))return _e[_e.length-1];let st=getPathContributingMatches(_e);return st[st.length-1]}function getSubmissionFromNavigation(_e){let{formMethod:et,formAction:rt,formEncType:st,text:ct,formData:ut,json:ft}=_e;if(!(!et||!rt||!st)){if(ct!=null)return{formMethod:et,formAction:rt,formEncType:st,formData:void 0,json:void 0,text:ct};if(ut!=null)return{formMethod:et,formAction:rt,formEncType:st,formData:ut,json:void 0,text:void 0};if(ft!==void 0)return{formMethod:et,formAction:rt,formEncType:st,formData:void 0,json:ft,text:void 0}}}function getLoadingNavigation(_e,et){return et?{state:"loading",location:_e,formMethod:et.formMethod,formAction:et.formAction,formEncType:et.formEncType,formData:et.formData,json:et.json,text:et.text}:{state:"loading",location:_e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(_e,et){return{state:"submitting",location:_e,formMethod:et.formMethod,formAction:et.formAction,formEncType:et.formEncType,formData:et.formData,json:et.json,text:et.text}}function getLoadingFetcher(_e,et){return _e?{state:"loading",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:et}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:et}}function getSubmittingFetcher(_e,et){return{state:"submitting",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:et?et.data:void 0}}function getDoneFetcher(_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 restoreAppliedTransitions(_e,et){try{let rt=_e.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);if(rt){let st=JSON.parse(rt);for(let[ct,ut]of Object.entries(st||{}))ut&&Array.isArray(ut)&&et.set(ct,new Set(ut||[]))}}catch{}}function persistAppliedTransitions(_e,et){if(et.size>0){let rt={};for(let[st,ct]of et)rt[st]=[...ct];try{_e.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY,JSON.stringify(rt))}catch(st){warning$7(!1,"Failed to save applied view transitions in sessionStorage ("+st+").")}}}/** + */function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"u")throw new Error(et)}function warning$7(_e,et){if(!_e){typeof console<"u"&&console.warn(et);try{throw new Error(et)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(_e,et){return{usr:_e.state,key:_e.key,idx:et}}function createLocation$1(_e,et,rt,st){return rt===void 0&&(rt=null),_extends$9({pathname:typeof _e=="string"?_e:_e.pathname,search:"",hash:""},typeof et=="string"?parsePath(et):et,{state:rt,key:et&&et.key||st||createKey()})}function createPath(_e){let{pathname:et="/",search:rt="",hash:st=""}=_e;return rt&&rt!=="?"&&(et+=rt.charAt(0)==="?"?rt:"?"+rt),st&&st!=="#"&&(et+=st.charAt(0)==="#"?st:"#"+st),et}function parsePath(_e){let et={};if(_e){let rt=_e.indexOf("#");rt>=0&&(et.hash=_e.substr(rt),_e=_e.substr(0,rt));let st=_e.indexOf("?");st>=0&&(et.search=_e.substr(st),_e=_e.substr(0,st)),_e&&(et.pathname=_e)}return et}function getUrlBasedHistory(_e,et,rt,st){st===void 0&&(st={});let{window:ct=document.defaultView,v5Compat:ut=!1}=st,ft=ct.history,gt=Action$1.Pop,xt=null,$t=_t();$t==null&&($t=0,ft.replaceState(_extends$9({},ft.state,{idx:$t}),""));function _t(){return(ft.state||{idx:null}).idx}function wt(){gt=Action$1.Pop;let jt=_t(),Nt=jt==null?null:jt-$t;$t=jt,xt&&xt({action:gt,location:At.location,delta:Nt})}function Tt(jt,Nt){gt=Action$1.Push;let kt=createLocation$1(At.location,jt,Nt);rt&&rt(kt,jt),$t=_t()+1;let Ft=getHistoryState(kt,$t),Ht=At.createHref(kt);try{ft.pushState(Ft,"",Ht)}catch(Wt){if(Wt instanceof DOMException&&Wt.name==="DataCloneError")throw Wt;ct.location.assign(Ht)}ut&&xt&&xt({action:gt,location:At.location,delta:1})}function Rt(jt,Nt){gt=Action$1.Replace;let kt=createLocation$1(At.location,jt,Nt);rt&&rt(kt,jt),$t=_t();let Ft=getHistoryState(kt,$t),Ht=At.createHref(kt);ft.replaceState(Ft,"",Ht),ut&&xt&&xt({action:gt,location:At.location,delta:0})}function It(jt){let Nt=ct.location.origin!=="null"?ct.location.origin:ct.location.href,kt=typeof jt=="string"?jt:createPath(jt);return kt=kt.replace(/ $/,"%20"),invariant$3(Nt,"No window.location.(origin|href) available to create URL for href: "+kt),new URL(kt,Nt)}let At={get action(){return gt},get location(){return _e(ct,ft)},listen(jt){if(xt)throw new Error("A history only accepts one active listener");return ct.addEventListener(PopStateEventType,wt),xt=jt,()=>{ct.removeEventListener(PopStateEventType,wt),xt=null}},createHref(jt){return et(ct,jt)},createURL:It,encodeLocation(jt){let Nt=It(jt);return{pathname:Nt.pathname,search:Nt.search,hash:Nt.hash}},push:Tt,replace:Rt,go(jt){return ft.go(jt)}};return At}var ResultType;(function(_e){_e.data="data",_e.deferred="deferred",_e.redirect="redirect",_e.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(_e){return _e.index===!0}function convertRoutesToDataRoutes(_e,et,rt,st){return rt===void 0&&(rt=[]),st===void 0&&(st={}),_e.map((ct,ut)=>{let ft=[...rt,ut],gt=typeof ct.id=="string"?ct.id:ft.join("-");if(invariant$3(ct.index!==!0||!ct.children,"Cannot specify children on an index route"),invariant$3(!st[gt],'Found a route id collision on id "'+gt+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(ct)){let xt=_extends$9({},ct,et(ct),{id:gt});return st[gt]=xt,xt}else{let xt=_extends$9({},ct,et(ct),{id:gt,children:void 0});return st[gt]=xt,ct.children&&(xt.children=convertRoutesToDataRoutes(ct.children,et,ft,st)),xt}})}function matchRoutes(_e,et,rt){rt===void 0&&(rt="/");let st=typeof et=="string"?parsePath(et):et,ct=stripBasename(st.pathname||"/",rt);if(ct==null)return null;let ut=flattenRoutes(_e);rankRouteBranches(ut);let ft=null;for(let gt=0;ft==null&>{let xt={relativePath:gt===void 0?ut.path||"":gt,caseSensitive:ut.caseSensitive===!0,childrenIndex:ft,route:ut};xt.relativePath.startsWith("/")&&(invariant$3(xt.relativePath.startsWith(st),'Absolute route path "'+xt.relativePath+'" nested under path '+('"'+st+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),xt.relativePath=xt.relativePath.slice(st.length));let $t=joinPaths([st,xt.relativePath]),_t=rt.concat(xt);ut.children&&ut.children.length>0&&(invariant$3(ut.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+$t+'".')),flattenRoutes(ut.children,et,_t,$t)),!(ut.path==null&&!ut.index)&&et.push({path:$t,score:computeScore($t,ut.index),routesMeta:_t})};return _e.forEach((ut,ft)=>{var gt;if(ut.path===""||!((gt=ut.path)!=null&>.includes("?")))ct(ut,ft);else for(let xt of explodeOptionalSegments(ut.path))ct(ut,ft,xt)}),et}function explodeOptionalSegments(_e){let et=_e.split("/");if(et.length===0)return[];let[rt,...st]=et,ct=rt.endsWith("?"),ut=rt.replace(/\?$/,"");if(st.length===0)return ct?[ut,""]:[ut];let ft=explodeOptionalSegments(st.join("/")),gt=[];return gt.push(...ft.map(xt=>xt===""?ut:[ut,xt].join("/"))),ct&>.push(...ft),gt.map(xt=>_e.startsWith("/")&&xt===""?"/":xt)}function rankRouteBranches(_e){_e.sort((et,rt)=>et.score!==rt.score?rt.score-et.score:compareIndexes(et.routesMeta.map(st=>st.childrenIndex),rt.routesMeta.map(st=>st.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=_e=>_e==="*";function computeScore(_e,et){let rt=_e.split("/"),st=rt.length;return rt.some(isSplat)&&(st+=splatPenalty),et&&(st+=indexRouteValue),rt.filter(ct=>!isSplat(ct)).reduce((ct,ut)=>ct+(paramRe.test(ut)?dynamicSegmentValue:ut===""?emptySegmentValue:staticSegmentValue),st)}function compareIndexes(_e,et){return _e.length===et.length&&_e.slice(0,-1).every((st,ct)=>st===et[ct])?_e[_e.length-1]-et[et.length-1]:0}function matchRouteBranch(_e,et){let{routesMeta:rt}=_e,st={},ct="/",ut=[];for(let ft=0;ft{let{paramName:Tt,isOptional:Rt}=_t;if(Tt==="*"){let At=gt[wt]||"";ft=ut.slice(0,ut.length-At.length).replace(/(.)\/+$/,"$1")}const It=gt[wt];return Rt&&!It?$t[Tt]=void 0:$t[Tt]=(It||"").replace(/%2F/g,"/"),$t},{}),pathname:ut,pathnameBase:ft,pattern:_e}}function compilePath(_e,et,rt){et===void 0&&(et=!1),rt===void 0&&(rt=!0),warning$7(_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 st=[],ct="^"+_e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(ft,gt,xt)=>(st.push({paramName:gt,isOptional:xt!=null}),xt?"/?([^\\/]+)?":"/([^\\/]+)"));return _e.endsWith("*")?(st.push({paramName:"*"}),ct+=_e==="*"||_e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):rt?ct+="\\/*$":_e!==""&&_e!=="/"&&(ct+="(?:(?=\\/|$))"),[new RegExp(ct,et?void 0:"i"),st]}function decodePath(_e){try{return _e.split("/").map(et=>decodeURIComponent(et).replace(/\//g,"%2F")).join("/")}catch(et){return warning$7(!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 ("+et+").")),_e}}function stripBasename(_e,et){if(et==="/")return _e;if(!_e.toLowerCase().startsWith(et.toLowerCase()))return null;let rt=et.endsWith("/")?et.length-1:et.length,st=_e.charAt(rt);return st&&st!=="/"?null:_e.slice(rt)||"/"}function resolvePath(_e,et){et===void 0&&(et="/");let{pathname:rt,search:st="",hash:ct=""}=typeof _e=="string"?parsePath(_e):_e;return{pathname:rt?rt.startsWith("/")?rt:resolvePathname(rt,et):et,search:normalizeSearch(st),hash:normalizeHash(ct)}}function resolvePathname(_e,et){let rt=et.replace(/\/+$/,"").split("/");return _e.split("/").forEach(ct=>{ct===".."?rt.length>1&&rt.pop():ct!=="."&&rt.push(ct)}),rt.length>1?rt.join("/"):"/"}function getInvalidPathError(_e,et,rt,st){return"Cannot include a '"+_e+"' character in a manually specified "+("`to."+et+"` field ["+JSON.stringify(st)+"]. Please separate it out to the ")+("`to."+rt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(_e){return _e.filter((et,rt)=>rt===0||et.route.path&&et.route.path.length>0)}function getResolveToMatches(_e,et){let rt=getPathContributingMatches(_e);return et?rt.map((st,ct)=>ct===_e.length-1?st.pathname:st.pathnameBase):rt.map(st=>st.pathnameBase)}function resolveTo(_e,et,rt,st){st===void 0&&(st=!1);let ct;typeof _e=="string"?ct=parsePath(_e):(ct=_extends$9({},_e),invariant$3(!ct.pathname||!ct.pathname.includes("?"),getInvalidPathError("?","pathname","search",ct)),invariant$3(!ct.pathname||!ct.pathname.includes("#"),getInvalidPathError("#","pathname","hash",ct)),invariant$3(!ct.search||!ct.search.includes("#"),getInvalidPathError("#","search","hash",ct)));let ut=_e===""||ct.pathname==="",ft=ut?"/":ct.pathname,gt;if(ft==null)gt=rt;else{let wt=et.length-1;if(!st&&ft.startsWith("..")){let Tt=ft.split("/");for(;Tt[0]==="..";)Tt.shift(),wt-=1;ct.pathname=Tt.join("/")}gt=wt>=0?et[wt]:"/"}let xt=resolvePath(ct,gt),$t=ft&&ft!=="/"&&ft.endsWith("/"),_t=(ut||ft===".")&&rt.endsWith("/");return!xt.pathname.endsWith("/")&&($t||_t)&&(xt.pathname+="/"),xt}const joinPaths=_e=>_e.join("/").replace(/\/\/+/g,"/"),normalizePathname=_e=>_e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=_e=>!_e||_e==="?"?"":_e.startsWith("?")?_e:"?"+_e,normalizeHash=_e=>!_e||_e==="#"?"":_e.startsWith("#")?_e:"#"+_e;class ErrorResponseImpl{constructor(et,rt,st,ct){ct===void 0&&(ct=!1),this.status=et,this.statusText=rt||"",this.internal=ct,st instanceof Error?(this.data=st.toString(),this.error=st):this.data=st}}function isRouteErrorResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.internal=="boolean"&&"data"in _e}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=_e=>({hasErrorBoundary:!!_e.hasErrorBoundary}),TRANSITIONS_STORAGE_KEY="remix-router-transitions";function createRouter(_e){const et=_e.window?_e.window:typeof window<"u"?window:void 0,rt=typeof et<"u"&&typeof et.document<"u"&&typeof et.document.createElement<"u",st=!rt;invariant$3(_e.routes.length>0,"You must provide a non-empty routes array to createRouter");let ct;if(_e.mapRouteProperties)ct=_e.mapRouteProperties;else if(_e.detectErrorBoundary){let pn=_e.detectErrorBoundary;ct=gn=>({hasErrorBoundary:pn(gn)})}else ct=defaultMapRouteProperties;let ut={},ft=convertRoutesToDataRoutes(_e.routes,ct,void 0,ut),gt,xt=_e.basename||"/",$t=_extends$9({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},_e.future),_t=null,wt=new Set,Tt=null,Rt=null,It=null,At=_e.hydrationData!=null,jt=matchRoutes(ft,_e.history.location,xt),Nt=null;if(jt==null){let pn=getInternalRouterError(404,{pathname:_e.history.location.pathname}),{matches:gn,route:yn}=getShortCircuitMatches(ft);jt=gn,Nt={[yn.id]:pn}}let kt,Ft=jt.some(pn=>pn.route.lazy),Ht=jt.some(pn=>pn.route.loader);if(Ft)kt=!1;else if(!Ht)kt=!0;else if($t.v7_partialHydration){let pn=_e.hydrationData?_e.hydrationData.loaderData:null,gn=_e.hydrationData?_e.hydrationData.errors:null;kt=jt.every(yn=>yn.route.loader&&yn.route.loader.hydrate!==!0&&(pn&&pn[yn.route.id]!==void 0||gn&&gn[yn.route.id]!==void 0))}else kt=_e.hydrationData!=null;let Wt,Vt={historyAction:_e.history.action,location:_e.history.location,matches:jt,initialized:kt,navigation:IDLE_NAVIGATION,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||Nt,fetchers:new Map,blockers:new Map},qt=Action$1.Pop,Xt=!1,Gt,Zt=!1,er=new Map,lr=null,cr=!1,ur=!1,fr=[],hr=[],pr=new Map,dr=0,yr=-1,Sr=new Map,br=new Set,mr=new Map,Er=new Map,Tr=new Set,Mr=new Map,Or=new Map,wr=!1;function Cr(){if(_t=_e.history.listen(pn=>{let{action:gn,location:yn,delta:_n}=pn;if(wr){wr=!1;return}warning$7(Or.size===0||_n!=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 Tn=Cn({currentLocation:Vt.location,nextLocation:yn,historyAction:gn});if(Tn&&_n!=null){wr=!0,_e.history.go(_n*-1),hn(Tn,{state:"blocked",location:yn,proceed(){hn(Tn,{state:"proceeding",proceed:void 0,reset:void 0,location:yn}),_e.history.go(_n)},reset(){let Nn=new Map(Vt.blockers);Nn.set(Tn,IDLE_BLOCKER),Pr({blockers:Nn})}});return}return _r(gn,yn)}),rt){restoreAppliedTransitions(et,er);let pn=()=>persistAppliedTransitions(et,er);et.addEventListener("pagehide",pn),lr=()=>et.removeEventListener("pagehide",pn)}return Vt.initialized||_r(Action$1.Pop,Vt.location,{initialHydration:!0}),Wt}function Nr(){_t&&_t(),lr&&lr(),wt.clear(),Gt&&Gt.abort(),Vt.fetchers.forEach((pn,gn)=>gr(gn)),Vt.blockers.forEach((pn,gn)=>mn(gn))}function Rr(pn){return wt.add(pn),()=>wt.delete(pn)}function Pr(pn,gn){gn===void 0&&(gn={}),Vt=_extends$9({},Vt,pn);let yn=[],_n=[];$t.v7_fetcherPersist&&Vt.fetchers.forEach((Tn,Nn)=>{Tn.state==="idle"&&(Tr.has(Nn)?_n.push(Nn):yn.push(Nn))}),[...wt].forEach(Tn=>Tn(Vt,{deletedFetchers:_n,unstable_viewTransitionOpts:gn.viewTransitionOpts,unstable_flushSync:gn.flushSync===!0})),$t.v7_fetcherPersist&&(yn.forEach(Tn=>Vt.fetchers.delete(Tn)),_n.forEach(Tn=>gr(Tn)))}function jr(pn,gn,yn){var _n,Tn;let{flushSync:Nn}=yn===void 0?{}:yn,On=Vt.actionData!=null&&Vt.navigation.formMethod!=null&&isMutationMethod(Vt.navigation.formMethod)&&Vt.navigation.state==="loading"&&((_n=pn.state)==null?void 0:_n._isRedirect)!==!0,$n;gn.actionData?Object.keys(gn.actionData).length>0?$n=gn.actionData:$n=null:On?$n=Vt.actionData:$n=null;let Sn=gn.loaderData?mergeLoaderData(Vt.loaderData,gn.loaderData,gn.matches||[],gn.errors):Vt.loaderData,xn=Vt.blockers;xn.size>0&&(xn=new Map(xn),xn.forEach((Hn,qn)=>xn.set(qn,IDLE_BLOCKER)));let In=Xt===!0||Vt.navigation.formMethod!=null&&isMutationMethod(Vt.navigation.formMethod)&&((Tn=pn.state)==null?void 0:Tn._isRedirect)!==!0;gt&&(ft=gt,gt=void 0),cr||qt===Action$1.Pop||(qt===Action$1.Push?_e.history.push(pn,pn.state):qt===Action$1.Replace&&_e.history.replace(pn,pn.state));let jn;if(qt===Action$1.Pop){let Hn=er.get(Vt.location.pathname);Hn&&Hn.has(pn.pathname)?jn={currentLocation:Vt.location,nextLocation:pn}:er.has(pn.pathname)&&(jn={currentLocation:pn,nextLocation:Vt.location})}else if(Zt){let Hn=er.get(Vt.location.pathname);Hn?Hn.add(pn.pathname):(Hn=new Set([pn.pathname]),er.set(Vt.location.pathname,Hn)),jn={currentLocation:Vt.location,nextLocation:pn}}Pr(_extends$9({},gn,{actionData:$n,loaderData:Sn,historyAction:qt,location:pn,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:Gn(pn,gn.matches||Vt.matches),preventScrollReset:In,blockers:xn}),{viewTransitionOpts:jn,flushSync:Nn===!0}),qt=Action$1.Pop,Xt=!1,Zt=!1,cr=!1,ur=!1,fr=[],hr=[]}async function kr(pn,gn){if(typeof pn=="number"){_e.history.go(pn);return}let yn=normalizeTo(Vt.location,Vt.matches,xt,$t.v7_prependBasename,pn,$t.v7_relativeSplatPath,gn==null?void 0:gn.fromRouteId,gn==null?void 0:gn.relative),{path:_n,submission:Tn,error:Nn}=normalizeNavigateOptions($t.v7_normalizeFormMethod,!1,yn,gn),On=Vt.location,$n=createLocation$1(Vt.location,_n,gn&&gn.state);$n=_extends$9({},$n,_e.history.encodeLocation($n));let Sn=gn&&gn.replace!=null?gn.replace:void 0,xn=Action$1.Push;Sn===!0?xn=Action$1.Replace:Sn===!1||Tn!=null&&isMutationMethod(Tn.formMethod)&&Tn.formAction===Vt.location.pathname+Vt.location.search&&(xn=Action$1.Replace);let In=gn&&"preventScrollReset"in gn?gn.preventScrollReset===!0:void 0,jn=(gn&&gn.unstable_flushSync)===!0,Hn=Cn({currentLocation:On,nextLocation:$n,historyAction:xn});if(Hn){hn(Hn,{state:"blocked",location:$n,proceed(){hn(Hn,{state:"proceeding",proceed:void 0,reset:void 0,location:$n}),kr(pn,gn)},reset(){let qn=new Map(Vt.blockers);qn.set(Hn,IDLE_BLOCKER),Pr({blockers:qn})}});return}return await _r(xn,$n,{submission:Tn,pendingError:Nn,preventScrollReset:In,replace:gn&&gn.replace,enableViewTransition:gn&&gn.unstable_viewTransition,flushSync:jn})}function Fr(){if(Qr(),Pr({revalidation:"loading"}),Vt.navigation.state!=="submitting"){if(Vt.navigation.state==="idle"){_r(Vt.historyAction,Vt.location,{startUninterruptedRevalidation:!0});return}_r(qt||Vt.historyAction,Vt.navigation.location,{overrideNavigation:Vt.navigation})}}async function _r(pn,gn,yn){Gt&&Gt.abort(),Gt=null,qt=pn,cr=(yn&&yn.startUninterruptedRevalidation)===!0,Yn(Vt.location,Vt.matches),Xt=(yn&&yn.preventScrollReset)===!0,Zt=(yn&&yn.enableViewTransition)===!0;let _n=gt||ft,Tn=yn&&yn.overrideNavigation,Nn=matchRoutes(_n,gn,xt),On=(yn&&yn.flushSync)===!0;if(!Nn){let qn=getInternalRouterError(404,{pathname:gn.pathname}),{matches:Jn,route:ao}=getShortCircuitMatches(_n);Rn(),jr(gn,{matches:Jn,loaderData:{},errors:{[ao.id]:qn}},{flushSync:On});return}if(Vt.initialized&&!ur&&isHashChangeOnly(Vt.location,gn)&&!(yn&&yn.submission&&isMutationMethod(yn.submission.formMethod))){jr(gn,{matches:Nn},{flushSync:On});return}Gt=new AbortController;let $n=createClientSideRequest(_e.history,gn,Gt.signal,yn&&yn.submission),Sn,xn;if(yn&&yn.pendingError)xn={[findNearestBoundary(Nn).route.id]:yn.pendingError};else if(yn&&yn.submission&&isMutationMethod(yn.submission.formMethod)){let qn=await Br($n,gn,yn.submission,Nn,{replace:yn.replace,flushSync:On});if(qn.shortCircuited)return;Sn=qn.pendingActionData,xn=qn.pendingActionError,Tn=getLoadingNavigation(gn,yn.submission),On=!1,$n=new Request($n.url,{signal:$n.signal})}let{shortCircuited:In,loaderData:jn,errors:Hn}=await Dr($n,gn,Nn,Tn,yn&&yn.submission,yn&&yn.fetcherSubmission,yn&&yn.replace,yn&&yn.initialHydration===!0,On,Sn,xn);In||(Gt=null,jr(gn,_extends$9({matches:Nn},Sn?{actionData:Sn}:{},{loaderData:jn,errors:Hn})))}async function Br(pn,gn,yn,_n,Tn){Tn===void 0&&(Tn={}),Qr();let Nn=getSubmittingNavigation(gn,yn);Pr({navigation:Nn},{flushSync:Tn.flushSync===!0});let On,$n=getTargetMatch(_n,gn);if(!$n.route.action&&!$n.route.lazy)On={type:ResultType.error,error:getInternalRouterError(405,{method:pn.method,pathname:gn.pathname,routeId:$n.route.id})};else if(On=await callLoaderOrAction("action",pn,$n,_n,ut,ct,xt,$t.v7_relativeSplatPath),pn.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(On)){let Sn;return Tn&&Tn.replace!=null?Sn=Tn.replace:Sn=On.location===Vt.location.pathname+Vt.location.search,await Vr(Vt,On,{submission:yn,replace:Sn}),{shortCircuited:!0}}if(isErrorResult(On)){let Sn=findNearestBoundary(_n,$n.route.id);return(Tn&&Tn.replace)!==!0&&(qt=Action$1.Push),{pendingActionData:{},pendingActionError:{[Sn.route.id]:On.error}}}if(isDeferredResult(On))throw getInternalRouterError(400,{type:"defer-action"});return{pendingActionData:{[$n.route.id]:On.data}}}async function Dr(pn,gn,yn,_n,Tn,Nn,On,$n,Sn,xn,In){let jn=_n||getLoadingNavigation(gn,Tn),Hn=Tn||Nn||getSubmissionFromNavigation(jn),qn=gt||ft,[Jn,ao]=getMatchesToLoad(_e.history,Vt,yn,Hn,gn,$t.v7_partialHydration&&$n===!0,ur,fr,hr,Tr,mr,br,qn,xt,xn,In);if(Rn(Kn=>!(yn&&yn.some(co=>co.route.id===Kn))||Jn&&Jn.some(co=>co.route.id===Kn)),yr=++dr,Jn.length===0&&ao.length===0){let Kn=Wr();return jr(gn,_extends$9({matches:yn,loaderData:{},errors:In||null},xn?{actionData:xn}:{},Kn?{fetchers:new Map(Vt.fetchers)}:{}),{flushSync:Sn}),{shortCircuited:!0}}if(!cr&&(!$t.v7_partialHydration||!$n)){ao.forEach(co=>{let uo=Vt.fetchers.get(co.key),vo=getLoadingFetcher(void 0,uo?uo.data:void 0);Vt.fetchers.set(co.key,vo)});let Kn=xn||Vt.actionData;Pr(_extends$9({navigation:jn},Kn?Object.keys(Kn).length===0?{actionData:null}:{actionData:Kn}:{},ao.length>0?{fetchers:new Map(Vt.fetchers)}:{}),{flushSync:Sn})}ao.forEach(Kn=>{pr.has(Kn.key)&&zr(Kn.key),Kn.controller&&pr.set(Kn.key,Kn.controller)});let Vn=()=>ao.forEach(Kn=>zr(Kn.key));Gt&&Gt.signal.addEventListener("abort",Vn);let{results:Wn,loaderResults:zn,fetcherResults:wn}=await ln(Vt.matches,yn,Jn,ao,pn);if(pn.signal.aborted)return{shortCircuited:!0};Gt&&Gt.signal.removeEventListener("abort",Vn),ao.forEach(Kn=>pr.delete(Kn.key));let cn=findRedirect(Wn);if(cn){if(cn.idx>=Jn.length){let Kn=ao[cn.idx-Jn.length].key;br.add(Kn)}return await Vr(Vt,cn.result,{replace:On}),{shortCircuited:!0}}let{loaderData:Pn,errors:An}=processLoaderData(Vt,yn,Jn,zn,In,ao,wn,Mr);Mr.forEach((Kn,co)=>{Kn.subscribe(uo=>{(uo||Kn.done)&&Mr.delete(co)})});let Xn=Wr(),eo=Gr(yr),ro=Xn||eo||ao.length>0;return _extends$9({loaderData:Pn,errors:An},ro?{fetchers:new Map(Vt.fetchers)}:{})}function Xr(pn,gn,yn,_n){if(st)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.");pr.has(pn)&&zr(pn);let Tn=(_n&&_n.unstable_flushSync)===!0,Nn=gt||ft,On=normalizeTo(Vt.location,Vt.matches,xt,$t.v7_prependBasename,yn,$t.v7_relativeSplatPath,gn,_n==null?void 0:_n.relative),$n=matchRoutes(Nn,On,xt);if(!$n){vn(pn,gn,getInternalRouterError(404,{pathname:On}),{flushSync:Tn});return}let{path:Sn,submission:xn,error:In}=normalizeNavigateOptions($t.v7_normalizeFormMethod,!0,On,_n);if(In){vn(pn,gn,In,{flushSync:Tn});return}let jn=getTargetMatch($n,Sn);if(Xt=(_n&&_n.preventScrollReset)===!0,xn&&isMutationMethod(xn.formMethod)){Kr(pn,gn,Sn,jn,$n,Tn,xn);return}mr.set(pn,{routeId:gn,path:Sn}),Hr(pn,gn,Sn,jn,$n,Tn,xn)}async function Kr(pn,gn,yn,_n,Tn,Nn,On){if(Qr(),mr.delete(pn),!_n.route.action&&!_n.route.lazy){let co=getInternalRouterError(405,{method:On.formMethod,pathname:yn,routeId:gn});vn(pn,gn,co,{flushSync:Nn});return}let $n=Vt.fetchers.get(pn);Zr(pn,getSubmittingFetcher(On,$n),{flushSync:Nn});let Sn=new AbortController,xn=createClientSideRequest(_e.history,yn,Sn.signal,On);pr.set(pn,Sn);let In=dr,jn=await callLoaderOrAction("action",xn,_n,Tn,ut,ct,xt,$t.v7_relativeSplatPath);if(xn.signal.aborted){pr.get(pn)===Sn&&pr.delete(pn);return}if($t.v7_fetcherPersist&&Tr.has(pn)){if(isRedirectResult(jn)||isErrorResult(jn)){Zr(pn,getDoneFetcher(void 0));return}}else{if(isRedirectResult(jn))if(pr.delete(pn),yr>In){Zr(pn,getDoneFetcher(void 0));return}else return br.add(pn),Zr(pn,getLoadingFetcher(On)),Vr(Vt,jn,{fetcherSubmission:On});if(isErrorResult(jn)){vn(pn,gn,jn.error);return}}if(isDeferredResult(jn))throw getInternalRouterError(400,{type:"defer-action"});let Hn=Vt.navigation.location||Vt.location,qn=createClientSideRequest(_e.history,Hn,Sn.signal),Jn=gt||ft,ao=Vt.navigation.state!=="idle"?matchRoutes(Jn,Vt.navigation.location,xt):Vt.matches;invariant$3(ao,"Didn't find any matches after fetcher action");let Vn=++dr;Sr.set(pn,Vn);let Wn=getLoadingFetcher(On,jn.data);Vt.fetchers.set(pn,Wn);let[zn,wn]=getMatchesToLoad(_e.history,Vt,ao,On,Hn,!1,ur,fr,hr,Tr,mr,br,Jn,xt,{[_n.route.id]:jn.data},void 0);wn.filter(co=>co.key!==pn).forEach(co=>{let uo=co.key,vo=Vt.fetchers.get(uo),Bo=getLoadingFetcher(void 0,vo?vo.data:void 0);Vt.fetchers.set(uo,Bo),pr.has(uo)&&zr(uo),co.controller&&pr.set(uo,co.controller)}),Pr({fetchers:new Map(Vt.fetchers)});let cn=()=>wn.forEach(co=>zr(co.key));Sn.signal.addEventListener("abort",cn);let{results:Pn,loaderResults:An,fetcherResults:Xn}=await ln(Vt.matches,ao,zn,wn,qn);if(Sn.signal.aborted)return;Sn.signal.removeEventListener("abort",cn),Sr.delete(pn),pr.delete(pn),wn.forEach(co=>pr.delete(co.key));let eo=findRedirect(Pn);if(eo){if(eo.idx>=zn.length){let co=wn[eo.idx-zn.length].key;br.add(co)}return Vr(Vt,eo.result)}let{loaderData:ro,errors:Kn}=processLoaderData(Vt,Vt.matches,zn,An,void 0,wn,Xn,Mr);if(Vt.fetchers.has(pn)){let co=getDoneFetcher(jn.data);Vt.fetchers.set(pn,co)}Gr(Vn),Vt.navigation.state==="loading"&&Vn>yr?(invariant$3(qt,"Expected pending action"),Gt&&Gt.abort(),jr(Vt.navigation.location,{matches:ao,loaderData:ro,errors:Kn,fetchers:new Map(Vt.fetchers)})):(Pr({errors:Kn,loaderData:mergeLoaderData(Vt.loaderData,ro,ao,Kn),fetchers:new Map(Vt.fetchers)}),ur=!1)}async function Hr(pn,gn,yn,_n,Tn,Nn,On){let $n=Vt.fetchers.get(pn);Zr(pn,getLoadingFetcher(On,$n?$n.data:void 0),{flushSync:Nn});let Sn=new AbortController,xn=createClientSideRequest(_e.history,yn,Sn.signal);pr.set(pn,Sn);let In=dr,jn=await callLoaderOrAction("loader",xn,_n,Tn,ut,ct,xt,$t.v7_relativeSplatPath);if(isDeferredResult(jn)&&(jn=await resolveDeferredData(jn,xn.signal,!0)||jn),pr.get(pn)===Sn&&pr.delete(pn),!xn.signal.aborted){if(Tr.has(pn)){Zr(pn,getDoneFetcher(void 0));return}if(isRedirectResult(jn))if(yr>In){Zr(pn,getDoneFetcher(void 0));return}else{br.add(pn),await Vr(Vt,jn);return}if(isErrorResult(jn)){vn(pn,gn,jn.error);return}invariant$3(!isDeferredResult(jn),"Unhandled fetcher deferred data"),Zr(pn,getDoneFetcher(jn.data))}}async function Vr(pn,gn,yn){let{submission:_n,fetcherSubmission:Tn,replace:Nn}=yn===void 0?{}:yn;gn.revalidate&&(ur=!0);let On=createLocation$1(pn.location,gn.location,{_isRedirect:!0});if(invariant$3(On,"Expected a location on the redirect navigation"),rt){let Hn=!1;if(gn.reloadDocument)Hn=!0;else if(ABSOLUTE_URL_REGEX$1.test(gn.location)){const qn=_e.history.createURL(gn.location);Hn=qn.origin!==et.location.origin||stripBasename(qn.pathname,xt)==null}if(Hn){Nn?et.location.replace(gn.location):et.location.assign(gn.location);return}}Gt=null;let $n=Nn===!0?Action$1.Replace:Action$1.Push,{formMethod:Sn,formAction:xn,formEncType:In}=pn.navigation;!_n&&!Tn&&Sn&&xn&&In&&(_n=getSubmissionFromNavigation(pn.navigation));let jn=_n||Tn;if(redirectPreserveMethodStatusCodes.has(gn.status)&&jn&&isMutationMethod(jn.formMethod))await _r($n,On,{submission:_extends$9({},jn,{formAction:gn.location}),preventScrollReset:Xt});else{let Hn=getLoadingNavigation(On,_n);await _r($n,On,{overrideNavigation:Hn,fetcherSubmission:Tn,preventScrollReset:Xt})}}async function ln(pn,gn,yn,_n,Tn){let Nn=await Promise.all([...yn.map(Sn=>callLoaderOrAction("loader",Tn,Sn,gn,ut,ct,xt,$t.v7_relativeSplatPath)),..._n.map(Sn=>Sn.matches&&Sn.match&&Sn.controller?callLoaderOrAction("loader",createClientSideRequest(_e.history,Sn.path,Sn.controller.signal),Sn.match,Sn.matches,ut,ct,xt,$t.v7_relativeSplatPath):{type:ResultType.error,error:getInternalRouterError(404,{pathname:Sn.path})})]),On=Nn.slice(0,yn.length),$n=Nn.slice(yn.length);return await Promise.all([resolveDeferredResults(pn,yn,On,On.map(()=>Tn.signal),!1,Vt.loaderData),resolveDeferredResults(pn,_n.map(Sn=>Sn.match),$n,_n.map(Sn=>Sn.controller?Sn.controller.signal:null),!0)]),{results:Nn,loaderResults:On,fetcherResults:$n}}function Qr(){ur=!0,fr.push(...Rn()),mr.forEach((pn,gn)=>{pr.has(gn)&&(hr.push(gn),zr(gn))})}function Zr(pn,gn,yn){yn===void 0&&(yn={}),Vt.fetchers.set(pn,gn),Pr({fetchers:new Map(Vt.fetchers)},{flushSync:(yn&&yn.flushSync)===!0})}function vn(pn,gn,yn,_n){_n===void 0&&(_n={});let Tn=findNearestBoundary(Vt.matches,gn);gr(pn),Pr({errors:{[Tn.route.id]:yn},fetchers:new Map(Vt.fetchers)},{flushSync:(_n&&_n.flushSync)===!0})}function vr(pn){return $t.v7_fetcherPersist&&(Er.set(pn,(Er.get(pn)||0)+1),Tr.has(pn)&&Tr.delete(pn)),Vt.fetchers.get(pn)||IDLE_FETCHER}function gr(pn){let gn=Vt.fetchers.get(pn);pr.has(pn)&&!(gn&&gn.state==="loading"&&Sr.has(pn))&&zr(pn),mr.delete(pn),Sr.delete(pn),br.delete(pn),Tr.delete(pn),Vt.fetchers.delete(pn)}function $r(pn){if($t.v7_fetcherPersist){let gn=(Er.get(pn)||0)-1;gn<=0?(Er.delete(pn),Tr.add(pn)):Er.set(pn,gn)}else gr(pn);Pr({fetchers:new Map(Vt.fetchers)})}function zr(pn){let gn=pr.get(pn);invariant$3(gn,"Expected fetch controller: "+pn),gn.abort(),pr.delete(pn)}function qr(pn){for(let gn of pn){let yn=vr(gn),_n=getDoneFetcher(yn.data);Vt.fetchers.set(gn,_n)}}function Wr(){let pn=[],gn=!1;for(let yn of br){let _n=Vt.fetchers.get(yn);invariant$3(_n,"Expected fetcher: "+yn),_n.state==="loading"&&(br.delete(yn),pn.push(yn),gn=!0)}return qr(pn),gn}function Gr(pn){let gn=[];for(let[yn,_n]of Sr)if(_n0}function dn(pn,gn){let yn=Vt.blockers.get(pn)||IDLE_BLOCKER;return Or.get(pn)!==gn&&Or.set(pn,gn),yn}function mn(pn){Vt.blockers.delete(pn),Or.delete(pn)}function hn(pn,gn){let yn=Vt.blockers.get(pn)||IDLE_BLOCKER;invariant$3(yn.state==="unblocked"&&gn.state==="blocked"||yn.state==="blocked"&&gn.state==="blocked"||yn.state==="blocked"&&gn.state==="proceeding"||yn.state==="blocked"&&gn.state==="unblocked"||yn.state==="proceeding"&&gn.state==="unblocked","Invalid blocker state transition: "+yn.state+" -> "+gn.state);let _n=new Map(Vt.blockers);_n.set(pn,gn),Pr({blockers:_n})}function Cn(pn){let{currentLocation:gn,nextLocation:yn,historyAction:_n}=pn;if(Or.size===0)return;Or.size>1&&warning$7(!1,"A router only supports one blocker at a time");let Tn=Array.from(Or.entries()),[Nn,On]=Tn[Tn.length-1],$n=Vt.blockers.get(Nn);if(!($n&&$n.state==="proceeding")&&On({currentLocation:gn,nextLocation:yn,historyAction:_n}))return Nn}function Rn(pn){let gn=[];return Mr.forEach((yn,_n)=>{(!pn||pn(_n))&&(yn.cancel(),gn.push(_n),Mr.delete(_n))}),gn}function kn(pn,gn,yn){if(Tt=pn,It=gn,Rt=yn||null,!At&&Vt.navigation===IDLE_NAVIGATION){At=!0;let _n=Gn(Vt.location,Vt.matches);_n!=null&&Pr({restoreScrollPosition:_n})}return()=>{Tt=null,It=null,Rt=null}}function Bn(pn,gn){return Rt&&Rt(pn,gn.map(_n=>convertRouteMatchToUiMatch(_n,Vt.loaderData)))||pn.key}function Yn(pn,gn){if(Tt&&It){let yn=Bn(pn,gn);Tt[yn]=It()}}function Gn(pn,gn){if(Tt){let yn=Bn(pn,gn),_n=Tt[yn];if(typeof _n=="number")return _n}return null}function io(pn){ut={},gt=convertRoutesToDataRoutes(pn,ct,void 0,ut)}return Wt={get basename(){return xt},get future(){return $t},get state(){return Vt},get routes(){return ft},get window(){return et},initialize:Cr,subscribe:Rr,enableScrollRestoration:kn,navigate:kr,fetch:Xr,revalidate:Fr,createHref:pn=>_e.history.createHref(pn),encodeLocation:pn=>_e.history.encodeLocation(pn),getFetcher:vr,deleteFetcher:$r,dispose:Nr,getBlocker:dn,deleteBlocker:mn,_internalFetchControllers:pr,_internalActiveDeferreds:Mr,_internalSetRoutes:io},Wt}function isSubmissionNavigation(_e){return _e!=null&&("formData"in _e&&_e.formData!=null||"body"in _e&&_e.body!==void 0)}function normalizeTo(_e,et,rt,st,ct,ut,ft,gt){let xt,$t;if(ft){xt=[];for(let wt of et)if(xt.push(wt),wt.route.id===ft){$t=wt;break}}else xt=et,$t=et[et.length-1];let _t=resolveTo(ct||".",getResolveToMatches(xt,ut),stripBasename(_e.pathname,rt)||_e.pathname,gt==="path");return ct==null&&(_t.search=_e.search,_t.hash=_e.hash),(ct==null||ct===""||ct===".")&&$t&&$t.route.index&&!hasNakedIndexQuery(_t.search)&&(_t.search=_t.search?_t.search.replace(/^\?/,"?index&"):"?index"),st&&rt!=="/"&&(_t.pathname=_t.pathname==="/"?rt:joinPaths([rt,_t.pathname])),createPath(_t)}function normalizeNavigateOptions(_e,et,rt,st){if(!st||!isSubmissionNavigation(st))return{path:rt};if(st.formMethod&&!isValidMethod(st.formMethod))return{path:rt,error:getInternalRouterError(405,{method:st.formMethod})};let ct=()=>({path:rt,error:getInternalRouterError(400,{type:"invalid-body"})}),ut=st.formMethod||"get",ft=_e?ut.toUpperCase():ut.toLowerCase(),gt=stripHashFromPath(rt);if(st.body!==void 0){if(st.formEncType==="text/plain"){if(!isMutationMethod(ft))return ct();let Tt=typeof st.body=="string"?st.body:st.body instanceof FormData||st.body instanceof URLSearchParams?Array.from(st.body.entries()).reduce((Rt,It)=>{let[At,jt]=It;return""+Rt+At+"="+jt+` +`},""):String(st.body);return{path:rt,submission:{formMethod:ft,formAction:gt,formEncType:st.formEncType,formData:void 0,json:void 0,text:Tt}}}else if(st.formEncType==="application/json"){if(!isMutationMethod(ft))return ct();try{let Tt=typeof st.body=="string"?JSON.parse(st.body):st.body;return{path:rt,submission:{formMethod:ft,formAction:gt,formEncType:st.formEncType,formData:void 0,json:Tt,text:void 0}}}catch{return ct()}}}invariant$3(typeof FormData=="function","FormData is not available in this environment");let xt,$t;if(st.formData)xt=convertFormDataToSearchParams(st.formData),$t=st.formData;else if(st.body instanceof FormData)xt=convertFormDataToSearchParams(st.body),$t=st.body;else if(st.body instanceof URLSearchParams)xt=st.body,$t=convertSearchParamsToFormData(xt);else if(st.body==null)xt=new URLSearchParams,$t=new FormData;else try{xt=new URLSearchParams(st.body),$t=convertSearchParamsToFormData(xt)}catch{return ct()}let _t={formMethod:ft,formAction:gt,formEncType:st&&st.formEncType||"application/x-www-form-urlencoded",formData:$t,json:void 0,text:void 0};if(isMutationMethod(_t.formMethod))return{path:rt,submission:_t};let wt=parsePath(rt);return et&&wt.search&&hasNakedIndexQuery(wt.search)&&xt.append("index",""),wt.search="?"+xt,{path:createPath(wt),submission:_t}}function getLoaderMatchesUntilBoundary(_e,et){let rt=_e;if(et){let st=_e.findIndex(ct=>ct.route.id===et);st>=0&&(rt=_e.slice(0,st))}return rt}function getMatchesToLoad(_e,et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At){let jt=At?Object.values(At)[0]:It?Object.values(It)[0]:void 0,Nt=_e.createURL(et.location),kt=_e.createURL(ct),Ft=At?Object.keys(At)[0]:void 0,Wt=getLoaderMatchesUntilBoundary(rt,Ft).filter((qt,Xt)=>{let{route:Gt}=qt;if(Gt.lazy)return!0;if(Gt.loader==null)return!1;if(ut)return Gt.loader.hydrate?!0:et.loaderData[Gt.id]===void 0&&(!et.errors||et.errors[Gt.id]===void 0);if(isNewLoader(et.loaderData,et.matches[Xt],qt)||gt.some(lr=>lr===qt.route.id))return!0;let Zt=et.matches[Xt],er=qt;return shouldRevalidateLoader(qt,_extends$9({currentUrl:Nt,currentParams:Zt.params,nextUrl:kt,nextParams:er.params},st,{actionResult:jt,defaultShouldRevalidate:ft||Nt.pathname+Nt.search===kt.pathname+kt.search||Nt.search!==kt.search||isNewRouteInstance(Zt,er)}))}),Vt=[];return _t.forEach((qt,Xt)=>{if(ut||!rt.some(cr=>cr.route.id===qt.routeId)||$t.has(Xt))return;let Gt=matchRoutes(Tt,qt.path,Rt);if(!Gt){Vt.push({key:Xt,routeId:qt.routeId,path:qt.path,matches:null,match:null,controller:null});return}let Zt=et.fetchers.get(Xt),er=getTargetMatch(Gt,qt.path),lr=!1;wt.has(Xt)?lr=!1:xt.includes(Xt)?lr=!0:Zt&&Zt.state!=="idle"&&Zt.data===void 0?lr=ft:lr=shouldRevalidateLoader(er,_extends$9({currentUrl:Nt,currentParams:et.matches[et.matches.length-1].params,nextUrl:kt,nextParams:rt[rt.length-1].params},st,{actionResult:jt,defaultShouldRevalidate:ft})),lr&&Vt.push({key:Xt,routeId:qt.routeId,path:qt.path,matches:Gt,match:er,controller:new AbortController})}),[Wt,Vt]}function isNewLoader(_e,et,rt){let st=!et||rt.route.id!==et.route.id,ct=_e[rt.route.id]===void 0;return st||ct}function isNewRouteInstance(_e,et){let rt=_e.route.path;return _e.pathname!==et.pathname||rt!=null&&rt.endsWith("*")&&_e.params["*"]!==et.params["*"]}function shouldRevalidateLoader(_e,et){if(_e.route.shouldRevalidate){let rt=_e.route.shouldRevalidate(et);if(typeof rt=="boolean")return rt}return et.defaultShouldRevalidate}async function loadLazyRouteModule(_e,et,rt){if(!_e.lazy)return;let st=await _e.lazy();if(!_e.lazy)return;let ct=rt[_e.id];invariant$3(ct,"No route found in manifest");let ut={};for(let ft in st){let xt=ct[ft]!==void 0&&ft!=="hasErrorBoundary";warning$7(!xt,'Route "'+ct.id+'" has a static property "'+ft+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+ft+'" will be ignored.')),!xt&&!immutableRouteKeys.has(ft)&&(ut[ft]=st[ft])}Object.assign(ct,ut),Object.assign(ct,_extends$9({},et(ct),{lazy:void 0}))}async function callLoaderOrAction(_e,et,rt,st,ct,ut,ft,gt,xt){xt===void 0&&(xt={});let $t,_t,wt,Tt=At=>{let jt,Nt=new Promise((kt,Ft)=>jt=Ft);return wt=()=>jt(),et.signal.addEventListener("abort",wt),Promise.race([At({request:et,params:rt.params,context:xt.requestContext}),Nt])};try{let At=rt.route[_e];if(rt.route.lazy)if(At){let jt,Nt=await Promise.all([Tt(At).catch(kt=>{jt=kt}),loadLazyRouteModule(rt.route,ut,ct)]);if(jt)throw jt;_t=Nt[0]}else if(await loadLazyRouteModule(rt.route,ut,ct),At=rt.route[_e],At)_t=await Tt(At);else if(_e==="action"){let jt=new URL(et.url),Nt=jt.pathname+jt.search;throw getInternalRouterError(405,{method:et.method,pathname:Nt,routeId:rt.route.id})}else return{type:ResultType.data,data:void 0};else if(At)_t=await Tt(At);else{let jt=new URL(et.url),Nt=jt.pathname+jt.search;throw getInternalRouterError(404,{pathname:Nt})}invariant$3(_t!==void 0,"You defined "+(_e==="action"?"an action":"a loader")+" for route "+('"'+rt.route.id+"\" but didn't return anything from your `"+_e+"` ")+"function. Please return a value or `null`.")}catch(At){$t=ResultType.error,_t=At}finally{wt&&et.signal.removeEventListener("abort",wt)}if(isResponse(_t)){let At=_t.status;if(redirectStatusCodes.has(At)){let Nt=_t.headers.get("Location");if(invariant$3(Nt,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX$1.test(Nt))Nt=normalizeTo(new URL(et.url),st.slice(0,st.indexOf(rt)+1),ft,!0,Nt,gt);else if(!xt.isStaticRequest){let kt=new URL(et.url),Ft=Nt.startsWith("//")?new URL(kt.protocol+Nt):new URL(Nt),Ht=stripBasename(Ft.pathname,ft)!=null;Ft.origin===kt.origin&&Ht&&(Nt=Ft.pathname+Ft.search+Ft.hash)}if(xt.isStaticRequest)throw _t.headers.set("Location",Nt),_t;return{type:ResultType.redirect,status:At,location:Nt,revalidate:_t.headers.get("X-Remix-Revalidate")!==null,reloadDocument:_t.headers.get("X-Remix-Reload-Document")!==null}}if(xt.isRouteRequest)throw{type:$t===ResultType.error?ResultType.error:ResultType.data,response:_t};let jt;try{let Nt=_t.headers.get("Content-Type");Nt&&/\bapplication\/json\b/.test(Nt)?_t.body==null?jt=null:jt=await _t.json():jt=await _t.text()}catch(Nt){return{type:ResultType.error,error:Nt}}return $t===ResultType.error?{type:$t,error:new ErrorResponseImpl(At,_t.statusText,jt),headers:_t.headers}:{type:ResultType.data,data:jt,statusCode:_t.status,headers:_t.headers}}if($t===ResultType.error)return{type:$t,error:_t};if(isDeferredData(_t)){var Rt,It;return{type:ResultType.deferred,deferredData:_t,statusCode:(Rt=_t.init)==null?void 0:Rt.status,headers:((It=_t.init)==null?void 0:It.headers)&&new Headers(_t.init.headers)}}return{type:ResultType.data,data:_t}}function createClientSideRequest(_e,et,rt,st){let ct=_e.createURL(stripHashFromPath(et)).toString(),ut={signal:rt};if(st&&isMutationMethod(st.formMethod)){let{formMethod:ft,formEncType:gt}=st;ut.method=ft.toUpperCase(),gt==="application/json"?(ut.headers=new Headers({"Content-Type":gt}),ut.body=JSON.stringify(st.json)):gt==="text/plain"?ut.body=st.text:gt==="application/x-www-form-urlencoded"&&st.formData?ut.body=convertFormDataToSearchParams(st.formData):ut.body=st.formData}return new Request(ct,ut)}function convertFormDataToSearchParams(_e){let et=new URLSearchParams;for(let[rt,st]of _e.entries())et.append(rt,typeof st=="string"?st:st.name);return et}function convertSearchParamsToFormData(_e){let et=new FormData;for(let[rt,st]of _e.entries())et.append(rt,st);return et}function processRouteLoaderData(_e,et,rt,st,ct){let ut={},ft=null,gt,xt=!1,$t={};return rt.forEach((_t,wt)=>{let Tt=et[wt].route.id;if(invariant$3(!isRedirectResult(_t),"Cannot handle redirect results in processLoaderData"),isErrorResult(_t)){let Rt=findNearestBoundary(_e,Tt),It=_t.error;st&&(It=Object.values(st)[0],st=void 0),ft=ft||{},ft[Rt.route.id]==null&&(ft[Rt.route.id]=It),ut[Tt]=void 0,xt||(xt=!0,gt=isRouteErrorResponse(_t.error)?_t.error.status:500),_t.headers&&($t[Tt]=_t.headers)}else isDeferredResult(_t)?(ct.set(Tt,_t.deferredData),ut[Tt]=_t.deferredData.data):ut[Tt]=_t.data,_t.statusCode!=null&&_t.statusCode!==200&&!xt&&(gt=_t.statusCode),_t.headers&&($t[Tt]=_t.headers)}),st&&(ft=st,ut[Object.keys(st)[0]]=void 0),{loaderData:ut,errors:ft,statusCode:gt||200,loaderHeaders:$t}}function processLoaderData(_e,et,rt,st,ct,ut,ft,gt){let{loaderData:xt,errors:$t}=processRouteLoaderData(et,rt,st,ct,gt);for(let _t=0;_tst.route.id===et)+1):[..._e]).reverse().find(st=>st.route.hasErrorBoundary===!0)||_e[0]}function getShortCircuitMatches(_e){let et=_e.length===1?_e[0]:_e.find(rt=>rt.index||!rt.path||rt.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:et}],route:et}}function getInternalRouterError(_e,et){let{pathname:rt,routeId:st,method:ct,type:ut}=et===void 0?{}:et,ft="Unknown Server Error",gt="Unknown @remix-run/router error";return _e===400?(ft="Bad Request",ct&&rt&&st?gt="You made a "+ct+' request to "'+rt+'" but '+('did not provide a `loader` for route "'+st+'", ')+"so there is no way to handle the request.":ut==="defer-action"?gt="defer() is not supported in actions":ut==="invalid-body"&&(gt="Unable to encode submission body")):_e===403?(ft="Forbidden",gt='Route "'+st+'" does not match URL "'+rt+'"'):_e===404?(ft="Not Found",gt='No route matches URL "'+rt+'"'):_e===405&&(ft="Method Not Allowed",ct&&rt&&st?gt="You made a "+ct.toUpperCase()+' request to "'+rt+'" but '+('did not provide an `action` for route "'+st+'", ')+"so there is no way to handle the request.":ct&&(gt='Invalid request method "'+ct.toUpperCase()+'"')),new ErrorResponseImpl(_e||500,ft,new Error(gt),!0)}function findRedirect(_e){for(let et=_e.length-1;et>=0;et--){let rt=_e[et];if(isRedirectResult(rt))return{result:rt,idx:et}}}function stripHashFromPath(_e){let et=typeof _e=="string"?parsePath(_e):_e;return createPath(_extends$9({},et,{hash:""}))}function isHashChangeOnly(_e,et){return _e.pathname!==et.pathname||_e.search!==et.search?!1:_e.hash===""?et.hash!=="":_e.hash===et.hash?!0:et.hash!==""}function isDeferredResult(_e){return _e.type===ResultType.deferred}function isErrorResult(_e){return _e.type===ResultType.error}function isRedirectResult(_e){return(_e&&_e.type)===ResultType.redirect}function isDeferredData(_e){let et=_e;return et&&typeof et=="object"&&typeof et.data=="object"&&typeof et.subscribe=="function"&&typeof et.cancel=="function"&&typeof et.resolveData=="function"}function isResponse(_e){return _e!=null&&typeof _e.status=="number"&&typeof _e.statusText=="string"&&typeof _e.headers=="object"&&typeof _e.body<"u"}function isValidMethod(_e){return validRequestMethods.has(_e.toLowerCase())}function isMutationMethod(_e){return validMutationMethods.has(_e.toLowerCase())}async function resolveDeferredResults(_e,et,rt,st,ct,ut){for(let ft=0;ftwt.route.id===xt.route.id),_t=$t!=null&&!isNewRouteInstance($t,xt)&&(ut&&ut[xt.route.id])!==void 0;if(isDeferredResult(gt)&&(ct||_t)){let wt=st[ft];invariant$3(wt,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(gt,wt,ct).then(Tt=>{Tt&&(rt[ft]=Tt||rt[ft])})}}}async function resolveDeferredData(_e,et,rt){if(rt===void 0&&(rt=!1),!await _e.deferredData.resolveData(et)){if(rt)try{return{type:ResultType.data,data:_e.deferredData.unwrappedData}}catch(ct){return{type:ResultType.error,error:ct}}return{type:ResultType.data,data:_e.deferredData.data}}}function hasNakedIndexQuery(_e){return new URLSearchParams(_e).getAll("index").some(et=>et==="")}function getTargetMatch(_e,et){let rt=typeof et=="string"?parsePath(et).search:et.search;if(_e[_e.length-1].route.index&&hasNakedIndexQuery(rt||""))return _e[_e.length-1];let st=getPathContributingMatches(_e);return st[st.length-1]}function getSubmissionFromNavigation(_e){let{formMethod:et,formAction:rt,formEncType:st,text:ct,formData:ut,json:ft}=_e;if(!(!et||!rt||!st)){if(ct!=null)return{formMethod:et,formAction:rt,formEncType:st,formData:void 0,json:void 0,text:ct};if(ut!=null)return{formMethod:et,formAction:rt,formEncType:st,formData:ut,json:void 0,text:void 0};if(ft!==void 0)return{formMethod:et,formAction:rt,formEncType:st,formData:void 0,json:ft,text:void 0}}}function getLoadingNavigation(_e,et){return et?{state:"loading",location:_e,formMethod:et.formMethod,formAction:et.formAction,formEncType:et.formEncType,formData:et.formData,json:et.json,text:et.text}:{state:"loading",location:_e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(_e,et){return{state:"submitting",location:_e,formMethod:et.formMethod,formAction:et.formAction,formEncType:et.formEncType,formData:et.formData,json:et.json,text:et.text}}function getLoadingFetcher(_e,et){return _e?{state:"loading",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:et}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:et}}function getSubmittingFetcher(_e,et){return{state:"submitting",formMethod:_e.formMethod,formAction:_e.formAction,formEncType:_e.formEncType,formData:_e.formData,json:_e.json,text:_e.text,data:et?et.data:void 0}}function getDoneFetcher(_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 restoreAppliedTransitions(_e,et){try{let rt=_e.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);if(rt){let st=JSON.parse(rt);for(let[ct,ut]of Object.entries(st||{}))ut&&Array.isArray(ut)&&et.set(ct,new Set(ut||[]))}}catch{}}function persistAppliedTransitions(_e,et){if(et.size>0){let rt={};for(let[st,ct]of et)rt[st]=[...ct];try{_e.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY,JSON.stringify(rt))}catch(st){warning$7(!1,"Failed to save applied view transitions in sessionStorage ("+st+").")}}}/** * React Router v6.22.1 * * Copyright (c) Remix Software Inc. @@ -425,8 +440,8 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(_e){for(var et=1;et=0)&&(rt[ct]=_e[ct]);return rt}function isModifiedEvent(_e){return!!(_e.metaKey||_e.altKey||_e.ctrlKey||_e.shiftKey)}function shouldProcessLinkClick(_e,et){return _e.button===0&&(!et||et==="_self")&&!isModifiedEvent(_e)}const _excluded$I=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}function createHashRouter(_e,et){return createRouter({basename:et==null?void 0:et.basename,future:_extends$7({},et==null?void 0:et.future,{v7_prependBasename:!0}),history:createHashHistory({window:et==null?void 0:et.window}),hydrationData:(et==null?void 0:et.hydrationData)||parseHydrationData(),routes:_e,mapRouteProperties,window:et==null?void 0:et.window}).initialize()}function parseHydrationData(){var _e;let et=(_e=window)==null?void 0:_e.__staticRouterHydrationData;return et&&et.errors&&(et=_extends$7({},et,{errors:deserializeErrors(et.errors)})),et}function deserializeErrors(_e){if(!_e)return null;let et=Object.entries(_e),rt={};for(let[st,ct]of et)if(ct&&ct.__type==="RouteErrorResponse")rt[st]=new ErrorResponseImpl(ct.status,ct.statusText,ct.data,ct.internal===!0);else if(ct&&ct.__type==="Error"){if(ct.__subType){let ut=window[ct.__subType];if(typeof ut=="function")try{let ft=new ut(ct.message);ft.stack="",rt[st]=ft}catch{}}if(rt[st]==null){let ut=new Error(ct.message);ut.stack="",rt[st]=ut}}else rt[st]=ct;return rt}const ViewTransitionContext=reactExports.createContext({isTransitioning:!1}),FetchersContext=reactExports.createContext(new Map),START_TRANSITION="startTransition",startTransitionImpl=React$2[START_TRANSITION],FLUSH_SYNC="flushSync",flushSyncImpl=ReactDOM$1[FLUSH_SYNC];function startTransitionSafe(_e){startTransitionImpl?startTransitionImpl(_e):_e()}function flushSyncSafe(_e){flushSyncImpl?flushSyncImpl(_e):_e()}class Deferred{constructor(){this.status="pending",this.promise=new Promise((et,rt)=>{this.resolve=st=>{this.status==="pending"&&(this.status="resolved",et(st))},this.reject=st=>{this.status==="pending"&&(this.status="rejected",rt(st))}})}}function RouterProvider(_e){let{fallbackElement:et,router:rt,future:st}=_e,[ct,ut]=reactExports.useState(rt.state),[ft,gt]=reactExports.useState(),[xt,$t]=reactExports.useState({isTransitioning:!1}),[_t,wt]=reactExports.useState(),[Tt,Rt]=reactExports.useState(),[It,At]=reactExports.useState(),jt=reactExports.useRef(new Map),{v7_startTransition:Nt}=st||{},kt=reactExports.useCallback(qt=>{Nt?startTransitionSafe(qt):qt()},[Nt]),Ft=reactExports.useCallback((qt,Gt)=>{let{deletedFetchers:Xt,unstable_flushSync:Zt,unstable_viewTransitionOpts:lr}=Gt;Xt.forEach(cr=>jt.current.delete(cr)),qt.fetchers.forEach((cr,ur)=>{cr.data!==void 0&&jt.current.set(ur,cr.data)});let er=rt.window==null||typeof rt.window.document.startViewTransition!="function";if(!lr||er){Zt?flushSyncSafe(()=>ut(qt)):kt(()=>ut(qt));return}if(Zt){flushSyncSafe(()=>{Tt&&(_t&&_t.resolve(),Tt.skipTransition()),$t({isTransitioning:!0,flushSync:!0,currentLocation:lr.currentLocation,nextLocation:lr.nextLocation})});let cr=rt.window.document.startViewTransition(()=>{flushSyncSafe(()=>ut(qt))});cr.finished.finally(()=>{flushSyncSafe(()=>{wt(void 0),Rt(void 0),gt(void 0),$t({isTransitioning:!1})})}),flushSyncSafe(()=>Rt(cr));return}Tt?(_t&&_t.resolve(),Tt.skipTransition(),At({state:qt,currentLocation:lr.currentLocation,nextLocation:lr.nextLocation})):(gt(qt),$t({isTransitioning:!0,flushSync:!1,currentLocation:lr.currentLocation,nextLocation:lr.nextLocation}))},[rt.window,Tt,_t,jt,kt]);reactExports.useLayoutEffect(()=>rt.subscribe(Ft),[rt,Ft]),reactExports.useEffect(()=>{xt.isTransitioning&&!xt.flushSync&&wt(new Deferred)},[xt]),reactExports.useEffect(()=>{if(_t&&ft&&rt.window){let qt=ft,Gt=_t.promise,Xt=rt.window.document.startViewTransition(async()=>{kt(()=>ut(qt)),await Gt});Xt.finished.finally(()=>{wt(void 0),Rt(void 0),gt(void 0),$t({isTransitioning:!1})}),Rt(Xt)}},[kt,ft,_t,rt.window]),reactExports.useEffect(()=>{_t&&ft&&ct.location.key===ft.location.key&&_t.resolve()},[_t,Tt,ct.location,ft]),reactExports.useEffect(()=>{!xt.isTransitioning&&It&&(gt(It.state),$t({isTransitioning:!0,flushSync:!1,currentLocation:It.currentLocation,nextLocation:It.nextLocation}),At(void 0))},[xt.isTransitioning,It]),reactExports.useEffect(()=>{},[]);let Ht=reactExports.useMemo(()=>({createHref:rt.createHref,encodeLocation:rt.encodeLocation,go:qt=>rt.navigate(qt),push:(qt,Gt,Xt)=>rt.navigate(qt,{state:Gt,preventScrollReset:Xt==null?void 0:Xt.preventScrollReset}),replace:(qt,Gt,Xt)=>rt.navigate(qt,{replace:!0,state:Gt,preventScrollReset:Xt==null?void 0:Xt.preventScrollReset})}),[rt]),Wt=rt.basename||"/",Vt=reactExports.useMemo(()=>({router:rt,navigator:Ht,static:!1,basename:Wt}),[rt,Ht,Wt]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(DataRouterContext.Provider,{value:Vt},reactExports.createElement(DataRouterStateContext.Provider,{value:ct},reactExports.createElement(FetchersContext.Provider,{value:jt.current},reactExports.createElement(ViewTransitionContext.Provider,{value:xt},reactExports.createElement(Router,{basename:Wt,location:ct.location,navigationType:ct.historyAction,navigator:Ht,future:{v7_relativeSplatPath:rt.future.v7_relativeSplatPath}},ct.initialized||rt.future.v7_partialHydration?reactExports.createElement(DataRoutes,{routes:rt.routes,future:rt.future,state:ct}):et))))),null)}function DataRoutes(_e){let{routes:et,future:rt,state:st}=_e;return useRoutesImpl(et,void 0,st,rt)}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(et,rt){let{onClick:st,relative:ct,reloadDocument:ut,replace:ft,state:gt,target:xt,to:$t,preventScrollReset:_t,unstable_viewTransition:wt}=et,Tt=_objectWithoutPropertiesLoose$2(et,_excluded$I),{basename:Rt}=reactExports.useContext(NavigationContext),It,At=!1;if(typeof $t=="string"&&ABSOLUTE_URL_REGEX.test($t)&&(It=$t,isBrowser$1))try{let Ft=new URL(window.location.href),Ht=$t.startsWith("//")?new URL(Ft.protocol+$t):new URL($t),Wt=stripBasename(Ht.pathname,Rt);Ht.origin===Ft.origin&&Wt!=null?$t=Wt+Ht.search+Ht.hash:At=!0}catch{}let jt=useHref($t,{relative:ct}),Nt=useLinkClickHandler($t,{replace:ft,state:gt,target:xt,preventScrollReset:_t,relative:ct,unstable_viewTransition:wt});function kt(Ft){st&&st(Ft),Ft.defaultPrevented||Nt(Ft)}return reactExports.createElement("a",_extends$7({},Tt,{href:It||jt,onClick:At||ut?st:kt,ref:rt,target:xt}))});var DataRouterHook;(function(_e){_e.UseScrollRestoration="useScrollRestoration",_e.UseSubmit="useSubmit",_e.UseSubmitFetcher="useSubmitFetcher",_e.UseFetcher="useFetcher",_e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(_e){_e.UseFetcher="useFetcher",_e.UseFetchers="useFetchers",_e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(_e,et){let{target:rt,replace:st,state:ct,preventScrollReset:ut,relative:ft,unstable_viewTransition:gt}=et===void 0?{}:et,xt=useNavigate(),$t=useLocation(),_t=useResolvedPath(_e,{relative:ft});return reactExports.useCallback(wt=>{if(shouldProcessLinkClick(wt,rt)){wt.preventDefault();let Tt=st!==void 0?st:createPath($t)===createPath(_t);xt(_e,{replace:Tt,state:ct,preventScrollReset:ut,relative:ft,unstable_viewTransition:gt})}},[$t,xt,_t,st,ct,rt,_e,ut,ft,gt])}var locale$5={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$4={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},TimePicker=locale$4,locale$3={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$5),timePickerLocale:Object.assign({},TimePicker)};locale$3.lang.ok="确定";const DatePicker=locale$3,typeTemplate="${label}不是一个有效的${type}",localeValues={locale:"zh-cn",Pagination:locale$6,DatePicker,TimePicker,Calendar:DatePicker,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",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:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},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:"暂无"}},zh_CN=localeValues,noop$2=()=>{},UNDEFINED=noop$2(),OBJECT=Object,isUndefined$2=_e=>_e===UNDEFINED,isFunction$6=_e=>typeof _e=="function",mergeObjects=(_e,et)=>({..._e,...et}),isPromiseLike=_e=>isFunction$6(_e.then),table=new WeakMap;let counter=0;const stableHash=_e=>{const et=typeof _e,rt=_e&&_e.constructor,st=rt==Date;let ct,ut;if(OBJECT(_e)===_e&&!st&&rt!=RegExp){if(ct=table.get(_e),ct)return ct;if(ct=++counter+"~",table.set(_e,ct),rt==Array){for(ct="@",ut=0;ut<_e.length;ut++)ct+=stableHash(_e[ut])+",";table.set(_e,ct)}if(rt==OBJECT){ct="#";const ft=OBJECT.keys(_e).sort();for(;!isUndefined$2(ut=ft.pop());)isUndefined$2(_e[ut])||(ct+=ut+":"+stableHash(_e[ut])+",");table.set(_e,ct)}}else ct=st?_e.toJSON():et=="symbol"?_e.toString():et=="string"?JSON.stringify(_e):""+_e;return ct},SWRGlobalState=new WeakMap,EMPTY_CACHE={},INITIAL_CACHE={},STR_UNDEFINED="undefined",isWindowDefined=typeof window!=STR_UNDEFINED,isDocumentDefined=typeof document!=STR_UNDEFINED,hasRequestAnimationFrame=()=>isWindowDefined&&typeof window.requestAnimationFrame!=STR_UNDEFINED,createCacheHelper=(_e,et)=>{const rt=SWRGlobalState.get(_e);return[()=>!isUndefined$2(et)&&_e.get(et)||EMPTY_CACHE,st=>{if(!isUndefined$2(et)){const ct=_e.get(et);et in INITIAL_CACHE||(INITIAL_CACHE[et]=ct),rt[5](et,mergeObjects(ct,st),ct||EMPTY_CACHE)}},rt[6],()=>!isUndefined$2(et)&&et in INITIAL_CACHE?INITIAL_CACHE[et]:!isUndefined$2(et)&&_e.get(et)||EMPTY_CACHE]};let online=!0;const isOnline=()=>online,[onWindowEvent,offWindowEvent]=isWindowDefined&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[noop$2,noop$2],isVisible=()=>{const _e=isDocumentDefined&&document.visibilityState;return isUndefined$2(_e)||_e!=="hidden"},initFocus=_e=>(isDocumentDefined&&document.addEventListener("visibilitychange",_e),onWindowEvent("focus",_e),()=>{isDocumentDefined&&document.removeEventListener("visibilitychange",_e),offWindowEvent("focus",_e)}),initReconnect=_e=>{const et=()=>{online=!0,_e()},rt=()=>{online=!1};return onWindowEvent("online",et),onWindowEvent("offline",rt),()=>{offWindowEvent("online",et),offWindowEvent("offline",rt)}},preset={isOnline,isVisible},defaultConfigOptions={initFocus,initReconnect},IS_REACT_LEGACY=!React$1.useId,IS_SERVER=!isWindowDefined||"Deno"in window,rAF$1=_e=>hasRequestAnimationFrame()?window.requestAnimationFrame(_e):setTimeout(_e,1),useIsomorphicLayoutEffect=IS_SERVER?reactExports.useEffect:reactExports.useLayoutEffect,navigatorConnection=typeof navigator<"u"&&navigator.connection,slowConnection=!IS_SERVER&&navigatorConnection&&(["slow-2g","2g"].includes(navigatorConnection.effectiveType)||navigatorConnection.saveData),serialize=_e=>{if(isFunction$6(_e))try{_e=_e()}catch{_e=""}const et=_e;return _e=typeof _e=="string"?_e:(Array.isArray(_e)?_e.length:_e)?stableHash(_e):"",[_e,et]};let __timestamp=0;const getTimestamp=()=>++__timestamp,FOCUS_EVENT=0,RECONNECT_EVENT=1,MUTATE_EVENT=2,ERROR_REVALIDATE_EVENT=3;var events={__proto__:null,ERROR_REVALIDATE_EVENT,FOCUS_EVENT,MUTATE_EVENT,RECONNECT_EVENT};async function internalMutate(..._e){const[et,rt,st,ct]=_e,ut=mergeObjects({populateCache:!0,throwOnError:!0},typeof ct=="boolean"?{revalidate:ct}:ct||{});let ft=ut.populateCache;const gt=ut.rollbackOnError;let xt=ut.optimisticData;const $t=Tt=>typeof gt=="function"?gt(Tt):gt!==!1,_t=ut.throwOnError;if(isFunction$6(rt)){const Tt=rt,Rt=[],It=et.keys();for(const At of It)!/^\$(inf|sub)\$/.test(At)&&Tt(et.get(At)._k)&&Rt.push(At);return Promise.all(Rt.map(wt))}return wt(rt);async function wt(Tt){const[Rt]=serialize(Tt);if(!Rt)return;const[It,At]=createCacheHelper(et,Rt),[jt,Nt,kt,Ft]=SWRGlobalState.get(et),Ht=()=>{const cr=jt[Rt];return(isFunction$6(ut.revalidate)?ut.revalidate(It().data,Tt):ut.revalidate!==!1)&&(delete kt[Rt],delete Ft[Rt],cr&&cr[0])?cr[0](MUTATE_EVENT).then(()=>It().data):It().data};if(_e.length<3)return Ht();let Wt=st,Vt;const qt=getTimestamp();Nt[Rt]=[qt,0];const Gt=!isUndefined$2(xt),Xt=It(),Zt=Xt.data,lr=Xt._c,er=isUndefined$2(lr)?Zt:lr;if(Gt&&(xt=isFunction$6(xt)?xt(er,Zt):xt,At({data:xt,_c:er})),isFunction$6(Wt))try{Wt=Wt(er)}catch(cr){Vt=cr}if(Wt&&isPromiseLike(Wt))if(Wt=await Wt.catch(cr=>{Vt=cr}),qt!==Nt[Rt][0]){if(Vt)throw Vt;return Wt}else Vt&&Gt&&$t(Vt)&&(ft=!0,At({data:er,_c:UNDEFINED}));if(ft&&!Vt)if(isFunction$6(ft)){const cr=ft(Wt,er);At({data:cr,error:UNDEFINED,_c:UNDEFINED})}else At({data:Wt,error:UNDEFINED,_c:UNDEFINED});if(Nt[Rt][1]=getTimestamp(),Promise.resolve(Ht()).then(()=>{At({_c:UNDEFINED})}),Vt){if(_t)throw Vt;return}return Wt}}const revalidateAllKeys=(_e,et)=>{for(const rt in _e)_e[rt][0]&&_e[rt][0](et)},initCache=(_e,et)=>{if(!SWRGlobalState.has(_e)){const rt=mergeObjects(defaultConfigOptions,et),st={},ct=internalMutate.bind(UNDEFINED,_e);let ut=noop$2;const ft={},gt=(_t,wt)=>{const Tt=ft[_t]||[];return ft[_t]=Tt,Tt.push(wt),()=>Tt.splice(Tt.indexOf(wt),1)},xt=(_t,wt,Tt)=>{_e.set(_t,wt);const Rt=ft[_t];if(Rt)for(const It of Rt)It(wt,Tt)},$t=()=>{if(!SWRGlobalState.has(_e)&&(SWRGlobalState.set(_e,[st,{},{},{},ct,xt,gt]),!IS_SERVER)){const _t=rt.initFocus(setTimeout.bind(UNDEFINED,revalidateAllKeys.bind(UNDEFINED,st,FOCUS_EVENT))),wt=rt.initReconnect(setTimeout.bind(UNDEFINED,revalidateAllKeys.bind(UNDEFINED,st,RECONNECT_EVENT)));ut=()=>{_t&&_t(),wt&&wt(),SWRGlobalState.delete(_e)}}};return $t(),[_e,ct,$t,ut]}return[_e,SWRGlobalState.get(_e)[4]]},onErrorRetry=(_e,et,rt,st,ct)=>{const ut=rt.errorRetryCount,ft=ct.retryCount,gt=~~((Math.random()+.5)*(1<<(ft<8?ft:8)))*rt.errorRetryInterval;!isUndefined$2(ut)&&ft>ut||setTimeout(st,gt,ct)},compare=(_e,et)=>stableHash(_e)==stableHash(et),[cache,mutate]=initCache(new Map),defaultConfig=mergeObjects({onLoadingSlow:noop$2,onSuccess:noop$2,onError:noop$2,onErrorRetry,onDiscarded:noop$2,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:slowConnection?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:slowConnection?5e3:3e3,compare,isPaused:()=>!1,cache,mutate,fallback:{}},preset),mergeConfigs$2=(_e,et)=>{const rt=mergeObjects(_e,et);if(et){const{use:st,fallback:ct}=_e,{use:ut,fallback:ft}=et;st&&ut&&(rt.use=st.concat(ut)),ct&&ft&&(rt.fallback=mergeObjects(ct,ft))}return rt},SWRConfigContext=reactExports.createContext({}),SWRConfig$1=_e=>{const{value:et}=_e,rt=reactExports.useContext(SWRConfigContext),st=isFunction$6(et),ct=reactExports.useMemo(()=>st?et(rt):et,[st,rt,et]),ut=reactExports.useMemo(()=>st?ct:mergeConfigs$2(rt,ct),[st,rt,ct]),ft=ct&&ct.provider,gt=reactExports.useRef(UNDEFINED);ft&&!gt.current&&(gt.current=initCache(ft(ut.cache||cache),ct));const xt=gt.current;return xt&&(ut.cache=xt[0],ut.mutate=xt[1]),useIsomorphicLayoutEffect(()=>{if(xt)return xt[2]&&xt[2](),xt[3]},[]),reactExports.createElement(SWRConfigContext.Provider,mergeObjects(_e,{value:ut}))},INFINITE_PREFIX="$inf$",enableDevtools=isWindowDefined&&window.__SWR_DEVTOOLS_USE__,use$1=enableDevtools?window.__SWR_DEVTOOLS_USE__:[],setupDevTools=()=>{enableDevtools&&(window.__SWR_DEVTOOLS_REACT__=React$1)},normalize=_e=>isFunction$6(_e[1])?[_e[0],_e[1],_e[2]||{}]:[_e[0],null,(_e[1]===null?_e[2]:_e[1])||{}],useSWRConfig=()=>mergeObjects(defaultConfig,reactExports.useContext(SWRConfigContext)),middleware=_e=>(et,rt,st)=>_e(et,rt&&((...ut)=>{const[ft]=serialize(et),[,,,gt]=SWRGlobalState.get(cache);if(ft.startsWith(INFINITE_PREFIX))return rt(...ut);const xt=gt[ft];return isUndefined$2(xt)?rt(...ut):(delete gt[ft],xt)}),st),BUILT_IN_MIDDLEWARE=use$1.concat(middleware),withArgs=_e=>function(...rt){const st=useSWRConfig(),[ct,ut,ft]=normalize(rt),gt=mergeConfigs$2(st,ft);let xt=_e;const{use:$t}=gt,_t=($t||[]).concat(BUILT_IN_MIDDLEWARE);for(let wt=_t.length;wt--;)xt=_t[wt](xt);return xt(ct,ut||gt.fetcher||null,gt)},subscribeCallback=(_e,et,rt)=>{const st=et[_e]||(et[_e]=[]);return st.push(rt),()=>{const ct=st.indexOf(rt);ct>=0&&(st[ct]=st[st.length-1],st.pop())}};setupDevTools();const use=React$1.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(et=>{_e.status="fulfilled",_e.value=et},et=>{_e.status="rejected",_e.reason=et}),_e)}),WITH_DEDUPE={dedupe:!0},useSWRHandler=(_e,et,rt)=>{const{cache:st,compare:ct,suspense:ut,fallbackData:ft,revalidateOnMount:gt,revalidateIfStale:xt,refreshInterval:$t,refreshWhenHidden:_t,refreshWhenOffline:wt,keepPreviousData:Tt}=rt,[Rt,It,At,jt]=SWRGlobalState.get(st),[Nt,kt]=serialize(_e),Ft=reactExports.useRef(!1),Ht=reactExports.useRef(!1),Wt=reactExports.useRef(Nt),Vt=reactExports.useRef(et),qt=reactExports.useRef(rt),Gt=()=>qt.current,Xt=()=>Gt().isVisible()&&Gt().isOnline(),[Zt,lr,er,cr]=createCacheHelper(st,Nt),ur=reactExports.useRef({}).current,pr=isUndefined$2(ft)?rt.fallback[Nt]:ft,hr=(Mr,kr)=>{for(const Fr in ur){const wr=Fr;if(wr==="data"){if(!ct(Mr[wr],kr[wr])&&(!isUndefined$2(Mr[wr])||!ct(jr,kr[wr])))return!1}else if(kr[wr]!==Mr[wr])return!1}return!0},fr=reactExports.useMemo(()=>{const Mr=!Nt||!et?!1:isUndefined$2(gt)?Gt().isPaused()||ut?!1:isUndefined$2(xt)?!0:xt:gt,kr=Kr=>{const zr=mergeObjects(Kr);return delete zr._k,Mr?{isValidating:!0,isLoading:!0,...zr}:zr},Fr=Zt(),wr=cr(),Br=kr(Fr),Dr=Fr===wr?Br:kr(wr);let Xr=Br;return[()=>{const Kr=kr(Zt());return hr(Kr,Xr)?(Xr.data=Kr.data,Xr.isLoading=Kr.isLoading,Xr.isValidating=Kr.isValidating,Xr.error=Kr.error,Xr):(Xr=Kr,Kr)},()=>Dr]},[st,Nt]),dr=shimExports.useSyncExternalStore(reactExports.useCallback(Mr=>er(Nt,(kr,Fr)=>{hr(Fr,kr)||Mr()}),[st,Nt]),fr[0],fr[1]),yr=!Ft.current,$r=Rt[Nt]&&Rt[Nt].length>0,Er=dr.data,mr=isUndefined$2(Er)?pr:Er,Sr=dr.error,Tr=reactExports.useRef(mr),jr=Tt?isUndefined$2(Er)?Tr.current:Er:mr,Or=$r&&!isUndefined$2(Sr)?!1:yr&&!isUndefined$2(gt)?gt:Gt().isPaused()?!1:ut?isUndefined$2(mr)?!1:xt:isUndefined$2(mr)||xt,_r=!!(Nt&&et&&yr&&Or),Cr=isUndefined$2(dr.isValidating)?_r:dr.isValidating,Nr=isUndefined$2(dr.isLoading)?_r:dr.isLoading,Rr=reactExports.useCallback(async Mr=>{const kr=Vt.current;if(!Nt||!kr||Ht.current||Gt().isPaused())return!1;let Fr,wr,Br=!0;const Dr=Mr||{},Xr=!At[Nt]||!Dr.dedupe,Kr=()=>IS_REACT_LEGACY?!Ht.current&&Nt===Wt.current&&Ft.current:Nt===Wt.current,zr={isValidating:!1,isLoading:!1},qr=()=>{lr(zr)},pn=()=>{const Zr=At[Nt];Zr&&Zr[1]===wr&&delete At[Nt]},Qr={isValidating:!0};isUndefined$2(Zt().data)&&(Qr.isLoading=!0);try{if(Xr&&(lr(Qr),rt.loadingTimeout&&isUndefined$2(Zt().data)&&setTimeout(()=>{Br&&Kr()&&Gt().onLoadingSlow(Nt,rt)},rt.loadingTimeout),At[Nt]=[kr(kt),getTimestamp()]),[Fr,wr]=At[Nt],Fr=await Fr,Xr&&setTimeout(pn,rt.dedupingInterval),!At[Nt]||At[Nt][1]!==wr)return Xr&&Kr()&&Gt().onDiscarded(Nt),!1;zr.error=UNDEFINED;const Zr=It[Nt];if(!isUndefined$2(Zr)&&(wr<=Zr[0]||wr<=Zr[1]||Zr[1]===0))return qr(),Xr&&Kr()&&Gt().onDiscarded(Nt),!1;const vn=Zt().data;zr.data=ct(vn,Fr)?vn:Fr,Xr&&Kr()&&Gt().onSuccess(Fr,Nt,rt)}catch(Zr){pn();const vn=Gt(),{shouldRetryOnError:vr}=vn;vn.isPaused()||(zr.error=Zr,Xr&&Kr()&&(vn.onError(Zr,Nt,vn),(vr===!0||isFunction$6(vr)&&vr(Zr))&&(!Gt().revalidateOnFocus||!Gt().revalidateOnReconnect||Xt())&&vn.onErrorRetry(Zr,Nt,vn,gr=>{const br=Rt[Nt];br&&br[0]&&br[0](events.ERROR_REVALIDATE_EVENT,gr)},{retryCount:(Dr.retryCount||0)+1,dedupe:!0})))}return Br=!1,qr(),!0},[Nt,st]),Pr=reactExports.useCallback((...Mr)=>internalMutate(st,Wt.current,...Mr),[]);if(useIsomorphicLayoutEffect(()=>{Vt.current=et,qt.current=rt,isUndefined$2(Er)||(Tr.current=Er)}),useIsomorphicLayoutEffect(()=>{if(!Nt)return;const Mr=Rr.bind(UNDEFINED,WITH_DEDUPE);let kr=0;const wr=subscribeCallback(Nt,Rt,(Br,Dr={})=>{if(Br==events.FOCUS_EVENT){const Xr=Date.now();Gt().revalidateOnFocus&&Xr>kr&&Xt()&&(kr=Xr+Gt().focusThrottleInterval,Mr())}else if(Br==events.RECONNECT_EVENT)Gt().revalidateOnReconnect&&Xt()&&Mr();else{if(Br==events.MUTATE_EVENT)return Rr();if(Br==events.ERROR_REVALIDATE_EVENT)return Rr(Dr)}});return Ht.current=!1,Wt.current=Nt,Ft.current=!0,lr({_k:kt}),Or&&(isUndefined$2(mr)||IS_SERVER?Mr():rAF$1(Mr)),()=>{Ht.current=!0,wr()}},[Nt]),useIsomorphicLayoutEffect(()=>{let Mr;function kr(){const wr=isFunction$6($t)?$t(Zt().data):$t;wr&&Mr!==-1&&(Mr=setTimeout(Fr,wr))}function Fr(){!Zt().error&&(_t||Gt().isVisible())&&(wt||Gt().isOnline())?Rr(WITH_DEDUPE).then(kr):kr()}return kr(),()=>{Mr&&(clearTimeout(Mr),Mr=-1)}},[$t,_t,wt,Nt]),reactExports.useDebugValue(jr),ut&&isUndefined$2(mr)&&Nt){if(!IS_REACT_LEGACY&&IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");Vt.current=et,qt.current=rt,Ht.current=!1;const Mr=jt[Nt];if(!isUndefined$2(Mr)){const kr=Pr(Mr);use(kr)}if(isUndefined$2(Sr)){const kr=Rr(WITH_DEDUPE);isUndefined$2(jr)||(kr.status="fulfilled",kr.value=!0),use(kr)}else throw Sr}return{mutate:Pr,get data(){return ur.data=!0,jr},get error(){return ur.error=!0,Sr},get isValidating(){return ur.isValidating=!0,Cr},get isLoading(){return ur.isLoading=!0,Nr}}},SWRConfig=OBJECT.defineProperty(SWRConfig$1,"defaultValue",{value:defaultConfig}),useSWR=withArgs(useSWRHandler);function _createForOfIteratorHelper$1(_e,et){var rt=typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(!rt){if(Array.isArray(_e)||(rt=_unsupportedIterableToArray$3(_e))||et&&_e&&typeof _e.length=="number"){rt&&(_e=rt);var st=0,ct=function(){};return{s:ct,n:function(){return st>=_e.length?{done:!0}:{done:!1,value:_e[st++]}},e:function($t){throw $t},f:ct}}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 ut=!0,ft=!1,gt;return{s:function(){rt=rt.call(_e)},n:function(){var $t=rt.next();return ut=$t.done,$t},e:function($t){ft=!0,gt=$t},f:function(){try{!ut&&rt.return!=null&&rt.return()}finally{if(ft)throw gt}}}}const arEG$1={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:"غلق"}},caES={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"}},csCZ={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"}},deDE={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"}},enGB={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:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},enUS$1={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",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},esES={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"}},faIR={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:"نزدیک"}},frFR$1={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"}},heIL={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:"סגור"}},hrHR={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"}},idID={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"}},itIT={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"}},jaJP={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:"閉じる"}},koKR={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:"가까 운"}},mnMN={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:"Хаах"}},msMY={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"}},plPL={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ć"}},ptBR={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"}},ruRU={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:"По адресу:"}},skSK={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ť"}},srRS={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:"Затворите"}},thTH={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:"ปิด"}},trTR={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"}},ukUA={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:"Закрито"}},viVN={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"}},zhCN$1={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:"关闭"}},zhTW={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:"關閉"}};function get$6(_e,et,rt){var st=et.replace(/\[(\d+)\]/g,".$1").split("."),ct=_e,ut=rt,ft=_createForOfIteratorHelper$1(st),gt;try{for(ft.s();!(gt=ft.n()).done;){var xt=gt.value;if(ut=Object(ct)[xt],ct=Object(ct)[xt],ut===void 0)return rt}}catch($t){ft.e($t)}finally{ft.f()}return ut}var createIntl$2=function(et,rt){return{getMessage:function(ct,ut){return get$6(rt,ct,ut)||ut},locale:et}},mnMNIntl=createIntl$2("mn_MN",mnMN),arEGIntl=createIntl$2("ar_EG",arEG$1),zhCNIntl=createIntl$2("zh_CN",zhCN$1),enUSIntl=createIntl$2("en_US",enUS$1),enGBIntl=createIntl$2("en_GB",enGB),viVNIntl=createIntl$2("vi_VN",viVN),itITIntl=createIntl$2("it_IT",itIT),jaJPIntl=createIntl$2("ja_JP",jaJP),esESIntl=createIntl$2("es_ES",esES),caESIntl=createIntl$2("ca_ES",caES),ruRUIntl=createIntl$2("ru_RU",ruRU),srRSIntl=createIntl$2("sr_RS",srRS),msMYIntl=createIntl$2("ms_MY",msMY),zhTWIntl=createIntl$2("zh_TW",zhTW),frFRIntl=createIntl$2("fr_FR",frFR$1),ptBRIntl=createIntl$2("pt_BR",ptBR),koKRIntl=createIntl$2("ko_KR",koKR),idIDIntl=createIntl$2("id_ID",idID),deDEIntl=createIntl$2("de_DE",deDE),faIRIntl=createIntl$2("fa_IR",faIR),trTRIntl=createIntl$2("tr_TR",trTR),plPLIntl=createIntl$2("pl_PL",plPL),hrHRIntl=createIntl$2("hr_",hrHR),thTHIntl=createIntl$2("th_TH",thTH),csCZIntl=createIntl$2("cs_cz",csCZ),skSKIntl=createIntl$2("sk_SK",skSK),heILIntl=createIntl$2("he_IL",heIL),ukUAIntl=createIntl$2("uk_UA",ukUA),intlMap$1={"mn-MN":mnMNIntl,"ar-EG":arEGIntl,"zh-CN":zhCNIntl,"en-US":enUSIntl,"en-GB":enGBIntl,"vi-VN":viVNIntl,"it-IT":itITIntl,"ja-JP":jaJPIntl,"es-ES":esESIntl,"ca-ES":caESIntl,"ru-RU":ruRUIntl,"sr-RS":srRSIntl,"ms-MY":msMYIntl,"zh-TW":zhTWIntl,"fr-FR":frFRIntl,"pt-BR":ptBRIntl,"ko-KR":koKRIntl,"id-ID":idIDIntl,"de-DE":deDEIntl,"fa-IR":faIRIntl,"tr-TR":trTRIntl,"pl-PL":plPLIntl,"hr-HR":hrHRIntl,"th-TH":thTHIntl,"cs-CZ":csCZIntl,"sk-SK":skSKIntl,"he-IL":heILIntl,"uk-UA":ukUAIntl},intlMapKeys=Object.keys(intlMap$1),findIntlKeyByAntdLocaleKey=function(et){var rt=(et||"zh-CN").toLocaleLowerCase();return intlMapKeys.find(function(st){var ct=st.toLocaleLowerCase();return ct.includes(rt)})},_theme$defaultAlgorit,defaultToken={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",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'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"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)",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)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},hashCode=function(et){for(var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,st=3735928559^rt,ct=1103547991^rt,ut=0,ft;ut>>16,2246822507)^Math.imul(ct^ct>>>13,3266489909),ct=Math.imul(ct^ct>>>16,2246822507)^Math.imul(st^st>>>13,3266489909),4294967296*(2097151&ct)+(st>>>0)},emptyTheme=createTheme(function(_e){return _e}),token$1={theme:emptyTheme,token:_objectSpread2(_objectSpread2({},defaultToken),theme==null||(_theme$defaultAlgorit=theme.defaultAlgorithm)===null||_theme$defaultAlgorit===void 0?void 0:_theme$defaultAlgorit.call(theme,theme==null?void 0:theme.defaultSeed)),hashId:"pro-".concat(hashCode(JSON.stringify(defaultToken)))},useToken$2=function(){return token$1};const batToken=Object.defineProperty({__proto__:null,defaultToken,emptyTheme,hashCode,token:token$1,useToken:useToken$2},Symbol.toStringTag,{value:"Module"});var setAlpha=function(et,rt){return new TinyColor(et).setAlpha(rt).toRgbString()},genTheme=function(){return typeof theme>"u"||!theme?batToken:theme},proTheme=genTheme(),useToken$1=proTheme.useToken,resetComponent=function(et){return{boxSizing:"border-box",margin:0,padding:0,color:et.colorText,fontSize:et.fontSize,lineHeight:et.lineHeight,listStyle:"none"}};function useStyle$i(_e,et){var rt,st=reactExports.useContext(ProProvider),ct=st.token,ut=ct===void 0?{}:ct,ft=reactExports.useContext(ProProvider),gt=ft.hashId,xt=gt===void 0?"":gt,$t=ft.theme,_t=useToken$1(),wt=_t.token,Tt=reactExports.useContext(ConfigProvider$1.ConfigContext),Rt=Tt.getPrefixCls;return ut.layout||(ut=_objectSpread2({},wt)),ut.proComponentsCls=(rt=ut.proComponentsCls)!==null&&rt!==void 0?rt:".".concat(Rt("pro")),ut.antCls=".".concat(Rt()),{wrapSSR:useStyleRegister({theme:$t,token:ut,hashId:xt,path:[_e]},function(){return et(ut)}),hashId:xt}}var getLayoutDesignToken=function(et,rt){var st,ct,ut,ft,gt,xt=_objectSpread2({},et);return _objectSpread2(_objectSpread2({bgLayout:"linear-gradient(".concat(rt.colorBgContainer,", ").concat(rt.colorBgLayout," 28%)"),colorTextAppListIcon:rt.colorTextSecondary,appListIconHoverBgColor:xt==null||(st=xt.sider)===null||st===void 0?void 0:st.colorBgMenuItemSelected,colorBgAppListIconHover:setAlpha(rt.colorTextBase,.04),colorTextAppListIconHover:rt.colorTextBase},xt),{},{header:_objectSpread2({colorBgHeader:setAlpha(rt.colorBgElevated,.6),colorBgScrollHeader:setAlpha(rt.colorBgElevated,.8),colorHeaderTitle:rt.colorText,colorBgMenuItemHover:setAlpha(rt.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(xt==null||(ct=xt.header)===null||ct===void 0?void 0:ct.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(ut=xt.header)===null||ut===void 0?void 0:ut.colorBgHeader:rt.colorBgElevated,colorTextMenuSelected:setAlpha(rt.colorTextBase,.95),colorBgRightActionsItemHover:setAlpha(rt.colorTextBase,.03),colorTextRightActionsItem:rt.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:rt.colorTextSecondary,colorTextMenuSecondary:rt.colorTextTertiary,colorTextMenuTitle:rt.colorText,colorTextMenuActive:rt.colorText},xt.header),sider:_objectSpread2({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:rt.colorBgElevated,colorTextCollapsedButtonHover:rt.colorTextSecondary,colorTextCollapsedButton:setAlpha(rt.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:setAlpha(rt.colorTextBase,.06),colorBgMenuItemHover:setAlpha(rt.colorTextBase,.03),colorBgMenuItemSelected:setAlpha(rt.colorTextBase,.04),colorTextMenuItemHover:rt.colorText,colorTextMenuSelected:setAlpha(rt.colorTextBase,.95),colorTextMenuActive:rt.colorText,colorTextMenu:rt.colorTextSecondary,colorTextMenuSecondary:rt.colorTextTertiary,colorTextMenuTitle:rt.colorText,colorTextSubMenuSelected:setAlpha(rt.colorTextBase,.95)},xt.sider),pageContainer:_objectSpread2({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((ft=xt.pageContainer)===null||ft===void 0?void 0:ft.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((gt=xt.pageContainer)===null||gt===void 0?void 0:gt.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:rt.colorBgElevated},xt.pageContainer)})},merge$6=function(){for(var et={},rt=arguments.length,st=new Array(rt),ct=0;ct=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$4*et:Math.round(_e.h)+hueStep$4*et:st=rt?Math.round(_e.h)+hueStep$4*et:Math.round(_e.h)-hueStep$4*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$4(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$4*et:et===darkColorCount$4?st=_e.s+saturationStep$4:st=_e.s+saturationStep2$4*et,st>1&&(st=1),rt&&et===lightColorCount$4&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$6(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$4*et:st=_e.v-brightnessStep2$4*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$9(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$4;ct>0;ct-=1){var ut=toHsv$4(st),ft=toHex$4(inputToRGB$1({h:getHue$4(ut,ct,!0),s:getSaturation$4(ut,ct,!0),v:getValue$6(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$4(st));for(var gt=1;gt<=darkColorCount$4;gt+=1){var xt=toHsv$4(st),$t=toHex$4(inputToRGB$1({h:getHue$4(xt,gt),s:getSaturation$4(xt,gt),v:getValue$6(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$4.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$4(mix$4(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$4={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"},presetPalettes$4={},presetDarkPalettes$4={};Object.keys(presetPrimaryColors$4).forEach(function(_e){presetPalettes$4[_e]=generate$9(presetPrimaryColors$4[_e]),presetPalettes$4[_e].primary=presetPalettes$4[_e][5],presetDarkPalettes$4[_e]=generate$9(presetPrimaryColors$4[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$4[_e].primary=presetDarkPalettes$4[_e][5]});var blue$3=presetPalettes$4.blue;function camelCase$5(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$6(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$4(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$4(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$5(rt)]=st}return et},{})}function generate$8(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$4(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$8(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$4(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$8(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$4(_e){return generate$9(_e)[0]}function normalizeTwoToneColors$4(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$4=` + */function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(_e){for(var et=1;et=0)&&(rt[ct]=_e[ct]);return rt}function isModifiedEvent(_e){return!!(_e.metaKey||_e.altKey||_e.ctrlKey||_e.shiftKey)}function shouldProcessLinkClick(_e,et){return _e.button===0&&(!et||et==="_self")&&!isModifiedEvent(_e)}const _excluded$I=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}function createHashRouter(_e,et){return createRouter({basename:et==null?void 0:et.basename,future:_extends$7({},et==null?void 0:et.future,{v7_prependBasename:!0}),history:createHashHistory({window:et==null?void 0:et.window}),hydrationData:(et==null?void 0:et.hydrationData)||parseHydrationData(),routes:_e,mapRouteProperties,window:et==null?void 0:et.window}).initialize()}function parseHydrationData(){var _e;let et=(_e=window)==null?void 0:_e.__staticRouterHydrationData;return et&&et.errors&&(et=_extends$7({},et,{errors:deserializeErrors(et.errors)})),et}function deserializeErrors(_e){if(!_e)return null;let et=Object.entries(_e),rt={};for(let[st,ct]of et)if(ct&&ct.__type==="RouteErrorResponse")rt[st]=new ErrorResponseImpl(ct.status,ct.statusText,ct.data,ct.internal===!0);else if(ct&&ct.__type==="Error"){if(ct.__subType){let ut=window[ct.__subType];if(typeof ut=="function")try{let ft=new ut(ct.message);ft.stack="",rt[st]=ft}catch{}}if(rt[st]==null){let ut=new Error(ct.message);ut.stack="",rt[st]=ut}}else rt[st]=ct;return rt}const ViewTransitionContext=reactExports.createContext({isTransitioning:!1}),FetchersContext=reactExports.createContext(new Map),START_TRANSITION="startTransition",startTransitionImpl=React$2[START_TRANSITION],FLUSH_SYNC="flushSync",flushSyncImpl=ReactDOM$1[FLUSH_SYNC];function startTransitionSafe(_e){startTransitionImpl?startTransitionImpl(_e):_e()}function flushSyncSafe(_e){flushSyncImpl?flushSyncImpl(_e):_e()}class Deferred{constructor(){this.status="pending",this.promise=new Promise((et,rt)=>{this.resolve=st=>{this.status==="pending"&&(this.status="resolved",et(st))},this.reject=st=>{this.status==="pending"&&(this.status="rejected",rt(st))}})}}function RouterProvider(_e){let{fallbackElement:et,router:rt,future:st}=_e,[ct,ut]=reactExports.useState(rt.state),[ft,gt]=reactExports.useState(),[xt,$t]=reactExports.useState({isTransitioning:!1}),[_t,wt]=reactExports.useState(),[Tt,Rt]=reactExports.useState(),[It,At]=reactExports.useState(),jt=reactExports.useRef(new Map),{v7_startTransition:Nt}=st||{},kt=reactExports.useCallback(qt=>{Nt?startTransitionSafe(qt):qt()},[Nt]),Ft=reactExports.useCallback((qt,Xt)=>{let{deletedFetchers:Gt,unstable_flushSync:Zt,unstable_viewTransitionOpts:er}=Xt;Gt.forEach(cr=>jt.current.delete(cr)),qt.fetchers.forEach((cr,ur)=>{cr.data!==void 0&&jt.current.set(ur,cr.data)});let lr=rt.window==null||typeof rt.window.document.startViewTransition!="function";if(!er||lr){Zt?flushSyncSafe(()=>ut(qt)):kt(()=>ut(qt));return}if(Zt){flushSyncSafe(()=>{Tt&&(_t&&_t.resolve(),Tt.skipTransition()),$t({isTransitioning:!0,flushSync:!0,currentLocation:er.currentLocation,nextLocation:er.nextLocation})});let cr=rt.window.document.startViewTransition(()=>{flushSyncSafe(()=>ut(qt))});cr.finished.finally(()=>{flushSyncSafe(()=>{wt(void 0),Rt(void 0),gt(void 0),$t({isTransitioning:!1})})}),flushSyncSafe(()=>Rt(cr));return}Tt?(_t&&_t.resolve(),Tt.skipTransition(),At({state:qt,currentLocation:er.currentLocation,nextLocation:er.nextLocation})):(gt(qt),$t({isTransitioning:!0,flushSync:!1,currentLocation:er.currentLocation,nextLocation:er.nextLocation}))},[rt.window,Tt,_t,jt,kt]);reactExports.useLayoutEffect(()=>rt.subscribe(Ft),[rt,Ft]),reactExports.useEffect(()=>{xt.isTransitioning&&!xt.flushSync&&wt(new Deferred)},[xt]),reactExports.useEffect(()=>{if(_t&&ft&&rt.window){let qt=ft,Xt=_t.promise,Gt=rt.window.document.startViewTransition(async()=>{kt(()=>ut(qt)),await Xt});Gt.finished.finally(()=>{wt(void 0),Rt(void 0),gt(void 0),$t({isTransitioning:!1})}),Rt(Gt)}},[kt,ft,_t,rt.window]),reactExports.useEffect(()=>{_t&&ft&&ct.location.key===ft.location.key&&_t.resolve()},[_t,Tt,ct.location,ft]),reactExports.useEffect(()=>{!xt.isTransitioning&&It&&(gt(It.state),$t({isTransitioning:!0,flushSync:!1,currentLocation:It.currentLocation,nextLocation:It.nextLocation}),At(void 0))},[xt.isTransitioning,It]),reactExports.useEffect(()=>{},[]);let Ht=reactExports.useMemo(()=>({createHref:rt.createHref,encodeLocation:rt.encodeLocation,go:qt=>rt.navigate(qt),push:(qt,Xt,Gt)=>rt.navigate(qt,{state:Xt,preventScrollReset:Gt==null?void 0:Gt.preventScrollReset}),replace:(qt,Xt,Gt)=>rt.navigate(qt,{replace:!0,state:Xt,preventScrollReset:Gt==null?void 0:Gt.preventScrollReset})}),[rt]),Wt=rt.basename||"/",Vt=reactExports.useMemo(()=>({router:rt,navigator:Ht,static:!1,basename:Wt}),[rt,Ht,Wt]);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(DataRouterContext.Provider,{value:Vt},reactExports.createElement(DataRouterStateContext.Provider,{value:ct},reactExports.createElement(FetchersContext.Provider,{value:jt.current},reactExports.createElement(ViewTransitionContext.Provider,{value:xt},reactExports.createElement(Router,{basename:Wt,location:ct.location,navigationType:ct.historyAction,navigator:Ht,future:{v7_relativeSplatPath:rt.future.v7_relativeSplatPath}},ct.initialized||rt.future.v7_partialHydration?reactExports.createElement(DataRoutes,{routes:rt.routes,future:rt.future,state:ct}):et))))),null)}function DataRoutes(_e){let{routes:et,future:rt,state:st}=_e;return useRoutesImpl(et,void 0,st,rt)}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(et,rt){let{onClick:st,relative:ct,reloadDocument:ut,replace:ft,state:gt,target:xt,to:$t,preventScrollReset:_t,unstable_viewTransition:wt}=et,Tt=_objectWithoutPropertiesLoose$2(et,_excluded$I),{basename:Rt}=reactExports.useContext(NavigationContext),It,At=!1;if(typeof $t=="string"&&ABSOLUTE_URL_REGEX.test($t)&&(It=$t,isBrowser$1))try{let Ft=new URL(window.location.href),Ht=$t.startsWith("//")?new URL(Ft.protocol+$t):new URL($t),Wt=stripBasename(Ht.pathname,Rt);Ht.origin===Ft.origin&&Wt!=null?$t=Wt+Ht.search+Ht.hash:At=!0}catch{}let jt=useHref($t,{relative:ct}),Nt=useLinkClickHandler($t,{replace:ft,state:gt,target:xt,preventScrollReset:_t,relative:ct,unstable_viewTransition:wt});function kt(Ft){st&&st(Ft),Ft.defaultPrevented||Nt(Ft)}return reactExports.createElement("a",_extends$7({},Tt,{href:It||jt,onClick:At||ut?st:kt,ref:rt,target:xt}))});var DataRouterHook;(function(_e){_e.UseScrollRestoration="useScrollRestoration",_e.UseSubmit="useSubmit",_e.UseSubmitFetcher="useSubmitFetcher",_e.UseFetcher="useFetcher",_e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(_e){_e.UseFetcher="useFetcher",_e.UseFetchers="useFetchers",_e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(_e,et){let{target:rt,replace:st,state:ct,preventScrollReset:ut,relative:ft,unstable_viewTransition:gt}=et===void 0?{}:et,xt=useNavigate(),$t=useLocation(),_t=useResolvedPath(_e,{relative:ft});return reactExports.useCallback(wt=>{if(shouldProcessLinkClick(wt,rt)){wt.preventDefault();let Tt=st!==void 0?st:createPath($t)===createPath(_t);xt(_e,{replace:Tt,state:ct,preventScrollReset:ut,relative:ft,unstable_viewTransition:gt})}},[$t,xt,_t,st,ct,rt,_e,ut,ft,gt])}var locale$5={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$4={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},TimePicker=locale$4,locale$3={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$5),timePickerLocale:Object.assign({},TimePicker)};locale$3.lang.ok="确定";const DatePicker=locale$3,typeTemplate="${label}不是一个有效的${type}",localeValues={locale:"zh-cn",Pagination:locale$6,DatePicker,TimePicker,Calendar:DatePicker,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",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:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},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:"暂无"}},zh_CN=localeValues,noop$2=()=>{},UNDEFINED=noop$2(),OBJECT=Object,isUndefined$2=_e=>_e===UNDEFINED,isFunction$6=_e=>typeof _e=="function",mergeObjects=(_e,et)=>({..._e,...et}),isPromiseLike=_e=>isFunction$6(_e.then),table=new WeakMap;let counter=0;const stableHash=_e=>{const et=typeof _e,rt=_e&&_e.constructor,st=rt==Date;let ct,ut;if(OBJECT(_e)===_e&&!st&&rt!=RegExp){if(ct=table.get(_e),ct)return ct;if(ct=++counter+"~",table.set(_e,ct),rt==Array){for(ct="@",ut=0;ut<_e.length;ut++)ct+=stableHash(_e[ut])+",";table.set(_e,ct)}if(rt==OBJECT){ct="#";const ft=OBJECT.keys(_e).sort();for(;!isUndefined$2(ut=ft.pop());)isUndefined$2(_e[ut])||(ct+=ut+":"+stableHash(_e[ut])+",");table.set(_e,ct)}}else ct=st?_e.toJSON():et=="symbol"?_e.toString():et=="string"?JSON.stringify(_e):""+_e;return ct},SWRGlobalState=new WeakMap,EMPTY_CACHE={},INITIAL_CACHE={},STR_UNDEFINED="undefined",isWindowDefined=typeof window!=STR_UNDEFINED,isDocumentDefined=typeof document!=STR_UNDEFINED,hasRequestAnimationFrame=()=>isWindowDefined&&typeof window.requestAnimationFrame!=STR_UNDEFINED,createCacheHelper=(_e,et)=>{const rt=SWRGlobalState.get(_e);return[()=>!isUndefined$2(et)&&_e.get(et)||EMPTY_CACHE,st=>{if(!isUndefined$2(et)){const ct=_e.get(et);et in INITIAL_CACHE||(INITIAL_CACHE[et]=ct),rt[5](et,mergeObjects(ct,st),ct||EMPTY_CACHE)}},rt[6],()=>!isUndefined$2(et)&&et in INITIAL_CACHE?INITIAL_CACHE[et]:!isUndefined$2(et)&&_e.get(et)||EMPTY_CACHE]};let online=!0;const isOnline=()=>online,[onWindowEvent,offWindowEvent]=isWindowDefined&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[noop$2,noop$2],isVisible=()=>{const _e=isDocumentDefined&&document.visibilityState;return isUndefined$2(_e)||_e!=="hidden"},initFocus=_e=>(isDocumentDefined&&document.addEventListener("visibilitychange",_e),onWindowEvent("focus",_e),()=>{isDocumentDefined&&document.removeEventListener("visibilitychange",_e),offWindowEvent("focus",_e)}),initReconnect=_e=>{const et=()=>{online=!0,_e()},rt=()=>{online=!1};return onWindowEvent("online",et),onWindowEvent("offline",rt),()=>{offWindowEvent("online",et),offWindowEvent("offline",rt)}},preset={isOnline,isVisible},defaultConfigOptions={initFocus,initReconnect},IS_REACT_LEGACY=!React$1.useId,IS_SERVER=!isWindowDefined||"Deno"in window,rAF$1=_e=>hasRequestAnimationFrame()?window.requestAnimationFrame(_e):setTimeout(_e,1),useIsomorphicLayoutEffect=IS_SERVER?reactExports.useEffect:reactExports.useLayoutEffect,navigatorConnection=typeof navigator<"u"&&navigator.connection,slowConnection=!IS_SERVER&&navigatorConnection&&(["slow-2g","2g"].includes(navigatorConnection.effectiveType)||navigatorConnection.saveData),serialize=_e=>{if(isFunction$6(_e))try{_e=_e()}catch{_e=""}const et=_e;return _e=typeof _e=="string"?_e:(Array.isArray(_e)?_e.length:_e)?stableHash(_e):"",[_e,et]};let __timestamp=0;const getTimestamp=()=>++__timestamp,FOCUS_EVENT=0,RECONNECT_EVENT=1,MUTATE_EVENT=2,ERROR_REVALIDATE_EVENT=3;var events={__proto__:null,ERROR_REVALIDATE_EVENT,FOCUS_EVENT,MUTATE_EVENT,RECONNECT_EVENT};async function internalMutate(..._e){const[et,rt,st,ct]=_e,ut=mergeObjects({populateCache:!0,throwOnError:!0},typeof ct=="boolean"?{revalidate:ct}:ct||{});let ft=ut.populateCache;const gt=ut.rollbackOnError;let xt=ut.optimisticData;const $t=Tt=>typeof gt=="function"?gt(Tt):gt!==!1,_t=ut.throwOnError;if(isFunction$6(rt)){const Tt=rt,Rt=[],It=et.keys();for(const At of It)!/^\$(inf|sub)\$/.test(At)&&Tt(et.get(At)._k)&&Rt.push(At);return Promise.all(Rt.map(wt))}return wt(rt);async function wt(Tt){const[Rt]=serialize(Tt);if(!Rt)return;const[It,At]=createCacheHelper(et,Rt),[jt,Nt,kt,Ft]=SWRGlobalState.get(et),Ht=()=>{const cr=jt[Rt];return(isFunction$6(ut.revalidate)?ut.revalidate(It().data,Tt):ut.revalidate!==!1)&&(delete kt[Rt],delete Ft[Rt],cr&&cr[0])?cr[0](MUTATE_EVENT).then(()=>It().data):It().data};if(_e.length<3)return Ht();let Wt=st,Vt;const qt=getTimestamp();Nt[Rt]=[qt,0];const Xt=!isUndefined$2(xt),Gt=It(),Zt=Gt.data,er=Gt._c,lr=isUndefined$2(er)?Zt:er;if(Xt&&(xt=isFunction$6(xt)?xt(lr,Zt):xt,At({data:xt,_c:lr})),isFunction$6(Wt))try{Wt=Wt(lr)}catch(cr){Vt=cr}if(Wt&&isPromiseLike(Wt))if(Wt=await Wt.catch(cr=>{Vt=cr}),qt!==Nt[Rt][0]){if(Vt)throw Vt;return Wt}else Vt&&Xt&&$t(Vt)&&(ft=!0,At({data:lr,_c:UNDEFINED}));if(ft&&!Vt)if(isFunction$6(ft)){const cr=ft(Wt,lr);At({data:cr,error:UNDEFINED,_c:UNDEFINED})}else At({data:Wt,error:UNDEFINED,_c:UNDEFINED});if(Nt[Rt][1]=getTimestamp(),Promise.resolve(Ht()).then(()=>{At({_c:UNDEFINED})}),Vt){if(_t)throw Vt;return}return Wt}}const revalidateAllKeys=(_e,et)=>{for(const rt in _e)_e[rt][0]&&_e[rt][0](et)},initCache=(_e,et)=>{if(!SWRGlobalState.has(_e)){const rt=mergeObjects(defaultConfigOptions,et),st={},ct=internalMutate.bind(UNDEFINED,_e);let ut=noop$2;const ft={},gt=(_t,wt)=>{const Tt=ft[_t]||[];return ft[_t]=Tt,Tt.push(wt),()=>Tt.splice(Tt.indexOf(wt),1)},xt=(_t,wt,Tt)=>{_e.set(_t,wt);const Rt=ft[_t];if(Rt)for(const It of Rt)It(wt,Tt)},$t=()=>{if(!SWRGlobalState.has(_e)&&(SWRGlobalState.set(_e,[st,{},{},{},ct,xt,gt]),!IS_SERVER)){const _t=rt.initFocus(setTimeout.bind(UNDEFINED,revalidateAllKeys.bind(UNDEFINED,st,FOCUS_EVENT))),wt=rt.initReconnect(setTimeout.bind(UNDEFINED,revalidateAllKeys.bind(UNDEFINED,st,RECONNECT_EVENT)));ut=()=>{_t&&_t(),wt&&wt(),SWRGlobalState.delete(_e)}}};return $t(),[_e,ct,$t,ut]}return[_e,SWRGlobalState.get(_e)[4]]},onErrorRetry=(_e,et,rt,st,ct)=>{const ut=rt.errorRetryCount,ft=ct.retryCount,gt=~~((Math.random()+.5)*(1<<(ft<8?ft:8)))*rt.errorRetryInterval;!isUndefined$2(ut)&&ft>ut||setTimeout(st,gt,ct)},compare=(_e,et)=>stableHash(_e)==stableHash(et),[cache$1,mutate]=initCache(new Map),defaultConfig=mergeObjects({onLoadingSlow:noop$2,onSuccess:noop$2,onError:noop$2,onErrorRetry,onDiscarded:noop$2,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:slowConnection?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:slowConnection?5e3:3e3,compare,isPaused:()=>!1,cache:cache$1,mutate,fallback:{}},preset),mergeConfigs$2=(_e,et)=>{const rt=mergeObjects(_e,et);if(et){const{use:st,fallback:ct}=_e,{use:ut,fallback:ft}=et;st&&ut&&(rt.use=st.concat(ut)),ct&&ft&&(rt.fallback=mergeObjects(ct,ft))}return rt},SWRConfigContext=reactExports.createContext({}),SWRConfig$1=_e=>{const{value:et}=_e,rt=reactExports.useContext(SWRConfigContext),st=isFunction$6(et),ct=reactExports.useMemo(()=>st?et(rt):et,[st,rt,et]),ut=reactExports.useMemo(()=>st?ct:mergeConfigs$2(rt,ct),[st,rt,ct]),ft=ct&&ct.provider,gt=reactExports.useRef(UNDEFINED);ft&&!gt.current&&(gt.current=initCache(ft(ut.cache||cache$1),ct));const xt=gt.current;return xt&&(ut.cache=xt[0],ut.mutate=xt[1]),useIsomorphicLayoutEffect(()=>{if(xt)return xt[2]&&xt[2](),xt[3]},[]),reactExports.createElement(SWRConfigContext.Provider,mergeObjects(_e,{value:ut}))},INFINITE_PREFIX="$inf$",enableDevtools=isWindowDefined&&window.__SWR_DEVTOOLS_USE__,use$1=enableDevtools?window.__SWR_DEVTOOLS_USE__:[],setupDevTools=()=>{enableDevtools&&(window.__SWR_DEVTOOLS_REACT__=React$1)},normalize=_e=>isFunction$6(_e[1])?[_e[0],_e[1],_e[2]||{}]:[_e[0],null,(_e[1]===null?_e[2]:_e[1])||{}],useSWRConfig=()=>mergeObjects(defaultConfig,reactExports.useContext(SWRConfigContext)),middleware=_e=>(et,rt,st)=>_e(et,rt&&((...ut)=>{const[ft]=serialize(et),[,,,gt]=SWRGlobalState.get(cache$1);if(ft.startsWith(INFINITE_PREFIX))return rt(...ut);const xt=gt[ft];return isUndefined$2(xt)?rt(...ut):(delete gt[ft],xt)}),st),BUILT_IN_MIDDLEWARE=use$1.concat(middleware),withArgs=_e=>function(...rt){const st=useSWRConfig(),[ct,ut,ft]=normalize(rt),gt=mergeConfigs$2(st,ft);let xt=_e;const{use:$t}=gt,_t=($t||[]).concat(BUILT_IN_MIDDLEWARE);for(let wt=_t.length;wt--;)xt=_t[wt](xt);return xt(ct,ut||gt.fetcher||null,gt)},subscribeCallback=(_e,et,rt)=>{const st=et[_e]||(et[_e]=[]);return st.push(rt),()=>{const ct=st.indexOf(rt);ct>=0&&(st[ct]=st[st.length-1],st.pop())}};setupDevTools();const use=React$1.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(et=>{_e.status="fulfilled",_e.value=et},et=>{_e.status="rejected",_e.reason=et}),_e)}),WITH_DEDUPE={dedupe:!0},useSWRHandler=(_e,et,rt)=>{const{cache:st,compare:ct,suspense:ut,fallbackData:ft,revalidateOnMount:gt,revalidateIfStale:xt,refreshInterval:$t,refreshWhenHidden:_t,refreshWhenOffline:wt,keepPreviousData:Tt}=rt,[Rt,It,At,jt]=SWRGlobalState.get(st),[Nt,kt]=serialize(_e),Ft=reactExports.useRef(!1),Ht=reactExports.useRef(!1),Wt=reactExports.useRef(Nt),Vt=reactExports.useRef(et),qt=reactExports.useRef(rt),Xt=()=>qt.current,Gt=()=>Xt().isVisible()&&Xt().isOnline(),[Zt,er,lr,cr]=createCacheHelper(st,Nt),ur=reactExports.useRef({}).current,fr=isUndefined$2(ft)?rt.fallback[Nt]:ft,hr=(jr,kr)=>{for(const Fr in ur){const _r=Fr;if(_r==="data"){if(!ct(jr[_r],kr[_r])&&(!isUndefined$2(jr[_r])||!ct(Mr,kr[_r])))return!1}else if(kr[_r]!==jr[_r])return!1}return!0},pr=reactExports.useMemo(()=>{const jr=!Nt||!et?!1:isUndefined$2(gt)?Xt().isPaused()||ut?!1:isUndefined$2(xt)?!0:xt:gt,kr=Kr=>{const Hr=mergeObjects(Kr);return delete Hr._k,jr?{isValidating:!0,isLoading:!0,...Hr}:Hr},Fr=Zt(),_r=cr(),Br=kr(Fr),Dr=Fr===_r?Br:kr(_r);let Xr=Br;return[()=>{const Kr=kr(Zt());return hr(Kr,Xr)?(Xr.data=Kr.data,Xr.isLoading=Kr.isLoading,Xr.isValidating=Kr.isValidating,Xr.error=Kr.error,Xr):(Xr=Kr,Kr)},()=>Dr]},[st,Nt]),dr=shimExports.useSyncExternalStore(reactExports.useCallback(jr=>lr(Nt,(kr,Fr)=>{hr(Fr,kr)||jr()}),[st,Nt]),pr[0],pr[1]),yr=!Ft.current,Sr=Rt[Nt]&&Rt[Nt].length>0,br=dr.data,mr=isUndefined$2(br)?fr:br,Er=dr.error,Tr=reactExports.useRef(mr),Mr=Tt?isUndefined$2(br)?Tr.current:br:mr,Or=Sr&&!isUndefined$2(Er)?!1:yr&&!isUndefined$2(gt)?gt:Xt().isPaused()?!1:ut?isUndefined$2(mr)?!1:xt:isUndefined$2(mr)||xt,wr=!!(Nt&&et&&yr&&Or),Cr=isUndefined$2(dr.isValidating)?wr:dr.isValidating,Nr=isUndefined$2(dr.isLoading)?wr:dr.isLoading,Rr=reactExports.useCallback(async jr=>{const kr=Vt.current;if(!Nt||!kr||Ht.current||Xt().isPaused())return!1;let Fr,_r,Br=!0;const Dr=jr||{},Xr=!At[Nt]||!Dr.dedupe,Kr=()=>IS_REACT_LEGACY?!Ht.current&&Nt===Wt.current&&Ft.current:Nt===Wt.current,Hr={isValidating:!1,isLoading:!1},Vr=()=>{er(Hr)},ln=()=>{const Zr=At[Nt];Zr&&Zr[1]===_r&&delete At[Nt]},Qr={isValidating:!0};isUndefined$2(Zt().data)&&(Qr.isLoading=!0);try{if(Xr&&(er(Qr),rt.loadingTimeout&&isUndefined$2(Zt().data)&&setTimeout(()=>{Br&&Kr()&&Xt().onLoadingSlow(Nt,rt)},rt.loadingTimeout),At[Nt]=[kr(kt),getTimestamp()]),[Fr,_r]=At[Nt],Fr=await Fr,Xr&&setTimeout(ln,rt.dedupingInterval),!At[Nt]||At[Nt][1]!==_r)return Xr&&Kr()&&Xt().onDiscarded(Nt),!1;Hr.error=UNDEFINED;const Zr=It[Nt];if(!isUndefined$2(Zr)&&(_r<=Zr[0]||_r<=Zr[1]||Zr[1]===0))return Vr(),Xr&&Kr()&&Xt().onDiscarded(Nt),!1;const vn=Zt().data;Hr.data=ct(vn,Fr)?vn:Fr,Xr&&Kr()&&Xt().onSuccess(Fr,Nt,rt)}catch(Zr){ln();const vn=Xt(),{shouldRetryOnError:vr}=vn;vn.isPaused()||(Hr.error=Zr,Xr&&Kr()&&(vn.onError(Zr,Nt,vn),(vr===!0||isFunction$6(vr)&&vr(Zr))&&(!Xt().revalidateOnFocus||!Xt().revalidateOnReconnect||Gt())&&vn.onErrorRetry(Zr,Nt,vn,gr=>{const $r=Rt[Nt];$r&&$r[0]&&$r[0](events.ERROR_REVALIDATE_EVENT,gr)},{retryCount:(Dr.retryCount||0)+1,dedupe:!0})))}return Br=!1,Vr(),!0},[Nt,st]),Pr=reactExports.useCallback((...jr)=>internalMutate(st,Wt.current,...jr),[]);if(useIsomorphicLayoutEffect(()=>{Vt.current=et,qt.current=rt,isUndefined$2(br)||(Tr.current=br)}),useIsomorphicLayoutEffect(()=>{if(!Nt)return;const jr=Rr.bind(UNDEFINED,WITH_DEDUPE);let kr=0;const _r=subscribeCallback(Nt,Rt,(Br,Dr={})=>{if(Br==events.FOCUS_EVENT){const Xr=Date.now();Xt().revalidateOnFocus&&Xr>kr&&Gt()&&(kr=Xr+Xt().focusThrottleInterval,jr())}else if(Br==events.RECONNECT_EVENT)Xt().revalidateOnReconnect&&Gt()&&jr();else{if(Br==events.MUTATE_EVENT)return Rr();if(Br==events.ERROR_REVALIDATE_EVENT)return Rr(Dr)}});return Ht.current=!1,Wt.current=Nt,Ft.current=!0,er({_k:kt}),Or&&(isUndefined$2(mr)||IS_SERVER?jr():rAF$1(jr)),()=>{Ht.current=!0,_r()}},[Nt]),useIsomorphicLayoutEffect(()=>{let jr;function kr(){const _r=isFunction$6($t)?$t(Zt().data):$t;_r&&jr!==-1&&(jr=setTimeout(Fr,_r))}function Fr(){!Zt().error&&(_t||Xt().isVisible())&&(wt||Xt().isOnline())?Rr(WITH_DEDUPE).then(kr):kr()}return kr(),()=>{jr&&(clearTimeout(jr),jr=-1)}},[$t,_t,wt,Nt]),reactExports.useDebugValue(Mr),ut&&isUndefined$2(mr)&&Nt){if(!IS_REACT_LEGACY&&IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");Vt.current=et,qt.current=rt,Ht.current=!1;const jr=jt[Nt];if(!isUndefined$2(jr)){const kr=Pr(jr);use(kr)}if(isUndefined$2(Er)){const kr=Rr(WITH_DEDUPE);isUndefined$2(Mr)||(kr.status="fulfilled",kr.value=!0),use(kr)}else throw Er}return{mutate:Pr,get data(){return ur.data=!0,Mr},get error(){return ur.error=!0,Er},get isValidating(){return ur.isValidating=!0,Cr},get isLoading(){return ur.isLoading=!0,Nr}}},SWRConfig=OBJECT.defineProperty(SWRConfig$1,"defaultValue",{value:defaultConfig}),useSWR=withArgs(useSWRHandler);function _createForOfIteratorHelper$1(_e,et){var rt=typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(!rt){if(Array.isArray(_e)||(rt=_unsupportedIterableToArray$3(_e))||et&&_e&&typeof _e.length=="number"){rt&&(_e=rt);var st=0,ct=function(){};return{s:ct,n:function(){return st>=_e.length?{done:!0}:{done:!1,value:_e[st++]}},e:function($t){throw $t},f:ct}}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 ut=!0,ft=!1,gt;return{s:function(){rt=rt.call(_e)},n:function(){var $t=rt.next();return ut=$t.done,$t},e:function($t){ft=!0,gt=$t},f:function(){try{!ut&&rt.return!=null&&rt.return()}finally{if(ft)throw gt}}}}const arEG$1={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:"غلق"}},caES={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"}},csCZ={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"}},deDE={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"}},enGB={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:{action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},enUS$1={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",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},esES={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"}},faIR={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:"نزدیک"}},frFR$1={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"}},heIL={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:"סגור"}},hrHR={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"}},idID={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"}},itIT={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"}},jaJP={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:"閉じる"}},koKR={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:"가까 운"}},mnMN={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:"Хаах"}},msMY={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"}},plPL={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ć"}},ptBR={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"}},ruRU={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:"По адресу:"}},skSK={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ť"}},srRS={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:"Затворите"}},thTH={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:"ปิด"}},trTR={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"}},ukUA={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:"Закрито"}},viVN={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"}},zhCN$1={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:"关闭"}},zhTW={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:"關閉"}};function get$6(_e,et,rt){var st=et.replace(/\[(\d+)\]/g,".$1").split("."),ct=_e,ut=rt,ft=_createForOfIteratorHelper$1(st),gt;try{for(ft.s();!(gt=ft.n()).done;){var xt=gt.value;if(ut=Object(ct)[xt],ct=Object(ct)[xt],ut===void 0)return rt}}catch($t){ft.e($t)}finally{ft.f()}return ut}var createIntl$2=function(et,rt){return{getMessage:function(ct,ut){return get$6(rt,ct,ut)||ut},locale:et}},mnMNIntl=createIntl$2("mn_MN",mnMN),arEGIntl=createIntl$2("ar_EG",arEG$1),zhCNIntl=createIntl$2("zh_CN",zhCN$1),enUSIntl=createIntl$2("en_US",enUS$1),enGBIntl=createIntl$2("en_GB",enGB),viVNIntl=createIntl$2("vi_VN",viVN),itITIntl=createIntl$2("it_IT",itIT),jaJPIntl=createIntl$2("ja_JP",jaJP),esESIntl=createIntl$2("es_ES",esES),caESIntl=createIntl$2("ca_ES",caES),ruRUIntl=createIntl$2("ru_RU",ruRU),srRSIntl=createIntl$2("sr_RS",srRS),msMYIntl=createIntl$2("ms_MY",msMY),zhTWIntl=createIntl$2("zh_TW",zhTW),frFRIntl=createIntl$2("fr_FR",frFR$1),ptBRIntl=createIntl$2("pt_BR",ptBR),koKRIntl=createIntl$2("ko_KR",koKR),idIDIntl=createIntl$2("id_ID",idID),deDEIntl=createIntl$2("de_DE",deDE),faIRIntl=createIntl$2("fa_IR",faIR),trTRIntl=createIntl$2("tr_TR",trTR),plPLIntl=createIntl$2("pl_PL",plPL),hrHRIntl=createIntl$2("hr_",hrHR),thTHIntl=createIntl$2("th_TH",thTH),csCZIntl=createIntl$2("cs_cz",csCZ),skSKIntl=createIntl$2("sk_SK",skSK),heILIntl=createIntl$2("he_IL",heIL),ukUAIntl=createIntl$2("uk_UA",ukUA),intlMap$1={"mn-MN":mnMNIntl,"ar-EG":arEGIntl,"zh-CN":zhCNIntl,"en-US":enUSIntl,"en-GB":enGBIntl,"vi-VN":viVNIntl,"it-IT":itITIntl,"ja-JP":jaJPIntl,"es-ES":esESIntl,"ca-ES":caESIntl,"ru-RU":ruRUIntl,"sr-RS":srRSIntl,"ms-MY":msMYIntl,"zh-TW":zhTWIntl,"fr-FR":frFRIntl,"pt-BR":ptBRIntl,"ko-KR":koKRIntl,"id-ID":idIDIntl,"de-DE":deDEIntl,"fa-IR":faIRIntl,"tr-TR":trTRIntl,"pl-PL":plPLIntl,"hr-HR":hrHRIntl,"th-TH":thTHIntl,"cs-CZ":csCZIntl,"sk-SK":skSKIntl,"he-IL":heILIntl,"uk-UA":ukUAIntl},intlMapKeys=Object.keys(intlMap$1),findIntlKeyByAntdLocaleKey=function(et){var rt=(et||"zh-CN").toLocaleLowerCase();return intlMapKeys.find(function(st){var ct=st.toLocaleLowerCase();return ct.includes(rt)})},_theme$defaultAlgorit,defaultToken={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",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'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"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)",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)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},hashCode=function(et){for(var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,st=3735928559^rt,ct=1103547991^rt,ut=0,ft;ut>>16,2246822507)^Math.imul(ct^ct>>>13,3266489909),ct=Math.imul(ct^ct>>>16,2246822507)^Math.imul(st^st>>>13,3266489909),4294967296*(2097151&ct)+(st>>>0)},emptyTheme=createTheme(function(_e){return _e}),token$1={theme:emptyTheme,token:_objectSpread2(_objectSpread2({},defaultToken),theme==null||(_theme$defaultAlgorit=theme.defaultAlgorithm)===null||_theme$defaultAlgorit===void 0?void 0:_theme$defaultAlgorit.call(theme,theme==null?void 0:theme.defaultSeed)),hashId:"pro-".concat(hashCode(JSON.stringify(defaultToken)))},useToken$2=function(){return token$1};const batToken=Object.defineProperty({__proto__:null,defaultToken,emptyTheme,hashCode,token:token$1,useToken:useToken$2},Symbol.toStringTag,{value:"Module"});var setAlpha=function(et,rt){return new TinyColor(et).setAlpha(rt).toRgbString()},genTheme=function(){return typeof theme>"u"||!theme?batToken:theme},proTheme=genTheme(),useToken$1=proTheme.useToken,resetComponent=function(et){return{boxSizing:"border-box",margin:0,padding:0,color:et.colorText,fontSize:et.fontSize,lineHeight:et.lineHeight,listStyle:"none"}};function useStyle$i(_e,et){var rt,st=reactExports.useContext(ProProvider),ct=st.token,ut=ct===void 0?{}:ct,ft=reactExports.useContext(ProProvider),gt=ft.hashId,xt=gt===void 0?"":gt,$t=ft.theme,_t=useToken$1(),wt=_t.token,Tt=reactExports.useContext(ConfigProvider$1.ConfigContext),Rt=Tt.getPrefixCls;return ut.layout||(ut=_objectSpread2({},wt)),ut.proComponentsCls=(rt=ut.proComponentsCls)!==null&&rt!==void 0?rt:".".concat(Rt("pro")),ut.antCls=".".concat(Rt()),{wrapSSR:useStyleRegister({theme:$t,token:ut,hashId:xt,path:[_e]},function(){return et(ut)}),hashId:xt}}var getLayoutDesignToken=function(et,rt){var st,ct,ut,ft,gt,xt=_objectSpread2({},et);return _objectSpread2(_objectSpread2({bgLayout:"linear-gradient(".concat(rt.colorBgContainer,", ").concat(rt.colorBgLayout," 28%)"),colorTextAppListIcon:rt.colorTextSecondary,appListIconHoverBgColor:xt==null||(st=xt.sider)===null||st===void 0?void 0:st.colorBgMenuItemSelected,colorBgAppListIconHover:setAlpha(rt.colorTextBase,.04),colorTextAppListIconHover:rt.colorTextBase},xt),{},{header:_objectSpread2({colorBgHeader:setAlpha(rt.colorBgElevated,.6),colorBgScrollHeader:setAlpha(rt.colorBgElevated,.8),colorHeaderTitle:rt.colorText,colorBgMenuItemHover:setAlpha(rt.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(xt==null||(ct=xt.header)===null||ct===void 0?void 0:ct.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(ut=xt.header)===null||ut===void 0?void 0:ut.colorBgHeader:rt.colorBgElevated,colorTextMenuSelected:setAlpha(rt.colorTextBase,.95),colorBgRightActionsItemHover:setAlpha(rt.colorTextBase,.03),colorTextRightActionsItem:rt.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:rt.colorTextSecondary,colorTextMenuSecondary:rt.colorTextTertiary,colorTextMenuTitle:rt.colorText,colorTextMenuActive:rt.colorText},xt.header),sider:_objectSpread2({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:rt.colorBgElevated,colorTextCollapsedButtonHover:rt.colorTextSecondary,colorTextCollapsedButton:setAlpha(rt.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:setAlpha(rt.colorTextBase,.06),colorBgMenuItemHover:setAlpha(rt.colorTextBase,.03),colorBgMenuItemSelected:setAlpha(rt.colorTextBase,.04),colorTextMenuItemHover:rt.colorText,colorTextMenuSelected:setAlpha(rt.colorTextBase,.95),colorTextMenuActive:rt.colorText,colorTextMenu:rt.colorTextSecondary,colorTextMenuSecondary:rt.colorTextTertiary,colorTextMenuTitle:rt.colorText,colorTextSubMenuSelected:setAlpha(rt.colorTextBase,.95)},xt.sider),pageContainer:_objectSpread2({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((ft=xt.pageContainer)===null||ft===void 0?void 0:ft.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((gt=xt.pageContainer)===null||gt===void 0?void 0:gt.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:rt.colorBgElevated},xt.pageContainer)})},merge$6=function(){for(var et={},rt=arguments.length,st=new Array(rt),ct=0;ct=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$4*et:Math.round(_e.h)+hueStep$4*et:st=rt?Math.round(_e.h)+hueStep$4*et:Math.round(_e.h)-hueStep$4*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$4(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$4*et:et===darkColorCount$4?st=_e.s+saturationStep$4:st=_e.s+saturationStep2$4*et,st>1&&(st=1),rt&&et===lightColorCount$4&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$6(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$4*et:st=_e.v-brightnessStep2$4*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$9(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$4;ct>0;ct-=1){var ut=toHsv$4(st),ft=toHex$4(inputToRGB$1({h:getHue$4(ut,ct,!0),s:getSaturation$4(ut,ct,!0),v:getValue$6(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$4(st));for(var gt=1;gt<=darkColorCount$4;gt+=1){var xt=toHsv$4(st),$t=toHex$4(inputToRGB$1({h:getHue$4(xt,gt),s:getSaturation$4(xt,gt),v:getValue$6(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$4.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$4(mix$4(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$4={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"},presetPalettes$4={},presetDarkPalettes$4={};Object.keys(presetPrimaryColors$4).forEach(function(_e){presetPalettes$4[_e]=generate$9(presetPrimaryColors$4[_e]),presetPalettes$4[_e].primary=presetPalettes$4[_e][5],presetDarkPalettes$4[_e]=generate$9(presetPrimaryColors$4[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$4[_e].primary=presetDarkPalettes$4[_e][5]});var blue$3=presetPalettes$4.blue;function camelCase$5(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$6(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$4(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$4(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$5(rt)]=st}return et},{})}function generate$8(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$4(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$8(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$4(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$8(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$4(_e){return generate$9(_e)[0]}function normalizeTwoToneColors$4(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$4=` .anticon { display: inline-block; color: inherit; @@ -480,25 +495,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,useInsertStyles$4=function(et){var rt=reactExports.useContext(Context$7),st=rt.csp,ct=rt.prefixCls,ut=iconStyles$4;ct&&(ut=ut.replace(/anticon/g,ct)),reactExports.useEffect(function(){var ft=et.current,gt=getShadowRoot$1(ft);updateCSS(ut,"@ant-design-icons",{prepend:!0,csp:st,attachTo:gt})},[])},_excluded$G=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$4={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$4(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$4.primaryColor=et,twoToneColorPalette$4.secondaryColor=rt||getSecondaryColor$4(et),twoToneColorPalette$4.calculated=!!rt}function getTwoToneColors$4(){return _objectSpread2({},twoToneColorPalette$4)}var IconBase$5=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$G),$t=reactExports.useRef(),_t=twoToneColorPalette$4;if(ft&&(_t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$4(ft)}),useInsertStyles$4($t),warning$6(isIconDefinition$4(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$4(rt))return null;var wt=rt;return wt&&typeof wt.icon=="function"&&(wt=_objectSpread2(_objectSpread2({},wt),{},{icon:wt.icon(_t.primaryColor,_t.secondaryColor)})),generate$8(wt.icon,"svg-".concat(wt.name),_objectSpread2(_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":wt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt),{},{ref:$t}))};IconBase$5.displayName="IconReact";IconBase$5.getTwoToneColors=getTwoToneColors$4;IconBase$5.setTwoToneColors=setTwoToneColors$4;const ReactIcon$4=IconBase$5;function setTwoToneColor$4(_e){var et=normalizeTwoToneColors$4(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$4.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$4(){var _e=ReactIcon$4.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$F=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$4(blue$3.primary);var Icon$7=reactExports.forwardRef(function(_e,et){var rt=_e.className,st=_e.icon,ct=_e.spin,ut=_e.rotate,ft=_e.tabIndex,gt=_e.onClick,xt=_e.twoToneColor,$t=_objectWithoutProperties$2(_e,_excluded$F),_t=reactExports.useContext(Context$7),wt=_t.prefixCls,Tt=wt===void 0?"anticon":wt,Rt=_t.rootClassName,It=classNames(Rt,Tt,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-").concat(st.name),!!st.name),"".concat(Tt,"-spin"),!!ct||st.name==="loading"),rt),At=ft;At===void 0&>&&(At=-1);var jt=ut?{msTransform:"rotate(".concat(ut,"deg)"),transform:"rotate(".concat(ut,"deg)")}:void 0,Nt=normalizeTwoToneColors$4(xt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];return reactExports.createElement("span",_extends$b({role:"img","aria-label":st.name},$t,{ref:et,tabIndex:At,onClick:gt,className:It}),reactExports.createElement(ReactIcon$4,{icon:st,primaryColor:Ft,secondaryColor:Ht,style:jt}))});Icon$7.displayName="AntdIcon";Icon$7.getTwoToneColor=getTwoToneColor$4;Icon$7.setTwoToneColor=setTwoToneColor$4;const AntdIcon$5=Icon$7;var CloseCircleFilled=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:CloseCircleFilledSvg}))};const CloseCircleFilled$1=reactExports.forwardRef(CloseCircleFilled);var CopyrightOutlined$2={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"};const CopyrightOutlinedSvg=CopyrightOutlined$2;var DownOutlined=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:DownOutlinedSvg}))};const DownOutlined$1=reactExports.forwardRef(DownOutlined);var InfoCircleOutlined$2={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"};const InfoCircleOutlinedSvg=InfoCircleOutlined$2;var InfoCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:InfoCircleOutlinedSvg}))};const InfoCircleOutlined$1=reactExports.forwardRef(InfoCircleOutlined);var LockOutlined$2={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"};const LockOutlinedSvg=LockOutlined$2;var LogoutOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const LogoutOutlinedSvg=LogoutOutlined$2;var MenuOutlined$2={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"};const MenuOutlinedSvg=MenuOutlined$2;var MessageOutlined$2={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"};const MessageOutlinedSvg=MessageOutlined$2;var MobileOutlined$2={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"};const MobileOutlinedSvg=MobileOutlined$2;var QuestionCircleFilled$2={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"};const QuestionCircleFilledSvg=QuestionCircleFilled$2;var RobotOutlined$2={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"};const RobotOutlinedSvg=RobotOutlined$2;var SettingOutlined$2={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"};const SettingOutlinedSvg=SettingOutlined$2;var UploadOutlined$2={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"};const UploadOutlinedSvg=UploadOutlined$2;var UserOutlined$2={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"};const UserOutlinedSvg=UserOutlined$2;var genProStyle$4=function(et){return _defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"inline-flex",gap:et.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:et.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:et.colorBgTextHover},"&-active":_defineProperty$c({paddingBlock:0,paddingInline:8,backgroundColor:et.colorBgTextHover},"&".concat(et.componentCls,"-allow-clear:hover:not(").concat(et.componentCls,"-disabled)"),_defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-arrow"),{display:"none"}),"".concat(et.componentCls,"-close"),{display:"inline-flex"}))},"".concat(et.antCls,"-select"),_defineProperty$c({},"".concat(et.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(et.antCls,"-picker"),_defineProperty$c({},"".concat(et.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",_defineProperty$c(_defineProperty$c({color:et.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(et.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:et.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:et.colorIconHover})),"&-disabled",_defineProperty$c({color:et.colorTextPlaceholder,cursor:"not-allowed"},"".concat(et.componentCls,"-icon"),{color:et.colorTextPlaceholder})),"&-small",_defineProperty$c(_defineProperty$c(_defineProperty$c({height:"24px",paddingBlock:0,paddingInline:4,fontSize:et.fontSizeSM,lineHeight:"24px"},"&".concat(et.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(et.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(et.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(et.lineWidth,"px solid ").concat(et.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:et.colorBgContainer}))};function useStyle$g(_e){return useStyle$i("FieldLabel",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$4(rt)]})}var FieldLabelFunction=function(et,rt){var st,ct,ut,ft=et.label,gt=et.onClear,xt=et.value,$t=et.disabled,_t=et.onLabelClick,wt=et.ellipsis,Tt=et.placeholder,Rt=et.className,It=et.formatter,At=et.bordered,jt=et.style,Nt=et.downIcon,kt=et.allowClear,Ft=kt===void 0?!0:kt,Ht=et.valueMaxLength,Wt=Ht===void 0?41:Ht,Vt=(ConfigProvider$1==null||(st=ConfigProvider$1.useConfig)===null||st===void 0?void 0:st.call(ConfigProvider$1))||{componentSize:"middle"},qt=Vt.componentSize,Gt=qt,Xt=reactExports.useContext(ConfigProvider$1.ConfigContext),Zt=Xt.getPrefixCls,lr=Zt("pro-core-field-label"),er=useStyle$g(lr),cr=er.wrapSSR,ur=er.hashId,pr=useIntl$1(),hr=reactExports.useRef(null),fr=reactExports.useRef(null);reactExports.useImperativeHandle(rt,function(){return{labelRef:fr,clearRef:hr}});var dr=function(mr){return mr.every(function(Sr){return typeof Sr=="string"})?mr.join(","):mr.map(function(Sr,Tr){var jr=Tr===mr.length-1?"":",";return typeof Sr=="string"?jsxRuntimeExports.jsxs("span",{children:[Sr,jr]},Tr):jsxRuntimeExports.jsxs("span",{style:{display:"flex"},children:[Sr,jr]},Tr)})},yr=function(mr){return It?It(mr):Array.isArray(mr)?dr(mr):mr},$r=function(mr,Sr){if(Sr!=null&&Sr!==""&&(!Array.isArray(Sr)||Sr.length)){var Tr,jr,Or=mr?jsxRuntimeExports.jsxs("span",{onClick:function(){_t==null||_t()},className:"".concat(lr,"-text"),children:[mr,": "]}):"",_r=yr(Sr);if(!wt)return jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Or,yr(Sr)]});var Cr=function(){var Pr=Array.isArray(Sr)&&Sr.length>1,Mr=pr.getMessage("form.lightFilter.itemUnit","项");return typeof _r=="string"&&_r.length>Wt&&Pr?"...".concat(Sr.length).concat(Mr):""},Nr=Cr();return jsxRuntimeExports.jsxs("span",{title:typeof _r=="string"?_r:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Or,jsxRuntimeExports.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof _r=="string"?_r==null||(Tr=_r.toString())===null||Tr===void 0||(jr=Tr.substr)===null||jr===void 0?void 0:jr.call(Tr,0,Wt):_r}),Nr]})}return mr||Tt};return cr(jsxRuntimeExports.jsxs("span",{className:classNames(lr,ur,"".concat(lr,"-").concat((ct=(ut=et.size)!==null&&ut!==void 0?ut:Gt)!==null&&ct!==void 0?ct:"middle"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(lr,"-active"),!!xt||xt===0),"".concat(lr,"-disabled"),$t),"".concat(lr,"-bordered"),At),"".concat(lr,"-allow-clear"),Ft),Rt),style:jt,ref:fr,onClick:function(){var mr;et==null||(mr=et.onClick)===null||mr===void 0||mr.call(et)},children:[$r(ft,xt),(xt||xt===0)&&Ft&&jsxRuntimeExports.jsx(CloseCircleFilled$1,{role:"button",title:pr.getMessage("form.lightFilter.clear","清除"),className:classNames("".concat(lr,"-icon"),ur,"".concat(lr,"-close")),onClick:function(mr){$t||gt==null||gt(),mr.stopPropagation()},ref:hr}),Nt!==!1?Nt??jsxRuntimeExports.jsx(DownOutlined$1,{className:classNames("".concat(lr,"-icon"),ur,"".concat(lr,"-arrow"))}):null]}))},FieldLabel=React$1.forwardRef(FieldLabelFunction),omitUndefined=function(et){var rt={};if(Object.keys(et||{}).forEach(function(st){et[st]!==void 0&&(rt[st]=et[st])}),!(Object.keys(rt).length<1))return rt},semver=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,isWildcard=function(et){return et==="*"||et==="x"||et==="X"},tryParse=function(et){var rt=parseInt(et,10);return isNaN(rt)?et:rt},forceType=function(et,rt){return _typeof$e(et)!==_typeof$e(rt)?[String(et),String(rt)]:[et,rt]},compareStrings=function(et,rt){if(isWildcard(et)||isWildcard(rt))return 0;var st=forceType(tryParse(et),tryParse(rt)),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1];return ut>ft?1:ut"u"?version$3:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$3},openVisibleCompatible=function(et,rt){var st=compareVersions(getVersion$2(),"4.23.0")>-1?{open:et,onOpenChange:rt}:{visible:et,onVisibleChange:rt};return omitUndefined(st)},genProStyle$3=function(et){return _defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-label"),{cursor:"pointer"}),"".concat(et.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(et.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function useStyle$f(_e){return useStyle$i("FilterDropdown",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$3(rt)]})}var FilterDropdown=function(et){var rt=et.children,st=et.label,ct=et.footer,ut=et.open,ft=et.onOpenChange,gt=et.disabled,xt=et.onVisibleChange,$t=et.visible,_t=et.footerRender,wt=et.placement,Tt=reactExports.useContext(ConfigProvider$1.ConfigContext),Rt=Tt.getPrefixCls,It=Rt("pro-core-field-dropdown"),At=useStyle$f(It),jt=At.wrapSSR,Nt=At.hashId,kt=openVisibleCompatible(ut||$t||!1,ft||xt),Ft=reactExports.useRef(null);return jt(jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({placement:wt,trigger:["click"]},kt),{},{overlayInnerStyle:{padding:0},content:jsxRuntimeExports.jsxs("div",{ref:Ft,className:classNames("".concat(It,"-overlay"),_defineProperty$c(_defineProperty$c({},"".concat(It,"-overlay-").concat(wt),wt),"hashId",Nt)),children:[jsxRuntimeExports.jsx(ConfigProvider$1,{getPopupContainer:function(){return Ft.current||document.body},children:jsxRuntimeExports.jsx("div",{className:"".concat(It,"-content ").concat(Nt).trim(),children:rt})}),ct&&jsxRuntimeExports.jsx(DropdownFooter,_objectSpread2({disabled:gt,footerRender:_t},ct))]}),children:jsxRuntimeExports.jsx("span",{className:"".concat(It,"-label ").concat(Nt).trim(),children:st})})))},genProStyle$2=function(et){return _defineProperty$c({},et.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:et.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:et.colorTextSecondary,fontWeight:"normal",fontSize:et.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function useStyle$e(_e){return useStyle$i("LabelIconTip",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$2(rt)]})}var LabelIconTip=React$1.memo(function(_e){var et=_e.label,rt=_e.tooltip,st=_e.ellipsis,ct=_e.subTitle,ut=reactExports.useContext(ConfigProvider$1.ConfigContext),ft=ut.getPrefixCls,gt=ft("pro-core-label-tip"),xt=useStyle$e(gt),$t=xt.wrapSSR,_t=xt.hashId;if(!rt&&!ct)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et});var wt=typeof rt=="string"||React$1.isValidElement(rt)?{title:rt}:rt,Tt=(wt==null?void 0:wt.icon)||jsxRuntimeExports.jsx(InfoCircleOutlined$1,{});return $t(jsxRuntimeExports.jsxs("div",{className:classNames(gt,_t),onMouseDown:function(It){return It.stopPropagation()},onMouseLeave:function(It){return It.stopPropagation()},onMouseMove:function(It){return It.stopPropagation()},children:[jsxRuntimeExports.jsx("div",{className:classNames("".concat(gt,"-title"),_t,_defineProperty$c({},"".concat(gt,"-title-ellipsis"),st)),children:et}),ct&&jsxRuntimeExports.jsx("div",{className:"".concat(gt,"-subtitle ").concat(_t).trim(),children:ct}),rt&&jsxRuntimeExports.jsx(Tooltip$1,_objectSpread2(_objectSpread2({},wt),{},{children:jsxRuntimeExports.jsx("span",{className:"".concat(gt,"-icon ").concat(_t).trim(),children:Tt})}))]}))}),ProFormContext=React$1.createContext({}),quarterOfYear$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt="month",st="quarter";return function(ct,ut){var ft=ut.prototype;ft.quarter=function($t){return this.$utils().u($t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*($t-1))};var gt=ft.add;ft.add=function($t,_t){return $t=Number($t),this.$utils().p(_t)===st?this.add(3*$t,rt):gt.bind(this)($t,_t)};var xt=ft.startOf;ft.startOf=function($t,_t){var wt=this.$utils(),Tt=!!wt.u(_t)||_t;if(wt.p($t)===st){var Rt=this.quarter()-1;return Tt?this.month(3*Rt).startOf(rt).startOf("day"):this.month(3*Rt+2).endOf(rt).endOf("day")}return xt.bind(this)($t,_t)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);var isNil=function(et){return et==null};dayjs.extend(quarterOfYear);var dateFormatterMap={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 isObject$h(_e){return Object.prototype.toString.call(_e)==="[object Object]"}function isPlainObject$3(_e){if(isObject$h(_e)===!1)return!1;var et=_e.constructor;if(et===void 0)return!0;var rt=et.prototype;return!(isObject$h(rt)===!1||rt.hasOwnProperty("isPrototypeOf")===!1)}var isMoment$2=function(et){return!!(et!=null&&et._isAMomentObject)},convertMoment=function(et,rt,st){if(!rt)return et;if(dayjs.isDayjs(et)||isMoment$2(et)){if(rt==="number")return et.valueOf();if(rt==="string")return et.format(dateFormatterMap[st]||"YYYY-MM-DD HH:mm:ss");if(typeof rt=="string"&&rt!=="string")return et.format(rt);if(typeof rt=="function")return rt(et,st)}return et},conversionMomentValue=function _e(et,rt,st,ct,ut){var ft={};return typeof window>"u"||_typeof$e(et)!=="object"||isNil(et)||et instanceof Blob||Array.isArray(et)?et:(Object.keys(et).forEach(function(gt){var xt=ut?[ut,gt].flat(1):[gt],$t=get$7(st,xt)||"text",_t="text",wt;typeof $t=="string"?_t=$t:$t&&(_t=$t.valueType,wt=$t.dateFormat);var Tt=et[gt];if(!(isNil(Tt)&&ct)){if(isPlainObject$3(Tt)&&!Array.isArray(Tt)&&!dayjs.isDayjs(Tt)&&!isMoment$2(Tt)){ft[gt]=_e(Tt,rt,st,ct,[gt]);return}if(Array.isArray(Tt)){ft[gt]=Tt.map(function(Rt,It){return dayjs.isDayjs(Rt)||isMoment$2(Rt)?convertMoment(Rt,wt||rt,_t):_e(Rt,rt,st,ct,[gt,"".concat(It)].flat(1))});return}ft[gt]=convertMoment(Tt,wt||rt,_t)}}),ft)},formatString=function(et,rt){return typeof rt=="function"?rt(dayjs(et)):dayjs(et).format(rt)},dateArrayFormatter=function(et,rt){var st=Array.isArray(et)?et:[],ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt,xt;Array.isArray(rt)?(gt=rt[0],xt=rt[1]):(gt=rt,xt=rt);var $t=ut?formatString(ut,gt):"",_t=ft?formatString(ft,xt):"",wt=$t&&_t?"".concat($t," ~ ").concat(_t):"";return wt};function runFunction(_e){if(typeof _e=="function"){for(var et=arguments.length,rt=new Array(et>1?et-1:0),st=1;st1&&arguments[1]!==void 0?arguments[1]:100,rt=arguments.length>2?arguments[2]:void 0,st=reactExports.useState(_e),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=useLatest$1(_e);return reactExports.useEffect(function(){var xt=setTimeout(function(){ft(gt.current)},et);return function(){return clearTimeout(xt)}},rt?[et].concat(_toConsumableArray$3(rt)):void 0),ut}function isDeepEqualReact(_e,et,rt,st){if(_e===et)return!0;if(_e&&et&&_typeof$e(_e)==="object"&&_typeof$e(et)==="object"){if(_e.constructor!==et.constructor)return!1;var ct,ut,ft;if(Array.isArray(_e)){if(ct=_e.length,ct!=et.length)return!1;for(ut=ct;ut--!==0;)if(!isDeepEqualReact(_e[ut],et[ut],rt,st))return!1;return!0}if(_e instanceof Map&&et instanceof Map){if(_e.size!==et.size)return!1;var gt=_createForOfIteratorHelper$1(_e.entries()),xt;try{for(gt.s();!(xt=gt.n()).done;)if(ut=xt.value,!et.has(ut[0]))return!1}catch(It){gt.e(It)}finally{gt.f()}var $t=_createForOfIteratorHelper$1(_e.entries()),_t;try{for($t.s();!(_t=$t.n()).done;)if(ut=_t.value,!isDeepEqualReact(ut[1],et.get(ut[0]),rt,st))return!1}catch(It){$t.e(It)}finally{$t.f()}return!0}if(_e instanceof Set&&et instanceof Set){if(_e.size!==et.size)return!1;var wt=_createForOfIteratorHelper$1(_e.entries()),Tt;try{for(wt.s();!(Tt=wt.n()).done;)if(ut=Tt.value,!et.has(ut[0]))return!1}catch(It){wt.e(It)}finally{wt.f()}return!0}if(ArrayBuffer.isView(_e)&&ArrayBuffer.isView(et)){if(ct=_e.length,ct!=et.length)return!1;for(ut=ct;ut--!==0;)if(_e[ut]!==et[ut])return!1;return!0}if(_e.constructor===RegExp)return _e.source===et.source&&_e.flags===et.flags;if(_e.valueOf!==Object.prototype.valueOf&&_e.valueOf)return _e.valueOf()===et.valueOf();if(_e.toString!==Object.prototype.toString&&_e.toString)return _e.toString()===et.toString();if(ft=Object.keys(_e),ct=ft.length,ct!==Object.keys(et).length)return!1;for(ut=ct;ut--!==0;)if(!Object.prototype.hasOwnProperty.call(et,ft[ut]))return!1;for(ut=ct;ut--!==0;){var Rt=ft[ut];if(!(rt!=null&&rt.includes(Rt))&&!(Rt==="_owner"&&_e.$$typeof)&&!isDeepEqualReact(_e[Rt],et[Rt],rt,st))return st&&console.log(Rt),!1}return!0}return _e!==_e&&et!==et}var isDeepEqual=function(et,rt,st){return isDeepEqualReact(et,rt,st)};function useDeepCompareMemoize(_e,et){var rt=reactExports.useRef();return isDeepEqual(_e,rt.current,et)||(rt.current=_e),rt.current}function useDeepCompareEffect(_e,et,rt){reactExports.useEffect(_e,useDeepCompareMemoize(et||[],rt))}function useDeepCompareMemo(_e,et){return React$1.useMemo(_e,useDeepCompareMemoize(et))}var isNode=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,isBrowser=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!isNode};function useDocumentTitle(_e,et){var rt=typeof _e.pageName=="string"?_e.title:et;reactExports.useEffect(function(){isBrowser()&&rt&&(document.title=rt)},[_e.title,rt])}var testId=0;function useFetchData(_e){var et=reactExports.useRef(null),rt=reactExports.useState(function(){return _e.proFieldKey?_e.proFieldKey.toString():(testId+=1,testId.toString())}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useRef(ct),ft=function(){var _t=_asyncToGenerator(_regeneratorRuntime().mark(function wt(){var Tt,Rt,It,At;return _regeneratorRuntime().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return(Tt=et.current)===null||Tt===void 0||Tt.abort(),It=new AbortController,et.current=It,Nt.next=5,Promise.race([(Rt=_e.request)===null||Rt===void 0?void 0:Rt.call(_e,_e.params,_e),new Promise(function(kt,Ft){var Ht;(Ht=et.current)===null||Ht===void 0||(Ht=Ht.signal)===null||Ht===void 0||Ht.addEventListener("abort",function(){Ft(new Error("aborted"))})})]);case 5:return At=Nt.sent,Nt.abrupt("return",At);case 7:case"end":return Nt.stop()}},wt)}));return function(){return _t.apply(this,arguments)}}();reactExports.useEffect(function(){return function(){testId+=1}},[]);var gt=useSWR([ut.current,_e.params],ft,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),xt=gt.data,$t=gt.error;return[xt||$t]}var usePrevious=function(et){var rt=reactExports.useRef();return reactExports.useEffect(function(){rt.current=et}),rt.current},isDropdownValueType=function(et){var rt=!1;return(typeof et=="string"&&et.startsWith("date")&&!et.endsWith("Range")||et==="select"||et==="time")&&(rt=!0),rt};function isImg(_e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(_e)}var isUrl$1=function(et){if(!et||!et.startsWith("http"))return!1;try{var rt=new URL(et);return!!rt}catch{return!1}},merge$5=function(){for(var et={},rt=arguments.length,st=new Array(rt),ct=0;ct0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(index+=1).toFixed(0);for(var rt="",st=crypto.getRandomValues(new Uint8Array(et));et--;){var ct=63&st[et];rt+=ct<36?ct.toString(36):ct<62?(ct-26).toString(36).toUpperCase():ct<63?"_":"-"}return rt},nanoid=function(){return typeof window>"u"?genNanoid():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():genNanoid()};dayjs.extend(customParseFormat);var isMoment$1=function(et){return!!(et!=null&&et._isAMomentObject)},parseValueToDay=function _e(et,rt){return isNil(et)||dayjs.isDayjs(et)||isMoment$1(et)?isMoment$1(et)?dayjs(et):et:Array.isArray(et)?et.map(function(st){return _e(st,rt)}):typeof et=="number"?dayjs(et):dayjs(et,rt)},antdFormItemPropsList=["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 pickProFormItemProps(_e){var et={};return antdFormItemPropsList.forEach(function(rt){_e[rt]!==void 0&&(et[rt]=_e[rt])}),et}var proFieldProps="valueType request plain renderFormItem render text formItemProps valueEnum",proFormProps="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function pickProProps(_e){var et="".concat(proFieldProps," ").concat(proFormProps).split(/[\s\n]+/),rt={};return Object.keys(_e||{}).forEach(function(st){et.includes(st)||(rt[st]=_e[st])}),rt}function getType(_e){var et=Object.prototype.toString.call(_e).match(/^\[object (.*)\]$/)[1].toLowerCase();return et==="string"&&_typeof$e(_e)==="object"?"object":_e===null?"null":_e===void 0?"undefined":et}var ProFieldBadgeColor=function(et){var rt=et.color,st=et.children;return jsxRuntimeExports.jsx(Badge$1,{color:rt,text:st})},objectToMap=function(et){return getType(et)==="map"?et:new Map(Object.entries(et||{}))},TableStatus={Success:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"success",text:rt})},Error:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"error",text:rt})},Default:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"default",text:rt})},Processing:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"processing",text:rt})},Warning:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"warning",text:rt})},success:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"success",text:rt})},error:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"error",text:rt})},default:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"default",text:rt})},processing:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"processing",text:rt})},warning:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"warning",text:rt})}},proFieldParsingText=function _e(et,rt,st){if(Array.isArray(et))return jsxRuntimeExports.jsx(Space$1,{split:",",size:2,wrap:!0,children:et.map(function($t,_t){return _e($t,rt,_t)})},st);var ct=objectToMap(rt);if(!ct.has(et)&&!ct.has("".concat(et)))return(et==null?void 0:et.label)||et;var ut=ct.get(et)||ct.get("".concat(et));if(!ut)return jsxRuntimeExports.jsx(React$1.Fragment,{children:(et==null?void 0:et.label)||et},st);var ft=ut.status,gt=ut.color,xt=TableStatus[ft||"Init"];return xt?jsxRuntimeExports.jsx(xt,{children:ut.text},st):gt?jsxRuntimeExports.jsx(ProFieldBadgeColor,{color:gt,children:ut.text},st):jsxRuntimeExports.jsx(React$1.Fragment,{children:ut.text||ut},st)},safeStableStringify={exports:{}};(function(_e,et){const{hasOwnProperty:rt}=Object.prototype,st=jt();st.configure=jt,st.stringify=st,st.default=st,et.stringify=st,et.configure=jt,_e.exports=st;const ct=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function ut(Nt){return Nt.length<5e3&&!ct.test(Nt)?`"${Nt}"`:JSON.stringify(Nt)}function ft(Nt){if(Nt.length>200)return Nt.sort();for(let kt=1;ktFt;)Nt[Ht]=Nt[Ht-1],Ht--;Nt[Ht]=Ft}return Nt}const gt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function xt(Nt){return gt.call(Nt)!==void 0&&Nt.length!==0}function $t(Nt,kt,Ft){Nt.length= 1`)}return Ft===void 0?1/0:Ft}function Rt(Nt){return Nt===1?"1 item":`${Nt} items`}function It(Nt){const kt=new Set;for(const Ft of Nt)(typeof Ft=="string"||typeof Ft=="number")&&kt.add(String(Ft));return kt}function At(Nt){if(rt.call(Nt,"strict")){const kt=Nt.strict;if(typeof kt!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(kt)return Ft=>{let Ht=`Object can not safely be stringified. Received type ${typeof Ft}`;throw typeof Ft!="function"&&(Ht+=` (${Ft.toString()})`),new Error(Ht)}}}function jt(Nt){Nt={...Nt};const kt=At(Nt);kt&&(Nt.bigint===void 0&&(Nt.bigint=!1),"circularValue"in Nt||(Nt.circularValue=Error));const Ft=_t(Nt),Ht=wt(Nt,"bigint"),Wt=wt(Nt,"deterministic"),Vt=Tt(Nt,"maximumDepth"),qt=Tt(Nt,"maximumBreadth");function Gt(cr,ur,pr,hr,fr,dr){let yr=ur[cr];switch(typeof yr=="object"&&yr!==null&&typeof yr.toJSON=="function"&&(yr=yr.toJSON(cr)),yr=hr.call(ur,cr,yr),typeof yr){case"string":return ut(yr);case"object":{if(yr===null)return"null";if(pr.indexOf(yr)!==-1)return Ft;let $r="",Er=",";const mr=dr;if(Array.isArray(yr)){if(yr.length===0)return"[]";if(Vtqt){const Pr=yr.length-qt-1;$r+=`${Er}"... ${Rt(Pr)} not stringified"`}return fr!==""&&($r+=` -${mr}`),pr.pop(),`[${$r}]`}let Sr=Object.keys(yr);const Tr=Sr.length;if(Tr===0)return"{}";if(Vtqt){const Cr=Tr-qt;$r+=`${Or}"...":${jr}"${Rt(Cr)} not stringified"`,Or=Er}return fr!==""&&Or.length>1&&($r=` -${dr}${$r} -${mr}`),pr.pop(),`{${$r}}`}case"number":return isFinite(yr)?String(yr):kt?kt(yr):"null";case"boolean":return yr===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(yr);default:return kt?kt(yr):void 0}}function Xt(cr,ur,pr,hr,fr,dr){switch(typeof ur=="object"&&ur!==null&&typeof ur.toJSON=="function"&&(ur=ur.toJSON(cr)),typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(pr.indexOf(ur)!==-1)return Ft;const yr=dr;let $r="",Er=",";if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const _r=ur.length-qt-1;$r+=`${Er}"... ${Rt(_r)} not stringified"`}return fr!==""&&($r+=` -${yr}`),pr.pop(),`[${$r}]`}pr.push(ur);let mr="";fr!==""&&(dr+=fr,Er=`, -${dr}`,mr=" ");let Sr="";for(const Tr of hr){const jr=Xt(Tr,ur[Tr],pr,hr,fr,dr);jr!==void 0&&($r+=`${Sr}${ut(Tr)}:${mr}${jr}`,Sr=Er)}return fr!==""&&Sr.length>1&&($r=` -${dr}${$r} -${yr}`),pr.pop(),`{${$r}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function Zt(cr,ur,pr,hr,fr){switch(typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(typeof ur.toJSON=="function"){if(ur=ur.toJSON(cr),typeof ur!="object")return Zt(cr,ur,pr,hr,fr);if(ur===null)return"null"}if(pr.indexOf(ur)!==-1)return Ft;const dr=fr;if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const Rr=ur.length-qt-1;jr+=`${Or}"... ${Rt(Rr)} not stringified"`}return jr+=` -${dr}`,pr.pop(),`[${jr}]`}let yr=Object.keys(ur);const $r=yr.length;if($r===0)return"{}";if(Vtqt){const jr=$r-qt;mr+=`${Sr}"...": "${Rt(jr)} not stringified"`,Sr=Er}return Sr!==""&&(mr=` -${fr}${mr} -${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function lr(cr,ur,pr){switch(typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(typeof ur.toJSON=="function"){if(ur=ur.toJSON(cr),typeof ur!="object")return lr(cr,ur,pr);if(ur===null)return"null"}if(pr.indexOf(ur)!==-1)return Ft;let hr="";if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const Tr=ur.length-qt-1;hr+=`,"... ${Rt(Tr)} not stringified"`}return pr.pop(),`[${hr}]`}let fr=Object.keys(ur);const dr=fr.length;if(dr===0)return"{}";if(Vtqt){const Er=dr-qt;hr+=`${yr}"...":"${Rt(Er)} not stringified"`}return pr.pop(),`{${hr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function er(cr,ur,pr){if(arguments.length>1){let hr="";if(typeof pr=="number"?hr=" ".repeat(Math.min(pr,10)):typeof pr=="string"&&(hr=pr.slice(0,10)),ur!=null){if(typeof ur=="function")return Gt("",{"":cr},[],ur,hr,"");if(Array.isArray(ur))return Xt("",cr,[],It(ur),hr,"")}if(hr.length!==0)return Zt("",cr,[],hr,"")}return lr("",cr,[])}return er}})(safeStableStringify,safeStableStringify.exports);var safeStableStringifyExports=safeStableStringify.exports;const cjsModule=getDefaultExportFromCjs(safeStableStringifyExports),configure=cjsModule.configure;var stringify=configure({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});const stringify$1=stringify;var lodash_merge={exports:{}};lodash_merge.exports;(function(_e,et){var rt=200,st="__lodash_hash_undefined__",ct=800,ut=16,ft=9007199254740991,gt="[object Arguments]",xt="[object Array]",$t="[object AsyncFunction]",_t="[object Boolean]",wt="[object Date]",Tt="[object Error]",Rt="[object Function]",It="[object GeneratorFunction]",At="[object Map]",jt="[object Number]",Nt="[object Null]",kt="[object Object]",Ft="[object Proxy]",Ht="[object RegExp]",Wt="[object Set]",Vt="[object String]",qt="[object Undefined]",Gt="[object WeakMap]",Xt="[object ArrayBuffer]",Zt="[object DataView]",lr="[object Float32Array]",er="[object Float64Array]",cr="[object Int8Array]",ur="[object Int16Array]",pr="[object Int32Array]",hr="[object Uint8Array]",fr="[object Uint8ClampedArray]",dr="[object Uint16Array]",yr="[object Uint32Array]",$r=/[\\^$.*+?()[\]{}|]/g,Er=/^\[object .+?Constructor\]$/,mr=/^(?:0|[1-9]\d*)$/,Sr={};Sr[lr]=Sr[er]=Sr[cr]=Sr[ur]=Sr[pr]=Sr[hr]=Sr[fr]=Sr[dr]=Sr[yr]=!0,Sr[gt]=Sr[xt]=Sr[Xt]=Sr[_t]=Sr[Zt]=Sr[wt]=Sr[Tt]=Sr[Rt]=Sr[At]=Sr[jt]=Sr[kt]=Sr[Ht]=Sr[Wt]=Sr[Vt]=Sr[Gt]=!1;var Tr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,jr=typeof self=="object"&&self&&self.Object===Object&&self,Or=Tr||jr||Function("return this")(),_r=et&&!et.nodeType&&et,Cr=_r&&!0&&_e&&!_e.nodeType&&_e,Nr=Cr&&Cr.exports===_r,Rr=Nr&&Tr.process,Pr=function(){try{var $n=Cr&&Cr.require&&Cr.require("util").types;return $n||Rr&&Rr.binding&&Rr.binding("util")}catch{}}(),Mr=Pr&&Pr.isTypedArray;function kr($n,In,Hn){switch(Hn.length){case 0:return $n.call(In);case 1:return $n.call(In,Hn[0]);case 2:return $n.call(In,Hn[0],Hn[1]);case 3:return $n.call(In,Hn[0],Hn[1],Hn[2])}return $n.apply(In,Hn)}function Fr($n,In){for(var Hn=-1,So=Array($n);++Hn<$n;)So[Hn]=In(Hn);return So}function wr($n){return function(In){return $n(In)}}function Br($n,In){return $n==null?void 0:$n[In]}function Dr($n,In){return function(Hn){return $n(In(Hn))}}var Xr=Array.prototype,Kr=Function.prototype,zr=Object.prototype,qr=Or["__core-js_shared__"],pn=Kr.toString,Qr=zr.hasOwnProperty,Zr=function(){var $n=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||"");return $n?"Symbol(src)_1."+$n:""}(),vn=zr.toString,vr=pn.call(Object),gr=RegExp("^"+pn.call(Qr).replace($r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),br=Nr?Or.Buffer:void 0,Hr=Or.Symbol,Vr=Or.Uint8Array,Wr=br?br.allocUnsafe:void 0,Gr=Dr(Object.getPrototypeOf,Object),cn=Object.create,mn=zr.propertyIsEnumerable,hn=Xr.splice,En=Hr?Hr.toStringTag:void 0,Rn=function(){try{var $n=so(Object,"defineProperty");return $n({},"",{}),$n}catch{}}(),Dn=br?br.isBuffer:void 0,Bn=Math.max,Yn=Date.now,qn=so(Or,"Map"),ao=so(Object,"create"),dn=function(){function $n(){}return function(In){if(!Yo(In))return{};if(cn)return cn(In);$n.prototype=In;var Hn=new $n;return $n.prototype=void 0,Hn}}();function gn($n){var In=-1,Hn=$n==null?0:$n.length;for(this.clear();++In-1}function Un($n,In){var Hn=this.__data__,So=po(Hn,$n);return So<0?(++this.size,Hn.push([$n,In])):Hn[So][1]=In,this}xn.prototype.clear=Cn,xn.prototype.delete=Sn,xn.prototype.get=Mn,xn.prototype.has=jn,xn.prototype.set=Un;function Gn($n){var In=-1,Hn=$n==null?0:$n.length;for(this.clear();++In1?Hn[Ho-1]:void 0,na=Ho>2?Hn[2]:void 0;for(Zo=$n.length>3&&typeof Zo=="function"?(Ho--,Zo):void 0,na&&Po(Hn[0],Hn[1],na)&&(Zo=Ho<3?void 0:Zo,Ho=1),In=Object(In);++So-1&&$n%1==0&&$n0){if(++In>=ct)return arguments[0]}else In=0;return $n.apply(void 0,arguments)}}function Is($n){if($n!=null){try{return pn.call($n)}catch{}try{return $n+""}catch{}}return""}function Cs($n,In){return $n===In||$n!==$n&&In!==In}var Xs=Oo(function(){return arguments}())?Oo:function($n){return Go($n)&&Qr.call($n,"callee")&&!mn.call($n,"callee")},Zs=Array.isArray;function Js($n){return $n!=null&&Jo($n.length)&&!Ro($n)}function cp($n){return Go($n)&&Js($n)}var bo=Dn||_m;function Ro($n){if(!Yo($n))return!1;var In=Bo($n);return In==Rt||In==It||In==$t||In==Ft}function Jo($n){return typeof $n=="number"&&$n>-1&&$n%1==0&&$n<=ft}function Yo($n){var In=typeof $n;return $n!=null&&(In=="object"||In=="function")}function Go($n){return $n!=null&&typeof $n=="object"}function Al($n){if(!Go($n)||Bo($n)!=kt)return!1;var In=Gr($n);if(In===null)return!0;var Hn=Qr.call(In,"constructor")&&In.constructor;return typeof Hn=="function"&&Hn instanceof Hn&&pn.call(Hn)==vr}var Ku=Mr?wr(Mr):Ao;function Tp($n){return Fn($n,yl($n))}function yl($n){return Js($n)?oo($n,!0):No($n)}var Em=kn(function($n,In,Hn){qo($n,In,Hn)});function Cm($n){return function(){return $n}}function nm($n){return $n}function _m(){return!1}_e.exports=Em})(lodash_merge,lodash_merge.exports);var lodash_mergeExports=lodash_merge.exports;const merge$4=getDefaultExportFromCjs(lodash_mergeExports);function isPlainObj(_e){return _typeof$e(_e)!=="object"?!1:_e===null?!0:!(React$1.isValidElement(_e)||_e.constructor===RegExp||_e instanceof Map||_e instanceof Set||_e instanceof HTMLElement||_e instanceof Blob||_e instanceof File||Array.isArray(_e))}var transformKeySubmitValue=function(et,rt){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ct=Object.keys(rt).reduce(function(gt,xt){var $t=rt[xt];return isNil($t)||(gt[xt]=$t),gt},{});if(Object.keys(ct).length<1||typeof window>"u"||_typeof$e(et)!=="object"||isNil(et)||et instanceof Blob)return et;var ut=Array.isArray(et)?[]:{},ft=function gt(xt,$t){var _t=Array.isArray(xt),wt=_t?[]:{};return xt==null||xt===void 0?wt:(Object.keys(xt).forEach(function(Tt){var Rt=function Ft(Ht,Wt){return Array.isArray(Ht)&&Ht.forEach(function(Vt,qt){if(Vt){var Gt=Wt==null?void 0:Wt[qt];typeof Vt=="function"&&(Wt[qt]=Vt(Wt,Tt,xt)),_typeof$e(Vt)==="object"&&!Array.isArray(Vt)&&Object.keys(Vt).forEach(function(Xt){var Zt=Gt==null?void 0:Gt[Xt];if(typeof Vt[Xt]=="function"&&Zt){var lr=Vt[Xt](Gt[Xt],Tt,xt);Gt[Xt]=_typeof$e(lr)==="object"?lr[Xt]:lr}else _typeof$e(Vt[Xt])==="object"&&Array.isArray(Vt[Xt])&&Zt&&Ft(Vt[Xt],Zt)}),_typeof$e(Vt)==="object"&&Array.isArray(Vt)&&Gt&&Ft(Vt,Gt)}}),Tt},It=$t?[$t,Tt].flat(1):[Tt].flat(1),At=xt[Tt],jt=get$7(ct,It),Nt=function(){var Ht,Wt,Vt=!1;if(typeof jt=="function"){Wt=jt==null?void 0:jt(At,Tt,xt);var qt=_typeof$e(Wt);qt!=="object"&&qt!=="undefined"?(Ht=Tt,Vt=!0):Ht=Wt}else Ht=Rt(jt,At);if(Array.isArray(Ht)){wt=set$2(wt,Ht,At);return}_typeof$e(Ht)==="object"&&!Array.isArray(ut)?ut=merge$4(ut,Ht):_typeof$e(Ht)==="object"&&Array.isArray(ut)?wt=_objectSpread2(_objectSpread2({},wt),Ht):(Ht!==null||Ht!==void 0)&&(wt=set$2(wt,[Ht],Vt?Wt:At))};if(jt&&typeof jt=="function"&&Nt(),!(typeof window>"u")){if(isPlainObj(At)){var kt=gt(At,It);if(Object.keys(kt).length<1)return;wt=set$2(wt,[Tt],kt);return}Nt()}}),st?wt:xt)};return ut=Array.isArray(et)&&Array.isArray(ut)?_toConsumableArray$3(ft(et)):merge$5({},ft(et),ut),ut};function useMediaQuery(_e){var et=typeof window>"u",rt=reactExports.useState(function(){return et?!1:window.matchMedia(_e).matches}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return reactExports.useLayoutEffect(function(){if(!et){var ft=window.matchMedia(_e),gt=function($t){return ut($t.matches)};return ft.addListener(gt),function(){return ft.removeListener(gt)}}},[_e]),ct}var MediaQueryEnum={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)"}},getScreenClassName=function(){var et=void 0;if(typeof window>"u")return et;var rt=Object.keys(MediaQueryEnum).find(function(st){var ct=MediaQueryEnum[st].matchMedia;return!!window.matchMedia(ct).matches});return et=rt,et},useBreakpoint=function(){var et=useMediaQuery(MediaQueryEnum.md.matchMedia),rt=useMediaQuery(MediaQueryEnum.lg.matchMedia),st=useMediaQuery(MediaQueryEnum.xxl.matchMedia),ct=useMediaQuery(MediaQueryEnum.xl.matchMedia),ut=useMediaQuery(MediaQueryEnum.sm.matchMedia),ft=useMediaQuery(MediaQueryEnum.xs.matchMedia),gt=reactExports.useState(getScreenClassName()),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1];return reactExports.useEffect(function(){if(st){_t("xxl");return}if(ct){_t("xl");return}if(rt){_t("lg");return}if(et){_t("md");return}if(ut){_t("sm");return}if(ft){_t("xs");return}_t("md")},[et,rt,st,ct,ut,ft]),$t};function omit$1(_e,et){for(var rt=Object.assign({},_e),st=0;st=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$3*et:Math.round(_e.h)+hueStep$3*et:st=rt?Math.round(_e.h)+hueStep$3*et:Math.round(_e.h)-hueStep$3*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$3(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$3*et:et===darkColorCount$3?st=_e.s+saturationStep$3:st=_e.s+saturationStep2$3*et,st>1&&(st=1),rt&&et===lightColorCount$3&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$5(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$3*et:st=_e.v-brightnessStep2$3*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$7(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$3;ct>0;ct-=1){var ut=toHsv$3(st),ft=toHex$3(inputToRGB$1({h:getHue$3(ut,ct,!0),s:getSaturation$3(ut,ct,!0),v:getValue$5(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$3(st));for(var gt=1;gt<=darkColorCount$3;gt+=1){var xt=toHsv$3(st),$t=toHex$3(inputToRGB$1({h:getHue$3(xt,gt),s:getSaturation$3(xt,gt),v:getValue$5(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$3.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$3(mix$3(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$3={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes$3={},presetDarkPalettes$3={};Object.keys(presetPrimaryColors$3).forEach(function(_e){presetPalettes$3[_e]=generate$7(presetPrimaryColors$3[_e]),presetPalettes$3[_e].primary=presetPalettes$3[_e][5],presetDarkPalettes$3[_e]=generate$7(presetPrimaryColors$3[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$3[_e].primary=presetDarkPalettes$3[_e][5]});var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$6=root$8.Symbol,_Symbol=Symbol$6;function arrayMap$2(_e,et){for(var rt=-1,st=_e==null?0:_e.length,ct=Array(st);++rtct?0:ct+et),rt=rt>ct?ct:rt,rt<0&&(rt+=ct),ct=et>rt?0:rt-et>>>0,et>>>=0;for(var ut=Array(ct);++st=st?_e:baseSlice(_e,et,rt)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(_e){return reHasUnicode.test(_e)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(_e){return _e.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(_e){return _e.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(_e){return hasUnicode$1(_e)?unicodeToArray(_e):asciiToArray(_e)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$6=toString_1;function createCaseFirst$1(_e){return function(et){et=toString$6(et);var rt=hasUnicode(et)?stringToArray(et):void 0,st=rt?rt[0]:et.charAt(0),ct=rt?castSlice(rt,1).join(""):et.slice(1);return st[_e]()+ct}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$5=toString_1,upperFirst=upperFirst_1;function capitalize$1(_e){return upperFirst(toString$5(_e).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(_e,et,rt,st){var ct=-1,ut=_e==null?0:_e.length;for(st&&ut&&(rt=_e[++ct]);++ct0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$4(rt)]=st}return et},{})}function generate$6(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$3(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$6(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$3(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$6(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$3(_e){return generate$7(_e)[0]}function normalizeTwoToneColors$3(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$3=` +`,useInsertStyles$4=function(et){var rt=reactExports.useContext(Context$7),st=rt.csp,ct=rt.prefixCls,ut=iconStyles$4;ct&&(ut=ut.replace(/anticon/g,ct)),reactExports.useEffect(function(){var ft=et.current,gt=getShadowRoot$1(ft);updateCSS(ut,"@ant-design-icons",{prepend:!0,csp:st,attachTo:gt})},[])},_excluded$G=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$4={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$4(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$4.primaryColor=et,twoToneColorPalette$4.secondaryColor=rt||getSecondaryColor$4(et),twoToneColorPalette$4.calculated=!!rt}function getTwoToneColors$4(){return _objectSpread2({},twoToneColorPalette$4)}var IconBase$5=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$G),$t=reactExports.useRef(),_t=twoToneColorPalette$4;if(ft&&(_t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$4(ft)}),useInsertStyles$4($t),warning$6(isIconDefinition$4(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$4(rt))return null;var wt=rt;return wt&&typeof wt.icon=="function"&&(wt=_objectSpread2(_objectSpread2({},wt),{},{icon:wt.icon(_t.primaryColor,_t.secondaryColor)})),generate$8(wt.icon,"svg-".concat(wt.name),_objectSpread2(_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":wt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt),{},{ref:$t}))};IconBase$5.displayName="IconReact";IconBase$5.getTwoToneColors=getTwoToneColors$4;IconBase$5.setTwoToneColors=setTwoToneColors$4;const ReactIcon$4=IconBase$5;function setTwoToneColor$4(_e){var et=normalizeTwoToneColors$4(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$4.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$4(){var _e=ReactIcon$4.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$F=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$4(blue$3.primary);var Icon$7=reactExports.forwardRef(function(_e,et){var rt=_e.className,st=_e.icon,ct=_e.spin,ut=_e.rotate,ft=_e.tabIndex,gt=_e.onClick,xt=_e.twoToneColor,$t=_objectWithoutProperties$2(_e,_excluded$F),_t=reactExports.useContext(Context$7),wt=_t.prefixCls,Tt=wt===void 0?"anticon":wt,Rt=_t.rootClassName,It=classNames(Rt,Tt,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-").concat(st.name),!!st.name),"".concat(Tt,"-spin"),!!ct||st.name==="loading"),rt),At=ft;At===void 0&>&&(At=-1);var jt=ut?{msTransform:"rotate(".concat(ut,"deg)"),transform:"rotate(".concat(ut,"deg)")}:void 0,Nt=normalizeTwoToneColors$4(xt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];return reactExports.createElement("span",_extends$b({role:"img","aria-label":st.name},$t,{ref:et,tabIndex:At,onClick:gt,className:It}),reactExports.createElement(ReactIcon$4,{icon:st,primaryColor:Ft,secondaryColor:Ht,style:jt}))});Icon$7.displayName="AntdIcon";Icon$7.getTwoToneColor=getTwoToneColor$4;Icon$7.setTwoToneColor=setTwoToneColor$4;const AntdIcon$5=Icon$7;var ApartmentOutlined$2={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"};const ApartmentOutlinedSvg=ApartmentOutlined$2;var CloseCircleFilled=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:CloseCircleFilledSvg}))};const CloseCircleFilled$1=reactExports.forwardRef(CloseCircleFilled);var CopyrightOutlined$2={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"};const CopyrightOutlinedSvg=CopyrightOutlined$2;var DownOutlined=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:DownOutlinedSvg}))};const DownOutlined$1=reactExports.forwardRef(DownOutlined);var InfoCircleOutlined$2={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"};const InfoCircleOutlinedSvg=InfoCircleOutlined$2;var InfoCircleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$5,_extends$b({},et,{ref:rt,icon:InfoCircleOutlinedSvg}))};const InfoCircleOutlined$1=reactExports.forwardRef(InfoCircleOutlined);var LockOutlined$2={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"};const LockOutlinedSvg=LockOutlined$2;var LogoutOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const LogoutOutlinedSvg=LogoutOutlined$2;var MenuOutlined$2={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"};const MenuOutlinedSvg=MenuOutlined$2;var MessageOutlined$2={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"};const MessageOutlinedSvg=MessageOutlined$2;var MobileOutlined$2={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"};const MobileOutlinedSvg=MobileOutlined$2;var QuestionCircleFilled$2={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"};const QuestionCircleFilledSvg=QuestionCircleFilled$2;var RobotOutlined$2={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"};const RobotOutlinedSvg=RobotOutlined$2;var SettingOutlined$2={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"};const SettingOutlinedSvg=SettingOutlined$2;var UploadOutlined$2={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"};const UploadOutlinedSvg=UploadOutlined$2;var UserOutlined$2={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"};const UserOutlinedSvg=UserOutlined$2;var genProStyle$4=function(et){return _defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"inline-flex",gap:et.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:et.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:et.colorBgTextHover},"&-active":_defineProperty$c({paddingBlock:0,paddingInline:8,backgroundColor:et.colorBgTextHover},"&".concat(et.componentCls,"-allow-clear:hover:not(").concat(et.componentCls,"-disabled)"),_defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-arrow"),{display:"none"}),"".concat(et.componentCls,"-close"),{display:"inline-flex"}))},"".concat(et.antCls,"-select"),_defineProperty$c({},"".concat(et.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(et.antCls,"-picker"),_defineProperty$c({},"".concat(et.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",_defineProperty$c(_defineProperty$c({color:et.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(et.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:et.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:et.colorIconHover})),"&-disabled",_defineProperty$c({color:et.colorTextPlaceholder,cursor:"not-allowed"},"".concat(et.componentCls,"-icon"),{color:et.colorTextPlaceholder})),"&-small",_defineProperty$c(_defineProperty$c(_defineProperty$c({height:"24px",paddingBlock:0,paddingInline:4,fontSize:et.fontSizeSM,lineHeight:"24px"},"&".concat(et.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(et.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(et.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(et.lineWidth,"px solid ").concat(et.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:et.colorBgContainer}))};function useStyle$g(_e){return useStyle$i("FieldLabel",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$4(rt)]})}var FieldLabelFunction=function(et,rt){var st,ct,ut,ft=et.label,gt=et.onClear,xt=et.value,$t=et.disabled,_t=et.onLabelClick,wt=et.ellipsis,Tt=et.placeholder,Rt=et.className,It=et.formatter,At=et.bordered,jt=et.style,Nt=et.downIcon,kt=et.allowClear,Ft=kt===void 0?!0:kt,Ht=et.valueMaxLength,Wt=Ht===void 0?41:Ht,Vt=(ConfigProvider$1==null||(st=ConfigProvider$1.useConfig)===null||st===void 0?void 0:st.call(ConfigProvider$1))||{componentSize:"middle"},qt=Vt.componentSize,Xt=qt,Gt=reactExports.useContext(ConfigProvider$1.ConfigContext),Zt=Gt.getPrefixCls,er=Zt("pro-core-field-label"),lr=useStyle$g(er),cr=lr.wrapSSR,ur=lr.hashId,fr=useIntl$1(),hr=reactExports.useRef(null),pr=reactExports.useRef(null);reactExports.useImperativeHandle(rt,function(){return{labelRef:pr,clearRef:hr}});var dr=function(mr){return mr.every(function(Er){return typeof Er=="string"})?mr.join(","):mr.map(function(Er,Tr){var Mr=Tr===mr.length-1?"":",";return typeof Er=="string"?jsxRuntimeExports.jsxs("span",{children:[Er,Mr]},Tr):jsxRuntimeExports.jsxs("span",{style:{display:"flex"},children:[Er,Mr]},Tr)})},yr=function(mr){return It?It(mr):Array.isArray(mr)?dr(mr):mr},Sr=function(mr,Er){if(Er!=null&&Er!==""&&(!Array.isArray(Er)||Er.length)){var Tr,Mr,Or=mr?jsxRuntimeExports.jsxs("span",{onClick:function(){_t==null||_t()},className:"".concat(er,"-text"),children:[mr,": "]}):"",wr=yr(Er);if(!wt)return jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Or,yr(Er)]});var Cr=function(){var Pr=Array.isArray(Er)&&Er.length>1,jr=fr.getMessage("form.lightFilter.itemUnit","项");return typeof wr=="string"&&wr.length>Wt&&Pr?"...".concat(Er.length).concat(jr):""},Nr=Cr();return jsxRuntimeExports.jsxs("span",{title:typeof wr=="string"?wr:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Or,jsxRuntimeExports.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof wr=="string"?wr==null||(Tr=wr.toString())===null||Tr===void 0||(Mr=Tr.substr)===null||Mr===void 0?void 0:Mr.call(Tr,0,Wt):wr}),Nr]})}return mr||Tt};return cr(jsxRuntimeExports.jsxs("span",{className:classNames(er,ur,"".concat(er,"-").concat((ct=(ut=et.size)!==null&&ut!==void 0?ut:Xt)!==null&&ct!==void 0?ct:"middle"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(er,"-active"),!!xt||xt===0),"".concat(er,"-disabled"),$t),"".concat(er,"-bordered"),At),"".concat(er,"-allow-clear"),Ft),Rt),style:jt,ref:pr,onClick:function(){var mr;et==null||(mr=et.onClick)===null||mr===void 0||mr.call(et)},children:[Sr(ft,xt),(xt||xt===0)&&Ft&&jsxRuntimeExports.jsx(CloseCircleFilled$1,{role:"button",title:fr.getMessage("form.lightFilter.clear","清除"),className:classNames("".concat(er,"-icon"),ur,"".concat(er,"-close")),onClick:function(mr){$t||gt==null||gt(),mr.stopPropagation()},ref:hr}),Nt!==!1?Nt??jsxRuntimeExports.jsx(DownOutlined$1,{className:classNames("".concat(er,"-icon"),ur,"".concat(er,"-arrow"))}):null]}))},FieldLabel=React$1.forwardRef(FieldLabelFunction),omitUndefined=function(et){var rt={};if(Object.keys(et||{}).forEach(function(st){et[st]!==void 0&&(rt[st]=et[st])}),!(Object.keys(rt).length<1))return rt},semver=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,isWildcard=function(et){return et==="*"||et==="x"||et==="X"},tryParse=function(et){var rt=parseInt(et,10);return isNaN(rt)?et:rt},forceType=function(et,rt){return _typeof$e(et)!==_typeof$e(rt)?[String(et),String(rt)]:[et,rt]},compareStrings=function(et,rt){if(isWildcard(et)||isWildcard(rt))return 0;var st=forceType(tryParse(et),tryParse(rt)),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1];return ut>ft?1:ut"u"?version$4:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$4},openVisibleCompatible=function(et,rt){var st=compareVersions(getVersion$3(),"4.23.0")>-1?{open:et,onOpenChange:rt}:{visible:et,onVisibleChange:rt};return omitUndefined(st)},genProStyle$3=function(et){return _defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-label"),{cursor:"pointer"}),"".concat(et.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(et.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function useStyle$f(_e){return useStyle$i("FilterDropdown",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$3(rt)]})}var FilterDropdown=function(et){var rt=et.children,st=et.label,ct=et.footer,ut=et.open,ft=et.onOpenChange,gt=et.disabled,xt=et.onVisibleChange,$t=et.visible,_t=et.footerRender,wt=et.placement,Tt=reactExports.useContext(ConfigProvider$1.ConfigContext),Rt=Tt.getPrefixCls,It=Rt("pro-core-field-dropdown"),At=useStyle$f(It),jt=At.wrapSSR,Nt=At.hashId,kt=openVisibleCompatible(ut||$t||!1,ft||xt),Ft=reactExports.useRef(null);return jt(jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({placement:wt,trigger:["click"]},kt),{},{overlayInnerStyle:{padding:0},content:jsxRuntimeExports.jsxs("div",{ref:Ft,className:classNames("".concat(It,"-overlay"),_defineProperty$c(_defineProperty$c({},"".concat(It,"-overlay-").concat(wt),wt),"hashId",Nt)),children:[jsxRuntimeExports.jsx(ConfigProvider$1,{getPopupContainer:function(){return Ft.current||document.body},children:jsxRuntimeExports.jsx("div",{className:"".concat(It,"-content ").concat(Nt).trim(),children:rt})}),ct&&jsxRuntimeExports.jsx(DropdownFooter,_objectSpread2({disabled:gt,footerRender:_t},ct))]}),children:jsxRuntimeExports.jsx("span",{className:"".concat(It,"-label ").concat(Nt).trim(),children:st})})))},genProStyle$2=function(et){return _defineProperty$c({},et.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:et.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:et.colorTextSecondary,fontWeight:"normal",fontSize:et.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function useStyle$e(_e){return useStyle$i("LabelIconTip",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$2(rt)]})}var LabelIconTip=React$1.memo(function(_e){var et=_e.label,rt=_e.tooltip,st=_e.ellipsis,ct=_e.subTitle,ut=reactExports.useContext(ConfigProvider$1.ConfigContext),ft=ut.getPrefixCls,gt=ft("pro-core-label-tip"),xt=useStyle$e(gt),$t=xt.wrapSSR,_t=xt.hashId;if(!rt&&!ct)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et});var wt=typeof rt=="string"||React$1.isValidElement(rt)?{title:rt}:rt,Tt=(wt==null?void 0:wt.icon)||jsxRuntimeExports.jsx(InfoCircleOutlined$1,{});return $t(jsxRuntimeExports.jsxs("div",{className:classNames(gt,_t),onMouseDown:function(It){return It.stopPropagation()},onMouseLeave:function(It){return It.stopPropagation()},onMouseMove:function(It){return It.stopPropagation()},children:[jsxRuntimeExports.jsx("div",{className:classNames("".concat(gt,"-title"),_t,_defineProperty$c({},"".concat(gt,"-title-ellipsis"),st)),children:et}),ct&&jsxRuntimeExports.jsx("div",{className:"".concat(gt,"-subtitle ").concat(_t).trim(),children:ct}),rt&&jsxRuntimeExports.jsx(Tooltip$1,_objectSpread2(_objectSpread2({},wt),{},{children:jsxRuntimeExports.jsx("span",{className:"".concat(gt,"-icon ").concat(_t).trim(),children:Tt})}))]}))}),ProFormContext=React$1.createContext({}),quarterOfYear$1={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){var rt="month",st="quarter";return function(ct,ut){var ft=ut.prototype;ft.quarter=function($t){return this.$utils().u($t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*($t-1))};var gt=ft.add;ft.add=function($t,_t){return $t=Number($t),this.$utils().p(_t)===st?this.add(3*$t,rt):gt.bind(this)($t,_t)};var xt=ft.startOf;ft.startOf=function($t,_t){var wt=this.$utils(),Tt=!!wt.u(_t)||_t;if(wt.p($t)===st){var Rt=this.quarter()-1;return Tt?this.month(3*Rt).startOf(rt).startOf("day"):this.month(3*Rt+2).endOf(rt).endOf("day")}return xt.bind(this)($t,_t)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);var isNil=function(et){return et==null};dayjs.extend(quarterOfYear);var dateFormatterMap={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 isObject$i(_e){return Object.prototype.toString.call(_e)==="[object Object]"}function isPlainObject$3(_e){if(isObject$i(_e)===!1)return!1;var et=_e.constructor;if(et===void 0)return!0;var rt=et.prototype;return!(isObject$i(rt)===!1||rt.hasOwnProperty("isPrototypeOf")===!1)}var isMoment$2=function(et){return!!(et!=null&&et._isAMomentObject)},convertMoment=function(et,rt,st){if(!rt)return et;if(dayjs.isDayjs(et)||isMoment$2(et)){if(rt==="number")return et.valueOf();if(rt==="string")return et.format(dateFormatterMap[st]||"YYYY-MM-DD HH:mm:ss");if(typeof rt=="string"&&rt!=="string")return et.format(rt);if(typeof rt=="function")return rt(et,st)}return et},conversionMomentValue=function _e(et,rt,st,ct,ut){var ft={};return typeof window>"u"||_typeof$e(et)!=="object"||isNil(et)||et instanceof Blob||Array.isArray(et)?et:(Object.keys(et).forEach(function(gt){var xt=ut?[ut,gt].flat(1):[gt],$t=get$7(st,xt)||"text",_t="text",wt;typeof $t=="string"?_t=$t:$t&&(_t=$t.valueType,wt=$t.dateFormat);var Tt=et[gt];if(!(isNil(Tt)&&ct)){if(isPlainObject$3(Tt)&&!Array.isArray(Tt)&&!dayjs.isDayjs(Tt)&&!isMoment$2(Tt)){ft[gt]=_e(Tt,rt,st,ct,[gt]);return}if(Array.isArray(Tt)){ft[gt]=Tt.map(function(Rt,It){return dayjs.isDayjs(Rt)||isMoment$2(Rt)?convertMoment(Rt,wt||rt,_t):_e(Rt,rt,st,ct,[gt,"".concat(It)].flat(1))});return}ft[gt]=convertMoment(Tt,wt||rt,_t)}}),ft)},formatString=function(et,rt){return typeof rt=="function"?rt(dayjs(et)):dayjs(et).format(rt)},dateArrayFormatter=function(et,rt){var st=Array.isArray(et)?et:[],ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt,xt;Array.isArray(rt)?(gt=rt[0],xt=rt[1]):(gt=rt,xt=rt);var $t=ut?formatString(ut,gt):"",_t=ft?formatString(ft,xt):"",wt=$t&&_t?"".concat($t," ~ ").concat(_t):"";return wt};function runFunction(_e){if(typeof _e=="function"){for(var et=arguments.length,rt=new Array(et>1?et-1:0),st=1;st1&&arguments[1]!==void 0?arguments[1]:100,rt=arguments.length>2?arguments[2]:void 0,st=reactExports.useState(_e),ct=_slicedToArray$3(st,2),ut=ct[0],ft=ct[1],gt=useLatest$1(_e);return reactExports.useEffect(function(){var xt=setTimeout(function(){ft(gt.current)},et);return function(){return clearTimeout(xt)}},rt?[et].concat(_toConsumableArray$3(rt)):void 0),ut}function isDeepEqualReact(_e,et,rt,st){if(_e===et)return!0;if(_e&&et&&_typeof$e(_e)==="object"&&_typeof$e(et)==="object"){if(_e.constructor!==et.constructor)return!1;var ct,ut,ft;if(Array.isArray(_e)){if(ct=_e.length,ct!=et.length)return!1;for(ut=ct;ut--!==0;)if(!isDeepEqualReact(_e[ut],et[ut],rt,st))return!1;return!0}if(_e instanceof Map&&et instanceof Map){if(_e.size!==et.size)return!1;var gt=_createForOfIteratorHelper$1(_e.entries()),xt;try{for(gt.s();!(xt=gt.n()).done;)if(ut=xt.value,!et.has(ut[0]))return!1}catch(It){gt.e(It)}finally{gt.f()}var $t=_createForOfIteratorHelper$1(_e.entries()),_t;try{for($t.s();!(_t=$t.n()).done;)if(ut=_t.value,!isDeepEqualReact(ut[1],et.get(ut[0]),rt,st))return!1}catch(It){$t.e(It)}finally{$t.f()}return!0}if(_e instanceof Set&&et instanceof Set){if(_e.size!==et.size)return!1;var wt=_createForOfIteratorHelper$1(_e.entries()),Tt;try{for(wt.s();!(Tt=wt.n()).done;)if(ut=Tt.value,!et.has(ut[0]))return!1}catch(It){wt.e(It)}finally{wt.f()}return!0}if(ArrayBuffer.isView(_e)&&ArrayBuffer.isView(et)){if(ct=_e.length,ct!=et.length)return!1;for(ut=ct;ut--!==0;)if(_e[ut]!==et[ut])return!1;return!0}if(_e.constructor===RegExp)return _e.source===et.source&&_e.flags===et.flags;if(_e.valueOf!==Object.prototype.valueOf&&_e.valueOf)return _e.valueOf()===et.valueOf();if(_e.toString!==Object.prototype.toString&&_e.toString)return _e.toString()===et.toString();if(ft=Object.keys(_e),ct=ft.length,ct!==Object.keys(et).length)return!1;for(ut=ct;ut--!==0;)if(!Object.prototype.hasOwnProperty.call(et,ft[ut]))return!1;for(ut=ct;ut--!==0;){var Rt=ft[ut];if(!(rt!=null&&rt.includes(Rt))&&!(Rt==="_owner"&&_e.$$typeof)&&!isDeepEqualReact(_e[Rt],et[Rt],rt,st))return st&&console.log(Rt),!1}return!0}return _e!==_e&&et!==et}var isDeepEqual=function(et,rt,st){return isDeepEqualReact(et,rt,st)};function useDeepCompareMemoize(_e,et){var rt=reactExports.useRef();return isDeepEqual(_e,rt.current,et)||(rt.current=_e),rt.current}function useDeepCompareEffect(_e,et,rt){reactExports.useEffect(_e,useDeepCompareMemoize(et||[],rt))}function useDeepCompareMemo(_e,et){return React$1.useMemo(_e,useDeepCompareMemoize(et))}var isNode=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,isBrowser=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!isNode};function useDocumentTitle(_e,et){var rt=typeof _e.pageName=="string"?_e.title:et;reactExports.useEffect(function(){isBrowser()&&rt&&(document.title=rt)},[_e.title,rt])}var testId=0;function useFetchData(_e){var et=reactExports.useRef(null),rt=reactExports.useState(function(){return _e.proFieldKey?_e.proFieldKey.toString():(testId+=1,testId.toString())}),st=_slicedToArray$3(rt,1),ct=st[0],ut=reactExports.useRef(ct),ft=function(){var _t=_asyncToGenerator(_regeneratorRuntime().mark(function wt(){var Tt,Rt,It,At;return _regeneratorRuntime().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return(Tt=et.current)===null||Tt===void 0||Tt.abort(),It=new AbortController,et.current=It,Nt.next=5,Promise.race([(Rt=_e.request)===null||Rt===void 0?void 0:Rt.call(_e,_e.params,_e),new Promise(function(kt,Ft){var Ht;(Ht=et.current)===null||Ht===void 0||(Ht=Ht.signal)===null||Ht===void 0||Ht.addEventListener("abort",function(){Ft(new Error("aborted"))})})]);case 5:return At=Nt.sent,Nt.abrupt("return",At);case 7:case"end":return Nt.stop()}},wt)}));return function(){return _t.apply(this,arguments)}}();reactExports.useEffect(function(){return function(){testId+=1}},[]);var gt=useSWR([ut.current,_e.params],ft,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),xt=gt.data,$t=gt.error;return[xt||$t]}var usePrevious=function(et){var rt=reactExports.useRef();return reactExports.useEffect(function(){rt.current=et}),rt.current},isDropdownValueType=function(et){var rt=!1;return(typeof et=="string"&&et.startsWith("date")&&!et.endsWith("Range")||et==="select"||et==="time")&&(rt=!0),rt};function isImg(_e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(_e)}var isUrl$1=function(et){if(!et||!et.startsWith("http"))return!1;try{var rt=new URL(et);return!!rt}catch{return!1}},merge$5=function(){for(var et={},rt=arguments.length,st=new Array(rt),ct=0;ct0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(index+=1).toFixed(0);for(var rt="",st=crypto.getRandomValues(new Uint8Array(et));et--;){var ct=63&st[et];rt+=ct<36?ct.toString(36):ct<62?(ct-26).toString(36).toUpperCase():ct<63?"_":"-"}return rt},nanoid=function(){return typeof window>"u"?genNanoid():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():genNanoid()};dayjs.extend(customParseFormat);var isMoment$1=function(et){return!!(et!=null&&et._isAMomentObject)},parseValueToDay=function _e(et,rt){return isNil(et)||dayjs.isDayjs(et)||isMoment$1(et)?isMoment$1(et)?dayjs(et):et:Array.isArray(et)?et.map(function(st){return _e(st,rt)}):typeof et=="number"?dayjs(et):dayjs(et,rt)},antdFormItemPropsList=["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 pickProFormItemProps(_e){var et={};return antdFormItemPropsList.forEach(function(rt){_e[rt]!==void 0&&(et[rt]=_e[rt])}),et}var proFieldProps="valueType request plain renderFormItem render text formItemProps valueEnum",proFormProps="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function pickProProps(_e){var et="".concat(proFieldProps," ").concat(proFormProps).split(/[\s\n]+/),rt={};return Object.keys(_e||{}).forEach(function(st){et.includes(st)||(rt[st]=_e[st])}),rt}function getType(_e){var et=Object.prototype.toString.call(_e).match(/^\[object (.*)\]$/)[1].toLowerCase();return et==="string"&&_typeof$e(_e)==="object"?"object":_e===null?"null":_e===void 0?"undefined":et}var ProFieldBadgeColor=function(et){var rt=et.color,st=et.children;return jsxRuntimeExports.jsx(Badge$1,{color:rt,text:st})},objectToMap=function(et){return getType(et)==="map"?et:new Map(Object.entries(et||{}))},TableStatus={Success:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"success",text:rt})},Error:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"error",text:rt})},Default:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"default",text:rt})},Processing:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"processing",text:rt})},Warning:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"warning",text:rt})},success:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"success",text:rt})},error:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"error",text:rt})},default:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"default",text:rt})},processing:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"processing",text:rt})},warning:function(et){var rt=et.children;return jsxRuntimeExports.jsx(Badge$1,{status:"warning",text:rt})}},proFieldParsingText=function _e(et,rt,st){if(Array.isArray(et))return jsxRuntimeExports.jsx(Space$1,{split:",",size:2,wrap:!0,children:et.map(function($t,_t){return _e($t,rt,_t)})},st);var ct=objectToMap(rt);if(!ct.has(et)&&!ct.has("".concat(et)))return(et==null?void 0:et.label)||et;var ut=ct.get(et)||ct.get("".concat(et));if(!ut)return jsxRuntimeExports.jsx(React$1.Fragment,{children:(et==null?void 0:et.label)||et},st);var ft=ut.status,gt=ut.color,xt=TableStatus[ft||"Init"];return xt?jsxRuntimeExports.jsx(xt,{children:ut.text},st):gt?jsxRuntimeExports.jsx(ProFieldBadgeColor,{color:gt,children:ut.text},st):jsxRuntimeExports.jsx(React$1.Fragment,{children:ut.text||ut},st)},safeStableStringify={exports:{}};(function(_e,et){const{hasOwnProperty:rt}=Object.prototype,st=jt();st.configure=jt,st.stringify=st,st.default=st,et.stringify=st,et.configure=jt,_e.exports=st;const ct=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function ut(Nt){return Nt.length<5e3&&!ct.test(Nt)?`"${Nt}"`:JSON.stringify(Nt)}function ft(Nt){if(Nt.length>200)return Nt.sort();for(let kt=1;ktFt;)Nt[Ht]=Nt[Ht-1],Ht--;Nt[Ht]=Ft}return Nt}const gt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function xt(Nt){return gt.call(Nt)!==void 0&&Nt.length!==0}function $t(Nt,kt,Ft){Nt.length= 1`)}return Ft===void 0?1/0:Ft}function Rt(Nt){return Nt===1?"1 item":`${Nt} items`}function It(Nt){const kt=new Set;for(const Ft of Nt)(typeof Ft=="string"||typeof Ft=="number")&&kt.add(String(Ft));return kt}function At(Nt){if(rt.call(Nt,"strict")){const kt=Nt.strict;if(typeof kt!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(kt)return Ft=>{let Ht=`Object can not safely be stringified. Received type ${typeof Ft}`;throw typeof Ft!="function"&&(Ht+=` (${Ft.toString()})`),new Error(Ht)}}}function jt(Nt){Nt={...Nt};const kt=At(Nt);kt&&(Nt.bigint===void 0&&(Nt.bigint=!1),"circularValue"in Nt||(Nt.circularValue=Error));const Ft=_t(Nt),Ht=wt(Nt,"bigint"),Wt=wt(Nt,"deterministic"),Vt=Tt(Nt,"maximumDepth"),qt=Tt(Nt,"maximumBreadth");function Xt(cr,ur,fr,hr,pr,dr){let yr=ur[cr];switch(typeof yr=="object"&&yr!==null&&typeof yr.toJSON=="function"&&(yr=yr.toJSON(cr)),yr=hr.call(ur,cr,yr),typeof yr){case"string":return ut(yr);case"object":{if(yr===null)return"null";if(fr.indexOf(yr)!==-1)return Ft;let Sr="",br=",";const mr=dr;if(Array.isArray(yr)){if(yr.length===0)return"[]";if(Vtqt){const Pr=yr.length-qt-1;Sr+=`${br}"... ${Rt(Pr)} not stringified"`}return pr!==""&&(Sr+=` +${mr}`),fr.pop(),`[${Sr}]`}let Er=Object.keys(yr);const Tr=Er.length;if(Tr===0)return"{}";if(Vtqt){const Cr=Tr-qt;Sr+=`${Or}"...":${Mr}"${Rt(Cr)} not stringified"`,Or=br}return pr!==""&&Or.length>1&&(Sr=` +${dr}${Sr} +${mr}`),fr.pop(),`{${Sr}}`}case"number":return isFinite(yr)?String(yr):kt?kt(yr):"null";case"boolean":return yr===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(yr);default:return kt?kt(yr):void 0}}function Gt(cr,ur,fr,hr,pr,dr){switch(typeof ur=="object"&&ur!==null&&typeof ur.toJSON=="function"&&(ur=ur.toJSON(cr)),typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(fr.indexOf(ur)!==-1)return Ft;const yr=dr;let Sr="",br=",";if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const wr=ur.length-qt-1;Sr+=`${br}"... ${Rt(wr)} not stringified"`}return pr!==""&&(Sr+=` +${yr}`),fr.pop(),`[${Sr}]`}fr.push(ur);let mr="";pr!==""&&(dr+=pr,br=`, +${dr}`,mr=" ");let Er="";for(const Tr of hr){const Mr=Gt(Tr,ur[Tr],fr,hr,pr,dr);Mr!==void 0&&(Sr+=`${Er}${ut(Tr)}:${mr}${Mr}`,Er=br)}return pr!==""&&Er.length>1&&(Sr=` +${dr}${Sr} +${yr}`),fr.pop(),`{${Sr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function Zt(cr,ur,fr,hr,pr){switch(typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(typeof ur.toJSON=="function"){if(ur=ur.toJSON(cr),typeof ur!="object")return Zt(cr,ur,fr,hr,pr);if(ur===null)return"null"}if(fr.indexOf(ur)!==-1)return Ft;const dr=pr;if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const Rr=ur.length-qt-1;Mr+=`${Or}"... ${Rt(Rr)} not stringified"`}return Mr+=` +${dr}`,fr.pop(),`[${Mr}]`}let yr=Object.keys(ur);const Sr=yr.length;if(Sr===0)return"{}";if(Vtqt){const Mr=Sr-qt;mr+=`${Er}"...": "${Rt(Mr)} not stringified"`,Er=br}return Er!==""&&(mr=` +${pr}${mr} +${dr}`),fr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function er(cr,ur,fr){switch(typeof ur){case"string":return ut(ur);case"object":{if(ur===null)return"null";if(typeof ur.toJSON=="function"){if(ur=ur.toJSON(cr),typeof ur!="object")return er(cr,ur,fr);if(ur===null)return"null"}if(fr.indexOf(ur)!==-1)return Ft;let hr="";if(Array.isArray(ur)){if(ur.length===0)return"[]";if(Vtqt){const Tr=ur.length-qt-1;hr+=`,"... ${Rt(Tr)} not stringified"`}return fr.pop(),`[${hr}]`}let pr=Object.keys(ur);const dr=pr.length;if(dr===0)return"{}";if(Vtqt){const br=dr-qt;hr+=`${yr}"...":"${Rt(br)} not stringified"`}return fr.pop(),`{${hr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur):"null";case"boolean":return ur===!0?"true":"false";case"undefined":return;case"bigint":if(Ht)return String(ur);default:return kt?kt(ur):void 0}}function lr(cr,ur,fr){if(arguments.length>1){let hr="";if(typeof fr=="number"?hr=" ".repeat(Math.min(fr,10)):typeof fr=="string"&&(hr=fr.slice(0,10)),ur!=null){if(typeof ur=="function")return Xt("",{"":cr},[],ur,hr,"");if(Array.isArray(ur))return Gt("",cr,[],It(ur),hr,"")}if(hr.length!==0)return Zt("",cr,[],hr,"")}return er("",cr,[])}return lr}})(safeStableStringify,safeStableStringify.exports);var safeStableStringifyExports=safeStableStringify.exports;const cjsModule=getDefaultExportFromCjs(safeStableStringifyExports),configure=cjsModule.configure;var stringify=configure({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});const stringify$1=stringify;var lodash_merge={exports:{}};lodash_merge.exports;(function(_e,et){var rt=200,st="__lodash_hash_undefined__",ct=800,ut=16,ft=9007199254740991,gt="[object Arguments]",xt="[object Array]",$t="[object AsyncFunction]",_t="[object Boolean]",wt="[object Date]",Tt="[object Error]",Rt="[object Function]",It="[object GeneratorFunction]",At="[object Map]",jt="[object Number]",Nt="[object Null]",kt="[object Object]",Ft="[object Proxy]",Ht="[object RegExp]",Wt="[object Set]",Vt="[object String]",qt="[object Undefined]",Xt="[object WeakMap]",Gt="[object ArrayBuffer]",Zt="[object DataView]",er="[object Float32Array]",lr="[object Float64Array]",cr="[object Int8Array]",ur="[object Int16Array]",fr="[object Int32Array]",hr="[object Uint8Array]",pr="[object Uint8ClampedArray]",dr="[object Uint16Array]",yr="[object Uint32Array]",Sr=/[\\^$.*+?()[\]{}|]/g,br=/^\[object .+?Constructor\]$/,mr=/^(?:0|[1-9]\d*)$/,Er={};Er[er]=Er[lr]=Er[cr]=Er[ur]=Er[fr]=Er[hr]=Er[pr]=Er[dr]=Er[yr]=!0,Er[gt]=Er[xt]=Er[Gt]=Er[_t]=Er[Zt]=Er[wt]=Er[Tt]=Er[Rt]=Er[At]=Er[jt]=Er[kt]=Er[Ht]=Er[Wt]=Er[Vt]=Er[Xt]=!1;var Tr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Mr=typeof self=="object"&&self&&self.Object===Object&&self,Or=Tr||Mr||Function("return this")(),wr=et&&!et.nodeType&&et,Cr=wr&&!0&&_e&&!_e.nodeType&&_e,Nr=Cr&&Cr.exports===wr,Rr=Nr&&Tr.process,Pr=function(){try{var En=Cr&&Cr.require&&Cr.require("util").types;return En||Rr&&Rr.binding&&Rr.binding("util")}catch{}}(),jr=Pr&&Pr.isTypedArray;function kr(En,Mn,Un){switch(Un.length){case 0:return En.call(Mn);case 1:return En.call(Mn,Un[0]);case 2:return En.call(Mn,Un[0],Un[1]);case 3:return En.call(Mn,Un[0],Un[1],Un[2])}return En.apply(Mn,Un)}function Fr(En,Mn){for(var Un=-1,_o=Array(En);++Un-1}function Hn(En,Mn){var Un=this.__data__,_o=uo(Un,En);return _o<0?(++this.size,Un.push([En,Mn])):Un[_o][1]=Mn,this}$n.prototype.clear=Sn,$n.prototype.delete=xn,$n.prototype.get=In,$n.prototype.has=jn,$n.prototype.set=Hn;function qn(En){var Mn=-1,Un=En==null?0:En.length;for(this.clear();++Mn1?Un[zo-1]:void 0,na=zo>2?Un[2]:void 0;for(Zo=En.length>3&&typeof Zo=="function"?(zo--,Zo):void 0,na&&Mo(Un[0],Un[1],na)&&(Zo=zo<3?void 0:Zo,zo=1),Mn=Object(Mn);++_o-1&&En%1==0&&En0){if(++Mn>=ct)return arguments[0]}else Mn=0;return En.apply(void 0,arguments)}}function Is(En){if(En!=null){try{return ln.call(En)}catch{}try{return En+""}catch{}}return""}function Cs(En,Mn){return En===Mn||En!==En&&Mn!==Mn}var Xs=so(function(){return arguments}())?so:function(En){return Go(En)&&Qr.call(En,"callee")&&!mn.call(En,"callee")},Zs=Array.isArray;function Js(En){return En!=null&&Jo(En.length)&&!Io(En)}function dp(En){return Go(En)&&Js(En)}var So=kn||Tm;function Io(En){if(!Yo(En))return!1;var Mn=Ho(En);return Mn==Rt||Mn==It||Mn==$t||Mn==Ft}function Jo(En){return typeof En=="number"&&En>-1&&En%1==0&&En<=ft}function Yo(En){var Mn=typeof En;return En!=null&&(Mn=="object"||Mn=="function")}function Go(En){return En!=null&&typeof En=="object"}function Al(En){if(!Go(En)||Ho(En)!=kt)return!1;var Mn=Gr(En);if(Mn===null)return!0;var Un=Qr.call(Mn,"constructor")&&Mn.constructor;return typeof Un=="function"&&Un instanceof Un&&ln.call(Un)==vr}var Ku=jr?_r(jr):Po;function Pp(En){return Fn(En,yl(En))}function yl(En){return Js(En)?ro(En,!0):Ao(En)}var _m=Dn(function(En,Mn,Un){Wo(En,Mn,Un)});function wm(En){return function(){return En}}function am(En){return En}function Tm(){return!1}_e.exports=_m})(lodash_merge,lodash_merge.exports);var lodash_mergeExports=lodash_merge.exports;const merge$4=getDefaultExportFromCjs(lodash_mergeExports);function isPlainObj(_e){return _typeof$e(_e)!=="object"?!1:_e===null?!0:!(React$1.isValidElement(_e)||_e.constructor===RegExp||_e instanceof Map||_e instanceof Set||_e instanceof HTMLElement||_e instanceof Blob||_e instanceof File||Array.isArray(_e))}var transformKeySubmitValue=function(et,rt){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ct=Object.keys(rt).reduce(function(gt,xt){var $t=rt[xt];return isNil($t)||(gt[xt]=$t),gt},{});if(Object.keys(ct).length<1||typeof window>"u"||_typeof$e(et)!=="object"||isNil(et)||et instanceof Blob)return et;var ut=Array.isArray(et)?[]:{},ft=function gt(xt,$t){var _t=Array.isArray(xt),wt=_t?[]:{};return xt==null||xt===void 0?wt:(Object.keys(xt).forEach(function(Tt){var Rt=function Ft(Ht,Wt){return Array.isArray(Ht)&&Ht.forEach(function(Vt,qt){if(Vt){var Xt=Wt==null?void 0:Wt[qt];typeof Vt=="function"&&(Wt[qt]=Vt(Wt,Tt,xt)),_typeof$e(Vt)==="object"&&!Array.isArray(Vt)&&Object.keys(Vt).forEach(function(Gt){var Zt=Xt==null?void 0:Xt[Gt];if(typeof Vt[Gt]=="function"&&Zt){var er=Vt[Gt](Xt[Gt],Tt,xt);Xt[Gt]=_typeof$e(er)==="object"?er[Gt]:er}else _typeof$e(Vt[Gt])==="object"&&Array.isArray(Vt[Gt])&&Zt&&Ft(Vt[Gt],Zt)}),_typeof$e(Vt)==="object"&&Array.isArray(Vt)&&Xt&&Ft(Vt,Xt)}}),Tt},It=$t?[$t,Tt].flat(1):[Tt].flat(1),At=xt[Tt],jt=get$7(ct,It),Nt=function(){var Ht,Wt,Vt=!1;if(typeof jt=="function"){Wt=jt==null?void 0:jt(At,Tt,xt);var qt=_typeof$e(Wt);qt!=="object"&&qt!=="undefined"?(Ht=Tt,Vt=!0):Ht=Wt}else Ht=Rt(jt,At);if(Array.isArray(Ht)){wt=set$2(wt,Ht,At);return}_typeof$e(Ht)==="object"&&!Array.isArray(ut)?ut=merge$4(ut,Ht):_typeof$e(Ht)==="object"&&Array.isArray(ut)?wt=_objectSpread2(_objectSpread2({},wt),Ht):(Ht!==null||Ht!==void 0)&&(wt=set$2(wt,[Ht],Vt?Wt:At))};if(jt&&typeof jt=="function"&&Nt(),!(typeof window>"u")){if(isPlainObj(At)){var kt=gt(At,It);if(Object.keys(kt).length<1)return;wt=set$2(wt,[Tt],kt);return}Nt()}}),st?wt:xt)};return ut=Array.isArray(et)&&Array.isArray(ut)?_toConsumableArray$3(ft(et)):merge$5({},ft(et),ut),ut};function useMediaQuery(_e){var et=typeof window>"u",rt=reactExports.useState(function(){return et?!1:window.matchMedia(_e).matches}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return reactExports.useLayoutEffect(function(){if(!et){var ft=window.matchMedia(_e),gt=function($t){return ut($t.matches)};return ft.addListener(gt),function(){return ft.removeListener(gt)}}},[_e]),ct}var MediaQueryEnum={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)"}},getScreenClassName=function(){var et=void 0;if(typeof window>"u")return et;var rt=Object.keys(MediaQueryEnum).find(function(st){var ct=MediaQueryEnum[st].matchMedia;return!!window.matchMedia(ct).matches});return et=rt,et},useBreakpoint=function(){var et=useMediaQuery(MediaQueryEnum.md.matchMedia),rt=useMediaQuery(MediaQueryEnum.lg.matchMedia),st=useMediaQuery(MediaQueryEnum.xxl.matchMedia),ct=useMediaQuery(MediaQueryEnum.xl.matchMedia),ut=useMediaQuery(MediaQueryEnum.sm.matchMedia),ft=useMediaQuery(MediaQueryEnum.xs.matchMedia),gt=reactExports.useState(getScreenClassName()),xt=_slicedToArray$3(gt,2),$t=xt[0],_t=xt[1];return reactExports.useEffect(function(){if(st){_t("xxl");return}if(ct){_t("xl");return}if(rt){_t("lg");return}if(et){_t("md");return}if(ut){_t("sm");return}if(ft){_t("xs");return}_t("md")},[et,rt,st,ct,ut,ft]),$t};function omit$1(_e,et){for(var rt=Object.assign({},_e),st=0;st=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$3*et:Math.round(_e.h)+hueStep$3*et:st=rt?Math.round(_e.h)+hueStep$3*et:Math.round(_e.h)-hueStep$3*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$3(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$3*et:et===darkColorCount$3?st=_e.s+saturationStep$3:st=_e.s+saturationStep2$3*et,st>1&&(st=1),rt&&et===lightColorCount$3&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$5(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$3*et:st=_e.v-brightnessStep2$3*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$7(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$3;ct>0;ct-=1){var ut=toHsv$3(st),ft=toHex$3(inputToRGB$1({h:getHue$3(ut,ct,!0),s:getSaturation$3(ut,ct,!0),v:getValue$5(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$3(st));for(var gt=1;gt<=darkColorCount$3;gt+=1){var xt=toHsv$3(st),$t=toHex$3(inputToRGB$1({h:getHue$3(xt,gt),s:getSaturation$3(xt,gt),v:getValue$5(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$3.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$3(mix$3(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$3={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes$3={},presetDarkPalettes$3={};Object.keys(presetPrimaryColors$3).forEach(function(_e){presetPalettes$3[_e]=generate$7(presetPrimaryColors$3[_e]),presetPalettes$3[_e].primary=presetPalettes$3[_e][5],presetDarkPalettes$3[_e]=generate$7(presetPrimaryColors$3[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$3[_e].primary=presetDarkPalettes$3[_e][5]});var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$6=root$8.Symbol,_Symbol=Symbol$6;function arrayMap$2(_e,et){for(var rt=-1,st=_e==null?0:_e.length,ct=Array(st);++rtct?0:ct+et),rt=rt>ct?ct:rt,rt<0&&(rt+=ct),ct=et>rt?0:rt-et>>>0,et>>>=0;for(var ut=Array(ct);++st=st?_e:baseSlice(_e,et,rt)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(_e){return reHasUnicode.test(_e)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(_e){return _e.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(_e){return _e.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(_e){return hasUnicode$1(_e)?unicodeToArray(_e):asciiToArray(_e)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$7=toString_1;function createCaseFirst$1(_e){return function(et){et=toString$7(et);var rt=hasUnicode(et)?stringToArray(et):void 0,st=rt?rt[0]:et.charAt(0),ct=rt?castSlice(rt,1).join(""):et.slice(1);return st[_e]()+ct}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$6=toString_1,upperFirst=upperFirst_1;function capitalize$1(_e){return upperFirst(toString$6(_e).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(_e,et,rt,st){var ct=-1,ut=_e==null?0:_e.length;for(st&&ut&&(rt=_e[++ct]);++ct0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$4(rt)]=st}return et},{})}function generate$6(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$3(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$6(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$3(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$6(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$3(_e){return generate$7(_e)[0]}function normalizeTwoToneColors$3(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$3=` .anticon { display: inline-block; color: inherit; @@ -552,7 +567,7 @@ ${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur) transform: rotate(360deg); } } -`,useInsertStyles$3=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles$3,rt=reactExports.useContext(Context$6),st=rt.csp;reactExports.useEffect(function(){updateCSS(et,"@ant-design-icons",{prepend:!0,csp:st})},[])},_excluded$E=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$3={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$3(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$3.primaryColor=et,twoToneColorPalette$3.secondaryColor=rt||getSecondaryColor$3(et),twoToneColorPalette$3.calculated=!!rt}function getTwoToneColors$3(){return _objectSpread2({},twoToneColorPalette$3)}var IconBase$4=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$E),$t=twoToneColorPalette$3;if(ft&&($t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$3(ft)}),useInsertStyles$3(),warning$5(isIconDefinition$3(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$3(rt))return null;var _t=rt;return _t&&typeof _t.icon=="function"&&(_t=_objectSpread2(_objectSpread2({},_t),{},{icon:_t.icon($t.primaryColor,$t.secondaryColor)})),generate$6(_t.icon,"svg-".concat(_t.name),_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":_t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt))};IconBase$4.displayName="IconReact";IconBase$4.getTwoToneColors=getTwoToneColors$3;IconBase$4.setTwoToneColors=setTwoToneColors$3;const ReactIcon$3=IconBase$4;function setTwoToneColor$3(_e){var et=normalizeTwoToneColors$3(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$3.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$3(){var _e=ReactIcon$3.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$D=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$3("#1890ff");var Icon$6=reactExports.forwardRef(function(_e,et){var rt,st=_e.className,ct=_e.icon,ut=_e.spin,ft=_e.rotate,gt=_e.tabIndex,xt=_e.onClick,$t=_e.twoToneColor,_t=_objectWithoutProperties$2(_e,_excluded$D),wt=reactExports.useContext(Context$6),Tt=wt.prefixCls,Rt=Tt===void 0?"anticon":Tt,It=wt.rootClassName,At=classNames(It,Rt,(rt={},_defineProperty$c(rt,"".concat(Rt,"-").concat(ct.name),!!ct.name),_defineProperty$c(rt,"".concat(Rt,"-spin"),!!ut||ct.name==="loading"),rt),st),jt=gt;jt===void 0&&xt&&(jt=-1);var Nt=ft?{msTransform:"rotate(".concat(ft,"deg)"),transform:"rotate(".concat(ft,"deg)")}:void 0,kt=normalizeTwoToneColors$3($t),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1];return reactExports.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":ct.name},_t),{},{ref:et,tabIndex:jt,onClick:xt,className:At}),reactExports.createElement(ReactIcon$3,{icon:ct,primaryColor:Ht,secondaryColor:Wt,style:Nt}))});Icon$6.displayName="AntdIcon";Icon$6.getTwoToneColor=getTwoToneColor$3;Icon$6.setTwoToneColor=setTwoToneColor$3;const AntdIcon$4=Icon$6;var LockOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:LockOutlinedSvg}))};LockOutlined.displayName="LockOutlined";const LockOutlined$1=reactExports.forwardRef(LockOutlined);var LogoutOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:LogoutOutlinedSvg}))};LogoutOutlined.displayName="LogoutOutlined";const LogoutOutlined$1=reactExports.forwardRef(LogoutOutlined);var MessageOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:MessageOutlinedSvg}))};MessageOutlined.displayName="MessageOutlined";const MessageOutlined$1=reactExports.forwardRef(MessageOutlined);var MobileOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:MobileOutlinedSvg}))};MobileOutlined.displayName="MobileOutlined";const MobileOutlined$1=reactExports.forwardRef(MobileOutlined);var PlusOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:PlusOutlinedSvg}))};PlusOutlined.displayName="PlusOutlined";const PlusOutlined$1=reactExports.forwardRef(PlusOutlined);var QuestionCircleFilled=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:QuestionCircleFilledSvg}))};QuestionCircleFilled.displayName="QuestionCircleFilled";const QuestionCircleFilled$1=reactExports.forwardRef(QuestionCircleFilled);var RobotOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:RobotOutlinedSvg}))};RobotOutlined.displayName="RobotOutlined";const RobotOutlined$1=reactExports.forwardRef(RobotOutlined);var SettingOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:SettingOutlinedSvg}))};SettingOutlined.displayName="SettingOutlined";const SettingOutlined$1=reactExports.forwardRef(SettingOutlined);var UploadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:UploadOutlinedSvg}))};UploadOutlined.displayName="UploadOutlined";const UploadOutlined$1=reactExports.forwardRef(UploadOutlined);var UserOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:UserOutlinedSvg}))};UserOutlined.displayName="UserOutlined";const UserOutlined$1=reactExports.forwardRef(UserOutlined);var __assign$1=function(){return __assign$1=Object.assign||function(_e){for(var et,rt=1,st=arguments.length;rt"u"||!window.URL)return{};var _t=[];ft.forEach(function(Tt,Rt){_t.push({key:Rt,value:Tt})}),_t=_t.reduce(function(Tt,Rt){return(Tt[Rt.key]=Tt[Rt.key]||[]).push(Rt),Tt},{}),_t=Object.keys(_t).map(function(Tt){var Rt=_t[Tt];return Rt.length===1?[Tt,Rt[0].value]:[Tt,Rt.map(function(It){var At=It.value;return At})]});var wt=__assign$1({},_e);return _t.forEach(function(Tt){var Rt=Tt[0],It=Tt[1];wt[Rt]=parseValue(Rt,It,{},_e)}),wt},[et.disabled,_e,ft]);function xt(_t){if(!(typeof window>"u"||!window.URL)){var wt=setQueryToCurrentUrl(_t);window.location.search!==wt.search&&window.history.replaceState({},"",wt.toString()),ft.toString()!==wt.searchParams.toString()&&ct({})}}reactExports.useEffect(function(){et.disabled||typeof window>"u"||!window.URL||xt(__assign$1(__assign$1({},_e),gt))},[et.disabled,gt]);var $t=function(_t){xt(_t)};return reactExports.useEffect(function(){if(et.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var _t=function(){ct({})};return window.addEventListener("popstate",_t),function(){window.removeEventListener("popstate",_t)}},[et.disabled]),[gt,$t]}var booleanValues={true:!0,false:!1};function parseValue(_e,et,rt,st){if(!rt)return et;var ct=rt[_e],ut=et===void 0?st[_e]:et;return ct===Number?Number(ut):ct===Boolean||et==="true"||et==="false"?booleanValues[ut]:Array.isArray(ct)?ct.find(function(ft){return ft==ut})||st[_e]:ut}var FieldContext=React$1.createContext({});const FieldContext$1=FieldContext;var _excluded$C=["children","Wrapper"],_excluded2$c=["children","Wrapper"],GridContext=reactExports.createContext({grid:!1,colProps:void 0,rowProps:void 0}),gridHelpers=function(et){var rt=et.grid,st=et.rowProps,ct=et.colProps;return{grid:!!rt,RowWrapper:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},gt=ft.children,xt=ft.Wrapper,$t=_objectWithoutProperties$2(ft,_excluded$C);return rt?jsxRuntimeExports.jsx(Row$3,_objectSpread2(_objectSpread2(_objectSpread2({gutter:8},st),$t),{},{children:gt})):xt?jsxRuntimeExports.jsx(xt,{children:gt}):gt},ColWrapper:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},gt=ft.children,xt=ft.Wrapper,$t=_objectWithoutProperties$2(ft,_excluded2$c),_t=reactExports.useMemo(function(){var wt=_objectSpread2(_objectSpread2({},ct),$t);return typeof wt.span>"u"&&typeof wt.xs>"u"&&(wt.xs=24),wt},[$t]);return rt?jsxRuntimeExports.jsx(Col$1,_objectSpread2(_objectSpread2({},_t),{},{children:gt})):xt?jsxRuntimeExports.jsx(xt,{children:gt}):gt}}},useGridHelpers=function(et){var rt=reactExports.useMemo(function(){return _typeof$e(et)==="object"?et:{grid:et}},[et]),st=reactExports.useContext(GridContext),ct=st.grid,ut=st.colProps;return reactExports.useMemo(function(){return gridHelpers({grid:!!(ct||rt.grid),rowProps:rt==null?void 0:rt.rowProps,colProps:(rt==null?void 0:rt.colProps)||ut,Wrapper:rt==null?void 0:rt.Wrapper})},[rt==null?void 0:rt.Wrapper,rt.grid,ct,JSON.stringify([ut,rt==null?void 0:rt.colProps,rt==null?void 0:rt.rowProps])])},_excluded$B=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],_excluded2$b=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],WIDTH_SIZE_ENUM={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},ignoreWidthValueType=["switch","radioButton","radio","rate"];function createField(_e,et){_e.displayName="ProFormComponent";var rt=function(ut){var ft=_objectSpread2(_objectSpread2({},ut==null?void 0:ut.filedConfig),et)||{},gt=ft.valueType,xt=ft.customLightMode,$t=ft.lightFilterLabelFormatter,_t=ft.valuePropName,wt=_t===void 0?"value":_t,Tt=ft.ignoreWidth,Rt=ft.defaultProps,It=_objectWithoutProperties$2(ft,_excluded$B),At=_objectSpread2(_objectSpread2({},Rt),ut),jt=At.label,Nt=At.tooltip,kt=At.placeholder,Ft=At.width,Ht=At.bordered,Wt=At.messageVariables,Vt=At.ignoreFormItem,qt=At.transform,Gt=At.convertValue,Xt=At.readonly,Zt=At.allowClear;At.colSize;var lr=At.getFormItemProps,er=At.getFieldProps;At.filedConfig;var cr=At.cacheForSwr,ur=At.proFieldProps,pr=_objectWithoutProperties$2(At,_excluded2$b),hr=gt||pr.valueType,fr=reactExports.useMemo(function(){return Tt||ignoreWidthValueType.includes(hr)},[Tt,hr]),dr=reactExports.useState(),yr=_slicedToArray$3(dr,2),$r=yr[1],Er=reactExports.useState(),mr=_slicedToArray$3(Er,2),Sr=mr[0],Tr=mr[1],jr=React$1.useContext(FieldContext$1),Or=useDeepCompareMemo(function(){return{formItemProps:lr==null?void 0:lr(),fieldProps:er==null?void 0:er()}},[er,lr,pr.dependenciesValues,Sr]),_r=useDeepCompareMemo(function(){var Qr=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Vt?omitUndefined({value:pr.value}):{}),{},{placeholder:kt,disabled:ut.disabled},jr.fieldProps),Or.fieldProps),pr.fieldProps);return Qr.style=omitUndefined(Qr==null?void 0:Qr.style),Qr},[Vt,pr.value,pr.fieldProps,kt,ut.disabled,jr.fieldProps,Or.fieldProps]),Cr=pickProFormItemProps(pr),Nr=useDeepCompareMemo(function(){return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},jr.formItemProps),Cr),Or.formItemProps),pr.formItemProps)},[Or.formItemProps,jr.formItemProps,pr.formItemProps,Cr]),Rr=useDeepCompareMemo(function(){return _objectSpread2(_objectSpread2({messageVariables:Wt},It),Nr)},[It,Nr,Wt]);noteOnce(!pr.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var Pr=reactExports.useContext(Context$8),Mr=Pr.prefixName,kr=useDeepCompareMemo(function(){var Qr,Zr=Rr==null?void 0:Rr.name;Array.isArray(Zr)&&(Zr=Zr.join("_")),Array.isArray(Mr)&&Zr&&(Zr="".concat(Mr.join("."),".").concat(Zr));var vn=Zr&&"form-".concat((Qr=jr.formKey)!==null&&Qr!==void 0?Qr:"","-field-").concat(Zr);return vn},[stringify$1(Rr==null?void 0:Rr.name),Mr,jr.formKey]),Fr=useRefFunction(function(){var Qr;lr||er?Tr([]):pr.renderFormItem&&$r([]);for(var Zr=arguments.length,vn=new Array(Zr),vr=0;vr=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$2*et:Math.round(_e.h)+hueStep$2*et:st=rt?Math.round(_e.h)+hueStep$2*et:Math.round(_e.h)-hueStep$2*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$2(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$2*et:et===darkColorCount$2?st=_e.s+saturationStep$2:st=_e.s+saturationStep2$2*et,st>1&&(st=1),rt&&et===lightColorCount$2&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$4(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$2*et:st=_e.v-brightnessStep2$2*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$5(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$2;ct>0;ct-=1){var ut=toHsv$2(st),ft=toHex$2(inputToRGB$1({h:getHue$2(ut,ct,!0),s:getSaturation$2(ut,ct,!0),v:getValue$4(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$2(st));for(var gt=1;gt<=darkColorCount$2;gt+=1){var xt=toHsv$2(st),$t=toHex$2(inputToRGB$1({h:getHue$2(xt,gt),s:getSaturation$2(xt,gt),v:getValue$4(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$2.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$2(mix$2(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$2={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"},presetPalettes$2={},presetDarkPalettes$2={};Object.keys(presetPrimaryColors$2).forEach(function(_e){presetPalettes$2[_e]=generate$5(presetPrimaryColors$2[_e]),presetPalettes$2[_e].primary=presetPalettes$2[_e][5],presetDarkPalettes$2[_e]=generate$5(presetPrimaryColors$2[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$2[_e].primary=presetDarkPalettes$2[_e][5]});var blue$2=presetPalettes$2.blue;function camelCase$2(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$4(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$2(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$2(rt)]=st}return et},{})}function generate$4(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$2(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$4(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$2(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$4(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$2(_e){return generate$5(_e)[0]}function normalizeTwoToneColors$2(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$2=` +`,useInsertStyles$3=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles$3,rt=reactExports.useContext(Context$6),st=rt.csp;reactExports.useEffect(function(){updateCSS(et,"@ant-design-icons",{prepend:!0,csp:st})},[])},_excluded$E=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$3={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$3(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$3.primaryColor=et,twoToneColorPalette$3.secondaryColor=rt||getSecondaryColor$3(et),twoToneColorPalette$3.calculated=!!rt}function getTwoToneColors$3(){return _objectSpread2({},twoToneColorPalette$3)}var IconBase$4=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$E),$t=twoToneColorPalette$3;if(ft&&($t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$3(ft)}),useInsertStyles$3(),warning$5(isIconDefinition$3(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$3(rt))return null;var _t=rt;return _t&&typeof _t.icon=="function"&&(_t=_objectSpread2(_objectSpread2({},_t),{},{icon:_t.icon($t.primaryColor,$t.secondaryColor)})),generate$6(_t.icon,"svg-".concat(_t.name),_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":_t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt))};IconBase$4.displayName="IconReact";IconBase$4.getTwoToneColors=getTwoToneColors$3;IconBase$4.setTwoToneColors=setTwoToneColors$3;const ReactIcon$3=IconBase$4;function setTwoToneColor$3(_e){var et=normalizeTwoToneColors$3(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$3.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$3(){var _e=ReactIcon$3.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$D=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$3("#1890ff");var Icon$6=reactExports.forwardRef(function(_e,et){var rt,st=_e.className,ct=_e.icon,ut=_e.spin,ft=_e.rotate,gt=_e.tabIndex,xt=_e.onClick,$t=_e.twoToneColor,_t=_objectWithoutProperties$2(_e,_excluded$D),wt=reactExports.useContext(Context$6),Tt=wt.prefixCls,Rt=Tt===void 0?"anticon":Tt,It=wt.rootClassName,At=classNames(It,Rt,(rt={},_defineProperty$c(rt,"".concat(Rt,"-").concat(ct.name),!!ct.name),_defineProperty$c(rt,"".concat(Rt,"-spin"),!!ut||ct.name==="loading"),rt),st),jt=gt;jt===void 0&&xt&&(jt=-1);var Nt=ft?{msTransform:"rotate(".concat(ft,"deg)"),transform:"rotate(".concat(ft,"deg)")}:void 0,kt=normalizeTwoToneColors$3($t),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1];return reactExports.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":ct.name},_t),{},{ref:et,tabIndex:jt,onClick:xt,className:At}),reactExports.createElement(ReactIcon$3,{icon:ct,primaryColor:Ht,secondaryColor:Wt,style:Nt}))});Icon$6.displayName="AntdIcon";Icon$6.getTwoToneColor=getTwoToneColor$3;Icon$6.setTwoToneColor=setTwoToneColor$3;const AntdIcon$4=Icon$6;var ApartmentOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:ApartmentOutlinedSvg}))};ApartmentOutlined.displayName="ApartmentOutlined";const ApartmentOutlined$1=reactExports.forwardRef(ApartmentOutlined);var LockOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:LockOutlinedSvg}))};LockOutlined.displayName="LockOutlined";const LockOutlined$1=reactExports.forwardRef(LockOutlined);var LogoutOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:LogoutOutlinedSvg}))};LogoutOutlined.displayName="LogoutOutlined";const LogoutOutlined$1=reactExports.forwardRef(LogoutOutlined);var MessageOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:MessageOutlinedSvg}))};MessageOutlined.displayName="MessageOutlined";const MessageOutlined$1=reactExports.forwardRef(MessageOutlined);var MobileOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:MobileOutlinedSvg}))};MobileOutlined.displayName="MobileOutlined";const MobileOutlined$1=reactExports.forwardRef(MobileOutlined);var PlusOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:PlusOutlinedSvg}))};PlusOutlined.displayName="PlusOutlined";const PlusOutlined$1=reactExports.forwardRef(PlusOutlined);var QuestionCircleFilled=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:QuestionCircleFilledSvg}))};QuestionCircleFilled.displayName="QuestionCircleFilled";const QuestionCircleFilled$1=reactExports.forwardRef(QuestionCircleFilled);var RobotOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:RobotOutlinedSvg}))};RobotOutlined.displayName="RobotOutlined";const RobotOutlined$1=reactExports.forwardRef(RobotOutlined);var SettingOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:SettingOutlinedSvg}))};SettingOutlined.displayName="SettingOutlined";const SettingOutlined$1=reactExports.forwardRef(SettingOutlined);var UploadOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:UploadOutlinedSvg}))};UploadOutlined.displayName="UploadOutlined";const UploadOutlined$1=reactExports.forwardRef(UploadOutlined);var UserOutlined=function(et,rt){return reactExports.createElement(AntdIcon$4,_objectSpread2(_objectSpread2({},et),{},{ref:rt,icon:UserOutlinedSvg}))};UserOutlined.displayName="UserOutlined";const UserOutlined$1=reactExports.forwardRef(UserOutlined);var __assign$1=function(){return __assign$1=Object.assign||function(_e){for(var et,rt=1,st=arguments.length;rt"u"||!window.URL)return{};var _t=[];ft.forEach(function(Tt,Rt){_t.push({key:Rt,value:Tt})}),_t=_t.reduce(function(Tt,Rt){return(Tt[Rt.key]=Tt[Rt.key]||[]).push(Rt),Tt},{}),_t=Object.keys(_t).map(function(Tt){var Rt=_t[Tt];return Rt.length===1?[Tt,Rt[0].value]:[Tt,Rt.map(function(It){var At=It.value;return At})]});var wt=__assign$1({},_e);return _t.forEach(function(Tt){var Rt=Tt[0],It=Tt[1];wt[Rt]=parseValue(Rt,It,{},_e)}),wt},[et.disabled,_e,ft]);function xt(_t){if(!(typeof window>"u"||!window.URL)){var wt=setQueryToCurrentUrl(_t);window.location.search!==wt.search&&window.history.replaceState({},"",wt.toString()),ft.toString()!==wt.searchParams.toString()&&ct({})}}reactExports.useEffect(function(){et.disabled||typeof window>"u"||!window.URL||xt(__assign$1(__assign$1({},_e),gt))},[et.disabled,gt]);var $t=function(_t){xt(_t)};return reactExports.useEffect(function(){if(et.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var _t=function(){ct({})};return window.addEventListener("popstate",_t),function(){window.removeEventListener("popstate",_t)}},[et.disabled]),[gt,$t]}var booleanValues={true:!0,false:!1};function parseValue(_e,et,rt,st){if(!rt)return et;var ct=rt[_e],ut=et===void 0?st[_e]:et;return ct===Number?Number(ut):ct===Boolean||et==="true"||et==="false"?booleanValues[ut]:Array.isArray(ct)?ct.find(function(ft){return ft==ut})||st[_e]:ut}var FieldContext=React$1.createContext({});const FieldContext$1=FieldContext;var _excluded$C=["children","Wrapper"],_excluded2$c=["children","Wrapper"],GridContext=reactExports.createContext({grid:!1,colProps:void 0,rowProps:void 0}),gridHelpers=function(et){var rt=et.grid,st=et.rowProps,ct=et.colProps;return{grid:!!rt,RowWrapper:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},gt=ft.children,xt=ft.Wrapper,$t=_objectWithoutProperties$2(ft,_excluded$C);return rt?jsxRuntimeExports.jsx(Row$3,_objectSpread2(_objectSpread2(_objectSpread2({gutter:8},st),$t),{},{children:gt})):xt?jsxRuntimeExports.jsx(xt,{children:gt}):gt},ColWrapper:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},gt=ft.children,xt=ft.Wrapper,$t=_objectWithoutProperties$2(ft,_excluded2$c),_t=reactExports.useMemo(function(){var wt=_objectSpread2(_objectSpread2({},ct),$t);return typeof wt.span>"u"&&typeof wt.xs>"u"&&(wt.xs=24),wt},[$t]);return rt?jsxRuntimeExports.jsx(Col$1,_objectSpread2(_objectSpread2({},_t),{},{children:gt})):xt?jsxRuntimeExports.jsx(xt,{children:gt}):gt}}},useGridHelpers=function(et){var rt=reactExports.useMemo(function(){return _typeof$e(et)==="object"?et:{grid:et}},[et]),st=reactExports.useContext(GridContext),ct=st.grid,ut=st.colProps;return reactExports.useMemo(function(){return gridHelpers({grid:!!(ct||rt.grid),rowProps:rt==null?void 0:rt.rowProps,colProps:(rt==null?void 0:rt.colProps)||ut,Wrapper:rt==null?void 0:rt.Wrapper})},[rt==null?void 0:rt.Wrapper,rt.grid,ct,JSON.stringify([ut,rt==null?void 0:rt.colProps,rt==null?void 0:rt.rowProps])])},_excluded$B=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],_excluded2$b=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],WIDTH_SIZE_ENUM={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},ignoreWidthValueType=["switch","radioButton","radio","rate"];function createField(_e,et){_e.displayName="ProFormComponent";var rt=function(ut){var ft=_objectSpread2(_objectSpread2({},ut==null?void 0:ut.filedConfig),et)||{},gt=ft.valueType,xt=ft.customLightMode,$t=ft.lightFilterLabelFormatter,_t=ft.valuePropName,wt=_t===void 0?"value":_t,Tt=ft.ignoreWidth,Rt=ft.defaultProps,It=_objectWithoutProperties$2(ft,_excluded$B),At=_objectSpread2(_objectSpread2({},Rt),ut),jt=At.label,Nt=At.tooltip,kt=At.placeholder,Ft=At.width,Ht=At.bordered,Wt=At.messageVariables,Vt=At.ignoreFormItem,qt=At.transform,Xt=At.convertValue,Gt=At.readonly,Zt=At.allowClear;At.colSize;var er=At.getFormItemProps,lr=At.getFieldProps;At.filedConfig;var cr=At.cacheForSwr,ur=At.proFieldProps,fr=_objectWithoutProperties$2(At,_excluded2$b),hr=gt||fr.valueType,pr=reactExports.useMemo(function(){return Tt||ignoreWidthValueType.includes(hr)},[Tt,hr]),dr=reactExports.useState(),yr=_slicedToArray$3(dr,2),Sr=yr[1],br=reactExports.useState(),mr=_slicedToArray$3(br,2),Er=mr[0],Tr=mr[1],Mr=React$1.useContext(FieldContext$1),Or=useDeepCompareMemo(function(){return{formItemProps:er==null?void 0:er(),fieldProps:lr==null?void 0:lr()}},[lr,er,fr.dependenciesValues,Er]),wr=useDeepCompareMemo(function(){var Qr=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Vt?omitUndefined({value:fr.value}):{}),{},{placeholder:kt,disabled:ut.disabled},Mr.fieldProps),Or.fieldProps),fr.fieldProps);return Qr.style=omitUndefined(Qr==null?void 0:Qr.style),Qr},[Vt,fr.value,fr.fieldProps,kt,ut.disabled,Mr.fieldProps,Or.fieldProps]),Cr=pickProFormItemProps(fr),Nr=useDeepCompareMemo(function(){return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Mr.formItemProps),Cr),Or.formItemProps),fr.formItemProps)},[Or.formItemProps,Mr.formItemProps,fr.formItemProps,Cr]),Rr=useDeepCompareMemo(function(){return _objectSpread2(_objectSpread2({messageVariables:Wt},It),Nr)},[It,Nr,Wt]);noteOnce(!fr.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var Pr=reactExports.useContext(Context$8),jr=Pr.prefixName,kr=useDeepCompareMemo(function(){var Qr,Zr=Rr==null?void 0:Rr.name;Array.isArray(Zr)&&(Zr=Zr.join("_")),Array.isArray(jr)&&Zr&&(Zr="".concat(jr.join("."),".").concat(Zr));var vn=Zr&&"form-".concat((Qr=Mr.formKey)!==null&&Qr!==void 0?Qr:"","-field-").concat(Zr);return vn},[stringify$1(Rr==null?void 0:Rr.name),jr,Mr.formKey]),Fr=useRefFunction(function(){var Qr;er||lr?Tr([]):fr.renderFormItem&&Sr([]);for(var Zr=arguments.length,vn=new Array(Zr),vr=0;vr=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$2*et:Math.round(_e.h)+hueStep$2*et:st=rt?Math.round(_e.h)+hueStep$2*et:Math.round(_e.h)-hueStep$2*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$2(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$2*et:et===darkColorCount$2?st=_e.s+saturationStep$2:st=_e.s+saturationStep2$2*et,st>1&&(st=1),rt&&et===lightColorCount$2&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$4(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$2*et:st=_e.v-brightnessStep2$2*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$5(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$2;ct>0;ct-=1){var ut=toHsv$2(st),ft=toHex$2(inputToRGB$1({h:getHue$2(ut,ct,!0),s:getSaturation$2(ut,ct,!0),v:getValue$4(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$2(st));for(var gt=1;gt<=darkColorCount$2;gt+=1){var xt=toHsv$2(st),$t=toHex$2(inputToRGB$1({h:getHue$2(xt,gt),s:getSaturation$2(xt,gt),v:getValue$4(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$2.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$2(mix$2(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$2={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"},presetPalettes$2={},presetDarkPalettes$2={};Object.keys(presetPrimaryColors$2).forEach(function(_e){presetPalettes$2[_e]=generate$5(presetPrimaryColors$2[_e]),presetPalettes$2[_e].primary=presetPalettes$2[_e][5],presetDarkPalettes$2[_e]=generate$5(presetPrimaryColors$2[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$2[_e].primary=presetDarkPalettes$2[_e][5]});var blue$2=presetPalettes$2.blue;function camelCase$2(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$4(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$2(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$2(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$2(rt)]=st}return et},{})}function generate$4(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$2(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$4(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$2(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$4(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$2(_e){return generate$5(_e)[0]}function normalizeTwoToneColors$2(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$2=` .anticon { display: inline-block; color: inherit; @@ -606,7 +621,7 @@ ${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur) transform: rotate(360deg); } } -`,useInsertStyles$2=function(et){var rt=reactExports.useContext(Context$5),st=rt.csp,ct=rt.prefixCls,ut=iconStyles$2;ct&&(ut=ut.replace(/anticon/g,ct)),reactExports.useEffect(function(){var ft=et.current,gt=getShadowRoot$1(ft);updateCSS(ut,"@ant-design-icons",{prepend:!0,csp:st,attachTo:gt})},[])},_excluded$z=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$2(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$2.primaryColor=et,twoToneColorPalette$2.secondaryColor=rt||getSecondaryColor$2(et),twoToneColorPalette$2.calculated=!!rt}function getTwoToneColors$2(){return _objectSpread2({},twoToneColorPalette$2)}var IconBase$3=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$z),$t=reactExports.useRef(),_t=twoToneColorPalette$2;if(ft&&(_t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$2(ft)}),useInsertStyles$2($t),warning$4(isIconDefinition$2(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$2(rt))return null;var wt=rt;return wt&&typeof wt.icon=="function"&&(wt=_objectSpread2(_objectSpread2({},wt),{},{icon:wt.icon(_t.primaryColor,_t.secondaryColor)})),generate$4(wt.icon,"svg-".concat(wt.name),_objectSpread2(_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":wt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt),{},{ref:$t}))};IconBase$3.displayName="IconReact";IconBase$3.getTwoToneColors=getTwoToneColors$2;IconBase$3.setTwoToneColors=setTwoToneColors$2;const ReactIcon$2=IconBase$3;function setTwoToneColor$2(_e){var et=normalizeTwoToneColors$2(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$2.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$2(){var _e=ReactIcon$2.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$2(blue$2.primary);var Icon$5=reactExports.forwardRef(function(_e,et){var rt=_e.className,st=_e.icon,ct=_e.spin,ut=_e.rotate,ft=_e.tabIndex,gt=_e.onClick,xt=_e.twoToneColor,$t=_objectWithoutProperties$2(_e,_excluded$y),_t=reactExports.useContext(Context$5),wt=_t.prefixCls,Tt=wt===void 0?"anticon":wt,Rt=_t.rootClassName,It=classNames(Rt,Tt,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-").concat(st.name),!!st.name),"".concat(Tt,"-spin"),!!ct||st.name==="loading"),rt),At=ft;At===void 0&>&&(At=-1);var jt=ut?{msTransform:"rotate(".concat(ut,"deg)"),transform:"rotate(".concat(ut,"deg)")}:void 0,Nt=normalizeTwoToneColors$2(xt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];return reactExports.createElement("span",_extends$b({role:"img","aria-label":st.name},$t,{ref:et,tabIndex:At,onClick:gt,className:It}),reactExports.createElement(ReactIcon$2,{icon:st,primaryColor:Ft,secondaryColor:Ht,style:jt}))});Icon$5.displayName="AntdIcon";Icon$5.getTwoToneColor=getTwoToneColor$2;Icon$5.setTwoToneColor=setTwoToneColor$2;const AntdIcon$3=Icon$5;var EyeInvisibleOutlined=function(et,rt){return reactExports.createElement(AntdIcon$3,_extends$b({},et,{ref:rt,icon:EyeInvisibleOutlinedSvg}))};const EyeInvisibleOutlined$1=reactExports.forwardRef(EyeInvisibleOutlined);var EyeOutlined=function(et,rt){return reactExports.createElement(AntdIcon$3,_extends$b({},et,{ref:rt,icon:EyeOutlinedSvg}))};const EyeOutlined$1=reactExports.forwardRef(EyeOutlined);var LoadingOutlined=function(et,rt){return reactExports.createElement(AntdIcon$3,_extends$b({},et,{ref:rt,icon:LoadingOutlinedSvg}))};const LoadingOutlined$1=reactExports.forwardRef(LoadingOutlined);var SearchOutlined=function(et,rt){return reactExports.createElement(AntdIcon$3,_extends$b({},et,{ref:rt,icon:SearchOutlinedSvg}))};const SearchOutlined$1=reactExports.forwardRef(SearchOutlined);var _excluded$x=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],getValueOrLabel=function(et,rt){return _typeof$e(rt)!=="object"?et[rt]||rt:et[rt==null?void 0:rt.value]||rt.label},LightSelect=function(et,rt){var st=et.label,ct=et.prefixCls,ut=et.onChange,ft=et.value,gt=et.mode;et.children,et.defaultValue;var xt=et.size,$t=et.showSearch,_t=et.disabled,wt=et.style,Tt=et.className,Rt=et.bordered,It=et.options,At=et.onSearch,jt=et.allowClear,Nt=et.labelInValue,kt=et.fieldNames,Ft=et.lightLabel,Ht=et.labelTrigger,Wt=et.optionFilterProp,Vt=et.optionLabelProp,qt=Vt===void 0?"":Vt,Gt=et.valueMaxLength,Xt=Gt===void 0?41:Gt,Zt=_objectWithoutProperties$2(et,_excluded$x),lr=et.placeholder,er=lr===void 0?st:lr,cr=kt||{},ur=cr.label,pr=ur===void 0?"label":ur,hr=cr.value,fr=hr===void 0?"value":hr,dr=reactExports.useContext(ConfigProvider$1.ConfigContext),yr=dr.getPrefixCls,$r=yr("pro-field-select-light-select"),Er=reactExports.useState(!1),mr=_slicedToArray$3(Er,2),Sr=mr[0],Tr=mr[1],jr=reactExports.useState(""),Or=_slicedToArray$3(jr,2),_r=Or[0],Cr=Or[1],Nr=useStyle$i("LightSelect",function(wr){return _defineProperty$c({},".".concat($r),_defineProperty$c(_defineProperty$c({},"".concat(wr.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat($r,"-searchable"),_defineProperty$c({},"".concat(wr.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),Rr=Nr.wrapSSR,Pr=Nr.hashId,Mr=reactExports.useMemo(function(){var wr={};return It==null||It.forEach(function(Br){var Dr=Br[qt]||Br[pr],Xr=Br[fr];wr[Xr]=Dr||Xr}),wr},[pr,It,fr,qt]),kr=reactExports.useMemo(function(){return Reflect.has(Zt,"open")?Zt==null?void 0:Zt.open:Sr},[Sr,Zt]),Fr=Array.isArray(ft)?ft.map(function(wr){return getValueOrLabel(Mr,wr)}):getValueOrLabel(Mr,ft);return Rr(jsxRuntimeExports.jsxs("div",{className:classNames($r,Pr,_defineProperty$c({},"".concat($r,"-searchable"),$t),"".concat($r,"-container-").concat(Zt.placement||"bottomLeft"),Tt),style:wt,onClick:function(Br){var Dr;if(!_t){var Xr=Ft==null||(Dr=Ft.current)===null||Dr===void 0||(Dr=Dr.labelRef)===null||Dr===void 0||(Dr=Dr.current)===null||Dr===void 0?void 0:Dr.contains(Br.target);Xr&&Tr(!Sr)}},children:[jsxRuntimeExports.jsx(Select$3,_objectSpread2(_objectSpread2({popupMatchSelectWidth:!1},Zt),{},{allowClear:jt,value:ft,mode:gt,labelInValue:Nt,size:xt,disabled:_t,onChange:function(Br,Dr){ut==null||ut(Br,Dr),gt!=="multiple"&&Tr(!1)},bordered:Rt,showSearch:$t,onSearch:At,style:wt,dropdownRender:function(Br){return jsxRuntimeExports.jsxs("div",{ref:rt,children:[$t&&jsxRuntimeExports.jsx("div",{style:{margin:"4px 8px"},children:jsxRuntimeExports.jsx(Input$3,{value:_r,allowClear:!!jt,onChange:function(Xr){Cr(Xr.target.value),At==null||At(Xr.target.value)},onKeyDown:function(Xr){Xr.stopPropagation()},style:{width:"100%"},prefix:jsxRuntimeExports.jsx(SearchOutlined$1,{})})}),Br]})},open:kr,onDropdownVisibleChange:function(Br){var Dr;Br||Cr(""),Ht||Tr(Br),Zt==null||(Dr=Zt.onDropdownVisibleChange)===null||Dr===void 0||Dr.call(Zt,Br)},prefixCls:ct,options:At||!_r?It:It==null?void 0:It.filter(function(wr){var Br,Dr;return Wt?toArray$d(wr[Wt]).join("").toLowerCase().includes(_r):((Br=String(wr[pr]))===null||Br===void 0||(Br=Br.toLowerCase())===null||Br===void 0?void 0:Br.includes(_r==null?void 0:_r.toLowerCase()))||((Dr=wr[fr])===null||Dr===void 0||(Dr=Dr.toString())===null||Dr===void 0||(Dr=Dr.toLowerCase())===null||Dr===void 0?void 0:Dr.includes(_r==null?void 0:_r.toLowerCase()))})})),jsxRuntimeExports.jsx(FieldLabel,{ellipsis:!0,label:st,placeholder:er,disabled:_t,bordered:Rt,allowClear:!!jt,value:Fr||(ft==null?void 0:ft.label)||ft,onClear:function(){ut==null||ut(void 0,void 0)},ref:Ft,valueMaxLength:Xt})]}))};const LightSelect$1=React$1.forwardRef(LightSelect);var _excluded$w=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],_excluded2$a=["className","optionType"],SearchSelect=function(et,rt){var st=et.optionItemRender,ct=et.mode,ut=et.onSearch,ft=et.onFocus,gt=et.onChange,xt=et.autoClearSearchValue,$t=xt===void 0?!0:xt,_t=et.searchOnFocus,wt=_t===void 0?!1:_t,Tt=et.resetAfterSelect,Rt=Tt===void 0?!1:Tt,It=et.fetchDataOnSearch,At=It===void 0?!0:It,jt=et.optionFilterProp,Nt=jt===void 0?"label":jt,kt=et.optionLabelProp,Ft=kt===void 0?"label":kt,Ht=et.className,Wt=et.disabled,Vt=et.options,qt=et.fetchData,Gt=et.resetData,Xt=et.prefixCls,Zt=et.onClear,lr=et.searchValue,er=et.showSearch,cr=et.fieldNames,ur=et.defaultSearchValue,pr=_objectWithoutProperties$2(et,_excluded$w),hr=cr||{},fr=hr.label,dr=fr===void 0?"label":fr,yr=hr.value,$r=yr===void 0?"value":yr,Er=hr.options,mr=Er===void 0?"options":Er,Sr=reactExports.useState(lr??ur),Tr=_slicedToArray$3(Sr,2),jr=Tr[0],Or=Tr[1],_r=reactExports.useRef();reactExports.useImperativeHandle(rt,function(){return _r.current}),reactExports.useEffect(function(){if(pr.autoFocus){var Fr;_r==null||(Fr=_r.current)===null||Fr===void 0||Fr.focus()}},[pr.autoFocus]),reactExports.useEffect(function(){Or(lr)},[lr]);var Cr=reactExports.useContext(ConfigProvider$1.ConfigContext),Nr=Cr.getPrefixCls,Rr=Nr("pro-filed-search-select",Xt),Pr=classNames(Rr,Ht,_defineProperty$c({},"".concat(Rr,"-disabled"),Wt)),Mr=function(wr,Br){return Array.isArray(wr)&&Array.isArray(Br)&&wr.length>0?wr.map(function(Dr,Xr){var Kr=Br==null?void 0:Br[Xr],zr=(Kr==null?void 0:Kr["data-item"])||{};return _objectSpread2(_objectSpread2({},zr),Dr)}):[]},kr=function Fr(wr){return wr.map(function(Br,Dr){var Xr,Kr=Br,zr=Kr.className,qr=Kr.optionType,pn=_objectWithoutProperties$2(Kr,_excluded2$a),Qr=Br[dr],Zr=Br[$r],vn=(Xr=Br[mr])!==null&&Xr!==void 0?Xr:[];return qr==="optGroup"||Br.options?_objectSpread2(_objectSpread2({label:Qr},pn),{},{data_title:Qr,title:Qr,key:Zr??(Qr==null?void 0:Qr.toString()),children:Fr(vn)}):_objectSpread2(_objectSpread2({title:Qr},pn),{},{data_title:Qr,value:Zr??Dr,key:Zr??(Qr==null?void 0:Qr.toString()),"data-item":Br,className:"".concat(Rr,"-option ").concat(zr||"").trim(),label:(st==null?void 0:st(Br))||Qr})})};return jsxRuntimeExports.jsx(Select$3,_objectSpread2(_objectSpread2({ref:_r,className:Pr,allowClear:!0,autoClearSearchValue:$t,disabled:Wt,mode:ct,showSearch:er,searchValue:jr,optionFilterProp:Nt,optionLabelProp:Ft,onClear:function(){Zt==null||Zt(),qt(void 0),er&&Or(void 0)}},pr),{},{filterOption:pr.filterOption==!1?!1:function(Fr,wr){var Br,Dr,Xr;return pr.filterOption&&typeof pr.filterOption=="function"?pr.filterOption(Fr,_objectSpread2(_objectSpread2({},wr),{},{label:wr==null?void 0:wr.data_title})):!!(wr!=null&&(Br=wr.data_title)!==null&&Br!==void 0&&Br.toString().toLowerCase().includes(Fr.toLowerCase())||wr!=null&&(Dr=wr.label)!==null&&Dr!==void 0&&Dr.toString().toLowerCase().includes(Fr.toLowerCase())||wr!=null&&(Xr=wr.value)!==null&&Xr!==void 0&&Xr.toString().toLowerCase().includes(Fr.toLowerCase()))},onSearch:er?function(Fr){At&&qt(Fr),ut==null||ut(Fr),Or(Fr)}:void 0,onChange:function(wr,Br){er&&$t&&(qt(void 0),ut==null||ut(""),Or(void 0));for(var Dr=arguments.length,Xr=new Array(Dr>2?Dr-2:0),Kr=2;Kr-1&&_e%1==0&&_e-1&&_e%1==0&&_e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$3=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$2]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(_e){return isObjectLike$6(_e)&&isLength$2(_e.length)&&!!typedArrayTags[baseGetTag$3(_e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(_e){return function(et){return _e(et)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(_e,et){var rt=_freeGlobal,st=et&&!et.nodeType&&et,ct=st&&!0&&_e&&!_e.nodeType&&_e,ut=ct&&ct.exports===st,ft=ut&&rt.process,gt=function(){try{var xt=ct&&ct.require&&ct.require("util").types;return xt||ft&&ft.binding&&ft.binding("util")}catch{}}();_e.exports=gt})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$4=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$4,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$c=isArray_1,isBuffer$4=isBufferExports,isIndex$2=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty;function arrayLikeKeys$2(_e,et){var rt=isArray$c(_e),st=!rt&&isArguments$2(_e),ct=!rt&&!st&&isBuffer$4(_e),ut=!rt&&!st&&!ct&&isTypedArray$3(_e),ft=rt||st||ct||ut,gt=ft?baseTimes(_e.length,String):[],xt=gt.length;for(var $t in _e)(et||hasOwnProperty$b.call(_e,$t))&&!(ft&&($t=="length"||ct&&($t=="offset"||$t=="parent")||ut&&($t=="buffer"||$t=="byteLength"||$t=="byteOffset")||isIndex$2($t,xt)))&>.push($t);return gt}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$c=Object.prototype;function isPrototype$3(_e){var et=_e&&_e.constructor,rt=typeof et=="function"&&et.prototype||objectProto$c;return _e===rt}var _isPrototype=isPrototype$3;function overArg$2(_e,et){return function(rt){return _e(et(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty;function baseKeys$1(_e){if(!isPrototype$2(_e))return nativeKeys(_e);var et=[];for(var rt in Object(_e))hasOwnProperty$a.call(_e,rt)&&rt!="constructor"&&et.push(rt);return et}var _baseKeys=baseKeys$1;function isObject$g(_e){var et=typeof _e;return _e!=null&&(et=="object"||et=="function")}var isObject_1=isObject$g,baseGetTag$2=_baseGetTag,isObject$f=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$5(_e){if(!isObject$f(_e))return!1;var et=baseGetTag$2(_e);return et==funcTag$1||et==genTag$1||et==asyncTag||et==proxyTag}var isFunction_1=isFunction$5,isFunction$4=isFunction_1,isLength$1=isLength_1;function isArrayLike$6(_e){return _e!=null&&isLength$1(_e.length)&&!isFunction$4(_e)}var isArrayLike_1=isArrayLike$6,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$5=isArrayLike_1;function keys$6(_e){return isArrayLike$5(_e)?arrayLikeKeys$1(_e):baseKeys(_e)}var keys_1=keys$6,baseFor$1=_baseFor,keys$5=keys_1;function baseForOwn$2(_e,et){return _e&&baseFor$1(_e,et,keys$5)}var _baseForOwn=baseForOwn$2;function identity$4(_e){return _e}var identity_1=identity$4,identity$3=identity_1;function castFunction$2(_e){return typeof _e=="function"?_e:identity$3}var _castFunction=castFunction$2,baseForOwn$1=_baseForOwn,castFunction$1=_castFunction;function forOwn(_e,et){return _e&&baseForOwn$1(_e,castFunction$1(et))}var forOwn_1=forOwn,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,baseGetTag$1=_baseGetTag,getPrototype$2=_getPrototype,isObjectLike$5=isObjectLike_1,objectTag$3="[object Object]",funcProto$2=Function.prototype,objectProto$a=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$9=objectProto$a.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$2(_e){if(!isObjectLike$5(_e)||baseGetTag$1(_e)!=objectTag$3)return!1;var et=getPrototype$2(_e);if(et===null)return!0;var rt=hasOwnProperty$9.call(et,"constructor")&&et.constructor;return typeof rt=="function"&&rt instanceof rt&&funcToString$2.call(rt)==objectCtorString}var isPlainObject_1=isPlainObject$2;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$5(_e,et){return _e===et||_e!==_e&&et!==et}var eq_1=eq$5,eq$4=eq_1;function assocIndexOf$4(_e,et){for(var rt=_e.length;rt--;)if(eq$4(_e[rt][0],et))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(_e){var et=this.__data__,rt=assocIndexOf$3(et,_e);if(rt<0)return!1;var st=et.length-1;return rt==st?et.pop():splice.call(et,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(_e){var et=this.__data__,rt=assocIndexOf$2(et,_e);return rt<0?void 0:et[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(_e){return assocIndexOf$1(this.__data__,_e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(_e,et){var rt=this.__data__,st=assocIndexOf(rt,_e);return st<0?(++this.size,rt.push([_e,et])):rt[st][1]=et,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(_e){var et=-1,rt=_e==null?0:_e.length;for(this.clear();++etgt))return!1;var $t=ut.get(_e),_t=ut.get(et);if($t&&_t)return $t==et&&_t==_e;var wt=-1,Tt=!0,Rt=rt&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ut.set(_e,et),ut.set(et,_e);++wt0&&arguments[0]!==void 0?arguments[0]:[],rt=[];return(0,_map3.default)(et,function(st){Array.isArray(st)?_e(st).map(function(ct){return rt.push(ct)}):(0,_isPlainObject3.default)(st)?(0,_forOwn3$2.default)(st,function(ct,ut){ct===!0&&rt.push(ut),rt.push(ut+"-"+ct)}):(0,_isString3.default)(st)&&rt.push(st)}),rt};flattenNames$1.default=flattenNames;var mergeClasses$1={};function arrayEach$2(_e,et){for(var rt=-1,st=_e==null?0:_e.length;++rt1&&arguments[1]!==void 0?arguments[1]:[],st=et.default&&(0,_cloneDeep3.default)(et.default)||{};return rt.map(function(ct){var ut=et[ct];return ut&&(0,_forOwn3$1.default)(ut,function(ft,gt){st[gt]||(st[gt]={}),st[gt]=_extends$6({},st[gt],ut[gt])}),ct}),st};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0});autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$4(_forOwn2),_extends$5=Object.assign||function(_e){for(var et=1;et1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$8(ct,st);function ct(){var ut,ft,gt,xt;_classCallCheck$8(this,ct);for(var $t=arguments.length,_t=Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];return xt=(ft=(gt=_possibleConstructorReturn$8(this,(ut=ct.__proto__||Object.getPrototypeOf(ct)).call.apply(ut,[this].concat(_t))),gt),gt.state={hover:!1},gt.handleMouseOver=function(){return gt.setState({hover:!0})},gt.handleMouseOut=function(){return gt.setState({hover:!1})},gt.render=function(){return _react2$1.default.createElement(rt,{onMouseOver:gt.handleMouseOver,onMouseOut:gt.handleMouseOut},_react2$1.default.createElement(et,_extends$4({},gt.props,gt.state)))},ft),_possibleConstructorReturn$8(gt,xt)}return ct}(_react2$1.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0});active$1.active=void 0;var _extends$3=Object.assign||function(_e){for(var et=1;et1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$7(ct,st);function ct(){var ut,ft,gt,xt;_classCallCheck$7(this,ct);for(var $t=arguments.length,_t=Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];return xt=(ft=(gt=_possibleConstructorReturn$7(this,(ut=ct.__proto__||Object.getPrototypeOf(ct)).call.apply(ut,[this].concat(_t))),gt),gt.state={active:!1},gt.handleMouseDown=function(){return gt.setState({active:!0})},gt.handleMouseUp=function(){return gt.setState({active:!1})},gt.render=function(){return _react2.default.createElement(rt,{onMouseDown:gt.handleMouseDown,onMouseUp:gt.handleMouseUp},_react2.default.createElement(et,_extends$3({},gt.props,gt.state)))},ft),_possibleConstructorReturn$7(gt,xt)}return ct}(_react2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function(et,rt){var st={},ct=function(ft){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;st[ft]=gt};return et===0&&ct("first-child"),et===rt-1&&ct("last-child"),(et===0||et%2===0)&&ct("even"),Math.abs(et%2)===1&&ct("odd"),ct("nth-child",et),st};loop.default=loopable;Object.defineProperty(lib,"__esModule",{value:!0});lib.ReactCSS=lib.loop=lib.handleActive=lib.handleHover=lib.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$1(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$1(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$1(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$1(_hover2),_active=active$1,_active2=_interopRequireDefault$1(_active),_loop2=loop,_loop3=_interopRequireDefault$1(_loop2);function _interopRequireDefault$1(_e){return _e&&_e.__esModule?_e:{default:_e}}lib.hover=_hover3.default;lib.handleHover=_hover3.default;lib.handleActive=_active2.default;lib.loop=_loop3.default;var ReactCSS=lib.ReactCSS=function(et){for(var rt=arguments.length,st=Array(rt>1?rt-1:0),ct=1;ct0){if(++et>=HOT_COUNT)return arguments[0]}else et=0;return _e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(_e,et){return setToString(overRest(_e,et,identity),_e+"")}var _baseRest=baseRest$1,eq=eq_1,isArrayLike=isArrayLike_1,isIndex=_isIndex,isObject$7=isObject_1;function isIterateeCall$1(_e,et,rt){if(!isObject$7(rt))return!1;var st=typeof et;return(st=="number"?isArrayLike(rt)&&isIndex(et,rt.length):st=="string"&&et in rt)?eq(rt[et],_e):!1}var _isIterateeCall=isIterateeCall$1,baseRest=_baseRest,isIterateeCall=_isIterateeCall;function createAssigner$1(_e){return baseRest(function(et,rt){var st=-1,ct=rt.length,ut=ct>1?rt[ct-1]:void 0,ft=ct>2?rt[2]:void 0;for(ut=_e.length>3&&typeof ut=="function"?(ct--,ut):void 0,ft&&isIterateeCall(rt[0],rt[1],ft)&&(ut=ct<3?void 0:ut,ct=1),et=Object(et);++stgt?Tt=1:Tt=Math.round(wt*100/gt)/100,rt.a!==Tt)return{h:rt.h,s:rt.s,l:rt.l,a:Tt,source:"rgb"}}else{var Rt;if(_t<0?Rt=0:_t>ft?Rt=1:Rt=Math.round(_t*100/ft)/100,ct!==Rt)return{h:rt.h,s:rt.s,l:rt.l,a:Rt,source:"rgb"}}return null},checkboardCache={},render=function(et,rt,st,ct){if(typeof document>"u"&&!ct)return null;var ut=ct?new ct:document.createElement("canvas");ut.width=st*2,ut.height=st*2;var ft=ut.getContext("2d");return ft?(ft.fillStyle=et,ft.fillRect(0,0,ut.width,ut.height),ft.fillStyle=rt,ft.fillRect(0,0,st,st),ft.translate(st,st),ft.fillRect(0,0,st,st),ut.toDataURL()):null},get$3=function(et,rt,st,ct){var ut="".concat(et,"-").concat(rt,"-").concat(st).concat(ct?"-server":"");if(checkboardCache[ut])return checkboardCache[ut];var ft=render(et,rt,st,ct);return checkboardCache[ut]=ft,ft};function _typeof$d(_e){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$d(_e)}function ownKeys$9(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$9(_e){for(var et=1;et"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 _getPrototypeOf$6(_e){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$6(_e)}var Alpha=function(_e){_inherits$6(rt,_e);var et=_createSuper$6(rt);function rt(){var st;_classCallCheck$6(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft0?_r.map(function(Dr,Xr){var Kr=Br==null?void 0:Br[Xr],Hr=(Kr==null?void 0:Kr["data-item"])||{};return _objectSpread2(_objectSpread2({},Hr),Dr)}):[]},kr=function Fr(_r){return _r.map(function(Br,Dr){var Xr,Kr=Br,Hr=Kr.className,Vr=Kr.optionType,ln=_objectWithoutProperties$2(Kr,_excluded2$a),Qr=Br[dr],Zr=Br[Sr],vn=(Xr=Br[mr])!==null&&Xr!==void 0?Xr:[];return Vr==="optGroup"||Br.options?_objectSpread2(_objectSpread2({label:Qr},ln),{},{data_title:Qr,title:Qr,key:Zr??(Qr==null?void 0:Qr.toString()),children:Fr(vn)}):_objectSpread2(_objectSpread2({title:Qr},ln),{},{data_title:Qr,value:Zr??Dr,key:Zr??(Qr==null?void 0:Qr.toString()),"data-item":Br,className:"".concat(Rr,"-option ").concat(Hr||"").trim(),label:(st==null?void 0:st(Br))||Qr})})};return jsxRuntimeExports.jsx(Select$3,_objectSpread2(_objectSpread2({ref:wr,className:Pr,allowClear:!0,autoClearSearchValue:$t,disabled:Wt,mode:ct,showSearch:lr,searchValue:Mr,optionFilterProp:Nt,optionLabelProp:Ft,onClear:function(){Zt==null||Zt(),qt(void 0),lr&&Or(void 0)}},fr),{},{filterOption:fr.filterOption==!1?!1:function(Fr,_r){var Br,Dr,Xr;return fr.filterOption&&typeof fr.filterOption=="function"?fr.filterOption(Fr,_objectSpread2(_objectSpread2({},_r),{},{label:_r==null?void 0:_r.data_title})):!!(_r!=null&&(Br=_r.data_title)!==null&&Br!==void 0&&Br.toString().toLowerCase().includes(Fr.toLowerCase())||_r!=null&&(Dr=_r.label)!==null&&Dr!==void 0&&Dr.toString().toLowerCase().includes(Fr.toLowerCase())||_r!=null&&(Xr=_r.value)!==null&&Xr!==void 0&&Xr.toString().toLowerCase().includes(Fr.toLowerCase()))},onSearch:lr?function(Fr){At&&qt(Fr),ut==null||ut(Fr),Or(Fr)}:void 0,onChange:function(_r,Br){lr&&$t&&(qt(void 0),ut==null||ut(""),Or(void 0));for(var Dr=arguments.length,Xr=new Array(Dr>2?Dr-2:0),Kr=2;Kr-1&&_e%1==0&&_e-1&&_e%1==0&&_e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$3=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$2]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(_e){return isObjectLike$6(_e)&&isLength$2(_e.length)&&!!typedArrayTags[baseGetTag$3(_e)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(_e){return function(et){return _e(et)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(_e,et){var rt=_freeGlobal,st=et&&!et.nodeType&&et,ct=st&&!0&&_e&&!_e.nodeType&&_e,ut=ct&&ct.exports===st,ft=ut&&rt.process,gt=function(){try{var xt=ct&&ct.require&&ct.require("util").types;return xt||ft&&ft.binding&&ft.binding("util")}catch{}}();_e.exports=gt})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$4=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$4,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$c=isArray_1,isBuffer$4=isBufferExports,isIndex$2=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty;function arrayLikeKeys$2(_e,et){var rt=isArray$c(_e),st=!rt&&isArguments$2(_e),ct=!rt&&!st&&isBuffer$4(_e),ut=!rt&&!st&&!ct&&isTypedArray$3(_e),ft=rt||st||ct||ut,gt=ft?baseTimes(_e.length,String):[],xt=gt.length;for(var $t in _e)(et||hasOwnProperty$b.call(_e,$t))&&!(ft&&($t=="length"||ct&&($t=="offset"||$t=="parent")||ut&&($t=="buffer"||$t=="byteLength"||$t=="byteOffset")||isIndex$2($t,xt)))&>.push($t);return gt}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$c=Object.prototype;function isPrototype$3(_e){var et=_e&&_e.constructor,rt=typeof et=="function"&&et.prototype||objectProto$c;return _e===rt}var _isPrototype=isPrototype$3;function overArg$2(_e,et){return function(rt){return _e(et(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty;function baseKeys$1(_e){if(!isPrototype$2(_e))return nativeKeys(_e);var et=[];for(var rt in Object(_e))hasOwnProperty$a.call(_e,rt)&&rt!="constructor"&&et.push(rt);return et}var _baseKeys=baseKeys$1;function isObject$h(_e){var et=typeof _e;return _e!=null&&(et=="object"||et=="function")}var isObject_1=isObject$h,baseGetTag$2=_baseGetTag,isObject$g=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$5(_e){if(!isObject$g(_e))return!1;var et=baseGetTag$2(_e);return et==funcTag$1||et==genTag$1||et==asyncTag||et==proxyTag}var isFunction_1=isFunction$5,isFunction$4=isFunction_1,isLength$1=isLength_1;function isArrayLike$6(_e){return _e!=null&&isLength$1(_e.length)&&!isFunction$4(_e)}var isArrayLike_1=isArrayLike$6,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$5=isArrayLike_1;function keys$6(_e){return isArrayLike$5(_e)?arrayLikeKeys$1(_e):baseKeys(_e)}var keys_1=keys$6,baseFor$1=_baseFor,keys$5=keys_1;function baseForOwn$2(_e,et){return _e&&baseFor$1(_e,et,keys$5)}var _baseForOwn=baseForOwn$2;function identity$4(_e){return _e}var identity_1=identity$4,identity$3=identity_1;function castFunction$2(_e){return typeof _e=="function"?_e:identity$3}var _castFunction=castFunction$2,baseForOwn$1=_baseForOwn,castFunction$1=_castFunction;function forOwn(_e,et){return _e&&baseForOwn$1(_e,castFunction$1(et))}var forOwn_1=forOwn,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,baseGetTag$1=_baseGetTag,getPrototype$2=_getPrototype,isObjectLike$5=isObjectLike_1,objectTag$3="[object Object]",funcProto$2=Function.prototype,objectProto$a=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$9=objectProto$a.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$2(_e){if(!isObjectLike$5(_e)||baseGetTag$1(_e)!=objectTag$3)return!1;var et=getPrototype$2(_e);if(et===null)return!0;var rt=hasOwnProperty$9.call(et,"constructor")&&et.constructor;return typeof rt=="function"&&rt instanceof rt&&funcToString$2.call(rt)==objectCtorString}var isPlainObject_1=isPlainObject$2;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$5(_e,et){return _e===et||_e!==_e&&et!==et}var eq_1=eq$5,eq$4=eq_1;function assocIndexOf$4(_e,et){for(var rt=_e.length;rt--;)if(eq$4(_e[rt][0],et))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(_e){var et=this.__data__,rt=assocIndexOf$3(et,_e);if(rt<0)return!1;var st=et.length-1;return rt==st?et.pop():splice.call(et,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(_e){var et=this.__data__,rt=assocIndexOf$2(et,_e);return rt<0?void 0:et[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(_e){return assocIndexOf$1(this.__data__,_e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(_e,et){var rt=this.__data__,st=assocIndexOf(rt,_e);return st<0?(++this.size,rt.push([_e,et])):rt[st][1]=et,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(_e){var et=-1,rt=_e==null?0:_e.length;for(this.clear();++etgt))return!1;var $t=ut.get(_e),_t=ut.get(et);if($t&&_t)return $t==et&&_t==_e;var wt=-1,Tt=!0,Rt=rt&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ut.set(_e,et),ut.set(et,_e);++wt0&&arguments[0]!==void 0?arguments[0]:[],rt=[];return(0,_map3.default)(et,function(st){Array.isArray(st)?_e(st).map(function(ct){return rt.push(ct)}):(0,_isPlainObject3.default)(st)?(0,_forOwn3$2.default)(st,function(ct,ut){ct===!0&&rt.push(ut),rt.push(ut+"-"+ct)}):(0,_isString3.default)(st)&&rt.push(st)}),rt};flattenNames$1.default=flattenNames;var mergeClasses$1={};function arrayEach$2(_e,et){for(var rt=-1,st=_e==null?0:_e.length;++rt1&&arguments[1]!==void 0?arguments[1]:[],st=et.default&&(0,_cloneDeep3.default)(et.default)||{};return rt.map(function(ct){var ut=et[ct];return ut&&(0,_forOwn3$1.default)(ut,function(ft,gt){st[gt]||(st[gt]={}),st[gt]=_extends$6({},st[gt],ut[gt])}),ct}),st};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0});autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$4(_forOwn2),_extends$5=Object.assign||function(_e){for(var et=1;et1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$8(ct,st);function ct(){var ut,ft,gt,xt;_classCallCheck$8(this,ct);for(var $t=arguments.length,_t=Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];return xt=(ft=(gt=_possibleConstructorReturn$8(this,(ut=ct.__proto__||Object.getPrototypeOf(ct)).call.apply(ut,[this].concat(_t))),gt),gt.state={hover:!1},gt.handleMouseOver=function(){return gt.setState({hover:!0})},gt.handleMouseOut=function(){return gt.setState({hover:!1})},gt.render=function(){return _react2$1.default.createElement(rt,{onMouseOver:gt.handleMouseOver,onMouseOut:gt.handleMouseOut},_react2$1.default.createElement(et,_extends$4({},gt.props,gt.state)))},ft),_possibleConstructorReturn$8(gt,xt)}return ct}(_react2$1.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0});active$1.active=void 0;var _extends$3=Object.assign||function(_e){for(var et=1;et1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$7(ct,st);function ct(){var ut,ft,gt,xt;_classCallCheck$7(this,ct);for(var $t=arguments.length,_t=Array($t),wt=0;wt<$t;wt++)_t[wt]=arguments[wt];return xt=(ft=(gt=_possibleConstructorReturn$7(this,(ut=ct.__proto__||Object.getPrototypeOf(ct)).call.apply(ut,[this].concat(_t))),gt),gt.state={active:!1},gt.handleMouseDown=function(){return gt.setState({active:!0})},gt.handleMouseUp=function(){return gt.setState({active:!1})},gt.render=function(){return _react2.default.createElement(rt,{onMouseDown:gt.handleMouseDown,onMouseUp:gt.handleMouseUp},_react2.default.createElement(et,_extends$3({},gt.props,gt.state)))},ft),_possibleConstructorReturn$7(gt,xt)}return ct}(_react2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function(et,rt){var st={},ct=function(ft){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;st[ft]=gt};return et===0&&ct("first-child"),et===rt-1&&ct("last-child"),(et===0||et%2===0)&&ct("even"),Math.abs(et%2)===1&&ct("odd"),ct("nth-child",et),st};loop.default=loopable;Object.defineProperty(lib,"__esModule",{value:!0});lib.ReactCSS=lib.loop=lib.handleActive=lib.handleHover=lib.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$1(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$1(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$1(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$1(_hover2),_active=active$1,_active2=_interopRequireDefault$1(_active),_loop2=loop,_loop3=_interopRequireDefault$1(_loop2);function _interopRequireDefault$1(_e){return _e&&_e.__esModule?_e:{default:_e}}lib.hover=_hover3.default;lib.handleHover=_hover3.default;lib.handleActive=_active2.default;lib.loop=_loop3.default;var ReactCSS=lib.ReactCSS=function(et){for(var rt=arguments.length,st=Array(rt>1?rt-1:0),ct=1;ct0){if(++et>=HOT_COUNT)return arguments[0]}else et=0;return _e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(_e,et){return setToString(overRest(_e,et,identity),_e+"")}var _baseRest=baseRest$1,eq=eq_1,isArrayLike=isArrayLike_1,isIndex=_isIndex,isObject$8=isObject_1;function isIterateeCall$1(_e,et,rt){if(!isObject$8(rt))return!1;var st=typeof et;return(st=="number"?isArrayLike(rt)&&isIndex(et,rt.length):st=="string"&&et in rt)?eq(rt[et],_e):!1}var _isIterateeCall=isIterateeCall$1,baseRest=_baseRest,isIterateeCall=_isIterateeCall;function createAssigner$1(_e){return baseRest(function(et,rt){var st=-1,ct=rt.length,ut=ct>1?rt[ct-1]:void 0,ft=ct>2?rt[2]:void 0;for(ut=_e.length>3&&typeof ut=="function"?(ct--,ut):void 0,ft&&isIterateeCall(rt[0],rt[1],ft)&&(ut=ct<3?void 0:ut,ct=1),et=Object(et);++stgt?Tt=1:Tt=Math.round(wt*100/gt)/100,rt.a!==Tt)return{h:rt.h,s:rt.s,l:rt.l,a:Tt,source:"rgb"}}else{var Rt;if(_t<0?Rt=0:_t>ft?Rt=1:Rt=Math.round(_t*100/ft)/100,ct!==Rt)return{h:rt.h,s:rt.s,l:rt.l,a:Rt,source:"rgb"}}return null},checkboardCache={},render=function(et,rt,st,ct){if(typeof document>"u"&&!ct)return null;var ut=ct?new ct:document.createElement("canvas");ut.width=st*2,ut.height=st*2;var ft=ut.getContext("2d");return ft?(ft.fillStyle=et,ft.fillRect(0,0,ut.width,ut.height),ft.fillStyle=rt,ft.fillRect(0,0,st,st),ft.translate(st,st),ft.fillRect(0,0,st,st),ut.toDataURL()):null},get$3=function(et,rt,st,ct){var ut="".concat(et,"-").concat(rt,"-").concat(st).concat(ct?"-server":"");if(checkboardCache[ut])return checkboardCache[ut];var ft=render(et,rt,st,ct);return checkboardCache[ut]=ft,ft};function _typeof$d(_e){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$d(_e)}function ownKeys$9(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$9(_e){for(var et=1;et"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 _getPrototypeOf$6(_e){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$6(_e)}var Alpha=function(_e){_inherits$6(rt,_e);var et=_createSuper$6(rt);function rt(){var st;_classCallCheck$6(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ftft)wt=0;else{var Tt=-(_t*100/ft)+100;wt=360*Tt/100}if(st.h!==wt)return{h:wt,s:st.s,l:st.l,a:st.a,source:"hsl"}}else{var Rt;if($t<0)Rt=0;else if($t>ut)Rt=359;else{var It=$t*100/ut;Rt=360*It/100}if(st.h!==Rt)return{h:Rt,s:st.s,l:st.l,a:st.a,source:"hsl"}}return null};function _typeof$b(_e){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$b(_e)}function _classCallCheck$5(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(_e,et){for(var rt=0;rt"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 _getPrototypeOf$5(_e){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$5(_e)}var Hue=function(_e){_inherits$5(rt,_e);var et=_createSuper$5(rt);function rt(){var st;_classCallCheck$5(this,rt);for(var ct=arguments.length,ut=new Array(ct),ft=0;ft=et||qt<0||wt&&Gt>=ut}function Nt(){var Vt=now$2();if(jt(Vt))return kt(Vt);gt=setTimeout(Nt,At(Vt))}function kt(Vt){return gt=void 0,Tt&&st?Rt(Vt):(st=ct=void 0,ft)}function Ft(){gt!==void 0&&clearTimeout(gt),$t=0,st=xt=ct=gt=void 0}function Ht(){return gt===void 0?ft:kt(now$2())}function Wt(){var Vt=now$2(),qt=jt(Vt);if(st=arguments,ct=this,xt=Vt,qt){if(gt===void 0)return It(xt);if(wt)return clearTimeout(gt),gt=setTimeout(Nt,et),Rt(xt)}return gt===void 0&&(gt=setTimeout(Nt,et)),ft}return Wt.cancel=Ft,Wt.flush=Ht,Wt}var debounce_1=debounce$1;const debounce$2=getDefaultExportFromCjs(debounce_1);var debounce=debounce_1,isObject$4=isObject_1,FUNC_ERROR_TEXT="Expected a function";function throttle$1(_e,et,rt){var st=!0,ct=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$4(rt)&&(st="leading"in rt?!!rt.leading:st,ct="trailing"in rt?!!rt.trailing:ct),debounce(_e,et,{leading:st,maxWait:et,trailing:ct})}var throttle_1=throttle$1;const throttle$2=getDefaultExportFromCjs(throttle_1);var calculateChange=function(et,rt,st){var ct=st.getBoundingClientRect(),ut=ct.width,ft=ct.height,gt=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,xt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,$t=gt-(st.getBoundingClientRect().left+window.pageXOffset),_t=xt-(st.getBoundingClientRect().top+window.pageYOffset);$t<0?$t=0:$t>ut&&($t=ut),_t<0?_t=0:_t>ft&&(_t=ft);var wt=$t/ut,Tt=1-_t/ft;return{h:rt.h,s:wt,v:Tt,a:rt.a,source:"hsv"}};function _typeof$a(_e){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$a(_e)}function _classCallCheck$4(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(_e,et){for(var rt=0;rt"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 _getPrototypeOf$4(_e){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$4(_e)}var Saturation=function(_e){_inherits$4(rt,_e);var et=_createSuper$4(rt);function rt(st){var ct;return _classCallCheck$4(this,rt),ct=et.call(this,st),ct.handleChange=function(ut){typeof ct.props.onChange=="function"&&ct.throttle(ct.props.onChange,calculateChange(ut,ct.props.hsl,ct.container),ut)},ct.handleMouseDown=function(ut){ct.handleChange(ut);var ft=ct.getContainerRenderWindow();ft.addEventListener("mousemove",ct.handleChange),ft.addEventListener("mouseup",ct.handleMouseUp)},ct.handleMouseUp=function(){ct.unbindEventListeners()},ct.throttle=throttle$2(function(ut,ft,gt){ut(ft,gt)},50),ct}return _createClass$4(rt,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var ct=this.container,ut=window;!ut.document.contains(ct)&&ut.parent!==ut;)ut=ut.parent;return ut}},{key:"unbindEventListeners",value:function(){var ct=this.getContainerRenderWindow();ct.removeEventListener("mousemove",this.handleChange),ct.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var ct=this,ut=this.props.style||{},ft=ut.color,gt=ut.white,xt=ut.black,$t=ut.pointer,_t=ut.circle,wt=_default$2({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), + `),React$1.createElement("div",{style:gt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:gt.slider}))))}}]),rt}(reactExports.PureComponent||reactExports.Component),root=_root,now$3=function(){return root.Date.now()},now_1=now$3,reWhitespace=/\s/;function trimmedEndIndex$1(_e){for(var et=_e.length;et--&&reWhitespace.test(_e.charAt(et)););return et}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(_e){return _e&&_e.slice(0,trimmedEndIndex(_e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$1=isSymbol_1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$3(_e){if(typeof _e=="number")return _e;if(isSymbol$1(_e))return NAN$1;if(isObject$7(_e)){var et=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=isObject$7(et)?et+"":et}if(typeof _e!="string")return _e===0?_e:+_e;_e=baseTrim(_e);var rt=reIsBinary$1.test(_e);return rt||reIsOctal$1.test(_e)?freeParseInt$1(_e.slice(2),rt?2:8):reIsBadHex$1.test(_e)?NAN$1:+_e}var toNumber_1=toNumber$3,isObject$6=isObject_1,now$2=now_1,toNumber$2=toNumber_1,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce$1(_e,et,rt){var st,ct,ut,ft,gt,xt,$t=0,_t=!1,wt=!1,Tt=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);et=toNumber$2(et)||0,isObject$6(rt)&&(_t=!!rt.leading,wt="maxWait"in rt,ut=wt?nativeMax(toNumber$2(rt.maxWait)||0,et):ut,Tt="trailing"in rt?!!rt.trailing:Tt);function Rt(Vt){var qt=st,Xt=ct;return st=ct=void 0,$t=Vt,ft=_e.apply(Xt,qt),ft}function It(Vt){return $t=Vt,gt=setTimeout(Nt,et),_t?Rt(Vt):ft}function At(Vt){var qt=Vt-xt,Xt=Vt-$t,Gt=et-qt;return wt?nativeMin(Gt,ut-Xt):Gt}function jt(Vt){var qt=Vt-xt,Xt=Vt-$t;return xt===void 0||qt>=et||qt<0||wt&&Xt>=ut}function Nt(){var Vt=now$2();if(jt(Vt))return kt(Vt);gt=setTimeout(Nt,At(Vt))}function kt(Vt){return gt=void 0,Tt&&st?Rt(Vt):(st=ct=void 0,ft)}function Ft(){gt!==void 0&&clearTimeout(gt),$t=0,st=xt=ct=gt=void 0}function Ht(){return gt===void 0?ft:kt(now$2())}function Wt(){var Vt=now$2(),qt=jt(Vt);if(st=arguments,ct=this,xt=Vt,qt){if(gt===void 0)return It(xt);if(wt)return clearTimeout(gt),gt=setTimeout(Nt,et),Rt(xt)}return gt===void 0&&(gt=setTimeout(Nt,et)),ft}return Wt.cancel=Ft,Wt.flush=Ht,Wt}var debounce_1=debounce$1;const debounce$2=getDefaultExportFromCjs(debounce_1);var debounce=debounce_1,isObject$5=isObject_1,FUNC_ERROR_TEXT="Expected a function";function throttle$1(_e,et,rt){var st=!0,ct=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$5(rt)&&(st="leading"in rt?!!rt.leading:st,ct="trailing"in rt?!!rt.trailing:ct),debounce(_e,et,{leading:st,maxWait:et,trailing:ct})}var throttle_1=throttle$1;const throttle$2=getDefaultExportFromCjs(throttle_1);var calculateChange=function(et,rt,st){var ct=st.getBoundingClientRect(),ut=ct.width,ft=ct.height,gt=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,xt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,$t=gt-(st.getBoundingClientRect().left+window.pageXOffset),_t=xt-(st.getBoundingClientRect().top+window.pageYOffset);$t<0?$t=0:$t>ut&&($t=ut),_t<0?_t=0:_t>ft&&(_t=ft);var wt=$t/ut,Tt=1-_t/ft;return{h:rt.h,s:wt,v:Tt,a:rt.a,source:"hsv"}};function _typeof$a(_e){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$a(_e)}function _classCallCheck$4(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(_e,et){for(var rt=0;rt"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 _getPrototypeOf$4(_e){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$4(_e)}var Saturation=function(_e){_inherits$4(rt,_e);var et=_createSuper$4(rt);function rt(st){var ct;return _classCallCheck$4(this,rt),ct=et.call(this,st),ct.handleChange=function(ut){typeof ct.props.onChange=="function"&&ct.throttle(ct.props.onChange,calculateChange(ut,ct.props.hsl,ct.container),ut)},ct.handleMouseDown=function(ut){ct.handleChange(ut);var ft=ct.getContainerRenderWindow();ft.addEventListener("mousemove",ct.handleChange),ft.addEventListener("mouseup",ct.handleMouseUp)},ct.handleMouseUp=function(){ct.unbindEventListeners()},ct.throttle=throttle$2(function(ut,ft,gt){ut(ft,gt)},50),ct}return _createClass$4(rt,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var ct=this.container,ut=window;!ut.document.contains(ct)&&ut.parent!==ut;)ut=ut.parent;return ut}},{key:"unbindEventListeners",value:function(){var ct=this.getContainerRenderWindow();ct.removeEventListener("mousemove",this.handleChange),ct.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var ct=this,ut=this.props.style||{},ft=ut.color,gt=ut.white,xt=ut.black,$t=ut.pointer,_t=ut.circle,wt=_default$2({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:ft,white:gt,black:xt,pointer:$t,circle:_t}},{custom:!!this.props.style});return React$1.createElement("div",{style:wt.color,ref:function(Rt){return ct.container=Rt},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); @@ -632,7 +647,7 @@ ${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur) background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } - `),React$1.createElement("div",{style:wt.white,className:"saturation-white"},React$1.createElement("div",{style:wt.black,className:"saturation-black"}),React$1.createElement("div",{style:wt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:wt.circle}))))}}]),rt}(reactExports.PureComponent||reactExports.Component),arrayEach=_arrayEach,baseEach=_baseEach,castFunction=_castFunction,isArray$2=isArray_1;function forEach$1(_e,et){var rt=isArray$2(_e)?arrayEach:baseEach;return rt(_e,castFunction(et))}var forEach_1=forEach$1,each=forEach_1;const each$1=getDefaultExportFromCjs(each);function _typeof$9(_e){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$9(_e)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(_e,et){if(_e=_e||"",et=et||{},_e instanceof tinycolor)return _e;if(!(this instanceof tinycolor))return new tinycolor(_e,et);var rt=inputToRGB(_e);this._originalInput=_e,this._r=rt.r,this._g=rt.g,this._b=rt.b,this._a=rt.a,this._roundA=Math.round(100*this._a)/100,this._format=et.format||rt.format,this._gradientType=et.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=rt.ok}tinycolor.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 et=this.toRgb();return(et.r*299+et.g*587+et.b*114)/1e3},getLuminance:function(){var et=this.toRgb(),rt,st,ct,ut,ft,gt;return rt=et.r/255,st=et.g/255,ct=et.b/255,rt<=.03928?ut=rt/12.92:ut=Math.pow((rt+.055)/1.055,2.4),st<=.03928?ft=st/12.92:ft=Math.pow((st+.055)/1.055,2.4),ct<=.03928?gt=ct/12.92:gt=Math.pow((ct+.055)/1.055,2.4),.2126*ut+.7152*ft+.0722*gt},setAlpha:function(et){return this._a=boundAlpha(et),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var et=rgbToHsv(this._r,this._g,this._b);return{h:et.h*360,s:et.s,v:et.v,a:this._a}},toHsvString:function(){var et=rgbToHsv(this._r,this._g,this._b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.v*100);return this._a==1?"hsv("+rt+", "+st+"%, "+ct+"%)":"hsva("+rt+", "+st+"%, "+ct+"%, "+this._roundA+")"},toHsl:function(){var et=rgbToHsl(this._r,this._g,this._b);return{h:et.h*360,s:et.s,l:et.l,a:this._a}},toHslString:function(){var et=rgbToHsl(this._r,this._g,this._b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.l*100);return this._a==1?"hsl("+rt+", "+st+"%, "+ct+"%)":"hsla("+rt+", "+st+"%, "+ct+"%, "+this._roundA+")"},toHex:function(et){return rgbToHex(this._r,this._g,this._b,et)},toHexString:function(et){return"#"+this.toHex(et)},toHex8:function(et){return rgbaToHex(this._r,this._g,this._b,this._a,et)},toHex8String:function(et){return"#"+this.toHex8(et)},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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(et){var rt="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),st=rt,ct=this._gradientType?"GradientType = 1, ":"";if(et){var ut=tinycolor(et);st="#"+rgbaToArgbHex(ut._r,ut._g,ut._b,ut._a)}return"progid:DXImageTransform.Microsoft.gradient("+ct+"startColorstr="+rt+",endColorstr="+st+")"},toString:function(et){var rt=!!et;et=et||this._format;var st=!1,ct=this._a<1&&this._a>=0,ut=!rt&&ct&&(et==="hex"||et==="hex6"||et==="hex3"||et==="hex4"||et==="hex8"||et==="name");return ut?et==="name"&&this._a===0?this.toName():this.toRgbString():(et==="rgb"&&(st=this.toRgbString()),et==="prgb"&&(st=this.toPercentageRgbString()),(et==="hex"||et==="hex6")&&(st=this.toHexString()),et==="hex3"&&(st=this.toHexString(!0)),et==="hex4"&&(st=this.toHex8String(!0)),et==="hex8"&&(st=this.toHex8String()),et==="name"&&(st=this.toName()),et==="hsl"&&(st=this.toHslString()),et==="hsv"&&(st=this.toHsvString()),st||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(et,rt){var st=et.apply(null,[this].concat([].slice.call(rt)));return this._r=st._r,this._g=st._g,this._b=st._b,this.setAlpha(st._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(et,rt){return et.apply(null,[this].concat([].slice.call(rt)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}};tinycolor.fromRatio=function(_e,et){if(_typeof$9(_e)=="object"){var rt={};for(var st in _e)_e.hasOwnProperty(st)&&(st==="a"?rt[st]=_e[st]:rt[st]=convertToPercentage(_e[st]));_e=rt}return tinycolor(_e,et)};function inputToRGB(_e){var et={r:0,g:0,b:0},rt=1,st=null,ct=null,ut=null,ft=!1,gt=!1;return typeof _e=="string"&&(_e=stringInputToObject(_e)),_typeof$9(_e)=="object"&&(isValidCSSUnit(_e.r)&&isValidCSSUnit(_e.g)&&isValidCSSUnit(_e.b)?(et=rgbToRgb(_e.r,_e.g,_e.b),ft=!0,gt=String(_e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(_e.h)&&isValidCSSUnit(_e.s)&&isValidCSSUnit(_e.v)?(st=convertToPercentage(_e.s),ct=convertToPercentage(_e.v),et=hsvToRgb(_e.h,st,ct),ft=!0,gt="hsv"):isValidCSSUnit(_e.h)&&isValidCSSUnit(_e.s)&&isValidCSSUnit(_e.l)&&(st=convertToPercentage(_e.s),ut=convertToPercentage(_e.l),et=hslToRgb(_e.h,st,ut),ft=!0,gt="hsl"),_e.hasOwnProperty("a")&&(rt=_e.a)),rt=boundAlpha(rt),{ok:ft,format:_e.format||gt,r:Math.min(255,Math.max(et.r,0)),g:Math.min(255,Math.max(et.g,0)),b:Math.min(255,Math.max(et.b,0)),a:rt}}function rgbToRgb(_e,et,rt){return{r:bound01(_e,255)*255,g:bound01(et,255)*255,b:bound01(rt,255)*255}}function rgbToHsl(_e,et,rt){_e=bound01(_e,255),et=bound01(et,255),rt=bound01(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut,ft,gt=(st+ct)/2;if(st==ct)ut=ft=0;else{var xt=st-ct;switch(ft=gt>.5?xt/(2-st-ct):xt/(st+ct),st){case _e:ut=(et-rt)/xt+(et1&&(wt-=1),wt<1/6?$t+(_t-$t)*6*wt:wt<1/2?_t:wt<2/3?$t+(_t-$t)*(2/3-wt)*6:$t}if(et===0)st=ct=ut=rt;else{var gt=rt<.5?rt*(1+et):rt+et-rt*et,xt=2*rt-gt;st=ft(xt,gt,_e+1/3),ct=ft(xt,gt,_e),ut=ft(xt,gt,_e-1/3)}return{r:st*255,g:ct*255,b:ut*255}}function rgbToHsv(_e,et,rt){_e=bound01(_e,255),et=bound01(et,255),rt=bound01(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut,ft,gt=st,xt=st-ct;if(ft=st===0?0:xt/st,st==ct)ut=0;else{switch(st){case _e:ut=(et-rt)/xt+(et>1)+720)%360;--et;)st.h=(st.h+ct)%360,ut.push(tinycolor(st));return ut}function _monochromatic(_e,et){et=et||6;for(var rt=tinycolor(_e).toHsv(),st=rt.h,ct=rt.s,ut=rt.v,ft=[],gt=1/et;et--;)ft.push(tinycolor({h:st,s:ct,v:ut})),ut=(ut+gt)%1;return ft}tinycolor.mix=function(_e,et,rt){rt=rt===0?0:rt||50;var st=tinycolor(_e).toRgb(),ct=tinycolor(et).toRgb(),ut=rt/100,ft={r:(ct.r-st.r)*ut+st.r,g:(ct.g-st.g)*ut+st.g,b:(ct.b-st.b)*ut+st.b,a:(ct.a-st.a)*ut+st.a};return tinycolor(ft)};tinycolor.readability=function(_e,et){var rt=tinycolor(_e),st=tinycolor(et);return(Math.max(rt.getLuminance(),st.getLuminance())+.05)/(Math.min(rt.getLuminance(),st.getLuminance())+.05)};tinycolor.isReadable=function(_e,et,rt){var st=tinycolor.readability(_e,et),ct,ut;switch(ut=!1,ct=validateWCAG2Parms(rt),ct.level+ct.size){case"AAsmall":case"AAAlarge":ut=st>=4.5;break;case"AAlarge":ut=st>=3;break;case"AAAsmall":ut=st>=7;break}return ut};tinycolor.mostReadable=function(_e,et,rt){var st=null,ct=0,ut,ft,gt,xt;rt=rt||{},ft=rt.includeFallbackColors,gt=rt.level,xt=rt.size;for(var $t=0;$tct&&(ct=ut,st=tinycolor(et[$t]));return tinycolor.isReadable(_e,st,{level:gt,size:xt})||!ft?st:(rt.includeFallbackColors=!1,tinycolor.mostReadable(_e,["#fff","#000"],rt))};var names=tinycolor.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"},hexNames=tinycolor.hexNames=flip(names);function flip(_e){var et={};for(var rt in _e)_e.hasOwnProperty(rt)&&(et[_e[rt]]=rt);return et}function boundAlpha(_e){return _e=parseFloat(_e),(isNaN(_e)||_e<0||_e>1)&&(_e=1),_e}function bound01(_e,et){isOnePointZero(_e)&&(_e="100%");var rt=isPercentage(_e);return _e=Math.min(et,Math.max(0,parseFloat(_e))),rt&&(_e=parseInt(_e*et,10)/100),Math.abs(_e-et)<1e-6?1:_e%et/parseFloat(et)}function clamp01(_e){return Math.min(1,Math.max(0,_e))}function parseIntFromHex(_e){return parseInt(_e,16)}function isOnePointZero(_e){return typeof _e=="string"&&_e.indexOf(".")!=-1&&parseFloat(_e)===1}function isPercentage(_e){return typeof _e=="string"&&_e.indexOf("%")!=-1}function pad2(_e){return _e.length==1?"0"+_e:""+_e}function convertToPercentage(_e){return _e<=1&&(_e=_e*100+"%"),_e}function convertDecimalToHex(_e){return Math.round(parseFloat(_e)*255).toString(16)}function convertHexToDecimal(_e){return parseIntFromHex(_e)/255}var matchers=function(){var _e="[-\\+]?\\d+%?",et="[-\\+]?\\d*\\.\\d+%?",rt="(?:"+et+")|(?:"+_e+")",st="[\\s|\\(]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")\\s*\\)?",ct="[\\s|\\(]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")\\s*\\)?";return{CSS_UNIT:new RegExp(rt),rgb:new RegExp("rgb"+st),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+st),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+st),hsva:new RegExp("hsva"+ct),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 isValidCSSUnit(_e){return!!matchers.CSS_UNIT.exec(_e)}function stringInputToObject(_e){_e=_e.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var et=!1;if(names[_e])_e=names[_e],et=!0;else if(_e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var rt;return(rt=matchers.rgb.exec(_e))?{r:rt[1],g:rt[2],b:rt[3]}:(rt=matchers.rgba.exec(_e))?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=matchers.hsl.exec(_e))?{h:rt[1],s:rt[2],l:rt[3]}:(rt=matchers.hsla.exec(_e))?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=matchers.hsv.exec(_e))?{h:rt[1],s:rt[2],v:rt[3]}:(rt=matchers.hsva.exec(_e))?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=matchers.hex8.exec(_e))?{r:parseIntFromHex(rt[1]),g:parseIntFromHex(rt[2]),b:parseIntFromHex(rt[3]),a:convertHexToDecimal(rt[4]),format:et?"name":"hex8"}:(rt=matchers.hex6.exec(_e))?{r:parseIntFromHex(rt[1]),g:parseIntFromHex(rt[2]),b:parseIntFromHex(rt[3]),format:et?"name":"hex"}:(rt=matchers.hex4.exec(_e))?{r:parseIntFromHex(rt[1]+""+rt[1]),g:parseIntFromHex(rt[2]+""+rt[2]),b:parseIntFromHex(rt[3]+""+rt[3]),a:convertHexToDecimal(rt[4]+""+rt[4]),format:et?"name":"hex8"}:(rt=matchers.hex3.exec(_e))?{r:parseIntFromHex(rt[1]+""+rt[1]),g:parseIntFromHex(rt[2]+""+rt[2]),b:parseIntFromHex(rt[3]+""+rt[3]),format:et?"name":"hex"}:!1}function validateWCAG2Parms(_e){var et,rt;return _e=_e||{level:"AA",size:"small"},et=(_e.level||"AA").toUpperCase(),rt=(_e.size||"small").toLowerCase(),et!=="AA"&&et!=="AAA"&&(et="AA"),rt!=="small"&&rt!=="large"&&(rt="small"),{level:et,size:rt}}var simpleCheckForValidColor=function(et){var rt=["r","g","b","a","h","s","l","v"],st=0,ct=0;return each$1(rt,function(ut){if(et[ut]&&(st+=1,isNaN(et[ut])||(ct+=1),ut==="s"||ut==="l")){var ft=/^\d+%$/;ft.test(et[ut])&&(ct+=1)}}),st===ct?et:!1},toState=function(et,rt){var st=et.hex?tinycolor(et.hex):tinycolor(et),ct=st.toHsl(),ut=st.toHsv(),ft=st.toRgb(),gt=st.toHex();ct.s===0&&(ct.h=rt||0,ut.h=rt||0);var xt=gt==="000000"&&ft.a===0;return{hsl:ct,hex:xt?"transparent":"#".concat(gt),rgb:ft,hsv:ut,oldHue:et.h||rt||ct.h,source:et.source}},isValidHex=function(et){if(et==="transparent")return!0;var rt=String(et).charAt(0)==="#"?1:0;return et.length!==4+rt&&et.length<7+rt&&tinycolor(et).isValid()};function _typeof$8(_e){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$8(_e)}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _getPrototypeOf$3(_e){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$3(_e)}var ColorWrap=function(et){var rt=function(st){_inherits$3(ut,st);var ct=_createSuper$3(ut);function ut(ft){var gt;return _classCallCheck$3(this,ut),gt=ct.call(this),gt.handleChange=function(xt,$t){var _t=simpleCheckForValidColor(xt);if(_t){var wt=toState(xt,xt.h||gt.state.oldHue);gt.setState(wt),gt.props.onChangeComplete&>.debounce(gt.props.onChangeComplete,wt,$t),gt.props.onChange&>.props.onChange(wt,$t)}},gt.handleSwatchHover=function(xt,$t){var _t=simpleCheckForValidColor(xt);if(_t){var wt=toState(xt,xt.h||gt.state.oldHue);gt.props.onSwatchHover&>.props.onSwatchHover(wt,$t)}},gt.state=_objectSpread$7({},toState(ft.color,0)),gt.debounce=debounce$2(function(xt,$t,_t){xt($t,_t)},100),gt}return _createClass$3(ut,[{key:"render",value:function(){var gt={};return this.props.onSwatchHover&&(gt.onSwatchHover=this.handleSwatchHover),React$1.createElement(et,_extends$2({},this.props,this.state,{onChange:this.handleChange},gt))}}],[{key:"getDerivedStateFromProps",value:function(gt,xt){return _objectSpread$7({},toState(gt.color,xt.oldHue))}}]),ut}(reactExports.PureComponent||reactExports.Component);return rt.propTypes=_objectSpread$7({},et.propTypes),rt.defaultProps=_objectSpread$7(_objectSpread$7({},et.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),rt};function _typeof$7(_e){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$7(_e)}function _defineProperty$7(_e,et,rt){return et=_toPropertyKey$4(et),et in _e?Object.defineProperty(_e,et,{value:rt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=rt,_e}function _classCallCheck$2(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(_e,et){for(var rt=0;rt"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 _getPrototypeOf$2(_e){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$2(_e)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function(et){return VALID_KEY_CODES.indexOf(et)>-1},getNumberValue=function(et){return Number(String(et).replace(/%/g,""))},idCounter=1,EditableInput=function(_e){_inherits$2(rt,_e);var et=_createSuper$2(rt);function rt(st){var ct;return _classCallCheck$2(this,rt),ct=et.call(this),ct.handleBlur=function(){ct.state.blurValue&&ct.setState({value:ct.state.blurValue,blurValue:null})},ct.handleChange=function(ut){ct.setUpdatedValue(ut.target.value,ut)},ct.handleKeyDown=function(ut){var ft=getNumberValue(ut.target.value);if(!isNaN(ft)&&isValidKeyCode(ut.keyCode)){var gt=ct.getArrowOffset(),xt=ut.keyCode===UP_KEY_CODE?ft+gt:ft-gt;ct.setUpdatedValue(xt,ut)}},ct.handleDrag=function(ut){if(ct.props.dragLabel){var ft=Math.round(ct.props.value+ut.movementX);ft>=0&&ft<=ct.props.dragMax&&ct.props.onChange&&ct.props.onChange(ct.getValueObjectWithLabel(ft),ut)}},ct.handleMouseDown=function(ut){ct.props.dragLabel&&(ut.preventDefault(),ct.handleDrag(ut),window.addEventListener("mousemove",ct.handleDrag),window.addEventListener("mouseup",ct.handleMouseUp))},ct.handleMouseUp=function(){ct.unbindEventListeners()},ct.unbindEventListeners=function(){window.removeEventListener("mousemove",ct.handleDrag),window.removeEventListener("mouseup",ct.handleMouseUp)},ct.state={value:String(st.value).toUpperCase(),blurValue:String(st.value).toUpperCase()},ct.inputId="rc-editable-input-".concat(idCounter++),ct}return _createClass$2(rt,[{key:"componentDidUpdate",value:function(ct,ut){this.props.value!==this.state.value&&(ct.value!==this.props.value||ut.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(ct){return _defineProperty$7({},this.props.label,ct)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(ct,ut){var ft=this.props.label?this.getValueObjectWithLabel(ct):ct;this.props.onChange&&this.props.onChange(ft,ut),this.setState({value:ct})}},{key:"render",value:function(){var ct=this,ut=_default$2({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 React$1.createElement("div",{style:ut.wrap},React$1.createElement("input",{id:this.inputId,style:ut.input,ref:function(gt){return ct.input=gt},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?React$1.createElement("label",{htmlFor:this.inputId,style:ut.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),rt}(reactExports.PureComponent||reactExports.Component);function _typeof$6(_e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$6(_e)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _getPrototypeOf$1(_e){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$1(_e)}var handleFocus=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$1(ut,st);var ct=_createSuper$1(ut);function ut(){var ft;_classCallCheck$1(this,ut);for(var gt=arguments.length,xt=new Array(gt),$t=0;$t100&&(_t.a=100),_t.a/=100,rt==null||rt({h:ct==null?void 0:ct.h,s:ct==null?void 0:ct.s,l:ct==null?void 0:ct.l,a:_t.a,source:"rgb"},wt))};return React$1.createElement("div",{style:gt.fields,className:"flexbox-fix"},React$1.createElement("div",{style:gt.double},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"hex",value:ut==null?void 0:ut.replace("#",""),onChange:xt})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"r",value:st==null?void 0:st.r,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"g",value:st==null?void 0:st.g,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"b",value:st==null?void 0:st.b,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.alpha},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"a",value:Math.round(((st==null?void 0:st.a)||0)*100),onChange:xt,dragLabel:"true",dragMax:"100"})))};function _typeof$4(_e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$4(_e)}function ownKeys$5(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$5(_e){for(var et=1;et-1}function getColorPicker(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof _e>"u"||_e===!1)&&IsIt_Render_V5()?ColorPicker$2:ColorPicker}var FieldColorPicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.old,$t=reactExports.useContext(ConfigProvider$1.ConfigContext),_t=$t.getPrefixCls,wt=React$1.useMemo(function(){return getColorPicker(xt)},[xt]),Tt=_t("pro-field-color-picker"),Rt=reactExports.useMemo(function(){return xt?"":classNames(_defineProperty$c({},Tt,IsIt_Render_V5()))},[Tt,xt]);if(ct==="read"){var It=jsxRuntimeExports.jsx(wt,{value:st,mode:"read",ref:rt,className:Rt,open:!1});return ut?ut(st,_objectSpread2({mode:ct},gt),It):It}if(ct==="edit"||ct==="update"){var At=_objectSpread2({display:"table-cell"},gt.style),jt=jsxRuntimeExports.jsx(wt,_objectSpread2(_objectSpread2({ref:rt,presets:[DEFAULT_PRESETS]},gt),{},{style:At,className:Rt}));return ft?ft(st,_objectSpread2(_objectSpread2({mode:ct},gt),{},{style:At}),jt):jt}return null};const FieldColorPicker$1=React$1.forwardRef(FieldColorPicker);dayjs.extend(weekOfYear$1);var formatDate$2=function(et,rt){return et?typeof rt=="function"?rt(dayjs(et)):dayjs(et).format((Array.isArray(rt)?rt[0]:rt)||"YYYY-MM-DD"):"-"},FieldDatePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.format,ft=et.label,gt=et.light,xt=et.render,$t=et.renderFormItem,_t=et.plain,wt=et.showTime,Tt=et.fieldProps,Rt=et.picker,It=et.bordered,At=et.lightLabel,jt=useIntl$1(),Nt=reactExports.useState(!1),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];if(ct==="read"){var Wt=formatDate$2(st,Tt.format||ut);return xt?xt(st,_objectSpread2({mode:ct},Tt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Wt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Wt})}if(ct==="edit"||ct==="update"){var Vt,qt=Tt.disabled,Gt=Tt.value,Xt=Tt.placeholder,Zt=Xt===void 0?jt.getMessage("tableForm.selectPlaceholder","请选择"):Xt,lr=parseValueToDay(Gt);return gt?Vt=jsxRuntimeExports.jsx(FieldLabel,{label:ft,onClick:function(){var cr;Tt==null||(cr=Tt.onOpenChange)===null||cr===void 0||cr.call(Tt,!0),Ht(!0)},style:lr?{paddingInlineEnd:0}:void 0,disabled:qt,value:lr||Ft?jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({picker:Rt,showTime:wt,format:ut,ref:rt},Tt),{},{value:lr,onOpenChange:function(cr){var ur;Ht(cr),Tt==null||(ur=Tt.onOpenChange)===null||ur===void 0||ur.call(Tt,cr)},bordered:!1,open:Ft})):void 0,allowClear:!1,downIcon:lr||Ft?!1:void 0,bordered:It,ref:At}):Vt=jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({picker:Rt,showTime:wt,format:ut,placeholder:Zt,bordered:_t===void 0?!0:!_t,ref:rt},Tt),{},{value:lr})),$t?$t(st,_objectSpread2({mode:ct},Tt),Vt):Vt}return null};const FieldDatePicker$1=React$1.forwardRef(FieldDatePicker);var FieldDigit=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.placeholder,gt=et.renderFormItem,xt=et.fieldProps,$t=useIntl$1(),_t=ft||$t.getMessage("tableForm.inputPlaceholder","请输入"),wt=reactExports.useCallback(function(Nt){var kt=Nt??void 0;return!xt.stringMode&&typeof kt=="string"&&(kt=Number(kt)),typeof kt=="number"&&!isNil(kt)&&!isNil(xt.precision)&&(kt=Number(kt.toFixed(xt.precision))),kt},[xt]);if(ct==="read"){var Tt,Rt={};xt!=null&&xt.precision&&(Rt={minimumFractionDigits:Number(xt.precision),maximumFractionDigits:Number(xt.precision)});var It=new Intl.NumberFormat(void 0,_objectSpread2(_objectSpread2({},Rt),(xt==null?void 0:xt.intlProps)||{})).format(Number(st)),At=jsxRuntimeExports.jsx("span",{ref:rt,children:(xt==null||(Tt=xt.formatter)===null||Tt===void 0?void 0:Tt.call(xt,It))||It});return ut?ut(st,_objectSpread2({mode:ct},xt),At):At}if(ct==="edit"||ct==="update"){var jt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({ref:rt,min:0,placeholder:_t},omit$1(xt,["onChange","onBlur"])),{},{onChange:function(kt){var Ft;return xt==null||(Ft=xt.onChange)===null||Ft===void 0?void 0:Ft.call(xt,wt(kt))},onBlur:function(kt){var Ft;return xt==null||(Ft=xt.onBlur)===null||Ft===void 0?void 0:Ft.call(xt,wt(kt.target.value))}}));return gt?gt(st,_objectSpread2({mode:ct},xt),jt):jt}return null};const FieldDigit$1=React$1.forwardRef(FieldDigit);var FieldDigitRange=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.placeholder,gt=et.renderFormItem,xt=et.fieldProps,$t=et.separator,_t=$t===void 0?"~":$t,wt=et.separatorWidth,Tt=wt===void 0?30:wt,Rt=xt.value,It=xt.defaultValue,At=xt.onChange,jt=xt.id,Nt=useIntl$1(),kt=proTheme.useToken(),Ft=kt.token,Ht=useMergedState(function(){return It},{value:Rt,onChange:At}),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1];if(ct==="read"){var Gt=function(dr){var yr,$r=new Intl.NumberFormat(void 0,_objectSpread2({minimumSignificantDigits:2},(xt==null?void 0:xt.intlProps)||{})).format(Number(dr));return(xt==null||(yr=xt.formatter)===null||yr===void 0?void 0:yr.call(xt,$r))||$r},Xt=jsxRuntimeExports.jsxs("span",{ref:rt,children:[Gt(st[0])," ",_t," ",Gt(st[1])]});return ut?ut(st,_objectSpread2({mode:ct},xt),Xt):Xt}if(ct==="edit"||ct==="update"){var Zt=function(){if(Array.isArray(Vt)){var dr=_slicedToArray$3(Vt,2),yr=dr[0],$r=dr[1];typeof yr=="number"&&typeof $r=="number"&&yr>$r?qt([$r,yr]):yr===void 0&&$r===void 0&&qt(void 0)}},lr=function(dr,yr){var $r=_toConsumableArray$3(Vt||[]);$r[dr]=yr===null?void 0:yr,qt($r)},er=(xt==null?void 0:xt.placeholder)||ft||[Nt.getMessage("tableForm.inputPlaceholder","请输入"),Nt.getMessage("tableForm.inputPlaceholder","请输入")],cr=function(dr){return Array.isArray(er)?er[dr]:er},ur=Space$1.Compact||Input$3.Group,pr=Space$1.Compact?{}:{compact:!0},hr=jsxRuntimeExports.jsxs(ur,_objectSpread2(_objectSpread2({},pr),{},{onBlur:Zt,children:[jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({},xt),{},{placeholder:cr(0),id:jt??"".concat(jt,"-0"),style:{width:"calc((100% - ".concat(Tt,"px) / 2)")},value:Vt==null?void 0:Vt[0],defaultValue:It==null?void 0:It[0],onChange:function(dr){return lr(0,dr)}})),jsxRuntimeExports.jsx(Input$3,{style:{width:Tt,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:Ft==null?void 0:Ft.colorBgContainer},placeholder:_t,disabled:!0}),jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({},xt),{},{placeholder:cr(1),id:jt??"".concat(jt,"-1"),style:{width:"calc((100% - ".concat(Tt,"px) / 2)"),borderInlineStart:0},value:Vt==null?void 0:Vt[1],defaultValue:It==null?void 0:It[1],onChange:function(dr){return lr(1,dr)}}))]}));return gt?gt(st,_objectSpread2({mode:ct},xt),hr):hr}return null};const FieldDigitRange$1=React$1.forwardRef(FieldDigitRange);var relativeTime$3={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st,ct){rt=rt||{};var ut=st.prototype,ft={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 gt($t,_t,wt,Tt){return ut.fromToBase($t,_t,wt,Tt)}ct.en.relativeTime=ft,ut.fromToBase=function($t,_t,wt,Tt,Rt){for(var It,At,jt,Nt=wt.$locale().relativeTime||ft,kt=rt.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"}],Ft=kt.length,Ht=0;Ht0,Vt<=Wt.r||!Wt.r){Vt<=1&&Ht>0&&(Wt=kt[Ht-1]);var qt=Nt[Wt.l];Rt&&(Vt=Rt(""+Vt)),At=typeof qt=="string"?qt.replace("%d",Vt):qt(Vt,_t,Wt.l,jt);break}}if(_t)return At;var Gt=jt?Nt.future:Nt.past;return typeof Gt=="function"?Gt(At):Gt.replace("%s",At)},ut.to=function($t,_t){return gt($t,_t,this,!0)},ut.from=function($t,_t){return gt($t,_t,this)};var xt=function($t){return $t.$u?ct.utc():ct()};ut.toNow=function($t){return this.to(xt(this),$t)},ut.fromNow=function($t){return this.from(xt(this),$t)}}})})(relativeTime$3);var relativeTimeExports=relativeTime$3.exports;const relativeTime$2=getDefaultExportFromCjs(relativeTimeExports);dayjs.extend(relativeTime$2);var FieldFromNow=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.format,xt=et.fieldProps,$t=useIntl$1();if(ct==="read"){var _t=jsxRuntimeExports.jsx(Tooltip$1,{title:dayjs(st).format((xt==null?void 0:xt.format)||gt||"YYYY-MM-DD HH:mm:ss"),children:dayjs(st).fromNow()});return ut?ut(st,_objectSpread2({mode:ct},xt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_t})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_t})}if(ct==="edit"||ct==="update"){var wt=$t.getMessage("tableForm.selectPlaceholder","请选择"),Tt=parseValueToDay(xt.value),Rt=jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({ref:rt,placeholder:wt,showTime:!0},xt),{},{value:Tt}));return ft?ft(st,_objectSpread2({mode:ct},xt),Rt):Rt}return null};const FieldFromNow$1=React$1.forwardRef(FieldFromNow);var FieldImage=React$1.forwardRef(function(_e,et){var rt=_e.text,st=_e.mode,ct=_e.render,ut=_e.renderFormItem,ft=_e.fieldProps,gt=_e.placeholder,xt=_e.width,$t=useIntl$1(),_t=gt||$t.getMessage("tableForm.inputPlaceholder","请输入");if(st==="read"){var wt=jsxRuntimeExports.jsx(Image$2,_objectSpread2({ref:et,width:xt||32,src:rt},ft));return ct?ct(rt,_objectSpread2({mode:st},ft),wt):wt}if(st==="edit"||st==="update"){var Tt=jsxRuntimeExports.jsx(Input$3,_objectSpread2({ref:et,placeholder:_t},ft));return ut?ut(rt,_objectSpread2({mode:st},ft),Tt):Tt}return null});const FieldImage$1=FieldImage;var IndexColumn=function(et,rt){var st=et.border,ct=st===void 0?!1:st,ut=et.children,ft=reactExports.useContext(ConfigProvider$1.ConfigContext),gt=ft.getPrefixCls,xt=gt("pro-field-index-column"),$t=useStyle$i("IndexColumn",function(){return _defineProperty$c({},".".concat(xt),{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"}}})}),_t=$t.wrapSSR,wt=$t.hashId;return _t(jsxRuntimeExports.jsx("div",{ref:rt,className:classNames(xt,wt,_defineProperty$c(_defineProperty$c({},"".concat(xt,"-border"),ct),"top-three",ut>3)),children:ut}))};const FieldIndexColumn=React$1.forwardRef(IndexColumn);var _excluded$r=["contentRender","numberFormatOptions","numberPopoverRender","open"],_excluded2$8=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],defaultMoneyIntl=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),enMoneyIntl={style:"currency",currency:"USD"},ruMoneyIntl={style:"currency",currency:"RUB"},rsMoneyIntl={style:"currency",currency:"RSD"},msMoneyIntl={style:"currency",currency:"MYR"},ptMoneyIntl={style:"currency",currency:"BRL"},intlMap={default:defaultMoneyIntl,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":enMoneyIntl,"ru-RU":ruMoneyIntl,"ms-MY":msMoneyIntl,"sr-RS":rsMoneyIntl,"pt-BR":ptMoneyIntl},getTextByLocale=function(et,rt,st,ct){var ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",ft=rt==null?void 0:rt.toString().replaceAll(",","");if(typeof ft=="string"){var gt=Number(ft);if(Number.isNaN(gt))return ft;ft=gt}if(!ft&&ft!==0)return"";var xt=!1;try{xt=et!==!1&&Intl.NumberFormat.supportedLocalesOf([et.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var $t=new Intl.NumberFormat(xt&&et!==!1&&(et==null?void 0:et.replace("_","-"))||"zh-Hans-CN",_objectSpread2(_objectSpread2({},intlMap[et||"zh-Hans-CN"]||defaultMoneyIntl),{},{maximumFractionDigits:st},ct)),_t=$t.format(ft),wt=function(Nt){var kt=Nt.match(/\d+/);if(kt){var Ft=kt[0];return Nt.slice(Nt.indexOf(Ft))}else return Nt},Tt=wt(_t),Rt=_t||"",It=_slicedToArray$3(Rt,1),At=It[0];return["+","-"].includes(At)?"".concat(ut||"").concat(At).concat(Tt):"".concat(ut||"").concat(Tt)}catch{return ft}},DefaultPrecisionCont=2,InputNumberPopover=React$1.forwardRef(function(_e,et){var rt=_e.contentRender;_e.numberFormatOptions,_e.numberPopoverRender;var st=_e.open,ct=_objectWithoutProperties$2(_e,_excluded$r),ut=useMergedState(function(){return ct.defaultValue},{value:ct.value,onChange:ct.onChange}),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1],$t=rt==null?void 0:rt(_objectSpread2(_objectSpread2({},ct),{},{value:gt})),_t=openVisibleCompatible($t?st:!1);return jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({placement:"topLeft"},_t),{},{trigger:["focus","click"],content:$t,getPopupContainer:function(Tt){return(Tt==null?void 0:Tt.parentElement)||document.body},children:jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({ref:et},ct),{},{value:gt,onChange:xt}))}))}),FieldMoney=function(et,rt){var st,ct=et.text,ut=et.mode,ft=et.render,gt=et.renderFormItem,xt=et.fieldProps;et.proFieldKey,et.plain,et.valueEnum;var $t=et.placeholder,_t=et.locale,wt=et.customSymbol,Tt=wt===void 0?xt.customSymbol:wt,Rt=et.numberFormatOptions,It=Rt===void 0?xt==null?void 0:xt.numberFormatOptions:Rt,At=et.numberPopoverRender,jt=At===void 0?(xt==null?void 0:xt.numberPopoverRender)||!1:At,Nt=_objectWithoutProperties$2(et,_excluded2$8),kt=(st=xt==null?void 0:xt.precision)!==null&&st!==void 0?st:DefaultPrecisionCont,Ft=useIntl$1();_t&&intlMap$1[_t]&&(Ft=intlMap$1[_t]);var Ht=$t||Ft.getMessage("tableForm.inputPlaceholder","请输入"),Wt=reactExports.useMemo(function(){if(Tt)return Tt;if(!(Nt.moneySymbol===!1||xt.moneySymbol===!1))return Ft.getMessage("moneySymbol","¥")},[Tt,xt.moneySymbol,Ft,Nt.moneySymbol]),Vt=reactExports.useCallback(function(Xt){var Zt=new RegExp("\\B(?=(\\d{".concat(3+Math.max(kt-DefaultPrecisionCont,0),"})+(?!\\d))"),"g"),lr=String(Xt).split("."),er=_slicedToArray$3(lr,2),cr=er[0],ur=er[1],pr=cr.replace(Zt,","),hr="";return ur&&kt>0&&(hr=".".concat(ur.slice(0,kt===void 0?DefaultPrecisionCont:kt))),"".concat(pr).concat(hr)},[kt]);if(ut==="read"){var qt=jsxRuntimeExports.jsx("span",{ref:rt,children:getTextByLocale(_t||!1,ct,kt,It??xt.numberFormatOptions,Wt)});return ft?ft(ct,_objectSpread2({mode:ut},xt),qt):qt}if(ut==="edit"||ut==="update"){var Gt=jsxRuntimeExports.jsx(InputNumberPopover,_objectSpread2(_objectSpread2({contentRender:function(Zt){if(jt===!1||!Zt.value)return null;var lr=getTextByLocale(Wt||_t||!1,"".concat(Vt(Zt.value)),kt,_objectSpread2(_objectSpread2({},It),{},{notation:"compact"}),Wt);return typeof jt=="function"?jt==null?void 0:jt(Zt,lr):lr},ref:rt,precision:kt,formatter:function(Zt){return Zt&&Wt?"".concat(Wt," ").concat(Vt(Zt)):Zt==null?void 0:Zt.toString()},parser:function(Zt){return Wt&&Zt?Zt.replace(new RegExp("\\".concat(Wt,"\\s?|(,*)"),"g"),""):Zt},placeholder:Ht},omit$1(xt,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:xt.onBlur?function(Xt){var Zt,lr=Xt.target.value;Wt&&lr&&(lr=lr.replace(new RegExp("\\".concat(Wt,"\\s?|(,*)"),"g"),"")),(Zt=xt.onBlur)===null||Zt===void 0||Zt.call(xt,lr)}:void 0}));return gt?gt(ct,_objectSpread2({mode:ut},xt),Gt):Gt}return null};const FieldMoney$1=React$1.forwardRef(FieldMoney);var addArrayKeys=function(et){return et.map(function(rt,st){var ct;return React$1.isValidElement(rt)?React$1.cloneElement(rt,_objectSpread2(_objectSpread2({key:st},rt==null?void 0:rt.props),{},{style:_objectSpread2({},rt==null||(ct=rt.props)===null||ct===void 0?void 0:ct.style)})):jsxRuntimeExports.jsx(React$1.Fragment,{children:rt},st)})},FieldOptions=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.fieldProps,gt=reactExports.useContext(ConfigProvider$1.ConfigContext),xt=gt.getPrefixCls,$t=xt("pro-field-option"),_t=proTheme.useToken(),wt=_t.token;if(reactExports.useImperativeHandle(rt,function(){return{}}),ut){var Tt=ut(st,_objectSpread2({mode:ct},ft),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));return!Tt||(Tt==null?void 0:Tt.length)<1||!Array.isArray(Tt)?null:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:wt.margin,alignItems:"center"},className:$t,children:addArrayKeys(Tt)})}return!st||!Array.isArray(st)?React$1.isValidElement(st)?st:null:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:wt.margin,alignItems:"center"},className:$t,children:addArrayKeys(st)})};const FieldOptions$1=React$1.forwardRef(FieldOptions);var _excluded$q=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],FieldPassword=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;et.proFieldKey;var xt=_objectWithoutProperties$2(et,_excluded$q),$t=useIntl$1(),_t=useMergedState(function(){return xt.open||xt.visible||!1},{value:xt.open||xt.visible,onChange:xt.onOpenChange||xt.onVisible}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];if(ct==="read"){var It=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"-"});return st&&(It=jsxRuntimeExports.jsxs(Space$1,{children:[jsxRuntimeExports.jsx("span",{ref:rt,children:Tt?st:"********"}),jsxRuntimeExports.jsx("a",{onClick:function(){return Rt(!Tt)},children:Tt?jsxRuntimeExports.jsx(EyeOutlined$1,{}):jsxRuntimeExports.jsx(EyeInvisibleOutlined$1,{})})]})),ut?ut(st,_objectSpread2({mode:ct},gt),It):It}if(ct==="edit"||ct==="update"){var At=jsxRuntimeExports.jsx(Input$3.Password,_objectSpread2({placeholder:$t.getMessage("tableForm.inputPlaceholder","请输入"),ref:rt},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),At):At}return null};const FieldPassword$1=React$1.forwardRef(FieldPassword);var NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,objectProto=Object.prototype,objectToString=objectProto.toString;function isObject$3(_e){var et=typeof _e;return!!_e&&(et=="object"||et=="function")}function isObjectLike(_e){return!!_e&&typeof _e=="object"}function isSymbol(_e){return typeof _e=="symbol"||isObjectLike(_e)&&objectToString.call(_e)==symbolTag}function toNumber(_e){if(typeof _e=="number")return _e;if(isSymbol(_e))return NAN;if(isObject$3(_e)){var et=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=isObject$3(et)?et+"":et}if(typeof _e!="string")return _e===0?_e:+_e;_e=_e.replace(reTrim,"");var rt=reIsBinary.test(_e);return rt||reIsOctal.test(_e)?freeParseInt(_e.slice(2),rt?2:8):reIsBadHex.test(_e)?NAN:+_e}var lodash_tonumber=toNumber;const toNumber$1=getDefaultExportFromCjs(lodash_tonumber);function getSymbolByRealValue(_e){return _e===0?null:_e>0?"+":"-"}function getColorByRealValue(_e){return _e===0?"#595959":_e>0?"#ff4d4f":"#52c41a"}function getRealTextWithPrecision(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return et>=0?_e==null?void 0:_e.toFixed(et):_e}var FieldPercent=function(et,rt){var st=et.text,ct=et.prefix,ut=et.precision,ft=et.suffix,gt=ft===void 0?"%":ft,xt=et.mode,$t=et.showColor,_t=$t===void 0?!1:$t,wt=et.render,Tt=et.renderFormItem,Rt=et.fieldProps,It=et.placeholder,At=et.showSymbol,jt=useIntl$1(),Nt=It||jt.getMessage("tableForm.inputPlaceholder","请输入"),kt=reactExports.useMemo(function(){return typeof st=="string"&&st.includes("%")?toNumber$1(st.replace("%","")):toNumber$1(st)},[st]),Ft=reactExports.useMemo(function(){return typeof At=="function"?At==null?void 0:At(st):At},[At,st]);if(xt==="read"){var Ht=_t?{color:getColorByRealValue(kt)}:{},Wt=jsxRuntimeExports.jsxs("span",{style:Ht,ref:rt,children:[ct&&jsxRuntimeExports.jsx("span",{children:ct}),Ft&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[getSymbolByRealValue(kt)," "]}),getRealTextWithPrecision(Math.abs(kt),ut),gt&>]});return wt?wt(st,_objectSpread2(_objectSpread2({mode:xt},Rt),{},{prefix:ct,precision:ut,showSymbol:Ft,suffix:gt}),Wt):Wt}if(xt==="edit"||xt==="update"){var Vt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,formatter:function(Gt){return Gt&&ct?"".concat(ct," ").concat(Gt).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):Gt},parser:function(Gt){return Gt?Gt.replace(/.*\s|,/g,""):""},placeholder:Nt},Rt));return Tt?Tt(st,_objectSpread2({mode:xt},Rt),Vt):Vt}return null};const FieldPercent$1=React$1.forwardRef(FieldPercent);function getProgressStatus(_e){return _e===100?"success":_e<0?"exception":_e<100?"active":"normal"}var FieldProgress=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.plain,gt=et.renderFormItem,xt=et.fieldProps,$t=et.placeholder,_t=useIntl$1(),wt=$t||_t.getMessage("tableForm.inputPlaceholder","请输入"),Tt=reactExports.useMemo(function(){return typeof st=="string"&&st.includes("%")?toNumber$1(st.replace("%","")):toNumber$1(st)},[st]);if(ct==="read"){var Rt=jsxRuntimeExports.jsx(Progress$1,_objectSpread2({ref:rt,size:"small",style:{minWidth:100,maxWidth:320},percent:Tt,steps:ft?10:void 0,status:getProgressStatus(Tt)},xt));return ut?ut(Tt,_objectSpread2({mode:ct},xt),Rt):Rt}if(ct==="edit"||ct==="update"){var It=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,placeholder:wt},xt));return gt?gt(st,_objectSpread2({mode:ct},xt),It):It}return null};const FieldProgress$1=React$1.forwardRef(FieldProgress);var _excluded$p=["radioType","renderFormItem","mode","render"],FieldRadio=function(et,rt){var st,ct,ut=et.radioType,ft=et.renderFormItem,gt=et.mode,xt=et.render,$t=_objectWithoutProperties$2(et,_excluded$p),_t=reactExports.useContext(ConfigProvider$1.ConfigContext),wt=_t.getPrefixCls,Tt=wt("pro-field-radio"),Rt=useFieldFetchData($t),It=_slicedToArray$3(Rt,3),At=It[0],jt=It[1],Nt=It[2],kt=reactExports.useRef(),Ft=(st=Form.Item)===null||st===void 0||(ct=st.useStatus)===null||ct===void 0?void 0:ct.call(st);reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},kt.current||{}),{},{fetchData:function(ur){return Nt(ur)}})},[Nt]);var Ht=useStyle$i("FieldRadioRadio",function(cr){return _defineProperty$c(_defineProperty$c(_defineProperty$c({},".".concat(Tt,"-error"),{span:{color:cr.colorError}}),".".concat(Tt,"-warning"),{span:{color:cr.colorWarning}}),".".concat(Tt,"-vertical"),_defineProperty$c({},"".concat(cr.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),Wt=Ht.wrapSSR,Vt=Ht.hashId;if(At)return jsxRuntimeExports.jsx(Spin$1,{size:"small"});if(gt==="read"){var qt=jt!=null&&jt.length?jt==null?void 0:jt.reduce(function(cr,ur){var pr;return _objectSpread2(_objectSpread2({},cr),{},_defineProperty$c({},(pr=ur.value)!==null&&pr!==void 0?pr:"",ur.label))},{}):void 0,Gt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:proFieldParsingText($t.text,objectToMap($t.valueEnum||qt))});if(xt){var Xt;return(Xt=xt($t.text,_objectSpread2({mode:gt},$t.fieldProps),Gt))!==null&&Xt!==void 0?Xt:null}return Gt}if(gt==="edit"){var Zt,lr=Wt(jsxRuntimeExports.jsx(Radio$2.Group,_objectSpread2(_objectSpread2({ref:kt,optionType:ut},$t.fieldProps),{},{className:classNames((Zt=$t.fieldProps)===null||Zt===void 0?void 0:Zt.className,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-error"),(Ft==null?void 0:Ft.status)==="error"),"".concat(Tt,"-warning"),(Ft==null?void 0:Ft.status)==="warning"),Vt,"".concat(Tt,"-").concat($t.fieldProps.layout||"horizontal")),options:jt})));if(ft){var er;return(er=ft($t.text,_objectSpread2(_objectSpread2({mode:gt},$t.fieldProps),{},{options:jt,loading:At}),lr))!==null&&er!==void 0?er:null}return lr}return null};const FieldRadio$1=React$1.forwardRef(FieldRadio);var FieldRangePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.light,ft=et.label,gt=et.format,xt=et.render,$t=et.picker,_t=et.renderFormItem,wt=et.plain,Tt=et.showTime,Rt=et.lightLabel,It=et.bordered,At=et.fieldProps,jt=useIntl$1(),Nt=Array.isArray(st)?st:[],kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=React$1.useState(!1),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Gt=Vt[1],Xt=reactExports.useCallback(function(hr){if(typeof(At==null?void 0:At.format)=="function"){var fr;return At==null||(fr=At.format)===null||fr===void 0?void 0:fr.call(At,hr)}return(At==null?void 0:At.format)||gt||"YYYY-MM-DD"},[At,gt]),Zt=Ft?dayjs(Ft).format(Xt(dayjs(Ft))):"",lr=Ht?dayjs(Ht).format(Xt(dayjs(Ht))):"";if(ct==="read"){var er=jsxRuntimeExports.jsxs("div",{ref:rt,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[jsxRuntimeExports.jsx("div",{children:Zt||"-"}),jsxRuntimeExports.jsx("div",{children:lr||"-"})]});return xt?xt(st,_objectSpread2({mode:ct},At),jsxRuntimeExports.jsx("span",{children:er})):er}if(ct==="edit"||ct==="update"){var cr=parseValueToDay(At.value),ur;if(ut){var pr;ur=jsxRuntimeExports.jsx(FieldLabel,{label:ft,onClick:function(){var fr;At==null||(fr=At.onOpenChange)===null||fr===void 0||fr.call(At,!0),Gt(!0)},style:cr?{paddingInlineEnd:0}:void 0,disabled:At.disabled,value:cr||qt?jsxRuntimeExports.jsx(DatePicker$2.RangePicker,_objectSpread2(_objectSpread2({picker:$t,showTime:Tt,format:gt,bordered:!1},At),{},{placeholder:(pr=At.placeholder)!==null&&pr!==void 0?pr:[jt.getMessage("tableForm.selectPlaceholder","请选择"),jt.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var fr;Gt(!1),At==null||(fr=At.onClear)===null||fr===void 0||fr.call(At)},value:cr,onOpenChange:function(fr){var dr;cr&&Gt(fr),At==null||(dr=At.onOpenChange)===null||dr===void 0||dr.call(At,fr)}})):null,allowClear:!1,bordered:It,ref:Rt,downIcon:cr||qt?!1:void 0})}else ur=jsxRuntimeExports.jsx(DatePicker$2.RangePicker,_objectSpread2(_objectSpread2({ref:rt,format:gt,showTime:Tt,placeholder:[jt.getMessage("tableForm.selectPlaceholder","请选择"),jt.getMessage("tableForm.selectPlaceholder","请选择")],bordered:wt===void 0},At),{},{value:cr}));return _t?_t(st,_objectSpread2({mode:ct},At),ur):ur}return null};const FieldRangePicker$1=React$1.forwardRef(FieldRangePicker);var FieldRate=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;if(ct==="read"){var xt=jsxRuntimeExports.jsx(Rate$1,_objectSpread2(_objectSpread2({allowHalf:!0,disabled:!0,ref:rt},gt),{},{value:st}));return ut?ut(st,_objectSpread2({mode:ct},gt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):xt}if(ct==="edit"||ct==="update"){var $t=jsxRuntimeExports.jsx(Rate$1,_objectSpread2({allowHalf:!0,ref:rt},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),$t):$t}return null};const FieldRate$1=React$1.forwardRef(FieldRate);function formatSecond(_e){var et="",rt=Math.floor(_e/86400),st=Math.floor(_e/3600%24),ct=Math.floor(_e/60%60),ut=Math.floor(_e%60);return et="".concat(ut,"秒"),ct>0&&(et="".concat(ct,"分钟").concat(et)),st>0&&(et="".concat(st,"小时").concat(et)),rt>0&&(et="".concat(rt,"天").concat(et)),et}var Second=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.placeholder,$t=useIntl$1(),_t=xt||$t.getMessage("tableForm.inputPlaceholder","请输入");if(ct==="read"){var wt=formatSecond(Number(st)),Tt=jsxRuntimeExports.jsx("span",{ref:rt,children:wt});return ut?ut(st,_objectSpread2({mode:ct},gt),Tt):Tt}if(ct==="edit"||ct==="update"){var Rt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,min:0,style:{width:"100%"},placeholder:_t},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),Rt):Rt}return null};const FieldSecond=React$1.forwardRef(Second);var _excluded$o=["mode","render","renderFormItem","fieldProps","emptyText"],FieldSegmented=function(et,rt){var st=et.mode,ct=et.render,ut=et.renderFormItem,ft=et.fieldProps,gt=et.emptyText,xt=gt===void 0?"-":gt,$t=_objectWithoutProperties$2(et,_excluded$o),_t=reactExports.useRef(),wt=useFieldFetchData(et),Tt=_slicedToArray$3(wt,3),Rt=Tt[0],It=Tt[1],At=Tt[2];if(reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},_t.current||{}),{},{fetchData:function(Wt){return At(Wt)}})},[At]),Rt)return jsxRuntimeExports.jsx(Spin$1,{size:"small"});if(st==="read"){var jt=It!=null&&It.length?It==null?void 0:It.reduce(function(Ht,Wt){var Vt;return _objectSpread2(_objectSpread2({},Ht),{},_defineProperty$c({},(Vt=Wt.value)!==null&&Vt!==void 0?Vt:"",Wt.label))},{}):void 0,Nt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:proFieldParsingText($t.text,objectToMap($t.valueEnum||jt))});if(ct){var kt;return(kt=ct($t.text,_objectSpread2({mode:st},ft),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nt})))!==null&&kt!==void 0?kt:xt}return Nt}if(st==="edit"||st==="update"){var Ft=jsxRuntimeExports.jsx(Segmented$1,_objectSpread2(_objectSpread2({ref:_t},omit$1(ft||{},["allowClear"])),{},{options:It}));return ut?ut($t.text,_objectSpread2(_objectSpread2({mode:st},ft),{},{options:It,loading:Rt}),Ft):Ft}return null};const FieldSegmented$1=React$1.forwardRef(FieldSegmented);var FieldSlider=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;if(ct==="read"){var xt=st;return ut?ut(st,_objectSpread2({mode:ct},gt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})}if(ct==="edit"||ct==="update"){var $t=jsxRuntimeExports.jsx(Slider$1,_objectSpread2(_objectSpread2({ref:rt},gt),{},{style:_objectSpread2({minWidth:120},gt==null?void 0:gt.style)}));return ft?ft(st,_objectSpread2({mode:ct},gt),$t):$t}return null};const FieldSlider$1=React$1.forwardRef(FieldSlider);var FieldSwitch=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.light,gt=et.label,xt=et.renderFormItem,$t=et.fieldProps,_t=useIntl$1(),wt=reactExports.useMemo(function(){var jt,Nt;return st==null||"".concat(st).length<1?"-":st?(jt=$t==null?void 0:$t.checkedChildren)!==null&&jt!==void 0?jt:_t.getMessage("switch.open","打开"):(Nt=$t==null?void 0:$t.unCheckedChildren)!==null&&Nt!==void 0?Nt:_t.getMessage("switch.close","关闭")},[$t==null?void 0:$t.checkedChildren,$t==null?void 0:$t.unCheckedChildren,st]);if(ct==="read")return ut?ut(st,_objectSpread2({mode:ct},$t),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:wt})):wt??"-";if(ct==="edit"||ct==="update"){var Tt,Rt=jsxRuntimeExports.jsx(Switch$1,_objectSpread2(_objectSpread2({ref:rt,size:ft?"small":void 0},omit$1($t,["value"])),{},{checked:(Tt=$t==null?void 0:$t.checked)!==null&&Tt!==void 0?Tt:$t==null?void 0:$t.value}));if(ft){var It=$t.disabled,At=$t.bordered;return jsxRuntimeExports.jsx(FieldLabel,{label:gt,disabled:It,bordered:At,downIcon:!1,value:jsxRuntimeExports.jsx("div",{style:{paddingLeft:8},children:Rt}),allowClear:!1})}return xt?xt(st,_objectSpread2({mode:ct},$t),Rt):Rt}return null};const FieldSwitch$1=React$1.forwardRef(FieldSwitch);var FieldText=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.emptyText,$t=xt===void 0?"-":xt,_t=gt||{},wt=_t.autoFocus,Tt=_t.prefix,Rt=Tt===void 0?"":Tt,It=_t.suffix,At=It===void 0?"":It,jt=useIntl$1(),Nt=reactExports.useRef();if(reactExports.useImperativeHandle(rt,function(){return Nt.current},[]),reactExports.useEffect(function(){if(wt){var Vt;(Vt=Nt.current)===null||Vt===void 0||Vt.focus()}},[wt]),ct==="read"){var kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt,st??$t,At]});if(ut){var Ft;return(Ft=ut(st,_objectSpread2({mode:ct},gt),kt))!==null&&Ft!==void 0?Ft:$t}return kt}if(ct==="edit"||ct==="update"){var Ht=jt.getMessage("tableForm.inputPlaceholder","请输入"),Wt=jsxRuntimeExports.jsx(Input$3,_objectSpread2({ref:Nt,placeholder:Ht,allowClear:!0},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),Wt):Wt}return null};const FieldText$1=React$1.forwardRef(FieldText);var FieldTextAreaReadonly=function(et,rt){var st=et.text,ct=reactExports.useContext(ConfigProvider$1.ConfigContext),ut=ct.getPrefixCls,ft=ut("pro-field-readonly"),gt="".concat(ft,"-textarea"),xt=useStyle$i("TextArea",function(){return _defineProperty$c({},".".concat(gt),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),$t=xt.wrapSSR,_t=xt.hashId;return $t(jsxRuntimeExports.jsx("span",{ref:rt,className:classNames(_t,ft,gt),style:{},children:st??"-"}))};const FieldTextAreaReadonly$1=React$1.forwardRef(FieldTextAreaReadonly);var FieldTextArea=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=useIntl$1();if(ct==="read"){var $t=jsxRuntimeExports.jsx(FieldTextAreaReadonly$1,_objectSpread2(_objectSpread2({},et),{},{ref:rt}));return ut?ut(st,_objectSpread2({mode:ct},gt),$t):$t}if(ct==="edit"||ct==="update"){var _t=jsxRuntimeExports.jsx(Input$3.TextArea,_objectSpread2({ref:rt,rows:3,onKeyPress:function(Tt){Tt.key==="Enter"&&Tt.stopPropagation()},placeholder:xt.getMessage("tableForm.inputPlaceholder","请输入")},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),_t):_t}return null};const FieldTextArea$1=React$1.forwardRef(FieldTextArea);var FieldTimePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.light,ft=et.label,gt=et.format,xt=et.render,$t=et.renderFormItem,_t=et.plain,wt=et.fieldProps,Tt=et.lightLabel,Rt=reactExports.useState(!1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=useIntl$1(),kt=(wt==null?void 0:wt.format)||gt||"HH:mm:ss",Ft=dayjs.isDayjs(st)||typeof st=="number";if(ct==="read"){var Ht=jsxRuntimeExports.jsx("span",{ref:rt,children:st?dayjs(st,Ft?void 0:kt).format(kt):"-"});return xt?xt(st,_objectSpread2({mode:ct},wt),jsxRuntimeExports.jsx("span",{children:Ht})):Ht}if(ct==="edit"||ct==="update"){var Wt,Vt=wt.disabled,qt=wt.value,Gt=parseValueToDay(qt,kt);if(ut){var Xt;Wt=jsxRuntimeExports.jsx(FieldLabel,{onClick:function(){var lr;wt==null||(lr=wt.onOpenChange)===null||lr===void 0||lr.call(wt,!0),jt(!0)},style:Gt?{paddingInlineEnd:0}:void 0,label:ft,disabled:Vt,value:Gt||At?jsxRuntimeExports.jsx(TimePicker$2,_objectSpread2(_objectSpread2({bordered:!1,format:gt,ref:rt},wt),{},{placeholder:(Xt=wt.placeholder)!==null&&Xt!==void 0?Xt:Nt.getMessage("tableForm.selectPlaceholder","请选择"),value:Gt,onOpenChange:function(lr){var er;jt(lr),wt==null||(er=wt.onOpenChange)===null||er===void 0||er.call(wt,lr)},open:At})):null,downIcon:Gt||At?!1:void 0,allowClear:!1,ref:Tt})}else Wt=jsxRuntimeExports.jsx(DatePicker$2.TimePicker,_objectSpread2(_objectSpread2({ref:rt,format:gt,bordered:_t===void 0?!0:!_t},wt),{},{value:Gt}));return $t?$t(st,_objectSpread2({mode:ct},wt),Wt):Wt}return null},FieldTimeRangePickerComponents=function(et,rt){var st=et.text,ct=et.light,ut=et.label,ft=et.mode,gt=et.lightLabel,xt=et.format,$t=et.render,_t=et.renderFormItem,wt=et.plain,Tt=et.fieldProps,Rt=useIntl$1(),It=reactExports.useState(!1),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt=(Tt==null?void 0:Tt.format)||xt||"HH:mm:ss",Ft=Array.isArray(st)?st:[],Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=dayjs.isDayjs(Wt)||typeof Wt=="number",Gt=dayjs.isDayjs(Vt)||typeof Vt=="number",Xt=Wt?dayjs(Wt,qt?void 0:kt).format(kt):"",Zt=Vt?dayjs(Vt,Gt?void 0:kt).format(kt):"";if(ft==="read"){var lr=jsxRuntimeExports.jsxs("div",{ref:rt,children:[jsxRuntimeExports.jsx("div",{children:Xt||"-"}),jsxRuntimeExports.jsx("div",{children:Zt||"-"})]});return $t?$t(st,_objectSpread2({mode:ft},Tt),jsxRuntimeExports.jsx("span",{children:lr})):lr}if(ft==="edit"||ft==="update"){var er=parseValueToDay(Tt.value,kt),cr;if(ct){var ur=Tt.disabled,pr=Tt.placeholder,hr=pr===void 0?[Rt.getMessage("tableForm.selectPlaceholder","请选择"),Rt.getMessage("tableForm.selectPlaceholder","请选择")]:pr;cr=jsxRuntimeExports.jsx(FieldLabel,{onClick:function(){var dr;Tt==null||(dr=Tt.onOpenChange)===null||dr===void 0||dr.call(Tt,!0),Nt(!0)},style:er?{paddingInlineEnd:0}:void 0,label:ut,disabled:ur,placeholder:hr,value:er||jt?jsxRuntimeExports.jsx(TimePicker$2.RangePicker,_objectSpread2(_objectSpread2({bordered:!1,format:xt,ref:rt},Tt),{},{placeholder:hr,value:er,onOpenChange:function(dr){var yr;Nt(dr),Tt==null||(yr=Tt.onOpenChange)===null||yr===void 0||yr.call(Tt,dr)},open:jt})):null,downIcon:er||jt?!1:void 0,allowClear:!1,ref:gt})}else cr=jsxRuntimeExports.jsx(TimePicker$2.RangePicker,_objectSpread2(_objectSpread2({ref:rt,format:xt,bordered:wt===void 0?!0:!wt},Tt),{},{value:er}));return _t?_t(st,_objectSpread2({mode:ft},Tt),cr):cr}return null},FieldTimeRangePicker=React$1.forwardRef(FieldTimeRangePickerComponents);const FieldTimePicker$1=React$1.forwardRef(FieldTimePicker);var _excluded$n=["radioType","renderFormItem","mode","light","label","render"],_excluded2$7=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],FieldTreeSelect=function(et,rt){et.radioType;var st=et.renderFormItem,ct=et.mode,ut=et.light,ft=et.label,gt=et.render,xt=_objectWithoutProperties$2(et,_excluded$n),$t=reactExports.useContext(ConfigProvider$1.ConfigContext),_t=$t.getPrefixCls,wt=_t("pro-field-tree-select"),Tt=reactExports.useRef(null),Rt=reactExports.useState(!1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=xt.fieldProps,kt=Nt.onSearch,Ft=Nt.onClear,Ht=Nt.onChange,Wt=Nt.onBlur,Vt=Nt.showSearch,qt=Nt.autoClearSearchValue;Nt.treeData;var Gt=Nt.fetchDataOnSearch,Xt=Nt.searchValue,Zt=_objectWithoutProperties$2(Nt,_excluded2$7),lr=useIntl$1(),er=useFieldFetchData(_objectSpread2(_objectSpread2({},xt),{},{defaultKeyWords:Xt})),cr=_slicedToArray$3(er,3),ur=cr[0],pr=cr[1],hr=cr[2],fr=useMergedState(void 0,{onChange:kt,value:Xt}),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1];reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},Tt.current||{}),{},{fetchData:function(Fr){return hr(Fr)}})});var Er=reactExports.useMemo(function(){if(ct==="read"){var kr=(Zt==null?void 0:Zt.fieldNames)||{},Fr=kr.value,wr=Fr===void 0?"value":Fr,Br=kr.label,Dr=Br===void 0?"label":Br,Xr=kr.children,Kr=Xr===void 0?"children":Xr,zr=new Map,qr=function pn(Qr){if(!(Qr!=null&&Qr.length))return zr;for(var Zr=Qr.length,vn=0;vn4&&(Rt+=7),Tt.add(Rt,rt));return It.diff(At,"week")+1},gt.isoWeekday=function($t){return this.$utils().u($t)?this.day()||7:this.day(this.day()%7?$t:$t-7)};var xt=gt.startOf;gt.startOf=function($t,_t){var wt=this.$utils(),Tt=!!wt.u(_t)||_t;return wt.p($t)==="isoweek"?Tt?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):xt.bind(this)($t,_t)}}})})(isoWeek$1);var isoWeekExports=isoWeek$1.exports;const isoWeek=getDefaultExportFromCjs(isoWeekExports);var _excluded$m=["fieldProps"],_excluded2$6=["fieldProps"],_excluded3$2=["fieldProps"],_excluded4$1=["fieldProps"],_excluded5=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],_excluded6=["placeholder"];dayjs.extend(localeData$1);dayjs.extend(advancedFormat);dayjs.extend(isoWeek);dayjs.extend(weekOfYear$1);dayjs.extend(weekday);var defaultRenderTextByObject=function(et,rt,st){var ct=pickProProps(st.fieldProps);return rt.type==="progress"?jsxRuntimeExports.jsx(FieldProgress$1,_objectSpread2(_objectSpread2({},st),{},{text:et,fieldProps:_objectSpread2({status:rt.status?rt.status:void 0},ct)})):rt.type==="money"?jsxRuntimeExports.jsx(FieldMoney$1,_objectSpread2(_objectSpread2({locale:rt.locale},st),{},{fieldProps:ct,text:et,moneySymbol:rt.moneySymbol})):rt.type==="percent"?jsxRuntimeExports.jsx(FieldPercent$1,_objectSpread2(_objectSpread2({},st),{},{text:et,showSymbol:rt.showSymbol,precision:rt.precision,fieldProps:ct,showColor:rt.showColor})):rt.type==="image"?jsxRuntimeExports.jsx(FieldImage$1,_objectSpread2(_objectSpread2({},st),{},{text:et,width:rt.width})):et},defaultRenderText=function(et,rt,st,ct){var ut=st.mode,ft=ut===void 0?"read":ut,gt=st.emptyText,xt=gt===void 0?"-":gt;if(xt!==!1&&ft==="read"&&rt!=="option"&&rt!=="switch"&&typeof et!="boolean"&&typeof et!="number"&&!et){var $t=st.fieldProps,_t=st.render;return _t?_t(et,_objectSpread2({mode:ft},$t),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})}if(delete st.emptyText,_typeof$e(rt)==="object")return defaultRenderTextByObject(et,rt,st);var wt=ct&&ct[rt];if(wt){if(delete st.ref,ft==="read"){var Tt;return(Tt=wt.render)===null||Tt===void 0?void 0:Tt.call(wt,et,_objectSpread2(_objectSpread2({text:et},st),{},{mode:ft||"read"}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et}))}if(ft==="update"||ft==="edit"){var Rt;return(Rt=wt.renderFormItem)===null||Rt===void 0?void 0:Rt.call(wt,et,_objectSpread2({text:et},st),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et}))}}if(rt==="money")return jsxRuntimeExports.jsx(FieldMoney$1,_objectSpread2(_objectSpread2({},st),{},{text:et}));if(rt==="date")return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD"},st))});if(rt==="dateWeek")return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-wo",picker:"week"},st))});if(rt==="dateWeekRange"){var It=st.fieldProps,At=_objectWithoutProperties$2(st,_excluded$m);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-W",showTime:!0,fieldProps:_objectSpread2({picker:"week"},It)},At))})}if(rt==="dateMonthRange"){var jt=st.fieldProps,Nt=_objectWithoutProperties$2(st,_excluded2$6);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM",showTime:!0,fieldProps:_objectSpread2({picker:"month"},jt)},Nt))})}if(rt==="dateQuarterRange"){var kt=st.fieldProps,Ft=_objectWithoutProperties$2(st,_excluded3$2);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-Q",showTime:!0,fieldProps:_objectSpread2({picker:"quarter"},kt)},Ft))})}if(rt==="dateYearRange"){var Ht=st.fieldProps,Wt=_objectWithoutProperties$2(st,_excluded4$1);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY",showTime:!0,fieldProps:_objectSpread2({picker:"year"},Ht)},Wt))})}return rt==="dateMonth"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM",picker:"month"},st))}):rt==="dateQuarter"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-[Q]Q",picker:"quarter"},st))}):rt==="dateYear"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY",picker:"year"},st))}):rt==="dateRange"?jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD"},st)):rt==="dateTime"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},st))}):rt==="dateTimeRange"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},st))}):rt==="time"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldTimePicker$1,_objectSpread2({text:et,format:"HH:mm:ss"},st))}):rt==="timeRange"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldTimeRangePicker,_objectSpread2({text:et,format:"HH:mm:ss"},st))}):rt==="fromNow"?jsxRuntimeExports.jsx(FieldFromNow$1,_objectSpread2({text:et},st)):rt==="index"?jsxRuntimeExports.jsx(FieldIndexColumn,{children:et+1}):rt==="indexBorder"?jsxRuntimeExports.jsx(FieldIndexColumn,{border:!0,children:et+1}):rt==="progress"?jsxRuntimeExports.jsx(FieldProgress$1,_objectSpread2(_objectSpread2({},st),{},{text:et})):rt==="percent"?jsxRuntimeExports.jsx(FieldPercent$1,_objectSpread2({text:et},st)):rt==="avatar"&&typeof et=="string"&&st.mode==="read"?jsxRuntimeExports.jsx(Avatar$2,{src:et,size:22,shape:"circle"}):rt==="code"?jsxRuntimeExports.jsx(FieldCode$1,_objectSpread2({text:et},st)):rt==="jsonCode"?jsxRuntimeExports.jsx(FieldCode$1,_objectSpread2({text:et,language:"json"},st)):rt==="textarea"?jsxRuntimeExports.jsx(FieldTextArea$1,_objectSpread2({text:et},st)):rt==="digit"?jsxRuntimeExports.jsx(FieldDigit$1,_objectSpread2({text:et},st)):rt==="digitRange"?jsxRuntimeExports.jsx(FieldDigitRange$1,_objectSpread2({text:et},st)):rt==="second"?jsxRuntimeExports.jsx(FieldSecond,_objectSpread2({text:et},st)):rt==="select"||rt==="text"&&(st.valueEnum||st.request)?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldSelect$1,_objectSpread2({text:et},st))}):rt==="checkbox"?jsxRuntimeExports.jsx(FieldCheckbox$1,_objectSpread2({text:et},st)):rt==="radio"?jsxRuntimeExports.jsx(FieldRadio$1,_objectSpread2({text:et},st)):rt==="radioButton"?jsxRuntimeExports.jsx(FieldRadio$1,_objectSpread2({radioType:"button",text:et},st)):rt==="rate"?jsxRuntimeExports.jsx(FieldRate$1,_objectSpread2({text:et},st)):rt==="slider"?jsxRuntimeExports.jsx(FieldSlider$1,_objectSpread2({text:et},st)):rt==="switch"?jsxRuntimeExports.jsx(FieldSwitch$1,_objectSpread2({text:et},st)):rt==="option"?jsxRuntimeExports.jsx(FieldOptions$1,_objectSpread2({text:et},st)):rt==="password"?jsxRuntimeExports.jsx(FieldPassword$1,_objectSpread2({text:et},st)):rt==="image"?jsxRuntimeExports.jsx(FieldImage$1,_objectSpread2({text:et},st)):rt==="cascader"?jsxRuntimeExports.jsx(FieldCascader$1,_objectSpread2({text:et},st)):rt==="treeSelect"?jsxRuntimeExports.jsx(FieldTreeSelect$1,_objectSpread2({text:et},st)):rt==="color"?jsxRuntimeExports.jsx(FieldColorPicker$1,_objectSpread2({text:et},st)):rt==="segmented"?jsxRuntimeExports.jsx(FieldSegmented$1,_objectSpread2({text:et},st)):jsxRuntimeExports.jsx(FieldText$1,_objectSpread2({text:et},st))},ProFieldComponent=function(et,rt){var st,ct,ut,ft,gt,xt=et.text,$t=et.valueType,_t=$t===void 0?"text":$t,wt=et.mode,Tt=wt===void 0?"read":wt,Rt=et.onChange,It=et.renderFormItem,At=et.value,jt=et.readonly,Nt=et.fieldProps,kt=_objectWithoutProperties$2(et,_excluded5),Ft=reactExports.useContext(ProConfigContext),Ht=useRefFunction(function(){for(var qt,Gt=arguments.length,Xt=new Array(Gt),Zt=0;Zt=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$1*et:Math.round(_e.h)+hueStep$1*et:st=rt?Math.round(_e.h)+hueStep$1*et:Math.round(_e.h)-hueStep$1*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$1(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$1*et:et===darkColorCount$1?st=_e.s+saturationStep$1:st=_e.s+saturationStep2$1*et,st>1&&(st=1),rt&&et===lightColorCount$1&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$1(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$1*et:st=_e.v-brightnessStep2$1*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$3(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$1;ct>0;ct-=1){var ut=toHsv$1(st),ft=toHex$1(inputToRGB$1({h:getHue$1(ut,ct,!0),s:getSaturation$1(ut,ct,!0),v:getValue$1(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$1(st));for(var gt=1;gt<=darkColorCount$1;gt+=1){var xt=toHsv$1(st),$t=toHex$1(inputToRGB$1({h:getHue$1(xt,gt),s:getSaturation$1(xt,gt),v:getValue$1(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$1.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$1(mix$1(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$1={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"},presetPalettes$1={},presetDarkPalettes$1={};Object.keys(presetPrimaryColors$1).forEach(function(_e){presetPalettes$1[_e]=generate$3(presetPrimaryColors$1[_e]),presetPalettes$1[_e].primary=presetPalettes$1[_e][5],presetDarkPalettes$1[_e]=generate$3(presetPrimaryColors$1[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$1[_e].primary=presetDarkPalettes$1[_e][5]});var blue$1=presetPalettes$1.blue;function camelCase$1(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$3(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$1(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$1(rt)]=st}return et},{})}function generate$2(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$1(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$2(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$1(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$2(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$1(_e){return generate$3(_e)[0]}function normalizeTwoToneColors$1(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$1=` + `),React$1.createElement("div",{style:wt.white,className:"saturation-white"},React$1.createElement("div",{style:wt.black,className:"saturation-black"}),React$1.createElement("div",{style:wt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:wt.circle}))))}}]),rt}(reactExports.PureComponent||reactExports.Component),arrayEach=_arrayEach,baseEach=_baseEach,castFunction=_castFunction,isArray$2=isArray_1;function forEach$1(_e,et){var rt=isArray$2(_e)?arrayEach:baseEach;return rt(_e,castFunction(et))}var forEach_1=forEach$1,each=forEach_1;const each$1=getDefaultExportFromCjs(each);function _typeof$9(_e){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$9(_e)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(_e,et){if(_e=_e||"",et=et||{},_e instanceof tinycolor)return _e;if(!(this instanceof tinycolor))return new tinycolor(_e,et);var rt=inputToRGB(_e);this._originalInput=_e,this._r=rt.r,this._g=rt.g,this._b=rt.b,this._a=rt.a,this._roundA=Math.round(100*this._a)/100,this._format=et.format||rt.format,this._gradientType=et.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=rt.ok}tinycolor.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 et=this.toRgb();return(et.r*299+et.g*587+et.b*114)/1e3},getLuminance:function(){var et=this.toRgb(),rt,st,ct,ut,ft,gt;return rt=et.r/255,st=et.g/255,ct=et.b/255,rt<=.03928?ut=rt/12.92:ut=Math.pow((rt+.055)/1.055,2.4),st<=.03928?ft=st/12.92:ft=Math.pow((st+.055)/1.055,2.4),ct<=.03928?gt=ct/12.92:gt=Math.pow((ct+.055)/1.055,2.4),.2126*ut+.7152*ft+.0722*gt},setAlpha:function(et){return this._a=boundAlpha(et),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var et=rgbToHsv(this._r,this._g,this._b);return{h:et.h*360,s:et.s,v:et.v,a:this._a}},toHsvString:function(){var et=rgbToHsv(this._r,this._g,this._b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.v*100);return this._a==1?"hsv("+rt+", "+st+"%, "+ct+"%)":"hsva("+rt+", "+st+"%, "+ct+"%, "+this._roundA+")"},toHsl:function(){var et=rgbToHsl(this._r,this._g,this._b);return{h:et.h*360,s:et.s,l:et.l,a:this._a}},toHslString:function(){var et=rgbToHsl(this._r,this._g,this._b),rt=Math.round(et.h*360),st=Math.round(et.s*100),ct=Math.round(et.l*100);return this._a==1?"hsl("+rt+", "+st+"%, "+ct+"%)":"hsla("+rt+", "+st+"%, "+ct+"%, "+this._roundA+")"},toHex:function(et){return rgbToHex(this._r,this._g,this._b,et)},toHexString:function(et){return"#"+this.toHex(et)},toHex8:function(et){return rgbaToHex(this._r,this._g,this._b,this._a,et)},toHex8String:function(et){return"#"+this.toHex8(et)},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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(et){var rt="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),st=rt,ct=this._gradientType?"GradientType = 1, ":"";if(et){var ut=tinycolor(et);st="#"+rgbaToArgbHex(ut._r,ut._g,ut._b,ut._a)}return"progid:DXImageTransform.Microsoft.gradient("+ct+"startColorstr="+rt+",endColorstr="+st+")"},toString:function(et){var rt=!!et;et=et||this._format;var st=!1,ct=this._a<1&&this._a>=0,ut=!rt&&ct&&(et==="hex"||et==="hex6"||et==="hex3"||et==="hex4"||et==="hex8"||et==="name");return ut?et==="name"&&this._a===0?this.toName():this.toRgbString():(et==="rgb"&&(st=this.toRgbString()),et==="prgb"&&(st=this.toPercentageRgbString()),(et==="hex"||et==="hex6")&&(st=this.toHexString()),et==="hex3"&&(st=this.toHexString(!0)),et==="hex4"&&(st=this.toHex8String(!0)),et==="hex8"&&(st=this.toHex8String()),et==="name"&&(st=this.toName()),et==="hsl"&&(st=this.toHslString()),et==="hsv"&&(st=this.toHsvString()),st||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(et,rt){var st=et.apply(null,[this].concat([].slice.call(rt)));return this._r=st._r,this._g=st._g,this._b=st._b,this.setAlpha(st._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(et,rt){return et.apply(null,[this].concat([].slice.call(rt)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}};tinycolor.fromRatio=function(_e,et){if(_typeof$9(_e)=="object"){var rt={};for(var st in _e)_e.hasOwnProperty(st)&&(st==="a"?rt[st]=_e[st]:rt[st]=convertToPercentage(_e[st]));_e=rt}return tinycolor(_e,et)};function inputToRGB(_e){var et={r:0,g:0,b:0},rt=1,st=null,ct=null,ut=null,ft=!1,gt=!1;return typeof _e=="string"&&(_e=stringInputToObject(_e)),_typeof$9(_e)=="object"&&(isValidCSSUnit(_e.r)&&isValidCSSUnit(_e.g)&&isValidCSSUnit(_e.b)?(et=rgbToRgb(_e.r,_e.g,_e.b),ft=!0,gt=String(_e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(_e.h)&&isValidCSSUnit(_e.s)&&isValidCSSUnit(_e.v)?(st=convertToPercentage(_e.s),ct=convertToPercentage(_e.v),et=hsvToRgb(_e.h,st,ct),ft=!0,gt="hsv"):isValidCSSUnit(_e.h)&&isValidCSSUnit(_e.s)&&isValidCSSUnit(_e.l)&&(st=convertToPercentage(_e.s),ut=convertToPercentage(_e.l),et=hslToRgb(_e.h,st,ut),ft=!0,gt="hsl"),_e.hasOwnProperty("a")&&(rt=_e.a)),rt=boundAlpha(rt),{ok:ft,format:_e.format||gt,r:Math.min(255,Math.max(et.r,0)),g:Math.min(255,Math.max(et.g,0)),b:Math.min(255,Math.max(et.b,0)),a:rt}}function rgbToRgb(_e,et,rt){return{r:bound01(_e,255)*255,g:bound01(et,255)*255,b:bound01(rt,255)*255}}function rgbToHsl(_e,et,rt){_e=bound01(_e,255),et=bound01(et,255),rt=bound01(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut,ft,gt=(st+ct)/2;if(st==ct)ut=ft=0;else{var xt=st-ct;switch(ft=gt>.5?xt/(2-st-ct):xt/(st+ct),st){case _e:ut=(et-rt)/xt+(et1&&(wt-=1),wt<1/6?$t+(_t-$t)*6*wt:wt<1/2?_t:wt<2/3?$t+(_t-$t)*(2/3-wt)*6:$t}if(et===0)st=ct=ut=rt;else{var gt=rt<.5?rt*(1+et):rt+et-rt*et,xt=2*rt-gt;st=ft(xt,gt,_e+1/3),ct=ft(xt,gt,_e),ut=ft(xt,gt,_e-1/3)}return{r:st*255,g:ct*255,b:ut*255}}function rgbToHsv(_e,et,rt){_e=bound01(_e,255),et=bound01(et,255),rt=bound01(rt,255);var st=Math.max(_e,et,rt),ct=Math.min(_e,et,rt),ut,ft,gt=st,xt=st-ct;if(ft=st===0?0:xt/st,st==ct)ut=0;else{switch(st){case _e:ut=(et-rt)/xt+(et>1)+720)%360;--et;)st.h=(st.h+ct)%360,ut.push(tinycolor(st));return ut}function _monochromatic(_e,et){et=et||6;for(var rt=tinycolor(_e).toHsv(),st=rt.h,ct=rt.s,ut=rt.v,ft=[],gt=1/et;et--;)ft.push(tinycolor({h:st,s:ct,v:ut})),ut=(ut+gt)%1;return ft}tinycolor.mix=function(_e,et,rt){rt=rt===0?0:rt||50;var st=tinycolor(_e).toRgb(),ct=tinycolor(et).toRgb(),ut=rt/100,ft={r:(ct.r-st.r)*ut+st.r,g:(ct.g-st.g)*ut+st.g,b:(ct.b-st.b)*ut+st.b,a:(ct.a-st.a)*ut+st.a};return tinycolor(ft)};tinycolor.readability=function(_e,et){var rt=tinycolor(_e),st=tinycolor(et);return(Math.max(rt.getLuminance(),st.getLuminance())+.05)/(Math.min(rt.getLuminance(),st.getLuminance())+.05)};tinycolor.isReadable=function(_e,et,rt){var st=tinycolor.readability(_e,et),ct,ut;switch(ut=!1,ct=validateWCAG2Parms(rt),ct.level+ct.size){case"AAsmall":case"AAAlarge":ut=st>=4.5;break;case"AAlarge":ut=st>=3;break;case"AAAsmall":ut=st>=7;break}return ut};tinycolor.mostReadable=function(_e,et,rt){var st=null,ct=0,ut,ft,gt,xt;rt=rt||{},ft=rt.includeFallbackColors,gt=rt.level,xt=rt.size;for(var $t=0;$tct&&(ct=ut,st=tinycolor(et[$t]));return tinycolor.isReadable(_e,st,{level:gt,size:xt})||!ft?st:(rt.includeFallbackColors=!1,tinycolor.mostReadable(_e,["#fff","#000"],rt))};var names=tinycolor.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"},hexNames=tinycolor.hexNames=flip(names);function flip(_e){var et={};for(var rt in _e)_e.hasOwnProperty(rt)&&(et[_e[rt]]=rt);return et}function boundAlpha(_e){return _e=parseFloat(_e),(isNaN(_e)||_e<0||_e>1)&&(_e=1),_e}function bound01(_e,et){isOnePointZero(_e)&&(_e="100%");var rt=isPercentage(_e);return _e=Math.min(et,Math.max(0,parseFloat(_e))),rt&&(_e=parseInt(_e*et,10)/100),Math.abs(_e-et)<1e-6?1:_e%et/parseFloat(et)}function clamp01(_e){return Math.min(1,Math.max(0,_e))}function parseIntFromHex(_e){return parseInt(_e,16)}function isOnePointZero(_e){return typeof _e=="string"&&_e.indexOf(".")!=-1&&parseFloat(_e)===1}function isPercentage(_e){return typeof _e=="string"&&_e.indexOf("%")!=-1}function pad2(_e){return _e.length==1?"0"+_e:""+_e}function convertToPercentage(_e){return _e<=1&&(_e=_e*100+"%"),_e}function convertDecimalToHex(_e){return Math.round(parseFloat(_e)*255).toString(16)}function convertHexToDecimal(_e){return parseIntFromHex(_e)/255}var matchers=function(){var _e="[-\\+]?\\d+%?",et="[-\\+]?\\d*\\.\\d+%?",rt="(?:"+et+")|(?:"+_e+")",st="[\\s|\\(]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")\\s*\\)?",ct="[\\s|\\(]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")[,|\\s]+("+rt+")\\s*\\)?";return{CSS_UNIT:new RegExp(rt),rgb:new RegExp("rgb"+st),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+st),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+st),hsva:new RegExp("hsva"+ct),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 isValidCSSUnit(_e){return!!matchers.CSS_UNIT.exec(_e)}function stringInputToObject(_e){_e=_e.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var et=!1;if(names[_e])_e=names[_e],et=!0;else if(_e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var rt;return(rt=matchers.rgb.exec(_e))?{r:rt[1],g:rt[2],b:rt[3]}:(rt=matchers.rgba.exec(_e))?{r:rt[1],g:rt[2],b:rt[3],a:rt[4]}:(rt=matchers.hsl.exec(_e))?{h:rt[1],s:rt[2],l:rt[3]}:(rt=matchers.hsla.exec(_e))?{h:rt[1],s:rt[2],l:rt[3],a:rt[4]}:(rt=matchers.hsv.exec(_e))?{h:rt[1],s:rt[2],v:rt[3]}:(rt=matchers.hsva.exec(_e))?{h:rt[1],s:rt[2],v:rt[3],a:rt[4]}:(rt=matchers.hex8.exec(_e))?{r:parseIntFromHex(rt[1]),g:parseIntFromHex(rt[2]),b:parseIntFromHex(rt[3]),a:convertHexToDecimal(rt[4]),format:et?"name":"hex8"}:(rt=matchers.hex6.exec(_e))?{r:parseIntFromHex(rt[1]),g:parseIntFromHex(rt[2]),b:parseIntFromHex(rt[3]),format:et?"name":"hex"}:(rt=matchers.hex4.exec(_e))?{r:parseIntFromHex(rt[1]+""+rt[1]),g:parseIntFromHex(rt[2]+""+rt[2]),b:parseIntFromHex(rt[3]+""+rt[3]),a:convertHexToDecimal(rt[4]+""+rt[4]),format:et?"name":"hex8"}:(rt=matchers.hex3.exec(_e))?{r:parseIntFromHex(rt[1]+""+rt[1]),g:parseIntFromHex(rt[2]+""+rt[2]),b:parseIntFromHex(rt[3]+""+rt[3]),format:et?"name":"hex"}:!1}function validateWCAG2Parms(_e){var et,rt;return _e=_e||{level:"AA",size:"small"},et=(_e.level||"AA").toUpperCase(),rt=(_e.size||"small").toLowerCase(),et!=="AA"&&et!=="AAA"&&(et="AA"),rt!=="small"&&rt!=="large"&&(rt="small"),{level:et,size:rt}}var simpleCheckForValidColor=function(et){var rt=["r","g","b","a","h","s","l","v"],st=0,ct=0;return each$1(rt,function(ut){if(et[ut]&&(st+=1,isNaN(et[ut])||(ct+=1),ut==="s"||ut==="l")){var ft=/^\d+%$/;ft.test(et[ut])&&(ct+=1)}}),st===ct?et:!1},toState=function(et,rt){var st=et.hex?tinycolor(et.hex):tinycolor(et),ct=st.toHsl(),ut=st.toHsv(),ft=st.toRgb(),gt=st.toHex();ct.s===0&&(ct.h=rt||0,ut.h=rt||0);var xt=gt==="000000"&&ft.a===0;return{hsl:ct,hex:xt?"transparent":"#".concat(gt),rgb:ft,hsv:ut,oldHue:et.h||rt||ct.h,source:et.source}},isValidHex=function(et){if(et==="transparent")return!0;var rt=String(et).charAt(0)==="#"?1:0;return et.length!==4+rt&&et.length<7+rt&&tinycolor(et).isValid()};function _typeof$8(_e){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$8(_e)}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _getPrototypeOf$3(_e){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$3(_e)}var ColorWrap=function(et){var rt=function(st){_inherits$3(ut,st);var ct=_createSuper$3(ut);function ut(ft){var gt;return _classCallCheck$3(this,ut),gt=ct.call(this),gt.handleChange=function(xt,$t){var _t=simpleCheckForValidColor(xt);if(_t){var wt=toState(xt,xt.h||gt.state.oldHue);gt.setState(wt),gt.props.onChangeComplete&>.debounce(gt.props.onChangeComplete,wt,$t),gt.props.onChange&>.props.onChange(wt,$t)}},gt.handleSwatchHover=function(xt,$t){var _t=simpleCheckForValidColor(xt);if(_t){var wt=toState(xt,xt.h||gt.state.oldHue);gt.props.onSwatchHover&>.props.onSwatchHover(wt,$t)}},gt.state=_objectSpread$7({},toState(ft.color,0)),gt.debounce=debounce$2(function(xt,$t,_t){xt($t,_t)},100),gt}return _createClass$3(ut,[{key:"render",value:function(){var gt={};return this.props.onSwatchHover&&(gt.onSwatchHover=this.handleSwatchHover),React$1.createElement(et,_extends$2({},this.props,this.state,{onChange:this.handleChange},gt))}}],[{key:"getDerivedStateFromProps",value:function(gt,xt){return _objectSpread$7({},toState(gt.color,xt.oldHue))}}]),ut}(reactExports.PureComponent||reactExports.Component);return rt.propTypes=_objectSpread$7({},et.propTypes),rt.defaultProps=_objectSpread$7(_objectSpread$7({},et.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),rt};function _typeof$7(_e){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$7(_e)}function _defineProperty$7(_e,et,rt){return et=_toPropertyKey$4(et),et in _e?Object.defineProperty(_e,et,{value:rt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=rt,_e}function _classCallCheck$2(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(_e,et){for(var rt=0;rt"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 _getPrototypeOf$2(_e){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$2(_e)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function(et){return VALID_KEY_CODES.indexOf(et)>-1},getNumberValue=function(et){return Number(String(et).replace(/%/g,""))},idCounter=1,EditableInput=function(_e){_inherits$2(rt,_e);var et=_createSuper$2(rt);function rt(st){var ct;return _classCallCheck$2(this,rt),ct=et.call(this),ct.handleBlur=function(){ct.state.blurValue&&ct.setState({value:ct.state.blurValue,blurValue:null})},ct.handleChange=function(ut){ct.setUpdatedValue(ut.target.value,ut)},ct.handleKeyDown=function(ut){var ft=getNumberValue(ut.target.value);if(!isNaN(ft)&&isValidKeyCode(ut.keyCode)){var gt=ct.getArrowOffset(),xt=ut.keyCode===UP_KEY_CODE?ft+gt:ft-gt;ct.setUpdatedValue(xt,ut)}},ct.handleDrag=function(ut){if(ct.props.dragLabel){var ft=Math.round(ct.props.value+ut.movementX);ft>=0&&ft<=ct.props.dragMax&&ct.props.onChange&&ct.props.onChange(ct.getValueObjectWithLabel(ft),ut)}},ct.handleMouseDown=function(ut){ct.props.dragLabel&&(ut.preventDefault(),ct.handleDrag(ut),window.addEventListener("mousemove",ct.handleDrag),window.addEventListener("mouseup",ct.handleMouseUp))},ct.handleMouseUp=function(){ct.unbindEventListeners()},ct.unbindEventListeners=function(){window.removeEventListener("mousemove",ct.handleDrag),window.removeEventListener("mouseup",ct.handleMouseUp)},ct.state={value:String(st.value).toUpperCase(),blurValue:String(st.value).toUpperCase()},ct.inputId="rc-editable-input-".concat(idCounter++),ct}return _createClass$2(rt,[{key:"componentDidUpdate",value:function(ct,ut){this.props.value!==this.state.value&&(ct.value!==this.props.value||ut.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(ct){return _defineProperty$7({},this.props.label,ct)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(ct,ut){var ft=this.props.label?this.getValueObjectWithLabel(ct):ct;this.props.onChange&&this.props.onChange(ft,ut),this.setState({value:ct})}},{key:"render",value:function(){var ct=this,ut=_default$2({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 React$1.createElement("div",{style:ut.wrap},React$1.createElement("input",{id:this.inputId,style:ut.input,ref:function(gt){return ct.input=gt},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?React$1.createElement("label",{htmlFor:this.inputId,style:ut.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),rt}(reactExports.PureComponent||reactExports.Component);function _typeof$6(_e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$6(_e)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(_e){for(var et=1;et"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 _getPrototypeOf$1(_e){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$1(_e)}var handleFocus=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(st){_inherits$1(ut,st);var ct=_createSuper$1(ut);function ut(){var ft;_classCallCheck$1(this,ut);for(var gt=arguments.length,xt=new Array(gt),$t=0;$t100&&(_t.a=100),_t.a/=100,rt==null||rt({h:ct==null?void 0:ct.h,s:ct==null?void 0:ct.s,l:ct==null?void 0:ct.l,a:_t.a,source:"rgb"},wt))};return React$1.createElement("div",{style:gt.fields,className:"flexbox-fix"},React$1.createElement("div",{style:gt.double},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"hex",value:ut==null?void 0:ut.replace("#",""),onChange:xt})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"r",value:st==null?void 0:st.r,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"g",value:st==null?void 0:st.g,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.single},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"b",value:st==null?void 0:st.b,onChange:xt,dragLabel:"true",dragMax:"255"})),React$1.createElement("div",{style:gt.alpha},React$1.createElement(EditableInput,{style:{input:gt.input,label:gt.label},label:"a",value:Math.round(((st==null?void 0:st.a)||0)*100),onChange:xt,dragLabel:"true",dragMax:"100"})))};function _typeof$4(_e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$4(_e)}function ownKeys$5(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$5(_e){for(var et=1;et-1}function getColorPicker(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof _e>"u"||_e===!1)&&IsIt_Render_V5()?ColorPicker$2:ColorPicker}var FieldColorPicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.old,$t=reactExports.useContext(ConfigProvider$1.ConfigContext),_t=$t.getPrefixCls,wt=React$1.useMemo(function(){return getColorPicker(xt)},[xt]),Tt=_t("pro-field-color-picker"),Rt=reactExports.useMemo(function(){return xt?"":classNames(_defineProperty$c({},Tt,IsIt_Render_V5()))},[Tt,xt]);if(ct==="read"){var It=jsxRuntimeExports.jsx(wt,{value:st,mode:"read",ref:rt,className:Rt,open:!1});return ut?ut(st,_objectSpread2({mode:ct},gt),It):It}if(ct==="edit"||ct==="update"){var At=_objectSpread2({display:"table-cell"},gt.style),jt=jsxRuntimeExports.jsx(wt,_objectSpread2(_objectSpread2({ref:rt,presets:[DEFAULT_PRESETS]},gt),{},{style:At,className:Rt}));return ft?ft(st,_objectSpread2(_objectSpread2({mode:ct},gt),{},{style:At}),jt):jt}return null};const FieldColorPicker$1=React$1.forwardRef(FieldColorPicker);dayjs.extend(weekOfYear$1);var formatDate$2=function(et,rt){return et?typeof rt=="function"?rt(dayjs(et)):dayjs(et).format((Array.isArray(rt)?rt[0]:rt)||"YYYY-MM-DD"):"-"},FieldDatePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.format,ft=et.label,gt=et.light,xt=et.render,$t=et.renderFormItem,_t=et.plain,wt=et.showTime,Tt=et.fieldProps,Rt=et.picker,It=et.bordered,At=et.lightLabel,jt=useIntl$1(),Nt=reactExports.useState(!1),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];if(ct==="read"){var Wt=formatDate$2(st,Tt.format||ut);return xt?xt(st,_objectSpread2({mode:ct},Tt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Wt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Wt})}if(ct==="edit"||ct==="update"){var Vt,qt=Tt.disabled,Xt=Tt.value,Gt=Tt.placeholder,Zt=Gt===void 0?jt.getMessage("tableForm.selectPlaceholder","请选择"):Gt,er=parseValueToDay(Xt);return gt?Vt=jsxRuntimeExports.jsx(FieldLabel,{label:ft,onClick:function(){var cr;Tt==null||(cr=Tt.onOpenChange)===null||cr===void 0||cr.call(Tt,!0),Ht(!0)},style:er?{paddingInlineEnd:0}:void 0,disabled:qt,value:er||Ft?jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({picker:Rt,showTime:wt,format:ut,ref:rt},Tt),{},{value:er,onOpenChange:function(cr){var ur;Ht(cr),Tt==null||(ur=Tt.onOpenChange)===null||ur===void 0||ur.call(Tt,cr)},bordered:!1,open:Ft})):void 0,allowClear:!1,downIcon:er||Ft?!1:void 0,bordered:It,ref:At}):Vt=jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({picker:Rt,showTime:wt,format:ut,placeholder:Zt,bordered:_t===void 0?!0:!_t,ref:rt},Tt),{},{value:er})),$t?$t(st,_objectSpread2({mode:ct},Tt),Vt):Vt}return null};const FieldDatePicker$1=React$1.forwardRef(FieldDatePicker);var FieldDigit=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.placeholder,gt=et.renderFormItem,xt=et.fieldProps,$t=useIntl$1(),_t=ft||$t.getMessage("tableForm.inputPlaceholder","请输入"),wt=reactExports.useCallback(function(Nt){var kt=Nt??void 0;return!xt.stringMode&&typeof kt=="string"&&(kt=Number(kt)),typeof kt=="number"&&!isNil(kt)&&!isNil(xt.precision)&&(kt=Number(kt.toFixed(xt.precision))),kt},[xt]);if(ct==="read"){var Tt,Rt={};xt!=null&&xt.precision&&(Rt={minimumFractionDigits:Number(xt.precision),maximumFractionDigits:Number(xt.precision)});var It=new Intl.NumberFormat(void 0,_objectSpread2(_objectSpread2({},Rt),(xt==null?void 0:xt.intlProps)||{})).format(Number(st)),At=jsxRuntimeExports.jsx("span",{ref:rt,children:(xt==null||(Tt=xt.formatter)===null||Tt===void 0?void 0:Tt.call(xt,It))||It});return ut?ut(st,_objectSpread2({mode:ct},xt),At):At}if(ct==="edit"||ct==="update"){var jt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({ref:rt,min:0,placeholder:_t},omit$1(xt,["onChange","onBlur"])),{},{onChange:function(kt){var Ft;return xt==null||(Ft=xt.onChange)===null||Ft===void 0?void 0:Ft.call(xt,wt(kt))},onBlur:function(kt){var Ft;return xt==null||(Ft=xt.onBlur)===null||Ft===void 0?void 0:Ft.call(xt,wt(kt.target.value))}}));return gt?gt(st,_objectSpread2({mode:ct},xt),jt):jt}return null};const FieldDigit$1=React$1.forwardRef(FieldDigit);var FieldDigitRange=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.placeholder,gt=et.renderFormItem,xt=et.fieldProps,$t=et.separator,_t=$t===void 0?"~":$t,wt=et.separatorWidth,Tt=wt===void 0?30:wt,Rt=xt.value,It=xt.defaultValue,At=xt.onChange,jt=xt.id,Nt=useIntl$1(),kt=proTheme.useToken(),Ft=kt.token,Ht=useMergedState(function(){return It},{value:Rt,onChange:At}),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1];if(ct==="read"){var Xt=function(dr){var yr,Sr=new Intl.NumberFormat(void 0,_objectSpread2({minimumSignificantDigits:2},(xt==null?void 0:xt.intlProps)||{})).format(Number(dr));return(xt==null||(yr=xt.formatter)===null||yr===void 0?void 0:yr.call(xt,Sr))||Sr},Gt=jsxRuntimeExports.jsxs("span",{ref:rt,children:[Xt(st[0])," ",_t," ",Xt(st[1])]});return ut?ut(st,_objectSpread2({mode:ct},xt),Gt):Gt}if(ct==="edit"||ct==="update"){var Zt=function(){if(Array.isArray(Vt)){var dr=_slicedToArray$3(Vt,2),yr=dr[0],Sr=dr[1];typeof yr=="number"&&typeof Sr=="number"&&yr>Sr?qt([Sr,yr]):yr===void 0&&Sr===void 0&&qt(void 0)}},er=function(dr,yr){var Sr=_toConsumableArray$3(Vt||[]);Sr[dr]=yr===null?void 0:yr,qt(Sr)},lr=(xt==null?void 0:xt.placeholder)||ft||[Nt.getMessage("tableForm.inputPlaceholder","请输入"),Nt.getMessage("tableForm.inputPlaceholder","请输入")],cr=function(dr){return Array.isArray(lr)?lr[dr]:lr},ur=Space$1.Compact||Input$3.Group,fr=Space$1.Compact?{}:{compact:!0},hr=jsxRuntimeExports.jsxs(ur,_objectSpread2(_objectSpread2({},fr),{},{onBlur:Zt,children:[jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({},xt),{},{placeholder:cr(0),id:jt??"".concat(jt,"-0"),style:{width:"calc((100% - ".concat(Tt,"px) / 2)")},value:Vt==null?void 0:Vt[0],defaultValue:It==null?void 0:It[0],onChange:function(dr){return er(0,dr)}})),jsxRuntimeExports.jsx(Input$3,{style:{width:Tt,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:Ft==null?void 0:Ft.colorBgContainer},placeholder:_t,disabled:!0}),jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({},xt),{},{placeholder:cr(1),id:jt??"".concat(jt,"-1"),style:{width:"calc((100% - ".concat(Tt,"px) / 2)"),borderInlineStart:0},value:Vt==null?void 0:Vt[1],defaultValue:It==null?void 0:It[1],onChange:function(dr){return er(1,dr)}}))]}));return gt?gt(st,_objectSpread2({mode:ct},xt),hr):hr}return null};const FieldDigitRange$1=React$1.forwardRef(FieldDigitRange);var relativeTime$3={exports:{}};(function(_e,et){(function(rt,st){_e.exports=st()})(commonjsGlobal,function(){return function(rt,st,ct){rt=rt||{};var ut=st.prototype,ft={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 gt($t,_t,wt,Tt){return ut.fromToBase($t,_t,wt,Tt)}ct.en.relativeTime=ft,ut.fromToBase=function($t,_t,wt,Tt,Rt){for(var It,At,jt,Nt=wt.$locale().relativeTime||ft,kt=rt.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"}],Ft=kt.length,Ht=0;Ht0,Vt<=Wt.r||!Wt.r){Vt<=1&&Ht>0&&(Wt=kt[Ht-1]);var qt=Nt[Wt.l];Rt&&(Vt=Rt(""+Vt)),At=typeof qt=="string"?qt.replace("%d",Vt):qt(Vt,_t,Wt.l,jt);break}}if(_t)return At;var Xt=jt?Nt.future:Nt.past;return typeof Xt=="function"?Xt(At):Xt.replace("%s",At)},ut.to=function($t,_t){return gt($t,_t,this,!0)},ut.from=function($t,_t){return gt($t,_t,this)};var xt=function($t){return $t.$u?ct.utc():ct()};ut.toNow=function($t){return this.to(xt(this),$t)},ut.fromNow=function($t){return this.from(xt(this),$t)}}})})(relativeTime$3);var relativeTimeExports=relativeTime$3.exports;const relativeTime$2=getDefaultExportFromCjs(relativeTimeExports);dayjs.extend(relativeTime$2);var FieldFromNow=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.format,xt=et.fieldProps,$t=useIntl$1();if(ct==="read"){var _t=jsxRuntimeExports.jsx(Tooltip$1,{title:dayjs(st).format((xt==null?void 0:xt.format)||gt||"YYYY-MM-DD HH:mm:ss"),children:dayjs(st).fromNow()});return ut?ut(st,_objectSpread2({mode:ct},xt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_t})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_t})}if(ct==="edit"||ct==="update"){var wt=$t.getMessage("tableForm.selectPlaceholder","请选择"),Tt=parseValueToDay(xt.value),Rt=jsxRuntimeExports.jsx(DatePicker$2,_objectSpread2(_objectSpread2({ref:rt,placeholder:wt,showTime:!0},xt),{},{value:Tt}));return ft?ft(st,_objectSpread2({mode:ct},xt),Rt):Rt}return null};const FieldFromNow$1=React$1.forwardRef(FieldFromNow);var FieldImage=React$1.forwardRef(function(_e,et){var rt=_e.text,st=_e.mode,ct=_e.render,ut=_e.renderFormItem,ft=_e.fieldProps,gt=_e.placeholder,xt=_e.width,$t=useIntl$1(),_t=gt||$t.getMessage("tableForm.inputPlaceholder","请输入");if(st==="read"){var wt=jsxRuntimeExports.jsx(Image$2,_objectSpread2({ref:et,width:xt||32,src:rt},ft));return ct?ct(rt,_objectSpread2({mode:st},ft),wt):wt}if(st==="edit"||st==="update"){var Tt=jsxRuntimeExports.jsx(Input$3,_objectSpread2({ref:et,placeholder:_t},ft));return ut?ut(rt,_objectSpread2({mode:st},ft),Tt):Tt}return null});const FieldImage$1=FieldImage;var IndexColumn=function(et,rt){var st=et.border,ct=st===void 0?!1:st,ut=et.children,ft=reactExports.useContext(ConfigProvider$1.ConfigContext),gt=ft.getPrefixCls,xt=gt("pro-field-index-column"),$t=useStyle$i("IndexColumn",function(){return _defineProperty$c({},".".concat(xt),{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"}}})}),_t=$t.wrapSSR,wt=$t.hashId;return _t(jsxRuntimeExports.jsx("div",{ref:rt,className:classNames(xt,wt,_defineProperty$c(_defineProperty$c({},"".concat(xt,"-border"),ct),"top-three",ut>3)),children:ut}))};const FieldIndexColumn=React$1.forwardRef(IndexColumn);var _excluded$r=["contentRender","numberFormatOptions","numberPopoverRender","open"],_excluded2$8=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],defaultMoneyIntl=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),enMoneyIntl={style:"currency",currency:"USD"},ruMoneyIntl={style:"currency",currency:"RUB"},rsMoneyIntl={style:"currency",currency:"RSD"},msMoneyIntl={style:"currency",currency:"MYR"},ptMoneyIntl={style:"currency",currency:"BRL"},intlMap={default:defaultMoneyIntl,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":enMoneyIntl,"ru-RU":ruMoneyIntl,"ms-MY":msMoneyIntl,"sr-RS":rsMoneyIntl,"pt-BR":ptMoneyIntl},getTextByLocale=function(et,rt,st,ct){var ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",ft=rt==null?void 0:rt.toString().replaceAll(",","");if(typeof ft=="string"){var gt=Number(ft);if(Number.isNaN(gt))return ft;ft=gt}if(!ft&&ft!==0)return"";var xt=!1;try{xt=et!==!1&&Intl.NumberFormat.supportedLocalesOf([et.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var $t=new Intl.NumberFormat(xt&&et!==!1&&(et==null?void 0:et.replace("_","-"))||"zh-Hans-CN",_objectSpread2(_objectSpread2({},intlMap[et||"zh-Hans-CN"]||defaultMoneyIntl),{},{maximumFractionDigits:st},ct)),_t=$t.format(ft),wt=function(Nt){var kt=Nt.match(/\d+/);if(kt){var Ft=kt[0];return Nt.slice(Nt.indexOf(Ft))}else return Nt},Tt=wt(_t),Rt=_t||"",It=_slicedToArray$3(Rt,1),At=It[0];return["+","-"].includes(At)?"".concat(ut||"").concat(At).concat(Tt):"".concat(ut||"").concat(Tt)}catch{return ft}},DefaultPrecisionCont=2,InputNumberPopover=React$1.forwardRef(function(_e,et){var rt=_e.contentRender;_e.numberFormatOptions,_e.numberPopoverRender;var st=_e.open,ct=_objectWithoutProperties$2(_e,_excluded$r),ut=useMergedState(function(){return ct.defaultValue},{value:ct.value,onChange:ct.onChange}),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1],$t=rt==null?void 0:rt(_objectSpread2(_objectSpread2({},ct),{},{value:gt})),_t=openVisibleCompatible($t?st:!1);return jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({placement:"topLeft"},_t),{},{trigger:["focus","click"],content:$t,getPopupContainer:function(Tt){return(Tt==null?void 0:Tt.parentElement)||document.body},children:jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2(_objectSpread2({ref:et},ct),{},{value:gt,onChange:xt}))}))}),FieldMoney=function(et,rt){var st,ct=et.text,ut=et.mode,ft=et.render,gt=et.renderFormItem,xt=et.fieldProps;et.proFieldKey,et.plain,et.valueEnum;var $t=et.placeholder,_t=et.locale,wt=et.customSymbol,Tt=wt===void 0?xt.customSymbol:wt,Rt=et.numberFormatOptions,It=Rt===void 0?xt==null?void 0:xt.numberFormatOptions:Rt,At=et.numberPopoverRender,jt=At===void 0?(xt==null?void 0:xt.numberPopoverRender)||!1:At,Nt=_objectWithoutProperties$2(et,_excluded2$8),kt=(st=xt==null?void 0:xt.precision)!==null&&st!==void 0?st:DefaultPrecisionCont,Ft=useIntl$1();_t&&intlMap$1[_t]&&(Ft=intlMap$1[_t]);var Ht=$t||Ft.getMessage("tableForm.inputPlaceholder","请输入"),Wt=reactExports.useMemo(function(){if(Tt)return Tt;if(!(Nt.moneySymbol===!1||xt.moneySymbol===!1))return Ft.getMessage("moneySymbol","¥")},[Tt,xt.moneySymbol,Ft,Nt.moneySymbol]),Vt=reactExports.useCallback(function(Gt){var Zt=new RegExp("\\B(?=(\\d{".concat(3+Math.max(kt-DefaultPrecisionCont,0),"})+(?!\\d))"),"g"),er=String(Gt).split("."),lr=_slicedToArray$3(er,2),cr=lr[0],ur=lr[1],fr=cr.replace(Zt,","),hr="";return ur&&kt>0&&(hr=".".concat(ur.slice(0,kt===void 0?DefaultPrecisionCont:kt))),"".concat(fr).concat(hr)},[kt]);if(ut==="read"){var qt=jsxRuntimeExports.jsx("span",{ref:rt,children:getTextByLocale(_t||!1,ct,kt,It??xt.numberFormatOptions,Wt)});return ft?ft(ct,_objectSpread2({mode:ut},xt),qt):qt}if(ut==="edit"||ut==="update"){var Xt=jsxRuntimeExports.jsx(InputNumberPopover,_objectSpread2(_objectSpread2({contentRender:function(Zt){if(jt===!1||!Zt.value)return null;var er=getTextByLocale(Wt||_t||!1,"".concat(Vt(Zt.value)),kt,_objectSpread2(_objectSpread2({},It),{},{notation:"compact"}),Wt);return typeof jt=="function"?jt==null?void 0:jt(Zt,er):er},ref:rt,precision:kt,formatter:function(Zt){return Zt&&Wt?"".concat(Wt," ").concat(Vt(Zt)):Zt==null?void 0:Zt.toString()},parser:function(Zt){return Wt&&Zt?Zt.replace(new RegExp("\\".concat(Wt,"\\s?|(,*)"),"g"),""):Zt},placeholder:Ht},omit$1(xt,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:xt.onBlur?function(Gt){var Zt,er=Gt.target.value;Wt&&er&&(er=er.replace(new RegExp("\\".concat(Wt,"\\s?|(,*)"),"g"),"")),(Zt=xt.onBlur)===null||Zt===void 0||Zt.call(xt,er)}:void 0}));return gt?gt(ct,_objectSpread2({mode:ut},xt),Xt):Xt}return null};const FieldMoney$1=React$1.forwardRef(FieldMoney);var addArrayKeys=function(et){return et.map(function(rt,st){var ct;return React$1.isValidElement(rt)?React$1.cloneElement(rt,_objectSpread2(_objectSpread2({key:st},rt==null?void 0:rt.props),{},{style:_objectSpread2({},rt==null||(ct=rt.props)===null||ct===void 0?void 0:ct.style)})):jsxRuntimeExports.jsx(React$1.Fragment,{children:rt},st)})},FieldOptions=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.fieldProps,gt=reactExports.useContext(ConfigProvider$1.ConfigContext),xt=gt.getPrefixCls,$t=xt("pro-field-option"),_t=proTheme.useToken(),wt=_t.token;if(reactExports.useImperativeHandle(rt,function(){return{}}),ut){var Tt=ut(st,_objectSpread2({mode:ct},ft),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));return!Tt||(Tt==null?void 0:Tt.length)<1||!Array.isArray(Tt)?null:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:wt.margin,alignItems:"center"},className:$t,children:addArrayKeys(Tt)})}return!st||!Array.isArray(st)?React$1.isValidElement(st)?st:null:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:wt.margin,alignItems:"center"},className:$t,children:addArrayKeys(st)})};const FieldOptions$1=React$1.forwardRef(FieldOptions);var _excluded$q=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],FieldPassword=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;et.proFieldKey;var xt=_objectWithoutProperties$2(et,_excluded$q),$t=useIntl$1(),_t=useMergedState(function(){return xt.open||xt.visible||!1},{value:xt.open||xt.visible,onChange:xt.onOpenChange||xt.onVisible}),wt=_slicedToArray$3(_t,2),Tt=wt[0],Rt=wt[1];if(ct==="read"){var It=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"-"});return st&&(It=jsxRuntimeExports.jsxs(Space$1,{children:[jsxRuntimeExports.jsx("span",{ref:rt,children:Tt?st:"********"}),jsxRuntimeExports.jsx("a",{onClick:function(){return Rt(!Tt)},children:Tt?jsxRuntimeExports.jsx(EyeOutlined$1,{}):jsxRuntimeExports.jsx(EyeInvisibleOutlined$1,{})})]})),ut?ut(st,_objectSpread2({mode:ct},gt),It):It}if(ct==="edit"||ct==="update"){var At=jsxRuntimeExports.jsx(Input$3.Password,_objectSpread2({placeholder:$t.getMessage("tableForm.inputPlaceholder","请输入"),ref:rt},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),At):At}return null};const FieldPassword$1=React$1.forwardRef(FieldPassword);var NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,objectProto=Object.prototype,objectToString=objectProto.toString;function isObject$4(_e){var et=typeof _e;return!!_e&&(et=="object"||et=="function")}function isObjectLike(_e){return!!_e&&typeof _e=="object"}function isSymbol(_e){return typeof _e=="symbol"||isObjectLike(_e)&&objectToString.call(_e)==symbolTag}function toNumber(_e){if(typeof _e=="number")return _e;if(isSymbol(_e))return NAN;if(isObject$4(_e)){var et=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=isObject$4(et)?et+"":et}if(typeof _e!="string")return _e===0?_e:+_e;_e=_e.replace(reTrim,"");var rt=reIsBinary.test(_e);return rt||reIsOctal.test(_e)?freeParseInt(_e.slice(2),rt?2:8):reIsBadHex.test(_e)?NAN:+_e}var lodash_tonumber=toNumber;const toNumber$1=getDefaultExportFromCjs(lodash_tonumber);function getSymbolByRealValue(_e){return _e===0?null:_e>0?"+":"-"}function getColorByRealValue(_e){return _e===0?"#595959":_e>0?"#ff4d4f":"#52c41a"}function getRealTextWithPrecision(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return et>=0?_e==null?void 0:_e.toFixed(et):_e}var FieldPercent=function(et,rt){var st=et.text,ct=et.prefix,ut=et.precision,ft=et.suffix,gt=ft===void 0?"%":ft,xt=et.mode,$t=et.showColor,_t=$t===void 0?!1:$t,wt=et.render,Tt=et.renderFormItem,Rt=et.fieldProps,It=et.placeholder,At=et.showSymbol,jt=useIntl$1(),Nt=It||jt.getMessage("tableForm.inputPlaceholder","请输入"),kt=reactExports.useMemo(function(){return typeof st=="string"&&st.includes("%")?toNumber$1(st.replace("%","")):toNumber$1(st)},[st]),Ft=reactExports.useMemo(function(){return typeof At=="function"?At==null?void 0:At(st):At},[At,st]);if(xt==="read"){var Ht=_t?{color:getColorByRealValue(kt)}:{},Wt=jsxRuntimeExports.jsxs("span",{style:Ht,ref:rt,children:[ct&&jsxRuntimeExports.jsx("span",{children:ct}),Ft&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[getSymbolByRealValue(kt)," "]}),getRealTextWithPrecision(Math.abs(kt),ut),gt&>]});return wt?wt(st,_objectSpread2(_objectSpread2({mode:xt},Rt),{},{prefix:ct,precision:ut,showSymbol:Ft,suffix:gt}),Wt):Wt}if(xt==="edit"||xt==="update"){var Vt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,formatter:function(Xt){return Xt&&ct?"".concat(ct," ").concat(Xt).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):Xt},parser:function(Xt){return Xt?Xt.replace(/.*\s|,/g,""):""},placeholder:Nt},Rt));return Tt?Tt(st,_objectSpread2({mode:xt},Rt),Vt):Vt}return null};const FieldPercent$1=React$1.forwardRef(FieldPercent);function getProgressStatus(_e){return _e===100?"success":_e<0?"exception":_e<100?"active":"normal"}var FieldProgress=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.plain,gt=et.renderFormItem,xt=et.fieldProps,$t=et.placeholder,_t=useIntl$1(),wt=$t||_t.getMessage("tableForm.inputPlaceholder","请输入"),Tt=reactExports.useMemo(function(){return typeof st=="string"&&st.includes("%")?toNumber$1(st.replace("%","")):toNumber$1(st)},[st]);if(ct==="read"){var Rt=jsxRuntimeExports.jsx(Progress$1,_objectSpread2({ref:rt,size:"small",style:{minWidth:100,maxWidth:320},percent:Tt,steps:ft?10:void 0,status:getProgressStatus(Tt)},xt));return ut?ut(Tt,_objectSpread2({mode:ct},xt),Rt):Rt}if(ct==="edit"||ct==="update"){var It=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,placeholder:wt},xt));return gt?gt(st,_objectSpread2({mode:ct},xt),It):It}return null};const FieldProgress$1=React$1.forwardRef(FieldProgress);var _excluded$p=["radioType","renderFormItem","mode","render"],FieldRadio=function(et,rt){var st,ct,ut=et.radioType,ft=et.renderFormItem,gt=et.mode,xt=et.render,$t=_objectWithoutProperties$2(et,_excluded$p),_t=reactExports.useContext(ConfigProvider$1.ConfigContext),wt=_t.getPrefixCls,Tt=wt("pro-field-radio"),Rt=useFieldFetchData($t),It=_slicedToArray$3(Rt,3),At=It[0],jt=It[1],Nt=It[2],kt=reactExports.useRef(),Ft=(st=Form.Item)===null||st===void 0||(ct=st.useStatus)===null||ct===void 0?void 0:ct.call(st);reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},kt.current||{}),{},{fetchData:function(ur){return Nt(ur)}})},[Nt]);var Ht=useStyle$i("FieldRadioRadio",function(cr){return _defineProperty$c(_defineProperty$c(_defineProperty$c({},".".concat(Tt,"-error"),{span:{color:cr.colorError}}),".".concat(Tt,"-warning"),{span:{color:cr.colorWarning}}),".".concat(Tt,"-vertical"),_defineProperty$c({},"".concat(cr.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),Wt=Ht.wrapSSR,Vt=Ht.hashId;if(At)return jsxRuntimeExports.jsx(Spin$1,{size:"small"});if(gt==="read"){var qt=jt!=null&&jt.length?jt==null?void 0:jt.reduce(function(cr,ur){var fr;return _objectSpread2(_objectSpread2({},cr),{},_defineProperty$c({},(fr=ur.value)!==null&&fr!==void 0?fr:"",ur.label))},{}):void 0,Xt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:proFieldParsingText($t.text,objectToMap($t.valueEnum||qt))});if(xt){var Gt;return(Gt=xt($t.text,_objectSpread2({mode:gt},$t.fieldProps),Xt))!==null&&Gt!==void 0?Gt:null}return Xt}if(gt==="edit"){var Zt,er=Wt(jsxRuntimeExports.jsx(Radio$2.Group,_objectSpread2(_objectSpread2({ref:kt,optionType:ut},$t.fieldProps),{},{className:classNames((Zt=$t.fieldProps)===null||Zt===void 0?void 0:Zt.className,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-error"),(Ft==null?void 0:Ft.status)==="error"),"".concat(Tt,"-warning"),(Ft==null?void 0:Ft.status)==="warning"),Vt,"".concat(Tt,"-").concat($t.fieldProps.layout||"horizontal")),options:jt})));if(ft){var lr;return(lr=ft($t.text,_objectSpread2(_objectSpread2({mode:gt},$t.fieldProps),{},{options:jt,loading:At}),er))!==null&&lr!==void 0?lr:null}return er}return null};const FieldRadio$1=React$1.forwardRef(FieldRadio);var FieldRangePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.light,ft=et.label,gt=et.format,xt=et.render,$t=et.picker,_t=et.renderFormItem,wt=et.plain,Tt=et.showTime,Rt=et.lightLabel,It=et.bordered,At=et.fieldProps,jt=useIntl$1(),Nt=Array.isArray(st)?st:[],kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1],Wt=React$1.useState(!1),Vt=_slicedToArray$3(Wt,2),qt=Vt[0],Xt=Vt[1],Gt=reactExports.useCallback(function(hr){if(typeof(At==null?void 0:At.format)=="function"){var pr;return At==null||(pr=At.format)===null||pr===void 0?void 0:pr.call(At,hr)}return(At==null?void 0:At.format)||gt||"YYYY-MM-DD"},[At,gt]),Zt=Ft?dayjs(Ft).format(Gt(dayjs(Ft))):"",er=Ht?dayjs(Ht).format(Gt(dayjs(Ht))):"";if(ct==="read"){var lr=jsxRuntimeExports.jsxs("div",{ref:rt,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[jsxRuntimeExports.jsx("div",{children:Zt||"-"}),jsxRuntimeExports.jsx("div",{children:er||"-"})]});return xt?xt(st,_objectSpread2({mode:ct},At),jsxRuntimeExports.jsx("span",{children:lr})):lr}if(ct==="edit"||ct==="update"){var cr=parseValueToDay(At.value),ur;if(ut){var fr;ur=jsxRuntimeExports.jsx(FieldLabel,{label:ft,onClick:function(){var pr;At==null||(pr=At.onOpenChange)===null||pr===void 0||pr.call(At,!0),Xt(!0)},style:cr?{paddingInlineEnd:0}:void 0,disabled:At.disabled,value:cr||qt?jsxRuntimeExports.jsx(DatePicker$2.RangePicker,_objectSpread2(_objectSpread2({picker:$t,showTime:Tt,format:gt,bordered:!1},At),{},{placeholder:(fr=At.placeholder)!==null&&fr!==void 0?fr:[jt.getMessage("tableForm.selectPlaceholder","请选择"),jt.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var pr;Xt(!1),At==null||(pr=At.onClear)===null||pr===void 0||pr.call(At)},value:cr,onOpenChange:function(pr){var dr;cr&&Xt(pr),At==null||(dr=At.onOpenChange)===null||dr===void 0||dr.call(At,pr)}})):null,allowClear:!1,bordered:It,ref:Rt,downIcon:cr||qt?!1:void 0})}else ur=jsxRuntimeExports.jsx(DatePicker$2.RangePicker,_objectSpread2(_objectSpread2({ref:rt,format:gt,showTime:Tt,placeholder:[jt.getMessage("tableForm.selectPlaceholder","请选择"),jt.getMessage("tableForm.selectPlaceholder","请选择")],bordered:wt===void 0},At),{},{value:cr}));return _t?_t(st,_objectSpread2({mode:ct},At),ur):ur}return null};const FieldRangePicker$1=React$1.forwardRef(FieldRangePicker);var FieldRate=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;if(ct==="read"){var xt=jsxRuntimeExports.jsx(Rate$1,_objectSpread2(_objectSpread2({allowHalf:!0,disabled:!0,ref:rt},gt),{},{value:st}));return ut?ut(st,_objectSpread2({mode:ct},gt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):xt}if(ct==="edit"||ct==="update"){var $t=jsxRuntimeExports.jsx(Rate$1,_objectSpread2({allowHalf:!0,ref:rt},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),$t):$t}return null};const FieldRate$1=React$1.forwardRef(FieldRate);function formatSecond(_e){var et="",rt=Math.floor(_e/86400),st=Math.floor(_e/3600%24),ct=Math.floor(_e/60%60),ut=Math.floor(_e%60);return et="".concat(ut,"秒"),ct>0&&(et="".concat(ct,"分钟").concat(et)),st>0&&(et="".concat(st,"小时").concat(et)),rt>0&&(et="".concat(rt,"天").concat(et)),et}var Second=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.placeholder,$t=useIntl$1(),_t=xt||$t.getMessage("tableForm.inputPlaceholder","请输入");if(ct==="read"){var wt=formatSecond(Number(st)),Tt=jsxRuntimeExports.jsx("span",{ref:rt,children:wt});return ut?ut(st,_objectSpread2({mode:ct},gt),Tt):Tt}if(ct==="edit"||ct==="update"){var Rt=jsxRuntimeExports.jsx(InputNumber$1,_objectSpread2({ref:rt,min:0,style:{width:"100%"},placeholder:_t},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),Rt):Rt}return null};const FieldSecond=React$1.forwardRef(Second);var _excluded$o=["mode","render","renderFormItem","fieldProps","emptyText"],FieldSegmented=function(et,rt){var st=et.mode,ct=et.render,ut=et.renderFormItem,ft=et.fieldProps,gt=et.emptyText,xt=gt===void 0?"-":gt,$t=_objectWithoutProperties$2(et,_excluded$o),_t=reactExports.useRef(),wt=useFieldFetchData(et),Tt=_slicedToArray$3(wt,3),Rt=Tt[0],It=Tt[1],At=Tt[2];if(reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},_t.current||{}),{},{fetchData:function(Wt){return At(Wt)}})},[At]),Rt)return jsxRuntimeExports.jsx(Spin$1,{size:"small"});if(st==="read"){var jt=It!=null&&It.length?It==null?void 0:It.reduce(function(Ht,Wt){var Vt;return _objectSpread2(_objectSpread2({},Ht),{},_defineProperty$c({},(Vt=Wt.value)!==null&&Vt!==void 0?Vt:"",Wt.label))},{}):void 0,Nt=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:proFieldParsingText($t.text,objectToMap($t.valueEnum||jt))});if(ct){var kt;return(kt=ct($t.text,_objectSpread2({mode:st},ft),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nt})))!==null&&kt!==void 0?kt:xt}return Nt}if(st==="edit"||st==="update"){var Ft=jsxRuntimeExports.jsx(Segmented$1,_objectSpread2(_objectSpread2({ref:_t},omit$1(ft||{},["allowClear"])),{},{options:It}));return ut?ut($t.text,_objectSpread2(_objectSpread2({mode:st},ft),{},{options:It,loading:Rt}),Ft):Ft}return null};const FieldSegmented$1=React$1.forwardRef(FieldSegmented);var FieldSlider=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps;if(ct==="read"){var xt=st;return ut?ut(st,_objectSpread2({mode:ct},gt),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})}if(ct==="edit"||ct==="update"){var $t=jsxRuntimeExports.jsx(Slider$1,_objectSpread2(_objectSpread2({ref:rt},gt),{},{style:_objectSpread2({minWidth:120},gt==null?void 0:gt.style)}));return ft?ft(st,_objectSpread2({mode:ct},gt),$t):$t}return null};const FieldSlider$1=React$1.forwardRef(FieldSlider);var FieldSwitch=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.light,gt=et.label,xt=et.renderFormItem,$t=et.fieldProps,_t=useIntl$1(),wt=reactExports.useMemo(function(){var jt,Nt;return st==null||"".concat(st).length<1?"-":st?(jt=$t==null?void 0:$t.checkedChildren)!==null&&jt!==void 0?jt:_t.getMessage("switch.open","打开"):(Nt=$t==null?void 0:$t.unCheckedChildren)!==null&&Nt!==void 0?Nt:_t.getMessage("switch.close","关闭")},[$t==null?void 0:$t.checkedChildren,$t==null?void 0:$t.unCheckedChildren,st]);if(ct==="read")return ut?ut(st,_objectSpread2({mode:ct},$t),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:wt})):wt??"-";if(ct==="edit"||ct==="update"){var Tt,Rt=jsxRuntimeExports.jsx(Switch$1,_objectSpread2(_objectSpread2({ref:rt,size:ft?"small":void 0},omit$1($t,["value"])),{},{checked:(Tt=$t==null?void 0:$t.checked)!==null&&Tt!==void 0?Tt:$t==null?void 0:$t.value}));if(ft){var It=$t.disabled,At=$t.bordered;return jsxRuntimeExports.jsx(FieldLabel,{label:gt,disabled:It,bordered:At,downIcon:!1,value:jsxRuntimeExports.jsx("div",{style:{paddingLeft:8},children:Rt}),allowClear:!1})}return xt?xt(st,_objectSpread2({mode:ct},$t),Rt):Rt}return null};const FieldSwitch$1=React$1.forwardRef(FieldSwitch);var FieldText=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=et.emptyText,$t=xt===void 0?"-":xt,_t=gt||{},wt=_t.autoFocus,Tt=_t.prefix,Rt=Tt===void 0?"":Tt,It=_t.suffix,At=It===void 0?"":It,jt=useIntl$1(),Nt=reactExports.useRef();if(reactExports.useImperativeHandle(rt,function(){return Nt.current},[]),reactExports.useEffect(function(){if(wt){var Vt;(Vt=Nt.current)===null||Vt===void 0||Vt.focus()}},[wt]),ct==="read"){var kt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt,st??$t,At]});if(ut){var Ft;return(Ft=ut(st,_objectSpread2({mode:ct},gt),kt))!==null&&Ft!==void 0?Ft:$t}return kt}if(ct==="edit"||ct==="update"){var Ht=jt.getMessage("tableForm.inputPlaceholder","请输入"),Wt=jsxRuntimeExports.jsx(Input$3,_objectSpread2({ref:Nt,placeholder:Ht,allowClear:!0},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),Wt):Wt}return null};const FieldText$1=React$1.forwardRef(FieldText);var FieldTextAreaReadonly=function(et,rt){var st=et.text,ct=reactExports.useContext(ConfigProvider$1.ConfigContext),ut=ct.getPrefixCls,ft=ut("pro-field-readonly"),gt="".concat(ft,"-textarea"),xt=useStyle$i("TextArea",function(){return _defineProperty$c({},".".concat(gt),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),$t=xt.wrapSSR,_t=xt.hashId;return $t(jsxRuntimeExports.jsx("span",{ref:rt,className:classNames(_t,ft,gt),style:{},children:st??"-"}))};const FieldTextAreaReadonly$1=React$1.forwardRef(FieldTextAreaReadonly);var FieldTextArea=function(et,rt){var st=et.text,ct=et.mode,ut=et.render,ft=et.renderFormItem,gt=et.fieldProps,xt=useIntl$1();if(ct==="read"){var $t=jsxRuntimeExports.jsx(FieldTextAreaReadonly$1,_objectSpread2(_objectSpread2({},et),{},{ref:rt}));return ut?ut(st,_objectSpread2({mode:ct},gt),$t):$t}if(ct==="edit"||ct==="update"){var _t=jsxRuntimeExports.jsx(Input$3.TextArea,_objectSpread2({ref:rt,rows:3,onKeyPress:function(Tt){Tt.key==="Enter"&&Tt.stopPropagation()},placeholder:xt.getMessage("tableForm.inputPlaceholder","请输入")},gt));return ft?ft(st,_objectSpread2({mode:ct},gt),_t):_t}return null};const FieldTextArea$1=React$1.forwardRef(FieldTextArea);var FieldTimePicker=function(et,rt){var st=et.text,ct=et.mode,ut=et.light,ft=et.label,gt=et.format,xt=et.render,$t=et.renderFormItem,_t=et.plain,wt=et.fieldProps,Tt=et.lightLabel,Rt=reactExports.useState(!1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=useIntl$1(),kt=(wt==null?void 0:wt.format)||gt||"HH:mm:ss",Ft=dayjs.isDayjs(st)||typeof st=="number";if(ct==="read"){var Ht=jsxRuntimeExports.jsx("span",{ref:rt,children:st?dayjs(st,Ft?void 0:kt).format(kt):"-"});return xt?xt(st,_objectSpread2({mode:ct},wt),jsxRuntimeExports.jsx("span",{children:Ht})):Ht}if(ct==="edit"||ct==="update"){var Wt,Vt=wt.disabled,qt=wt.value,Xt=parseValueToDay(qt,kt);if(ut){var Gt;Wt=jsxRuntimeExports.jsx(FieldLabel,{onClick:function(){var er;wt==null||(er=wt.onOpenChange)===null||er===void 0||er.call(wt,!0),jt(!0)},style:Xt?{paddingInlineEnd:0}:void 0,label:ft,disabled:Vt,value:Xt||At?jsxRuntimeExports.jsx(TimePicker$2,_objectSpread2(_objectSpread2({bordered:!1,format:gt,ref:rt},wt),{},{placeholder:(Gt=wt.placeholder)!==null&&Gt!==void 0?Gt:Nt.getMessage("tableForm.selectPlaceholder","请选择"),value:Xt,onOpenChange:function(er){var lr;jt(er),wt==null||(lr=wt.onOpenChange)===null||lr===void 0||lr.call(wt,er)},open:At})):null,downIcon:Xt||At?!1:void 0,allowClear:!1,ref:Tt})}else Wt=jsxRuntimeExports.jsx(DatePicker$2.TimePicker,_objectSpread2(_objectSpread2({ref:rt,format:gt,bordered:_t===void 0?!0:!_t},wt),{},{value:Xt}));return $t?$t(st,_objectSpread2({mode:ct},wt),Wt):Wt}return null},FieldTimeRangePickerComponents=function(et,rt){var st=et.text,ct=et.light,ut=et.label,ft=et.mode,gt=et.lightLabel,xt=et.format,$t=et.render,_t=et.renderFormItem,wt=et.plain,Tt=et.fieldProps,Rt=useIntl$1(),It=reactExports.useState(!1),At=_slicedToArray$3(It,2),jt=At[0],Nt=At[1],kt=(Tt==null?void 0:Tt.format)||xt||"HH:mm:ss",Ft=Array.isArray(st)?st:[],Ht=_slicedToArray$3(Ft,2),Wt=Ht[0],Vt=Ht[1],qt=dayjs.isDayjs(Wt)||typeof Wt=="number",Xt=dayjs.isDayjs(Vt)||typeof Vt=="number",Gt=Wt?dayjs(Wt,qt?void 0:kt).format(kt):"",Zt=Vt?dayjs(Vt,Xt?void 0:kt).format(kt):"";if(ft==="read"){var er=jsxRuntimeExports.jsxs("div",{ref:rt,children:[jsxRuntimeExports.jsx("div",{children:Gt||"-"}),jsxRuntimeExports.jsx("div",{children:Zt||"-"})]});return $t?$t(st,_objectSpread2({mode:ft},Tt),jsxRuntimeExports.jsx("span",{children:er})):er}if(ft==="edit"||ft==="update"){var lr=parseValueToDay(Tt.value,kt),cr;if(ct){var ur=Tt.disabled,fr=Tt.placeholder,hr=fr===void 0?[Rt.getMessage("tableForm.selectPlaceholder","请选择"),Rt.getMessage("tableForm.selectPlaceholder","请选择")]:fr;cr=jsxRuntimeExports.jsx(FieldLabel,{onClick:function(){var dr;Tt==null||(dr=Tt.onOpenChange)===null||dr===void 0||dr.call(Tt,!0),Nt(!0)},style:lr?{paddingInlineEnd:0}:void 0,label:ut,disabled:ur,placeholder:hr,value:lr||jt?jsxRuntimeExports.jsx(TimePicker$2.RangePicker,_objectSpread2(_objectSpread2({bordered:!1,format:xt,ref:rt},Tt),{},{placeholder:hr,value:lr,onOpenChange:function(dr){var yr;Nt(dr),Tt==null||(yr=Tt.onOpenChange)===null||yr===void 0||yr.call(Tt,dr)},open:jt})):null,downIcon:lr||jt?!1:void 0,allowClear:!1,ref:gt})}else cr=jsxRuntimeExports.jsx(TimePicker$2.RangePicker,_objectSpread2(_objectSpread2({ref:rt,format:xt,bordered:wt===void 0?!0:!wt},Tt),{},{value:lr}));return _t?_t(st,_objectSpread2({mode:ft},Tt),cr):cr}return null},FieldTimeRangePicker=React$1.forwardRef(FieldTimeRangePickerComponents);const FieldTimePicker$1=React$1.forwardRef(FieldTimePicker);var _excluded$n=["radioType","renderFormItem","mode","light","label","render"],_excluded2$7=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],FieldTreeSelect=function(et,rt){et.radioType;var st=et.renderFormItem,ct=et.mode,ut=et.light,ft=et.label,gt=et.render,xt=_objectWithoutProperties$2(et,_excluded$n),$t=reactExports.useContext(ConfigProvider$1.ConfigContext),_t=$t.getPrefixCls,wt=_t("pro-field-tree-select"),Tt=reactExports.useRef(null),Rt=reactExports.useState(!1),It=_slicedToArray$3(Rt,2),At=It[0],jt=It[1],Nt=xt.fieldProps,kt=Nt.onSearch,Ft=Nt.onClear,Ht=Nt.onChange,Wt=Nt.onBlur,Vt=Nt.showSearch,qt=Nt.autoClearSearchValue;Nt.treeData;var Xt=Nt.fetchDataOnSearch,Gt=Nt.searchValue,Zt=_objectWithoutProperties$2(Nt,_excluded2$7),er=useIntl$1(),lr=useFieldFetchData(_objectSpread2(_objectSpread2({},xt),{},{defaultKeyWords:Gt})),cr=_slicedToArray$3(lr,3),ur=cr[0],fr=cr[1],hr=cr[2],pr=useMergedState(void 0,{onChange:kt,value:Gt}),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1];reactExports.useImperativeHandle(rt,function(){return _objectSpread2(_objectSpread2({},Tt.current||{}),{},{fetchData:function(Fr){return hr(Fr)}})});var br=reactExports.useMemo(function(){if(ct==="read"){var kr=(Zt==null?void 0:Zt.fieldNames)||{},Fr=kr.value,_r=Fr===void 0?"value":Fr,Br=kr.label,Dr=Br===void 0?"label":Br,Xr=kr.children,Kr=Xr===void 0?"children":Xr,Hr=new Map,Vr=function ln(Qr){if(!(Qr!=null&&Qr.length))return Hr;for(var Zr=Qr.length,vn=0;vn4&&(Rt+=7),Tt.add(Rt,rt));return It.diff(At,"week")+1},gt.isoWeekday=function($t){return this.$utils().u($t)?this.day()||7:this.day(this.day()%7?$t:$t-7)};var xt=gt.startOf;gt.startOf=function($t,_t){var wt=this.$utils(),Tt=!!wt.u(_t)||_t;return wt.p($t)==="isoweek"?Tt?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):xt.bind(this)($t,_t)}}})})(isoWeek$1);var isoWeekExports=isoWeek$1.exports;const isoWeek=getDefaultExportFromCjs(isoWeekExports);var _excluded$m=["fieldProps"],_excluded2$6=["fieldProps"],_excluded3$2=["fieldProps"],_excluded4$1=["fieldProps"],_excluded5=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],_excluded6=["placeholder"];dayjs.extend(localeData$1);dayjs.extend(advancedFormat);dayjs.extend(isoWeek);dayjs.extend(weekOfYear$1);dayjs.extend(weekday);var defaultRenderTextByObject=function(et,rt,st){var ct=pickProProps(st.fieldProps);return rt.type==="progress"?jsxRuntimeExports.jsx(FieldProgress$1,_objectSpread2(_objectSpread2({},st),{},{text:et,fieldProps:_objectSpread2({status:rt.status?rt.status:void 0},ct)})):rt.type==="money"?jsxRuntimeExports.jsx(FieldMoney$1,_objectSpread2(_objectSpread2({locale:rt.locale},st),{},{fieldProps:ct,text:et,moneySymbol:rt.moneySymbol})):rt.type==="percent"?jsxRuntimeExports.jsx(FieldPercent$1,_objectSpread2(_objectSpread2({},st),{},{text:et,showSymbol:rt.showSymbol,precision:rt.precision,fieldProps:ct,showColor:rt.showColor})):rt.type==="image"?jsxRuntimeExports.jsx(FieldImage$1,_objectSpread2(_objectSpread2({},st),{},{text:et,width:rt.width})):et},defaultRenderText=function(et,rt,st,ct){var ut=st.mode,ft=ut===void 0?"read":ut,gt=st.emptyText,xt=gt===void 0?"-":gt;if(xt!==!1&&ft==="read"&&rt!=="option"&&rt!=="switch"&&typeof et!="boolean"&&typeof et!="number"&&!et){var $t=st.fieldProps,_t=st.render;return _t?_t(et,_objectSpread2({mode:ft},$t),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:xt})}if(delete st.emptyText,_typeof$e(rt)==="object")return defaultRenderTextByObject(et,rt,st);var wt=ct&&ct[rt];if(wt){if(delete st.ref,ft==="read"){var Tt;return(Tt=wt.render)===null||Tt===void 0?void 0:Tt.call(wt,et,_objectSpread2(_objectSpread2({text:et},st),{},{mode:ft||"read"}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et}))}if(ft==="update"||ft==="edit"){var Rt;return(Rt=wt.renderFormItem)===null||Rt===void 0?void 0:Rt.call(wt,et,_objectSpread2({text:et},st),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et}))}}if(rt==="money")return jsxRuntimeExports.jsx(FieldMoney$1,_objectSpread2(_objectSpread2({},st),{},{text:et}));if(rt==="date")return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD"},st))});if(rt==="dateWeek")return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-wo",picker:"week"},st))});if(rt==="dateWeekRange"){var It=st.fieldProps,At=_objectWithoutProperties$2(st,_excluded$m);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-W",showTime:!0,fieldProps:_objectSpread2({picker:"week"},It)},At))})}if(rt==="dateMonthRange"){var jt=st.fieldProps,Nt=_objectWithoutProperties$2(st,_excluded2$6);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM",showTime:!0,fieldProps:_objectSpread2({picker:"month"},jt)},Nt))})}if(rt==="dateQuarterRange"){var kt=st.fieldProps,Ft=_objectWithoutProperties$2(st,_excluded3$2);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-Q",showTime:!0,fieldProps:_objectSpread2({picker:"quarter"},kt)},Ft))})}if(rt==="dateYearRange"){var Ht=st.fieldProps,Wt=_objectWithoutProperties$2(st,_excluded4$1);return jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY",showTime:!0,fieldProps:_objectSpread2({picker:"year"},Ht)},Wt))})}return rt==="dateMonth"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM",picker:"month"},st))}):rt==="dateQuarter"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-[Q]Q",picker:"quarter"},st))}):rt==="dateYear"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY",picker:"year"},st))}):rt==="dateRange"?jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD"},st)):rt==="dateTime"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldDatePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},st))}):rt==="dateTimeRange"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldRangePicker$1,_objectSpread2({text:et,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},st))}):rt==="time"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldTimePicker$1,_objectSpread2({text:et,format:"HH:mm:ss"},st))}):rt==="timeRange"?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldTimeRangePicker,_objectSpread2({text:et,format:"HH:mm:ss"},st))}):rt==="fromNow"?jsxRuntimeExports.jsx(FieldFromNow$1,_objectSpread2({text:et},st)):rt==="index"?jsxRuntimeExports.jsx(FieldIndexColumn,{children:et+1}):rt==="indexBorder"?jsxRuntimeExports.jsx(FieldIndexColumn,{border:!0,children:et+1}):rt==="progress"?jsxRuntimeExports.jsx(FieldProgress$1,_objectSpread2(_objectSpread2({},st),{},{text:et})):rt==="percent"?jsxRuntimeExports.jsx(FieldPercent$1,_objectSpread2({text:et},st)):rt==="avatar"&&typeof et=="string"&&st.mode==="read"?jsxRuntimeExports.jsx(Avatar$2,{src:et,size:22,shape:"circle"}):rt==="code"?jsxRuntimeExports.jsx(FieldCode$1,_objectSpread2({text:et},st)):rt==="jsonCode"?jsxRuntimeExports.jsx(FieldCode$1,_objectSpread2({text:et,language:"json"},st)):rt==="textarea"?jsxRuntimeExports.jsx(FieldTextArea$1,_objectSpread2({text:et},st)):rt==="digit"?jsxRuntimeExports.jsx(FieldDigit$1,_objectSpread2({text:et},st)):rt==="digitRange"?jsxRuntimeExports.jsx(FieldDigitRange$1,_objectSpread2({text:et},st)):rt==="second"?jsxRuntimeExports.jsx(FieldSecond,_objectSpread2({text:et},st)):rt==="select"||rt==="text"&&(st.valueEnum||st.request)?jsxRuntimeExports.jsx(FieldHOC,{isLight:st.light,children:jsxRuntimeExports.jsx(FieldSelect$1,_objectSpread2({text:et},st))}):rt==="checkbox"?jsxRuntimeExports.jsx(FieldCheckbox$1,_objectSpread2({text:et},st)):rt==="radio"?jsxRuntimeExports.jsx(FieldRadio$1,_objectSpread2({text:et},st)):rt==="radioButton"?jsxRuntimeExports.jsx(FieldRadio$1,_objectSpread2({radioType:"button",text:et},st)):rt==="rate"?jsxRuntimeExports.jsx(FieldRate$1,_objectSpread2({text:et},st)):rt==="slider"?jsxRuntimeExports.jsx(FieldSlider$1,_objectSpread2({text:et},st)):rt==="switch"?jsxRuntimeExports.jsx(FieldSwitch$1,_objectSpread2({text:et},st)):rt==="option"?jsxRuntimeExports.jsx(FieldOptions$1,_objectSpread2({text:et},st)):rt==="password"?jsxRuntimeExports.jsx(FieldPassword$1,_objectSpread2({text:et},st)):rt==="image"?jsxRuntimeExports.jsx(FieldImage$1,_objectSpread2({text:et},st)):rt==="cascader"?jsxRuntimeExports.jsx(FieldCascader$1,_objectSpread2({text:et},st)):rt==="treeSelect"?jsxRuntimeExports.jsx(FieldTreeSelect$1,_objectSpread2({text:et},st)):rt==="color"?jsxRuntimeExports.jsx(FieldColorPicker$1,_objectSpread2({text:et},st)):rt==="segmented"?jsxRuntimeExports.jsx(FieldSegmented$1,_objectSpread2({text:et},st)):jsxRuntimeExports.jsx(FieldText$1,_objectSpread2({text:et},st))},ProFieldComponent=function(et,rt){var st,ct,ut,ft,gt,xt=et.text,$t=et.valueType,_t=$t===void 0?"text":$t,wt=et.mode,Tt=wt===void 0?"read":wt,Rt=et.onChange,It=et.renderFormItem,At=et.value,jt=et.readonly,Nt=et.fieldProps,kt=_objectWithoutProperties$2(et,_excluded5),Ft=reactExports.useContext(ProConfigContext),Ht=useRefFunction(function(){for(var qt,Xt=arguments.length,Gt=new Array(Xt),Zt=0;Zt=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep$1*et:Math.round(_e.h)+hueStep$1*et:st=rt?Math.round(_e.h)+hueStep$1*et:Math.round(_e.h)-hueStep$1*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation$1(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep$1*et:et===darkColorCount$1?st=_e.s+saturationStep$1:st=_e.s+saturationStep2$1*et,st>1&&(st=1),rt&&et===lightColorCount$1&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue$1(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1$1*et:st=_e.v-brightnessStep2$1*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$3(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount$1;ct>0;ct-=1){var ut=toHsv$1(st),ft=toHex$1(inputToRGB$1({h:getHue$1(ut,ct,!0),s:getSaturation$1(ut,ct,!0),v:getValue$1(ut,ct,!0)}));rt.push(ft)}rt.push(toHex$1(st));for(var gt=1;gt<=darkColorCount$1;gt+=1){var xt=toHsv$1(st),$t=toHex$1(inputToRGB$1({h:getHue$1(xt,gt),s:getSaturation$1(xt,gt),v:getValue$1(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap$1.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex$1(mix$1(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors$1={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"},presetPalettes$1={},presetDarkPalettes$1={};Object.keys(presetPrimaryColors$1).forEach(function(_e){presetPalettes$1[_e]=generate$3(presetPrimaryColors$1[_e]),presetPalettes$1[_e].primary=presetPalettes$1[_e][5],presetDarkPalettes$1[_e]=generate$3(presetPrimaryColors$1[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes$1[_e].primary=presetDarkPalettes$1[_e][5]});var blue$1=presetPalettes$1.blue;function camelCase$1(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$3(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition$1(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs$1(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase$1(rt)]=st}return et},{})}function generate$2(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs$1(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate$2(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs$1(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate$2(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor$1(_e){return generate$3(_e)[0]}function normalizeTwoToneColors$1(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var iconStyles$1=` .anticon { display: inline-block; color: inherit; @@ -686,7 +701,7 @@ ${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur) transform: rotate(360deg); } } -`,useInsertStyles$1=function(et){var rt=reactExports.useContext(Context$4),st=rt.csp,ct=rt.prefixCls,ut=iconStyles$1;ct&&(ut=ut.replace(/anticon/g,ct)),reactExports.useEffect(function(){var ft=et.current,gt=getShadowRoot$1(ft);updateCSS(ut,"@ant-design-icons",{prepend:!0,csp:st,attachTo:gt})},[])},_excluded$j=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$1(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$1.primaryColor=et,twoToneColorPalette$1.secondaryColor=rt||getSecondaryColor$1(et),twoToneColorPalette$1.calculated=!!rt}function getTwoToneColors$1(){return _objectSpread2({},twoToneColorPalette$1)}var IconBase$2=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$j),$t=reactExports.useRef(),_t=twoToneColorPalette$1;if(ft&&(_t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$1(ft)}),useInsertStyles$1($t),warning$3(isIconDefinition$1(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$1(rt))return null;var wt=rt;return wt&&typeof wt.icon=="function"&&(wt=_objectSpread2(_objectSpread2({},wt),{},{icon:wt.icon(_t.primaryColor,_t.secondaryColor)})),generate$2(wt.icon,"svg-".concat(wt.name),_objectSpread2(_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":wt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt),{},{ref:$t}))};IconBase$2.displayName="IconReact";IconBase$2.getTwoToneColors=getTwoToneColors$1;IconBase$2.setTwoToneColors=setTwoToneColors$1;const ReactIcon$1=IconBase$2;function setTwoToneColor$1(_e){var et=normalizeTwoToneColors$1(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$1.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$1(){var _e=ReactIcon$1.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$i=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$1(blue$1.primary);var Icon$4=reactExports.forwardRef(function(_e,et){var rt=_e.className,st=_e.icon,ct=_e.spin,ut=_e.rotate,ft=_e.tabIndex,gt=_e.onClick,xt=_e.twoToneColor,$t=_objectWithoutProperties$2(_e,_excluded$i),_t=reactExports.useContext(Context$4),wt=_t.prefixCls,Tt=wt===void 0?"anticon":wt,Rt=_t.rootClassName,It=classNames(Rt,Tt,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-").concat(st.name),!!st.name),"".concat(Tt,"-spin"),!!ct||st.name==="loading"),rt),At=ft;At===void 0&>&&(At=-1);var jt=ut?{msTransform:"rotate(".concat(ut,"deg)"),transform:"rotate(".concat(ut,"deg)")}:void 0,Nt=normalizeTwoToneColors$1(xt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];return reactExports.createElement("span",_extends$b({role:"img","aria-label":st.name},$t,{ref:et,tabIndex:At,onClick:gt,className:It}),reactExports.createElement(ReactIcon$1,{icon:st,primaryColor:Ft,secondaryColor:Ht,style:jt}))});Icon$4.displayName="AntdIcon";Icon$4.getTwoToneColor=getTwoToneColor$1;Icon$4.setTwoToneColor=setTwoToneColor$1;const AntdIcon$2=Icon$4;var RightOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$2,_extends$b({},et,{ref:rt,icon:RightOutlinedSvg}))};const RightOutlined$4=reactExports.forwardRef(RightOutlined$3);var FormListContext=React$1.createContext({}),_excluded$h=["name","originDependencies","children","ignoreFormListField"],ProFormDependency=function(et){var rt=et.name,st=et.originDependencies,ct=st===void 0?rt:st,ut=et.children,ft=et.ignoreFormListField,gt=_objectWithoutProperties$2(et,_excluded$h),xt=reactExports.useContext(ProFormContext),$t=reactExports.useContext(FormListContext),_t=reactExports.useMemo(function(){return rt.map(function(wt){var Tt,Rt=[wt];return!ft&&$t.name!==void 0&&(Tt=$t.listName)!==null&&Tt!==void 0&&Tt.length&&Rt.unshift($t.listName),Rt.flat(1)})},[$t.listName,$t.name,ft,rt==null?void 0:rt.toString()]);return jsxRuntimeExports.jsx(Form.Item,_objectSpread2(_objectSpread2({},gt),{},{noStyle:!0,shouldUpdate:function(Tt,Rt,It){if(typeof gt.shouldUpdate=="boolean")return gt.shouldUpdate;if(typeof gt.shouldUpdate=="function"){var At;return(At=gt.shouldUpdate)===null||At===void 0?void 0:At.call(gt,Tt,Rt,It)}return _t.some(function(jt){return!isDeepEqualReact(get$7(Tt,jt),get$7(Rt,jt))})},children:function(Tt){for(var Rt={},It=0;It div".concat(et.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"block",width:"100%"},"".concat(et.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(et.componentCls,"-container"),{paddingInlineStart:16}),"".concat(et.antCls,"-space-item,").concat(et.antCls,"-form-item"),{width:"100%"}),"".concat(et.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function useStyle$d(_e){return useStyle$i("ProFormGroup",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$1(rt)]})}var Group=React$1.forwardRef(function(_e,et){var rt=React$1.useContext(FieldContext$1),st=rt.groupProps,ct=_objectSpread2(_objectSpread2({},st),_e),ut=ct.children,ft=ct.collapsible,gt=ct.defaultCollapsed,xt=ct.style,$t=ct.labelLayout,_t=ct.title,wt=_t===void 0?_e.label:_t,Tt=ct.tooltip,Rt=ct.align,It=Rt===void 0?"start":Rt,At=ct.direction,jt=ct.size,Nt=jt===void 0?32:jt,kt=ct.titleStyle,Ft=ct.titleRender,Ht=ct.spaceProps,Wt=ct.extra,Vt=ct.autoFocus,qt=useMergedState(function(){return gt||!1},{value:_e.collapsed,onChange:_e.onCollapse}),Gt=_slicedToArray$3(qt,2),Xt=Gt[0],Zt=Gt[1],lr=reactExports.useContext(ConfigProvider$1.ConfigContext),er=lr.getPrefixCls,cr=useGridHelpers(_e),ur=cr.ColWrapper,pr=cr.RowWrapper,hr=er("pro-form-group"),fr=useStyle$d(hr),dr=fr.wrapSSR,yr=fr.hashId,$r=ft&&jsxRuntimeExports.jsx(RightOutlined$4,{style:{marginInlineEnd:8},rotate:Xt?void 0:90}),Er=jsxRuntimeExports.jsx(LabelIconTip,{label:$r?jsxRuntimeExports.jsxs("div",{children:[$r,wt]}):wt,tooltip:Tt}),mr=reactExports.useCallback(function(Cr){var Nr=Cr.children;return jsxRuntimeExports.jsx(Space$1,_objectSpread2(_objectSpread2({},Ht),{},{className:classNames("".concat(hr,"-container ").concat(yr),Ht==null?void 0:Ht.className),size:Nt,align:It,direction:At,style:_objectSpread2({rowGap:0},Ht==null?void 0:Ht.style),children:Nr}))},[It,hr,At,yr,Nt,Ht]),Sr=Ft?Ft(Er,_e):Er,Tr=reactExports.useMemo(function(){var Cr=[],Nr=React$1.Children.toArray(ut).map(function(Rr,Pr){var Mr;return React$1.isValidElement(Rr)&&Rr!==null&&Rr!==void 0&&(Mr=Rr.props)!==null&&Mr!==void 0&&Mr.hidden?(Cr.push(Rr),null):Pr===0&&React$1.isValidElement(Rr)&&Vt?React$1.cloneElement(Rr,_objectSpread2(_objectSpread2({},Rr.props),{},{autoFocus:Vt})):Rr});return[jsxRuntimeExports.jsx(pr,{Wrapper:mr,children:Nr},"children"),Cr.length>0?jsxRuntimeExports.jsx("div",{style:{display:"none"},children:Cr}):null]},[ut,pr,mr,Vt]),jr=_slicedToArray$3(Tr,2),Or=jr[0],_r=jr[1];return dr(jsxRuntimeExports.jsx(ur,{children:jsxRuntimeExports.jsxs("div",{className:classNames(hr,yr,_defineProperty$c({},"".concat(hr,"-twoLine"),$t==="twoLine")),style:xt,ref:et,children:[_r,(wt||Tt||Wt)&&jsxRuntimeExports.jsx("div",{className:"".concat(hr,"-title ").concat(yr).trim(),style:kt,onClick:function(){Zt(!Xt)},children:Wt?jsxRuntimeExports.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Sr,jsxRuntimeExports.jsx("span",{onClick:function(Nr){return Nr.stopPropagation()},children:Wt})]}):Sr}),jsxRuntimeExports.jsx("div",{style:{display:ft&&Xt?"none":void 0},children:Or})]})}))});Group.displayName="ProForm-Group";const Group$1=Group;var Submitter=function(et){var rt=useIntl$1(),st=Form.useFormInstance();if(et.render===!1)return null;var ct=et.onSubmit,ut=et.render,ft=et.onReset,gt=et.searchConfig,xt=gt===void 0?{}:gt,$t=et.submitButtonProps,_t=et.resetButtonProps,wt=proTheme.useToken(),Tt=wt.token,Rt=function(){st.submit(),ct==null||ct()},It=function(){st.resetFields(),ft==null||ft()},At=xt.submitText,jt=At===void 0?rt.getMessage("tableForm.submit","提交"):At,Nt=xt.resetText,kt=Nt===void 0?rt.getMessage("tableForm.reset","重置"):Nt,Ft=[];_t!==!1&&Ft.push(reactExports.createElement(Button$3,_objectSpread2(_objectSpread2({},omit$1(_t,["preventDefault"])),{},{key:"rest",onClick:function(Vt){var qt;_t!=null&&_t.preventDefault||It(),_t==null||(qt=_t.onClick)===null||qt===void 0||qt.call(_t,Vt)}}),kt)),$t!==!1&&Ft.push(reactExports.createElement(Button$3,_objectSpread2(_objectSpread2({type:"primary"},omit$1($t||{},["preventDefault"])),{},{key:"submit",onClick:function(Vt){var qt;$t!=null&&$t.preventDefault||Rt(),$t==null||(qt=$t.onClick)===null||qt===void 0||qt.call($t,Vt)}}),jt));var Ht=ut?ut(_objectSpread2(_objectSpread2({},et),{},{form:st,submit:Rt,reset:It}),Ft):Ft;return Ht?Array.isArray(Ht)?(Ht==null?void 0:Ht.length)<1?null:(Ht==null?void 0:Ht.length)===1?Ht[0]:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:Tt.marginXS,alignItems:"center"},children:Ht}):Ht:null};const Submitter$1=Submitter;var _excluded$f=["fieldProps","proFieldProps"],_excluded2$4=["fieldProps","proFieldProps"],valueType="text",ProFormText=function(et){var rt=et.fieldProps,st=et.proFieldProps,ct=_objectWithoutProperties$2(et,_excluded$f);return jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType,fieldProps:rt,filedConfig:{valueType},proFieldProps:st},ct))},PasssWordStrength=function(et){var rt=useMergedState(et.open||!1,{value:et.open,onChange:et.onOpenChange}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return jsxRuntimeExports.jsx(Form.Item,{shouldUpdate:!0,noStyle:!0,children:function(gt){var xt,$t=gt.getFieldValue(et.name||[]);return jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({getPopupContainer:function(wt){return wt&&wt.parentNode?wt.parentNode:wt},onOpenChange:ut,content:jsxRuntimeExports.jsxs("div",{style:{padding:"4px 0"},children:[(xt=et.statusRender)===null||xt===void 0?void 0:xt.call(et,$t),et.strengthText?jsxRuntimeExports.jsx("div",{style:{marginTop:10},children:jsxRuntimeExports.jsx("span",{children:et.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},et.popoverProps),{},{open:ct,children:et.children}))}})},Password=function(et){var rt=et.fieldProps,st=et.proFieldProps,ct=_objectWithoutProperties$2(et,_excluded2$4),ut=reactExports.useState(!1),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return rt!=null&&rt.statusRender&&ct.name?jsxRuntimeExports.jsx(PasssWordStrength,{name:ct.name,statusRender:rt==null?void 0:rt.statusRender,popoverProps:rt==null?void 0:rt.popoverProps,strengthText:rt==null?void 0:rt.strengthText,open:gt,onOpenChange:xt,children:jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType:"password",fieldProps:_objectSpread2(_objectSpread2({},omit$1(rt,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(_t){var wt;rt==null||(wt=rt.onBlur)===null||wt===void 0||wt.call(rt,_t),xt(!1)},onClick:function(_t){var wt;rt==null||(wt=rt.onClick)===null||wt===void 0||wt.call(rt,_t),xt(!0)}}),proFieldProps:st,filedConfig:{valueType}},ct))}):jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType:"password",fieldProps:rt,proFieldProps:st,filedConfig:{valueType}},ct))},WrappedProFormText=ProFormText;WrappedProFormText.Password=Password;WrappedProFormText.displayName="ProFormComponent";const ProFormText$1=WrappedProFormText;var _excluded$e=["fieldProps","proFieldProps"],ProFormTextArea=function(et,rt){var st=et.fieldProps,ct=et.proFieldProps,ut=_objectWithoutProperties$2(et,_excluded$e);return jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({ref:rt,valueType:"textarea",fieldProps:st,proFieldProps:ct},ut))};const ProFormTextArea$1=React$1.forwardRef(ProFormTextArea);var _excluded$d=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],_excluded2$3=["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"],genParams=function(et,rt,st){return et===!0?rt:runFunction(et,rt,st)},covertFormName=function(et){return!et||Array.isArray(et)?et:[et]};function BaseFormComponents(_e){var et,rt=_e.children,st=_e.contentRender,ct=_e.submitter;_e.fieldProps,_e.formItemProps,_e.groupProps;var ut=_e.transformKey,ft=_e.formRef,gt=_e.onInit,xt=_e.form,$t=_e.loading;_e.formComponentType;var _t=_e.extraUrlParams,wt=_t===void 0?{}:_t,Tt=_e.syncToUrl,Rt=_e.onUrlSearchChange,It=_e.onReset,At=_e.omitNil,jt=At===void 0?!0:At;_e.isKeyPressSubmit;var Nt=_e.autoFocusFirstInput,kt=Nt===void 0?!0:Nt,Ft=_e.grid,Ht=_e.rowProps,Wt=_e.colProps,Vt=_objectWithoutProperties$2(_e,_excluded$d),qt=Form.useFormInstance(),Gt=(ConfigProvider$1==null||(et=ConfigProvider$1.useConfig)===null||et===void 0?void 0:et.call(ConfigProvider$1))||{componentSize:"middle"},Xt=Gt.componentSize,Zt=reactExports.useRef(xt||qt),lr=useGridHelpers({grid:Ft,rowProps:Ht}),er=lr.RowWrapper,cr=useRefFunction(function(){return qt}),ur=reactExports.useMemo(function(){return{getFieldsFormatValue:function(Er){var mr;return ut((mr=cr())===null||mr===void 0?void 0:mr.getFieldsValue(Er),jt)},getFieldFormatValue:function(){var Er,mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=covertFormName(mr);if(!Sr)throw new Error("nameList is require");var Tr=(Er=cr())===null||Er===void 0?void 0:Er.getFieldValue(Sr),jr=Sr?set$2({},Sr,Tr):Tr;return get$7(ut(jr,jt,Sr),Sr)},getFieldFormatValueObject:function(Er){var mr,Sr=covertFormName(Er),Tr=(mr=cr())===null||mr===void 0?void 0:mr.getFieldValue(Sr),jr=Sr?set$2({},Sr,Tr):Tr;return ut(jr,jt,Sr)},validateFieldsReturnFormatValue:function(){var $r=_asyncToGenerator(_regeneratorRuntime().mark(function mr(Sr){var Tr,jr,Or;return _regeneratorRuntime().wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:if(!(!Array.isArray(Sr)&&Sr)){Cr.next=2;break}throw new Error("nameList must be array");case 2:return Cr.next=4,(Tr=cr())===null||Tr===void 0?void 0:Tr.validateFields(Sr);case 4:return jr=Cr.sent,Or=ut(jr,jt),Cr.abrupt("return",Or||{});case 7:case"end":return Cr.stop()}},mr)}));function Er(mr){return $r.apply(this,arguments)}return Er}()}},[jt,ut]),pr=reactExports.useMemo(function(){return React$1.Children.toArray(rt).map(function($r,Er){return Er===0&&React$1.isValidElement($r)&&kt?React$1.cloneElement($r,_objectSpread2(_objectSpread2({},$r.props),{},{autoFocus:kt})):$r})},[kt,rt]),hr=reactExports.useMemo(function(){return typeof ct=="boolean"||!ct?{}:ct},[ct]),fr=reactExports.useMemo(function(){if(ct!==!1)return jsxRuntimeExports.jsx(Submitter$1,_objectSpread2(_objectSpread2({},hr),{},{onReset:function(){var Er,mr,Sr=ut((Er=Zt.current)===null||Er===void 0?void 0:Er.getFieldsValue(),jt);if(hr==null||(mr=hr.onReset)===null||mr===void 0||mr.call(hr,Sr),It==null||It(Sr),Tt){var Tr,jr=Object.keys(ut((Tr=Zt.current)===null||Tr===void 0?void 0:Tr.getFieldsValue(),!1)).reduce(function(Or,_r){return _objectSpread2(_objectSpread2({},Or),{},_defineProperty$c({},_r,Sr[_r]||void 0))},wt);Rt(genParams(Tt,jr||{},"set"))}},submitButtonProps:_objectSpread2({loading:$t},hr.submitButtonProps)}),"submitter")},[ct,hr,$t,ut,jt,It,Tt,wt,Rt]),dr=reactExports.useMemo(function(){var $r=Ft?jsxRuntimeExports.jsx(er,{children:pr}):pr;return st?st($r,fr,Zt.current):$r},[Ft,er,pr,st,fr]),yr=usePrevious(_e.initialValues);return reactExports.useEffect(function(){if(!(Tt||!_e.initialValues||!yr||Vt.request)){var $r=isDeepEqualReact(_e.initialValues,yr);noteOnce($r,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),noteOnce($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]),reactExports.useImperativeHandle(ft,function(){return _objectSpread2(_objectSpread2({},Zt.current),ur)},[ur,Zt.current]),reactExports.useEffect(function(){var $r,Er,mr=ut(($r=Zt.current)===null||$r===void 0||(Er=$r.getFieldsValue)===null||Er===void 0?void 0:Er.call($r,!0),jt);gt==null||gt(mr,_objectSpread2(_objectSpread2({},Zt.current),ur))},[]),jsxRuntimeExports.jsx(ProFormContext.Provider,{value:_objectSpread2(_objectSpread2({},ur),{},{formRef:Zt}),children:jsxRuntimeExports.jsx(ConfigProvider$1,{componentSize:Vt.size||Xt,children:jsxRuntimeExports.jsxs(GridContext.Provider,{value:{grid:Ft,colProps:Wt},children:[Vt.component!==!1&&jsxRuntimeExports.jsx("input",{type:"text",style:{display:"none"}}),dr]})})})}var requestFormCacheId=0;function BaseForm(_e){var et=_e.extraUrlParams,rt=et===void 0?{}:et,st=_e.syncToUrl,ct=_e.isKeyPressSubmit,ut=_e.syncToUrlAsImportant,ft=ut===void 0?!1:ut,gt=_e.syncToInitialValues,xt=gt===void 0?!0:gt;_e.children,_e.contentRender,_e.submitter;var $t=_e.fieldProps,_t=_e.proFieldProps,wt=_e.formItemProps,Tt=_e.groupProps,Rt=_e.dateFormatter,It=Rt===void 0?"string":Rt,At=_e.formRef;_e.onInit;var jt=_e.form,Nt=_e.formComponentType;_e.onReset,_e.grid,_e.rowProps,_e.colProps;var kt=_e.omitNil,Ft=kt===void 0?!0:kt,Ht=_e.request,Wt=_e.params,Vt=_e.initialValues,qt=_e.formKey,Gt=qt===void 0?requestFormCacheId:qt;_e.readonly;var Xt=_e.onLoadingChange,Zt=_e.loading,lr=_objectWithoutProperties$2(_e,_excluded2$3),er=reactExports.useRef({}),cr=useMergedState(!1,{onChange:Xt,value:Zt}),ur=_slicedToArray$3(cr,2),pr=ur[0],hr=ur[1],fr=useUrlSearchParams({},{disabled:!st}),dr=_slicedToArray$3(fr,2),yr=dr[0],$r=dr[1],Er=reactExports.useRef(nanoid());reactExports.useEffect(function(){requestFormCacheId+=0},[]);var mr=useFetchData({request:Ht,params:Wt,proFieldKey:Gt}),Sr=_slicedToArray$3(mr,1),Tr=Sr[0],jr=reactExports.useContext(ConfigProvider$1.ConfigContext),Or=jr.getPrefixCls,_r=Or("pro-form"),Cr=useStyle$i("ProForm",function(zr){return _defineProperty$c({},".".concat(_r),_defineProperty$c({},"> div:not(".concat(zr.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}}}))}),Nr=Cr.wrapSSR,Rr=Cr.hashId,Pr=reactExports.useState(function(){return st?genParams(st,yr,"get"):{}}),Mr=_slicedToArray$3(Pr,2),kr=Mr[0],Fr=Mr[1],wr=reactExports.useRef({}),Br=reactExports.useRef({}),Dr=useRefFunction(function(zr,qr,pn){return transformKeySubmitValue(conversionMomentValue(zr,It,Br.current,qr,pn),wr.current,qr)});reactExports.useEffect(function(){xt||Fr({})},[xt]),reactExports.useEffect(function(){st&&$r(genParams(st,_objectSpread2(_objectSpread2({},yr),rt),"set"))},[rt,st]);var Xr=reactExports.useMemo(function(){if(!(typeof window>"u")&&Nt&&["DrawerForm"].includes(Nt))return function(zr){return zr.parentNode||document.body}},[Nt]),Kr=useRefFunction(_asyncToGenerator(_regeneratorRuntime().mark(function zr(){var qr,pn,Qr,Zr,vn,vr;return _regeneratorRuntime().wrap(function(br){for(;;)switch(br.prev=br.next){case 0:if(lr.onFinish){br.next=2;break}return br.abrupt("return");case 2:if(!pr){br.next=4;break}return br.abrupt("return");case 4:return hr(!0),br.prev=5,Qr=er==null||(qr=er.current)===null||qr===void 0||(pn=qr.getFieldsFormatValue)===null||pn===void 0?void 0:pn.call(qr),br.next=9,lr.onFinish(Qr);case 9:st&&(vr=Object.keys(er==null||(Zr=er.current)===null||Zr===void 0||(vn=Zr.getFieldsFormatValue)===null||vn===void 0?void 0:vn.call(Zr,void 0,!1)).reduce(function(Hr,Vr){var Wr;return _objectSpread2(_objectSpread2({},Hr),{},_defineProperty$c({},Vr,(Wr=Qr[Vr])!==null&&Wr!==void 0?Wr:void 0))},rt),Object.keys(yr).forEach(function(Hr){vr[Hr]!==!1&&vr[Hr]!==0&&!vr[Hr]&&(vr[Hr]=void 0)}),$r(genParams(st,vr,"set"))),hr(!1),br.next=17;break;case 13:br.prev=13,br.t0=br.catch(5),console.log(br.t0),hr(!1);case 17:case"end":return br.stop()}},zr,null,[[5,13]])})));return reactExports.useImperativeHandle(At,function(){return er.current},[!Tr]),!Tr&&_e.request?jsxRuntimeExports.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:jsxRuntimeExports.jsx(Spin$1,{})}):Nr(jsxRuntimeExports.jsx(EditOrReadOnlyContext.Provider,{value:{mode:_e.readonly?"read":"edit"},children:jsxRuntimeExports.jsx(ProConfigProvider,{needDeps:!0,children:jsxRuntimeExports.jsx(FieldContext$1.Provider,{value:{formRef:er,fieldProps:$t,proFieldProps:_t,formItemProps:wt,groupProps:Tt,formComponentType:Nt,getPopupContainer:Xr,formKey:Er.current,setFieldValueType:function(qr,pn){var Qr=pn.valueType,Zr=Qr===void 0?"text":Qr,vn=pn.dateFormat,vr=pn.transform;Array.isArray(qr)&&(wr.current=set$2(wr.current,qr,vr),Br.current=set$2(Br.current,qr,{valueType:Zr,dateFormat:vn}))}},children:jsxRuntimeExports.jsx(FormListContext.Provider,{value:{},children:jsxRuntimeExports.jsx(Form,_objectSpread2(_objectSpread2({onKeyPress:function(qr){if(ct&&qr.key==="Enter"){var pn;(pn=er.current)===null||pn===void 0||pn.submit()}},autoComplete:"off",form:jt},omit$1(lr,["labelWidth","autoFocusFirstInput"])),{},{initialValues:ft?_objectSpread2(_objectSpread2(_objectSpread2({},Vt),Tr),kr):_objectSpread2(_objectSpread2(_objectSpread2({},kr),Vt),Tr),onValuesChange:function(qr,pn){var Qr;lr==null||(Qr=lr.onValuesChange)===null||Qr===void 0||Qr.call(lr,Dr(qr,!!Ft),Dr(pn,!!Ft))},className:classNames(_e.className,_r,Rr),onFinish:Kr,children:jsxRuntimeExports.jsx(BaseFormComponents,_objectSpread2(_objectSpread2({transformKey:Dr,autoComplete:"off",loading:pr,onUrlSearchChange:$r},_e),{},{formRef:er,initialValues:_objectSpread2(_objectSpread2({},Vt),Tr)}))}))})})})}))}var genProStyle=function(et){return _defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(et.componentCls,"-container"),_defineProperty$c({},"".concat(et.antCls,"-form-item"),{marginBlockEnd:0}))};function useStyle$c(_e){return useStyle$i("LightWrapper",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle(rt)]})}var _excluded$c=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],LightWrapper=function(et){var rt=et.label,st=et.size,ct=et.disabled,ut=et.onChange,ft=et.className,gt=et.style,xt=et.children,$t=et.valuePropName,_t=et.placeholder,wt=et.labelFormatter,Tt=et.bordered,Rt=et.footerRender,It=et.allowClear,At=et.otherFieldProps,jt=et.valueType,Nt=et.placement,kt=_objectWithoutProperties$2(et,_excluded$c),Ft=reactExports.useContext(ConfigProvider$1.ConfigContext),Ht=Ft.getPrefixCls,Wt=Ht("pro-field-light-wrapper"),Vt=useStyle$c(Wt),qt=Vt.wrapSSR,Gt=Vt.hashId,Xt=reactExports.useState(et[$t]),Zt=_slicedToArray$3(Xt,2),lr=Zt[0],er=Zt[1],cr=useMergedState(!1),ur=_slicedToArray$3(cr,2),pr=ur[0],hr=ur[1],fr=function(){for(var Er,mr=arguments.length,Sr=new Array(mr),Tr=0;Tr=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep*et:Math.round(_e.h)+hueStep*et:st=rt?Math.round(_e.h)+hueStep*et:Math.round(_e.h)-hueStep*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep*et:et===darkColorCount?st=_e.s+saturationStep:st=_e.s+saturationStep2*et,st>1&&(st=1),rt&&et===lightColorCount&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1*et:st=_e.v-brightnessStep2*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$1(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount;ct>0;ct-=1){var ut=toHsv(st),ft=toHex(inputToRGB$1({h:getHue(ut,ct,!0),s:getSaturation(ut,ct,!0),v:getValue(ut,ct,!0)}));rt.push(ft)}rt.push(toHex(st));for(var gt=1;gt<=darkColorCount;gt+=1){var xt=toHsv(st),$t=toHex(inputToRGB$1({h:getHue(xt,gt),s:getSaturation(xt,gt),v:getValue(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex(mix(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors={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"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(_e){presetPalettes[_e]=generate$1(presetPrimaryColors[_e]),presetPalettes[_e].primary=presetPalettes[_e][5],presetDarkPalettes[_e]=generate$1(presetPrimaryColors[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[_e].primary=presetDarkPalettes[_e][5]});var blue=presetPalettes.blue,dynamicCSS={},objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof$2={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(_e){function et(rt){"@babel/helpers - typeof";return _e.exports=et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(rt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_typeof$2)),_typeof$2.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(_e){var et=require_typeof().default;function rt(st,ct){if(et(st)!="object"||!st)return st;var ut=st[Symbol.toPrimitive];if(ut!==void 0){var ft=ut.call(st,ct||"default");if(et(ft)!="object")return ft;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ct==="string"?String:Number)(st)}_e.exports=rt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(_e){var et=require_typeof().default,rt=requireToPrimitive();function st(ct){var ut=rt(ct,"string");return et(ut)=="symbol"?ut:String(ut)}_e.exports=st,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(_e){var et=requireToPropertyKey();function rt(st,ct,ut){return ct=et(ct),ct in st?Object.defineProperty(st,ct,{value:ut,enumerable:!0,configurable:!0,writable:!0}):st[ct]=ut,st}_e.exports=rt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(_e){var et=requireDefineProperty();function rt(ct,ut){var ft=Object.keys(ct);if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols(ct);ut&&(gt=gt.filter(function(xt){return Object.getOwnPropertyDescriptor(ct,xt).enumerable})),ft.push.apply(ft,gt)}return ft}function st(ct){for(var ut=1;ut0&&arguments[0]!==void 0?arguments[0]:{},Ft=kt.mark;return Ft?Ft.startsWith("data-")?Ft:"data-".concat(Ft):ft}function $t(kt){if(kt.attachTo)return kt.attachTo;var Ft=document.querySelector("head");return Ft||document.body}function _t(kt){return kt==="queue"?"prependQueue":kt?"prepend":"append"}function wt(kt){return Array.from((gt.get(kt)||kt).children).filter(function(Ft){return Ft.tagName==="STYLE"})}function Tt(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,rt.default)())return null;var Ht=Ft.csp,Wt=Ft.prepend,Vt=Ft.priority,qt=Vt===void 0?0:Vt,Gt=_t(Wt),Xt=Gt==="prependQueue",Zt=document.createElement("style");Zt.setAttribute(ct,Gt),Xt&&qt&&Zt.setAttribute(ut,"".concat(qt)),Ht!=null&&Ht.nonce&&(Zt.nonce=Ht==null?void 0:Ht.nonce),Zt.innerHTML=kt;var lr=$t(Ft),er=lr.firstChild;if(Wt){if(Xt){var cr=(Ft.styles||wt(lr)).filter(function(ur){if(!["prepend","prependQueue"].includes(ur.getAttribute(ct)))return!1;var pr=Number(ur.getAttribute(ut)||0);return qt>=pr});if(cr.length)return lr.insertBefore(Zt,cr[cr.length-1].nextSibling),Zt}lr.insertBefore(Zt,er)}else lr.appendChild(Zt);return Zt}function Rt(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=$t(Ft);return(Ft.styles||wt(Ht)).find(function(Wt){return Wt.getAttribute(xt(Ft))===kt})}function It(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=Rt(kt,Ft);if(Ht){var Wt=$t(Ft);Wt.removeChild(Ht)}}function At(kt,Ft){var Ht=gt.get(kt);if(!Ht||!(0,st.default)(document,Ht)){var Wt=Tt("",Ft),Vt=Wt.parentNode;gt.set(kt,Vt),kt.removeChild(Wt)}}function jt(){gt.clear()}function Nt(kt,Ft){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wt=$t(Ht),Vt=wt(Wt),qt=(0,et.default)((0,et.default)({},Ht),{},{styles:Vt});At(Wt,qt);var Gt=Rt(Ft,qt);if(Gt){var Xt,Zt;if((Xt=qt.csp)!==null&&Xt!==void 0&&Xt.nonce&&Gt.nonce!==((Zt=qt.csp)===null||Zt===void 0?void 0:Zt.nonce)){var lr;Gt.nonce=(lr=qt.csp)===null||lr===void 0?void 0:lr.nonce}return Gt.innerHTML!==kt&&(Gt.innerHTML=kt),Gt}var er=Tt(kt,qt);return er.setAttribute(xt(qt),Ft),er}return dynamicCSS}var shadow={};Object.defineProperty(shadow,"__esModule",{value:!0});shadow.getShadowRoot=getShadowRoot;shadow.inShadow=inShadow;function getRoot(_e){var et;return _e==null||(et=_e.getRootNode)===null||et===void 0?void 0:et.call(_e)}function inShadow(_e){return getRoot(_e)instanceof ShadowRoot}function getShadowRoot(_e){return inShadow(_e)?getRoot(_e):null}var warning$2={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$2;hasRequiredWarning$1=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.call=ut,warning$2.default=void 0,warning$2.note=st,warning$2.noteOnce=gt,warning$2.preMessage=void 0,warning$2.resetWarned=ct,warning$2.warning=rt,warning$2.warningOnce=ft;var _e={},et=warning$2.preMessage=function($t){};function rt(xt,$t){}function st(xt,$t){}function ct(){_e={}}function ut(xt,$t,_t){!$t&&!_e[_t]&&(xt(!1,_t),_e[_t]=!0)}function ft(xt,$t){ut(rt,xt,$t)}function gt(xt,$t){ut(st,xt,$t)}return ft.preMessage=et,ft.resetWarned=ct,ft.noteOnce=gt,warning$2.default=ft,warning$2}var _excluded$a=["isLoading","pastDelay","timedOut","error","retry"],PageLoading=function(et){et.isLoading,et.pastDelay,et.timedOut,et.error,et.retry;var rt=_objectWithoutProperties$2(et,_excluded$a);return jsxRuntimeExports.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:jsxRuntimeExports.jsx(Spin$1,_objectSpread2({size:"large"},rt))})},IconContext=reactExports.createContext({});const Context$3=IconContext;function camelCase(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$1(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase(rt)]=st}return et},{})}function generate(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor(_e){return generate$1(_e)[0]}function normalizeTwoToneColors(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},iconStyles=` +`,useInsertStyles$1=function(et){var rt=reactExports.useContext(Context$4),st=rt.csp,ct=rt.prefixCls,ut=iconStyles$1;ct&&(ut=ut.replace(/anticon/g,ct)),reactExports.useEffect(function(){var ft=et.current,gt=getShadowRoot$1(ft);updateCSS(ut,"@ant-design-icons",{prepend:!0,csp:st,attachTo:gt})},[])},_excluded$j=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette$1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors$1(_e){var et=_e.primaryColor,rt=_e.secondaryColor;twoToneColorPalette$1.primaryColor=et,twoToneColorPalette$1.secondaryColor=rt||getSecondaryColor$1(et),twoToneColorPalette$1.calculated=!!rt}function getTwoToneColors$1(){return _objectSpread2({},twoToneColorPalette$1)}var IconBase$2=function(et){var rt=et.icon,st=et.className,ct=et.onClick,ut=et.style,ft=et.primaryColor,gt=et.secondaryColor,xt=_objectWithoutProperties$2(et,_excluded$j),$t=reactExports.useRef(),_t=twoToneColorPalette$1;if(ft&&(_t={primaryColor:ft,secondaryColor:gt||getSecondaryColor$1(ft)}),useInsertStyles$1($t),warning$3(isIconDefinition$1(rt),"icon should be icon definiton, but got ".concat(rt)),!isIconDefinition$1(rt))return null;var wt=rt;return wt&&typeof wt.icon=="function"&&(wt=_objectSpread2(_objectSpread2({},wt),{},{icon:wt.icon(_t.primaryColor,_t.secondaryColor)})),generate$2(wt.icon,"svg-".concat(wt.name),_objectSpread2(_objectSpread2({className:st,onClick:ct,style:ut,"data-icon":wt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},xt),{},{ref:$t}))};IconBase$2.displayName="IconReact";IconBase$2.getTwoToneColors=getTwoToneColors$1;IconBase$2.setTwoToneColors=setTwoToneColors$1;const ReactIcon$1=IconBase$2;function setTwoToneColor$1(_e){var et=normalizeTwoToneColors$1(_e),rt=_slicedToArray$3(et,2),st=rt[0],ct=rt[1];return ReactIcon$1.setTwoToneColors({primaryColor:st,secondaryColor:ct})}function getTwoToneColor$1(){var _e=ReactIcon$1.getTwoToneColors();return _e.calculated?[_e.primaryColor,_e.secondaryColor]:_e.primaryColor}var _excluded$i=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor$1(blue$1.primary);var Icon$4=reactExports.forwardRef(function(_e,et){var rt=_e.className,st=_e.icon,ct=_e.spin,ut=_e.rotate,ft=_e.tabIndex,gt=_e.onClick,xt=_e.twoToneColor,$t=_objectWithoutProperties$2(_e,_excluded$i),_t=reactExports.useContext(Context$4),wt=_t.prefixCls,Tt=wt===void 0?"anticon":wt,Rt=_t.rootClassName,It=classNames(Rt,Tt,_defineProperty$c(_defineProperty$c({},"".concat(Tt,"-").concat(st.name),!!st.name),"".concat(Tt,"-spin"),!!ct||st.name==="loading"),rt),At=ft;At===void 0&>&&(At=-1);var jt=ut?{msTransform:"rotate(".concat(ut,"deg)"),transform:"rotate(".concat(ut,"deg)")}:void 0,Nt=normalizeTwoToneColors$1(xt),kt=_slicedToArray$3(Nt,2),Ft=kt[0],Ht=kt[1];return reactExports.createElement("span",_extends$b({role:"img","aria-label":st.name},$t,{ref:et,tabIndex:At,onClick:gt,className:It}),reactExports.createElement(ReactIcon$1,{icon:st,primaryColor:Ft,secondaryColor:Ht,style:jt}))});Icon$4.displayName="AntdIcon";Icon$4.getTwoToneColor=getTwoToneColor$1;Icon$4.setTwoToneColor=setTwoToneColor$1;const AntdIcon$2=Icon$4;var RightOutlined$3=function(et,rt){return reactExports.createElement(AntdIcon$2,_extends$b({},et,{ref:rt,icon:RightOutlinedSvg}))};const RightOutlined$4=reactExports.forwardRef(RightOutlined$3);var FormListContext=React$1.createContext({}),_excluded$h=["name","originDependencies","children","ignoreFormListField"],ProFormDependency=function(et){var rt=et.name,st=et.originDependencies,ct=st===void 0?rt:st,ut=et.children,ft=et.ignoreFormListField,gt=_objectWithoutProperties$2(et,_excluded$h),xt=reactExports.useContext(ProFormContext),$t=reactExports.useContext(FormListContext),_t=reactExports.useMemo(function(){return rt.map(function(wt){var Tt,Rt=[wt];return!ft&&$t.name!==void 0&&(Tt=$t.listName)!==null&&Tt!==void 0&&Tt.length&&Rt.unshift($t.listName),Rt.flat(1)})},[$t.listName,$t.name,ft,rt==null?void 0:rt.toString()]);return jsxRuntimeExports.jsx(Form.Item,_objectSpread2(_objectSpread2({},gt),{},{noStyle:!0,shouldUpdate:function(Tt,Rt,It){if(typeof gt.shouldUpdate=="boolean")return gt.shouldUpdate;if(typeof gt.shouldUpdate=="function"){var At;return(At=gt.shouldUpdate)===null||At===void 0?void 0:At.call(gt,Tt,Rt,It)}return _t.some(function(jt){return!isDeepEqualReact(get$7(Tt,jt),get$7(Rt,jt))})},children:function(Tt){for(var Rt={},It=0;It div".concat(et.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"block",width:"100%"},"".concat(et.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(et.componentCls,"-container"),{paddingInlineStart:16}),"".concat(et.antCls,"-space-item,").concat(et.antCls,"-form-item"),{width:"100%"}),"".concat(et.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function useStyle$d(_e){return useStyle$i("ProFormGroup",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle$1(rt)]})}var Group=React$1.forwardRef(function(_e,et){var rt=React$1.useContext(FieldContext$1),st=rt.groupProps,ct=_objectSpread2(_objectSpread2({},st),_e),ut=ct.children,ft=ct.collapsible,gt=ct.defaultCollapsed,xt=ct.style,$t=ct.labelLayout,_t=ct.title,wt=_t===void 0?_e.label:_t,Tt=ct.tooltip,Rt=ct.align,It=Rt===void 0?"start":Rt,At=ct.direction,jt=ct.size,Nt=jt===void 0?32:jt,kt=ct.titleStyle,Ft=ct.titleRender,Ht=ct.spaceProps,Wt=ct.extra,Vt=ct.autoFocus,qt=useMergedState(function(){return gt||!1},{value:_e.collapsed,onChange:_e.onCollapse}),Xt=_slicedToArray$3(qt,2),Gt=Xt[0],Zt=Xt[1],er=reactExports.useContext(ConfigProvider$1.ConfigContext),lr=er.getPrefixCls,cr=useGridHelpers(_e),ur=cr.ColWrapper,fr=cr.RowWrapper,hr=lr("pro-form-group"),pr=useStyle$d(hr),dr=pr.wrapSSR,yr=pr.hashId,Sr=ft&&jsxRuntimeExports.jsx(RightOutlined$4,{style:{marginInlineEnd:8},rotate:Gt?void 0:90}),br=jsxRuntimeExports.jsx(LabelIconTip,{label:Sr?jsxRuntimeExports.jsxs("div",{children:[Sr,wt]}):wt,tooltip:Tt}),mr=reactExports.useCallback(function(Cr){var Nr=Cr.children;return jsxRuntimeExports.jsx(Space$1,_objectSpread2(_objectSpread2({},Ht),{},{className:classNames("".concat(hr,"-container ").concat(yr),Ht==null?void 0:Ht.className),size:Nt,align:It,direction:At,style:_objectSpread2({rowGap:0},Ht==null?void 0:Ht.style),children:Nr}))},[It,hr,At,yr,Nt,Ht]),Er=Ft?Ft(br,_e):br,Tr=reactExports.useMemo(function(){var Cr=[],Nr=React$1.Children.toArray(ut).map(function(Rr,Pr){var jr;return React$1.isValidElement(Rr)&&Rr!==null&&Rr!==void 0&&(jr=Rr.props)!==null&&jr!==void 0&&jr.hidden?(Cr.push(Rr),null):Pr===0&&React$1.isValidElement(Rr)&&Vt?React$1.cloneElement(Rr,_objectSpread2(_objectSpread2({},Rr.props),{},{autoFocus:Vt})):Rr});return[jsxRuntimeExports.jsx(fr,{Wrapper:mr,children:Nr},"children"),Cr.length>0?jsxRuntimeExports.jsx("div",{style:{display:"none"},children:Cr}):null]},[ut,fr,mr,Vt]),Mr=_slicedToArray$3(Tr,2),Or=Mr[0],wr=Mr[1];return dr(jsxRuntimeExports.jsx(ur,{children:jsxRuntimeExports.jsxs("div",{className:classNames(hr,yr,_defineProperty$c({},"".concat(hr,"-twoLine"),$t==="twoLine")),style:xt,ref:et,children:[wr,(wt||Tt||Wt)&&jsxRuntimeExports.jsx("div",{className:"".concat(hr,"-title ").concat(yr).trim(),style:kt,onClick:function(){Zt(!Gt)},children:Wt?jsxRuntimeExports.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Er,jsxRuntimeExports.jsx("span",{onClick:function(Nr){return Nr.stopPropagation()},children:Wt})]}):Er}),jsxRuntimeExports.jsx("div",{style:{display:ft&&Gt?"none":void 0},children:Or})]})}))});Group.displayName="ProForm-Group";const Group$1=Group;var Submitter=function(et){var rt=useIntl$1(),st=Form.useFormInstance();if(et.render===!1)return null;var ct=et.onSubmit,ut=et.render,ft=et.onReset,gt=et.searchConfig,xt=gt===void 0?{}:gt,$t=et.submitButtonProps,_t=et.resetButtonProps,wt=proTheme.useToken(),Tt=wt.token,Rt=function(){st.submit(),ct==null||ct()},It=function(){st.resetFields(),ft==null||ft()},At=xt.submitText,jt=At===void 0?rt.getMessage("tableForm.submit","提交"):At,Nt=xt.resetText,kt=Nt===void 0?rt.getMessage("tableForm.reset","重置"):Nt,Ft=[];_t!==!1&&Ft.push(reactExports.createElement(Button$3,_objectSpread2(_objectSpread2({},omit$1(_t,["preventDefault"])),{},{key:"rest",onClick:function(Vt){var qt;_t!=null&&_t.preventDefault||It(),_t==null||(qt=_t.onClick)===null||qt===void 0||qt.call(_t,Vt)}}),kt)),$t!==!1&&Ft.push(reactExports.createElement(Button$3,_objectSpread2(_objectSpread2({type:"primary"},omit$1($t||{},["preventDefault"])),{},{key:"submit",onClick:function(Vt){var qt;$t!=null&&$t.preventDefault||Rt(),$t==null||(qt=$t.onClick)===null||qt===void 0||qt.call($t,Vt)}}),jt));var Ht=ut?ut(_objectSpread2(_objectSpread2({},et),{},{form:st,submit:Rt,reset:It}),Ft):Ft;return Ht?Array.isArray(Ht)?(Ht==null?void 0:Ht.length)<1?null:(Ht==null?void 0:Ht.length)===1?Ht[0]:jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:Tt.marginXS,alignItems:"center"},children:Ht}):Ht:null};const Submitter$1=Submitter;var _excluded$f=["fieldProps","proFieldProps"],_excluded2$4=["fieldProps","proFieldProps"],valueType="text",ProFormText=function(et){var rt=et.fieldProps,st=et.proFieldProps,ct=_objectWithoutProperties$2(et,_excluded$f);return jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType,fieldProps:rt,filedConfig:{valueType},proFieldProps:st},ct))},PasssWordStrength=function(et){var rt=useMergedState(et.open||!1,{value:et.open,onChange:et.onOpenChange}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return jsxRuntimeExports.jsx(Form.Item,{shouldUpdate:!0,noStyle:!0,children:function(gt){var xt,$t=gt.getFieldValue(et.name||[]);return jsxRuntimeExports.jsx(Popover$2,_objectSpread2(_objectSpread2({getPopupContainer:function(wt){return wt&&wt.parentNode?wt.parentNode:wt},onOpenChange:ut,content:jsxRuntimeExports.jsxs("div",{style:{padding:"4px 0"},children:[(xt=et.statusRender)===null||xt===void 0?void 0:xt.call(et,$t),et.strengthText?jsxRuntimeExports.jsx("div",{style:{marginTop:10},children:jsxRuntimeExports.jsx("span",{children:et.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},et.popoverProps),{},{open:ct,children:et.children}))}})},Password=function(et){var rt=et.fieldProps,st=et.proFieldProps,ct=_objectWithoutProperties$2(et,_excluded2$4),ut=reactExports.useState(!1),ft=_slicedToArray$3(ut,2),gt=ft[0],xt=ft[1];return rt!=null&&rt.statusRender&&ct.name?jsxRuntimeExports.jsx(PasssWordStrength,{name:ct.name,statusRender:rt==null?void 0:rt.statusRender,popoverProps:rt==null?void 0:rt.popoverProps,strengthText:rt==null?void 0:rt.strengthText,open:gt,onOpenChange:xt,children:jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType:"password",fieldProps:_objectSpread2(_objectSpread2({},omit$1(rt,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(_t){var wt;rt==null||(wt=rt.onBlur)===null||wt===void 0||wt.call(rt,_t),xt(!1)},onClick:function(_t){var wt;rt==null||(wt=rt.onClick)===null||wt===void 0||wt.call(rt,_t),xt(!0)}}),proFieldProps:st,filedConfig:{valueType}},ct))}):jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({valueType:"password",fieldProps:rt,proFieldProps:st,filedConfig:{valueType}},ct))},WrappedProFormText=ProFormText;WrappedProFormText.Password=Password;WrappedProFormText.displayName="ProFormComponent";const ProFormText$1=WrappedProFormText;var _excluded$e=["fieldProps","proFieldProps"],ProFormTextArea=function(et,rt){var st=et.fieldProps,ct=et.proFieldProps,ut=_objectWithoutProperties$2(et,_excluded$e);return jsxRuntimeExports.jsx(ProFormField$1,_objectSpread2({ref:rt,valueType:"textarea",fieldProps:st,proFieldProps:ct},ut))};const ProFormTextArea$1=React$1.forwardRef(ProFormTextArea);var _excluded$d=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],_excluded2$3=["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"],genParams=function(et,rt,st){return et===!0?rt:runFunction(et,rt,st)},covertFormName=function(et){return!et||Array.isArray(et)?et:[et]};function BaseFormComponents(_e){var et,rt=_e.children,st=_e.contentRender,ct=_e.submitter;_e.fieldProps,_e.formItemProps,_e.groupProps;var ut=_e.transformKey,ft=_e.formRef,gt=_e.onInit,xt=_e.form,$t=_e.loading;_e.formComponentType;var _t=_e.extraUrlParams,wt=_t===void 0?{}:_t,Tt=_e.syncToUrl,Rt=_e.onUrlSearchChange,It=_e.onReset,At=_e.omitNil,jt=At===void 0?!0:At;_e.isKeyPressSubmit;var Nt=_e.autoFocusFirstInput,kt=Nt===void 0?!0:Nt,Ft=_e.grid,Ht=_e.rowProps,Wt=_e.colProps,Vt=_objectWithoutProperties$2(_e,_excluded$d),qt=Form.useFormInstance(),Xt=(ConfigProvider$1==null||(et=ConfigProvider$1.useConfig)===null||et===void 0?void 0:et.call(ConfigProvider$1))||{componentSize:"middle"},Gt=Xt.componentSize,Zt=reactExports.useRef(xt||qt),er=useGridHelpers({grid:Ft,rowProps:Ht}),lr=er.RowWrapper,cr=useRefFunction(function(){return qt}),ur=reactExports.useMemo(function(){return{getFieldsFormatValue:function(br){var mr;return ut((mr=cr())===null||mr===void 0?void 0:mr.getFieldsValue(br),jt)},getFieldFormatValue:function(){var br,mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=covertFormName(mr);if(!Er)throw new Error("nameList is require");var Tr=(br=cr())===null||br===void 0?void 0:br.getFieldValue(Er),Mr=Er?set$2({},Er,Tr):Tr;return get$7(ut(Mr,jt,Er),Er)},getFieldFormatValueObject:function(br){var mr,Er=covertFormName(br),Tr=(mr=cr())===null||mr===void 0?void 0:mr.getFieldValue(Er),Mr=Er?set$2({},Er,Tr):Tr;return ut(Mr,jt,Er)},validateFieldsReturnFormatValue:function(){var Sr=_asyncToGenerator(_regeneratorRuntime().mark(function mr(Er){var Tr,Mr,Or;return _regeneratorRuntime().wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:if(!(!Array.isArray(Er)&&Er)){Cr.next=2;break}throw new Error("nameList must be array");case 2:return Cr.next=4,(Tr=cr())===null||Tr===void 0?void 0:Tr.validateFields(Er);case 4:return Mr=Cr.sent,Or=ut(Mr,jt),Cr.abrupt("return",Or||{});case 7:case"end":return Cr.stop()}},mr)}));function br(mr){return Sr.apply(this,arguments)}return br}()}},[jt,ut]),fr=reactExports.useMemo(function(){return React$1.Children.toArray(rt).map(function(Sr,br){return br===0&&React$1.isValidElement(Sr)&&kt?React$1.cloneElement(Sr,_objectSpread2(_objectSpread2({},Sr.props),{},{autoFocus:kt})):Sr})},[kt,rt]),hr=reactExports.useMemo(function(){return typeof ct=="boolean"||!ct?{}:ct},[ct]),pr=reactExports.useMemo(function(){if(ct!==!1)return jsxRuntimeExports.jsx(Submitter$1,_objectSpread2(_objectSpread2({},hr),{},{onReset:function(){var br,mr,Er=ut((br=Zt.current)===null||br===void 0?void 0:br.getFieldsValue(),jt);if(hr==null||(mr=hr.onReset)===null||mr===void 0||mr.call(hr,Er),It==null||It(Er),Tt){var Tr,Mr=Object.keys(ut((Tr=Zt.current)===null||Tr===void 0?void 0:Tr.getFieldsValue(),!1)).reduce(function(Or,wr){return _objectSpread2(_objectSpread2({},Or),{},_defineProperty$c({},wr,Er[wr]||void 0))},wt);Rt(genParams(Tt,Mr||{},"set"))}},submitButtonProps:_objectSpread2({loading:$t},hr.submitButtonProps)}),"submitter")},[ct,hr,$t,ut,jt,It,Tt,wt,Rt]),dr=reactExports.useMemo(function(){var Sr=Ft?jsxRuntimeExports.jsx(lr,{children:fr}):fr;return st?st(Sr,pr,Zt.current):Sr},[Ft,lr,fr,st,pr]),yr=usePrevious(_e.initialValues);return reactExports.useEffect(function(){if(!(Tt||!_e.initialValues||!yr||Vt.request)){var Sr=isDeepEqualReact(_e.initialValues,yr);noteOnce(Sr,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),noteOnce(Sr,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[_e.initialValues]),reactExports.useImperativeHandle(ft,function(){return _objectSpread2(_objectSpread2({},Zt.current),ur)},[ur,Zt.current]),reactExports.useEffect(function(){var Sr,br,mr=ut((Sr=Zt.current)===null||Sr===void 0||(br=Sr.getFieldsValue)===null||br===void 0?void 0:br.call(Sr,!0),jt);gt==null||gt(mr,_objectSpread2(_objectSpread2({},Zt.current),ur))},[]),jsxRuntimeExports.jsx(ProFormContext.Provider,{value:_objectSpread2(_objectSpread2({},ur),{},{formRef:Zt}),children:jsxRuntimeExports.jsx(ConfigProvider$1,{componentSize:Vt.size||Gt,children:jsxRuntimeExports.jsxs(GridContext.Provider,{value:{grid:Ft,colProps:Wt},children:[Vt.component!==!1&&jsxRuntimeExports.jsx("input",{type:"text",style:{display:"none"}}),dr]})})})}var requestFormCacheId=0;function BaseForm(_e){var et=_e.extraUrlParams,rt=et===void 0?{}:et,st=_e.syncToUrl,ct=_e.isKeyPressSubmit,ut=_e.syncToUrlAsImportant,ft=ut===void 0?!1:ut,gt=_e.syncToInitialValues,xt=gt===void 0?!0:gt;_e.children,_e.contentRender,_e.submitter;var $t=_e.fieldProps,_t=_e.proFieldProps,wt=_e.formItemProps,Tt=_e.groupProps,Rt=_e.dateFormatter,It=Rt===void 0?"string":Rt,At=_e.formRef;_e.onInit;var jt=_e.form,Nt=_e.formComponentType;_e.onReset,_e.grid,_e.rowProps,_e.colProps;var kt=_e.omitNil,Ft=kt===void 0?!0:kt,Ht=_e.request,Wt=_e.params,Vt=_e.initialValues,qt=_e.formKey,Xt=qt===void 0?requestFormCacheId:qt;_e.readonly;var Gt=_e.onLoadingChange,Zt=_e.loading,er=_objectWithoutProperties$2(_e,_excluded2$3),lr=reactExports.useRef({}),cr=useMergedState(!1,{onChange:Gt,value:Zt}),ur=_slicedToArray$3(cr,2),fr=ur[0],hr=ur[1],pr=useUrlSearchParams({},{disabled:!st}),dr=_slicedToArray$3(pr,2),yr=dr[0],Sr=dr[1],br=reactExports.useRef(nanoid());reactExports.useEffect(function(){requestFormCacheId+=0},[]);var mr=useFetchData({request:Ht,params:Wt,proFieldKey:Xt}),Er=_slicedToArray$3(mr,1),Tr=Er[0],Mr=reactExports.useContext(ConfigProvider$1.ConfigContext),Or=Mr.getPrefixCls,wr=Or("pro-form"),Cr=useStyle$i("ProForm",function(Hr){return _defineProperty$c({},".".concat(wr),_defineProperty$c({},"> div:not(".concat(Hr.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}}}))}),Nr=Cr.wrapSSR,Rr=Cr.hashId,Pr=reactExports.useState(function(){return st?genParams(st,yr,"get"):{}}),jr=_slicedToArray$3(Pr,2),kr=jr[0],Fr=jr[1],_r=reactExports.useRef({}),Br=reactExports.useRef({}),Dr=useRefFunction(function(Hr,Vr,ln){return transformKeySubmitValue(conversionMomentValue(Hr,It,Br.current,Vr,ln),_r.current,Vr)});reactExports.useEffect(function(){xt||Fr({})},[xt]),reactExports.useEffect(function(){st&&Sr(genParams(st,_objectSpread2(_objectSpread2({},yr),rt),"set"))},[rt,st]);var Xr=reactExports.useMemo(function(){if(!(typeof window>"u")&&Nt&&["DrawerForm"].includes(Nt))return function(Hr){return Hr.parentNode||document.body}},[Nt]),Kr=useRefFunction(_asyncToGenerator(_regeneratorRuntime().mark(function Hr(){var Vr,ln,Qr,Zr,vn,vr;return _regeneratorRuntime().wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:if(er.onFinish){$r.next=2;break}return $r.abrupt("return");case 2:if(!fr){$r.next=4;break}return $r.abrupt("return");case 4:return hr(!0),$r.prev=5,Qr=lr==null||(Vr=lr.current)===null||Vr===void 0||(ln=Vr.getFieldsFormatValue)===null||ln===void 0?void 0:ln.call(Vr),$r.next=9,er.onFinish(Qr);case 9:st&&(vr=Object.keys(lr==null||(Zr=lr.current)===null||Zr===void 0||(vn=Zr.getFieldsFormatValue)===null||vn===void 0?void 0:vn.call(Zr,void 0,!1)).reduce(function(zr,qr){var Wr;return _objectSpread2(_objectSpread2({},zr),{},_defineProperty$c({},qr,(Wr=Qr[qr])!==null&&Wr!==void 0?Wr:void 0))},rt),Object.keys(yr).forEach(function(zr){vr[zr]!==!1&&vr[zr]!==0&&!vr[zr]&&(vr[zr]=void 0)}),Sr(genParams(st,vr,"set"))),hr(!1),$r.next=17;break;case 13:$r.prev=13,$r.t0=$r.catch(5),console.log($r.t0),hr(!1);case 17:case"end":return $r.stop()}},Hr,null,[[5,13]])})));return reactExports.useImperativeHandle(At,function(){return lr.current},[!Tr]),!Tr&&_e.request?jsxRuntimeExports.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:jsxRuntimeExports.jsx(Spin$1,{})}):Nr(jsxRuntimeExports.jsx(EditOrReadOnlyContext.Provider,{value:{mode:_e.readonly?"read":"edit"},children:jsxRuntimeExports.jsx(ProConfigProvider,{needDeps:!0,children:jsxRuntimeExports.jsx(FieldContext$1.Provider,{value:{formRef:lr,fieldProps:$t,proFieldProps:_t,formItemProps:wt,groupProps:Tt,formComponentType:Nt,getPopupContainer:Xr,formKey:br.current,setFieldValueType:function(Vr,ln){var Qr=ln.valueType,Zr=Qr===void 0?"text":Qr,vn=ln.dateFormat,vr=ln.transform;Array.isArray(Vr)&&(_r.current=set$2(_r.current,Vr,vr),Br.current=set$2(Br.current,Vr,{valueType:Zr,dateFormat:vn}))}},children:jsxRuntimeExports.jsx(FormListContext.Provider,{value:{},children:jsxRuntimeExports.jsx(Form,_objectSpread2(_objectSpread2({onKeyPress:function(Vr){if(ct&&Vr.key==="Enter"){var ln;(ln=lr.current)===null||ln===void 0||ln.submit()}},autoComplete:"off",form:jt},omit$1(er,["labelWidth","autoFocusFirstInput"])),{},{initialValues:ft?_objectSpread2(_objectSpread2(_objectSpread2({},Vt),Tr),kr):_objectSpread2(_objectSpread2(_objectSpread2({},kr),Vt),Tr),onValuesChange:function(Vr,ln){var Qr;er==null||(Qr=er.onValuesChange)===null||Qr===void 0||Qr.call(er,Dr(Vr,!!Ft),Dr(ln,!!Ft))},className:classNames(_e.className,wr,Rr),onFinish:Kr,children:jsxRuntimeExports.jsx(BaseFormComponents,_objectSpread2(_objectSpread2({transformKey:Dr,autoComplete:"off",loading:fr,onUrlSearchChange:Sr},_e),{},{formRef:lr,initialValues:_objectSpread2(_objectSpread2({},Vt),Tr)}))}))})})})}))}var genProStyle=function(et){return _defineProperty$c(_defineProperty$c({},"".concat(et.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(et.componentCls,"-container"),_defineProperty$c({},"".concat(et.antCls,"-form-item"),{marginBlockEnd:0}))};function useStyle$c(_e){return useStyle$i("LightWrapper",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProStyle(rt)]})}var _excluded$c=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],LightWrapper=function(et){var rt=et.label,st=et.size,ct=et.disabled,ut=et.onChange,ft=et.className,gt=et.style,xt=et.children,$t=et.valuePropName,_t=et.placeholder,wt=et.labelFormatter,Tt=et.bordered,Rt=et.footerRender,It=et.allowClear,At=et.otherFieldProps,jt=et.valueType,Nt=et.placement,kt=_objectWithoutProperties$2(et,_excluded$c),Ft=reactExports.useContext(ConfigProvider$1.ConfigContext),Ht=Ft.getPrefixCls,Wt=Ht("pro-field-light-wrapper"),Vt=useStyle$c(Wt),qt=Vt.wrapSSR,Xt=Vt.hashId,Gt=reactExports.useState(et[$t]),Zt=_slicedToArray$3(Gt,2),er=Zt[0],lr=Zt[1],cr=useMergedState(!1),ur=_slicedToArray$3(cr,2),fr=ur[0],hr=ur[1],pr=function(){for(var br,mr=arguments.length,Er=new Array(mr),Tr=0;Tr=60&&Math.round(_e.h)<=240?st=rt?Math.round(_e.h)-hueStep*et:Math.round(_e.h)+hueStep*et:st=rt?Math.round(_e.h)+hueStep*et:Math.round(_e.h)-hueStep*et,st<0?st+=360:st>=360&&(st-=360),st}function getSaturation(_e,et,rt){if(_e.h===0&&_e.s===0)return _e.s;var st;return rt?st=_e.s-saturationStep*et:et===darkColorCount?st=_e.s+saturationStep:st=_e.s+saturationStep2*et,st>1&&(st=1),rt&&et===lightColorCount&&st>.1&&(st=.1),st<.06&&(st=.06),Number(st.toFixed(2))}function getValue(_e,et,rt){var st;return rt?st=_e.v+brightnessStep1*et:st=_e.v-brightnessStep2*et,st>1&&(st=1),Number(st.toFixed(2))}function generate$1(_e){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=[],st=inputToRGB$1(_e),ct=lightColorCount;ct>0;ct-=1){var ut=toHsv(st),ft=toHex(inputToRGB$1({h:getHue(ut,ct,!0),s:getSaturation(ut,ct,!0),v:getValue(ut,ct,!0)}));rt.push(ft)}rt.push(toHex(st));for(var gt=1;gt<=darkColorCount;gt+=1){var xt=toHsv(st),$t=toHex(inputToRGB$1({h:getHue(xt,gt),s:getSaturation(xt,gt),v:getValue(xt,gt)}));rt.push($t)}return et.theme==="dark"?darkColorMap.map(function(_t){var wt=_t.index,Tt=_t.opacity,Rt=toHex(mix(inputToRGB$1(et.backgroundColor||"#141414"),inputToRGB$1(rt[wt]),Tt*100));return Rt}):rt}var presetPrimaryColors={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"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(_e){presetPalettes[_e]=generate$1(presetPrimaryColors[_e]),presetPalettes[_e].primary=presetPalettes[_e][5],presetDarkPalettes[_e]=generate$1(presetPrimaryColors[_e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[_e].primary=presetDarkPalettes[_e][5]});var blue=presetPalettes.blue,dynamicCSS={},objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof$2={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(_e){function et(rt){"@babel/helpers - typeof";return _e.exports=et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(rt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_typeof$2)),_typeof$2.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(_e){var et=require_typeof().default;function rt(st,ct){if(et(st)!="object"||!st)return st;var ut=st[Symbol.toPrimitive];if(ut!==void 0){var ft=ut.call(st,ct||"default");if(et(ft)!="object")return ft;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ct==="string"?String:Number)(st)}_e.exports=rt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(_e){var et=require_typeof().default,rt=requireToPrimitive();function st(ct){var ut=rt(ct,"string");return et(ut)=="symbol"?ut:String(ut)}_e.exports=st,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(_e){var et=requireToPropertyKey();function rt(st,ct,ut){return ct=et(ct),ct in st?Object.defineProperty(st,ct,{value:ut,enumerable:!0,configurable:!0,writable:!0}):st[ct]=ut,st}_e.exports=rt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(_e){var et=requireDefineProperty();function rt(ct,ut){var ft=Object.keys(ct);if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols(ct);ut&&(gt=gt.filter(function(xt){return Object.getOwnPropertyDescriptor(ct,xt).enumerable})),ft.push.apply(ft,gt)}return ft}function st(ct){for(var ut=1;ut0&&arguments[0]!==void 0?arguments[0]:{},Ft=kt.mark;return Ft?Ft.startsWith("data-")?Ft:"data-".concat(Ft):ft}function $t(kt){if(kt.attachTo)return kt.attachTo;var Ft=document.querySelector("head");return Ft||document.body}function _t(kt){return kt==="queue"?"prependQueue":kt?"prepend":"append"}function wt(kt){return Array.from((gt.get(kt)||kt).children).filter(function(Ft){return Ft.tagName==="STYLE"})}function Tt(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,rt.default)())return null;var Ht=Ft.csp,Wt=Ft.prepend,Vt=Ft.priority,qt=Vt===void 0?0:Vt,Xt=_t(Wt),Gt=Xt==="prependQueue",Zt=document.createElement("style");Zt.setAttribute(ct,Xt),Gt&&qt&&Zt.setAttribute(ut,"".concat(qt)),Ht!=null&&Ht.nonce&&(Zt.nonce=Ht==null?void 0:Ht.nonce),Zt.innerHTML=kt;var er=$t(Ft),lr=er.firstChild;if(Wt){if(Gt){var cr=(Ft.styles||wt(er)).filter(function(ur){if(!["prepend","prependQueue"].includes(ur.getAttribute(ct)))return!1;var fr=Number(ur.getAttribute(ut)||0);return qt>=fr});if(cr.length)return er.insertBefore(Zt,cr[cr.length-1].nextSibling),Zt}er.insertBefore(Zt,lr)}else er.appendChild(Zt);return Zt}function Rt(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=$t(Ft);return(Ft.styles||wt(Ht)).find(function(Wt){return Wt.getAttribute(xt(Ft))===kt})}function It(kt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=Rt(kt,Ft);if(Ht){var Wt=$t(Ft);Wt.removeChild(Ht)}}function At(kt,Ft){var Ht=gt.get(kt);if(!Ht||!(0,st.default)(document,Ht)){var Wt=Tt("",Ft),Vt=Wt.parentNode;gt.set(kt,Vt),kt.removeChild(Wt)}}function jt(){gt.clear()}function Nt(kt,Ft){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wt=$t(Ht),Vt=wt(Wt),qt=(0,et.default)((0,et.default)({},Ht),{},{styles:Vt});At(Wt,qt);var Xt=Rt(Ft,qt);if(Xt){var Gt,Zt;if((Gt=qt.csp)!==null&&Gt!==void 0&&Gt.nonce&&Xt.nonce!==((Zt=qt.csp)===null||Zt===void 0?void 0:Zt.nonce)){var er;Xt.nonce=(er=qt.csp)===null||er===void 0?void 0:er.nonce}return Xt.innerHTML!==kt&&(Xt.innerHTML=kt),Xt}var lr=Tt(kt,qt);return lr.setAttribute(xt(qt),Ft),lr}return dynamicCSS}var shadow={};Object.defineProperty(shadow,"__esModule",{value:!0});shadow.getShadowRoot=getShadowRoot;shadow.inShadow=inShadow;function getRoot(_e){var et;return _e==null||(et=_e.getRootNode)===null||et===void 0?void 0:et.call(_e)}function inShadow(_e){return getRoot(_e)instanceof ShadowRoot}function getShadowRoot(_e){return inShadow(_e)?getRoot(_e):null}var warning$2={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$2;hasRequiredWarning$1=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.call=ut,warning$2.default=void 0,warning$2.note=st,warning$2.noteOnce=gt,warning$2.preMessage=void 0,warning$2.resetWarned=ct,warning$2.warning=rt,warning$2.warningOnce=ft;var _e={},et=warning$2.preMessage=function($t){};function rt(xt,$t){}function st(xt,$t){}function ct(){_e={}}function ut(xt,$t,_t){!$t&&!_e[_t]&&(xt(!1,_t),_e[_t]=!0)}function ft(xt,$t){ut(rt,xt,$t)}function gt(xt,$t){ut(st,xt,$t)}return ft.preMessage=et,ft.resetWarned=ct,ft.noteOnce=gt,warning$2.default=ft,warning$2}var _excluded$a=["isLoading","pastDelay","timedOut","error","retry"],PageLoading=function(et){et.isLoading,et.pastDelay,et.timedOut,et.error,et.retry;var rt=_objectWithoutProperties$2(et,_excluded$a);return jsxRuntimeExports.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:jsxRuntimeExports.jsx(Spin$1,_objectSpread2({size:"large"},rt))})},IconContext=reactExports.createContext({});const Context$3=IconContext;function camelCase(_e){return _e.replace(/-(.)/g,function(et,rt){return rt.toUpperCase()})}function warning$1(_e,et){warningOnce$1(_e,"[@ant-design/icons] ".concat(et))}function isIconDefinition(_e){return _typeof$e(_e)==="object"&&typeof _e.name=="string"&&typeof _e.theme=="string"&&(_typeof$e(_e.icon)==="object"||typeof _e.icon=="function")}function normalizeAttrs(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_e).reduce(function(et,rt){var st=_e[rt];switch(rt){case"class":et.className=st,delete et.class;break;default:delete et[rt],et[camelCase(rt)]=st}return et},{})}function generate(_e,et,rt){return rt?React$1.createElement(_e.tag,_objectSpread2(_objectSpread2({key:et},normalizeAttrs(_e.attrs)),rt),(_e.children||[]).map(function(st,ct){return generate(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))})):React$1.createElement(_e.tag,_objectSpread2({key:et},normalizeAttrs(_e.attrs)),(_e.children||[]).map(function(st,ct){return generate(st,"".concat(et,"-").concat(_e.tag,"-").concat(ct))}))}function getSecondaryColor(_e){return generate$1(_e)[0]}function normalizeTwoToneColors(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}var svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},iconStyles=` .anticon { display: inline-block; color: inherit; @@ -744,10 +759,10 @@ ${dr}`),pr.pop(),`{${mr}}`}case"number":return isFinite(ur)?String(ur):kt?kt(ur) `).concat(et.antCls,"-menu-item-group > ").concat(et.antCls,"-menu-item-group-list > ").concat(et.antCls,`-menu-item, `).concat(et.antCls,"-menu-item-group > ").concat(et.antCls,"-menu-item-group-list > ").concat(et.antCls,"-menu-submenu > ").concat(et.antCls,`-menu-submenu-title, `).concat(et.antCls,"-menu-submenu > ").concat(et.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(et.antCls,"-menu-item-group > ").concat(et.antCls,"-menu-item-group-list > ").concat(et.antCls,"-menu-submenu-selected > ").concat(et.antCls,`-menu-submenu-title, - `).concat(et.antCls,"-menu-submenu-selected > ").concat(et.antCls,"-menu-submenu-title"),{backgroundColor:ut==null?void 0:ut.colorBgMenuItemSelected,borderRadius:et.borderRadiusLG}),"".concat(et.componentCls,"-group"),_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"flex",flexDirection:"row",alignItems:"center",gap:et.marginXS},"".concat(et.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",_defineProperty$c(_defineProperty$c({minWidth:40,height:40},"".concat(et.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(et.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(et.componentCls,"-group-item-title"),{gap:et.marginXS,height:18,overflow:"hidden"}),"&".concat(et.componentCls,"-item-collapsed-show-title"),_defineProperty$c({lineHeight:"16px",gap:0},"&".concat(et.componentCls,"-item-title-collapsed"),_defineProperty$c(_defineProperty$c({display:"flex"},"".concat(et.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(et.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",_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{fontSize:12,color:et.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:et.colorTextSecondary,fontSize:12,lineHeight:20})),rt.includes("horizontal")?{}:_defineProperty$c({},"".concat(et.antCls,"-menu-submenu").concat(et.antCls,"-menu-submenu-popup"),_defineProperty$c({},"".concat(et.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},_defineProperty$c({},"".concat(et.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function useStyle$7(_e,et){return useStyle$i("ProLayoutBaseMenu"+et,function(rt){var st=_objectSpread2(_objectSpread2({},rt),{},{componentCls:".".concat(_e)});return[genProLayoutBaseMenuStyle(st,et||"inline")]})}var MenuItemTooltip=function(et){var rt=reactExports.useState(et.collapsed),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(!1),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];return reactExports.useEffect(function(){$t(!1),setTimeout(function(){ut(et.collapsed)},400)},[et.collapsed]),et.disable?et.children:jsxRuntimeExports.jsx(Tooltip$1,{title:et.title,open:ct&&et.collapsed?xt:!1,placement:"right",onOpenChange:$t,children:et.children})},IconFont=create$3({scriptUrl:defaultSettings.iconfontUrl}),getIcon=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",st=arguments.length>2?arguments[2]:void 0;if(typeof et=="string"&&et!==""){if(isUrl$1(et)||isImg(et))return jsxRuntimeExports.jsx("img",{width:16,src:et,alt:"icon",className:st},et);if(et.startsWith(rt))return jsxRuntimeExports.jsx(IconFont,{type:et})}return et},getMenuTitleSymbol=function(et){if(et&&typeof et=="string"){var rt=et.substring(0,1).toUpperCase();return rt}return null},MenuUtil=_createClass$7(function _e(et){var rt=this;_classCallCheck$9(this,_e),_defineProperty$c(this,"props",void 0),_defineProperty$c(this,"getNavMenuItems",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1?arguments[1]:void 0,ut=arguments.length>2?arguments[2]:void 0;return st.map(function(ft){return rt.getSubMenuOrItem(ft,ct,ut)}).filter(function(ft){return ft}).flat(1)}),_defineProperty$c(this,"getSubMenuOrItem",function(st,ct,ut){var ft=rt.props,gt=ft.subMenuItemRender,xt=ft.baseClassName,$t=ft.prefixCls,_t=ft.collapsed,wt=ft.menu,Tt=ft.iconPrefixes,Rt=ft.layout,It=(wt==null?void 0:wt.type)==="group"&&Rt!=="top",At=rt.props.token,jt=rt.getIntlName(st),Nt=(st==null?void 0:st.children)||(st==null?void 0:st.routes),kt=It&&ct===0?"group":void 0;if(Array.isArray(Nt)&&Nt.length>0){var Ft,Ht,Wt,Vt,qt,Gt=ct===0||It&&ct===1,Xt=getIcon(st.icon,Tt,"".concat(xt,"-icon ").concat((Ft=rt.props)===null||Ft===void 0?void 0:Ft.hashId)),Zt=_t&&Gt?getMenuTitleSymbol(jt):null,lr=jsxRuntimeExports.jsxs("div",{className:classNames("".concat(xt,"-item-title"),(Ht=rt.props)===null||Ht===void 0?void 0:Ht.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(xt,"-item-title-collapsed"),_t),"".concat(xt,"-item-title-collapsed-level-").concat(ut),_t),"".concat(xt,"-group-item-title"),kt==="group"),"".concat(xt,"-item-collapsed-show-title"),(wt==null?void 0:wt.collapsedShowTitle)&&_t)),children:[kt==="group"&&_t?null:Gt&&Xt?jsxRuntimeExports.jsx("span",{className:"".concat(xt,"-item-icon ").concat((Wt=rt.props)===null||Wt===void 0?void 0:Wt.hashId).trim(),children:Xt}):Zt,jsxRuntimeExports.jsx("span",{className:classNames("".concat(xt,"-item-text"),(Vt=rt.props)===null||Vt===void 0?void 0:Vt.hashId,_defineProperty$c({},"".concat(xt,"-item-text-has-icon"),kt!=="group"&&Gt&&(Xt||Zt))),children:jt})]}),er=gt?gt(_objectSpread2(_objectSpread2({},st),{},{isUrl:!1}),lr,rt.props):lr;if(It&&ct===0&&rt.props.collapsed&&!wt.collapsedShowGroupTitle)return rt.getNavMenuItems(Nt,ct+1,ct);var cr=rt.getNavMenuItems(Nt,ct+1,It&&ct===0&&rt.props.collapsed?ct:ct+1);return[{type:kt,key:st.key||st.path,label:er,onClick:It?void 0:st.onTitleClick,children:cr,className:classNames(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(xt,"-group"),kt==="group"),"".concat(xt,"-submenu"),kt!=="group"),"".concat(xt,"-submenu-has-icon"),kt!=="group"&&Gt&&Xt))},It&&ct===0?{type:"divider",prefixCls:$t,className:"".concat(xt,"-divider"),key:(st.key||st.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:rt.props.collapsed?"4px":"6px 16px",marginBlockStart:rt.props.collapsed?4:8,borderColor:At==null||(qt=At.layout)===null||qt===void 0||(qt=qt.sider)===null||qt===void 0?void 0:qt.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(xt,"-menu-item"),disabled:st.disabled,key:st.key||st.path,onClick:st.onTitleClick,label:rt.getMenuItemPath(st,ct,ut)}}),_defineProperty$c(this,"getIntlName",function(st){var ct=st.name,ut=st.locale,ft=rt.props,gt=ft.menu,xt=ft.formatMessage;return ut&&(gt==null?void 0:gt.locale)!==!1?xt==null?void 0:xt({id:ut,defaultMessage:ct}):ct}),_defineProperty$c(this,"getMenuItemPath",function(st,ct,ut){var ft,gt,xt,$t,_t=rt.conversionPath(st.path||"/"),wt=rt.props,Tt=wt.location,Rt=Tt===void 0?{pathname:"/"}:Tt,It=wt.isMobile,At=wt.onCollapse,jt=wt.menuItemRender,Nt=wt.iconPrefixes,kt=rt.getIntlName(st),Ft=rt.props,Ht=Ft.baseClassName,Wt=Ft.menu,Vt=Ft.collapsed,qt=(Wt==null?void 0:Wt.type)==="group",Gt=ct===0||qt&&ct===1,Xt=Gt?getIcon(st.icon,Nt,"".concat(Ht,"-icon ").concat((ft=rt.props)===null||ft===void 0?void 0:ft.hashId)):null,Zt=Vt&&Gt?getMenuTitleSymbol(kt):null,lr=jsxRuntimeExports.jsxs("div",{className:classNames("".concat(Ht,"-item-title"),(gt=rt.props)===null||gt===void 0?void 0:gt.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ht,"-item-title-collapsed"),Vt),"".concat(Ht,"-item-title-collapsed-level-").concat(ut),Vt),"".concat(Ht,"-item-collapsed-show-title"),(Wt==null?void 0:Wt.collapsedShowTitle)&&Vt)),children:[jsxRuntimeExports.jsx("span",{className:"".concat(Ht,"-item-icon ").concat((xt=rt.props)===null||xt===void 0?void 0:xt.hashId).trim(),style:{display:Zt===null&&!Xt?"none":""},children:Xt||jsxRuntimeExports.jsx("span",{className:"anticon",children:Zt})}),jsxRuntimeExports.jsx("span",{className:classNames("".concat(Ht,"-item-text"),($t=rt.props)===null||$t===void 0?void 0:$t.hashId,_defineProperty$c({},"".concat(Ht,"-item-text-has-icon"),Gt&&(Xt||Zt))),children:kt})]},_t),er=isUrl$1(_t);if(er){var cr,ur,pr;lr=jsxRuntimeExports.jsxs("span",{onClick:function(){var dr,yr;(dr=window)===null||dr===void 0||(yr=dr.open)===null||yr===void 0||yr.call(dr,_t,"_blank")},className:classNames("".concat(Ht,"-item-title"),(cr=rt.props)===null||cr===void 0?void 0:cr.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ht,"-item-title-collapsed"),Vt),"".concat(Ht,"-item-title-collapsed-level-").concat(ut),Vt),"".concat(Ht,"-item-link"),!0),"".concat(Ht,"-item-collapsed-show-title"),(Wt==null?void 0:Wt.collapsedShowTitle)&&Vt)),children:[jsxRuntimeExports.jsx("span",{className:"".concat(Ht,"-item-icon ").concat((ur=rt.props)===null||ur===void 0?void 0:ur.hashId).trim(),style:{display:Zt===null&&!Xt?"none":""},children:Xt||jsxRuntimeExports.jsx("span",{className:"anticon",children:Zt})}),jsxRuntimeExports.jsx("span",{className:classNames("".concat(Ht,"-item-text"),(pr=rt.props)===null||pr===void 0?void 0:pr.hashId,_defineProperty$c({},"".concat(Ht,"-item-text-has-icon"),Gt&&(Xt||Zt))),children:kt})]},_t)}if(jt){var hr=_objectSpread2(_objectSpread2({},st),{},{isUrl:er,itemPath:_t,isMobile:It,replace:_t===Rt.pathname,onClick:function(){return At&&At(!0)},children:void 0});return ct===0?jsxRuntimeExports.jsx(MenuItemTooltip,{collapsed:Vt,title:kt,disable:st.disabledTooltip,children:jt(hr,lr,rt.props)}):jt(hr,lr,rt.props)}return ct===0?jsxRuntimeExports.jsx(MenuItemTooltip,{collapsed:Vt,title:kt,disable:st.disabledTooltip,children:lr}):lr}),_defineProperty$c(this,"conversionPath",function(st){return st&&st.indexOf("http")===0?st:"/".concat(st||"").replace(/\/+/g,"/")}),this.props=et}),getOpenKeysProps=function(et,rt){var st=rt.layout,ct=rt.collapsed,ut={};return et&&!ct&&["side","mix"].includes(st||"mix")&&(ut={openKeys:et}),ut},BaseMenu=function(et){var rt=et.mode,st=et.className,ct=et.handleOpenChange,ut=et.style,ft=et.menuData,gt=et.prefixCls,xt=et.menu,$t=et.matchMenuKeys,_t=et.iconfontUrl,wt=et.selectedKeys,Tt=et.onSelect,Rt=et.menuRenderType,It=et.openKeys,At=reactExports.useContext(ProProvider),jt=At.dark,Nt=At.token,kt="".concat(gt,"-base-menu-").concat(rt),Ft=reactExports.useRef([]),Ht=useMergedState(xt==null?void 0:xt.defaultOpenAll),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1],Gt=useMergedState(function(){return xt!=null&&xt.defaultOpenAll?getOpenKeysFromMenuData(ft)||[]:It===!1?!1:[]},{value:It===!1?void 0:It,onChange:ct}),Xt=_slicedToArray$3(Gt,2),Zt=Xt[0],lr=Xt[1],er=useMergedState([],{value:wt,onChange:Tt?function(mr){Tt&&mr&&Tt(mr)}:void 0}),cr=_slicedToArray$3(er,2),ur=cr[0],pr=cr[1];reactExports.useEffect(function(){xt!=null&&xt.defaultOpenAll||It===!1||$t&&(lr($t),pr($t))},[$t.join("-")]),reactExports.useEffect(function(){_t&&(IconFont=create$3({scriptUrl:_t}))},[_t]),reactExports.useEffect(function(){if($t.join("-")!==(ur||[]).join("-")&&pr($t),!Vt&&It!==!1&&$t.join("-")!==(Zt||[]).join("-")){var mr=$t;(xt==null?void 0:xt.autoClose)===!1&&(mr=Array.from(new Set([].concat(_toConsumableArray$3($t),_toConsumableArray$3(Zt||[]))))),lr(mr)}else xt!=null&&xt.ignoreFlatMenu&&Vt?lr(getOpenKeysFromMenuData(ft)):qt(!1)},[$t.join("-")]);var hr=reactExports.useMemo(function(){return getOpenKeysProps(Zt,et)},[Zt&&Zt.join(","),et.layout,et.collapsed]),fr=useStyle$7(kt,rt),dr=fr.wrapSSR,yr=fr.hashId,$r=reactExports.useMemo(function(){return new MenuUtil(_objectSpread2(_objectSpread2({},et),{},{token:Nt,menuRenderType:Rt,baseClassName:kt,hashId:yr}))},[et,Nt,Rt,kt,yr]);if(xt!=null&&xt.loading)return jsxRuntimeExports.jsx("div",{style:rt!=null&&rt.includes("inline")?{padding:24}:{marginBlockStart:16},children:jsxRuntimeExports.jsx(Skeleton$1,{active:!0,title:!1,paragraph:{rows:rt!=null&&rt.includes("inline")?6:1}})});et.openKeys===!1&&!et.handleOpenChange&&(Ft.current=$t);var Er=et.postMenuData?et.postMenuData(ft):ft;return Er&&(Er==null?void 0:Er.length)<1?null:dr(reactExports.createElement(Menu$1,_objectSpread2(_objectSpread2({},hr),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:rt,inlineIndent:16,defaultOpenKeys:Ft.current,theme:jt?"dark":"light",selectedKeys:ur,style:_objectSpread2({backgroundColor:"transparent",border:"none"},ut),className:classNames(st,yr,kt,_defineProperty$c(_defineProperty$c({},"".concat(kt,"-horizontal"),rt==="horizontal"),"".concat(kt,"-collapsed"),et.collapsed)),items:$r.getNavMenuItems(Er,0,0),onOpenChange:function(Sr){et.collapsed||lr(Sr)}},et.menuProps)))};function useStylish$1(_e,et){var rt=et.stylish,st=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutSiderMenuStylish",function(ct){var ut=_objectSpread2(_objectSpread2({},ct),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:st});return rt?[_defineProperty$c({},"div".concat(ct.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(ut.componentCls),rt==null?void 0:rt(ut)))]:[]})}var _excluded$4=["title","render"],_SafetyWarningProvider=React$1.memo(function(_e){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e.children})}),Sider$6=Layout$2.Sider,_Layout$_InternalSide=Layout$2._InternalSiderContext,SiderContext=_Layout$_InternalSide===void 0?{Provider:_SafetyWarningProvider}:_Layout$_InternalSide,renderLogoAndTitle=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",st=et.logo,ct=et.title,ut=et.layout,ft=et[rt];if(ft===!1)return null;var gt=defaultRenderLogo(st),xt=jsxRuntimeExports.jsx("h1",{children:ct??"Ant Design Pro"});return ft?ft(gt,et.collapsed?null:xt,et):et.isMobile?null:ut==="mix"&&rt==="menuHeaderRender"?!1:et.collapsed?jsxRuntimeExports.jsx("a",{children:gt},"title"):jsxRuntimeExports.jsxs("a",{children:[gt,xt]},"title")},SiderMenu=function(et){var rt,st=et.collapsed,ct=et.originCollapsed,ut=et.fixSiderbar,ft=et.menuFooterRender,gt=et.onCollapse,xt=et.theme,$t=et.siderWidth,_t=et.isMobile,wt=et.onMenuHeaderClick,Tt=et.breakpoint,Rt=Tt===void 0?"lg":Tt,It=et.style,At=et.layout,jt=et.menuExtraRender,Nt=jt===void 0?!1:jt,kt=et.links,Ft=et.menuContentRender,Ht=et.collapsedButtonRender,Wt=et.prefixCls,Vt=et.avatarProps,qt=et.rightContentRender,Gt=et.actionsRender,Xt=et.onOpenChange,Zt=et.stylish,lr=et.logoStyle,er=reactExports.useContext(ProProvider),cr=er.hashId,ur=reactExports.useMemo(function(){return!(_t||At==="mix")},[_t,At]),pr="".concat(Wt,"-sider"),hr=64,fr=useStylish$1("".concat(pr,".").concat(pr,"-stylish"),{stylish:Zt,proLayoutCollapsedWidth:hr}),dr=classNames("".concat(pr),cr,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(pr,"-fixed"),ut),"".concat(pr,"-fixed-mix"),At==="mix"&&!_t&&ut),"".concat(pr,"-collapsed"),et.collapsed),"".concat(pr,"-layout-").concat(At),At&&!_t),"".concat(pr,"-light"),xt!=="dark"),"".concat(pr,"-mix"),At==="mix"&&!_t),"".concat(pr,"-stylish"),!!Zt)),yr=renderLogoAndTitle(et),$r=Nt&&Nt(et),Er=reactExports.useMemo(function(){return Ft!==!1&&reactExports.createElement(BaseMenu,_objectSpread2(_objectSpread2({},et),{},{key:"base-menu",mode:st&&!_t?"vertical":"inline",handleOpenChange:Xt,style:{width:"100%"},className:"".concat(pr,"-menu ").concat(cr).trim()}))},[pr,cr,Ft,Xt,et]),mr=(kt||[]).map(function(Mr,kr){return{className:"".concat(pr,"-link"),label:Mr,key:kr}}),Sr=reactExports.useMemo(function(){return Ft?Ft(et,Er):Er},[Ft,Er,et]),Tr=reactExports.useMemo(function(){if(!Vt)return null;var Mr=Vt.title,kr=Vt.render,Fr=_objectWithoutProperties$2(Vt,_excluded$4),wr=jsxRuntimeExports.jsxs("div",{className:"".concat(pr,"-actions-avatar"),children:[Fr!=null&&Fr.src||Fr!=null&&Fr.srcSet||Fr.icon||Fr.children?jsxRuntimeExports.jsx(Avatar$2,_objectSpread2({size:28},Fr)):null,Vt.title&&!st&&jsxRuntimeExports.jsx("span",{children:Mr})]});return kr?kr(Vt,wr,et):wr},[Vt,pr,st]),jr=reactExports.useMemo(function(){return Gt?jsxRuntimeExports.jsx(Space$1,{align:"center",size:4,direction:st?"vertical":"horizontal",className:classNames(["".concat(pr,"-actions-list"),st&&"".concat(pr,"-actions-list-collapsed"),cr]),children:Gt==null?void 0:Gt(et).map(function(Mr,kr){return jsxRuntimeExports.jsx("div",{className:"".concat(pr,"-actions-list-item ").concat(cr).trim(),children:Mr},kr)})}):null},[Gt,pr,st]),Or=reactExports.useMemo(function(){return jsxRuntimeExports.jsx(AppsLogoComponents,{onItemClick:et.itemClick,appList:et.appList,prefixCls:et.prefixCls})},[et.appList,et.prefixCls]),_r=reactExports.useMemo(function(){if(Ht===!1)return null;var Mr=jsxRuntimeExports.jsx(CollapsedIcon,{isMobile:_t,collapsed:ct,className:"".concat(pr,"-collapsed-button"),onClick:function(){gt==null||gt(!ct)}});return Ht?Ht(st,Mr):Mr},[Ht,_t,ct,pr,st,gt]),Cr=reactExports.useMemo(function(){return!Tr&&!jr?null:jsxRuntimeExports.jsxs("div",{className:classNames("".concat(pr,"-actions"),cr,st&&"".concat(pr,"-actions-collapsed")),children:[Tr,jr]})},[jr,Tr,pr,st,cr]),Nr=reactExports.useMemo(function(){var Mr;return et!=null&&(Mr=et.menu)!==null&&Mr!==void 0&&Mr.hideMenuWhenCollapsed&&st?"".concat(pr,"-hide-menu-collapsed"):null},[pr,st,et==null||(rt=et.menu)===null||rt===void 0?void 0:rt.hideMenuWhenCollapsed]),Rr=ft&&(ft==null?void 0:ft(et)),Pr=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[yr&&jsxRuntimeExports.jsxs("div",{className:classNames([classNames("".concat(pr,"-logo"),cr,_defineProperty$c({},"".concat(pr,"-logo-collapsed"),st))]),onClick:ur?wt:void 0,id:"logo",style:lr,children:[yr,Or]}),$r&&jsxRuntimeExports.jsx("div",{className:classNames(["".concat(pr,"-extra"),!yr&&"".concat(pr,"-extra-no-logo"),cr]),children:$r}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Sr}),jsxRuntimeExports.jsxs(SiderContext.Provider,{value:{},children:[kt?jsxRuntimeExports.jsx("div",{className:"".concat(pr,"-links ").concat(cr).trim(),children:jsxRuntimeExports.jsx(Menu$1,{inlineIndent:16,className:"".concat(pr,"-link-menu ").concat(cr).trim(),selectedKeys:[],openKeys:[],theme:xt,mode:"inline",items:mr})}):null,ur&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Cr,!jr&&qt?jsxRuntimeExports.jsx("div",{className:classNames("".concat(pr,"-actions"),cr,_defineProperty$c({},"".concat(pr,"-actions-collapsed"),st)),children:qt==null?void 0:qt(et)}):null]}),Rr&&jsxRuntimeExports.jsx("div",{className:classNames(["".concat(pr,"-footer"),cr,_defineProperty$c({},"".concat(pr,"-footer-collapsed"),st)]),children:Rr})]})]});return fr.wrapSSR(jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ut&&!_t&&!Nr&&jsxRuntimeExports.jsx("div",{style:_objectSpread2({width:st?hr:$t,overflow:"hidden",flex:"0 0 ".concat(st?hr:$t,"px"),maxWidth:st?hr:$t,minWidth:st?hr:$t,transition:"all 0.2s ease 0s"},It)}),jsxRuntimeExports.jsxs(Sider$6,{collapsible:!0,trigger:null,collapsed:st,breakpoint:Rt===!1?void 0:Rt,onCollapse:function(kr){_t||gt==null||gt(kr)},collapsedWidth:hr,style:It,theme:xt,width:$t,className:classNames(dr,cr,Nr),children:[Nr?jsxRuntimeExports.jsx("div",{className:"".concat(pr,"-hide-when-collapsed ").concat(cr).trim(),style:{height:"100%",width:"100%",opacity:Nr?0:1},children:Pr}):Pr,_r]})]}))},genTopNavHeaderStyle$1=function(et){var rt,st,ct,ut,ft;return _defineProperty$c({},et.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:et.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:et.borderRadius,"&:hover":{backgroundColor:(st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:et.padding,paddingInlineEnd:et.padding,cursor:"pointer",color:(ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorTextRightActionsItem,"> div":{height:"44px",color:(ut=et.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:et.borderRadius,"&:hover":{backgroundColor:(ft=et.layout)===null||ft===void 0||(ft=ft.header)===null||ft===void 0?void 0:ft.colorBgRightActionsItemHover}}}}})};function useStyle$6(_e){return useStyle$i("ProLayoutRightContent",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genTopNavHeaderStyle$1(rt)]})}var _excluded$3=["rightContentRender","avatarProps","actionsRender","headerContentRender"],_excluded2$2=["title","render"],ActionsContent=function(et){var rt=et.rightContentRender,st=et.avatarProps,ct=et.actionsRender;et.headerContentRender;var ut=_objectWithoutProperties$2(et,_excluded$3),ft=reactExports.useContext(ConfigProvider$1.ConfigContext),gt=ft.getPrefixCls,xt="".concat(gt(),"-pro-global-header"),$t=useStyle$6(xt),_t=$t.wrapSSR,wt=$t.hashId,Tt=reactExports.useState("auto"),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=reactExports.useMemo(function(){if(!st)return null;var Ht=st.title,Wt=st.render,Vt=_objectWithoutProperties$2(st,_excluded2$2),qt=[Vt!=null&&Vt.src||Vt!=null&&Vt.srcSet||Vt.icon||Vt.children?reactExports.createElement(Avatar$2,_objectSpread2(_objectSpread2({},Vt),{},{size:28,key:"avatar"})):null,Ht?jsxRuntimeExports.jsx("span",{style:{marginInlineStart:8},children:Ht},"name"):void 0];return Wt?Wt(st,jsxRuntimeExports.jsx("div",{children:qt}),ut):jsxRuntimeExports.jsx("div",{children:qt})},[st]),Nt=ct||jt?function(Ht){var Wt=ct&&(ct==null?void 0:ct(Ht));return!Wt&&!jt?null:(Array.isArray(Wt)||(Wt=[Wt]),_t(jsxRuntimeExports.jsxs("div",{className:"".concat(xt,"-header-actions ").concat(wt).trim(),children:[Wt.filter(Boolean).map(function(Vt,qt){var Gt=!1;if(React$1.isValidElement(Vt)){var Xt;Gt=!!(Vt!=null&&(Xt=Vt.props)!==null&&Xt!==void 0&&Xt["aria-hidden"])}return jsxRuntimeExports.jsx("div",{className:classNames("".concat(xt,"-header-actions-item ").concat(wt),_defineProperty$c({},"".concat(xt,"-header-actions-hover"),!Gt)),children:Vt},qt)}),jt&&jsxRuntimeExports.jsx("span",{className:"".concat(xt,"-header-actions-avatar ").concat(wt).trim(),children:jt})]})))}:void 0,kt=useDebounceFn(function(){var Ht=_asyncToGenerator(_regeneratorRuntime().mark(function Wt(Vt){return _regeneratorRuntime().wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:At(Vt);case 1:case"end":return Gt.stop()}},Wt)}));return function(Wt){return Ht.apply(this,arguments)}}(),160),Ft=Nt||rt;return jsxRuntimeExports.jsx("div",{className:"".concat(xt,"-right-content ").concat(wt).trim(),style:{minWidth:It,height:"100%"},children:jsxRuntimeExports.jsx("div",{style:{height:"100%"},children:jsxRuntimeExports.jsx(RefResizeObserver,{onResize:function(Wt){var Vt=Wt.width;kt.run(Vt)},children:Ft?jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:Ft(_objectSpread2(_objectSpread2({},ut),{},{rightContentSize:It}))}):null})})})},genTopNavHeaderStyle=function(et){var rt,st;return _defineProperty$c({},et.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":_defineProperty$c({display:"flex",alignItems:"center"},"".concat(et.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:(rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56)-12,40),"px")}})};function useStyle$5(_e){return useStyle$i("ProLayoutTopNavHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genTopNavHeaderStyle(rt)]})}var TopNavHeader=function(et){var rt,st,ct,ut,ft,gt,xt,$t=reactExports.useRef(null),_t=et.onMenuHeaderClick,wt=et.contentWidth,Tt=et.rightContentRender,Rt=et.className,It=et.style,At=et.headerContentRender,jt=et.layout,Nt=et.actionsRender,kt=reactExports.useContext(ConfigProvider$1.ConfigContext),Ft=kt.getPrefixCls,Ht=reactExports.useContext(ProProvider),Wt=Ht.dark,Vt="".concat(et.prefixCls||Ft("pro"),"-top-nav-header"),qt=useStyle$5(Vt),Gt=qt.wrapSSR,Xt=qt.hashId,Zt=void 0;et.menuHeaderRender!==void 0?Zt="menuHeaderRender":(jt==="mix"||jt==="top")&&(Zt="headerTitleRender");var lr=renderLogoAndTitle(_objectSpread2(_objectSpread2({},et),{},{collapsed:!1}),Zt),er=reactExports.useContext(ProProvider),cr=er.token,ur=reactExports.useMemo(function(){var pr,hr,fr,dr,yr,$r,Er,mr,Sr,Tr,jr,Or,_r,Cr=jsxRuntimeExports.jsx(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:_objectSpread2({},coverToNewToken({colorItemBg:((pr=cr.layout)===null||pr===void 0||(pr=pr.header)===null||pr===void 0?void 0:pr.colorBgHeader)||"transparent",colorSubItemBg:((hr=cr.layout)===null||hr===void 0||(hr=hr.header)===null||hr===void 0?void 0:hr.colorBgHeader)||"transparent",radiusItem:cr.borderRadius,colorItemBgSelected:((fr=cr.layout)===null||fr===void 0||(fr=fr.header)===null||fr===void 0?void 0:fr.colorBgMenuItemSelected)||(cr==null?void 0:cr.colorBgTextHover),itemHoverBg:((dr=cr.layout)===null||dr===void 0||(dr=dr.header)===null||dr===void 0?void 0:dr.colorBgMenuItemHover)||(cr==null?void 0:cr.colorBgTextHover),colorItemBgSelectedHorizontal:((yr=cr.layout)===null||yr===void 0||(yr=yr.header)===null||yr===void 0?void 0:yr.colorBgMenuItemSelected)||(cr==null?void 0:cr.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:(($r=cr.layout)===null||$r===void 0||($r=$r.header)===null||$r===void 0?void 0:$r.colorTextMenu)||(cr==null?void 0:cr.colorTextSecondary),colorItemTextHoverHorizontal:((Er=cr.layout)===null||Er===void 0||(Er=Er.header)===null||Er===void 0?void 0:Er.colorTextMenuActive)||(cr==null?void 0:cr.colorText),colorItemTextSelectedHorizontal:((mr=cr.layout)===null||mr===void 0||(mr=mr.header)===null||mr===void 0?void 0:mr.colorTextMenuSelected)||(cr==null?void 0:cr.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Sr=cr.layout)===null||Sr===void 0||(Sr=Sr.header)===null||Sr===void 0?void 0:Sr.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Tr=cr.layout)===null||Tr===void 0||(Tr=Tr.header)===null||Tr===void 0?void 0:Tr.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((jr=cr.layout)===null||jr===void 0||(jr=jr.header)===null||jr===void 0?void 0:jr.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:cr==null?void 0:cr.colorBgElevated,subMenuItemBg:cr==null?void 0:cr.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:cr==null?void 0:cr.colorBgElevated}))},token:{colorBgElevated:((Or=cr.layout)===null||Or===void 0||(Or=Or.header)===null||Or===void 0?void 0:Or.colorBgHeader)||"transparent"}},children:jsxRuntimeExports.jsx(BaseMenu,_objectSpread2(_objectSpread2(_objectSpread2({theme:Wt?"dark":"light"},et),{},{className:"".concat(Vt,"-base-menu ").concat(Xt).trim()},et.menuProps),{},{style:_objectSpread2({width:"100%"},(_r=et.menuProps)===null||_r===void 0?void 0:_r.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return At?At(et,Cr):Cr},[(rt=cr.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorBgHeader,(st=cr.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.colorBgMenuItemSelected,(ct=cr.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorBgMenuItemHover,(ut=cr.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorTextMenu,(ft=cr.layout)===null||ft===void 0||(ft=ft.header)===null||ft===void 0?void 0:ft.colorTextMenuActive,(gt=cr.layout)===null||gt===void 0||(gt=gt.header)===null||gt===void 0?void 0:gt.colorTextMenuSelected,(xt=cr.layout)===null||xt===void 0||(xt=xt.header)===null||xt===void 0?void 0:xt.colorBgMenuElevated,cr.borderRadius,cr==null?void 0:cr.colorBgTextHover,cr==null?void 0:cr.colorTextSecondary,cr==null?void 0:cr.colorText,cr==null?void 0:cr.colorTextBase,cr.colorBgElevated,Wt,et,Vt,Xt,At]);return Gt(jsxRuntimeExports.jsx("div",{className:classNames(Vt,Xt,Rt,_defineProperty$c({},"".concat(Vt,"-light"),!0)),style:It,children:jsxRuntimeExports.jsxs("div",{ref:$t,className:classNames("".concat(Vt,"-main"),Xt,_defineProperty$c({},"".concat(Vt,"-wide"),wt==="Fixed"&&jt==="top")),children:[lr&&jsxRuntimeExports.jsxs("div",{className:classNames("".concat(Vt,"-main-left ").concat(Xt)),onClick:_t,children:[jsxRuntimeExports.jsx(AppsLogoComponents,_objectSpread2({},et)),jsxRuntimeExports.jsx("div",{className:"".concat(Vt,"-logo ").concat(Xt).trim(),id:"logo",children:lr},"logo")]}),jsxRuntimeExports.jsx("div",{style:{flex:1},className:"".concat(Vt,"-menu ").concat(Xt).trim(),children:ur}),(Tt||Nt||et.avatarProps)&&jsxRuntimeExports.jsx(ActionsContent,_objectSpread2(_objectSpread2({rightContentRender:Tt},et),{},{prefixCls:Vt}))]})}))},genGlobalHeaderStyle=function(et){var rt,st,ct;return _defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(et.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.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:((ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorHeaderTitle)||et.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function useStyle$4(_e){return useStyle$i("ProLayoutGlobalHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genGlobalHeaderStyle(rt)]})}var renderLogo=function(et,rt){return et===!1?null:et?et(rt,null):rt},GlobalHeader=function(et){var rt=et.isMobile,st=et.logo,ct=et.collapsed,ut=et.onCollapse,ft=et.rightContentRender,gt=et.menuHeaderRender,xt=et.onMenuHeaderClick,$t=et.className,_t=et.style,wt=et.layout,Tt=et.children,Rt=et.splitMenus,It=et.menuData,At=et.prefixCls,jt=reactExports.useContext(ConfigProvider$1.ConfigContext),Nt=jt.getPrefixCls,kt=jt.direction,Ft="".concat(At||Nt("pro"),"-global-header"),Ht=useStyle$4(Ft),Wt=Ht.wrapSSR,Vt=Ht.hashId,qt=classNames($t,Ft,Vt);if(wt==="mix"&&!rt&&Rt){var Gt=(It||[]).map(function(er){return _objectSpread2(_objectSpread2({},er),{},{children:void 0,routes:void 0})}),Xt=clearMenuItem(Gt);return jsxRuntimeExports.jsx(TopNavHeader,_objectSpread2(_objectSpread2({mode:"horizontal"},et),{},{splitMenus:!1,menuData:Xt}))}var Zt=classNames("".concat(Ft,"-logo"),Vt,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ft,"-logo-rtl"),kt==="rtl"),"".concat(Ft,"-logo-mix"),wt==="mix"),"".concat(Ft,"-logo-mobile"),rt)),lr=jsxRuntimeExports.jsx("span",{className:Zt,children:jsxRuntimeExports.jsx("a",{children:defaultRenderLogo(st)})},"logo");return Wt(jsxRuntimeExports.jsxs("div",{className:qt,style:_objectSpread2({},_t),children:[rt&&jsxRuntimeExports.jsx("span",{className:"".concat(Ft,"-collapsed-button ").concat(Vt).trim(),onClick:function(){ut==null||ut(!ct)},children:jsxRuntimeExports.jsx(MenuOutlined$1,{})}),rt&&renderLogo(gt,lr),wt==="mix"&&!rt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AppsLogoComponents,_objectSpread2({},et)),jsxRuntimeExports.jsx("div",{className:Zt,onClick:xt,children:renderLogoAndTitle(_objectSpread2(_objectSpread2({},et),{},{collapsed:!1}),"headerTitleRender")})]}),jsxRuntimeExports.jsx("div",{style:{flex:1},children:Tt}),(ft||et.actionsRender||et.avatarProps)&&jsxRuntimeExports.jsx(ActionsContent,_objectSpread2({rightContentRender:ft},et))]}))},genProLayoutHeaderStyle=function(et){var rt,st,ct,ut;return _defineProperty$c({},"".concat(et.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(et.antCls,"-layout-header").concat(et.componentCls),{height:((rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader)||56,lineHeight:"".concat(((st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(et.colorSplit),backgroundColor:((ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.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:((ut=et.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:et.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 useStyle$3(_e){return useStyle$i("ProLayoutHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProLayoutHeaderStyle(rt)]})}function useStylish(_e,et){var rt=et.stylish,st=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutHeaderStylish",function(ct){var ut=_objectSpread2(_objectSpread2({},ct),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:st});return rt?[_defineProperty$c({},"div".concat(ct.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(ut.componentCls),rt==null?void 0:rt(ut)))]:[]})}var Header$4=Layout$2.Header,DefaultHeader=function(et){var rt,st,ct,ut=et.isMobile,ft=et.fixedHeader,gt=et.className,xt=et.style,$t=et.collapsed,_t=et.prefixCls,wt=et.onCollapse,Tt=et.layout,Rt=et.headerRender,It=et.headerContentRender,At=reactExports.useContext(ProProvider),jt=At.token,Nt=reactExports.useContext(ConfigProvider$1.ConfigContext),kt=reactExports.useState(!1),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=ft||Tt==="mix",qt=reactExports.useCallback(function(){var pr=Tt==="top",hr=clearMenuItem(et.menuData||[]),fr=jsxRuntimeExports.jsx(GlobalHeader,_objectSpread2(_objectSpread2({onCollapse:wt},et),{},{menuData:hr,children:It&&It(et,null)}));return pr&&!ut&&(fr=jsxRuntimeExports.jsx(TopNavHeader,_objectSpread2(_objectSpread2({mode:"horizontal",onCollapse:wt},et),{},{menuData:hr}))),Rt&&typeof Rt=="function"?Rt(et,fr):fr},[It,Rt,ut,Tt,wt,et]);reactExports.useEffect(function(){var pr,hr=(Nt==null||(pr=Nt.getTargetContainer)===null||pr===void 0?void 0:pr.call(Nt))||document.body,fr=function(){var yr,$r=hr.scrollTop;return $r>(((yr=jt.layout)===null||yr===void 0||(yr=yr.header)===null||yr===void 0?void 0:yr.heightLayoutHeader)||56)&&!Ht?(Wt(!0),!0):(Ht&&Wt(!1),!1)};if(Vt&&!(typeof window>"u"))return hr.addEventListener("scroll",fr,{passive:!0}),function(){hr.removeEventListener("scroll",fr)}},[(rt=jt.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader,Vt,Ht]);var Gt=Tt==="top",Xt="".concat(_t,"-layout-header"),Zt=useStyle$3(Xt),lr=Zt.wrapSSR,er=Zt.hashId,cr=useStylish("".concat(Xt,".").concat(Xt,"-stylish"),{proLayoutCollapsedWidth:64,stylish:et.stylish}),ur=classNames(gt,er,Xt,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Xt,"-fixed-header"),Vt),"".concat(Xt,"-fixed-header-scroll"),Ht),"".concat(Xt,"-mix"),Tt==="mix"),"".concat(Xt,"-fixed-header-action"),!$t),"".concat(Xt,"-top-menu"),Gt),"".concat(Xt,"-header"),!0),"".concat(Xt,"-stylish"),!!et.stylish));return Tt==="side"&&!ut?null:cr.wrapSSR(lr(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[Vt&&jsxRuntimeExports.jsx(Header$4,{style:_objectSpread2({height:((st=jt.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56,lineHeight:"".concat(((ct=jt.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},xt)}),jsxRuntimeExports.jsx(Header$4,{className:ur,style:xt,children:qt()})]})})))};const settingDrawer$4={"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"},enUSLocal=_objectSpread2({},settingDrawer$4),settingDrawer$3={"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"},itITLocal=_objectSpread2({},settingDrawer$3),settingDrawer$2={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},koKRLocal=_objectSpread2({},settingDrawer$2),settingDrawer$1={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},zhLocal=_objectSpread2({},settingDrawer$1),settingDrawer={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},zhTWLocal=_objectSpread2({},settingDrawer);var locales$1={"zh-CN":zhLocal,"zh-TW":zhTWLocal,"en-US":enUSLocal,"it-IT":itITLocal,"ko-KR":koKRLocal},getLanguage=function(){if(!isBrowser())return"zh-CN";var et=window.localStorage.getItem("umi_locale");return et||window.g_locale||navigator.language},gLocaleObject=function(){var et=getLanguage();return locales$1[et]||locales$1["zh-CN"]},pathToRegexp$4={exports:{}};pathToRegexp$4.exports=pathToRegexp$2;pathToRegexp$4.exports.parse=parse$2;pathToRegexp$4.exports.compile=compile$1;pathToRegexp$4.exports.tokensToFunction=tokensToFunction$1;pathToRegexp$4.exports.tokensToRegExp=tokensToRegExp;var DEFAULT_DELIMITER="/",DEFAULT_DELIMITERS="./",PATH_REGEXP=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function parse$2(_e,et){for(var rt=[],st=0,ct=0,ut="",ft=et&&et.delimiter||DEFAULT_DELIMITER,gt=et&&et.delimiters||DEFAULT_DELIMITERS,xt=!1,$t;($t=PATH_REGEXP.exec(_e))!==null;){var _t=$t[0],wt=$t[1],Tt=$t.index;if(ut+=_e.slice(ct,Tt),ct=Tt+_t.length,wt){ut+=wt[1],xt=!0;continue}var Rt="",It=_e[ct],At=$t[2],jt=$t[3],Nt=$t[4],kt=$t[5];if(!xt&&ut.length){var Ft=ut.length-1;gt.indexOf(ut[Ft])>-1&&(Rt=ut[Ft],ut=ut.slice(0,Ft))}ut&&(rt.push(ut),ut="",xt=!1);var Ht=Rt!==""&&It!==void 0&&It!==Rt,Wt=kt==="+"||kt==="*",Vt=kt==="?"||kt==="*",qt=Rt||ft,Gt=jt||Nt;rt.push({name:At||st++,prefix:Rt,delimiter:qt,optional:Vt,repeat:Wt,partial:Ht,pattern:Gt?escapeGroup(Gt):"[^"+escapeString$1(qt)+"]+?"})}return(ut||ct<_e.length)&&rt.push(ut+_e.substr(ct)),rt}function compile$1(_e,et){return tokensToFunction$1(parse$2(_e,et))}function tokensToFunction$1(_e){for(var et=new Array(_e.length),rt=0;rt<_e.length;rt++)typeof _e[rt]=="object"&&(et[rt]=new RegExp("^(?:"+_e[rt].pattern+")$"));return function(st,ct){for(var ut="",ft=ct&&ct.encode||encodeURIComponent,gt=0;gt<_e.length;gt++){var xt=_e[gt];if(typeof xt=="string"){ut+=xt;continue}var $t=st?st[xt.name]:void 0,_t;if(Array.isArray($t)){if(!xt.repeat)throw new TypeError('Expected "'+xt.name+'" to not repeat, but got array');if($t.length===0){if(xt.optional)continue;throw new TypeError('Expected "'+xt.name+'" to not be empty')}for(var wt=0;wt<$t.length;wt++){if(_t=ft($t[wt],xt),!et[gt].test(_t))throw new TypeError('Expected all "'+xt.name+'" to match "'+xt.pattern+'"');ut+=(wt===0?xt.prefix:xt.delimiter)+_t}continue}if(typeof $t=="string"||typeof $t=="number"||typeof $t=="boolean"){if(_t=ft(String($t),xt),!et[gt].test(_t))throw new TypeError('Expected "'+xt.name+'" to match "'+xt.pattern+'", but got "'+_t+'"');ut+=xt.prefix+_t;continue}if(xt.optional){xt.partial&&(ut+=xt.prefix);continue}throw new TypeError('Expected "'+xt.name+'" to be '+(xt.repeat?"an array":"a string"))}return ut}}function escapeString$1(_e){return _e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function escapeGroup(_e){return _e.replace(/([=!:$/()])/g,"\\$1")}function flags$1(_e){return _e&&_e.sensitive?"":"i"}function regexpToRegexp$1(_e,et){if(!et)return _e;var rt=_e.source.match(/\((?!\?)/g);if(rt)for(var st=0;st-1;else{var Rt=Tt.repeat?"(?:"+Tt.pattern+")(?:"+escapeString$1(Tt.delimiter)+"(?:"+Tt.pattern+"))*":Tt.pattern;et&&et.push(Tt),Tt.optional?Tt.partial?$t+=escapeString$1(Tt.prefix)+"("+Rt+")?":$t+="(?:"+escapeString$1(Tt.prefix)+"("+Rt+"))?":$t+=escapeString$1(Tt.prefix)+"("+Rt+")"}}return ut?(st||($t+="(?:"+ft+")?"),$t+=xt==="$"?"$":"(?="+xt+")"):(st||($t+="(?:"+ft+"(?="+xt+"))?"),_t||($t+="(?="+ft+"|"+xt+")")),new RegExp($t,flags$1(rt))}function pathToRegexp$2(_e,et,rt){return _e instanceof RegExp?regexpToRegexp$1(_e,et):Array.isArray(_e)?arrayToRegexp$1(_e,et,rt):stringToRegexp$1(_e,et,rt)}var pathToRegexpExports=pathToRegexp$4.exports;const pathToRegexp$3=getDefaultExportFromCjs(pathToRegexpExports);var matchParamsPath=function(et,rt,st){if(st){var ct=_toConsumableArray$3(st.keys()).find(function(ft){return pathToRegexp$3(ft).test(et)});if(ct)return st.get(ct)}if(rt){var ut=Object.keys(rt).find(function(ft){return pathToRegexp$3(ft).test(et)});if(ut)return rt[ut]}return{path:""}},getPageTitleInfo=function(et,rt){var st=et.pathname,ct=st===void 0?"/":st,ut=et.breadcrumb,ft=et.breadcrumbMap,gt=et.formatMessage,xt=et.title,$t=et.menu,_t=$t===void 0?{locale:!1}:$t,wt=rt?"":xt||"",Tt=matchParamsPath(ct,ut,ft);if(!Tt)return{title:wt,id:"",pageName:wt};var Rt=Tt.name;return _t.locale!==!1&&Tt.locale&>&&(Rt=gt({id:Tt.locale||"",defaultMessage:Tt.name})),Rt?rt||!xt?{title:Rt,id:Tt.locale||"",pageName:Rt}:{title:"".concat(Rt," - ").concat(xt),id:Tt.locale||"",pageName:Rt}:{title:wt,id:Tt.locale||"",pageName:wt}},pathToRegexp$1={};function _typeof$1(_e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$1(_e)}Object.defineProperty(pathToRegexp$1,"__esModule",{value:!0});var pathToRegexp_2=pathToRegexp$1.pathToRegexp=pathToRegexp$1.tokensToRegexp=pathToRegexp$1.regexpToFunction=pathToRegexp$1.match=pathToRegexp$1.tokensToFunction=pathToRegexp$1.compile=pathToRegexp$1.parse=void 0;function lexer(_e){for(var et=[],rt=0;rt<_e.length;){var st=_e[rt];if(st==="*"||st==="+"||st==="?"){et.push({type:"MODIFIER",index:rt,value:_e[rt++]});continue}if(st==="\\"){et.push({type:"ESCAPED_CHAR",index:rt++,value:_e[rt++]});continue}if(st==="{"){et.push({type:"OPEN",index:rt,value:_e[rt++]});continue}if(st==="}"){et.push({type:"CLOSE",index:rt,value:_e[rt++]});continue}if(st===":"){for(var ct="",ut=rt+1;ut<_e.length;){var ft=_e.charCodeAt(ut);if(ft>=48&&ft<=57||ft>=65&&ft<=90||ft>=97&&ft<=122||ft===95){ct+=_e[ut++];continue}break}if(!ct)throw new TypeError("Missing parameter name at "+rt);et.push({type:"NAME",index:rt,value:ct}),rt=ut;continue}if(st==="("){var gt=1,xt="",ut=rt+1;if(_e[ut]==="?")throw new TypeError('Pattern cannot start with "?" at '+ut);for(;ut<_e.length;){if(_e[ut]==="\\"){xt+=_e[ut++]+_e[ut++];continue}if(_e[ut]===")"){if(gt--,gt===0){ut++;break}}else if(_e[ut]==="("&&(gt++,_e[ut+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+ut);xt+=_e[ut++]}if(gt)throw new TypeError("Unbalanced pattern at "+rt);if(!xt)throw new TypeError("Missing pattern at "+rt);et.push({type:"PATTERN",index:rt,value:xt}),rt=ut;continue}et.push({type:"CHAR",index:rt,value:_e[rt++]})}return et.push({type:"END",index:rt,value:""}),et}function parse$1(_e,et){et===void 0&&(et={});for(var rt=lexer(_e),st=et.prefixes,ct=st===void 0?"./":st,ut="[^"+escapeString(et.delimiter||"/#?")+"]+?",ft=[],gt=0,xt=0,$t="",_t=function(qt){if(xt-1:Ht===void 0;ct||(Rt+="(?:"+Tt+"(?="+wt+"))?"),Wt||(Rt+="(?="+Tt+"|"+wt+")")}return new RegExp(Rt,flags(rt))}pathToRegexp$1.tokensToRegexp=tokensToRegexp;function pathToRegexp(_e,et,rt){return _e instanceof RegExp?regexpToRegexp(_e,et):Array.isArray(_e)?arrayToRegexp(_e,et,rt):stringToRegexp(_e,et,rt)}pathToRegexp_2=pathToRegexp$1.pathToRegexp=pathToRegexp;function rotateRight(_e,et){return et>>>_e|et<<32-_e}function choice(_e,et,rt){return _e&et^~_e&rt}function majority(_e,et,rt){return _e&et^_e&rt^et&rt}function sha256_Sigma0(_e){return rotateRight(2,_e)^rotateRight(13,_e)^rotateRight(22,_e)}function sha256_Sigma1(_e){return rotateRight(6,_e)^rotateRight(11,_e)^rotateRight(25,_e)}function sha256_sigma0(_e){return rotateRight(7,_e)^rotateRight(18,_e)^_e>>>3}function sha256_sigma1(_e){return rotateRight(17,_e)^rotateRight(19,_e)^_e>>>10}function sha256_expand(_e,et){return _e[et&15]+=sha256_sigma1(_e[et+14&15])+_e[et+9&15]+sha256_sigma0(_e[et+1&15])}var K256=[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],ihash,count,buffer,sha256_hex_digits="0123456789abcdef";function safe_add(_e,et){var rt=(_e&65535)+(et&65535),st=(_e>>16)+(et>>16)+(rt>>16);return st<<16|rt&65535}function sha256_init(){ihash=new Array(8),count=new Array(2),buffer=new Array(64),count[0]=count[1]=0,ihash[0]=1779033703,ihash[1]=3144134277,ihash[2]=1013904242,ihash[3]=2773480762,ihash[4]=1359893119,ihash[5]=2600822924,ihash[6]=528734635,ihash[7]=1541459225}function sha256_transform(){var _e,et,rt,st,ct,ut,ft,gt,xt,$t,_t=new Array(16);_e=ihash[0],et=ihash[1],rt=ihash[2],st=ihash[3],ct=ihash[4],ut=ihash[5],ft=ihash[6],gt=ihash[7];for(var wt=0;wt<16;wt++)_t[wt]=buffer[(wt<<2)+3]|buffer[(wt<<2)+2]<<8|buffer[(wt<<2)+1]<<16|buffer[wt<<2]<<24;for(var Tt=0;Tt<64;Tt++)xt=gt+sha256_Sigma1(ct)+choice(ct,ut,ft)+K256[Tt],Tt<16?xt+=_t[Tt]:xt+=sha256_expand(_t,Tt),$t=sha256_Sigma0(_e)+majority(_e,et,rt),gt=ft,ft=ut,ut=ct,ct=safe_add(st,xt),st=rt,rt=et,et=_e,_e=safe_add(xt,$t);ihash[0]+=_e,ihash[1]+=et,ihash[2]+=rt,ihash[3]+=st,ihash[4]+=ct,ihash[5]+=ut,ihash[6]+=ft,ihash[7]+=gt}function sha256_update(_e,et){var rt,st,ct=0;st=count[0]>>3&63;var ut=et&63;for((count[0]+=et<<3)>29,rt=0;rt+63>3&63;if(buffer[_e++]=128,_e<=56)for(var et=_e;et<56;et++)buffer[et]=0;else{for(var rt=_e;rt<64;rt++)buffer[rt]=0;sha256_transform();for(var st=0;st<56;st++)buffer[st]=0}buffer[56]=count[1]>>>24&255,buffer[57]=count[1]>>>16&255,buffer[58]=count[1]>>>8&255,buffer[59]=count[1]&255,buffer[60]=count[0]>>>24&255,buffer[61]=count[0]>>>16&255,buffer[62]=count[0]>>>8&255,buffer[63]=count[0]&255,sha256_transform()}function sha256_encode_hex(){for(var _e=new String,et=0;et<8;et++)for(var rt=28;rt>=0;rt-=4)_e+=sha256_hex_digits.charAt(ihash[et]>>>rt&15);return _e}function digest(_e){return sha256_init(),sha256_update(_e,_e.length),sha256_final(),sha256_encode_hex()}function _typeof(_e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof(_e)}var _excluded$2=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function _slicedToArray$2(_e,et){return _arrayWithHoles$2(_e)||_iterableToArrayLimit$2(_e,et)||_unsupportedIterableToArray$2(_e,et)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + `).concat(et.antCls,"-menu-submenu-selected > ").concat(et.antCls,"-menu-submenu-title"),{backgroundColor:ut==null?void 0:ut.colorBgMenuItemSelected,borderRadius:et.borderRadiusLG}),"".concat(et.componentCls,"-group"),_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({display:"flex",flexDirection:"row",alignItems:"center",gap:et.marginXS},"".concat(et.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",_defineProperty$c(_defineProperty$c({minWidth:40,height:40},"".concat(et.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(et.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(et.componentCls,"-group-item-title"),{gap:et.marginXS,height:18,overflow:"hidden"}),"&".concat(et.componentCls,"-item-collapsed-show-title"),_defineProperty$c({lineHeight:"16px",gap:0},"&".concat(et.componentCls,"-item-title-collapsed"),_defineProperty$c(_defineProperty$c({display:"flex"},"".concat(et.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(et.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",_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{fontSize:12,color:et.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:et.colorTextSecondary,fontSize:12,lineHeight:20})),rt.includes("horizontal")?{}:_defineProperty$c({},"".concat(et.antCls,"-menu-submenu").concat(et.antCls,"-menu-submenu-popup"),_defineProperty$c({},"".concat(et.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},_defineProperty$c({},"".concat(et.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function useStyle$7(_e,et){return useStyle$i("ProLayoutBaseMenu"+et,function(rt){var st=_objectSpread2(_objectSpread2({},rt),{},{componentCls:".".concat(_e)});return[genProLayoutBaseMenuStyle(st,et||"inline")]})}var MenuItemTooltip=function(et){var rt=reactExports.useState(et.collapsed),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1],ft=reactExports.useState(!1),gt=_slicedToArray$3(ft,2),xt=gt[0],$t=gt[1];return reactExports.useEffect(function(){$t(!1),setTimeout(function(){ut(et.collapsed)},400)},[et.collapsed]),et.disable?et.children:jsxRuntimeExports.jsx(Tooltip$1,{title:et.title,open:ct&&et.collapsed?xt:!1,placement:"right",onOpenChange:$t,children:et.children})},IconFont=create$3({scriptUrl:defaultSettings.iconfontUrl}),getIcon=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",st=arguments.length>2?arguments[2]:void 0;if(typeof et=="string"&&et!==""){if(isUrl$1(et)||isImg(et))return jsxRuntimeExports.jsx("img",{width:16,src:et,alt:"icon",className:st},et);if(et.startsWith(rt))return jsxRuntimeExports.jsx(IconFont,{type:et})}return et},getMenuTitleSymbol=function(et){if(et&&typeof et=="string"){var rt=et.substring(0,1).toUpperCase();return rt}return null},MenuUtil=_createClass$7(function _e(et){var rt=this;_classCallCheck$9(this,_e),_defineProperty$c(this,"props",void 0),_defineProperty$c(this,"getNavMenuItems",function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1?arguments[1]:void 0,ut=arguments.length>2?arguments[2]:void 0;return st.map(function(ft){return rt.getSubMenuOrItem(ft,ct,ut)}).filter(function(ft){return ft}).flat(1)}),_defineProperty$c(this,"getSubMenuOrItem",function(st,ct,ut){var ft=rt.props,gt=ft.subMenuItemRender,xt=ft.baseClassName,$t=ft.prefixCls,_t=ft.collapsed,wt=ft.menu,Tt=ft.iconPrefixes,Rt=ft.layout,It=(wt==null?void 0:wt.type)==="group"&&Rt!=="top",At=rt.props.token,jt=rt.getIntlName(st),Nt=(st==null?void 0:st.children)||(st==null?void 0:st.routes),kt=It&&ct===0?"group":void 0;if(Array.isArray(Nt)&&Nt.length>0){var Ft,Ht,Wt,Vt,qt,Xt=ct===0||It&&ct===1,Gt=getIcon(st.icon,Tt,"".concat(xt,"-icon ").concat((Ft=rt.props)===null||Ft===void 0?void 0:Ft.hashId)),Zt=_t&&Xt?getMenuTitleSymbol(jt):null,er=jsxRuntimeExports.jsxs("div",{className:classNames("".concat(xt,"-item-title"),(Ht=rt.props)===null||Ht===void 0?void 0:Ht.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(xt,"-item-title-collapsed"),_t),"".concat(xt,"-item-title-collapsed-level-").concat(ut),_t),"".concat(xt,"-group-item-title"),kt==="group"),"".concat(xt,"-item-collapsed-show-title"),(wt==null?void 0:wt.collapsedShowTitle)&&_t)),children:[kt==="group"&&_t?null:Xt&&Gt?jsxRuntimeExports.jsx("span",{className:"".concat(xt,"-item-icon ").concat((Wt=rt.props)===null||Wt===void 0?void 0:Wt.hashId).trim(),children:Gt}):Zt,jsxRuntimeExports.jsx("span",{className:classNames("".concat(xt,"-item-text"),(Vt=rt.props)===null||Vt===void 0?void 0:Vt.hashId,_defineProperty$c({},"".concat(xt,"-item-text-has-icon"),kt!=="group"&&Xt&&(Gt||Zt))),children:jt})]}),lr=gt?gt(_objectSpread2(_objectSpread2({},st),{},{isUrl:!1}),er,rt.props):er;if(It&&ct===0&&rt.props.collapsed&&!wt.collapsedShowGroupTitle)return rt.getNavMenuItems(Nt,ct+1,ct);var cr=rt.getNavMenuItems(Nt,ct+1,It&&ct===0&&rt.props.collapsed?ct:ct+1);return[{type:kt,key:st.key||st.path,label:lr,onClick:It?void 0:st.onTitleClick,children:cr,className:classNames(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(xt,"-group"),kt==="group"),"".concat(xt,"-submenu"),kt!=="group"),"".concat(xt,"-submenu-has-icon"),kt!=="group"&&Xt&&Gt))},It&&ct===0?{type:"divider",prefixCls:$t,className:"".concat(xt,"-divider"),key:(st.key||st.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:rt.props.collapsed?"4px":"6px 16px",marginBlockStart:rt.props.collapsed?4:8,borderColor:At==null||(qt=At.layout)===null||qt===void 0||(qt=qt.sider)===null||qt===void 0?void 0:qt.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(xt,"-menu-item"),disabled:st.disabled,key:st.key||st.path,onClick:st.onTitleClick,label:rt.getMenuItemPath(st,ct,ut)}}),_defineProperty$c(this,"getIntlName",function(st){var ct=st.name,ut=st.locale,ft=rt.props,gt=ft.menu,xt=ft.formatMessage;return ut&&(gt==null?void 0:gt.locale)!==!1?xt==null?void 0:xt({id:ut,defaultMessage:ct}):ct}),_defineProperty$c(this,"getMenuItemPath",function(st,ct,ut){var ft,gt,xt,$t,_t=rt.conversionPath(st.path||"/"),wt=rt.props,Tt=wt.location,Rt=Tt===void 0?{pathname:"/"}:Tt,It=wt.isMobile,At=wt.onCollapse,jt=wt.menuItemRender,Nt=wt.iconPrefixes,kt=rt.getIntlName(st),Ft=rt.props,Ht=Ft.baseClassName,Wt=Ft.menu,Vt=Ft.collapsed,qt=(Wt==null?void 0:Wt.type)==="group",Xt=ct===0||qt&&ct===1,Gt=Xt?getIcon(st.icon,Nt,"".concat(Ht,"-icon ").concat((ft=rt.props)===null||ft===void 0?void 0:ft.hashId)):null,Zt=Vt&&Xt?getMenuTitleSymbol(kt):null,er=jsxRuntimeExports.jsxs("div",{className:classNames("".concat(Ht,"-item-title"),(gt=rt.props)===null||gt===void 0?void 0:gt.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ht,"-item-title-collapsed"),Vt),"".concat(Ht,"-item-title-collapsed-level-").concat(ut),Vt),"".concat(Ht,"-item-collapsed-show-title"),(Wt==null?void 0:Wt.collapsedShowTitle)&&Vt)),children:[jsxRuntimeExports.jsx("span",{className:"".concat(Ht,"-item-icon ").concat((xt=rt.props)===null||xt===void 0?void 0:xt.hashId).trim(),style:{display:Zt===null&&!Gt?"none":""},children:Gt||jsxRuntimeExports.jsx("span",{className:"anticon",children:Zt})}),jsxRuntimeExports.jsx("span",{className:classNames("".concat(Ht,"-item-text"),($t=rt.props)===null||$t===void 0?void 0:$t.hashId,_defineProperty$c({},"".concat(Ht,"-item-text-has-icon"),Xt&&(Gt||Zt))),children:kt})]},_t),lr=isUrl$1(_t);if(lr){var cr,ur,fr;er=jsxRuntimeExports.jsxs("span",{onClick:function(){var dr,yr;(dr=window)===null||dr===void 0||(yr=dr.open)===null||yr===void 0||yr.call(dr,_t,"_blank")},className:classNames("".concat(Ht,"-item-title"),(cr=rt.props)===null||cr===void 0?void 0:cr.hashId,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ht,"-item-title-collapsed"),Vt),"".concat(Ht,"-item-title-collapsed-level-").concat(ut),Vt),"".concat(Ht,"-item-link"),!0),"".concat(Ht,"-item-collapsed-show-title"),(Wt==null?void 0:Wt.collapsedShowTitle)&&Vt)),children:[jsxRuntimeExports.jsx("span",{className:"".concat(Ht,"-item-icon ").concat((ur=rt.props)===null||ur===void 0?void 0:ur.hashId).trim(),style:{display:Zt===null&&!Gt?"none":""},children:Gt||jsxRuntimeExports.jsx("span",{className:"anticon",children:Zt})}),jsxRuntimeExports.jsx("span",{className:classNames("".concat(Ht,"-item-text"),(fr=rt.props)===null||fr===void 0?void 0:fr.hashId,_defineProperty$c({},"".concat(Ht,"-item-text-has-icon"),Xt&&(Gt||Zt))),children:kt})]},_t)}if(jt){var hr=_objectSpread2(_objectSpread2({},st),{},{isUrl:lr,itemPath:_t,isMobile:It,replace:_t===Rt.pathname,onClick:function(){return At&&At(!0)},children:void 0});return ct===0?jsxRuntimeExports.jsx(MenuItemTooltip,{collapsed:Vt,title:kt,disable:st.disabledTooltip,children:jt(hr,er,rt.props)}):jt(hr,er,rt.props)}return ct===0?jsxRuntimeExports.jsx(MenuItemTooltip,{collapsed:Vt,title:kt,disable:st.disabledTooltip,children:er}):er}),_defineProperty$c(this,"conversionPath",function(st){return st&&st.indexOf("http")===0?st:"/".concat(st||"").replace(/\/+/g,"/")}),this.props=et}),getOpenKeysProps=function(et,rt){var st=rt.layout,ct=rt.collapsed,ut={};return et&&!ct&&["side","mix"].includes(st||"mix")&&(ut={openKeys:et}),ut},BaseMenu=function(et){var rt=et.mode,st=et.className,ct=et.handleOpenChange,ut=et.style,ft=et.menuData,gt=et.prefixCls,xt=et.menu,$t=et.matchMenuKeys,_t=et.iconfontUrl,wt=et.selectedKeys,Tt=et.onSelect,Rt=et.menuRenderType,It=et.openKeys,At=reactExports.useContext(ProProvider),jt=At.dark,Nt=At.token,kt="".concat(gt,"-base-menu-").concat(rt),Ft=reactExports.useRef([]),Ht=useMergedState(xt==null?void 0:xt.defaultOpenAll),Wt=_slicedToArray$3(Ht,2),Vt=Wt[0],qt=Wt[1],Xt=useMergedState(function(){return xt!=null&&xt.defaultOpenAll?getOpenKeysFromMenuData(ft)||[]:It===!1?!1:[]},{value:It===!1?void 0:It,onChange:ct}),Gt=_slicedToArray$3(Xt,2),Zt=Gt[0],er=Gt[1],lr=useMergedState([],{value:wt,onChange:Tt?function(mr){Tt&&mr&&Tt(mr)}:void 0}),cr=_slicedToArray$3(lr,2),ur=cr[0],fr=cr[1];reactExports.useEffect(function(){xt!=null&&xt.defaultOpenAll||It===!1||$t&&(er($t),fr($t))},[$t.join("-")]),reactExports.useEffect(function(){_t&&(IconFont=create$3({scriptUrl:_t}))},[_t]),reactExports.useEffect(function(){if($t.join("-")!==(ur||[]).join("-")&&fr($t),!Vt&&It!==!1&&$t.join("-")!==(Zt||[]).join("-")){var mr=$t;(xt==null?void 0:xt.autoClose)===!1&&(mr=Array.from(new Set([].concat(_toConsumableArray$3($t),_toConsumableArray$3(Zt||[]))))),er(mr)}else xt!=null&&xt.ignoreFlatMenu&&Vt?er(getOpenKeysFromMenuData(ft)):qt(!1)},[$t.join("-")]);var hr=reactExports.useMemo(function(){return getOpenKeysProps(Zt,et)},[Zt&&Zt.join(","),et.layout,et.collapsed]),pr=useStyle$7(kt,rt),dr=pr.wrapSSR,yr=pr.hashId,Sr=reactExports.useMemo(function(){return new MenuUtil(_objectSpread2(_objectSpread2({},et),{},{token:Nt,menuRenderType:Rt,baseClassName:kt,hashId:yr}))},[et,Nt,Rt,kt,yr]);if(xt!=null&&xt.loading)return jsxRuntimeExports.jsx("div",{style:rt!=null&&rt.includes("inline")?{padding:24}:{marginBlockStart:16},children:jsxRuntimeExports.jsx(Skeleton$1,{active:!0,title:!1,paragraph:{rows:rt!=null&&rt.includes("inline")?6:1}})});et.openKeys===!1&&!et.handleOpenChange&&(Ft.current=$t);var br=et.postMenuData?et.postMenuData(ft):ft;return br&&(br==null?void 0:br.length)<1?null:dr(reactExports.createElement(Menu$1,_objectSpread2(_objectSpread2({},hr),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:rt,inlineIndent:16,defaultOpenKeys:Ft.current,theme:jt?"dark":"light",selectedKeys:ur,style:_objectSpread2({backgroundColor:"transparent",border:"none"},ut),className:classNames(st,yr,kt,_defineProperty$c(_defineProperty$c({},"".concat(kt,"-horizontal"),rt==="horizontal"),"".concat(kt,"-collapsed"),et.collapsed)),items:Sr.getNavMenuItems(br,0,0),onOpenChange:function(Er){et.collapsed||er(Er)}},et.menuProps)))};function useStylish$1(_e,et){var rt=et.stylish,st=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutSiderMenuStylish",function(ct){var ut=_objectSpread2(_objectSpread2({},ct),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:st});return rt?[_defineProperty$c({},"div".concat(ct.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(ut.componentCls),rt==null?void 0:rt(ut)))]:[]})}var _excluded$4=["title","render"],_SafetyWarningProvider=React$1.memo(function(_e){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e.children})}),Sider$6=Layout$2.Sider,_Layout$_InternalSide=Layout$2._InternalSiderContext,SiderContext=_Layout$_InternalSide===void 0?{Provider:_SafetyWarningProvider}:_Layout$_InternalSide,renderLogoAndTitle=function(et){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",st=et.logo,ct=et.title,ut=et.layout,ft=et[rt];if(ft===!1)return null;var gt=defaultRenderLogo(st),xt=jsxRuntimeExports.jsx("h1",{children:ct??"Ant Design Pro"});return ft?ft(gt,et.collapsed?null:xt,et):et.isMobile?null:ut==="mix"&&rt==="menuHeaderRender"?!1:et.collapsed?jsxRuntimeExports.jsx("a",{children:gt},"title"):jsxRuntimeExports.jsxs("a",{children:[gt,xt]},"title")},SiderMenu=function(et){var rt,st=et.collapsed,ct=et.originCollapsed,ut=et.fixSiderbar,ft=et.menuFooterRender,gt=et.onCollapse,xt=et.theme,$t=et.siderWidth,_t=et.isMobile,wt=et.onMenuHeaderClick,Tt=et.breakpoint,Rt=Tt===void 0?"lg":Tt,It=et.style,At=et.layout,jt=et.menuExtraRender,Nt=jt===void 0?!1:jt,kt=et.links,Ft=et.menuContentRender,Ht=et.collapsedButtonRender,Wt=et.prefixCls,Vt=et.avatarProps,qt=et.rightContentRender,Xt=et.actionsRender,Gt=et.onOpenChange,Zt=et.stylish,er=et.logoStyle,lr=reactExports.useContext(ProProvider),cr=lr.hashId,ur=reactExports.useMemo(function(){return!(_t||At==="mix")},[_t,At]),fr="".concat(Wt,"-sider"),hr=64,pr=useStylish$1("".concat(fr,".").concat(fr,"-stylish"),{stylish:Zt,proLayoutCollapsedWidth:hr}),dr=classNames("".concat(fr),cr,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(fr,"-fixed"),ut),"".concat(fr,"-fixed-mix"),At==="mix"&&!_t&&ut),"".concat(fr,"-collapsed"),et.collapsed),"".concat(fr,"-layout-").concat(At),At&&!_t),"".concat(fr,"-light"),xt!=="dark"),"".concat(fr,"-mix"),At==="mix"&&!_t),"".concat(fr,"-stylish"),!!Zt)),yr=renderLogoAndTitle(et),Sr=Nt&&Nt(et),br=reactExports.useMemo(function(){return Ft!==!1&&reactExports.createElement(BaseMenu,_objectSpread2(_objectSpread2({},et),{},{key:"base-menu",mode:st&&!_t?"vertical":"inline",handleOpenChange:Gt,style:{width:"100%"},className:"".concat(fr,"-menu ").concat(cr).trim()}))},[fr,cr,Ft,Gt,et]),mr=(kt||[]).map(function(jr,kr){return{className:"".concat(fr,"-link"),label:jr,key:kr}}),Er=reactExports.useMemo(function(){return Ft?Ft(et,br):br},[Ft,br,et]),Tr=reactExports.useMemo(function(){if(!Vt)return null;var jr=Vt.title,kr=Vt.render,Fr=_objectWithoutProperties$2(Vt,_excluded$4),_r=jsxRuntimeExports.jsxs("div",{className:"".concat(fr,"-actions-avatar"),children:[Fr!=null&&Fr.src||Fr!=null&&Fr.srcSet||Fr.icon||Fr.children?jsxRuntimeExports.jsx(Avatar$2,_objectSpread2({size:28},Fr)):null,Vt.title&&!st&&jsxRuntimeExports.jsx("span",{children:jr})]});return kr?kr(Vt,_r,et):_r},[Vt,fr,st]),Mr=reactExports.useMemo(function(){return Xt?jsxRuntimeExports.jsx(Space$1,{align:"center",size:4,direction:st?"vertical":"horizontal",className:classNames(["".concat(fr,"-actions-list"),st&&"".concat(fr,"-actions-list-collapsed"),cr]),children:Xt==null?void 0:Xt(et).map(function(jr,kr){return jsxRuntimeExports.jsx("div",{className:"".concat(fr,"-actions-list-item ").concat(cr).trim(),children:jr},kr)})}):null},[Xt,fr,st]),Or=reactExports.useMemo(function(){return jsxRuntimeExports.jsx(AppsLogoComponents,{onItemClick:et.itemClick,appList:et.appList,prefixCls:et.prefixCls})},[et.appList,et.prefixCls]),wr=reactExports.useMemo(function(){if(Ht===!1)return null;var jr=jsxRuntimeExports.jsx(CollapsedIcon,{isMobile:_t,collapsed:ct,className:"".concat(fr,"-collapsed-button"),onClick:function(){gt==null||gt(!ct)}});return Ht?Ht(st,jr):jr},[Ht,_t,ct,fr,st,gt]),Cr=reactExports.useMemo(function(){return!Tr&&!Mr?null:jsxRuntimeExports.jsxs("div",{className:classNames("".concat(fr,"-actions"),cr,st&&"".concat(fr,"-actions-collapsed")),children:[Tr,Mr]})},[Mr,Tr,fr,st,cr]),Nr=reactExports.useMemo(function(){var jr;return et!=null&&(jr=et.menu)!==null&&jr!==void 0&&jr.hideMenuWhenCollapsed&&st?"".concat(fr,"-hide-menu-collapsed"):null},[fr,st,et==null||(rt=et.menu)===null||rt===void 0?void 0:rt.hideMenuWhenCollapsed]),Rr=ft&&(ft==null?void 0:ft(et)),Pr=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[yr&&jsxRuntimeExports.jsxs("div",{className:classNames([classNames("".concat(fr,"-logo"),cr,_defineProperty$c({},"".concat(fr,"-logo-collapsed"),st))]),onClick:ur?wt:void 0,id:"logo",style:er,children:[yr,Or]}),Sr&&jsxRuntimeExports.jsx("div",{className:classNames(["".concat(fr,"-extra"),!yr&&"".concat(fr,"-extra-no-logo"),cr]),children:Sr}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Er}),jsxRuntimeExports.jsxs(SiderContext.Provider,{value:{},children:[kt?jsxRuntimeExports.jsx("div",{className:"".concat(fr,"-links ").concat(cr).trim(),children:jsxRuntimeExports.jsx(Menu$1,{inlineIndent:16,className:"".concat(fr,"-link-menu ").concat(cr).trim(),selectedKeys:[],openKeys:[],theme:xt,mode:"inline",items:mr})}):null,ur&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Cr,!Mr&&qt?jsxRuntimeExports.jsx("div",{className:classNames("".concat(fr,"-actions"),cr,_defineProperty$c({},"".concat(fr,"-actions-collapsed"),st)),children:qt==null?void 0:qt(et)}):null]}),Rr&&jsxRuntimeExports.jsx("div",{className:classNames(["".concat(fr,"-footer"),cr,_defineProperty$c({},"".concat(fr,"-footer-collapsed"),st)]),children:Rr})]})]});return pr.wrapSSR(jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ut&&!_t&&!Nr&&jsxRuntimeExports.jsx("div",{style:_objectSpread2({width:st?hr:$t,overflow:"hidden",flex:"0 0 ".concat(st?hr:$t,"px"),maxWidth:st?hr:$t,minWidth:st?hr:$t,transition:"all 0.2s ease 0s"},It)}),jsxRuntimeExports.jsxs(Sider$6,{collapsible:!0,trigger:null,collapsed:st,breakpoint:Rt===!1?void 0:Rt,onCollapse:function(kr){_t||gt==null||gt(kr)},collapsedWidth:hr,style:It,theme:xt,width:$t,className:classNames(dr,cr,Nr),children:[Nr?jsxRuntimeExports.jsx("div",{className:"".concat(fr,"-hide-when-collapsed ").concat(cr).trim(),style:{height:"100%",width:"100%",opacity:Nr?0:1},children:Pr}):Pr,wr]})]}))},genTopNavHeaderStyle$1=function(et){var rt,st,ct,ut,ft;return _defineProperty$c({},et.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:et.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:et.borderRadius,"&:hover":{backgroundColor:(st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:et.padding,paddingInlineEnd:et.padding,cursor:"pointer",color:(ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorTextRightActionsItem,"> div":{height:"44px",color:(ut=et.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:et.borderRadius,"&:hover":{backgroundColor:(ft=et.layout)===null||ft===void 0||(ft=ft.header)===null||ft===void 0?void 0:ft.colorBgRightActionsItemHover}}}}})};function useStyle$6(_e){return useStyle$i("ProLayoutRightContent",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genTopNavHeaderStyle$1(rt)]})}var _excluded$3=["rightContentRender","avatarProps","actionsRender","headerContentRender"],_excluded2$2=["title","render"],ActionsContent=function(et){var rt=et.rightContentRender,st=et.avatarProps,ct=et.actionsRender;et.headerContentRender;var ut=_objectWithoutProperties$2(et,_excluded$3),ft=reactExports.useContext(ConfigProvider$1.ConfigContext),gt=ft.getPrefixCls,xt="".concat(gt(),"-pro-global-header"),$t=useStyle$6(xt),_t=$t.wrapSSR,wt=$t.hashId,Tt=reactExports.useState("auto"),Rt=_slicedToArray$3(Tt,2),It=Rt[0],At=Rt[1],jt=reactExports.useMemo(function(){if(!st)return null;var Ht=st.title,Wt=st.render,Vt=_objectWithoutProperties$2(st,_excluded2$2),qt=[Vt!=null&&Vt.src||Vt!=null&&Vt.srcSet||Vt.icon||Vt.children?reactExports.createElement(Avatar$2,_objectSpread2(_objectSpread2({},Vt),{},{size:28,key:"avatar"})):null,Ht?jsxRuntimeExports.jsx("span",{style:{marginInlineStart:8},children:Ht},"name"):void 0];return Wt?Wt(st,jsxRuntimeExports.jsx("div",{children:qt}),ut):jsxRuntimeExports.jsx("div",{children:qt})},[st]),Nt=ct||jt?function(Ht){var Wt=ct&&(ct==null?void 0:ct(Ht));return!Wt&&!jt?null:(Array.isArray(Wt)||(Wt=[Wt]),_t(jsxRuntimeExports.jsxs("div",{className:"".concat(xt,"-header-actions ").concat(wt).trim(),children:[Wt.filter(Boolean).map(function(Vt,qt){var Xt=!1;if(React$1.isValidElement(Vt)){var Gt;Xt=!!(Vt!=null&&(Gt=Vt.props)!==null&&Gt!==void 0&&Gt["aria-hidden"])}return jsxRuntimeExports.jsx("div",{className:classNames("".concat(xt,"-header-actions-item ").concat(wt),_defineProperty$c({},"".concat(xt,"-header-actions-hover"),!Xt)),children:Vt},qt)}),jt&&jsxRuntimeExports.jsx("span",{className:"".concat(xt,"-header-actions-avatar ").concat(wt).trim(),children:jt})]})))}:void 0,kt=useDebounceFn(function(){var Ht=_asyncToGenerator(_regeneratorRuntime().mark(function Wt(Vt){return _regeneratorRuntime().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:At(Vt);case 1:case"end":return Xt.stop()}},Wt)}));return function(Wt){return Ht.apply(this,arguments)}}(),160),Ft=Nt||rt;return jsxRuntimeExports.jsx("div",{className:"".concat(xt,"-right-content ").concat(wt).trim(),style:{minWidth:It,height:"100%"},children:jsxRuntimeExports.jsx("div",{style:{height:"100%"},children:jsxRuntimeExports.jsx(RefResizeObserver,{onResize:function(Wt){var Vt=Wt.width;kt.run(Vt)},children:Ft?jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:Ft(_objectSpread2(_objectSpread2({},ut),{},{rightContentSize:It}))}):null})})})},genTopNavHeaderStyle=function(et){var rt,st;return _defineProperty$c({},et.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":_defineProperty$c({display:"flex",alignItems:"center"},"".concat(et.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:(rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56)-12,40),"px")}})};function useStyle$5(_e){return useStyle$i("ProLayoutTopNavHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genTopNavHeaderStyle(rt)]})}var TopNavHeader=function(et){var rt,st,ct,ut,ft,gt,xt,$t=reactExports.useRef(null),_t=et.onMenuHeaderClick,wt=et.contentWidth,Tt=et.rightContentRender,Rt=et.className,It=et.style,At=et.headerContentRender,jt=et.layout,Nt=et.actionsRender,kt=reactExports.useContext(ConfigProvider$1.ConfigContext),Ft=kt.getPrefixCls,Ht=reactExports.useContext(ProProvider),Wt=Ht.dark,Vt="".concat(et.prefixCls||Ft("pro"),"-top-nav-header"),qt=useStyle$5(Vt),Xt=qt.wrapSSR,Gt=qt.hashId,Zt=void 0;et.menuHeaderRender!==void 0?Zt="menuHeaderRender":(jt==="mix"||jt==="top")&&(Zt="headerTitleRender");var er=renderLogoAndTitle(_objectSpread2(_objectSpread2({},et),{},{collapsed:!1}),Zt),lr=reactExports.useContext(ProProvider),cr=lr.token,ur=reactExports.useMemo(function(){var fr,hr,pr,dr,yr,Sr,br,mr,Er,Tr,Mr,Or,wr,Cr=jsxRuntimeExports.jsx(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:_objectSpread2({},coverToNewToken({colorItemBg:((fr=cr.layout)===null||fr===void 0||(fr=fr.header)===null||fr===void 0?void 0:fr.colorBgHeader)||"transparent",colorSubItemBg:((hr=cr.layout)===null||hr===void 0||(hr=hr.header)===null||hr===void 0?void 0:hr.colorBgHeader)||"transparent",radiusItem:cr.borderRadius,colorItemBgSelected:((pr=cr.layout)===null||pr===void 0||(pr=pr.header)===null||pr===void 0?void 0:pr.colorBgMenuItemSelected)||(cr==null?void 0:cr.colorBgTextHover),itemHoverBg:((dr=cr.layout)===null||dr===void 0||(dr=dr.header)===null||dr===void 0?void 0:dr.colorBgMenuItemHover)||(cr==null?void 0:cr.colorBgTextHover),colorItemBgSelectedHorizontal:((yr=cr.layout)===null||yr===void 0||(yr=yr.header)===null||yr===void 0?void 0:yr.colorBgMenuItemSelected)||(cr==null?void 0:cr.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Sr=cr.layout)===null||Sr===void 0||(Sr=Sr.header)===null||Sr===void 0?void 0:Sr.colorTextMenu)||(cr==null?void 0:cr.colorTextSecondary),colorItemTextHoverHorizontal:((br=cr.layout)===null||br===void 0||(br=br.header)===null||br===void 0?void 0:br.colorTextMenuActive)||(cr==null?void 0:cr.colorText),colorItemTextSelectedHorizontal:((mr=cr.layout)===null||mr===void 0||(mr=mr.header)===null||mr===void 0?void 0:mr.colorTextMenuSelected)||(cr==null?void 0:cr.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Er=cr.layout)===null||Er===void 0||(Er=Er.header)===null||Er===void 0?void 0:Er.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Tr=cr.layout)===null||Tr===void 0||(Tr=Tr.header)===null||Tr===void 0?void 0:Tr.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Mr=cr.layout)===null||Mr===void 0||(Mr=Mr.header)===null||Mr===void 0?void 0:Mr.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:cr==null?void 0:cr.colorBgElevated,subMenuItemBg:cr==null?void 0:cr.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:cr==null?void 0:cr.colorBgElevated}))},token:{colorBgElevated:((Or=cr.layout)===null||Or===void 0||(Or=Or.header)===null||Or===void 0?void 0:Or.colorBgHeader)||"transparent"}},children:jsxRuntimeExports.jsx(BaseMenu,_objectSpread2(_objectSpread2(_objectSpread2({theme:Wt?"dark":"light"},et),{},{className:"".concat(Vt,"-base-menu ").concat(Gt).trim()},et.menuProps),{},{style:_objectSpread2({width:"100%"},(wr=et.menuProps)===null||wr===void 0?void 0:wr.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return At?At(et,Cr):Cr},[(rt=cr.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.colorBgHeader,(st=cr.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.colorBgMenuItemSelected,(ct=cr.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorBgMenuItemHover,(ut=cr.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorTextMenu,(ft=cr.layout)===null||ft===void 0||(ft=ft.header)===null||ft===void 0?void 0:ft.colorTextMenuActive,(gt=cr.layout)===null||gt===void 0||(gt=gt.header)===null||gt===void 0?void 0:gt.colorTextMenuSelected,(xt=cr.layout)===null||xt===void 0||(xt=xt.header)===null||xt===void 0?void 0:xt.colorBgMenuElevated,cr.borderRadius,cr==null?void 0:cr.colorBgTextHover,cr==null?void 0:cr.colorTextSecondary,cr==null?void 0:cr.colorText,cr==null?void 0:cr.colorTextBase,cr.colorBgElevated,Wt,et,Vt,Gt,At]);return Xt(jsxRuntimeExports.jsx("div",{className:classNames(Vt,Gt,Rt,_defineProperty$c({},"".concat(Vt,"-light"),!0)),style:It,children:jsxRuntimeExports.jsxs("div",{ref:$t,className:classNames("".concat(Vt,"-main"),Gt,_defineProperty$c({},"".concat(Vt,"-wide"),wt==="Fixed"&&jt==="top")),children:[er&&jsxRuntimeExports.jsxs("div",{className:classNames("".concat(Vt,"-main-left ").concat(Gt)),onClick:_t,children:[jsxRuntimeExports.jsx(AppsLogoComponents,_objectSpread2({},et)),jsxRuntimeExports.jsx("div",{className:"".concat(Vt,"-logo ").concat(Gt).trim(),id:"logo",children:er},"logo")]}),jsxRuntimeExports.jsx("div",{style:{flex:1},className:"".concat(Vt,"-menu ").concat(Gt).trim(),children:ur}),(Tt||Nt||et.avatarProps)&&jsxRuntimeExports.jsx(ActionsContent,_objectSpread2(_objectSpread2({rightContentRender:Tt},et),{},{prefixCls:Vt}))]})}))},genGlobalHeaderStyle=function(et){var rt,st,ct;return _defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(et.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.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:((ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.colorHeaderTitle)||et.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function useStyle$4(_e){return useStyle$i("ProLayoutGlobalHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genGlobalHeaderStyle(rt)]})}var renderLogo=function(et,rt){return et===!1?null:et?et(rt,null):rt},GlobalHeader=function(et){var rt=et.isMobile,st=et.logo,ct=et.collapsed,ut=et.onCollapse,ft=et.rightContentRender,gt=et.menuHeaderRender,xt=et.onMenuHeaderClick,$t=et.className,_t=et.style,wt=et.layout,Tt=et.children,Rt=et.splitMenus,It=et.menuData,At=et.prefixCls,jt=reactExports.useContext(ConfigProvider$1.ConfigContext),Nt=jt.getPrefixCls,kt=jt.direction,Ft="".concat(At||Nt("pro"),"-global-header"),Ht=useStyle$4(Ft),Wt=Ht.wrapSSR,Vt=Ht.hashId,qt=classNames($t,Ft,Vt);if(wt==="mix"&&!rt&&Rt){var Xt=(It||[]).map(function(lr){return _objectSpread2(_objectSpread2({},lr),{},{children:void 0,routes:void 0})}),Gt=clearMenuItem(Xt);return jsxRuntimeExports.jsx(TopNavHeader,_objectSpread2(_objectSpread2({mode:"horizontal"},et),{},{splitMenus:!1,menuData:Gt}))}var Zt=classNames("".concat(Ft,"-logo"),Vt,_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Ft,"-logo-rtl"),kt==="rtl"),"".concat(Ft,"-logo-mix"),wt==="mix"),"".concat(Ft,"-logo-mobile"),rt)),er=jsxRuntimeExports.jsx("span",{className:Zt,children:jsxRuntimeExports.jsx("a",{children:defaultRenderLogo(st)})},"logo");return Wt(jsxRuntimeExports.jsxs("div",{className:qt,style:_objectSpread2({},_t),children:[rt&&jsxRuntimeExports.jsx("span",{className:"".concat(Ft,"-collapsed-button ").concat(Vt).trim(),onClick:function(){ut==null||ut(!ct)},children:jsxRuntimeExports.jsx(MenuOutlined$1,{})}),rt&&renderLogo(gt,er),wt==="mix"&&!rt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AppsLogoComponents,_objectSpread2({},et)),jsxRuntimeExports.jsx("div",{className:Zt,onClick:xt,children:renderLogoAndTitle(_objectSpread2(_objectSpread2({},et),{},{collapsed:!1}),"headerTitleRender")})]}),jsxRuntimeExports.jsx("div",{style:{flex:1},children:Tt}),(ft||et.actionsRender||et.avatarProps)&&jsxRuntimeExports.jsx(ActionsContent,_objectSpread2({rightContentRender:ft},et))]}))},genProLayoutHeaderStyle=function(et){var rt,st,ct,ut;return _defineProperty$c({},"".concat(et.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(et.antCls,"-layout-header").concat(et.componentCls),{height:((rt=et.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader)||56,lineHeight:"".concat(((st=et.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(et.colorSplit),backgroundColor:((ct=et.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.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:((ut=et.layout)===null||ut===void 0||(ut=ut.header)===null||ut===void 0?void 0:ut.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:et.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 useStyle$3(_e){return useStyle$i("ProLayoutHeader",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProLayoutHeaderStyle(rt)]})}function useStylish(_e,et){var rt=et.stylish,st=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutHeaderStylish",function(ct){var ut=_objectSpread2(_objectSpread2({},ct),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:st});return rt?[_defineProperty$c({},"div".concat(ct.proComponentsCls,"-layout"),_defineProperty$c({},"".concat(ut.componentCls),rt==null?void 0:rt(ut)))]:[]})}var Header$4=Layout$2.Header,DefaultHeader=function(et){var rt,st,ct,ut=et.isMobile,ft=et.fixedHeader,gt=et.className,xt=et.style,$t=et.collapsed,_t=et.prefixCls,wt=et.onCollapse,Tt=et.layout,Rt=et.headerRender,It=et.headerContentRender,At=reactExports.useContext(ProProvider),jt=At.token,Nt=reactExports.useContext(ConfigProvider$1.ConfigContext),kt=reactExports.useState(!1),Ft=_slicedToArray$3(kt,2),Ht=Ft[0],Wt=Ft[1],Vt=ft||Tt==="mix",qt=reactExports.useCallback(function(){var fr=Tt==="top",hr=clearMenuItem(et.menuData||[]),pr=jsxRuntimeExports.jsx(GlobalHeader,_objectSpread2(_objectSpread2({onCollapse:wt},et),{},{menuData:hr,children:It&&It(et,null)}));return fr&&!ut&&(pr=jsxRuntimeExports.jsx(TopNavHeader,_objectSpread2(_objectSpread2({mode:"horizontal",onCollapse:wt},et),{},{menuData:hr}))),Rt&&typeof Rt=="function"?Rt(et,pr):pr},[It,Rt,ut,Tt,wt,et]);reactExports.useEffect(function(){var fr,hr=(Nt==null||(fr=Nt.getTargetContainer)===null||fr===void 0?void 0:fr.call(Nt))||document.body,pr=function(){var yr,Sr=hr.scrollTop;return Sr>(((yr=jt.layout)===null||yr===void 0||(yr=yr.header)===null||yr===void 0?void 0:yr.heightLayoutHeader)||56)&&!Ht?(Wt(!0),!0):(Ht&&Wt(!1),!1)};if(Vt&&!(typeof window>"u"))return hr.addEventListener("scroll",pr,{passive:!0}),function(){hr.removeEventListener("scroll",pr)}},[(rt=jt.layout)===null||rt===void 0||(rt=rt.header)===null||rt===void 0?void 0:rt.heightLayoutHeader,Vt,Ht]);var Xt=Tt==="top",Gt="".concat(_t,"-layout-header"),Zt=useStyle$3(Gt),er=Zt.wrapSSR,lr=Zt.hashId,cr=useStylish("".concat(Gt,".").concat(Gt,"-stylish"),{proLayoutCollapsedWidth:64,stylish:et.stylish}),ur=classNames(gt,lr,Gt,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(Gt,"-fixed-header"),Vt),"".concat(Gt,"-fixed-header-scroll"),Ht),"".concat(Gt,"-mix"),Tt==="mix"),"".concat(Gt,"-fixed-header-action"),!$t),"".concat(Gt,"-top-menu"),Xt),"".concat(Gt,"-header"),!0),"".concat(Gt,"-stylish"),!!et.stylish));return Tt==="side"&&!ut?null:cr.wrapSSR(er(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[Vt&&jsxRuntimeExports.jsx(Header$4,{style:_objectSpread2({height:((st=jt.layout)===null||st===void 0||(st=st.header)===null||st===void 0?void 0:st.heightLayoutHeader)||56,lineHeight:"".concat(((ct=jt.layout)===null||ct===void 0||(ct=ct.header)===null||ct===void 0?void 0:ct.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},xt)}),jsxRuntimeExports.jsx(Header$4,{className:ur,style:xt,children:qt()})]})})))};const settingDrawer$4={"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"},enUSLocal=_objectSpread2({},settingDrawer$4),settingDrawer$3={"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"},itITLocal=_objectSpread2({},settingDrawer$3),settingDrawer$2={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},koKRLocal=_objectSpread2({},settingDrawer$2),settingDrawer$1={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},zhLocal=_objectSpread2({},settingDrawer$1),settingDrawer={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},zhTWLocal=_objectSpread2({},settingDrawer);var locales$1={"zh-CN":zhLocal,"zh-TW":zhTWLocal,"en-US":enUSLocal,"it-IT":itITLocal,"ko-KR":koKRLocal},getLanguage=function(){if(!isBrowser())return"zh-CN";var et=window.localStorage.getItem("umi_locale");return et||window.g_locale||navigator.language},gLocaleObject=function(){var et=getLanguage();return locales$1[et]||locales$1["zh-CN"]},pathToRegexp$4={exports:{}};pathToRegexp$4.exports=pathToRegexp$2;pathToRegexp$4.exports.parse=parse$3;pathToRegexp$4.exports.compile=compile$1;pathToRegexp$4.exports.tokensToFunction=tokensToFunction$1;pathToRegexp$4.exports.tokensToRegExp=tokensToRegExp;var DEFAULT_DELIMITER="/",DEFAULT_DELIMITERS="./",PATH_REGEXP=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function parse$3(_e,et){for(var rt=[],st=0,ct=0,ut="",ft=et&&et.delimiter||DEFAULT_DELIMITER,gt=et&&et.delimiters||DEFAULT_DELIMITERS,xt=!1,$t;($t=PATH_REGEXP.exec(_e))!==null;){var _t=$t[0],wt=$t[1],Tt=$t.index;if(ut+=_e.slice(ct,Tt),ct=Tt+_t.length,wt){ut+=wt[1],xt=!0;continue}var Rt="",It=_e[ct],At=$t[2],jt=$t[3],Nt=$t[4],kt=$t[5];if(!xt&&ut.length){var Ft=ut.length-1;gt.indexOf(ut[Ft])>-1&&(Rt=ut[Ft],ut=ut.slice(0,Ft))}ut&&(rt.push(ut),ut="",xt=!1);var Ht=Rt!==""&&It!==void 0&&It!==Rt,Wt=kt==="+"||kt==="*",Vt=kt==="?"||kt==="*",qt=Rt||ft,Xt=jt||Nt;rt.push({name:At||st++,prefix:Rt,delimiter:qt,optional:Vt,repeat:Wt,partial:Ht,pattern:Xt?escapeGroup(Xt):"[^"+escapeString$1(qt)+"]+?"})}return(ut||ct<_e.length)&&rt.push(ut+_e.substr(ct)),rt}function compile$1(_e,et){return tokensToFunction$1(parse$3(_e,et))}function tokensToFunction$1(_e){for(var et=new Array(_e.length),rt=0;rt<_e.length;rt++)typeof _e[rt]=="object"&&(et[rt]=new RegExp("^(?:"+_e[rt].pattern+")$"));return function(st,ct){for(var ut="",ft=ct&&ct.encode||encodeURIComponent,gt=0;gt<_e.length;gt++){var xt=_e[gt];if(typeof xt=="string"){ut+=xt;continue}var $t=st?st[xt.name]:void 0,_t;if(Array.isArray($t)){if(!xt.repeat)throw new TypeError('Expected "'+xt.name+'" to not repeat, but got array');if($t.length===0){if(xt.optional)continue;throw new TypeError('Expected "'+xt.name+'" to not be empty')}for(var wt=0;wt<$t.length;wt++){if(_t=ft($t[wt],xt),!et[gt].test(_t))throw new TypeError('Expected all "'+xt.name+'" to match "'+xt.pattern+'"');ut+=(wt===0?xt.prefix:xt.delimiter)+_t}continue}if(typeof $t=="string"||typeof $t=="number"||typeof $t=="boolean"){if(_t=ft(String($t),xt),!et[gt].test(_t))throw new TypeError('Expected "'+xt.name+'" to match "'+xt.pattern+'", but got "'+_t+'"');ut+=xt.prefix+_t;continue}if(xt.optional){xt.partial&&(ut+=xt.prefix);continue}throw new TypeError('Expected "'+xt.name+'" to be '+(xt.repeat?"an array":"a string"))}return ut}}function escapeString$1(_e){return _e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function escapeGroup(_e){return _e.replace(/([=!:$/()])/g,"\\$1")}function flags$1(_e){return _e&&_e.sensitive?"":"i"}function regexpToRegexp$1(_e,et){if(!et)return _e;var rt=_e.source.match(/\((?!\?)/g);if(rt)for(var st=0;st-1;else{var Rt=Tt.repeat?"(?:"+Tt.pattern+")(?:"+escapeString$1(Tt.delimiter)+"(?:"+Tt.pattern+"))*":Tt.pattern;et&&et.push(Tt),Tt.optional?Tt.partial?$t+=escapeString$1(Tt.prefix)+"("+Rt+")?":$t+="(?:"+escapeString$1(Tt.prefix)+"("+Rt+"))?":$t+=escapeString$1(Tt.prefix)+"("+Rt+")"}}return ut?(st||($t+="(?:"+ft+")?"),$t+=xt==="$"?"$":"(?="+xt+")"):(st||($t+="(?:"+ft+"(?="+xt+"))?"),_t||($t+="(?="+ft+"|"+xt+")")),new RegExp($t,flags$1(rt))}function pathToRegexp$2(_e,et,rt){return _e instanceof RegExp?regexpToRegexp$1(_e,et):Array.isArray(_e)?arrayToRegexp$1(_e,et,rt):stringToRegexp$1(_e,et,rt)}var pathToRegexpExports=pathToRegexp$4.exports;const pathToRegexp$3=getDefaultExportFromCjs(pathToRegexpExports);var matchParamsPath=function(et,rt,st){if(st){var ct=_toConsumableArray$3(st.keys()).find(function(ft){return pathToRegexp$3(ft).test(et)});if(ct)return st.get(ct)}if(rt){var ut=Object.keys(rt).find(function(ft){return pathToRegexp$3(ft).test(et)});if(ut)return rt[ut]}return{path:""}},getPageTitleInfo=function(et,rt){var st=et.pathname,ct=st===void 0?"/":st,ut=et.breadcrumb,ft=et.breadcrumbMap,gt=et.formatMessage,xt=et.title,$t=et.menu,_t=$t===void 0?{locale:!1}:$t,wt=rt?"":xt||"",Tt=matchParamsPath(ct,ut,ft);if(!Tt)return{title:wt,id:"",pageName:wt};var Rt=Tt.name;return _t.locale!==!1&&Tt.locale&>&&(Rt=gt({id:Tt.locale||"",defaultMessage:Tt.name})),Rt?rt||!xt?{title:Rt,id:Tt.locale||"",pageName:Rt}:{title:"".concat(Rt," - ").concat(xt),id:Tt.locale||"",pageName:Rt}:{title:wt,id:Tt.locale||"",pageName:wt}},pathToRegexp$1={};function _typeof$1(_e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$1(_e)}Object.defineProperty(pathToRegexp$1,"__esModule",{value:!0});var pathToRegexp_2=pathToRegexp$1.pathToRegexp=pathToRegexp$1.tokensToRegexp=pathToRegexp$1.regexpToFunction=pathToRegexp$1.match=pathToRegexp$1.tokensToFunction=pathToRegexp$1.compile=pathToRegexp$1.parse=void 0;function lexer(_e){for(var et=[],rt=0;rt<_e.length;){var st=_e[rt];if(st==="*"||st==="+"||st==="?"){et.push({type:"MODIFIER",index:rt,value:_e[rt++]});continue}if(st==="\\"){et.push({type:"ESCAPED_CHAR",index:rt++,value:_e[rt++]});continue}if(st==="{"){et.push({type:"OPEN",index:rt,value:_e[rt++]});continue}if(st==="}"){et.push({type:"CLOSE",index:rt,value:_e[rt++]});continue}if(st===":"){for(var ct="",ut=rt+1;ut<_e.length;){var ft=_e.charCodeAt(ut);if(ft>=48&&ft<=57||ft>=65&&ft<=90||ft>=97&&ft<=122||ft===95){ct+=_e[ut++];continue}break}if(!ct)throw new TypeError("Missing parameter name at "+rt);et.push({type:"NAME",index:rt,value:ct}),rt=ut;continue}if(st==="("){var gt=1,xt="",ut=rt+1;if(_e[ut]==="?")throw new TypeError('Pattern cannot start with "?" at '+ut);for(;ut<_e.length;){if(_e[ut]==="\\"){xt+=_e[ut++]+_e[ut++];continue}if(_e[ut]===")"){if(gt--,gt===0){ut++;break}}else if(_e[ut]==="("&&(gt++,_e[ut+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+ut);xt+=_e[ut++]}if(gt)throw new TypeError("Unbalanced pattern at "+rt);if(!xt)throw new TypeError("Missing pattern at "+rt);et.push({type:"PATTERN",index:rt,value:xt}),rt=ut;continue}et.push({type:"CHAR",index:rt,value:_e[rt++]})}return et.push({type:"END",index:rt,value:""}),et}function parse$2(_e,et){et===void 0&&(et={});for(var rt=lexer(_e),st=et.prefixes,ct=st===void 0?"./":st,ut="[^"+escapeString(et.delimiter||"/#?")+"]+?",ft=[],gt=0,xt=0,$t="",_t=function(qt){if(xt-1:Ht===void 0;ct||(Rt+="(?:"+Tt+"(?="+wt+"))?"),Wt||(Rt+="(?="+Tt+"|"+wt+")")}return new RegExp(Rt,flags(rt))}pathToRegexp$1.tokensToRegexp=tokensToRegexp;function pathToRegexp(_e,et,rt){return _e instanceof RegExp?regexpToRegexp(_e,et):Array.isArray(_e)?arrayToRegexp(_e,et,rt):stringToRegexp(_e,et,rt)}pathToRegexp_2=pathToRegexp$1.pathToRegexp=pathToRegexp;function rotateRight(_e,et){return et>>>_e|et<<32-_e}function choice(_e,et,rt){return _e&et^~_e&rt}function majority(_e,et,rt){return _e&et^_e&rt^et&rt}function sha256_Sigma0(_e){return rotateRight(2,_e)^rotateRight(13,_e)^rotateRight(22,_e)}function sha256_Sigma1(_e){return rotateRight(6,_e)^rotateRight(11,_e)^rotateRight(25,_e)}function sha256_sigma0(_e){return rotateRight(7,_e)^rotateRight(18,_e)^_e>>>3}function sha256_sigma1(_e){return rotateRight(17,_e)^rotateRight(19,_e)^_e>>>10}function sha256_expand(_e,et){return _e[et&15]+=sha256_sigma1(_e[et+14&15])+_e[et+9&15]+sha256_sigma0(_e[et+1&15])}var K256=[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],ihash,count,buffer,sha256_hex_digits="0123456789abcdef";function safe_add(_e,et){var rt=(_e&65535)+(et&65535),st=(_e>>16)+(et>>16)+(rt>>16);return st<<16|rt&65535}function sha256_init(){ihash=new Array(8),count=new Array(2),buffer=new Array(64),count[0]=count[1]=0,ihash[0]=1779033703,ihash[1]=3144134277,ihash[2]=1013904242,ihash[3]=2773480762,ihash[4]=1359893119,ihash[5]=2600822924,ihash[6]=528734635,ihash[7]=1541459225}function sha256_transform(){var _e,et,rt,st,ct,ut,ft,gt,xt,$t,_t=new Array(16);_e=ihash[0],et=ihash[1],rt=ihash[2],st=ihash[3],ct=ihash[4],ut=ihash[5],ft=ihash[6],gt=ihash[7];for(var wt=0;wt<16;wt++)_t[wt]=buffer[(wt<<2)+3]|buffer[(wt<<2)+2]<<8|buffer[(wt<<2)+1]<<16|buffer[wt<<2]<<24;for(var Tt=0;Tt<64;Tt++)xt=gt+sha256_Sigma1(ct)+choice(ct,ut,ft)+K256[Tt],Tt<16?xt+=_t[Tt]:xt+=sha256_expand(_t,Tt),$t=sha256_Sigma0(_e)+majority(_e,et,rt),gt=ft,ft=ut,ut=ct,ct=safe_add(st,xt),st=rt,rt=et,et=_e,_e=safe_add(xt,$t);ihash[0]+=_e,ihash[1]+=et,ihash[2]+=rt,ihash[3]+=st,ihash[4]+=ct,ihash[5]+=ut,ihash[6]+=ft,ihash[7]+=gt}function sha256_update(_e,et){var rt,st,ct=0;st=count[0]>>3&63;var ut=et&63;for((count[0]+=et<<3)>29,rt=0;rt+63>3&63;if(buffer[_e++]=128,_e<=56)for(var et=_e;et<56;et++)buffer[et]=0;else{for(var rt=_e;rt<64;rt++)buffer[rt]=0;sha256_transform();for(var st=0;st<56;st++)buffer[st]=0}buffer[56]=count[1]>>>24&255,buffer[57]=count[1]>>>16&255,buffer[58]=count[1]>>>8&255,buffer[59]=count[1]&255,buffer[60]=count[0]>>>24&255,buffer[61]=count[0]>>>16&255,buffer[62]=count[0]>>>8&255,buffer[63]=count[0]&255,sha256_transform()}function sha256_encode_hex(){for(var _e=new String,et=0;et<8;et++)for(var rt=28;rt>=0;rt-=4)_e+=sha256_hex_digits.charAt(ihash[et]>>>rt&15);return _e}function digest(_e){return sha256_init(),sha256_update(_e,_e.length),sha256_final(),sha256_encode_hex()}function _typeof(_e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof(_e)}var _excluded$2=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function _slicedToArray$2(_e,et){return _arrayWithHoles$2(_e)||_iterableToArrayLimit$2(_e,et)||_unsupportedIterableToArray$2(_e,et)||_nonIterableRest$2()}function _nonIterableRest$2(){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 _iterableToArrayLimit$2(_e,et){var rt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(rt!=null){var st=[],ct=!0,ut=!1,ft,gt;try{for(rt=rt.call(_e);!(ct=(ft=rt.next()).done)&&(st.push(ft.value),!(et&&st.length===et));ct=!0);}catch(xt){ut=!0,gt=xt}finally{try{!ct&&rt.return!=null&&rt.return()}finally{if(ut)throw gt}}return st}}function _arrayWithHoles$2(_e){if(Array.isArray(_e))return _e}function _createForOfIteratorHelper(_e,et){var rt=typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(!rt){if(Array.isArray(_e)||(rt=_unsupportedIterableToArray$2(_e))||et&&_e&&typeof _e.length=="number"){rt&&(_e=rt);var st=0,ct=function(){};return{s:ct,n:function(){return st>=_e.length?{done:!0}:{done:!1,value:_e[st++]}},e:function($t){throw $t},f:ct}}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 ut=!0,ft=!1,gt;return{s:function(){rt=rt.call(_e)},n:function(){var $t=rt.next();return ut=$t.done,$t},e:function($t){ft=!0,gt=$t},f:function(){try{!ut&&rt.return!=null&&rt.return()}finally{if(ft)throw gt}}}}function _classCallCheck(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties(_e,et){for(var rt=0;rt"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 _isNativeFunction(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _setPrototypeOf(_e,et){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(st,ct){return st.__proto__=ct,st},_setPrototypeOf(_e,et)}function _getPrototypeOf(_e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf(_e)}function _toConsumableArray$2(_e){return _arrayWithoutHoles$2(_e)||_iterableToArray$2(_e)||_unsupportedIterableToArray$2(_e)||_nonIterableSpread$2()}function _nonIterableSpread$2(){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 _unsupportedIterableToArray$2(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray$2(_e,et);var rt=Object.prototype.toString.call(_e).slice(8,-1);if(rt==="Object"&&_e.constructor&&(rt=_e.constructor.name),rt==="Map"||rt==="Set")return Array.from(_e);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$2(_e,et)}}function _iterableToArray$2(_e){if(typeof Symbol<"u"&&_e[Symbol.iterator]!=null||_e["@@iterator"]!=null)return Array.from(_e)}function _arrayWithoutHoles$2(_e){if(Array.isArray(_e))return _arrayLikeToArray$2(_e)}function _arrayLikeToArray$2(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function _objectWithoutPropertiesLoose$1(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}function ownKeys$3(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$3(_e){for(var et=1;et0&&arguments[0]!==void 0?arguments[0]:"",rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return et.endsWith("/*")?et.replace("/*","/"):(et||rt).startsWith("/")||isUrl(et)?et:"/".concat(rt,"/").concat(et).replace(/\/\//g,"/").replace(/\/\//g,"/")},bigfishCompatibleConversions=function(et,rt){var st=et.menu,ct=st===void 0?{}:st,ut=et.indexRoute,ft=et.path,gt=ft===void 0?"":ft,xt=et.children||[],$t=ct.name,_t=$t===void 0?et.name:$t,wt=ct.icon,Tt=wt===void 0?et.icon:wt,Rt=ct.hideChildren,It=Rt===void 0?et.hideChildren:Rt,At=ct.flatMenu,jt=At===void 0?et.flatMenu:At,Nt=ut&&Object.keys(ut).join(",")!=="redirect"?[_objectSpread$3({path:gt,menu:ct},ut)].concat(xt||[]):xt,kt=_objectSpread$3({},et);if(_t&&(kt.name=_t),Tt&&(kt.icon=Tt),Nt&&Nt.length){if(It)return delete kt.children,kt;var Ft=formatter(_objectSpread$3(_objectSpread$3({},rt),{},{data:Nt}),et);if(jt)return Ft;delete kt[childrenPropsName]}return kt},notNullArray=function(et){return Array.isArray(et)&&et.length>0};function formatter(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},rt=_e.data,st=_e.formatMessage,ct=_e.parentName,ut=_e.locale;return!rt||!Array.isArray(rt)?[]:rt.filter(function(ft){return ft?notNullArray(ft.children)||ft.path||ft.originPath||ft.layout?!0:(ft.redirect||ft.unaccessible,!1):!1}).filter(function(ft){var gt,xt;return!(ft==null||(gt=ft.menu)===null||gt===void 0)&>.name||ft!=null&&ft.flatMenu||!(ft==null||(xt=ft.menu)===null||xt===void 0)&&xt.flatMenu?!0:ft.menu!==!1}).map(function(ft){var gt=_objectSpread$3(_objectSpread$3({},ft),{},{path:ft.path||ft.originPath});return!gt.children&>[childrenPropsName]&&(gt.children=gt[childrenPropsName],delete gt[childrenPropsName]),gt.unaccessible&&delete gt.name,gt.path==="*"&&(gt.path="."),gt.path==="/*"&&(gt.path="."),!gt.path&>.originPath&&(gt.path=gt.originPath),gt}).map(function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},gt=ft.children||ft[childrenPropsName]||[],xt=mergePath(ft.path,et?et.path:"/"),$t=ft.name,_t=getItemLocaleName(ft,ct||"menu"),wt=_t!==!1&&ut!==!1&&st&&_t?st({id:_t,defaultMessage:$t}):$t,Tt=et.pro_layout_parentKeys,Rt=Tt===void 0?[]:Tt;et.children,et.icon,et.flatMenu,et.indexRoute,et.routes;var It=_objectWithoutProperties$1(et,_excluded$2),At=new Set([].concat(_toConsumableArray$2(Rt),_toConsumableArray$2(ft.parentKeys||[])));et.key&&At.add(et.key);var jt=_objectSpread$3(_objectSpread$3(_objectSpread$3({},It),{},{menu:void 0},ft),{},{path:xt,locale:_t,key:ft.key||getKeyByPath(_objectSpread$3(_objectSpread$3({},ft),{},{path:xt})),pro_layout_parentKeys:Array.from(At).filter(function(kt){return kt&&kt!=="/"})});if(wt?jt.name=wt:delete jt.name,jt.menu===void 0&&delete jt.menu,notNullArray(gt)){var Nt=formatter(_objectSpread$3(_objectSpread$3({},_e),{},{data:gt,parentName:_t||""}),jt);notNullArray(Nt)&&(jt.children=Nt)}return bigfishCompatibleConversions(jt,_e)}).flat(1)}var defaultFilterMenuData=function _e(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return et.filter(function(rt){return rt&&(rt.name||notNullArray(rt.children))&&!rt.hideInMenu&&!rt.redirect}).map(function(rt){var st=_objectSpread$3({},rt),ct=st.children||rt[childrenPropsName]||[];if(delete st[childrenPropsName],notNullArray(ct)&&!st.hideChildrenInMenu&&ct.some(function(ft){return ft&&!!ft.name})){var ut=_e(ct);if(ut.length)return _objectSpread$3(_objectSpread$3({},st),{},{children:ut})}return _objectSpread$3({},rt)}).filter(function(rt){return rt})},RouteListMap=function(_e){_inherits(rt,_e);var et=_createSuper(rt);function rt(){return _classCallCheck(this,rt),et.apply(this,arguments)}return _createClass(rt,[{key:"get",value:function(ct){var ut;try{var ft=_createForOfIteratorHelper(this.entries()),gt;try{for(ft.s();!(gt=ft.n()).done;){var xt=_slicedToArray$2(gt.value,2),$t=xt[0],_t=xt[1],wt=stripQueryStringAndHashFromPath($t);if(!isUrl($t)&&pathToRegexp_2(wt,[]).test(ct)){ut=_t;break}}}catch(Tt){ft.e(Tt)}finally{ft.f()}}catch{ut=void 0}return ut}}]),rt}(_wrapNativeSuper(Map)),getBreadcrumbNameMap=function(et){var rt=new RouteListMap,st=function ct(ut,ft){ut.forEach(function(gt){var xt=gt.children||gt[childrenPropsName]||[];notNullArray(xt)&&ct(xt,gt);var $t=mergePath(gt.path,ft?ft.path:"/");rt.set(stripQueryStringAndHashFromPath($t),gt)})};return st(et),rt},clearChildren=function _e(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return et.map(function(rt){var st=rt.children||rt[childrenPropsName];if(notNullArray(st)){var ct=_e(st);if(ct.length)return _objectSpread$3({},rt)}var ut=_objectSpread$3({},rt);return delete ut[childrenPropsName],delete ut.children,ut}).filter(function(rt){return rt})},transformRoute=function(et,rt,st,ct){var ut=formatter({data:et,formatMessage:st,locale:rt}),ft=ct?clearChildren(ut):defaultFilterMenuData(ut),gt=getBreadcrumbNameMap(ut);return{breadcrumb:gt,menuData:ft}};function ownKeys$2(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$2(_e){for(var et=1;et0&&arguments[0]!==void 0?arguments[0]:[],rt={};return et.forEach(function(st){var ct=_objectSpread$2({},st);if(!(!ct||!ct.key)){!ct.children&&ct[childrenPropsName]&&(ct.children=ct[childrenPropsName],delete ct[childrenPropsName]);var ut=ct.children||[];rt[stripQueryStringAndHashFromPath(ct.path||ct.key||"/")]=_objectSpread$2({},ct),rt[ct.key||ct.path||"/"]=_objectSpread$2({},ct),ut&&(rt=_objectSpread$2(_objectSpread$2({},rt),_e(ut)))}}),rt},getMenuMatches=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rt=arguments.length>1?arguments[1]:void 0,st=arguments.length>2?arguments[2]:void 0;return et.filter(function(ct){if(ct==="/"&&rt==="/")return!0;if(ct!=="/"&&ct!=="/*"&&ct&&!isUrl(ct)){var ut=stripQueryStringAndHashFromPath(ct);try{if(st&&pathToRegexp_2("".concat(ut)).test(rt)||pathToRegexp_2("".concat(ut),[]).test(rt)||pathToRegexp_2("".concat(ut,"/(.*)")).test(rt))return!0}catch{}}return!1}).sort(function(ct,ut){return ct===rt?10:ut===rt?-10:ct.substr(1).split("/").length-ut.substr(1).split("/").length})},getMatchMenu=function(et,rt,st,ct){var ut=getFlatMenus(rt),ft=Object.keys(ut),gt=getMenuMatches(ft,et||"/",ct);return!gt||gt.length<1?[]:(st||(gt=[gt[gt.length-1]]),gt.map(function(xt){var $t=ut[xt]||{pro_layout_parentKeys:"",key:""},_t=new Map,wt=($t.pro_layout_parentKeys||[]).map(function(Tt){return _t.has(Tt)?null:(_t.set(Tt,!0),ut[Tt])}).filter(function(Tt){return Tt});return $t.key&&wt.push($t),wt}).flat(1))},WrapContent=function(et){var rt=reactExports.useContext(ProProvider),st=rt.hashId,ct=et.style,ut=et.prefixCls,ft=et.children,gt=et.hasPageContainer,xt=gt===void 0?0:gt,$t=classNames("".concat(ut,"-content"),st,_defineProperty$c(_defineProperty$c({},"".concat(ut,"-has-header"),et.hasHeader),"".concat(ut,"-content-has-page-container"),xt>0)),_t=et.ErrorBoundary||ErrorBoundary$1;return et.ErrorBoundary===!1?jsxRuntimeExports.jsx(Layout$2.Content,{className:$t,style:ct,children:ft}):jsxRuntimeExports.jsx(_t,{children:jsxRuntimeExports.jsx(Layout$2.Content,{className:$t,style:ct,children:ft})})},Logo=function(){return jsxRuntimeExports.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),jsxRuntimeExports.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:jsxRuntimeExports.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:jsxRuntimeExports.jsx("g",{transform:"translate(20.000000, 20.000000)",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsxs("g",{fillRule:"nonzero",children:[jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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)"})]}),jsxRuntimeExports.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)"})]}),jsxRuntimeExports.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},proLayoutTitleHide=new Keyframe("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),genSiderMenuStyle=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt;return _defineProperty$c({},"".concat(et.proComponentsCls,"-layout"),_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-layout-sider").concat(et.componentCls),{background:((rt=et.layout)===null||rt===void 0||(rt=rt.sider)===null||rt===void 0?void 0:rt.colorMenuBackground)||"transparent"}),et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(et.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(st=et.layout)===null||st===void 0||(st=st.sider)===null||st===void 0?void 0:st.paddingInlineLayoutMenu,paddingBlock:(ct=et.layout)===null||ct===void 0||(ct=ct.sider)===null||ct===void 0?void 0:ct.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(et.colorSplit),marginInlineEnd:-1}),"".concat(et.antCls,"-menu"),_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{fontSize:et.fontSizeSM,paddingBottom:4}),"".concat(et.antCls,"-menu-item:hover"),{color:(ut=et.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(ft=et.layout)===null||ft===void 0||(ft=ft.sider)===null||ft===void 0?void 0:ft.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((gt=et.layout)===null||gt===void 0||(gt=gt.sider)===null||gt===void 0?void 0:gt.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:(xt=et.layout)===null||xt===void 0||(xt=xt.sider)===null||xt===void 0?void 0:xt.colorTextMenuTitle,animationName:proLayoutTitleHide,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":_defineProperty$c({flexDirection:"column-reverse",margin:0,padding:12},"".concat(et.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:($t=et.layout)===null||$t===void 0||($t=$t.sider)===null||$t===void 0?void 0:$t.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(_t=et.layout)===null||_t===void 0||(_t=_t.sider)===null||_t===void 0?void 0:_t.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:et.borderRadius,"&:hover":{background:et.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:et.marginXS,borderRadius:et.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:et.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(et.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:(wt=et.layout)===null||wt===void 0||(wt=wt.sider)===null||wt===void 0?void 0:wt.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:et.fontSize,animationName:proLayoutTitleHide,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(et.componentCls).concat(et.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((Tt=et.layout)===null||Tt===void 0||(Tt=Tt.header)===null||Tt===void 0?void 0:Tt.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((Rt=et.layout)===null||Rt===void 0||(Rt=Rt.header)===null||Rt===void 0?void 0:Rt.heightLayoutHeader)||56,"px")}}))};function useStyle$2(_e,et){var rt=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutSiderMenu",function(st){var ct=_objectSpread2(_objectSpread2({},st),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:rt});return[genSiderMenuStyle(ct)]})}var SiderMenuWrapper=function(et){var rt,st=et.isMobile,ct=et.siderWidth,ut=et.collapsed,ft=et.onCollapse,gt=et.style,xt=et.className,$t=et.hide,_t=et.prefixCls,wt=reactExports.useContext(ProProvider),Tt=wt.token;reactExports.useEffect(function(){st===!0&&(ft==null||ft(!0))},[st]);var Rt=omit$1(et,["className","style"]),It=React$1.useContext(ConfigProvider$1.ConfigContext),At=It.direction,jt=useStyle$2("".concat(_t,"-sider"),{proLayoutCollapsedWidth:64}),Nt=jt.wrapSSR,kt=jt.hashId,Ft=classNames("".concat(_t,"-sider"),xt,kt);if($t)return null;var Ht=openVisibleCompatible(!ut,function(){return ft==null?void 0:ft(!0)});return Nt(st?jsxRuntimeExports.jsx(Drawer$1,_objectSpread2(_objectSpread2({placement:At==="rtl"?"right":"left",className:classNames("".concat(_t,"-drawer-sider"),xt)},Ht),{},{style:_objectSpread2({padding:0,height:"100vh"},gt),onClose:function(){ft==null||ft(!0)},maskClosable:!0,closable:!1,width:ct,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(rt=Tt.layout)===null||rt===void 0||(rt=rt.sider)===null||rt===void 0?void 0:rt.colorMenuBackground}},children:jsxRuntimeExports.jsx(SiderMenu,_objectSpread2(_objectSpread2({},Rt),{},{isMobile:!0,className:Ft,collapsed:st?!1:ut,splitMenus:!1,originCollapsed:ut}))})):jsxRuntimeExports.jsx(SiderMenu,_objectSpread2(_objectSpread2({className:Ft,originCollapsed:ut},Rt),{},{style:gt})))},getVersion$1=function(){var et;return typeof process>"u"?version$3:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$3},compatibleStyle=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt,Gt,Xt,Zt,lr,er,cr,ur,pr,hr,fr;return(rt=getVersion$1())!==null&&rt!==void 0&&rt.startsWith("5")?{}:_defineProperty$c(_defineProperty$c(_defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c({width:"100%",height:"100%"},"".concat(et.proComponentsCls,"-base-menu"),(Vt={color:(st=et.layout)===null||st===void 0||(st=st.sider)===null||st===void 0?void 0:st.colorTextMenu},_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(Vt,"".concat(et.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(ct=et.layout)===null||ct===void 0||(ct=ct.sider)===null||ct===void 0?void 0:ct.colorTextMenu}),"& ".concat(et.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(et.antCls,"-menu-submenu-expand-icon, ").concat(et.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(et.antCls,"-menu"),_defineProperty$c(_defineProperty$c({color:(ut=et.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.colorTextMenu},"".concat(et.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(et.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(et.antCls,"-menu-inline"),_defineProperty$c({},"".concat(et.antCls,"-menu-selected::after,").concat(et.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(et.antCls,"-menu-sub ").concat(et.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(et.antCls,`-menu-item:active, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray$2(_e,et);var rt=Object.prototype.toString.call(_e).slice(8,-1);if(rt==="Object"&&_e.constructor&&(rt=_e.constructor.name),rt==="Map"||rt==="Set")return Array.from(_e);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$2(_e,et)}}function _iterableToArray$2(_e){if(typeof Symbol<"u"&&_e[Symbol.iterator]!=null||_e["@@iterator"]!=null)return Array.from(_e)}function _arrayWithoutHoles$2(_e){if(Array.isArray(_e))return _arrayLikeToArray$2(_e)}function _arrayLikeToArray$2(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function _objectWithoutPropertiesLoose$1(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}function ownKeys$3(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$3(_e){for(var et=1;et0&&arguments[0]!==void 0?arguments[0]:"",rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return et.endsWith("/*")?et.replace("/*","/"):(et||rt).startsWith("/")||isUrl(et)?et:"/".concat(rt,"/").concat(et).replace(/\/\//g,"/").replace(/\/\//g,"/")},bigfishCompatibleConversions=function(et,rt){var st=et.menu,ct=st===void 0?{}:st,ut=et.indexRoute,ft=et.path,gt=ft===void 0?"":ft,xt=et.children||[],$t=ct.name,_t=$t===void 0?et.name:$t,wt=ct.icon,Tt=wt===void 0?et.icon:wt,Rt=ct.hideChildren,It=Rt===void 0?et.hideChildren:Rt,At=ct.flatMenu,jt=At===void 0?et.flatMenu:At,Nt=ut&&Object.keys(ut).join(",")!=="redirect"?[_objectSpread$3({path:gt,menu:ct},ut)].concat(xt||[]):xt,kt=_objectSpread$3({},et);if(_t&&(kt.name=_t),Tt&&(kt.icon=Tt),Nt&&Nt.length){if(It)return delete kt.children,kt;var Ft=formatter(_objectSpread$3(_objectSpread$3({},rt),{},{data:Nt}),et);if(jt)return Ft;delete kt[childrenPropsName]}return kt},notNullArray=function(et){return Array.isArray(et)&&et.length>0};function formatter(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},rt=_e.data,st=_e.formatMessage,ct=_e.parentName,ut=_e.locale;return!rt||!Array.isArray(rt)?[]:rt.filter(function(ft){return ft?notNullArray(ft.children)||ft.path||ft.originPath||ft.layout?!0:(ft.redirect||ft.unaccessible,!1):!1}).filter(function(ft){var gt,xt;return!(ft==null||(gt=ft.menu)===null||gt===void 0)&>.name||ft!=null&&ft.flatMenu||!(ft==null||(xt=ft.menu)===null||xt===void 0)&&xt.flatMenu?!0:ft.menu!==!1}).map(function(ft){var gt=_objectSpread$3(_objectSpread$3({},ft),{},{path:ft.path||ft.originPath});return!gt.children&>[childrenPropsName]&&(gt.children=gt[childrenPropsName],delete gt[childrenPropsName]),gt.unaccessible&&delete gt.name,gt.path==="*"&&(gt.path="."),gt.path==="/*"&&(gt.path="."),!gt.path&>.originPath&&(gt.path=gt.originPath),gt}).map(function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},gt=ft.children||ft[childrenPropsName]||[],xt=mergePath(ft.path,et?et.path:"/"),$t=ft.name,_t=getItemLocaleName(ft,ct||"menu"),wt=_t!==!1&&ut!==!1&&st&&_t?st({id:_t,defaultMessage:$t}):$t,Tt=et.pro_layout_parentKeys,Rt=Tt===void 0?[]:Tt;et.children,et.icon,et.flatMenu,et.indexRoute,et.routes;var It=_objectWithoutProperties$1(et,_excluded$2),At=new Set([].concat(_toConsumableArray$2(Rt),_toConsumableArray$2(ft.parentKeys||[])));et.key&&At.add(et.key);var jt=_objectSpread$3(_objectSpread$3(_objectSpread$3({},It),{},{menu:void 0},ft),{},{path:xt,locale:_t,key:ft.key||getKeyByPath(_objectSpread$3(_objectSpread$3({},ft),{},{path:xt})),pro_layout_parentKeys:Array.from(At).filter(function(kt){return kt&&kt!=="/"})});if(wt?jt.name=wt:delete jt.name,jt.menu===void 0&&delete jt.menu,notNullArray(gt)){var Nt=formatter(_objectSpread$3(_objectSpread$3({},_e),{},{data:gt,parentName:_t||""}),jt);notNullArray(Nt)&&(jt.children=Nt)}return bigfishCompatibleConversions(jt,_e)}).flat(1)}var defaultFilterMenuData=function _e(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return et.filter(function(rt){return rt&&(rt.name||notNullArray(rt.children))&&!rt.hideInMenu&&!rt.redirect}).map(function(rt){var st=_objectSpread$3({},rt),ct=st.children||rt[childrenPropsName]||[];if(delete st[childrenPropsName],notNullArray(ct)&&!st.hideChildrenInMenu&&ct.some(function(ft){return ft&&!!ft.name})){var ut=_e(ct);if(ut.length)return _objectSpread$3(_objectSpread$3({},st),{},{children:ut})}return _objectSpread$3({},rt)}).filter(function(rt){return rt})},RouteListMap=function(_e){_inherits(rt,_e);var et=_createSuper(rt);function rt(){return _classCallCheck(this,rt),et.apply(this,arguments)}return _createClass(rt,[{key:"get",value:function(ct){var ut;try{var ft=_createForOfIteratorHelper(this.entries()),gt;try{for(ft.s();!(gt=ft.n()).done;){var xt=_slicedToArray$2(gt.value,2),$t=xt[0],_t=xt[1],wt=stripQueryStringAndHashFromPath($t);if(!isUrl($t)&&pathToRegexp_2(wt,[]).test(ct)){ut=_t;break}}}catch(Tt){ft.e(Tt)}finally{ft.f()}}catch{ut=void 0}return ut}}]),rt}(_wrapNativeSuper(Map)),getBreadcrumbNameMap=function(et){var rt=new RouteListMap,st=function ct(ut,ft){ut.forEach(function(gt){var xt=gt.children||gt[childrenPropsName]||[];notNullArray(xt)&&ct(xt,gt);var $t=mergePath(gt.path,ft?ft.path:"/");rt.set(stripQueryStringAndHashFromPath($t),gt)})};return st(et),rt},clearChildren=function _e(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return et.map(function(rt){var st=rt.children||rt[childrenPropsName];if(notNullArray(st)){var ct=_e(st);if(ct.length)return _objectSpread$3({},rt)}var ut=_objectSpread$3({},rt);return delete ut[childrenPropsName],delete ut.children,ut}).filter(function(rt){return rt})},transformRoute=function(et,rt,st,ct){var ut=formatter({data:et,formatMessage:st,locale:rt}),ft=ct?clearChildren(ut):defaultFilterMenuData(ut),gt=getBreadcrumbNameMap(ut);return{breadcrumb:gt,menuData:ft}};function ownKeys$2(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$2(_e){for(var et=1;et0&&arguments[0]!==void 0?arguments[0]:[],rt={};return et.forEach(function(st){var ct=_objectSpread$2({},st);if(!(!ct||!ct.key)){!ct.children&&ct[childrenPropsName]&&(ct.children=ct[childrenPropsName],delete ct[childrenPropsName]);var ut=ct.children||[];rt[stripQueryStringAndHashFromPath(ct.path||ct.key||"/")]=_objectSpread$2({},ct),rt[ct.key||ct.path||"/"]=_objectSpread$2({},ct),ut&&(rt=_objectSpread$2(_objectSpread$2({},rt),_e(ut)))}}),rt},getMenuMatches=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rt=arguments.length>1?arguments[1]:void 0,st=arguments.length>2?arguments[2]:void 0;return et.filter(function(ct){if(ct==="/"&&rt==="/")return!0;if(ct!=="/"&&ct!=="/*"&&ct&&!isUrl(ct)){var ut=stripQueryStringAndHashFromPath(ct);try{if(st&&pathToRegexp_2("".concat(ut)).test(rt)||pathToRegexp_2("".concat(ut),[]).test(rt)||pathToRegexp_2("".concat(ut,"/(.*)")).test(rt))return!0}catch{}}return!1}).sort(function(ct,ut){return ct===rt?10:ut===rt?-10:ct.substr(1).split("/").length-ut.substr(1).split("/").length})},getMatchMenu=function(et,rt,st,ct){var ut=getFlatMenus(rt),ft=Object.keys(ut),gt=getMenuMatches(ft,et||"/",ct);return!gt||gt.length<1?[]:(st||(gt=[gt[gt.length-1]]),gt.map(function(xt){var $t=ut[xt]||{pro_layout_parentKeys:"",key:""},_t=new Map,wt=($t.pro_layout_parentKeys||[]).map(function(Tt){return _t.has(Tt)?null:(_t.set(Tt,!0),ut[Tt])}).filter(function(Tt){return Tt});return $t.key&&wt.push($t),wt}).flat(1))},WrapContent=function(et){var rt=reactExports.useContext(ProProvider),st=rt.hashId,ct=et.style,ut=et.prefixCls,ft=et.children,gt=et.hasPageContainer,xt=gt===void 0?0:gt,$t=classNames("".concat(ut,"-content"),st,_defineProperty$c(_defineProperty$c({},"".concat(ut,"-has-header"),et.hasHeader),"".concat(ut,"-content-has-page-container"),xt>0)),_t=et.ErrorBoundary||ErrorBoundary$1;return et.ErrorBoundary===!1?jsxRuntimeExports.jsx(Layout$2.Content,{className:$t,style:ct,children:ft}):jsxRuntimeExports.jsx(_t,{children:jsxRuntimeExports.jsx(Layout$2.Content,{className:$t,style:ct,children:ft})})},Logo=function(){return jsxRuntimeExports.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),jsxRuntimeExports.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),jsxRuntimeExports.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),jsxRuntimeExports.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:jsxRuntimeExports.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:jsxRuntimeExports.jsx("g",{transform:"translate(20.000000, 20.000000)",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsxs("g",{fillRule:"nonzero",children:[jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.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)"}),jsxRuntimeExports.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)"})]}),jsxRuntimeExports.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)"})]}),jsxRuntimeExports.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},proLayoutTitleHide=new Keyframe("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),genSiderMenuStyle=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt;return _defineProperty$c({},"".concat(et.proComponentsCls,"-layout"),_defineProperty$c(_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-layout-sider").concat(et.componentCls),{background:((rt=et.layout)===null||rt===void 0||(rt=rt.sider)===null||rt===void 0?void 0:rt.colorMenuBackground)||"transparent"}),et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(et.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(st=et.layout)===null||st===void 0||(st=st.sider)===null||st===void 0?void 0:st.paddingInlineLayoutMenu,paddingBlock:(ct=et.layout)===null||ct===void 0||(ct=ct.sider)===null||ct===void 0?void 0:ct.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(et.colorSplit),marginInlineEnd:-1}),"".concat(et.antCls,"-menu"),_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-menu-item-group-title"),{fontSize:et.fontSizeSM,paddingBottom:4}),"".concat(et.antCls,"-menu-item:hover"),{color:(ut=et.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(ft=et.layout)===null||ft===void 0||(ft=ft.sider)===null||ft===void 0?void 0:ft.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((gt=et.layout)===null||gt===void 0||(gt=gt.sider)===null||gt===void 0?void 0:gt.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:(xt=et.layout)===null||xt===void 0||(xt=xt.sider)===null||xt===void 0?void 0:xt.colorTextMenuTitle,animationName:proLayoutTitleHide,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":_defineProperty$c({flexDirection:"column-reverse",margin:0,padding:12},"".concat(et.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:($t=et.layout)===null||$t===void 0||($t=$t.sider)===null||$t===void 0?void 0:$t.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(_t=et.layout)===null||_t===void 0||(_t=_t.sider)===null||_t===void 0?void 0:_t.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:et.borderRadius,"&:hover":{background:et.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:et.marginXS,borderRadius:et.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:et.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(et.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:(wt=et.layout)===null||wt===void 0||(wt=wt.sider)===null||wt===void 0?void 0:wt.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:et.fontSize,animationName:proLayoutTitleHide,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(et.componentCls).concat(et.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((Tt=et.layout)===null||Tt===void 0||(Tt=Tt.header)===null||Tt===void 0?void 0:Tt.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((Rt=et.layout)===null||Rt===void 0||(Rt=Rt.header)===null||Rt===void 0?void 0:Rt.heightLayoutHeader)||56,"px")}}))};function useStyle$2(_e,et){var rt=et.proLayoutCollapsedWidth;return useStyle$i("ProLayoutSiderMenu",function(st){var ct=_objectSpread2(_objectSpread2({},st),{},{componentCls:".".concat(_e),proLayoutCollapsedWidth:rt});return[genSiderMenuStyle(ct)]})}var SiderMenuWrapper=function(et){var rt,st=et.isMobile,ct=et.siderWidth,ut=et.collapsed,ft=et.onCollapse,gt=et.style,xt=et.className,$t=et.hide,_t=et.prefixCls,wt=reactExports.useContext(ProProvider),Tt=wt.token;reactExports.useEffect(function(){st===!0&&(ft==null||ft(!0))},[st]);var Rt=omit$1(et,["className","style"]),It=React$1.useContext(ConfigProvider$1.ConfigContext),At=It.direction,jt=useStyle$2("".concat(_t,"-sider"),{proLayoutCollapsedWidth:64}),Nt=jt.wrapSSR,kt=jt.hashId,Ft=classNames("".concat(_t,"-sider"),xt,kt);if($t)return null;var Ht=openVisibleCompatible(!ut,function(){return ft==null?void 0:ft(!0)});return Nt(st?jsxRuntimeExports.jsx(Drawer$1,_objectSpread2(_objectSpread2({placement:At==="rtl"?"right":"left",className:classNames("".concat(_t,"-drawer-sider"),xt)},Ht),{},{style:_objectSpread2({padding:0,height:"100vh"},gt),onClose:function(){ft==null||ft(!0)},maskClosable:!0,closable:!1,width:ct,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(rt=Tt.layout)===null||rt===void 0||(rt=rt.sider)===null||rt===void 0?void 0:rt.colorMenuBackground}},children:jsxRuntimeExports.jsx(SiderMenu,_objectSpread2(_objectSpread2({},Rt),{},{isMobile:!0,className:Ft,collapsed:st?!1:ut,splitMenus:!1,originCollapsed:ut}))})):jsxRuntimeExports.jsx(SiderMenu,_objectSpread2(_objectSpread2({className:Ft,originCollapsed:ut},Rt),{},{style:gt})))},getVersion$2=function(){var et;return typeof process>"u"?version$4:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$4},compatibleStyle=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt,Xt,Gt,Zt,er,lr,cr,ur,fr,hr,pr;return(rt=getVersion$2())!==null&&rt!==void 0&&rt.startsWith("5")?{}:_defineProperty$c(_defineProperty$c(_defineProperty$c({},et.componentCls,_defineProperty$c(_defineProperty$c({width:"100%",height:"100%"},"".concat(et.proComponentsCls,"-base-menu"),(Vt={color:(st=et.layout)===null||st===void 0||(st=st.sider)===null||st===void 0?void 0:st.colorTextMenu},_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(Vt,"".concat(et.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(ct=et.layout)===null||ct===void 0||(ct=ct.sider)===null||ct===void 0?void 0:ct.colorTextMenu}),"& ".concat(et.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(et.antCls,"-menu-submenu-expand-icon, ").concat(et.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(et.antCls,"-menu"),_defineProperty$c(_defineProperty$c({color:(ut=et.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.colorTextMenu},"".concat(et.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(et.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(et.antCls,"-menu-inline"),_defineProperty$c({},"".concat(et.antCls,"-menu-selected::after,").concat(et.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(et.antCls,"-menu-sub ").concat(et.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(et.antCls,`-menu-item:active, `).concat(et.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(et.antCls,"-menu-light"),_defineProperty$c({},"".concat(et.antCls,`-menu-item:hover, `).concat(et.antCls,`-menu-item-active, `).concat(et.antCls,`-menu-submenu-active, @@ -762,19 +777,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(et.antCls,"-menu-submenu-selected"),_defineProperty$c({backgroundColor:(Ft=et.layout)===null||Ft===void 0||(Ft=Ft.header)===null||Ft===void 0?void 0:Ft.colorBgMenuItemSelected,borderRadius:et.borderRadius,transition:"none",color:"".concat((Ht=et.layout)===null||Ht===void 0||(Ht=Ht.header)===null||Ht===void 0?void 0:Ht.colorTextMenuSelected," !important")},"".concat(et.antCls,"-menu-submenu-arrow"),{color:"".concat((Wt=et.layout)===null||Wt===void 0||(Wt=Wt.header)===null||Wt===void 0?void 0:Wt.colorTextMenuSelected," !important")})),"> ".concat(et.antCls,"-menu-item, > ").concat(et.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(et.antCls,"-menu-item::after, > ").concat(et.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(et.proComponentsCls,"-top-nav-header-base-menu"),_defineProperty$c(_defineProperty$c({},"&".concat(et.antCls,"-menu"),_defineProperty$c({color:(qt=et.layout)===null||qt===void 0||(qt=qt.header)===null||qt===void 0?void 0:qt.colorTextMenu},"".concat(et.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(et.antCls,"-menu-light"),_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,`-menu-item:hover, `).concat(et.antCls,`-menu-item-active, `).concat(et.antCls,`-menu-submenu-active, - `).concat(et.antCls,"-menu-submenu-title:hover"),_defineProperty$c({color:(Gt=et.layout)===null||Gt===void 0||(Gt=Gt.header)===null||Gt===void 0?void 0:Gt.colorTextMenuActive,borderRadius:et.borderRadius,transition:"none",backgroundColor:(Xt=et.layout)===null||Xt===void 0||(Xt=Xt.header)===null||Xt===void 0?void 0:Xt.colorBgMenuItemSelected},"".concat(et.antCls,"-menu-submenu-arrow"),{color:(Zt=et.layout)===null||Zt===void 0||(Zt=Zt.header)===null||Zt===void 0?void 0:Zt.colorTextMenuActive})),"".concat(et.antCls,"-menu-item-selected"),{color:(lr=et.layout)===null||lr===void 0||(lr=lr.header)===null||lr===void 0?void 0:lr.colorTextMenuSelected,borderRadius:et.borderRadius,backgroundColor:(er=et.layout)===null||er===void 0||(er=er.header)===null||er===void 0?void 0:er.colorBgMenuItemSelected})))),"".concat(et.antCls,"-menu-sub").concat(et.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(et.antCls,"-menu-submenu-popup"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(et.antCls,"-menu"),_defineProperty$c({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(et.antCls,`-menu-item:active, - `).concat(et.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(et.antCls,"-menu-item-selected"),{color:(cr=et.layout)===null||cr===void 0||(cr=cr.sider)===null||cr===void 0?void 0:cr.colorTextMenuSelected}),"".concat(et.antCls,"-menu-submenu-selected"),{color:(ur=et.layout)===null||ur===void 0||(ur=ur.sider)===null||ur===void 0?void 0:ur.colorTextMenuSelected}),"".concat(et.antCls,"-menu:not(").concat(et.antCls,"-menu-horizontal)"),_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:et.borderRadius,color:(pr=et.layout)===null||pr===void 0||(pr=pr.sider)===null||pr===void 0?void 0:pr.colorTextMenuSelected}),"".concat(et.antCls,`-menu-item:hover, + `).concat(et.antCls,"-menu-submenu-title:hover"),_defineProperty$c({color:(Xt=et.layout)===null||Xt===void 0||(Xt=Xt.header)===null||Xt===void 0?void 0:Xt.colorTextMenuActive,borderRadius:et.borderRadius,transition:"none",backgroundColor:(Gt=et.layout)===null||Gt===void 0||(Gt=Gt.header)===null||Gt===void 0?void 0:Gt.colorBgMenuItemSelected},"".concat(et.antCls,"-menu-submenu-arrow"),{color:(Zt=et.layout)===null||Zt===void 0||(Zt=Zt.header)===null||Zt===void 0?void 0:Zt.colorTextMenuActive})),"".concat(et.antCls,"-menu-item-selected"),{color:(er=et.layout)===null||er===void 0||(er=er.header)===null||er===void 0?void 0:er.colorTextMenuSelected,borderRadius:et.borderRadius,backgroundColor:(lr=et.layout)===null||lr===void 0||(lr=lr.header)===null||lr===void 0?void 0:lr.colorBgMenuItemSelected})))),"".concat(et.antCls,"-menu-sub").concat(et.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(et.antCls,"-menu-submenu-popup"),_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(et.antCls,"-menu"),_defineProperty$c({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(et.antCls,`-menu-item:active, + `).concat(et.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(et.antCls,"-menu-item-selected"),{color:(cr=et.layout)===null||cr===void 0||(cr=cr.sider)===null||cr===void 0?void 0:cr.colorTextMenuSelected}),"".concat(et.antCls,"-menu-submenu-selected"),{color:(ur=et.layout)===null||ur===void 0||(ur=ur.sider)===null||ur===void 0?void 0:ur.colorTextMenuSelected}),"".concat(et.antCls,"-menu:not(").concat(et.antCls,"-menu-horizontal)"),_defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:et.borderRadius,color:(fr=et.layout)===null||fr===void 0||(fr=fr.sider)===null||fr===void 0?void 0:fr.colorTextMenuSelected}),"".concat(et.antCls,`-menu-item:hover, `).concat(et.antCls,`-menu-item-active, - `).concat(et.antCls,"-menu-submenu-title:hover"),_defineProperty$c({color:(hr=et.layout)===null||hr===void 0||(hr=hr.sider)===null||hr===void 0?void 0:hr.colorTextMenuActive,borderRadius:et.borderRadius},"".concat(et.antCls,"-menu-submenu-arrow"),{color:(fr=et.layout)===null||fr===void 0||(fr=fr.sider)===null||fr===void 0?void 0:fr.colorTextMenuActive}))))},genProLayoutStyle=function(et){var rt,st,ct,ut;return _defineProperty$c(_defineProperty$c({},"".concat(et.antCls,"-layout"),{backgroundColor:"transparent !important"}),et.componentCls,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"& ".concat(et.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(et.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((rt=et.layout)===null||rt===void 0||(rt=rt.pageContainer)===null||rt===void 0?void 0:rt.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(st=et.layout)===null||st===void 0||(st=st.pageContainer)===null||st===void 0?void 0:st.paddingBlockPageContainerContent,paddingInline:(ct=et.layout)===null||ct===void 0||(ct=ct.pageContainer)===null||ct===void 0?void 0:ct.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(et.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(et.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(ut=et.layout)===null||ut===void 0?void 0:ut.bgLayout}))};function useStyle$1(_e){return useStyle$i("ProLayout",function(et){var rt=_objectSpread2(_objectSpread2({},et),{},{componentCls:".".concat(_e)});return[genProLayoutStyle(rt),compatibleStyle(rt)]})}function urlToList(_e){if(!_e||_e==="/")return["/"];var et=_e.split("/").filter(function(rt){return rt});return et.map(function(rt,st){return"/".concat(et.slice(0,st+1).join("/"))})}var getVersion=function(){var et;return typeof process>"u"?version$3:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$3},defaultItemRender=function(et,rt,st){var ct=et,ut=ct.breadcrumbName,ft=ct.title,gt=ct.path,xt=st.findIndex(function($t){return $t.linkPath===et.path})===st.length-1;return xt?jsxRuntimeExports.jsx("span",{children:ft||ut}):jsxRuntimeExports.jsx("span",{onClick:gt?function(){return location.href=gt}:void 0,children:ft||ut})},renderItemLocal=function(et,rt){var st=rt.formatMessage,ct=rt.menu;return et.locale&&st&&(ct==null?void 0:ct.locale)!==!1?st({id:et.locale,defaultMessage:et.name}):et.name},getBreadcrumb=function(et,rt){var st=et.get(rt);if(!st){var ct=Array.from(et.keys())||[],ut=ct.find(function(ft){return pathToRegexp$3(ft.replace("?","")).test(rt)});ut&&(st=et.get(ut))}return st||{path:""}},getBreadcrumbFromProps=function(et){var rt=et.location,st=et.breadcrumbMap;return{location:rt,breadcrumbMap:st}},conversionFromLocation=function(et,rt,st){var ct=urlToList(et==null?void 0:et.pathname),ut=ct.map(function(ft){var gt=getBreadcrumb(rt,ft),xt=renderItemLocal(gt,st),$t=gt.hideInBreadcrumb;return xt&&!$t?{linkPath:ft,breadcrumbName:xt,title:xt,component:gt.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(ft){return ft&&ft.linkPath});return ut},genBreadcrumbProps=function(et){var rt=getBreadcrumbFromProps(et),st=rt.location,ct=rt.breadcrumbMap;return st&&st.pathname&&ct?conversionFromLocation(st,ct,et):[]},getBreadcrumbProps=function(et,rt){var st=et.breadcrumbRender,ct=et.itemRender,ut=rt.breadcrumbProps||{},ft=ut.minLength,gt=ft===void 0?2:ft,xt=genBreadcrumbProps(et),$t=function(Tt){for(var Rt=ct||defaultItemRender,It=arguments.length,At=new Array(It>1?It-1:0),jt=1;jt-1?{items:_t,itemRender:$t}:{routes:_t,itemRender:$t}};function fromEntries$1(_e){return _toConsumableArray$3(_e).reduce(function(et,rt){var st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return et[ct]=ut,et},{})}var getMenuData=function _e(et,rt,st,ct){var ut=transformRoute(et,(rt==null?void 0:rt.locale)||!1,st,!0),ft=ut.menuData,gt=ut.breadcrumb;return ct?_e(ct(ft),rt,st,void 0):{breadcrumb:fromEntries$1(gt),breadcrumbMap:gt,menuData:ft}},useCurrentMenuLayoutProps=function(et){var rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return reactExports.useEffect(function(){ut(omitUndefined({layout:_typeof$e(et.layout)!=="object"?et.layout:void 0,navTheme:et.navTheme,menuRender:et.menuRender,footerRender:et.footerRender,menuHeaderRender:et.menuHeaderRender,headerRender:et.headerRender,fixSiderbar:et.fixSiderbar}))},[et.layout,et.navTheme,et.menuRender,et.footerRender,et.menuHeaderRender,et.headerRender,et.fixSiderbar]),ct},_excluded$1=["id","defaultMessage"],_excluded2$1=["fixSiderbar","navTheme","layout"],layoutIndex=0,headerRender=function(et,rt){var st;return et.headerRender===!1||et.pure?null:jsxRuntimeExports.jsx(DefaultHeader,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{stylish:(st=et.stylish)===null||st===void 0?void 0:st.header}))},footerRender=function(et){return et.footerRender===!1||et.pure?null:et.footerRender?et.footerRender(_objectSpread2({},et),jsxRuntimeExports.jsx(DefaultFooter,{})):null},renderSiderMenu=function(et,rt){var st,ct=et.layout,ut=et.isMobile,ft=et.selectedKeys,gt=et.openKeys,xt=et.splitMenus,$t=et.suppressSiderWhenMenuEmpty,_t=et.menuRender;if(et.menuRender===!1||et.pure)return null;var wt=et.menuData;if(xt&&(gt!==!1||ct==="mix")&&!ut){var Tt=ft||rt,Rt=_slicedToArray$3(Tt,1),It=Rt[0];if(It){var At;wt=((At=et.menuData)===null||At===void 0||(At=At.find(function(Ft){return Ft.key===It}))===null||At===void 0?void 0:At.children)||[]}else wt=[]}var jt=clearMenuItem(wt||[]);if(jt&&(jt==null?void 0:jt.length)<1&&(xt||$t))return null;if(ct==="top"&&!ut){var Nt;return jsxRuntimeExports.jsx(SiderMenuWrapper,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{hide:!0,stylish:(Nt=et.stylish)===null||Nt===void 0?void 0:Nt.sider}))}var kt=jsxRuntimeExports.jsx(SiderMenuWrapper,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{menuData:jt,stylish:(st=et.stylish)===null||st===void 0?void 0:st.sider}));return _t?_t(et,kt):kt},defaultPageTitleRender=function(et,rt){var st=rt.pageTitleRender,ct=getPageTitleInfo(et);if(st===!1)return{title:rt.title||"",id:"",pageName:""};if(st){var ut=st(et,ct.title,ct);if(typeof ut=="string")return getPageTitleInfo(_objectSpread2(_objectSpread2({},ct),{},{title:ut}));warningOnce$1(typeof ut=="string","pro-layout: renderPageTitle return value should be a string")}return ct},getPaddingInlineStart=function(et,rt,st){return et?rt?64:st:0},BaseProLayout=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt=et||{},Nt=jt.children,kt=jt.onCollapse,Ft=jt.location,Ht=Ft===void 0?{pathname:"/"}:Ft,Wt=jt.contentStyle,Vt=jt.route,qt=jt.defaultCollapsed,Gt=jt.style,Xt=jt.siderWidth,Zt=jt.menu,lr=jt.siderMenuType,er=jt.isChildrenLayout,cr=jt.menuDataRender,ur=jt.actionRef,pr=jt.bgLayoutImgList,hr=jt.formatMessage,fr=jt.loading,dr=reactExports.useMemo(function(){return Xt||(et.layout==="mix"?215:256)},[et.layout,Xt]),yr=reactExports.useContext(ConfigProvider$1.ConfigContext),$r=(rt=et.prefixCls)!==null&&rt!==void 0?rt:yr.getPrefixCls("pro"),Er=useMergedState(!1,{value:Zt==null?void 0:Zt.loading,onChange:Zt==null?void 0:Zt.onLoadingChange}),mr=_slicedToArray$3(Er,2),Sr=mr[0],Tr=mr[1],jr=reactExports.useState(function(){return layoutIndex+=1,"pro-layout-".concat(layoutIndex)}),Or=_slicedToArray$3(jr,1),_r=Or[0],Cr=reactExports.useCallback(function(ln){var Pn=ln.id,An=ln.defaultMessage,Qn=_objectWithoutProperties$2(ln,_excluded$1);if(hr)return hr(_objectSpread2({id:Pn,defaultMessage:An},Qn));var ro=gLocaleObject();return ro[Pn]?ro[Pn]:An},[hr]),Nr=useSWR([_r,Zt==null?void 0:Zt.params],function(){var ln=_asyncToGenerator(_regeneratorRuntime().mark(function Pn(An){var Qn,ro,oo,Vn;return _regeneratorRuntime().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:return ro=_slicedToArray$3(An,2),oo=ro[1],Tr(!0),po.next=4,Zt==null||(Qn=Zt.request)===null||Qn===void 0?void 0:Qn.call(Zt,oo||{},(Vt==null?void 0:Vt.children)||(Vt==null?void 0:Vt.routes)||[]);case 4:return Vn=po.sent,Tr(!1),po.abrupt("return",Vn);case 7:case"end":return po.stop()}},Pn)}));return function(Pn){return ln.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Rr=Nr.data,Pr=Nr.mutate,Mr=Nr.isLoading;reactExports.useEffect(function(){Tr(Mr)},[Mr]);var kr=useSWRConfig(),Fr=kr.cache;reactExports.useEffect(function(){return function(){Fr instanceof Map&&Fr.delete(_r)}},[]);var wr=reactExports.useMemo(function(){return getMenuData(Rr||(Vt==null?void 0:Vt.children)||(Vt==null?void 0:Vt.routes)||[],Zt,Cr,cr)},[Cr,Zt,cr,Rr,Vt==null?void 0:Vt.children,Vt==null?void 0:Vt.routes]),Br=wr||{},Dr=Br.breadcrumb,Xr=Br.breadcrumbMap,Kr=Br.menuData,zr=Kr===void 0?[]:Kr;ur&&Zt!==null&&Zt!==void 0&&Zt.request&&(ur.current={reload:function(){Pr()}});var qr=reactExports.useMemo(function(){return getMatchMenu(Ht.pathname||"/",zr||[],!0)},[Ht.pathname,zr]),pn=reactExports.useMemo(function(){return Array.from(new Set(qr.map(function(ln){return ln.key||ln.path||""})))},[qr]),Qr=qr[qr.length-1]||{},Zr=useCurrentMenuLayoutProps(Qr),vn=_objectSpread2(_objectSpread2({},et),Zr),vr=vn.fixSiderbar;vn.navTheme;var gr=vn.layout,br=_objectWithoutProperties$2(vn,_excluded2$1),Hr=useBreakpoint(),Vr=reactExports.useMemo(function(){return(Hr==="sm"||Hr==="xs")&&!et.disableMobile},[Hr,et.disableMobile]),Wr=gr!=="top"&&!Vr,Gr=useMergedState(function(){return qt!==void 0?qt:!!(Vr||Hr==="md")},{value:et.collapsed,onChange:kt}),cn=_slicedToArray$3(Gr,2),mn=cn[0],hn=cn[1],En=omit$1(_objectSpread2(_objectSpread2(_objectSpread2({prefixCls:$r},et),{},{siderWidth:dr},Zr),{},{formatMessage:Cr,breadcrumb:Dr,menu:_objectSpread2(_objectSpread2({},Zt),{},{type:lr||(Zt==null?void 0:Zt.type),loading:Sr}),layout:gr}),["className","style","breadcrumbRender"]),Rn=defaultPageTitleRender(_objectSpread2(_objectSpread2({pathname:Ht.pathname},En),{},{breadcrumbMap:Xr}),et),Dn=getBreadcrumbProps(_objectSpread2(_objectSpread2({},En),{},{breadcrumbRender:et.breadcrumbRender,breadcrumbMap:Xr}),et),Bn=renderSiderMenu(_objectSpread2(_objectSpread2({},En),{},{menuData:zr,onCollapse:hn,isMobile:Vr,collapsed:mn}),pn),Yn=headerRender(_objectSpread2(_objectSpread2({},En),{},{children:null,hasSiderMenu:!!Bn,menuData:zr,isMobile:Vr,collapsed:mn,onCollapse:hn}),pn),qn=footerRender(_objectSpread2({isMobile:Vr,collapsed:mn},En)),ao=reactExports.useContext(RouteContext),dn=ao.isChildrenLayout,gn=er!==void 0?er:dn,yn="".concat($r,"-layout"),wn=useStyle$1(yn),Tn=wn.wrapSSR,Nn=wn.hashId,On=classNames(et.className,Nn,"ant-design-pro",yn,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"screen-".concat(Hr),Hr),"".concat(yn,"-top-menu"),gr==="top"),"".concat(yn,"-is-children"),gn),"".concat(yn,"-fix-siderbar"),vr),"".concat(yn,"-").concat(gr),gr)),xn=getPaddingInlineStart(!!Wr,mn,dr),Cn={position:"relative"};(gn||Wt&&Wt.minHeight)&&(Cn.minHeight=0),reactExports.useEffect(function(){var ln;(ln=et.onPageChange)===null||ln===void 0||ln.call(et,et.location)},[Ht.pathname,(st=Ht.pathname)===null||st===void 0?void 0:st.search]);var Sn=reactExports.useState(!1),Mn=_slicedToArray$3(Sn,2),jn=Mn[0],Un=Mn[1],Gn=reactExports.useState(0),eo=_slicedToArray$3(Gn,2),io=eo[0],Kn=eo[1];useDocumentTitle(Rn,et.title||!1);var Wn=reactExports.useContext(ProProvider),zn=Wn.token,_n=reactExports.useMemo(function(){return pr&&pr.length>0?pr==null?void 0:pr.map(function(ln,Pn){return jsxRuntimeExports.jsx("img",{src:ln.src,style:_objectSpread2({position:"absolute"},ln)},Pn)}):null},[pr]);return Tn(jsxRuntimeExports.jsx(RouteContext.Provider,{value:_objectSpread2(_objectSpread2({},En),{},{breadcrumb:Dn,menuData:zr,isMobile:Vr,collapsed:mn,hasPageContainer:io,setHasPageContainer:Kn,isChildrenLayout:!0,title:Rn.pageName,hasSiderMenu:!!Bn,hasHeader:!!Yn,siderWidth:xn,hasFooter:!!qn,hasFooterToolbar:jn,setHasFooterToolbar:Un,pageTitleInfo:Rn,matchMenus:qr,matchMenuKeys:pn,currentMenu:Qr}),children:et.pure?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nt}):jsxRuntimeExports.jsxs("div",{className:On,children:[_n||(ct=zn.layout)!==null&&ct!==void 0&&ct.bgLayout?jsxRuntimeExports.jsx("div",{className:classNames("".concat(yn,"-bg-list"),Nn),children:_n}):null,jsxRuntimeExports.jsxs(Layout$2,{style:_objectSpread2({minHeight:"100%",flexDirection:Bn?"row":void 0},Gt),children:[jsxRuntimeExports.jsx(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),token:{controlHeightLG:((ut=zn.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.menuHeight)||(zn==null?void 0:zn.controlHeightLG)},components:{Menu:coverToNewToken({colorItemBg:((ft=zn.layout)===null||ft===void 0||(ft=ft.sider)===null||ft===void 0?void 0:ft.colorMenuBackground)||"transparent",colorSubItemBg:((gt=zn.layout)===null||gt===void 0||(gt=gt.sider)===null||gt===void 0?void 0:gt.colorMenuBackground)||"transparent",radiusItem:zn.borderRadius,colorItemBgSelected:((xt=zn.layout)===null||xt===void 0||(xt=xt.sider)===null||xt===void 0?void 0:xt.colorBgMenuItemSelected)||(zn==null?void 0:zn.colorBgTextHover),colorItemBgHover:(($t=zn.layout)===null||$t===void 0||($t=$t.sider)===null||$t===void 0?void 0:$t.colorBgMenuItemHover)||(zn==null?void 0:zn.colorBgTextHover),colorItemBgActive:((_t=zn.layout)===null||_t===void 0||(_t=_t.sider)===null||_t===void 0?void 0:_t.colorBgMenuItemActive)||(zn==null?void 0:zn.colorBgTextActive),colorItemBgSelectedHorizontal:((wt=zn.layout)===null||wt===void 0||(wt=wt.sider)===null||wt===void 0?void 0:wt.colorBgMenuItemSelected)||(zn==null?void 0:zn.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Tt=zn.layout)===null||Tt===void 0||(Tt=Tt.sider)===null||Tt===void 0?void 0:Tt.colorTextMenu)||(zn==null?void 0:zn.colorTextSecondary),colorItemTextHover:((Rt=zn.layout)===null||Rt===void 0||(Rt=Rt.sider)===null||Rt===void 0?void 0:Rt.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((It=zn.layout)===null||It===void 0||(It=It.sider)===null||It===void 0?void 0:It.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:zn==null?void 0:zn.colorBgElevated,subMenuItemBg:zn==null?void 0:zn.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:zn==null?void 0:zn.colorBgElevated})}},children:Bn}),jsxRuntimeExports.jsxs("div",{style:Cn,className:"".concat(yn,"-container ").concat(Nn).trim(),children:[Yn,jsxRuntimeExports.jsx(WrapContent,_objectSpread2(_objectSpread2({hasPageContainer:io,isChildrenLayout:gn},br),{},{hasHeader:!!Yn,prefixCls:yn,style:Wt,children:fr?jsxRuntimeExports.jsx(PageLoading,{}):Nt})),qn,jn&&jsxRuntimeExports.jsx("div",{className:"".concat(yn,"-has-footer"),style:{height:64,marginBlockStart:(At=zn.layout)===null||At===void 0||(At=At.pageContainer)===null||At===void 0?void 0:At.paddingBlockPageContainerContent}})]})]})]})}))},ProLayout=function(et){var rt=et.colorPrimary,st=et.navTheme!==void 0?{dark:et.navTheme==="realDark"}:{};return jsxRuntimeExports.jsx(ConfigProvider$1,{theme:rt?{token:{colorPrimary:rt}}:void 0,children:jsxRuntimeExports.jsx(ProConfigProvider,_objectSpread2(_objectSpread2({autoClearCache:!0},st),{},{token:et.token,prefixCls:et.prefixCls,children:jsxRuntimeExports.jsx(BaseProLayout,_objectSpread2(_objectSpread2({logo:jsxRuntimeExports.jsx(Logo,{})},defaultSettings),{},{location:isBrowser()?window.location:void 0},et))}))})},extendStatics=function(_e,et){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,st){rt.__proto__=st}||function(rt,st){for(var ct in st)Object.prototype.hasOwnProperty.call(st,ct)&&(rt[ct]=st[ct])},extendStatics(_e,et)};function __extends(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics(_e,et);function rt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}var __assign=function(){return __assign=Object.assign||function(et){for(var rt,st=1,ct=arguments.length;st0&&ut[ut.length-1])&&($t[0]===6||$t[0]===2)){rt=0;continue}if($t[0]===3&&(!ut||$t[1]>ut[0]&&$t[1]0)&&!(ct=st.next()).done;)ut.push(ct.value)}catch(gt){ft={error:gt}}finally{try{ct&&!ct.done&&(rt=st.return)&&rt.call(st)}finally{if(ft)throw ft.error}}return ut}function __spreadArray(_e,et,rt){if(rt||arguments.length===2)for(var st=0,ct=et.length,ut;st"u"?version$4:((et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.ANTD_VERSION)||version$4},defaultItemRender=function(et,rt,st){var ct=et,ut=ct.breadcrumbName,ft=ct.title,gt=ct.path,xt=st.findIndex(function($t){return $t.linkPath===et.path})===st.length-1;return xt?jsxRuntimeExports.jsx("span",{children:ft||ut}):jsxRuntimeExports.jsx("span",{onClick:gt?function(){return location.href=gt}:void 0,children:ft||ut})},renderItemLocal=function(et,rt){var st=rt.formatMessage,ct=rt.menu;return et.locale&&st&&(ct==null?void 0:ct.locale)!==!1?st({id:et.locale,defaultMessage:et.name}):et.name},getBreadcrumb=function(et,rt){var st=et.get(rt);if(!st){var ct=Array.from(et.keys())||[],ut=ct.find(function(ft){return pathToRegexp$3(ft.replace("?","")).test(rt)});ut&&(st=et.get(ut))}return st||{path:""}},getBreadcrumbFromProps=function(et){var rt=et.location,st=et.breadcrumbMap;return{location:rt,breadcrumbMap:st}},conversionFromLocation=function(et,rt,st){var ct=urlToList(et==null?void 0:et.pathname),ut=ct.map(function(ft){var gt=getBreadcrumb(rt,ft),xt=renderItemLocal(gt,st),$t=gt.hideInBreadcrumb;return xt&&!$t?{linkPath:ft,breadcrumbName:xt,title:xt,component:gt.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(ft){return ft&&ft.linkPath});return ut},genBreadcrumbProps=function(et){var rt=getBreadcrumbFromProps(et),st=rt.location,ct=rt.breadcrumbMap;return st&&st.pathname&&ct?conversionFromLocation(st,ct,et):[]},getBreadcrumbProps=function(et,rt){var st=et.breadcrumbRender,ct=et.itemRender,ut=rt.breadcrumbProps||{},ft=ut.minLength,gt=ft===void 0?2:ft,xt=genBreadcrumbProps(et),$t=function(Tt){for(var Rt=ct||defaultItemRender,It=arguments.length,At=new Array(It>1?It-1:0),jt=1;jt-1?{items:_t,itemRender:$t}:{routes:_t,itemRender:$t}};function fromEntries$1(_e){return _toConsumableArray$3(_e).reduce(function(et,rt){var st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return et[ct]=ut,et},{})}var getMenuData=function _e(et,rt,st,ct){var ut=transformRoute(et,(rt==null?void 0:rt.locale)||!1,st,!0),ft=ut.menuData,gt=ut.breadcrumb;return ct?_e(ct(ft),rt,st,void 0):{breadcrumb:fromEntries$1(gt),breadcrumbMap:gt,menuData:ft}},useCurrentMenuLayoutProps=function(et){var rt=reactExports.useState({}),st=_slicedToArray$3(rt,2),ct=st[0],ut=st[1];return reactExports.useEffect(function(){ut(omitUndefined({layout:_typeof$e(et.layout)!=="object"?et.layout:void 0,navTheme:et.navTheme,menuRender:et.menuRender,footerRender:et.footerRender,menuHeaderRender:et.menuHeaderRender,headerRender:et.headerRender,fixSiderbar:et.fixSiderbar}))},[et.layout,et.navTheme,et.menuRender,et.footerRender,et.menuHeaderRender,et.headerRender,et.fixSiderbar]),ct},_excluded$1=["id","defaultMessage"],_excluded2$1=["fixSiderbar","navTheme","layout"],layoutIndex=0,headerRender=function(et,rt){var st;return et.headerRender===!1||et.pure?null:jsxRuntimeExports.jsx(DefaultHeader,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{stylish:(st=et.stylish)===null||st===void 0?void 0:st.header}))},footerRender=function(et){return et.footerRender===!1||et.pure?null:et.footerRender?et.footerRender(_objectSpread2({},et),jsxRuntimeExports.jsx(DefaultFooter,{})):null},renderSiderMenu=function(et,rt){var st,ct=et.layout,ut=et.isMobile,ft=et.selectedKeys,gt=et.openKeys,xt=et.splitMenus,$t=et.suppressSiderWhenMenuEmpty,_t=et.menuRender;if(et.menuRender===!1||et.pure)return null;var wt=et.menuData;if(xt&&(gt!==!1||ct==="mix")&&!ut){var Tt=ft||rt,Rt=_slicedToArray$3(Tt,1),It=Rt[0];if(It){var At;wt=((At=et.menuData)===null||At===void 0||(At=At.find(function(Ft){return Ft.key===It}))===null||At===void 0?void 0:At.children)||[]}else wt=[]}var jt=clearMenuItem(wt||[]);if(jt&&(jt==null?void 0:jt.length)<1&&(xt||$t))return null;if(ct==="top"&&!ut){var Nt;return jsxRuntimeExports.jsx(SiderMenuWrapper,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{hide:!0,stylish:(Nt=et.stylish)===null||Nt===void 0?void 0:Nt.sider}))}var kt=jsxRuntimeExports.jsx(SiderMenuWrapper,_objectSpread2(_objectSpread2({matchMenuKeys:rt},et),{},{menuData:jt,stylish:(st=et.stylish)===null||st===void 0?void 0:st.sider}));return _t?_t(et,kt):kt},defaultPageTitleRender=function(et,rt){var st=rt.pageTitleRender,ct=getPageTitleInfo(et);if(st===!1)return{title:rt.title||"",id:"",pageName:""};if(st){var ut=st(et,ct.title,ct);if(typeof ut=="string")return getPageTitleInfo(_objectSpread2(_objectSpread2({},ct),{},{title:ut}));warningOnce$1(typeof ut=="string","pro-layout: renderPageTitle return value should be a string")}return ct},getPaddingInlineStart=function(et,rt,st){return et?rt?64:st:0},BaseProLayout=function(et){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt=et||{},Nt=jt.children,kt=jt.onCollapse,Ft=jt.location,Ht=Ft===void 0?{pathname:"/"}:Ft,Wt=jt.contentStyle,Vt=jt.route,qt=jt.defaultCollapsed,Xt=jt.style,Gt=jt.siderWidth,Zt=jt.menu,er=jt.siderMenuType,lr=jt.isChildrenLayout,cr=jt.menuDataRender,ur=jt.actionRef,fr=jt.bgLayoutImgList,hr=jt.formatMessage,pr=jt.loading,dr=reactExports.useMemo(function(){return Gt||(et.layout==="mix"?215:256)},[et.layout,Gt]),yr=reactExports.useContext(ConfigProvider$1.ConfigContext),Sr=(rt=et.prefixCls)!==null&&rt!==void 0?rt:yr.getPrefixCls("pro"),br=useMergedState(!1,{value:Zt==null?void 0:Zt.loading,onChange:Zt==null?void 0:Zt.onLoadingChange}),mr=_slicedToArray$3(br,2),Er=mr[0],Tr=mr[1],Mr=reactExports.useState(function(){return layoutIndex+=1,"pro-layout-".concat(layoutIndex)}),Or=_slicedToArray$3(Mr,1),wr=Or[0],Cr=reactExports.useCallback(function(cn){var Pn=cn.id,An=cn.defaultMessage,Xn=_objectWithoutProperties$2(cn,_excluded$1);if(hr)return hr(_objectSpread2({id:Pn,defaultMessage:An},Xn));var eo=gLocaleObject();return eo[Pn]?eo[Pn]:An},[hr]),Nr=useSWR([wr,Zt==null?void 0:Zt.params],function(){var cn=_asyncToGenerator(_regeneratorRuntime().mark(function Pn(An){var Xn,eo,ro,Kn;return _regeneratorRuntime().wrap(function(uo){for(;;)switch(uo.prev=uo.next){case 0:return eo=_slicedToArray$3(An,2),ro=eo[1],Tr(!0),uo.next=4,Zt==null||(Xn=Zt.request)===null||Xn===void 0?void 0:Xn.call(Zt,ro||{},(Vt==null?void 0:Vt.children)||(Vt==null?void 0:Vt.routes)||[]);case 4:return Kn=uo.sent,Tr(!1),uo.abrupt("return",Kn);case 7:case"end":return uo.stop()}},Pn)}));return function(Pn){return cn.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Rr=Nr.data,Pr=Nr.mutate,jr=Nr.isLoading;reactExports.useEffect(function(){Tr(jr)},[jr]);var kr=useSWRConfig(),Fr=kr.cache;reactExports.useEffect(function(){return function(){Fr instanceof Map&&Fr.delete(wr)}},[]);var _r=reactExports.useMemo(function(){return getMenuData(Rr||(Vt==null?void 0:Vt.children)||(Vt==null?void 0:Vt.routes)||[],Zt,Cr,cr)},[Cr,Zt,cr,Rr,Vt==null?void 0:Vt.children,Vt==null?void 0:Vt.routes]),Br=_r||{},Dr=Br.breadcrumb,Xr=Br.breadcrumbMap,Kr=Br.menuData,Hr=Kr===void 0?[]:Kr;ur&&Zt!==null&&Zt!==void 0&&Zt.request&&(ur.current={reload:function(){Pr()}});var Vr=reactExports.useMemo(function(){return getMatchMenu(Ht.pathname||"/",Hr||[],!0)},[Ht.pathname,Hr]),ln=reactExports.useMemo(function(){return Array.from(new Set(Vr.map(function(cn){return cn.key||cn.path||""})))},[Vr]),Qr=Vr[Vr.length-1]||{},Zr=useCurrentMenuLayoutProps(Qr),vn=_objectSpread2(_objectSpread2({},et),Zr),vr=vn.fixSiderbar;vn.navTheme;var gr=vn.layout,$r=_objectWithoutProperties$2(vn,_excluded2$1),zr=useBreakpoint(),qr=reactExports.useMemo(function(){return(zr==="sm"||zr==="xs")&&!et.disableMobile},[zr,et.disableMobile]),Wr=gr!=="top"&&!qr,Gr=useMergedState(function(){return qt!==void 0?qt:!!(qr||zr==="md")},{value:et.collapsed,onChange:kt}),dn=_slicedToArray$3(Gr,2),mn=dn[0],hn=dn[1],Cn=omit$1(_objectSpread2(_objectSpread2(_objectSpread2({prefixCls:Sr},et),{},{siderWidth:dr},Zr),{},{formatMessage:Cr,breadcrumb:Dr,menu:_objectSpread2(_objectSpread2({},Zt),{},{type:er||(Zt==null?void 0:Zt.type),loading:Er}),layout:gr}),["className","style","breadcrumbRender"]),Rn=defaultPageTitleRender(_objectSpread2(_objectSpread2({pathname:Ht.pathname},Cn),{},{breadcrumbMap:Xr}),et),kn=getBreadcrumbProps(_objectSpread2(_objectSpread2({},Cn),{},{breadcrumbRender:et.breadcrumbRender,breadcrumbMap:Xr}),et),Bn=renderSiderMenu(_objectSpread2(_objectSpread2({},Cn),{},{menuData:Hr,onCollapse:hn,isMobile:qr,collapsed:mn}),ln),Yn=headerRender(_objectSpread2(_objectSpread2({},Cn),{},{children:null,hasSiderMenu:!!Bn,menuData:Hr,isMobile:qr,collapsed:mn,onCollapse:hn}),ln),Gn=footerRender(_objectSpread2({isMobile:qr,collapsed:mn},Cn)),io=reactExports.useContext(RouteContext),pn=io.isChildrenLayout,gn=lr!==void 0?lr:pn,yn="".concat(Sr,"-layout"),_n=useStyle$1(yn),Tn=_n.wrapSSR,Nn=_n.hashId,On=classNames(et.className,Nn,"ant-design-pro",yn,_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c(_defineProperty$c({},"screen-".concat(zr),zr),"".concat(yn,"-top-menu"),gr==="top"),"".concat(yn,"-is-children"),gn),"".concat(yn,"-fix-siderbar"),vr),"".concat(yn,"-").concat(gr),gr)),$n=getPaddingInlineStart(!!Wr,mn,dr),Sn={position:"relative"};(gn||Wt&&Wt.minHeight)&&(Sn.minHeight=0),reactExports.useEffect(function(){var cn;(cn=et.onPageChange)===null||cn===void 0||cn.call(et,et.location)},[Ht.pathname,(st=Ht.pathname)===null||st===void 0?void 0:st.search]);var xn=reactExports.useState(!1),In=_slicedToArray$3(xn,2),jn=In[0],Hn=In[1],qn=reactExports.useState(0),Jn=_slicedToArray$3(qn,2),ao=Jn[0],Vn=Jn[1];useDocumentTitle(Rn,et.title||!1);var Wn=reactExports.useContext(ProProvider),zn=Wn.token,wn=reactExports.useMemo(function(){return fr&&fr.length>0?fr==null?void 0:fr.map(function(cn,Pn){return jsxRuntimeExports.jsx("img",{src:cn.src,style:_objectSpread2({position:"absolute"},cn)},Pn)}):null},[fr]);return Tn(jsxRuntimeExports.jsx(RouteContext.Provider,{value:_objectSpread2(_objectSpread2({},Cn),{},{breadcrumb:kn,menuData:Hr,isMobile:qr,collapsed:mn,hasPageContainer:ao,setHasPageContainer:Vn,isChildrenLayout:!0,title:Rn.pageName,hasSiderMenu:!!Bn,hasHeader:!!Yn,siderWidth:$n,hasFooter:!!Gn,hasFooterToolbar:jn,setHasFooterToolbar:Hn,pageTitleInfo:Rn,matchMenus:Vr,matchMenuKeys:ln,currentMenu:Qr}),children:et.pure?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Nt}):jsxRuntimeExports.jsxs("div",{className:On,children:[wn||(ct=zn.layout)!==null&&ct!==void 0&&ct.bgLayout?jsxRuntimeExports.jsx("div",{className:classNames("".concat(yn,"-bg-list"),Nn),children:wn}):null,jsxRuntimeExports.jsxs(Layout$2,{style:_objectSpread2({minHeight:"100%",flexDirection:Bn?"row":void 0},Xt),children:[jsxRuntimeExports.jsx(ConfigProvider$1,{theme:{hashed:isNeedOpenHash(),token:{controlHeightLG:((ut=zn.layout)===null||ut===void 0||(ut=ut.sider)===null||ut===void 0?void 0:ut.menuHeight)||(zn==null?void 0:zn.controlHeightLG)},components:{Menu:coverToNewToken({colorItemBg:((ft=zn.layout)===null||ft===void 0||(ft=ft.sider)===null||ft===void 0?void 0:ft.colorMenuBackground)||"transparent",colorSubItemBg:((gt=zn.layout)===null||gt===void 0||(gt=gt.sider)===null||gt===void 0?void 0:gt.colorMenuBackground)||"transparent",radiusItem:zn.borderRadius,colorItemBgSelected:((xt=zn.layout)===null||xt===void 0||(xt=xt.sider)===null||xt===void 0?void 0:xt.colorBgMenuItemSelected)||(zn==null?void 0:zn.colorBgTextHover),colorItemBgHover:(($t=zn.layout)===null||$t===void 0||($t=$t.sider)===null||$t===void 0?void 0:$t.colorBgMenuItemHover)||(zn==null?void 0:zn.colorBgTextHover),colorItemBgActive:((_t=zn.layout)===null||_t===void 0||(_t=_t.sider)===null||_t===void 0?void 0:_t.colorBgMenuItemActive)||(zn==null?void 0:zn.colorBgTextActive),colorItemBgSelectedHorizontal:((wt=zn.layout)===null||wt===void 0||(wt=wt.sider)===null||wt===void 0?void 0:wt.colorBgMenuItemSelected)||(zn==null?void 0:zn.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Tt=zn.layout)===null||Tt===void 0||(Tt=Tt.sider)===null||Tt===void 0?void 0:Tt.colorTextMenu)||(zn==null?void 0:zn.colorTextSecondary),colorItemTextHover:((Rt=zn.layout)===null||Rt===void 0||(Rt=Rt.sider)===null||Rt===void 0?void 0:Rt.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((It=zn.layout)===null||It===void 0||(It=It.sider)===null||It===void 0?void 0:It.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:zn==null?void 0:zn.colorBgElevated,subMenuItemBg:zn==null?void 0:zn.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:zn==null?void 0:zn.colorBgElevated})}},children:Bn}),jsxRuntimeExports.jsxs("div",{style:Sn,className:"".concat(yn,"-container ").concat(Nn).trim(),children:[Yn,jsxRuntimeExports.jsx(WrapContent,_objectSpread2(_objectSpread2({hasPageContainer:ao,isChildrenLayout:gn},$r),{},{hasHeader:!!Yn,prefixCls:yn,style:Wt,children:pr?jsxRuntimeExports.jsx(PageLoading,{}):Nt})),Gn,jn&&jsxRuntimeExports.jsx("div",{className:"".concat(yn,"-has-footer"),style:{height:64,marginBlockStart:(At=zn.layout)===null||At===void 0||(At=At.pageContainer)===null||At===void 0?void 0:At.paddingBlockPageContainerContent}})]})]})]})}))},ProLayout=function(et){var rt=et.colorPrimary,st=et.navTheme!==void 0?{dark:et.navTheme==="realDark"}:{};return jsxRuntimeExports.jsx(ConfigProvider$1,{theme:rt?{token:{colorPrimary:rt}}:void 0,children:jsxRuntimeExports.jsx(ProConfigProvider,_objectSpread2(_objectSpread2({autoClearCache:!0},st),{},{token:et.token,prefixCls:et.prefixCls,children:jsxRuntimeExports.jsx(BaseProLayout,_objectSpread2(_objectSpread2({logo:jsxRuntimeExports.jsx(Logo,{})},defaultSettings),{},{location:isBrowser()?window.location:void 0},et))}))})},extendStatics=function(_e,et){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,st){rt.__proto__=st}||function(rt,st){for(var ct in st)Object.prototype.hasOwnProperty.call(st,ct)&&(rt[ct]=st[ct])},extendStatics(_e,et)};function __extends(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics(_e,et);function rt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(rt.prototype=et.prototype,new rt)}var __assign=function(){return __assign=Object.assign||function(et){for(var rt,st=1,ct=arguments.length;st0&&ut[ut.length-1])&&($t[0]===6||$t[0]===2)){rt=0;continue}if($t[0]===3&&(!ut||$t[1]>ut[0]&&$t[1]0)&&!(ct=st.next()).done;)ut.push(ct.value)}catch(gt){ft={error:gt}}finally{try{ct&&!ct.done&&(rt=st.return)&&rt.call(st)}finally{if(ft)throw ft.error}}return ut}function __spreadArray(_e,et,rt){if(rt||arguments.length===2)for(var st=0,ct=et.length,ut;st0}),rt=[],st=0,ct=et;st1)throw new RangeError("integer-width stems only accept a single optional option");ct.options[0].replace(INTEGER_WIDTH_REGEX,function(xt,$t,_t,wt,Tt,Rt){if($t)et.minimumIntegerDigits=_t.length;else{if(wt&&Tt)throw new Error("We currently do not support maximum integer digits");if(Rt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(ct.stem)){et.minimumIntegerDigits=ct.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(ct.stem)){if(ct.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");ct.stem.replace(FRACTION_PRECISION_REGEX,function(xt,$t,_t,wt,Tt,Rt){return _t==="*"?et.minimumFractionDigits=$t.length:wt&&wt[0]==="#"?et.maximumFractionDigits=wt.length:Tt&&Rt?(et.minimumFractionDigits=Tt.length,et.maximumFractionDigits=Tt.length+Rt.length):(et.minimumFractionDigits=$t.length,et.maximumFractionDigits=$t.length),""});var ut=ct.options[0];ut==="w"?et=__assign(__assign({},et),{trailingZeroDisplay:"stripIfInteger"}):ut&&(et=__assign(__assign({},et),parseSignificantPrecision(ut)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(ct.stem)){et=__assign(__assign({},et),parseSignificantPrecision(ct.stem));continue}var ft=parseSign(ct.stem);ft&&(et=__assign(__assign({},et),ft));var gt=parseConciseScientificAndEngineeringStem(ct.stem);gt&&(et=__assign(__assign({},et),gt))}return et}var timeData={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 getBestPattern(_e,et){for(var rt="",st=0;st<_e.length;st++){var ct=_e.charAt(st);if(ct==="j"){for(var ut=0;st+1<_e.length&&_e.charAt(st+1)===ct;)ut++,st++;var ft=1+(ut&1),gt=ut<2?1:3+(ut>>1),xt="a",$t=getDefaultHourSymbolFromLocale(et);for(($t=="H"||$t=="k")&&(gt=0);gt-- >0;)rt+=xt;for(;ft-- >0;)rt=$t+rt}else ct==="J"?rt+="H":rt+=ct}return rt}function getDefaultHourSymbolFromLocale(_e){var et=_e.hourCycle;if(et===void 0&&_e.hourCycles&&_e.hourCycles.length&&(et=_e.hourCycles[0]),et)switch(et){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var rt=_e.language,st;rt!=="root"&&(st=_e.maximize().region);var ct=timeData[st||""]||timeData[rt||""]||timeData["".concat(rt,"-001")]||timeData["001"];return ct[0]}var _a$1,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(_e,et){return{start:_e,end:et}}var hasNativeStartsWith=!!String.prototype.startsWith&&"_a".startsWith("a",1),hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e&&Math.abs(_e)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re$2=RE$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a$1=re$2.exec("a"))===null||_a$1===void 0?void 0:_a$1[0])==="a"}catch{REGEX_SUPPORTS_U_AND_Y=!1}var startsWith=hasNativeStartsWith?function(et,rt,st){return et.startsWith(rt,st)}:function(et,rt,st){return et.slice(st,st+rt.length)===rt},fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var et=[],rt=0;rtut;){if(ft=et[ut++],ft>1114111)throw RangeError(ft+" is not a valid code point");st+=ft<65536?String.fromCharCode(ft):String.fromCharCode(((ft-=65536)>>10)+55296,ft%1024+56320)}return st},fromEntries=hasNativeFromEntries?Object.fromEntries:function(et){for(var rt={},st=0,ct=et;st=st)){var ct=et.charCodeAt(rt),ut;return ct<55296||ct>56319||rt+1===st||(ut=et.charCodeAt(rt+1))<56320||ut>57343?ct:(ct-55296<<10)+(ut-56320)+65536}},trimStart=hasTrimStart?function(et){return et.trimStart()}:function(et){return et.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(et){return et.trimEnd()}:function(et){return et.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE$1(_e,et){return new RegExp(_e,et)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(et,rt){var st;IDENTIFIER_PREFIX_RE_1.lastIndex=rt;var ct=IDENTIFIER_PREFIX_RE_1.exec(et);return(st=ct[1])!==null&&st!==void 0?st:""}}else matchIdentifierAtIndex=function(et,rt){for(var st=[];;){var ct=codePointAt(et,rt);if(ct===void 0||_isWhiteSpace(ct)||_isPatternSyntax(ct))break;st.push(ct),rt+=ct>=65536?2:1}return fromCodePoint.apply(void 0,st)};var Parser$1=function(){function _e(et,rt){rt===void 0&&(rt={}),this.message=et,this.position={offset:0,line:1,column:1},this.ignoreTag=!!rt.ignoreTag,this.locale=rt.locale,this.requiresOtherClause=!!rt.requiresOtherClause,this.shouldParseSkeletons=!!rt.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(et,rt,st){for(var ct=[];!this.isEOF();){var ut=this.char();if(ut===123){var ft=this.parseArgument(et,st);if(ft.err)return ft;ct.push(ft.val)}else{if(ut===125&&et>0)break;if(ut===35&&(rt==="plural"||rt==="selectordinal")){var gt=this.clonePosition();this.bump(),ct.push({type:TYPE.pound,location:createLocation(gt,this.clonePosition())})}else if(ut===60&&!this.ignoreTag&&this.peek()===47){if(st)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}else if(ut===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var ft=this.parseTag(et,rt);if(ft.err)return ft;ct.push(ft.val)}else{var ft=this.parseLiteral(et,rt);if(ft.err)return ft;ct.push(ft.val)}}}return{val:ct,err:null}},_e.prototype.parseTag=function(et,rt){var st=this.clonePosition();this.bump();var ct=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(ct,"/>"),location:createLocation(st,this.clonePosition())},err:null};if(this.bumpIf(">")){var ut=this.parseMessage(et+1,rt,!0);if(ut.err)return ut;var ft=ut.val,gt=this.clonePosition();if(this.bumpIf("")?{val:{type:TYPE.tag,value:ct,children:ft,location:createLocation(st,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation(gt,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation(st,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition()))},_e.prototype.parseTagName=function(){var et=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(et,this.offset())},_e.prototype.parseLiteral=function(et,rt){for(var st=this.clonePosition(),ct="";;){var ut=this.tryParseQuote(rt);if(ut){ct+=ut;continue}var ft=this.tryParseUnquoted(et,rt);if(ft){ct+=ft;continue}var gt=this.tryParseLeftAngleBracket();if(gt){ct+=gt;continue}break}var xt=createLocation(st,this.clonePosition());return{val:{type:TYPE.literal,value:ct,location:xt},err:null}},_e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},_e.prototype.tryParseQuote=function(et){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(et==="plural"||et==="selectordinal")break;return null;default:return null}this.bump();var rt=[this.char()];for(this.bump();!this.isEOF();){var st=this.char();if(st===39)if(this.peek()===39)rt.push(39),this.bump();else{this.bump();break}else rt.push(st);this.bump()}return fromCodePoint.apply(void 0,rt)},_e.prototype.tryParseUnquoted=function(et,rt){if(this.isEOF())return null;var st=this.char();return st===60||st===123||st===35&&(rt==="plural"||rt==="selectordinal")||st===125&&et>0?null:(this.bump(),fromCodePoint(st))},_e.prototype.parseArgument=function(et,rt){var st=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(st,this.clonePosition()));var ct=this.parseIdentifierIfPossible().value;if(!ct)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(st,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:ct,location:createLocation(st,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition())):this.parseArgumentOptions(et,rt,ct,st);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(st,this.clonePosition()))}},_e.prototype.parseIdentifierIfPossible=function(){var et=this.clonePosition(),rt=this.offset(),st=matchIdentifierAtIndex(this.message,rt),ct=rt+st.length;this.bumpTo(ct);var ut=this.clonePosition(),ft=createLocation(et,ut);return{value:st,location:ft}},_e.prototype.parseArgumentOptions=function(et,rt,st,ct){var ut,ft=this.clonePosition(),gt=this.parseIdentifierIfPossible().value,xt=this.clonePosition();switch(gt){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(ft,xt));case"number":case"date":case"time":{this.bumpSpace();var $t=null;if(this.bumpIf(",")){this.bumpSpace();var _t=this.clonePosition(),wt=this.parseSimpleArgStyleIfPossible();if(wt.err)return wt;var Tt=trimEnd(wt.val);if(Tt.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));var Rt=createLocation(_t,this.clonePosition());$t={style:Tt,styleLocation:Rt}}var It=this.tryParseArgumentClose(ct);if(It.err)return It;var At=createLocation(ct,this.clonePosition());if($t&&startsWith($t==null?void 0:$t.style,"::",0)){var jt=trimStart($t.style.slice(2));if(gt==="number"){var wt=this.parseNumberSkeletonFromString(jt,$t.styleLocation);return wt.err?wt:{val:{type:TYPE.number,value:st,location:At,style:wt.val},err:null}}else{if(jt.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,At);var Nt=jt;this.locale&&(Nt=getBestPattern(jt,this.locale));var Tt={type:SKELETON_TYPE.dateTime,pattern:Nt,location:$t.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Nt):{}},kt=gt==="date"?TYPE.date:TYPE.time;return{val:{type:kt,value:st,location:At,style:Tt},err:null}}}return{val:{type:gt==="number"?TYPE.number:gt==="date"?TYPE.date:TYPE.time,value:st,location:At,style:(ut=$t==null?void 0:$t.style)!==null&&ut!==void 0?ut:null},err:null}}case"plural":case"selectordinal":case"select":{var Ft=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(Ft,__assign({},Ft)));this.bumpSpace();var Ht=this.parseIdentifierIfPossible(),Wt=0;if(gt!=="select"&&Ht.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var wt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(wt.err)return wt;this.bumpSpace(),Ht=this.parseIdentifierIfPossible(),Wt=wt.val}var Vt=this.tryParsePluralOrSelectOptions(et,gt,rt,Ht);if(Vt.err)return Vt;var It=this.tryParseArgumentClose(ct);if(It.err)return It;var qt=createLocation(ct,this.clonePosition());return gt==="select"?{val:{type:TYPE.select,value:st,options:fromEntries(Vt.val),location:qt},err:null}:{val:{type:TYPE.plural,value:st,options:fromEntries(Vt.val),offset:Wt,pluralType:gt==="plural"?"cardinal":"ordinal",location:qt},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(ft,xt))}},_e.prototype.tryParseArgumentClose=function(et){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(et,this.clonePosition())):(this.bump(),{val:!0,err:null})},_e.prototype.parseSimpleArgStyleIfPossible=function(){for(var et=0,rt=this.clonePosition();!this.isEOF();){var st=this.char();switch(st){case 39:{this.bump();var ct=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(ct,this.clonePosition()));this.bump();break}case 123:{et+=1,this.bump();break}case 125:{if(et>0)et-=1;else return{val:this.message.slice(rt.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(rt.offset,this.offset()),err:null}},_e.prototype.parseNumberSkeletonFromString=function(et,rt){var st=[];try{st=parseNumberSkeletonFromString(et)}catch{return this.error(ErrorKind.INVALID_NUMBER_SKELETON,rt)}return{val:{type:SKELETON_TYPE.number,tokens:st,location:rt,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(st):{}},err:null}},_e.prototype.tryParsePluralOrSelectOptions=function(et,rt,st,ct){for(var ut,ft=!1,gt=[],xt=new Set,$t=ct.value,_t=ct.location;;){if($t.length===0){var wt=this.clonePosition();if(rt!=="select"&&this.bumpIf("=")){var Tt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(Tt.err)return Tt;_t=createLocation(wt,this.clonePosition()),$t=this.message.slice(wt.offset,this.offset())}else break}if(xt.has($t))return this.error(rt==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,_t);$t==="other"&&(ft=!0),this.bumpSpace();var Rt=this.clonePosition();if(!this.bumpIf("{"))return this.error(rt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var It=this.parseMessage(et+1,rt,st);if(It.err)return It;var At=this.tryParseArgumentClose(Rt);if(At.err)return At;gt.push([$t,{value:It.val,location:createLocation(Rt,this.clonePosition())}]),xt.add($t),this.bumpSpace(),ut=this.parseIdentifierIfPossible(),$t=ut.value,_t=ut.location}return gt.length===0?this.error(rt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ft?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:gt,err:null}},_e.prototype.tryParseDecimalInteger=function(et,rt){var st=1,ct=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(st=-1);for(var ut=!1,ft=0;!this.isEOF();){var gt=this.char();if(gt>=48&><=57)ut=!0,ft=ft*10+(gt-48),this.bump();else break}var xt=createLocation(ct,this.clonePosition());return ut?(ft*=st,isSafeInteger(ft)?{val:ft,err:null}:this.error(rt,xt)):this.error(et,xt)},_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 et=this.position.offset;if(et>=this.message.length)throw Error("out of bound");var rt=codePointAt(this.message,et);if(rt===void 0)throw Error("Offset ".concat(et," is at invalid UTF-16 code unit boundary"));return rt},_e.prototype.error=function(et,rt){return{val:null,err:{kind:et,message:this.message,location:rt}}},_e.prototype.bump=function(){if(!this.isEOF()){var et=this.char();et===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=et<65536?1:2)}},_e.prototype.bumpIf=function(et){if(startsWith(this.message,et,this.offset())){for(var rt=0;rt=0?(this.bumpTo(st),!0):(this.bumpTo(this.message.length),!1)},_e.prototype.bumpTo=function(et){if(this.offset()>et)throw Error("targetOffset ".concat(et," must be greater than or equal to the current offset ").concat(this.offset()));for(et=Math.min(et,this.message.length);;){var rt=this.offset();if(rt===et)break;if(rt>et)throw Error("targetOffset ".concat(et," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},_e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},_e.prototype.peek=function(){if(this.isEOF())return null;var et=this.char(),rt=this.offset(),st=this.message.charCodeAt(rt+(et>=65536?2:1));return st??null},_e}();function _isAlpha(_e){return _e>=97&&_e<=122||_e>=65&&_e<=90}function _isAlphaOrSlash(_e){return _isAlpha(_e)||_e===47}function _isPotentialElementNameChar(_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 _isWhiteSpace(_e){return _e>=9&&_e<=13||_e===32||_e===133||_e>=8206&&_e<=8207||_e===8232||_e===8233}function _isPatternSyntax(_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 pruneLocation(_e){_e.forEach(function(et){if(delete et.location,isSelectElement(et)||isPluralElement(et))for(var rt in et.options)delete et.options[rt].location,pruneLocation(et.options[rt].value);else isNumberElement(et)&&isNumberSkeleton(et.style)||(isDateElement(et)||isTimeElement(et))&&isDateTimeSkeleton(et.style)?delete et.style.location:isTagElement(et)&&pruneLocation(et.children)})}function parse(_e,et){et===void 0&&(et={}),et=__assign({shouldParseSkeletons:!0,requiresOtherClause:!0},et);var rt=new Parser$1(_e,et).parse();if(rt.err){var st=SyntaxError(ErrorKind[rt.err.kind]);throw st.location=rt.err.location,st.originalMessage=rt.err.message,st}return et!=null&&et.captureLocation||pruneLocation(rt.val),rt.val}function memoize(_e,et){var rt=et&&et.cache?et.cache:cacheDefault,st=et&&et.serializer?et.serializer:serializerDefault,ct=et&&et.strategy?et.strategy:strategyDefault;return ct(_e,{cache:rt,serializer:st})}function isPrimitive(_e){return _e==null||typeof _e=="number"||typeof _e=="boolean"}function monadic(_e,et,rt,st){var ct=isPrimitive(st)?st:rt(st),ut=et.get(ct);return typeof ut>"u"&&(ut=_e.call(this,st),et.set(ct,ut)),ut}function variadic(_e,et,rt){var st=Array.prototype.slice.call(arguments,3),ct=rt(st),ut=et.get(ct);return typeof ut>"u"&&(ut=_e.apply(this,st),et.set(ct,ut)),ut}function assemble(_e,et,rt,st,ct){return rt.bind(et,_e,st,ct)}function strategyDefault(_e,et){var rt=_e.length===1?monadic:variadic;return assemble(_e,this,rt,et.cache.create(),et.serializer)}function strategyVariadic(_e,et){return assemble(_e,this,variadic,et.cache.create(),et.serializer)}function strategyMonadic(_e,et){return assemble(_e,this,monadic,et.cache.create(),et.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(_e){return this.cache[_e]};ObjectWithoutPrototypeCache.prototype.set=function(_e,et){this.cache[_e]=et};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic,monadic:strategyMonadic},ErrorCode;(function(_e){_e.MISSING_VALUE="MISSING_VALUE",_e.INVALID_VALUE="INVALID_VALUE",_e.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(_e){__extends(et,_e);function et(rt,st,ct){var ut=_e.call(this,rt)||this;return ut.code=st,ut.originalMessage=ct,ut}return et.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},et}(Error),InvalidValueError=function(_e){__extends(et,_e);function et(rt,st,ct,ut){return _e.call(this,'Invalid values for "'.concat(rt,'": "').concat(st,'". Options are "').concat(Object.keys(ct).join('", "'),'"'),ErrorCode.INVALID_VALUE,ut)||this}return et}(FormatError),InvalidValueTypeError=function(_e){__extends(et,_e);function et(rt,st,ct){return _e.call(this,'Value for "'.concat(rt,'" must be of type ').concat(st),ErrorCode.INVALID_VALUE,ct)||this}return et}(FormatError),MissingValueError=function(_e){__extends(et,_e);function et(rt,st){return _e.call(this,'The intl string context variable "'.concat(rt,'" was not provided to the string "').concat(st,'"'),ErrorCode.MISSING_VALUE,st)||this}return et}(FormatError),PART_TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(_e){return _e.length<2?_e:_e.reduce(function(et,rt){var st=et[et.length-1];return!st||st.type!==PART_TYPE.literal||rt.type!==PART_TYPE.literal?et.push(rt):st.value+=rt.value,et},[])}function isFormatXMLElementFn(_e){return typeof _e=="function"}function formatToParts(_e,et,rt,st,ct,ut,ft){if(_e.length===1&&isLiteralElement(_e[0]))return[{type:PART_TYPE.literal,value:_e[0].value}];for(var gt=[],xt=0,$t=_e;xt<$t.length;xt++){var _t=$t[xt];if(isLiteralElement(_t)){gt.push({type:PART_TYPE.literal,value:_t.value});continue}if(isPoundElement(_t)){typeof ut=="number"&>.push({type:PART_TYPE.literal,value:rt.getNumberFormat(et).format(ut)});continue}var wt=_t.value;if(!(ct&&wt in ct))throw new MissingValueError(wt,ft);var Tt=ct[wt];if(isArgumentElement(_t)){(!Tt||typeof Tt=="string"||typeof Tt=="number")&&(Tt=typeof Tt=="string"||typeof Tt=="number"?String(Tt):""),gt.push({type:typeof Tt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Tt});continue}if(isDateElement(_t)){var Rt=typeof _t.style=="string"?st.date[_t.style]:isDateTimeSkeleton(_t.style)?_t.style.parsedOptions:void 0;gt.push({type:PART_TYPE.literal,value:rt.getDateTimeFormat(et,Rt).format(Tt)});continue}if(isTimeElement(_t)){var Rt=typeof _t.style=="string"?st.time[_t.style]:isDateTimeSkeleton(_t.style)?_t.style.parsedOptions:st.time.medium;gt.push({type:PART_TYPE.literal,value:rt.getDateTimeFormat(et,Rt).format(Tt)});continue}if(isNumberElement(_t)){var Rt=typeof _t.style=="string"?st.number[_t.style]:isNumberSkeleton(_t.style)?_t.style.parsedOptions:void 0;Rt&&Rt.scale&&(Tt=Tt*(Rt.scale||1)),gt.push({type:PART_TYPE.literal,value:rt.getNumberFormat(et,Rt).format(Tt)});continue}if(isTagElement(_t)){var It=_t.children,At=_t.value,jt=ct[At];if(!isFormatXMLElementFn(jt))throw new InvalidValueTypeError(At,"function",ft);var Nt=formatToParts(It,et,rt,st,ct,ut),kt=jt(Nt.map(function(Wt){return Wt.value}));Array.isArray(kt)||(kt=[kt]),gt.push.apply(gt,kt.map(function(Wt){return{type:typeof Wt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Wt}}))}if(isSelectElement(_t)){var Ft=_t.options[Tt]||_t.options.other;if(!Ft)throw new InvalidValueError(_t.value,Tt,Object.keys(_t.options),ft);gt.push.apply(gt,formatToParts(Ft.value,et,rt,st,ct));continue}if(isPluralElement(_t)){var Ft=_t.options["=".concat(Tt)];if(!Ft){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment. + */var b$1=typeof Symbol=="function"&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$4=b$1?Symbol.for("react.context"):60110,l=b$1?Symbol.for("react.async_mode"):60111,m$2=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?Symbol.for("react.suspense_list"):60120,r$3=b$1?Symbol.for("react.memo"):60115,t=b$1?Symbol.for("react.lazy"):60116,v$2=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$2=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;function z$2(_e){if(typeof _e=="object"&&_e!==null){var et=_e.$$typeof;switch(et){case c$1:switch(_e=_e.type,_e){case l:case m$2:case e$1:case g$1:case f$1:case p$1:return _e;default:switch(_e=_e&&_e.$$typeof,_e){case k$4:case n$1:case t:case r$3:case h$1:return _e;default:return et}}case d$1:return et}}}function A$2(_e){return z$2(_e)===m$2}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m$2;reactIs_production_min.ContextConsumer=k$4;reactIs_production_min.ContextProvider=h$1;reactIs_production_min.Element=c$1;reactIs_production_min.ForwardRef=n$1;reactIs_production_min.Fragment=e$1;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$3;reactIs_production_min.Portal=d$1;reactIs_production_min.Profiler=g$1;reactIs_production_min.StrictMode=f$1;reactIs_production_min.Suspense=p$1;reactIs_production_min.isAsyncMode=function(_e){return A$2(_e)||z$2(_e)===l};reactIs_production_min.isConcurrentMode=A$2;reactIs_production_min.isContextConsumer=function(_e){return z$2(_e)===k$4};reactIs_production_min.isContextProvider=function(_e){return z$2(_e)===h$1};reactIs_production_min.isElement=function(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===c$1};reactIs_production_min.isForwardRef=function(_e){return z$2(_e)===n$1};reactIs_production_min.isFragment=function(_e){return z$2(_e)===e$1};reactIs_production_min.isLazy=function(_e){return z$2(_e)===t};reactIs_production_min.isMemo=function(_e){return z$2(_e)===r$3};reactIs_production_min.isPortal=function(_e){return z$2(_e)===d$1};reactIs_production_min.isProfiler=function(_e){return z$2(_e)===g$1};reactIs_production_min.isStrictMode=function(_e){return z$2(_e)===f$1};reactIs_production_min.isSuspense=function(_e){return z$2(_e)===p$1};reactIs_production_min.isValidElementType=function(_e){return typeof _e=="string"||typeof _e=="function"||_e===e$1||_e===m$2||_e===g$1||_e===f$1||_e===p$1||_e===q$1||typeof _e=="object"&&_e!==null&&(_e.$$typeof===t||_e.$$typeof===r$3||_e.$$typeof===h$1||_e.$$typeof===k$4||_e.$$typeof===n$1||_e.$$typeof===w$1||_e.$$typeof===x$2||_e.$$typeof===y$1||_e.$$typeof===v$2)};reactIs_production_min.typeOf=z$2;reactIs$1.exports=reactIs_production_min;var reactIsExports=reactIs$1.exports,reactIs=reactIsExports,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function invariant$2(_e,et,rt){if(rt===void 0&&(rt=Error),!_e)throw new rt(et)}var ErrorKind;(function(_e){_e[_e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",_e[_e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",_e[_e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",_e[_e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",_e[_e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",_e[_e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",_e[_e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",_e[_e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",_e[_e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",_e[_e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",_e[_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",_e[_e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",_e[_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",_e[_e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",_e[_e.INVALID_TAG=23]="INVALID_TAG",_e[_e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",_e[_e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",_e[_e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.argument=1]="argument",_e[_e.number=2]="number",_e[_e.date=3]="date",_e[_e.time=4]="time",_e[_e.select=5]="select",_e[_e.plural=6]="plural",_e[_e.pound=7]="pound",_e[_e.tag=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(_e){_e[_e.number=0]="number",_e[_e.dateTime=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(_e){return _e.type===TYPE.literal}function isArgumentElement(_e){return _e.type===TYPE.argument}function isNumberElement(_e){return _e.type===TYPE.number}function isDateElement(_e){return _e.type===TYPE.date}function isTimeElement(_e){return _e.type===TYPE.time}function isSelectElement(_e){return _e.type===TYPE.select}function isPluralElement(_e){return _e.type===TYPE.plural}function isPoundElement(_e){return _e.type===TYPE.pound}function isTagElement(_e){return _e.type===TYPE.tag}function isNumberSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(_e){var et={};return _e.replace(DATE_TIME_REGEX,function(rt){var st=rt.length;switch(rt[0]){case"G":et.era=st===4?"long":st===5?"narrow":"short";break;case"y":et.year=st===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":et.month=["numeric","2-digit","short","long","narrow"][st-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":et.day=["numeric","2-digit"][st-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":et.weekday=st===4?"long":st===5?"narrow":"short";break;case"e":if(st<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][st-4];break;case"c":if(st<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][st-4];break;case"a":et.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":et.hourCycle="h12",et.hour=["numeric","2-digit"][st-1];break;case"H":et.hourCycle="h23",et.hour=["numeric","2-digit"][st-1];break;case"K":et.hourCycle="h11",et.hour=["numeric","2-digit"][st-1];break;case"k":et.hourCycle="h24",et.hour=["numeric","2-digit"][st-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":et.minute=["numeric","2-digit"][st-1];break;case"s":et.second=["numeric","2-digit"][st-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":et.timeZoneName=st<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),et}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(_e){if(_e.length===0)throw new Error("Number skeleton cannot be empty");for(var et=_e.split(WHITE_SPACE_REGEX).filter(function(Tt){return Tt.length>0}),rt=[],st=0,ct=et;st1)throw new RangeError("integer-width stems only accept a single optional option");ct.options[0].replace(INTEGER_WIDTH_REGEX,function(xt,$t,_t,wt,Tt,Rt){if($t)et.minimumIntegerDigits=_t.length;else{if(wt&&Tt)throw new Error("We currently do not support maximum integer digits");if(Rt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(ct.stem)){et.minimumIntegerDigits=ct.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(ct.stem)){if(ct.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");ct.stem.replace(FRACTION_PRECISION_REGEX,function(xt,$t,_t,wt,Tt,Rt){return _t==="*"?et.minimumFractionDigits=$t.length:wt&&wt[0]==="#"?et.maximumFractionDigits=wt.length:Tt&&Rt?(et.minimumFractionDigits=Tt.length,et.maximumFractionDigits=Tt.length+Rt.length):(et.minimumFractionDigits=$t.length,et.maximumFractionDigits=$t.length),""});var ut=ct.options[0];ut==="w"?et=__assign(__assign({},et),{trailingZeroDisplay:"stripIfInteger"}):ut&&(et=__assign(__assign({},et),parseSignificantPrecision(ut)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(ct.stem)){et=__assign(__assign({},et),parseSignificantPrecision(ct.stem));continue}var ft=parseSign(ct.stem);ft&&(et=__assign(__assign({},et),ft));var gt=parseConciseScientificAndEngineeringStem(ct.stem);gt&&(et=__assign(__assign({},et),gt))}return et}var timeData={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 getBestPattern(_e,et){for(var rt="",st=0;st<_e.length;st++){var ct=_e.charAt(st);if(ct==="j"){for(var ut=0;st+1<_e.length&&_e.charAt(st+1)===ct;)ut++,st++;var ft=1+(ut&1),gt=ut<2?1:3+(ut>>1),xt="a",$t=getDefaultHourSymbolFromLocale(et);for(($t=="H"||$t=="k")&&(gt=0);gt-- >0;)rt+=xt;for(;ft-- >0;)rt=$t+rt}else ct==="J"?rt+="H":rt+=ct}return rt}function getDefaultHourSymbolFromLocale(_e){var et=_e.hourCycle;if(et===void 0&&_e.hourCycles&&_e.hourCycles.length&&(et=_e.hourCycles[0]),et)switch(et){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var rt=_e.language,st;rt!=="root"&&(st=_e.maximize().region);var ct=timeData[st||""]||timeData[rt||""]||timeData["".concat(rt,"-001")]||timeData["001"];return ct[0]}var _a$1,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(_e,et){return{start:_e,end:et}}var hasNativeStartsWith=!!String.prototype.startsWith&&"_a".startsWith("a",1),hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e&&Math.abs(_e)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re$3=RE$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a$1=re$3.exec("a"))===null||_a$1===void 0?void 0:_a$1[0])==="a"}catch{REGEX_SUPPORTS_U_AND_Y=!1}var startsWith=hasNativeStartsWith?function(et,rt,st){return et.startsWith(rt,st)}:function(et,rt,st){return et.slice(st,st+rt.length)===rt},fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var et=[],rt=0;rtut;){if(ft=et[ut++],ft>1114111)throw RangeError(ft+" is not a valid code point");st+=ft<65536?String.fromCharCode(ft):String.fromCharCode(((ft-=65536)>>10)+55296,ft%1024+56320)}return st},fromEntries=hasNativeFromEntries?Object.fromEntries:function(et){for(var rt={},st=0,ct=et;st=st)){var ct=et.charCodeAt(rt),ut;return ct<55296||ct>56319||rt+1===st||(ut=et.charCodeAt(rt+1))<56320||ut>57343?ct:(ct-55296<<10)+(ut-56320)+65536}},trimStart=hasTrimStart?function(et){return et.trimStart()}:function(et){return et.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(et){return et.trimEnd()}:function(et){return et.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE$1(_e,et){return new RegExp(_e,et)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(et,rt){var st;IDENTIFIER_PREFIX_RE_1.lastIndex=rt;var ct=IDENTIFIER_PREFIX_RE_1.exec(et);return(st=ct[1])!==null&&st!==void 0?st:""}}else matchIdentifierAtIndex=function(et,rt){for(var st=[];;){var ct=codePointAt(et,rt);if(ct===void 0||_isWhiteSpace(ct)||_isPatternSyntax(ct))break;st.push(ct),rt+=ct>=65536?2:1}return fromCodePoint.apply(void 0,st)};var Parser$1=function(){function _e(et,rt){rt===void 0&&(rt={}),this.message=et,this.position={offset:0,line:1,column:1},this.ignoreTag=!!rt.ignoreTag,this.locale=rt.locale,this.requiresOtherClause=!!rt.requiresOtherClause,this.shouldParseSkeletons=!!rt.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(et,rt,st){for(var ct=[];!this.isEOF();){var ut=this.char();if(ut===123){var ft=this.parseArgument(et,st);if(ft.err)return ft;ct.push(ft.val)}else{if(ut===125&&et>0)break;if(ut===35&&(rt==="plural"||rt==="selectordinal")){var gt=this.clonePosition();this.bump(),ct.push({type:TYPE.pound,location:createLocation(gt,this.clonePosition())})}else if(ut===60&&!this.ignoreTag&&this.peek()===47){if(st)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}else if(ut===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var ft=this.parseTag(et,rt);if(ft.err)return ft;ct.push(ft.val)}else{var ft=this.parseLiteral(et,rt);if(ft.err)return ft;ct.push(ft.val)}}}return{val:ct,err:null}},_e.prototype.parseTag=function(et,rt){var st=this.clonePosition();this.bump();var ct=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(ct,"/>"),location:createLocation(st,this.clonePosition())},err:null};if(this.bumpIf(">")){var ut=this.parseMessage(et+1,rt,!0);if(ut.err)return ut;var ft=ut.val,gt=this.clonePosition();if(this.bumpIf("")?{val:{type:TYPE.tag,value:ct,children:ft,location:createLocation(st,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation(gt,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation(st,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition()))},_e.prototype.parseTagName=function(){var et=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(et,this.offset())},_e.prototype.parseLiteral=function(et,rt){for(var st=this.clonePosition(),ct="";;){var ut=this.tryParseQuote(rt);if(ut){ct+=ut;continue}var ft=this.tryParseUnquoted(et,rt);if(ft){ct+=ft;continue}var gt=this.tryParseLeftAngleBracket();if(gt){ct+=gt;continue}break}var xt=createLocation(st,this.clonePosition());return{val:{type:TYPE.literal,value:ct,location:xt},err:null}},_e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},_e.prototype.tryParseQuote=function(et){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(et==="plural"||et==="selectordinal")break;return null;default:return null}this.bump();var rt=[this.char()];for(this.bump();!this.isEOF();){var st=this.char();if(st===39)if(this.peek()===39)rt.push(39),this.bump();else{this.bump();break}else rt.push(st);this.bump()}return fromCodePoint.apply(void 0,rt)},_e.prototype.tryParseUnquoted=function(et,rt){if(this.isEOF())return null;var st=this.char();return st===60||st===123||st===35&&(rt==="plural"||rt==="selectordinal")||st===125&&et>0?null:(this.bump(),fromCodePoint(st))},_e.prototype.parseArgument=function(et,rt){var st=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(st,this.clonePosition()));var ct=this.parseIdentifierIfPossible().value;if(!ct)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(st,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:ct,location:createLocation(st,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(st,this.clonePosition())):this.parseArgumentOptions(et,rt,ct,st);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(st,this.clonePosition()))}},_e.prototype.parseIdentifierIfPossible=function(){var et=this.clonePosition(),rt=this.offset(),st=matchIdentifierAtIndex(this.message,rt),ct=rt+st.length;this.bumpTo(ct);var ut=this.clonePosition(),ft=createLocation(et,ut);return{value:st,location:ft}},_e.prototype.parseArgumentOptions=function(et,rt,st,ct){var ut,ft=this.clonePosition(),gt=this.parseIdentifierIfPossible().value,xt=this.clonePosition();switch(gt){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(ft,xt));case"number":case"date":case"time":{this.bumpSpace();var $t=null;if(this.bumpIf(",")){this.bumpSpace();var _t=this.clonePosition(),wt=this.parseSimpleArgStyleIfPossible();if(wt.err)return wt;var Tt=trimEnd(wt.val);if(Tt.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));var Rt=createLocation(_t,this.clonePosition());$t={style:Tt,styleLocation:Rt}}var It=this.tryParseArgumentClose(ct);if(It.err)return It;var At=createLocation(ct,this.clonePosition());if($t&&startsWith($t==null?void 0:$t.style,"::",0)){var jt=trimStart($t.style.slice(2));if(gt==="number"){var wt=this.parseNumberSkeletonFromString(jt,$t.styleLocation);return wt.err?wt:{val:{type:TYPE.number,value:st,location:At,style:wt.val},err:null}}else{if(jt.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,At);var Nt=jt;this.locale&&(Nt=getBestPattern(jt,this.locale));var Tt={type:SKELETON_TYPE.dateTime,pattern:Nt,location:$t.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Nt):{}},kt=gt==="date"?TYPE.date:TYPE.time;return{val:{type:kt,value:st,location:At,style:Tt},err:null}}}return{val:{type:gt==="number"?TYPE.number:gt==="date"?TYPE.date:TYPE.time,value:st,location:At,style:(ut=$t==null?void 0:$t.style)!==null&&ut!==void 0?ut:null},err:null}}case"plural":case"selectordinal":case"select":{var Ft=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(Ft,__assign({},Ft)));this.bumpSpace();var Ht=this.parseIdentifierIfPossible(),Wt=0;if(gt!=="select"&&Ht.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var wt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(wt.err)return wt;this.bumpSpace(),Ht=this.parseIdentifierIfPossible(),Wt=wt.val}var Vt=this.tryParsePluralOrSelectOptions(et,gt,rt,Ht);if(Vt.err)return Vt;var It=this.tryParseArgumentClose(ct);if(It.err)return It;var qt=createLocation(ct,this.clonePosition());return gt==="select"?{val:{type:TYPE.select,value:st,options:fromEntries(Vt.val),location:qt},err:null}:{val:{type:TYPE.plural,value:st,options:fromEntries(Vt.val),offset:Wt,pluralType:gt==="plural"?"cardinal":"ordinal",location:qt},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(ft,xt))}},_e.prototype.tryParseArgumentClose=function(et){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(et,this.clonePosition())):(this.bump(),{val:!0,err:null})},_e.prototype.parseSimpleArgStyleIfPossible=function(){for(var et=0,rt=this.clonePosition();!this.isEOF();){var st=this.char();switch(st){case 39:{this.bump();var ct=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(ct,this.clonePosition()));this.bump();break}case 123:{et+=1,this.bump();break}case 125:{if(et>0)et-=1;else return{val:this.message.slice(rt.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(rt.offset,this.offset()),err:null}},_e.prototype.parseNumberSkeletonFromString=function(et,rt){var st=[];try{st=parseNumberSkeletonFromString(et)}catch{return this.error(ErrorKind.INVALID_NUMBER_SKELETON,rt)}return{val:{type:SKELETON_TYPE.number,tokens:st,location:rt,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(st):{}},err:null}},_e.prototype.tryParsePluralOrSelectOptions=function(et,rt,st,ct){for(var ut,ft=!1,gt=[],xt=new Set,$t=ct.value,_t=ct.location;;){if($t.length===0){var wt=this.clonePosition();if(rt!=="select"&&this.bumpIf("=")){var Tt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(Tt.err)return Tt;_t=createLocation(wt,this.clonePosition()),$t=this.message.slice(wt.offset,this.offset())}else break}if(xt.has($t))return this.error(rt==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,_t);$t==="other"&&(ft=!0),this.bumpSpace();var Rt=this.clonePosition();if(!this.bumpIf("{"))return this.error(rt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var It=this.parseMessage(et+1,rt,st);if(It.err)return It;var At=this.tryParseArgumentClose(Rt);if(At.err)return At;gt.push([$t,{value:It.val,location:createLocation(Rt,this.clonePosition())}]),xt.add($t),this.bumpSpace(),ut=this.parseIdentifierIfPossible(),$t=ut.value,_t=ut.location}return gt.length===0?this.error(rt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ft?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:gt,err:null}},_e.prototype.tryParseDecimalInteger=function(et,rt){var st=1,ct=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(st=-1);for(var ut=!1,ft=0;!this.isEOF();){var gt=this.char();if(gt>=48&><=57)ut=!0,ft=ft*10+(gt-48),this.bump();else break}var xt=createLocation(ct,this.clonePosition());return ut?(ft*=st,isSafeInteger(ft)?{val:ft,err:null}:this.error(rt,xt)):this.error(et,xt)},_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 et=this.position.offset;if(et>=this.message.length)throw Error("out of bound");var rt=codePointAt(this.message,et);if(rt===void 0)throw Error("Offset ".concat(et," is at invalid UTF-16 code unit boundary"));return rt},_e.prototype.error=function(et,rt){return{val:null,err:{kind:et,message:this.message,location:rt}}},_e.prototype.bump=function(){if(!this.isEOF()){var et=this.char();et===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=et<65536?1:2)}},_e.prototype.bumpIf=function(et){if(startsWith(this.message,et,this.offset())){for(var rt=0;rt=0?(this.bumpTo(st),!0):(this.bumpTo(this.message.length),!1)},_e.prototype.bumpTo=function(et){if(this.offset()>et)throw Error("targetOffset ".concat(et," must be greater than or equal to the current offset ").concat(this.offset()));for(et=Math.min(et,this.message.length);;){var rt=this.offset();if(rt===et)break;if(rt>et)throw Error("targetOffset ".concat(et," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},_e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},_e.prototype.peek=function(){if(this.isEOF())return null;var et=this.char(),rt=this.offset(),st=this.message.charCodeAt(rt+(et>=65536?2:1));return st??null},_e}();function _isAlpha(_e){return _e>=97&&_e<=122||_e>=65&&_e<=90}function _isAlphaOrSlash(_e){return _isAlpha(_e)||_e===47}function _isPotentialElementNameChar(_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 _isWhiteSpace(_e){return _e>=9&&_e<=13||_e===32||_e===133||_e>=8206&&_e<=8207||_e===8232||_e===8233}function _isPatternSyntax(_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 pruneLocation(_e){_e.forEach(function(et){if(delete et.location,isSelectElement(et)||isPluralElement(et))for(var rt in et.options)delete et.options[rt].location,pruneLocation(et.options[rt].value);else isNumberElement(et)&&isNumberSkeleton(et.style)||(isDateElement(et)||isTimeElement(et))&&isDateTimeSkeleton(et.style)?delete et.style.location:isTagElement(et)&&pruneLocation(et.children)})}function parse$1(_e,et){et===void 0&&(et={}),et=__assign({shouldParseSkeletons:!0,requiresOtherClause:!0},et);var rt=new Parser$1(_e,et).parse();if(rt.err){var st=SyntaxError(ErrorKind[rt.err.kind]);throw st.location=rt.err.location,st.originalMessage=rt.err.message,st}return et!=null&&et.captureLocation||pruneLocation(rt.val),rt.val}function memoize(_e,et){var rt=et&&et.cache?et.cache:cacheDefault,st=et&&et.serializer?et.serializer:serializerDefault,ct=et&&et.strategy?et.strategy:strategyDefault;return ct(_e,{cache:rt,serializer:st})}function isPrimitive(_e){return _e==null||typeof _e=="number"||typeof _e=="boolean"}function monadic(_e,et,rt,st){var ct=isPrimitive(st)?st:rt(st),ut=et.get(ct);return typeof ut>"u"&&(ut=_e.call(this,st),et.set(ct,ut)),ut}function variadic(_e,et,rt){var st=Array.prototype.slice.call(arguments,3),ct=rt(st),ut=et.get(ct);return typeof ut>"u"&&(ut=_e.apply(this,st),et.set(ct,ut)),ut}function assemble(_e,et,rt,st,ct){return rt.bind(et,_e,st,ct)}function strategyDefault(_e,et){var rt=_e.length===1?monadic:variadic;return assemble(_e,this,rt,et.cache.create(),et.serializer)}function strategyVariadic(_e,et){return assemble(_e,this,variadic,et.cache.create(),et.serializer)}function strategyMonadic(_e,et){return assemble(_e,this,monadic,et.cache.create(),et.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(_e){return this.cache[_e]};ObjectWithoutPrototypeCache.prototype.set=function(_e,et){this.cache[_e]=et};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic,monadic:strategyMonadic},ErrorCode;(function(_e){_e.MISSING_VALUE="MISSING_VALUE",_e.INVALID_VALUE="INVALID_VALUE",_e.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(_e){__extends(et,_e);function et(rt,st,ct){var ut=_e.call(this,rt)||this;return ut.code=st,ut.originalMessage=ct,ut}return et.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},et}(Error),InvalidValueError=function(_e){__extends(et,_e);function et(rt,st,ct,ut){return _e.call(this,'Invalid values for "'.concat(rt,'": "').concat(st,'". Options are "').concat(Object.keys(ct).join('", "'),'"'),ErrorCode.INVALID_VALUE,ut)||this}return et}(FormatError),InvalidValueTypeError=function(_e){__extends(et,_e);function et(rt,st,ct){return _e.call(this,'Value for "'.concat(rt,'" must be of type ').concat(st),ErrorCode.INVALID_VALUE,ct)||this}return et}(FormatError),MissingValueError=function(_e){__extends(et,_e);function et(rt,st){return _e.call(this,'The intl string context variable "'.concat(rt,'" was not provided to the string "').concat(st,'"'),ErrorCode.MISSING_VALUE,st)||this}return et}(FormatError),PART_TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(_e){return _e.length<2?_e:_e.reduce(function(et,rt){var st=et[et.length-1];return!st||st.type!==PART_TYPE.literal||rt.type!==PART_TYPE.literal?et.push(rt):st.value+=rt.value,et},[])}function isFormatXMLElementFn(_e){return typeof _e=="function"}function formatToParts(_e,et,rt,st,ct,ut,ft){if(_e.length===1&&isLiteralElement(_e[0]))return[{type:PART_TYPE.literal,value:_e[0].value}];for(var gt=[],xt=0,$t=_e;xt<$t.length;xt++){var _t=$t[xt];if(isLiteralElement(_t)){gt.push({type:PART_TYPE.literal,value:_t.value});continue}if(isPoundElement(_t)){typeof ut=="number"&>.push({type:PART_TYPE.literal,value:rt.getNumberFormat(et).format(ut)});continue}var wt=_t.value;if(!(ct&&wt in ct))throw new MissingValueError(wt,ft);var Tt=ct[wt];if(isArgumentElement(_t)){(!Tt||typeof Tt=="string"||typeof Tt=="number")&&(Tt=typeof Tt=="string"||typeof Tt=="number"?String(Tt):""),gt.push({type:typeof Tt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Tt});continue}if(isDateElement(_t)){var Rt=typeof _t.style=="string"?st.date[_t.style]:isDateTimeSkeleton(_t.style)?_t.style.parsedOptions:void 0;gt.push({type:PART_TYPE.literal,value:rt.getDateTimeFormat(et,Rt).format(Tt)});continue}if(isTimeElement(_t)){var Rt=typeof _t.style=="string"?st.time[_t.style]:isDateTimeSkeleton(_t.style)?_t.style.parsedOptions:st.time.medium;gt.push({type:PART_TYPE.literal,value:rt.getDateTimeFormat(et,Rt).format(Tt)});continue}if(isNumberElement(_t)){var Rt=typeof _t.style=="string"?st.number[_t.style]:isNumberSkeleton(_t.style)?_t.style.parsedOptions:void 0;Rt&&Rt.scale&&(Tt=Tt*(Rt.scale||1)),gt.push({type:PART_TYPE.literal,value:rt.getNumberFormat(et,Rt).format(Tt)});continue}if(isTagElement(_t)){var It=_t.children,At=_t.value,jt=ct[At];if(!isFormatXMLElementFn(jt))throw new InvalidValueTypeError(At,"function",ft);var Nt=formatToParts(It,et,rt,st,ct,ut),kt=jt(Nt.map(function(Wt){return Wt.value}));Array.isArray(kt)||(kt=[kt]),gt.push.apply(gt,kt.map(function(Wt){return{type:typeof Wt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Wt}}))}if(isSelectElement(_t)){var Ft=_t.options[Tt]||_t.options.other;if(!Ft)throw new InvalidValueError(_t.value,Tt,Object.keys(_t.options),ft);gt.push.apply(gt,formatToParts(Ft.value,et,rt,st,ct));continue}if(isPluralElement(_t)){var Ft=_t.options["=".concat(Tt)];if(!Ft){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" -`,ErrorCode.MISSING_INTL_API,ft);var Ht=rt.getPluralRules(et,{type:_t.pluralType}).select(Tt-(_t.offset||0));Ft=_t.options[Ht]||_t.options.other}if(!Ft)throw new InvalidValueError(_t.value,Tt,Object.keys(_t.options),ft);gt.push.apply(gt,formatToParts(Ft.value,et,rt,st,ct,Tt-(_t.offset||0)));continue}}return mergeLiteral(gt)}function mergeConfig$1(_e,et){return et?__assign(__assign(__assign({},_e||{}),et||{}),Object.keys(_e).reduce(function(rt,st){return rt[st]=__assign(__assign({},_e[st]),et[st]||{}),rt},{})):_e}function mergeConfigs$1(_e,et){return et?Object.keys(_e).reduce(function(rt,st){return rt[st]=mergeConfig$1(_e[st],et[st]),rt},__assign({},_e)):_e}function createFastMemoizeCache$1(_e){return{create:function(){return{get:function(et){return _e[et]},set:function(et,rt){_e[et]=rt}}}}}function createDefaultFormatters(_e){return _e===void 0&&(_e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize(function(){for(var et,rt=[],st=0;st"u")){var rt=Intl.NumberFormat.supportedLocalesOf(et);return rt.length>0?new Intl.Locale(rt[0]):new Intl.Locale(typeof et=="string"?et:et[0])}},_e.__parse=parse,_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}(),IntlErrorCode;(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"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(_e){__extends(et,_e);function et(rt,st,ct){var ut=this,ft=ct?ct instanceof Error?ct:new Error(String(ct)):void 0;return ut=_e.call(this,"[@formatjs/intl Error ".concat(rt,"] ").concat(st,` +`,ErrorCode.MISSING_INTL_API,ft);var Ht=rt.getPluralRules(et,{type:_t.pluralType}).select(Tt-(_t.offset||0));Ft=_t.options[Ht]||_t.options.other}if(!Ft)throw new InvalidValueError(_t.value,Tt,Object.keys(_t.options),ft);gt.push.apply(gt,formatToParts(Ft.value,et,rt,st,ct,Tt-(_t.offset||0)));continue}}return mergeLiteral(gt)}function mergeConfig$1(_e,et){return et?__assign(__assign(__assign({},_e||{}),et||{}),Object.keys(_e).reduce(function(rt,st){return rt[st]=__assign(__assign({},_e[st]),et[st]||{}),rt},{})):_e}function mergeConfigs$1(_e,et){return et?Object.keys(_e).reduce(function(rt,st){return rt[st]=mergeConfig$1(_e[st],et[st]),rt},__assign({},_e)):_e}function createFastMemoizeCache$1(_e){return{create:function(){return{get:function(et){return _e[et]},set:function(et,rt){_e[et]=rt}}}}}function createDefaultFormatters(_e){return _e===void 0&&(_e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize(function(){for(var et,rt=[],st=0;st"u")){var rt=Intl.NumberFormat.supportedLocalesOf(et);return rt.length>0?new Intl.Locale(rt[0]):new Intl.Locale(typeof et=="string"?et:et[0])}},_e.__parse=parse$1,_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}(),IntlErrorCode;(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"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(_e){__extends(et,_e);function et(rt,st,ct){var ut=this,ft=ct?ct instanceof Error?ct:new Error(String(ct)):void 0;return ut=_e.call(this,"[@formatjs/intl Error ".concat(rt,"] ").concat(st,` `).concat(ft?` `.concat(ft.message,` `).concat(ft.stack):""))||this,ut.code=rt,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(ut,et),ut}return et}(Error),UnsupportedFormatterError=function(_e){__extends(et,_e);function et(rt,st){return _e.call(this,IntlErrorCode.UNSUPPORTED_FORMATTER,rt,st)||this}return et}(IntlError),InvalidConfigError=function(_e){__extends(et,_e);function et(rt,st){return _e.call(this,IntlErrorCode.INVALID_CONFIG,rt,st)||this}return et}(IntlError),MissingDataError=function(_e){__extends(et,_e);function et(rt,st){return _e.call(this,IntlErrorCode.MISSING_DATA,rt,st)||this}return et}(IntlError),IntlFormatError=function(_e){__extends(et,_e);function et(rt,st,ct){var ut=_e.call(this,IntlErrorCode.FORMAT_ERROR,"".concat(rt,` @@ -793,17 +808,17 @@ Try polyfilling it using "@formatjs/intl-pluralrules" Try polyfilling it using "@formatjs/intl-relativetimeformat" `,ErrorCode.MISSING_INTL_API));try{return getFormatter$1(_e,et,ct).format(rt,st)}catch(ft){_e.onError(new IntlFormatError("Error formatting relative time.",_e.locale,ft))}return String(rt)}var NUMBER_FORMAT_OPTIONS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function getFormatter(_e,et,rt){var st=_e.locale,ct=_e.formats,ut=_e.onError;rt===void 0&&(rt={});var ft=rt.format,gt=ft&&getNamedFormat(ct,"number",ft,ut)||{},xt=filterProps(rt,NUMBER_FORMAT_OPTIONS,gt);return et(st,xt)}function formatNumber(_e,et,rt,st){st===void 0&&(st={});try{return getFormatter(_e,et,st).format(rt)}catch(ct){_e.onError(new IntlFormatError("Error formatting number.",_e.locale,ct))}return String(rt)}function formatNumberToParts(_e,et,rt,st){st===void 0&&(st={});try{return getFormatter(_e,et,st).formatToParts(rt)}catch(ct){_e.onError(new IntlFormatError("Error formatting number.",_e.locale,ct))}return[]}function messagesContainString(_e){var et=_e?_e[Object.keys(_e)[0]]:void 0;return typeof et=="string"}function verifyConfigMessages(_e){_e.onWarn&&_e.defaultRichTextElements&&messagesContainString(_e.messages||{})&&_e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. Please consider using "@formatjs/cli" to pre-compile your messages for performance. -For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function createIntl$1(_e,et){var rt=createFormatters(et),st=__assign(__assign({},DEFAULT_INTL_CONFIG$1),_e),ct=st.locale,ut=st.defaultLocale,ft=st.onError;return ct?!Intl.NumberFormat.supportedLocalesOf(ct).length&&ft?ft(new MissingDataError('Missing locale data for locale: "'.concat(ct,'" in Intl.NumberFormat. Using default locale: "').concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(ct).length&&ft&&ft(new MissingDataError('Missing locale data for locale: "'.concat(ct,'" in Intl.DateTimeFormat. Using default locale: "').concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(ft&&ft(new InvalidConfigError('"locale" was not configured, using "'.concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),st.locale=st.defaultLocale||"en"),verifyConfigMessages(st),__assign(__assign({},st),{formatters:rt,formatNumber:formatNumber.bind(null,st,rt.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,st,rt.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,st,rt.getRelativeTimeFormat),formatDate:formatDate$1.bind(null,st,rt.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,st,rt.getDateTimeFormat),formatTime:formatTime$1.bind(null,st,rt.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,st,rt.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,st,rt.getDateTimeFormat),formatPlural:formatPlural.bind(null,st,rt.getPluralRules),formatMessage:formatMessage$1.bind(null,st,rt),$t:formatMessage$1.bind(null,st,rt),formatList:formatList.bind(null,st,rt.getListFormat),formatListToParts:formatListToParts.bind(null,st,rt.getListFormat),formatDisplayName:formatDisplayName.bind(null,st,rt.getDisplayNames)})}function invariantIntlContext(_e){invariant$2(_e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var DEFAULT_INTL_CONFIG=__assign(__assign({},DEFAULT_INTL_CONFIG$1),{textComponent:reactExports.Fragment});function assignUniqueKeysToParts(_e){return function(et){return _e(reactExports.Children.toArray(et))}}function shallowEqual$1(_e,et){if(_e===et)return!0;if(!_e||!et)return!1;var rt=Object.keys(_e),st=Object.keys(et),ct=rt.length;if(st.length!==ct)return!1;for(var ut=0;ut{const et=useIntl();return theme.useToken(),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="account"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{name:"username",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined$1,{className:"prefixIcon"})},placeholder:et.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),jsxRuntimeExports.jsx(ProFormText$1.Password,{name:"password",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},placeholder:et.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]})]})})};function bind(_e,et){return function(){return _e.apply(et,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf:getPrototypeOf$2}=Object,kindOf=(_e=>et=>{const rt=toString$1.call(et);return _e[rt]||(_e[rt]=rt.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=_e=>(_e=_e.toLowerCase(),et=>kindOf(et)===_e),typeOfTest=_e=>et=>typeof et===_e,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(_e){return _e!==null&&!isUndefined$1(_e)&&_e.constructor!==null&&!isUndefined$1(_e.constructor)&&isFunction$1(_e.constructor.isBuffer)&&_e.constructor.isBuffer(_e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_e){let et;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?et=ArrayBuffer.isView(_e):et=_e&&_e.buffer&&isArrayBuffer(_e.buffer),et}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$2=_e=>_e!==null&&typeof _e=="object",isBoolean=_e=>_e===!0||_e===!1,isPlainObject=_e=>{if(kindOf(_e)!=="object")return!1;const et=getPrototypeOf$2(_e);return(et===null||et===Object.prototype||Object.getPrototypeOf(et)===null)&&!(Symbol.toStringTag in _e)&&!(Symbol.iterator in _e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=_e=>isObject$2(_e)&&isFunction$1(_e.pipe),isFormData=_e=>{let et;return _e&&(typeof FormData=="function"&&_e instanceof FormData||isFunction$1(_e.append)&&((et=kindOf(_e))==="formdata"||et==="object"&&isFunction$1(_e.toString)&&_e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=_e=>_e.trim?_e.trim():_e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(_e,et,{allOwnKeys:rt=!1}={}){if(_e===null||typeof _e>"u")return;let st,ct;if(typeof _e!="object"&&(_e=[_e]),isArray$1(_e))for(st=0,ct=_e.length;st0;)if(ct=rt[st],et===ct.toLowerCase())return ct;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=_e=>!isUndefined$1(_e)&&_e!==_global;function merge$1(){const{caseless:_e}=isContextDefined(this)&&this||{},et={},rt=(st,ct)=>{const ut=_e&&findKey(et,ct)||ct;isPlainObject(et[ut])&&isPlainObject(st)?et[ut]=merge$1(et[ut],st):isPlainObject(st)?et[ut]=merge$1({},st):isArray$1(st)?et[ut]=st.slice():et[ut]=st};for(let st=0,ct=arguments.length;st(forEach(et,(ct,ut)=>{rt&&isFunction$1(ct)?_e[ut]=bind(ct,rt):_e[ut]=ct},{allOwnKeys:st}),_e),stripBOM=_e=>(_e.charCodeAt(0)===65279&&(_e=_e.slice(1)),_e),inherits$1=(_e,et,rt,st)=>{_e.prototype=Object.create(et.prototype,st),_e.prototype.constructor=_e,Object.defineProperty(_e,"super",{value:et.prototype}),rt&&Object.assign(_e.prototype,rt)},toFlatObject=(_e,et,rt,st)=>{let ct,ut,ft;const gt={};if(et=et||{},_e==null)return et;do{for(ct=Object.getOwnPropertyNames(_e),ut=ct.length;ut-- >0;)ft=ct[ut],(!st||st(ft,_e,et))&&!gt[ft]&&(et[ft]=_e[ft],gt[ft]=!0);_e=rt!==!1&&getPrototypeOf$2(_e)}while(_e&&(!rt||rt(_e,et))&&_e!==Object.prototype);return et},endsWith=(_e,et,rt)=>{_e=String(_e),(rt===void 0||rt>_e.length)&&(rt=_e.length),rt-=et.length;const st=_e.indexOf(et,rt);return st!==-1&&st===rt},toArray$3=_e=>{if(!_e)return null;if(isArray$1(_e))return _e;let et=_e.length;if(!isNumber$1(et))return null;const rt=new Array(et);for(;et-- >0;)rt[et]=_e[et];return rt},isTypedArray=(_e=>et=>_e&&et instanceof _e)(typeof Uint8Array<"u"&&getPrototypeOf$2(Uint8Array)),forEachEntry=(_e,et)=>{const st=(_e&&_e[Symbol.iterator]).call(_e);let ct;for(;(ct=st.next())&&!ct.done;){const ut=ct.value;et.call(_e,ut[0],ut[1])}},matchAll=(_e,et)=>{let rt;const st=[];for(;(rt=_e.exec(et))!==null;)st.push(rt);return st},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=_e=>_e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(rt,st,ct){return st.toUpperCase()+ct}),hasOwnProperty=(({hasOwnProperty:_e})=>(et,rt)=>_e.call(et,rt))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(_e,et)=>{const rt=Object.getOwnPropertyDescriptors(_e),st={};forEach(rt,(ct,ut)=>{let ft;(ft=et(ct,ut,_e))!==!1&&(st[ut]=ft||ct)}),Object.defineProperties(_e,st)},freezeMethods=_e=>{reduceDescriptors(_e,(et,rt)=>{if(isFunction$1(_e)&&["arguments","caller","callee"].indexOf(rt)!==-1)return!1;const st=_e[rt];if(isFunction$1(st)){if(et.enumerable=!1,"writable"in et){et.writable=!1;return}et.set||(et.set=()=>{throw Error("Can not rewrite read-only method '"+rt+"'")})}})},toObjectSet=(_e,et)=>{const rt={},st=ct=>{ct.forEach(ut=>{rt[ut]=!0})};return isArray$1(_e)?st(_e):st(String(_e).split(et)),rt},noop$1=()=>{},toFiniteNumber=(_e,et)=>(_e=+_e,Number.isFinite(_e)?_e:et),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(_e=16,et=ALPHABET.ALPHA_DIGIT)=>{let rt="";const{length:st}=et;for(;_e--;)rt+=et[Math.random()*st|0];return rt};function isSpecCompliantForm(_e){return!!(_e&&isFunction$1(_e.append)&&_e[Symbol.toStringTag]==="FormData"&&_e[Symbol.iterator])}const toJSONObject=_e=>{const et=new Array(10),rt=(st,ct)=>{if(isObject$2(st)){if(et.indexOf(st)>=0)return;if(!("toJSON"in st)){et[ct]=st;const ut=isArray$1(st)?[]:{};return forEach(st,(ft,gt)=>{const xt=rt(ft,ct+1);!isUndefined$1(xt)&&(ut[gt]=xt)}),et[ct]=void 0,ut}}return st};return rt(_e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=_e=>_e&&(isObject$2(_e)||isFunction$1(_e))&&isFunction$1(_e.then)&&isFunction$1(_e.catch),utils$2={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$2,isPlainObject,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend:extend$1,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$3,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(_e,et,rt,st,ct){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_e,this.name="AxiosError",et&&(this.code=et),rt&&(this.config=rt),st&&(this.request=st),ct&&(this.response=ct)}utils$2.inherits(AxiosError,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:utils$2.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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=>{descriptors[_e]={value:_e}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(_e,et,rt,st,ct,ut)=>{const ft=Object.create(prototype$1);return utils$2.toFlatObject(_e,ft,function(xt){return xt!==Error.prototype},gt=>gt!=="isAxiosError"),AxiosError.call(ft,_e.message,et,rt,st,ct),ft.cause=_e,ft.name=_e.name,ut&&Object.assign(ft,ut),ft};const httpAdapter=null;function isVisitable(_e){return utils$2.isPlainObject(_e)||utils$2.isArray(_e)}function removeBrackets(_e){return utils$2.endsWith(_e,"[]")?_e.slice(0,-2):_e}function renderKey(_e,et,rt){return _e?_e.concat(et).map(function(ct,ut){return ct=removeBrackets(ct),!rt&&ut?"["+ct+"]":ct}).join(rt?".":""):et}function isFlatArray(_e){return utils$2.isArray(_e)&&!_e.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(et){return/^is[A-Z]/.test(et)});function toFormData(_e,et,rt){if(!utils$2.isObject(_e))throw new TypeError("target must be an object");et=et||new FormData,rt=utils$2.toFlatObject(rt,{metaTokens:!0,dots:!1,indexes:!1},!1,function(At,jt){return!utils$2.isUndefined(jt[At])});const st=rt.metaTokens,ct=rt.visitor||_t,ut=rt.dots,ft=rt.indexes,xt=(rt.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(et);if(!utils$2.isFunction(ct))throw new TypeError("visitor must be a function");function $t(It){if(It===null)return"";if(utils$2.isDate(It))return It.toISOString();if(!xt&&utils$2.isBlob(It))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(It)||utils$2.isTypedArray(It)?xt&&typeof Blob=="function"?new Blob([It]):Buffer.from(It):It}function _t(It,At,jt){let Nt=It;if(It&&!jt&&typeof It=="object"){if(utils$2.endsWith(At,"{}"))At=st?At:At.slice(0,-2),It=JSON.stringify(It);else if(utils$2.isArray(It)&&isFlatArray(It)||(utils$2.isFileList(It)||utils$2.endsWith(At,"[]"))&&(Nt=utils$2.toArray(It)))return At=removeBrackets(At),Nt.forEach(function(Ft,Ht){!(utils$2.isUndefined(Ft)||Ft===null)&&et.append(ft===!0?renderKey([At],Ht,ut):ft===null?At:At+"[]",$t(Ft))}),!1}return isVisitable(It)?!0:(et.append(renderKey(jt,At,ut),$t(It)),!1)}const wt=[],Tt=Object.assign(predicates,{defaultVisitor:_t,convertValue:$t,isVisitable});function Rt(It,At){if(!utils$2.isUndefined(It)){if(wt.indexOf(It)!==-1)throw Error("Circular reference detected in "+At.join("."));wt.push(It),utils$2.forEach(It,function(Nt,kt){(!(utils$2.isUndefined(Nt)||Nt===null)&&ct.call(et,Nt,utils$2.isString(kt)?kt.trim():kt,At,Tt))===!0&&Rt(Nt,At?At.concat(kt):[kt])}),wt.pop()}}if(!utils$2.isObject(_e))throw new TypeError("data must be an object");return Rt(_e),et}function encode$1(_e){const et={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_e).replace(/[!'()~]|%20|%00/g,function(st){return et[st]})}function AxiosURLSearchParams(_e,et){this._pairs=[],_e&&toFormData(_e,this,et)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(et,rt){this._pairs.push([et,rt])};prototype.toString=function(et){const rt=et?function(st){return et.call(this,st,encode$1)}:encode$1;return this._pairs.map(function(ct){return rt(ct[0])+"="+rt(ct[1])},"").join("&")};function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(_e,et,rt){if(!et)return _e;const st=rt&&rt.encode||encode,ct=rt&&rt.serialize;let ut;if(ct?ut=ct(et,rt):ut=utils$2.isURLSearchParams(et)?et.toString():new AxiosURLSearchParams(et,rt).toString(st),ut){const ft=_e.indexOf("#");ft!==-1&&(_e=_e.slice(0,ft)),_e+=(_e.indexOf("?")===-1?"?":"&")+ut}return _e}class InterceptorManager{constructor(){this.handlers=[]}use(et,rt,st){return this.handlers.push({fulfilled:et,rejected:rt,synchronous:st?st.synchronous:!1,runWhen:st?st.runWhen:null}),this.handlers.length-1}eject(et){this.handlers[et]&&(this.handlers[et]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(et){utils$2.forEach(this.handlers,function(st){st!==null&&et(st)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(_e=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(_e)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",utils$1=Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"}),platform={...utils$1,...platform$1};function toURLEncodedForm(_e,et){return toFormData(_e,new platform.classes.URLSearchParams,Object.assign({visitor:function(rt,st,ct,ut){return platform.isNode&&utils$2.isBuffer(rt)?(this.append(st,rt.toString("base64")),!1):ut.defaultVisitor.apply(this,arguments)}},et))}function parsePropPath(_e){return utils$2.matchAll(/\w+|\[(\w*)]/g,_e).map(et=>et[0]==="[]"?"":et[1]||et[0])}function arrayToObject(_e){const et={},rt=Object.keys(_e);let st;const ct=rt.length;let ut;for(st=0;st=rt.length;return ft=!ft&&utils$2.isArray(ct)?ct.length:ft,xt?(utils$2.hasOwnProp(ct,ft)?ct[ft]=[ct[ft],st]:ct[ft]=st,!gt):((!ct[ft]||!utils$2.isObject(ct[ft]))&&(ct[ft]=[]),et(rt,st,ct[ft],ut)&&utils$2.isArray(ct[ft])&&(ct[ft]=arrayToObject(ct[ft])),!gt)}if(utils$2.isFormData(_e)&&utils$2.isFunction(_e.entries)){const rt={};return utils$2.forEachEntry(_e,(st,ct)=>{et(parsePropPath(st),ct,rt,0)}),rt}return null}function stringifySafely(_e,et,rt){if(utils$2.isString(_e))try{return(et||JSON.parse)(_e),utils$2.trim(_e)}catch(st){if(st.name!=="SyntaxError")throw st}return(rt||JSON.stringify)(_e)}const defaults$2={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(et,rt){const st=rt.getContentType()||"",ct=st.indexOf("application/json")>-1,ut=utils$2.isObject(et);if(ut&&utils$2.isHTMLForm(et)&&(et=new FormData(et)),utils$2.isFormData(et))return ct?JSON.stringify(formDataToJSON(et)):et;if(utils$2.isArrayBuffer(et)||utils$2.isBuffer(et)||utils$2.isStream(et)||utils$2.isFile(et)||utils$2.isBlob(et))return et;if(utils$2.isArrayBufferView(et))return et.buffer;if(utils$2.isURLSearchParams(et))return rt.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),et.toString();let gt;if(ut){if(st.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(et,this.formSerializer).toString();if((gt=utils$2.isFileList(et))||st.indexOf("multipart/form-data")>-1){const xt=this.env&&this.env.FormData;return toFormData(gt?{"files[]":et}:et,xt&&new xt,this.formSerializer)}}return ut||ct?(rt.setContentType("application/json",!1),stringifySafely(et)):et}],transformResponse:[function(et){const rt=this.transitional||defaults$2.transitional,st=rt&&rt.forcedJSONParsing,ct=this.responseType==="json";if(et&&utils$2.isString(et)&&(st&&!this.responseType||ct)){const ft=!(rt&&rt.silentJSONParsing)&&ct;try{return JSON.parse(et)}catch(gt){if(ft)throw gt.name==="SyntaxError"?AxiosError.from(gt,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):gt}}return et}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(et){return et>=200&&et<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],_e=>{defaults$2.headers[_e]={}});const defaults$3=defaults$2,ignoreDuplicateOf=utils$2.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"]),parseHeaders=_e=>{const et={};let rt,st,ct;return _e&&_e.split(` +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function createIntl$1(_e,et){var rt=createFormatters(et),st=__assign(__assign({},DEFAULT_INTL_CONFIG$1),_e),ct=st.locale,ut=st.defaultLocale,ft=st.onError;return ct?!Intl.NumberFormat.supportedLocalesOf(ct).length&&ft?ft(new MissingDataError('Missing locale data for locale: "'.concat(ct,'" in Intl.NumberFormat. Using default locale: "').concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(ct).length&&ft&&ft(new MissingDataError('Missing locale data for locale: "'.concat(ct,'" in Intl.DateTimeFormat. Using default locale: "').concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(ft&&ft(new InvalidConfigError('"locale" was not configured, using "'.concat(ut,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),st.locale=st.defaultLocale||"en"),verifyConfigMessages(st),__assign(__assign({},st),{formatters:rt,formatNumber:formatNumber.bind(null,st,rt.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,st,rt.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,st,rt.getRelativeTimeFormat),formatDate:formatDate$1.bind(null,st,rt.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,st,rt.getDateTimeFormat),formatTime:formatTime$1.bind(null,st,rt.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,st,rt.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,st,rt.getDateTimeFormat),formatPlural:formatPlural.bind(null,st,rt.getPluralRules),formatMessage:formatMessage$1.bind(null,st,rt),$t:formatMessage$1.bind(null,st,rt),formatList:formatList.bind(null,st,rt.getListFormat),formatListToParts:formatListToParts.bind(null,st,rt.getListFormat),formatDisplayName:formatDisplayName.bind(null,st,rt.getDisplayNames)})}function invariantIntlContext(_e){invariant$2(_e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var DEFAULT_INTL_CONFIG=__assign(__assign({},DEFAULT_INTL_CONFIG$1),{textComponent:reactExports.Fragment});function assignUniqueKeysToParts(_e){return function(et){return _e(reactExports.Children.toArray(et))}}function shallowEqual$1(_e,et){if(_e===et)return!0;if(!_e||!et)return!1;var rt=Object.keys(_e),st=Object.keys(et),ct=rt.length;if(st.length!==ct)return!1;for(var ut=0;ut{const et=useIntl();return theme.useToken(),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="account"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{name:"username",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined$1,{className:"prefixIcon"})},placeholder:et.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),jsxRuntimeExports.jsx(ProFormText$1.Password,{name:"password",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},placeholder:et.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]})]})})};function bind(_e,et){return function(){return _e.apply(et,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf:getPrototypeOf$2}=Object,kindOf=(_e=>et=>{const rt=toString$2.call(et);return _e[rt]||(_e[rt]=rt.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=_e=>(_e=_e.toLowerCase(),et=>kindOf(et)===_e),typeOfTest=_e=>et=>typeof et===_e,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(_e){return _e!==null&&!isUndefined$1(_e)&&_e.constructor!==null&&!isUndefined$1(_e.constructor)&&isFunction$1(_e.constructor.isBuffer)&&_e.constructor.isBuffer(_e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(_e){let et;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?et=ArrayBuffer.isView(_e):et=_e&&_e.buffer&&isArrayBuffer(_e.buffer),et}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$3=_e=>_e!==null&&typeof _e=="object",isBoolean=_e=>_e===!0||_e===!1,isPlainObject=_e=>{if(kindOf(_e)!=="object")return!1;const et=getPrototypeOf$2(_e);return(et===null||et===Object.prototype||Object.getPrototypeOf(et)===null)&&!(Symbol.toStringTag in _e)&&!(Symbol.iterator in _e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=_e=>isObject$3(_e)&&isFunction$1(_e.pipe),isFormData=_e=>{let et;return _e&&(typeof FormData=="function"&&_e instanceof FormData||isFunction$1(_e.append)&&((et=kindOf(_e))==="formdata"||et==="object"&&isFunction$1(_e.toString)&&_e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=_e=>_e.trim?_e.trim():_e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(_e,et,{allOwnKeys:rt=!1}={}){if(_e===null||typeof _e>"u")return;let st,ct;if(typeof _e!="object"&&(_e=[_e]),isArray$1(_e))for(st=0,ct=_e.length;st0;)if(ct=rt[st],et===ct.toLowerCase())return ct;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=_e=>!isUndefined$1(_e)&&_e!==_global;function merge$1(){const{caseless:_e}=isContextDefined(this)&&this||{},et={},rt=(st,ct)=>{const ut=_e&&findKey(et,ct)||ct;isPlainObject(et[ut])&&isPlainObject(st)?et[ut]=merge$1(et[ut],st):isPlainObject(st)?et[ut]=merge$1({},st):isArray$1(st)?et[ut]=st.slice():et[ut]=st};for(let st=0,ct=arguments.length;st(forEach(et,(ct,ut)=>{rt&&isFunction$1(ct)?_e[ut]=bind(ct,rt):_e[ut]=ct},{allOwnKeys:st}),_e),stripBOM=_e=>(_e.charCodeAt(0)===65279&&(_e=_e.slice(1)),_e),inherits$1=(_e,et,rt,st)=>{_e.prototype=Object.create(et.prototype,st),_e.prototype.constructor=_e,Object.defineProperty(_e,"super",{value:et.prototype}),rt&&Object.assign(_e.prototype,rt)},toFlatObject=(_e,et,rt,st)=>{let ct,ut,ft;const gt={};if(et=et||{},_e==null)return et;do{for(ct=Object.getOwnPropertyNames(_e),ut=ct.length;ut-- >0;)ft=ct[ut],(!st||st(ft,_e,et))&&!gt[ft]&&(et[ft]=_e[ft],gt[ft]=!0);_e=rt!==!1&&getPrototypeOf$2(_e)}while(_e&&(!rt||rt(_e,et))&&_e!==Object.prototype);return et},endsWith=(_e,et,rt)=>{_e=String(_e),(rt===void 0||rt>_e.length)&&(rt=_e.length),rt-=et.length;const st=_e.indexOf(et,rt);return st!==-1&&st===rt},toArray$4=_e=>{if(!_e)return null;if(isArray$1(_e))return _e;let et=_e.length;if(!isNumber$1(et))return null;const rt=new Array(et);for(;et-- >0;)rt[et]=_e[et];return rt},isTypedArray=(_e=>et=>_e&&et instanceof _e)(typeof Uint8Array<"u"&&getPrototypeOf$2(Uint8Array)),forEachEntry=(_e,et)=>{const st=(_e&&_e[Symbol.iterator]).call(_e);let ct;for(;(ct=st.next())&&!ct.done;){const ut=ct.value;et.call(_e,ut[0],ut[1])}},matchAll=(_e,et)=>{let rt;const st=[];for(;(rt=_e.exec(et))!==null;)st.push(rt);return st},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=_e=>_e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(rt,st,ct){return st.toUpperCase()+ct}),hasOwnProperty=(({hasOwnProperty:_e})=>(et,rt)=>_e.call(et,rt))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(_e,et)=>{const rt=Object.getOwnPropertyDescriptors(_e),st={};forEach(rt,(ct,ut)=>{let ft;(ft=et(ct,ut,_e))!==!1&&(st[ut]=ft||ct)}),Object.defineProperties(_e,st)},freezeMethods=_e=>{reduceDescriptors(_e,(et,rt)=>{if(isFunction$1(_e)&&["arguments","caller","callee"].indexOf(rt)!==-1)return!1;const st=_e[rt];if(isFunction$1(st)){if(et.enumerable=!1,"writable"in et){et.writable=!1;return}et.set||(et.set=()=>{throw Error("Can not rewrite read-only method '"+rt+"'")})}})},toObjectSet=(_e,et)=>{const rt={},st=ct=>{ct.forEach(ut=>{rt[ut]=!0})};return isArray$1(_e)?st(_e):st(String(_e).split(et)),rt},noop$1=()=>{},toFiniteNumber=(_e,et)=>(_e=+_e,Number.isFinite(_e)?_e:et),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(_e=16,et=ALPHABET.ALPHA_DIGIT)=>{let rt="";const{length:st}=et;for(;_e--;)rt+=et[Math.random()*st|0];return rt};function isSpecCompliantForm(_e){return!!(_e&&isFunction$1(_e.append)&&_e[Symbol.toStringTag]==="FormData"&&_e[Symbol.iterator])}const toJSONObject=_e=>{const et=new Array(10),rt=(st,ct)=>{if(isObject$3(st)){if(et.indexOf(st)>=0)return;if(!("toJSON"in st)){et[ct]=st;const ut=isArray$1(st)?[]:{};return forEach(st,(ft,gt)=>{const xt=rt(ft,ct+1);!isUndefined$1(xt)&&(ut[gt]=xt)}),et[ct]=void 0,ut}}return st};return rt(_e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=_e=>_e&&(isObject$3(_e)||isFunction$1(_e))&&isFunction$1(_e.then)&&isFunction$1(_e.catch),utils$2={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$3,isPlainObject,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend:extend$1,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$4,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$1,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(_e,et,rt,st,ct){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_e,this.name="AxiosError",et&&(this.code=et),rt&&(this.config=rt),st&&(this.request=st),ct&&(this.response=ct)}utils$2.inherits(AxiosError,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:utils$2.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["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=>{descriptors[_e]={value:_e}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(_e,et,rt,st,ct,ut)=>{const ft=Object.create(prototype$1);return utils$2.toFlatObject(_e,ft,function(xt){return xt!==Error.prototype},gt=>gt!=="isAxiosError"),AxiosError.call(ft,_e.message,et,rt,st,ct),ft.cause=_e,ft.name=_e.name,ut&&Object.assign(ft,ut),ft};const httpAdapter=null;function isVisitable(_e){return utils$2.isPlainObject(_e)||utils$2.isArray(_e)}function removeBrackets(_e){return utils$2.endsWith(_e,"[]")?_e.slice(0,-2):_e}function renderKey(_e,et,rt){return _e?_e.concat(et).map(function(ct,ut){return ct=removeBrackets(ct),!rt&&ut?"["+ct+"]":ct}).join(rt?".":""):et}function isFlatArray(_e){return utils$2.isArray(_e)&&!_e.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(et){return/^is[A-Z]/.test(et)});function toFormData(_e,et,rt){if(!utils$2.isObject(_e))throw new TypeError("target must be an object");et=et||new FormData,rt=utils$2.toFlatObject(rt,{metaTokens:!0,dots:!1,indexes:!1},!1,function(At,jt){return!utils$2.isUndefined(jt[At])});const st=rt.metaTokens,ct=rt.visitor||_t,ut=rt.dots,ft=rt.indexes,xt=(rt.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(et);if(!utils$2.isFunction(ct))throw new TypeError("visitor must be a function");function $t(It){if(It===null)return"";if(utils$2.isDate(It))return It.toISOString();if(!xt&&utils$2.isBlob(It))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(It)||utils$2.isTypedArray(It)?xt&&typeof Blob=="function"?new Blob([It]):Buffer.from(It):It}function _t(It,At,jt){let Nt=It;if(It&&!jt&&typeof It=="object"){if(utils$2.endsWith(At,"{}"))At=st?At:At.slice(0,-2),It=JSON.stringify(It);else if(utils$2.isArray(It)&&isFlatArray(It)||(utils$2.isFileList(It)||utils$2.endsWith(At,"[]"))&&(Nt=utils$2.toArray(It)))return At=removeBrackets(At),Nt.forEach(function(Ft,Ht){!(utils$2.isUndefined(Ft)||Ft===null)&&et.append(ft===!0?renderKey([At],Ht,ut):ft===null?At:At+"[]",$t(Ft))}),!1}return isVisitable(It)?!0:(et.append(renderKey(jt,At,ut),$t(It)),!1)}const wt=[],Tt=Object.assign(predicates,{defaultVisitor:_t,convertValue:$t,isVisitable});function Rt(It,At){if(!utils$2.isUndefined(It)){if(wt.indexOf(It)!==-1)throw Error("Circular reference detected in "+At.join("."));wt.push(It),utils$2.forEach(It,function(Nt,kt){(!(utils$2.isUndefined(Nt)||Nt===null)&&ct.call(et,Nt,utils$2.isString(kt)?kt.trim():kt,At,Tt))===!0&&Rt(Nt,At?At.concat(kt):[kt])}),wt.pop()}}if(!utils$2.isObject(_e))throw new TypeError("data must be an object");return Rt(_e),et}function encode$3(_e){const et={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_e).replace(/[!'()~]|%20|%00/g,function(st){return et[st]})}function AxiosURLSearchParams(_e,et){this._pairs=[],_e&&toFormData(_e,this,et)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(et,rt){this._pairs.push([et,rt])};prototype.toString=function(et){const rt=et?function(st){return et.call(this,st,encode$3)}:encode$3;return this._pairs.map(function(ct){return rt(ct[0])+"="+rt(ct[1])},"").join("&")};function encode$2(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(_e,et,rt){if(!et)return _e;const st=rt&&rt.encode||encode$2,ct=rt&&rt.serialize;let ut;if(ct?ut=ct(et,rt):ut=utils$2.isURLSearchParams(et)?et.toString():new AxiosURLSearchParams(et,rt).toString(st),ut){const ft=_e.indexOf("#");ft!==-1&&(_e=_e.slice(0,ft)),_e+=(_e.indexOf("?")===-1?"?":"&")+ut}return _e}class InterceptorManager{constructor(){this.handlers=[]}use(et,rt,st){return this.handlers.push({fulfilled:et,rejected:rt,synchronous:st?st.synchronous:!1,runWhen:st?st.runWhen:null}),this.handlers.length-1}eject(et){this.handlers[et]&&(this.handlers[et]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(et){utils$2.forEach(this.handlers,function(st){st!==null&&et(st)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(_e=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(_e)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",utils$1=Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"}),platform={...utils$1,...platform$1};function toURLEncodedForm(_e,et){return toFormData(_e,new platform.classes.URLSearchParams,Object.assign({visitor:function(rt,st,ct,ut){return platform.isNode&&utils$2.isBuffer(rt)?(this.append(st,rt.toString("base64")),!1):ut.defaultVisitor.apply(this,arguments)}},et))}function parsePropPath(_e){return utils$2.matchAll(/\w+|\[(\w*)]/g,_e).map(et=>et[0]==="[]"?"":et[1]||et[0])}function arrayToObject(_e){const et={},rt=Object.keys(_e);let st;const ct=rt.length;let ut;for(st=0;st=rt.length;return ft=!ft&&utils$2.isArray(ct)?ct.length:ft,xt?(utils$2.hasOwnProp(ct,ft)?ct[ft]=[ct[ft],st]:ct[ft]=st,!gt):((!ct[ft]||!utils$2.isObject(ct[ft]))&&(ct[ft]=[]),et(rt,st,ct[ft],ut)&&utils$2.isArray(ct[ft])&&(ct[ft]=arrayToObject(ct[ft])),!gt)}if(utils$2.isFormData(_e)&&utils$2.isFunction(_e.entries)){const rt={};return utils$2.forEachEntry(_e,(st,ct)=>{et(parsePropPath(st),ct,rt,0)}),rt}return null}function stringifySafely(_e,et,rt){if(utils$2.isString(_e))try{return(et||JSON.parse)(_e),utils$2.trim(_e)}catch(st){if(st.name!=="SyntaxError")throw st}return(rt||JSON.stringify)(_e)}const defaults$2={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(et,rt){const st=rt.getContentType()||"",ct=st.indexOf("application/json")>-1,ut=utils$2.isObject(et);if(ut&&utils$2.isHTMLForm(et)&&(et=new FormData(et)),utils$2.isFormData(et))return ct?JSON.stringify(formDataToJSON(et)):et;if(utils$2.isArrayBuffer(et)||utils$2.isBuffer(et)||utils$2.isStream(et)||utils$2.isFile(et)||utils$2.isBlob(et))return et;if(utils$2.isArrayBufferView(et))return et.buffer;if(utils$2.isURLSearchParams(et))return rt.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),et.toString();let gt;if(ut){if(st.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(et,this.formSerializer).toString();if((gt=utils$2.isFileList(et))||st.indexOf("multipart/form-data")>-1){const xt=this.env&&this.env.FormData;return toFormData(gt?{"files[]":et}:et,xt&&new xt,this.formSerializer)}}return ut||ct?(rt.setContentType("application/json",!1),stringifySafely(et)):et}],transformResponse:[function(et){const rt=this.transitional||defaults$2.transitional,st=rt&&rt.forcedJSONParsing,ct=this.responseType==="json";if(et&&utils$2.isString(et)&&(st&&!this.responseType||ct)){const ft=!(rt&&rt.silentJSONParsing)&&ct;try{return JSON.parse(et)}catch(gt){if(ft)throw gt.name==="SyntaxError"?AxiosError.from(gt,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):gt}}return et}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(et){return et>=200&&et<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],_e=>{defaults$2.headers[_e]={}});const defaults$3=defaults$2,ignoreDuplicateOf=utils$2.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"]),parseHeaders=_e=>{const et={};let rt,st,ct;return _e&&_e.split(` `).forEach(function(ft){ct=ft.indexOf(":"),rt=ft.substring(0,ct).trim().toLowerCase(),st=ft.substring(ct+1).trim(),!(!rt||et[rt]&&ignoreDuplicateOf[rt])&&(rt==="set-cookie"?et[rt]?et[rt].push(st):et[rt]=[st]:et[rt]=et[rt]?et[rt]+", "+st:st)}),et},$internals=Symbol("internals");function normalizeHeader(_e){return _e&&String(_e).trim().toLowerCase()}function normalizeValue(_e){return _e===!1||_e==null?_e:utils$2.isArray(_e)?_e.map(normalizeValue):String(_e)}function parseTokens(_e){const et=Object.create(null),rt=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let st;for(;st=rt.exec(_e);)et[st[1]]=st[2];return et}const isValidHeaderName=_e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_e.trim());function matchHeaderValue(_e,et,rt,st,ct){if(utils$2.isFunction(st))return st.call(this,et,rt);if(ct&&(et=rt),!!utils$2.isString(et)){if(utils$2.isString(st))return et.indexOf(st)!==-1;if(utils$2.isRegExp(st))return st.test(et)}}function formatHeader(_e){return _e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(et,rt,st)=>rt.toUpperCase()+st)}function buildAccessors(_e,et){const rt=utils$2.toCamelCase(" "+et);["get","set","has"].forEach(st=>{Object.defineProperty(_e,st+rt,{value:function(ct,ut,ft){return this[st].call(this,et,ct,ut,ft)},configurable:!0})})}class AxiosHeaders{constructor(et){et&&this.set(et)}set(et,rt,st){const ct=this;function ut(gt,xt,$t){const _t=normalizeHeader(xt);if(!_t)throw new Error("header name must be a non-empty string");const wt=utils$2.findKey(ct,_t);(!wt||ct[wt]===void 0||$t===!0||$t===void 0&&ct[wt]!==!1)&&(ct[wt||xt]=normalizeValue(gt))}const ft=(gt,xt)=>utils$2.forEach(gt,($t,_t)=>ut($t,_t,xt));return utils$2.isPlainObject(et)||et instanceof this.constructor?ft(et,rt):utils$2.isString(et)&&(et=et.trim())&&!isValidHeaderName(et)?ft(parseHeaders(et),rt):et!=null&&ut(rt,et,st),this}get(et,rt){if(et=normalizeHeader(et),et){const st=utils$2.findKey(this,et);if(st){const ct=this[st];if(!rt)return ct;if(rt===!0)return parseTokens(ct);if(utils$2.isFunction(rt))return rt.call(this,ct,st);if(utils$2.isRegExp(rt))return rt.exec(ct);throw new TypeError("parser must be boolean|regexp|function")}}}has(et,rt){if(et=normalizeHeader(et),et){const st=utils$2.findKey(this,et);return!!(st&&this[st]!==void 0&&(!rt||matchHeaderValue(this,this[st],st,rt)))}return!1}delete(et,rt){const st=this;let ct=!1;function ut(ft){if(ft=normalizeHeader(ft),ft){const gt=utils$2.findKey(st,ft);gt&&(!rt||matchHeaderValue(st,st[gt],gt,rt))&&(delete st[gt],ct=!0)}}return utils$2.isArray(et)?et.forEach(ut):ut(et),ct}clear(et){const rt=Object.keys(this);let st=rt.length,ct=!1;for(;st--;){const ut=rt[st];(!et||matchHeaderValue(this,this[ut],ut,et,!0))&&(delete this[ut],ct=!0)}return ct}normalize(et){const rt=this,st={};return utils$2.forEach(this,(ct,ut)=>{const ft=utils$2.findKey(st,ut);if(ft){rt[ft]=normalizeValue(ct),delete rt[ut];return}const gt=et?formatHeader(ut):String(ut).trim();gt!==ut&&delete rt[ut],rt[gt]=normalizeValue(ct),st[gt]=!0}),this}concat(...et){return this.constructor.concat(this,...et)}toJSON(et){const rt=Object.create(null);return utils$2.forEach(this,(st,ct)=>{st!=null&&st!==!1&&(rt[ct]=et&&utils$2.isArray(st)?st.join(", "):st)}),rt}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([et,rt])=>et+": "+rt).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(et){return et instanceof this?et:new this(et)}static concat(et,...rt){const st=new this(et);return rt.forEach(ct=>st.set(ct)),st}static accessor(et){const st=(this[$internals]=this[$internals]={accessors:{}}).accessors,ct=this.prototype;function ut(ft){const gt=normalizeHeader(ft);st[gt]||(buildAccessors(ct,ft),st[gt]=!0)}return utils$2.isArray(et)?et.forEach(ut):ut(et),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:_e},et)=>{let rt=et[0].toUpperCase()+et.slice(1);return{get:()=>_e,set(st){this[rt]=st}}});utils$2.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(_e,et){const rt=this||defaults$3,st=et||rt,ct=AxiosHeaders$1.from(st.headers);let ut=st.data;return utils$2.forEach(_e,function(gt){ut=gt.call(rt,ut,ct.normalize(),et?et.status:void 0)}),ct.normalize(),ut}function isCancel(_e){return!!(_e&&_e.__CANCEL__)}function CanceledError(_e,et,rt){AxiosError.call(this,_e??"canceled",AxiosError.ERR_CANCELED,et,rt),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(_e,et,rt){const st=rt.config.validateStatus;!rt.status||!st||st(rt.status)?_e(rt):et(new AxiosError("Request failed with status code "+rt.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(rt.status/100)-4],rt.config,rt.request,rt))}const cookies=platform.hasStandardBrowserEnv?{write(_e,et,rt,st,ct,ut){const ft=[_e+"="+encodeURIComponent(et)];utils$2.isNumber(rt)&&ft.push("expires="+new Date(rt).toGMTString()),utils$2.isString(st)&&ft.push("path="+st),utils$2.isString(ct)&&ft.push("domain="+ct),ut===!0&&ft.push("secure"),document.cookie=ft.join("; ")},read(_e){const et=document.cookie.match(new RegExp("(^|;\\s*)("+_e+")=([^;]*)"));return et?decodeURIComponent(et[3]):null},remove(_e){this.write(_e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(_e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_e)}function combineURLs(_e,et){return et?_e.replace(/\/?\/$/,"")+"/"+et.replace(/^\/+/,""):_e}function buildFullPath(_e,et){return _e&&!isAbsoluteURL(et)?combineURLs(_e,et):et}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const et=/(msie|trident)/i.test(navigator.userAgent),rt=document.createElement("a");let st;function ct(ut){let ft=ut;return et&&(rt.setAttribute("href",ft),ft=rt.href),rt.setAttribute("href",ft),{href:rt.href,protocol:rt.protocol?rt.protocol.replace(/:$/,""):"",host:rt.host,search:rt.search?rt.search.replace(/^\?/,""):"",hash:rt.hash?rt.hash.replace(/^#/,""):"",hostname:rt.hostname,port:rt.port,pathname:rt.pathname.charAt(0)==="/"?rt.pathname:"/"+rt.pathname}}return st=ct(window.location.href),function(ft){const gt=utils$2.isString(ft)?ct(ft):ft;return gt.protocol===st.protocol&>.host===st.host}}():function(){return function(){return!0}}();function parseProtocol(_e){const et=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_e);return et&&et[1]||""}function speedometer(_e,et){_e=_e||10;const rt=new Array(_e),st=new Array(_e);let ct=0,ut=0,ft;return et=et!==void 0?et:1e3,function(xt){const $t=Date.now(),_t=st[ut];ft||(ft=$t),rt[ct]=xt,st[ct]=$t;let wt=ut,Tt=0;for(;wt!==ct;)Tt+=rt[wt++],wt=wt%_e;if(ct=(ct+1)%_e,ct===ut&&(ut=(ut+1)%_e),$t-ft{const ut=ct.loaded,ft=ct.lengthComputable?ct.total:void 0,gt=ut-rt,xt=st(gt),$t=ut<=ft;rt=ut;const _t={loaded:ut,total:ft,progress:ft?ut/ft:void 0,bytes:gt,rate:xt||void 0,estimated:xt&&ft&&$t?(ft-ut)/xt:void 0,event:ct};_t[et?"download":"upload"]=!0,_e(_t)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(_e){return new Promise(function(rt,st){let ct=_e.data;const ut=AxiosHeaders$1.from(_e.headers).normalize();let{responseType:ft,withXSRFToken:gt}=_e,xt;function $t(){_e.cancelToken&&_e.cancelToken.unsubscribe(xt),_e.signal&&_e.signal.removeEventListener("abort",xt)}let _t;if(utils$2.isFormData(ct)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)ut.setContentType(!1);else if((_t=ut.getContentType())!==!1){const[At,...jt]=_t?_t.split(";").map(Nt=>Nt.trim()).filter(Boolean):[];ut.setContentType([At||"multipart/form-data",...jt].join("; "))}}let wt=new XMLHttpRequest;if(_e.auth){const At=_e.auth.username||"",jt=_e.auth.password?unescape(encodeURIComponent(_e.auth.password)):"";ut.set("Authorization","Basic "+btoa(At+":"+jt))}const Tt=buildFullPath(_e.baseURL,_e.url);wt.open(_e.method.toUpperCase(),buildURL(Tt,_e.params,_e.paramsSerializer),!0),wt.timeout=_e.timeout;function Rt(){if(!wt)return;const At=AxiosHeaders$1.from("getAllResponseHeaders"in wt&&wt.getAllResponseHeaders()),Nt={data:!ft||ft==="text"||ft==="json"?wt.responseText:wt.response,status:wt.status,statusText:wt.statusText,headers:At,config:_e,request:wt};settle(function(Ft){rt(Ft),$t()},function(Ft){st(Ft),$t()},Nt),wt=null}if("onloadend"in wt?wt.onloadend=Rt:wt.onreadystatechange=function(){!wt||wt.readyState!==4||wt.status===0&&!(wt.responseURL&&wt.responseURL.indexOf("file:")===0)||setTimeout(Rt)},wt.onabort=function(){wt&&(st(new AxiosError("Request aborted",AxiosError.ECONNABORTED,_e,wt)),wt=null)},wt.onerror=function(){st(new AxiosError("Network Error",AxiosError.ERR_NETWORK,_e,wt)),wt=null},wt.ontimeout=function(){let jt=_e.timeout?"timeout of "+_e.timeout+"ms exceeded":"timeout exceeded";const Nt=_e.transitional||transitionalDefaults;_e.timeoutErrorMessage&&(jt=_e.timeoutErrorMessage),st(new AxiosError(jt,Nt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,_e,wt)),wt=null},platform.hasStandardBrowserEnv&&(gt&&utils$2.isFunction(gt)&&(gt=gt(_e)),gt||gt!==!1&&isURLSameOrigin(Tt))){const At=_e.xsrfHeaderName&&_e.xsrfCookieName&&cookies.read(_e.xsrfCookieName);At&&ut.set(_e.xsrfHeaderName,At)}ct===void 0&&ut.setContentType(null),"setRequestHeader"in wt&&utils$2.forEach(ut.toJSON(),function(jt,Nt){wt.setRequestHeader(Nt,jt)}),utils$2.isUndefined(_e.withCredentials)||(wt.withCredentials=!!_e.withCredentials),ft&&ft!=="json"&&(wt.responseType=_e.responseType),typeof _e.onDownloadProgress=="function"&&wt.addEventListener("progress",progressEventReducer(_e.onDownloadProgress,!0)),typeof _e.onUploadProgress=="function"&&wt.upload&&wt.upload.addEventListener("progress",progressEventReducer(_e.onUploadProgress)),(_e.cancelToken||_e.signal)&&(xt=At=>{wt&&(st(!At||At.type?new CanceledError(null,_e,wt):At),wt.abort(),wt=null)},_e.cancelToken&&_e.cancelToken.subscribe(xt),_e.signal&&(_e.signal.aborted?xt():_e.signal.addEventListener("abort",xt)));const It=parseProtocol(Tt);if(It&&platform.protocols.indexOf(It)===-1){st(new AxiosError("Unsupported protocol "+It+":",AxiosError.ERR_BAD_REQUEST,_e));return}wt.send(ct||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$2.forEach(knownAdapters,(_e,et)=>{if(_e){try{Object.defineProperty(_e,"name",{value:et})}catch{}Object.defineProperty(_e,"adapterName",{value:et})}});const renderReason=_e=>`- ${_e}`,isResolvedHandle=_e=>utils$2.isFunction(_e)||_e===null||_e===!1,adapters={getAdapter:_e=>{_e=utils$2.isArray(_e)?_e:[_e];const{length:et}=_e;let rt,st;const ct={};for(let ut=0;ut`adapter ${gt} `+(xt===!1?"is not supported by the environment":"is not available in the build"));let ft=et?ut.length>1?`since : `+ut.map(renderReason).join(` `):" "+renderReason(ut[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+ft,"ERR_NOT_SUPPORT")}return st},adapters:knownAdapters};function throwIfCancellationRequested(_e){if(_e.cancelToken&&_e.cancelToken.throwIfRequested(),_e.signal&&_e.signal.aborted)throw new CanceledError(null,_e)}function dispatchRequest(_e){return throwIfCancellationRequested(_e),_e.headers=AxiosHeaders$1.from(_e.headers),_e.data=transformData.call(_e,_e.transformRequest),["post","put","patch"].indexOf(_e.method)!==-1&&_e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(_e.adapter||defaults$3.adapter)(_e).then(function(st){return throwIfCancellationRequested(_e),st.data=transformData.call(_e,_e.transformResponse,st),st.headers=AxiosHeaders$1.from(st.headers),st},function(st){return isCancel(st)||(throwIfCancellationRequested(_e),st&&st.response&&(st.response.data=transformData.call(_e,_e.transformResponse,st.response),st.response.headers=AxiosHeaders$1.from(st.response.headers))),Promise.reject(st)})}const headersToObject=_e=>_e instanceof AxiosHeaders$1?_e.toJSON():_e;function mergeConfig(_e,et){et=et||{};const rt={};function st($t,_t,wt){return utils$2.isPlainObject($t)&&utils$2.isPlainObject(_t)?utils$2.merge.call({caseless:wt},$t,_t):utils$2.isPlainObject(_t)?utils$2.merge({},_t):utils$2.isArray(_t)?_t.slice():_t}function ct($t,_t,wt){if(utils$2.isUndefined(_t)){if(!utils$2.isUndefined($t))return st(void 0,$t,wt)}else return st($t,_t,wt)}function ut($t,_t){if(!utils$2.isUndefined(_t))return st(void 0,_t)}function ft($t,_t){if(utils$2.isUndefined(_t)){if(!utils$2.isUndefined($t))return st(void 0,$t)}else return st(void 0,_t)}function gt($t,_t,wt){if(wt in et)return st($t,_t);if(wt in _e)return st(void 0,$t)}const xt={url:ut,method:ut,data:ut,baseURL:ft,transformRequest:ft,transformResponse:ft,paramsSerializer:ft,timeout:ft,timeoutMessage:ft,withCredentials:ft,withXSRFToken:ft,adapter:ft,responseType:ft,xsrfCookieName:ft,xsrfHeaderName:ft,onUploadProgress:ft,onDownloadProgress:ft,decompress:ft,maxContentLength:ft,maxBodyLength:ft,beforeRedirect:ft,transport:ft,httpAgent:ft,httpsAgent:ft,cancelToken:ft,socketPath:ft,responseEncoding:ft,validateStatus:gt,headers:($t,_t)=>ct(headersToObject($t),headersToObject(_t),!0)};return utils$2.forEach(Object.keys(Object.assign({},_e,et)),function(_t){const wt=xt[_t]||ct,Tt=wt(_e[_t],et[_t],_t);utils$2.isUndefined(Tt)&&wt!==gt||(rt[_t]=Tt)}),rt}const VERSION="1.6.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((_e,et)=>{validators$1[_e]=function(st){return typeof st===_e||"a"+(et<1?"n ":" ")+_e}});const deprecatedWarnings={};validators$1.transitional=function(et,rt,st){function ct(ut,ft){return"[Axios v"+VERSION+"] Transitional option '"+ut+"'"+ft+(st?". "+st:"")}return(ut,ft,gt)=>{if(et===!1)throw new AxiosError(ct(ft," has been removed"+(rt?" in "+rt:"")),AxiosError.ERR_DEPRECATED);return rt&&!deprecatedWarnings[ft]&&(deprecatedWarnings[ft]=!0,console.warn(ct(ft," has been deprecated since v"+rt+" and will be removed in the near future"))),et?et(ut,ft,gt):!0}};function assertOptions(_e,et,rt){if(typeof _e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const st=Object.keys(_e);let ct=st.length;for(;ct-- >0;){const ut=st[ct],ft=et[ut];if(ft){const gt=_e[ut],xt=gt===void 0||ft(gt,ut,_e);if(xt!==!0)throw new AxiosError("option "+ut+" must be "+xt,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(rt!==!0)throw new AxiosError("Unknown option "+ut,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(et){this.defaults=et,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(et,rt){try{return await this._request(et,rt)}catch(st){if(st instanceof Error){let ct;Error.captureStackTrace?Error.captureStackTrace(ct={}):ct=new Error;const ut=ct.stack?ct.stack.replace(/^.+\n/,""):"";st.stack?ut&&!String(st.stack).endsWith(ut.replace(/^.+\n.+\n/,""))&&(st.stack+=` -`+ut):st.stack=ut}throw st}}_request(et,rt){typeof et=="string"?(rt=rt||{},rt.url=et):rt=et||{},rt=mergeConfig(this.defaults,rt);const{transitional:st,paramsSerializer:ct,headers:ut}=rt;st!==void 0&&validator.assertOptions(st,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ct!=null&&(utils$2.isFunction(ct)?rt.paramsSerializer={serialize:ct}:validator.assertOptions(ct,{encode:validators.function,serialize:validators.function},!0)),rt.method=(rt.method||this.defaults.method||"get").toLowerCase();let ft=ut&&utils$2.merge(ut.common,ut[rt.method]);ut&&utils$2.forEach(["delete","get","head","post","put","patch","common"],It=>{delete ut[It]}),rt.headers=AxiosHeaders$1.concat(ft,ut);const gt=[];let xt=!0;this.interceptors.request.forEach(function(At){typeof At.runWhen=="function"&&At.runWhen(rt)===!1||(xt=xt&&At.synchronous,gt.unshift(At.fulfilled,At.rejected))});const $t=[];this.interceptors.response.forEach(function(At){$t.push(At.fulfilled,At.rejected)});let _t,wt=0,Tt;if(!xt){const It=[dispatchRequest.bind(this),void 0];for(It.unshift.apply(It,gt),It.push.apply(It,$t),Tt=It.length,_t=Promise.resolve(rt);wt{if(!st._listeners)return;let ut=st._listeners.length;for(;ut-- >0;)st._listeners[ut](ct);st._listeners=null}),this.promise.then=ct=>{let ut;const ft=new Promise(gt=>{st.subscribe(gt),ut=gt}).then(ct);return ft.cancel=function(){st.unsubscribe(ut)},ft},et(function(ut,ft,gt){st.reason||(st.reason=new CanceledError(ut,ft,gt),rt(st.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(et){if(this.reason){et(this.reason);return}this._listeners?this._listeners.push(et):this._listeners=[et]}unsubscribe(et){if(!this._listeners)return;const rt=this._listeners.indexOf(et);rt!==-1&&this._listeners.splice(rt,1)}static source(){let et;return{token:new CancelToken(function(ct){et=ct}),cancel:et}}}const CancelToken$1=CancelToken;function spread(_e){return function(rt){return _e.apply(null,rt)}}function isAxiosError(_e){return utils$2.isObject(_e)&&_e.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([_e,et])=>{HttpStatusCode[et]=_e});const HttpStatusCode$1=HttpStatusCode;function createInstance(_e){const et=new Axios$1(_e),rt=bind(Axios$1.prototype.request,et);return utils$2.extend(rt,Axios$1.prototype,et,{allOwnKeys:!0}),utils$2.extend(rt,et,null,{allOwnKeys:!0}),rt.create=function(ct){return createInstance(mergeConfig(_e,ct))},rt}const axios=createInstance(defaults$3);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(et){return Promise.all(et)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=_e=>formDataToJSON(utils$2.isHTMLForm(_e)?new FormData(_e):_e);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;function mitt(_e){return{all:_e=_e||new Map,on:function(et,rt){var st=_e.get(et);st?st.push(rt):_e.set(et,[rt])},off:function(et,rt){var st=_e.get(et);st&&(rt?st.splice(st.indexOf(rt)>>>0,1):_e.set(et,[]))},emit:function(et,rt){var st=_e.get(et);st&&st.slice().map(function(ct){ct(rt)}),(st=_e.get("*"))&&st.slice().map(function(ct){ct(et,rt)})}}}const emitter=mitt(),request=axios.create({timeout:2e4,baseURL:BASE_URL,paramsSerializer:{indexes:null}});request.interceptors.request.use(_e=>{let et=localStorage.getItem(ACCESS_TOKEN);return et&&et.length>10&&_e.url.startsWith("/api")&&(_e.headers.Authorization=`Bearer ${et}`),!et&&_e.url.startsWith("/api")?Promise.reject(axiosError):_e},_e=>(console.debug("request error",_e),_e.response.status===403&&emitter.emit(EVENT_BUS_TOKEN_INVALID,"403"),_e.response.status===401&&emitter.emit(EVENT_BUS_TOKEN_INVALID,"401"),Promise.reject(_e)));request.interceptors.response.use(_e=>_e,_e=>{if(console.debug("response error",_e),_e.response)switch(_e.response.status){case 400:console.log("axios interception error 400"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"400");break;case 401:console.log("axios interception error 401"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"401");break;case 403:console.log("axios interception error 403"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"403");break;case 500:console.log("axios interception error 500"),emitter.emit(EVENT_BUS_SERVER_ERROR_500,"500");break;case 601:console.log("axios interception error 601",_e.message);break}return Promise.resolve({message:_e.message,code:_e.response.status,data:{message:_e.message,code:_e.response.status,data:!1}})});const response={data:null,status:601,statusText:ANONYMOUS,headers:{},config:{headers:void 0},request:null},axiosError={message:"匿名用户,无需访问服务器接口",name:ANONYMOUS,code:"601",config:response.config,request:response.request,response,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 login(_e){return request("/auth/v1/login",{method:"POST",data:{username:_e.username,password:_e.password,client:HTTP_CLIENT}})}async function sendMobileCode(_e){return console.log("sendMobileCode:",_e),request("/auth/v1/send/mobile",{method:"POST",data:{mobile:_e.mobile,type:_e.type,client:HTTP_CLIENT}})}async function loginMobile(_e){return console.log("loginMobile:",_e),request("/auth/v1/login/mobile",{method:"POST",data:{mobile:_e.mobile,code:_e.code,client:HTTP_CLIENT}})}async function logout(_e){return request("/api/v1/user/logout",{method:"POST",data:{client:HTTP_CLIENT},..._e||{}})}const Mobile=({loginType:_e})=>{const et=useIntl();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="mobile"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(MobileOutlined$1,{className:"prefixIcon"})},name:"mobile",placeholder:et.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),jsxRuntimeExports.jsx(ProFormCaptcha$1,{fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:et.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(rt,st)=>rt?`${st} ${et.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:et.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async rt=>{if(console.log("mobile:",rt),rt&&rt.length===11){const ct=await sendMobileCode({mobile:rt,type:SEND_MOBILE_CODE_TYPE_LOGIN});if(ct.data.code!==200){message$2.error(ct.data.message);return}message$2.success(ct.data.message)}else message$2.error("手机号格式错误")}}),jsxRuntimeExports.jsx(Alert$1,{message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})};let message;const AntdGlobalComp=()=>{const _e=AntdApp.useApp();return message=_e.message,_e.modal,_e.notification,null},Scan=({loginType:_e})=>(useIntl(),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="scan"&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto"},value:"login"})})})),useUserStore=create$4()(devtools(persist(immer((_e,et)=>({userInfo:{uid:"",nickname:"",avatar:""},setUserInfo:rt=>{_e({userInfo:rt})},resetUserInfo(){_e({userInfo:{uid:""}})}})),{name:USER_STORE}))),LoginPage=()=>{const _e=useIntl(),et=useNavigate(),{token:rt}=theme.useToken(),[st,ct]=reactExports.useState("account"),ut=useUserStore(_t=>_t.setUserInfo),ft=useAuthStore(_t=>_t.setAccessToken),gt=[{key:"account",label:_e.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:jsxRuntimeExports.jsx(Account,{loginType:st})},{key:"mobile",label:_e.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:jsxRuntimeExports.jsx(Mobile,{loginType:st})},{key:"scan",label:_e.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:jsxRuntimeExports.jsx(Scan,{loginType:st})}],xt=async _t=>{console.log("handleSubmit values: ",_t,st),message.loading("正在登录...");const wt=await login({..._t});console.log("LoginResult:",wt),wt.data.code===200?(message.destroy(),message.success("登录成功!"),ft(wt.data.data.access_token),ut(wt.data.data.user),IS_ELECTRON&&window.electronAPI.loginSuccess(),et("/chat")):(message.destroy(),message.error(wt.data.message))},$t=async _t=>{console.log("handleMobileSubmit values: ",_t),message.loading("正在登录...");const wt=await loginMobile({..._t});console.log("LoginMobileResult:",wt),wt.data.code===200?(message.destroy(),message.success("登录成功!"),ft(wt.data.data.access_token),ut(wt.data.data.user),IS_ELECTRON&&window.electronAPI.loginSuccess(),et("/chat")):(message.destroy(),message.error(wt.data.message))};return jsxRuntimeExports.jsx(ProConfigProvider,{hashed:!1,children:jsxRuntimeExports.jsx("div",{style:{backgroundColor:rt.colorBgContainer,textAlign:"center",height:"100vh"},children:jsxRuntimeExports.jsxs(LoginForm,{logo:"./logo.png",title:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"app.title"}),subTitle:_e.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{username:"agent1@email.com",password:"123456",mobile:"18888888008"},onFinish:async _t=>{if(console.log("login:",_t),st==="account"){let wt={username:_t.username,password:_t.password};await xt(wt)}else{let wt={mobile:_t.mobile,code:_t.code};await $t(wt)}},children:[jsxRuntimeExports.jsx(Tabs$1,{centered:!0,items:gt,activeKey:st,onChange:_t=>ct(_t)}),jsxRuntimeExports.jsx("div",{style:{marginBlockEnd:24,textAlign:"left"}})]})})})},Login=()=>jsxRuntimeExports.jsx(AntdApp,{children:jsxRuntimeExports.jsx(LoginPage,{})}),Register=()=>{useNavigate();const{token:_e}=theme.useToken();return reactExports.useState("phone"),setAlpha(_e.colorTextBase,.2),jsxRuntimeExports.jsx(ProConfigProvider,{hashed:!1,children:jsxRuntimeExports.jsx("div",{style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100vh"},children:jsxRuntimeExports.jsxs(LoginForm,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{name:"username",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined$1,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),jsxRuntimeExports.jsx(ProFormText$1.Password,{name:"password",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),jsxRuntimeExports.jsxs("div",{style:{marginBlockEnd:24},children:[jsxRuntimeExports.jsx(ProFormCheckbox$1,{noStyle:!0,name:"autoLogin",children:"自动登录"}),jsxRuntimeExports.jsx(Link,{to:"/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(Ft){try{return Ft.defaultView&&Ft.defaultView.frameElement||null}catch{return null}}var et=function(Ft){for(var Ht=Ft,Wt=_e(Ht);Wt;)Ht=Wt.ownerDocument,Wt=_e(Ht);return Ht}(window.document),rt=[],st=null,ct=null;function ut(Ft){this.time=Ft.time,this.target=Ft.target,this.rootBounds=It(Ft.rootBounds),this.boundingClientRect=It(Ft.boundingClientRect),this.intersectionRect=It(Ft.intersectionRect||Rt()),this.isIntersecting=!!Ft.intersectionRect;var Ht=this.boundingClientRect,Wt=Ht.width*Ht.height,Vt=this.intersectionRect,qt=Vt.width*Vt.height;Wt?this.intersectionRatio=Number((qt/Wt).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function ft(Ft,Ht){var Wt=Ht||{};if(typeof Ft!="function")throw new Error("callback must be a function");if(Wt.root&&Wt.root.nodeType!=1&&Wt.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=xt(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=Ft,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(Wt.rootMargin),this.thresholds=this._initThresholds(Wt.threshold),this.root=Wt.root||null,this.rootMargin=this._rootMarginValues.map(function(Vt){return Vt.value+Vt.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}ft.prototype.THROTTLE_TIMEOUT=100,ft.prototype.POLL_INTERVAL=null,ft.prototype.USE_MUTATION_OBSERVER=!0,ft._setupCrossOriginUpdater=function(){return st||(st=function(Ft,Ht){!Ft||!Ht?ct=Rt():ct=At(Ft,Ht),rt.forEach(function(Wt){Wt._checkForIntersections()})}),st},ft._resetCrossOriginUpdater=function(){st=null,ct=null},ft.prototype.observe=function(Ft){var Ht=this._observationTargets.some(function(Wt){return Wt.element==Ft});if(!Ht){if(!(Ft&&Ft.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:Ft,entry:null}),this._monitorIntersections(Ft.ownerDocument),this._checkForIntersections()}},ft.prototype.unobserve=function(Ft){this._observationTargets=this._observationTargets.filter(function(Ht){return Ht.element!=Ft}),this._unmonitorIntersections(Ft.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},ft.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},ft.prototype.takeRecords=function(){var Ft=this._queuedEntries.slice();return this._queuedEntries=[],Ft},ft.prototype._initThresholds=function(Ft){var Ht=Ft||[0];return Array.isArray(Ht)||(Ht=[Ht]),Ht.sort().filter(function(Wt,Vt,qt){if(typeof Wt!="number"||isNaN(Wt)||Wt<0||Wt>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return Wt!==qt[Vt-1]})},ft.prototype._parseRootMargin=function(Ft){var Ht=Ft||"0px",Wt=Ht.split(/\s+/).map(function(Vt){var qt=/^(-?\d*\.?\d+)(px|%)$/.exec(Vt);if(!qt)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(qt[1]),unit:qt[2]}});return Wt[1]=Wt[1]||Wt[0],Wt[2]=Wt[2]||Wt[0],Wt[3]=Wt[3]||Wt[1],Wt},ft.prototype._monitorIntersections=function(Ft){var Ht=Ft.defaultView;if(Ht&&this._monitoringDocuments.indexOf(Ft)==-1){var Wt=this._checkForIntersections,Vt=null,qt=null;this.POLL_INTERVAL?Vt=Ht.setInterval(Wt,this.POLL_INTERVAL):($t(Ht,"resize",Wt,!0),$t(Ft,"scroll",Wt,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in Ht&&(qt=new Ht.MutationObserver(Wt),qt.observe(Ft,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(Ft),this._monitoringUnsubscribes.push(function(){var Zt=Ft.defaultView;Zt&&(Vt&&Zt.clearInterval(Vt),_t(Zt,"resize",Wt,!0)),_t(Ft,"scroll",Wt,!0),qt&&qt.disconnect()});var Gt=this.root&&(this.root.ownerDocument||this.root)||et;if(Ft!=Gt){var Xt=_e(Ft);Xt&&this._monitorIntersections(Xt.ownerDocument)}}},ft.prototype._unmonitorIntersections=function(Ft){var Ht=this._monitoringDocuments.indexOf(Ft);if(Ht!=-1){var Wt=this.root&&(this.root.ownerDocument||this.root)||et,Vt=this._observationTargets.some(function(Xt){var Zt=Xt.element.ownerDocument;if(Zt==Ft)return!0;for(;Zt&&Zt!=Wt;){var lr=_e(Zt);if(Zt=lr&&lr.ownerDocument,Zt==Ft)return!0}return!1});if(!Vt){var qt=this._monitoringUnsubscribes[Ht];if(this._monitoringDocuments.splice(Ht,1),this._monitoringUnsubscribes.splice(Ht,1),qt(),Ft!=Wt){var Gt=_e(Ft);Gt&&this._unmonitorIntersections(Gt.ownerDocument)}}}},ft.prototype._unmonitorAllIntersections=function(){var Ft=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var Ht=0;Ht=0&&Zt>=0&&{top:Wt,bottom:Vt,left:qt,right:Gt,width:Xt,height:Zt}||null}function Tt(Ft){var Ht;try{Ht=Ft.getBoundingClientRect()}catch{}return Ht?(Ht.width&&Ht.height||(Ht={top:Ht.top,right:Ht.right,bottom:Ht.bottom,left:Ht.left,width:Ht.right-Ht.left,height:Ht.bottom-Ht.top}),Ht):Rt()}function Rt(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function It(Ft){return!Ft||"x"in Ft?Ft:{top:Ft.top,y:Ft.top,bottom:Ft.bottom,left:Ft.left,x:Ft.left,right:Ft.right,width:Ft.width,height:Ft.height}}function At(Ft,Ht){var Wt=Ht.top-Ft.top,Vt=Ht.left-Ft.left;return{top:Wt,left:Vt,height:Ht.height,width:Ht.width,bottom:Wt+Ht.height,right:Vt+Ht.width}}function jt(Ft,Ht){for(var Wt=Ht;Wt;){if(Wt==Ft)return!0;Wt=Nt(Wt)}return!1}function Nt(Ft){var Ht=Ft.parentNode;return Ft.nodeType==9&&Ft!=et?_e(Ft):(Ht&&Ht.assignedSlot&&(Ht=Ht.assignedSlot.parentNode),Ht&&Ht.nodeType==11&&Ht.host?Ht.host:Ht)}function kt(Ft){return Ft&&Ft.nodeType===9}window.IntersectionObserver=ft,window.IntersectionObserverEntry=ut})();function r$2(_e){var et,rt,st="";if(typeof _e=="string"||typeof _e=="number")st+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(rt=r$2(_e[et]))&&(st&&(st+=" "),st+=rt);else for(et in _e)_e[et]&&(st&&(st+=" "),st+=et);return st}function clsx$1(){for(var _e,et,rt=0,st="";rt1?rt-1:0),ct=1;ct2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf$1&&setPrototypeOf$1(_e,null);let st=et.length;for(;st--;){let ct=et[st];if(typeof ct=="string"){const ut=rt(ct);ut!==ct&&(isFrozen(et)||(et[st]=ut),ct=ut)}_e[ct]=!0}return _e}function cleanArray(_e){for(let et=0;et<_e.length;et++)objectHasOwnProperty(_e,et)||(_e[et]=null);return _e}function clone$2(_e){const et=create$2(null);for(const[rt,st]of entries(_e))objectHasOwnProperty(_e,rt)&&(Array.isArray(st)?et[rt]=cleanArray(st):st&&typeof st=="object"&&st.constructor===Object?et[rt]=clone$2(st):et[rt]=st);return et}function lookupGetter(_e,et){for(;_e!==null;){const st=getOwnPropertyDescriptor(_e,et);if(st){if(st.get)return unapply(st.get);if(typeof st.value=="function")return unapply(st.value)}_e=getPrototypeOf$1(_e)}function rt(){return null}return rt}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text$1=freeze(["#text"]),html$2=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml$2=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(et,rt){if(typeof et!="object"||typeof et.createPolicy!="function")return null;let st=null;const ct="data-tt-policy-suffix";rt&&rt.hasAttribute(ct)&&(st=rt.getAttribute(ct));const ut="dompurify"+(st?"#"+st:"");try{return et.createPolicy(ut,{createHTML(ft){return ft},createScriptURL(ft){return ft}})}catch{return console.warn("TrustedTypes policy "+ut+" could not be created."),null}};function createDOMPurify(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const et=_n=>createDOMPurify(_n);if(et.version="3.0.9",et.removed=[],!_e||!_e.document||_e.document.nodeType!==9)return et.isSupported=!1,et;let{document:rt}=_e;const st=rt,ct=st.currentScript,{DocumentFragment:ut,HTMLTemplateElement:ft,Node:gt,Element:xt,NodeFilter:$t,NamedNodeMap:_t=_e.NamedNodeMap||_e.MozNamedAttrMap,HTMLFormElement:wt,DOMParser:Tt,trustedTypes:Rt}=_e,It=xt.prototype,At=lookupGetter(It,"cloneNode"),jt=lookupGetter(It,"nextSibling"),Nt=lookupGetter(It,"childNodes"),kt=lookupGetter(It,"parentNode");if(typeof ft=="function"){const _n=rt.createElement("template");_n.content&&_n.content.ownerDocument&&(rt=_n.content.ownerDocument)}let Ft,Ht="";const{implementation:Wt,createNodeIterator:Vt,createDocumentFragment:qt,getElementsByTagName:Gt}=rt,{importNode:Xt}=st;let Zt={};et.isSupported=typeof entries=="function"&&typeof kt=="function"&&Wt&&Wt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:lr,ERB_EXPR:er,TMPLIT_EXPR:cr,DATA_ATTR:ur,ARIA_ATTR:pr,IS_SCRIPT_OR_DATA:hr,ATTR_WHITESPACE:fr}=EXPRESSIONS;let{IS_ALLOWED_URI:dr}=EXPRESSIONS,yr=null;const $r=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$1]);let Er=null;const mr=addToSet({},[...html$2,...svg,...mathMl,...xml$2]);let Sr=Object.seal(create$2(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}})),Tr=null,jr=null,Or=!0,_r=!0,Cr=!1,Nr=!0,Rr=!1,Pr=!1,Mr=!1,kr=!1,Fr=!1,wr=!1,Br=!1,Dr=!0,Xr=!1;const Kr="user-content-";let zr=!0,qr=!1,pn={},Qr=null;const Zr=addToSet({},["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 vn=null;const vr=addToSet({},["audio","video","img","source","image","track"]);let gr=null;const br=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Hr="http://www.w3.org/1998/Math/MathML",Vr="http://www.w3.org/2000/svg",Wr="http://www.w3.org/1999/xhtml";let Gr=Wr,cn=!1,mn=null;const hn=addToSet({},[Hr,Vr,Wr],stringToString);let En=null;const Rn=["application/xhtml+xml","text/html"],Dn="text/html";let Bn=null,Yn=null;const qn=rt.createElement("form"),ao=function(ln){return ln instanceof RegExp||ln instanceof Function},dn=function(){let ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yn&&Yn===ln)){if((!ln||typeof ln!="object")&&(ln={}),ln=clone$2(ln),En=Rn.indexOf(ln.PARSER_MEDIA_TYPE)===-1?Dn:ln.PARSER_MEDIA_TYPE,Bn=En==="application/xhtml+xml"?stringToString:stringToLowerCase,yr=objectHasOwnProperty(ln,"ALLOWED_TAGS")?addToSet({},ln.ALLOWED_TAGS,Bn):$r,Er=objectHasOwnProperty(ln,"ALLOWED_ATTR")?addToSet({},ln.ALLOWED_ATTR,Bn):mr,mn=objectHasOwnProperty(ln,"ALLOWED_NAMESPACES")?addToSet({},ln.ALLOWED_NAMESPACES,stringToString):hn,gr=objectHasOwnProperty(ln,"ADD_URI_SAFE_ATTR")?addToSet(clone$2(br),ln.ADD_URI_SAFE_ATTR,Bn):br,vn=objectHasOwnProperty(ln,"ADD_DATA_URI_TAGS")?addToSet(clone$2(vr),ln.ADD_DATA_URI_TAGS,Bn):vr,Qr=objectHasOwnProperty(ln,"FORBID_CONTENTS")?addToSet({},ln.FORBID_CONTENTS,Bn):Zr,Tr=objectHasOwnProperty(ln,"FORBID_TAGS")?addToSet({},ln.FORBID_TAGS,Bn):{},jr=objectHasOwnProperty(ln,"FORBID_ATTR")?addToSet({},ln.FORBID_ATTR,Bn):{},pn=objectHasOwnProperty(ln,"USE_PROFILES")?ln.USE_PROFILES:!1,Or=ln.ALLOW_ARIA_ATTR!==!1,_r=ln.ALLOW_DATA_ATTR!==!1,Cr=ln.ALLOW_UNKNOWN_PROTOCOLS||!1,Nr=ln.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Rr=ln.SAFE_FOR_TEMPLATES||!1,Pr=ln.WHOLE_DOCUMENT||!1,Fr=ln.RETURN_DOM||!1,wr=ln.RETURN_DOM_FRAGMENT||!1,Br=ln.RETURN_TRUSTED_TYPE||!1,kr=ln.FORCE_BODY||!1,Dr=ln.SANITIZE_DOM!==!1,Xr=ln.SANITIZE_NAMED_PROPS||!1,zr=ln.KEEP_CONTENT!==!1,qr=ln.IN_PLACE||!1,dr=ln.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Gr=ln.NAMESPACE||Wr,Sr=ln.CUSTOM_ELEMENT_HANDLING||{},ln.CUSTOM_ELEMENT_HANDLING&&ao(ln.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Sr.tagNameCheck=ln.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ln.CUSTOM_ELEMENT_HANDLING&&ao(ln.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Sr.attributeNameCheck=ln.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ln.CUSTOM_ELEMENT_HANDLING&&typeof ln.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Sr.allowCustomizedBuiltInElements=ln.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Rr&&(_r=!1),wr&&(Fr=!0),pn&&(yr=addToSet({},text$1),Er=[],pn.html===!0&&(addToSet(yr,html$1),addToSet(Er,html$2)),pn.svg===!0&&(addToSet(yr,svg$1),addToSet(Er,svg),addToSet(Er,xml$2)),pn.svgFilters===!0&&(addToSet(yr,svgFilters),addToSet(Er,svg),addToSet(Er,xml$2)),pn.mathMl===!0&&(addToSet(yr,mathMl$1),addToSet(Er,mathMl),addToSet(Er,xml$2))),ln.ADD_TAGS&&(yr===$r&&(yr=clone$2(yr)),addToSet(yr,ln.ADD_TAGS,Bn)),ln.ADD_ATTR&&(Er===mr&&(Er=clone$2(Er)),addToSet(Er,ln.ADD_ATTR,Bn)),ln.ADD_URI_SAFE_ATTR&&addToSet(gr,ln.ADD_URI_SAFE_ATTR,Bn),ln.FORBID_CONTENTS&&(Qr===Zr&&(Qr=clone$2(Qr)),addToSet(Qr,ln.FORBID_CONTENTS,Bn)),zr&&(yr["#text"]=!0),Pr&&addToSet(yr,["html","head","body"]),yr.table&&(addToSet(yr,["tbody"]),delete Tr.tbody),ln.TRUSTED_TYPES_POLICY){if(typeof ln.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ln.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ft=ln.TRUSTED_TYPES_POLICY,Ht=Ft.createHTML("")}else Ft===void 0&&(Ft=_createTrustedTypesPolicy(Rt,ct)),Ft!==null&&typeof Ht=="string"&&(Ht=Ft.createHTML(""));freeze&&freeze(ln),Yn=ln}},gn=addToSet({},["mi","mo","mn","ms","mtext"]),yn=addToSet({},["foreignobject","desc","title","annotation-xml"]),wn=addToSet({},["title","style","font","a","script"]),Tn=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Nn=addToSet({},[...mathMl$1,...mathMlDisallowed]),On=function(ln){let Pn=kt(ln);(!Pn||!Pn.tagName)&&(Pn={namespaceURI:Gr,tagName:"template"});const An=stringToLowerCase(ln.tagName),Qn=stringToLowerCase(Pn.tagName);return mn[ln.namespaceURI]?ln.namespaceURI===Vr?Pn.namespaceURI===Wr?An==="svg":Pn.namespaceURI===Hr?An==="svg"&&(Qn==="annotation-xml"||gn[Qn]):!!Tn[An]:ln.namespaceURI===Hr?Pn.namespaceURI===Wr?An==="math":Pn.namespaceURI===Vr?An==="math"&&yn[Qn]:!!Nn[An]:ln.namespaceURI===Wr?Pn.namespaceURI===Vr&&!yn[Qn]||Pn.namespaceURI===Hr&&!gn[Qn]?!1:!Nn[An]&&(wn[An]||!Tn[An]):!!(En==="application/xhtml+xml"&&mn[ln.namespaceURI]):!1},xn=function(ln){arrayPush(et.removed,{element:ln});try{ln.parentNode.removeChild(ln)}catch{ln.remove()}},Cn=function(ln,Pn){try{arrayPush(et.removed,{attribute:Pn.getAttributeNode(ln),from:Pn})}catch{arrayPush(et.removed,{attribute:null,from:Pn})}if(Pn.removeAttribute(ln),ln==="is"&&!Er[ln])if(Fr||wr)try{xn(Pn)}catch{}else try{Pn.setAttribute(ln,"")}catch{}},Sn=function(ln){let Pn=null,An=null;if(kr)ln=""+ln;else{const oo=stringMatch(ln,/^[\r\n\t ]+/);An=oo&&oo[0]}En==="application/xhtml+xml"&&Gr===Wr&&(ln=''+ln+"");const Qn=Ft?Ft.createHTML(ln):ln;if(Gr===Wr)try{Pn=new Tt().parseFromString(Qn,En)}catch{}if(!Pn||!Pn.documentElement){Pn=Wt.createDocument(Gr,"template",null);try{Pn.documentElement.innerHTML=cn?Ht:Qn}catch{}}const ro=Pn.body||Pn.documentElement;return ln&&An&&ro.insertBefore(rt.createTextNode(An),ro.childNodes[0]||null),Gr===Wr?Gt.call(Pn,Pr?"html":"body")[0]:Pr?Pn.documentElement:ro},Mn=function(ln){return Vt.call(ln.ownerDocument||ln,ln,$t.SHOW_ELEMENT|$t.SHOW_COMMENT|$t.SHOW_TEXT,null)},jn=function(ln){return ln instanceof wt&&(typeof ln.nodeName!="string"||typeof ln.textContent!="string"||typeof ln.removeChild!="function"||!(ln.attributes instanceof _t)||typeof ln.removeAttribute!="function"||typeof ln.setAttribute!="function"||typeof ln.namespaceURI!="string"||typeof ln.insertBefore!="function"||typeof ln.hasChildNodes!="function")},Un=function(ln){return typeof gt=="function"&&ln instanceof gt},Gn=function(ln,Pn,An){Zt[ln]&&arrayForEach(Zt[ln],Qn=>{Qn.call(et,Pn,An,Yn)})},eo=function(ln){let Pn=null;if(Gn("beforeSanitizeElements",ln,null),jn(ln))return xn(ln),!0;const An=Bn(ln.nodeName);if(Gn("uponSanitizeElement",ln,{tagName:An,allowedTags:yr}),ln.hasChildNodes()&&!Un(ln.firstElementChild)&®ExpTest(/<[/\w]/g,ln.innerHTML)&®ExpTest(/<[/\w]/g,ln.textContent))return xn(ln),!0;if(!yr[An]||Tr[An]){if(!Tr[An]&&Kn(An)&&(Sr.tagNameCheck instanceof RegExp&®ExpTest(Sr.tagNameCheck,An)||Sr.tagNameCheck instanceof Function&&Sr.tagNameCheck(An)))return!1;if(zr&&!Qr[An]){const Qn=kt(ln)||ln.parentNode,ro=Nt(ln)||ln.childNodes;if(ro&&Qn){const oo=ro.length;for(let Vn=oo-1;Vn>=0;--Vn)Qn.insertBefore(At(ro[Vn],!0),jt(ln))}}return xn(ln),!0}return ln instanceof xt&&!On(ln)||(An==="noscript"||An==="noembed"||An==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,ln.innerHTML)?(xn(ln),!0):(Rr&&ln.nodeType===3&&(Pn=ln.textContent,arrayForEach([lr,er,cr],Qn=>{Pn=stringReplace(Pn,Qn," ")}),ln.textContent!==Pn&&(arrayPush(et.removed,{element:ln.cloneNode()}),ln.textContent=Pn)),Gn("afterSanitizeElements",ln,null),!1)},io=function(ln,Pn,An){if(Dr&&(Pn==="id"||Pn==="name")&&(An in rt||An in qn))return!1;if(!(_r&&!jr[Pn]&®ExpTest(ur,Pn))){if(!(Or&®ExpTest(pr,Pn))){if(!Er[Pn]||jr[Pn]){if(!(Kn(ln)&&(Sr.tagNameCheck instanceof RegExp&®ExpTest(Sr.tagNameCheck,ln)||Sr.tagNameCheck instanceof Function&&Sr.tagNameCheck(ln))&&(Sr.attributeNameCheck instanceof RegExp&®ExpTest(Sr.attributeNameCheck,Pn)||Sr.attributeNameCheck instanceof Function&&Sr.attributeNameCheck(Pn))||Pn==="is"&&Sr.allowCustomizedBuiltInElements&&(Sr.tagNameCheck instanceof RegExp&®ExpTest(Sr.tagNameCheck,An)||Sr.tagNameCheck instanceof Function&&Sr.tagNameCheck(An))))return!1}else if(!gr[Pn]){if(!regExpTest(dr,stringReplace(An,fr,""))){if(!((Pn==="src"||Pn==="xlink:href"||Pn==="href")&&ln!=="script"&&stringIndexOf(An,"data:")===0&&vn[ln])){if(!(Cr&&!regExpTest(hr,stringReplace(An,fr,"")))){if(An)return!1}}}}}}return!0},Kn=function(ln){return ln!=="annotation-xml"&&ln.indexOf("-")>0},Wn=function(ln){Gn("beforeSanitizeAttributes",ln,null);const{attributes:Pn}=ln;if(!Pn)return;const An={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Er};let Qn=Pn.length;for(;Qn--;){const ro=Pn[Qn],{name:oo,namespaceURI:Vn,value:uo}=ro,po=Bn(oo);let _o=oo==="value"?uo:stringTrim(uo);if(An.attrName=po,An.attrValue=_o,An.keepAttr=!0,An.forceKeepAttr=void 0,Gn("uponSanitizeAttribute",ln,An),_o=An.attrValue,An.forceKeepAttr||(Cn(oo,ln),!An.keepAttr))continue;if(!Nr&®ExpTest(/\/>/i,_o)){Cn(oo,ln);continue}Rr&&arrayForEach([lr,er,cr],Bo=>{_o=stringReplace(_o,Bo," ")});const Uo=Bn(ln.nodeName);if(io(Uo,po,_o)){if(Xr&&(po==="id"||po==="name")&&(Cn(oo,ln),_o=Kr+_o),Ft&&typeof Rt=="object"&&typeof Rt.getAttributeType=="function"&&!Vn)switch(Rt.getAttributeType(Uo,po)){case"TrustedHTML":{_o=Ft.createHTML(_o);break}case"TrustedScriptURL":{_o=Ft.createScriptURL(_o);break}}try{Vn?ln.setAttributeNS(Vn,oo,_o):ln.setAttribute(oo,_o),arrayPop(et.removed)}catch{}}}Gn("afterSanitizeAttributes",ln,null)},zn=function _n(ln){let Pn=null;const An=Mn(ln);for(Gn("beforeSanitizeShadowDOM",ln,null);Pn=An.nextNode();)Gn("uponSanitizeShadowNode",Pn,null),!eo(Pn)&&(Pn.content instanceof ut&&_n(Pn.content),Wn(Pn));Gn("afterSanitizeShadowDOM",ln,null)};return et.sanitize=function(_n){let ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pn=null,An=null,Qn=null,ro=null;if(cn=!_n,cn&&(_n=""),typeof _n!="string"&&!Un(_n))if(typeof _n.toString=="function"){if(_n=_n.toString(),typeof _n!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!et.isSupported)return _n;if(Mr||dn(ln),et.removed=[],typeof _n=="string"&&(qr=!1),qr){if(_n.nodeName){const uo=Bn(_n.nodeName);if(!yr[uo]||Tr[uo])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(_n instanceof gt)Pn=Sn(""),An=Pn.ownerDocument.importNode(_n,!0),An.nodeType===1&&An.nodeName==="BODY"||An.nodeName==="HTML"?Pn=An:Pn.appendChild(An);else{if(!Fr&&!Rr&&!Pr&&_n.indexOf("<")===-1)return Ft&&Br?Ft.createHTML(_n):_n;if(Pn=Sn(_n),!Pn)return Fr?null:Br?Ht:""}Pn&&kr&&xn(Pn.firstChild);const oo=Mn(qr?_n:Pn);for(;Qn=oo.nextNode();)eo(Qn)||(Qn.content instanceof ut&&zn(Qn.content),Wn(Qn));if(qr)return _n;if(Fr){if(wr)for(ro=qt.call(Pn.ownerDocument);Pn.firstChild;)ro.appendChild(Pn.firstChild);else ro=Pn;return(Er.shadowroot||Er.shadowrootmode)&&(ro=Xt.call(st,ro,!0)),ro}let Vn=Pr?Pn.outerHTML:Pn.innerHTML;return Pr&&yr["!doctype"]&&Pn.ownerDocument&&Pn.ownerDocument.doctype&&Pn.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Pn.ownerDocument.doctype.name)&&(Vn=" -`+Vn),Rr&&arrayForEach([lr,er,cr],uo=>{Vn=stringReplace(Vn,uo," ")}),Ft&&Br?Ft.createHTML(Vn):Vn},et.setConfig=function(){let _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dn(_n),Mr=!0},et.clearConfig=function(){Yn=null,Mr=!1},et.isValidAttribute=function(_n,ln,Pn){Yn||dn({});const An=Bn(_n),Qn=Bn(ln);return io(An,Qn,Pn)},et.addHook=function(_n,ln){typeof ln=="function"&&(Zt[_n]=Zt[_n]||[],arrayPush(Zt[_n],ln))},et.removeHook=function(_n){if(Zt[_n])return arrayPop(Zt[_n])},et.removeHooks=function(_n){Zt[_n]&&(Zt[_n]=[])},et.removeAllHooks=function(){Zt={}},et}var purify=createDOMPurify();function useClickOutside(_e,et="click"){const rt=reactExports.useRef();return reactExports.useEffect(()=>{const st=ct=>{const ut=rt.current;!ut||ut.contains(ct.target)||_e&&_e(ct)};return document.addEventListener(et,st),()=>{document.removeEventListener(et,st)}},[et,_e]),rt}function useForwardRef(_e){const et=reactExports.useRef(null);return reactExports.useEffect(()=>{_e&&(typeof _e=="function"?_e(et.current):_e.current=et.current)},[_e]),et}function useLatest(_e){const et=reactExports.useRef(_e);return et.current=_e,et}function getRandomString(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function reflow(_e){return _e.offsetHeight}const TIME_GAP=5*60*1e3;let lastTs=0;const makeMsg=(_e,et)=>{const rt=_e.createdAt||Date.now(),st=_e.hasTime||rt-lastTs>TIME_GAP;return st&&(lastTs=rt),{..._e,_id:_e._id||et||getRandomString(),createdAt:rt,position:_e.position||"left",hasTime:st}};function useMessages(_e=[]){const et=reactExports.useMemo(()=>_e.map($t=>makeMsg($t)),[_e]),[rt,st]=reactExports.useState(et),ct=reactExports.useCallback($t=>{st(_t=>[...$t,..._t])},[]),ut=reactExports.useCallback(($t,_t)=>{st(wt=>wt.map(Tt=>Tt._id===$t?makeMsg(_t,$t):Tt))},[]),ft=reactExports.useCallback($t=>{const _t=makeMsg($t);st(wt=>[...wt,_t])},[]),gt=reactExports.useCallback($t=>{st(_t=>_t.filter(wt=>wt._id!==$t))},[]),xt=reactExports.useCallback(($t=[])=>{st($t)},[]);return{messages:rt,prependMsgs:ct,appendMsg:ft,updateMsg:ut,deleteMsg:gt,resetList:xt}}function useMount({active:_e=!1,ref:et,delay:rt=300}){const[st,ct]=reactExports.useState(!1),[ut,ft]=reactExports.useState(!1),gt=reactExports.useRef(),xt=()=>{gt.current&&clearTimeout(gt.current)};return reactExports.useEffect(()=>(_e?(xt(),ft(_e)):(ct(_e),gt.current=setTimeout(()=>{ft(_e)},rt)),xt),[_e,rt]),reactExports.useEffect(()=>{et.current&&reflow(et.current),ct(ut)},[ut,et]),{didMount:ut,isShow:st}}class ErrorBoundary extends React$1.Component{constructor(et){super(et),this.state={error:null,errorInfo:null}}componentDidCatch(et,rt){const{onError:st}=this.props;st&&st(et,rt),this.setState({error:et,errorInfo:rt})}render(){const{FallbackComponent:et,children:rt,...st}=this.props,{error:ct,errorInfo:ut}=this.state;return ut?et?jsxRuntimeExports.jsx(et,{error:ct,errorInfo:ut,...st}):null:rt}}React$1.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const Avatar=_e=>{const{className:et,src:rt,alt:st,url:ct,size:ut="md",shape:ft="circle",children:gt}=_e,xt=ct?"a":"span";return jsxRuntimeExports.jsx(xt,{className:clsx$1("Avatar",`Avatar--${ut}`,`Avatar--${ft}`,et),href:ct,children:rt?jsxRuntimeExports.jsx("img",{src:rt,alt:st}):gt})},Backdrop=_e=>{const{className:et,active:rt,onClick:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Backdrop",et,{active:rt}),onClick:st,role:"button",tabIndex:-1,"aria-hidden":!0,...ct})},Bubble=React$1.forwardRef((_e,et)=>{const{type:rt="text",content:st,children:ct,...ut}=_e;return jsxRuntimeExports.jsxs("div",{className:`Bubble ${rt}`,"data-type":rt,ref:et,...ut,children:[st&&jsxRuntimeExports.jsx("p",{children:st}),ct]})}),Icon=React$1.forwardRef((_e,et)=>{const{type:rt,className:st,spin:ct,name:ut,...ft}=_e,gt=typeof ut=="string"?{"aria-label":ut}:{"aria-hidden":!0};return jsxRuntimeExports.jsx("svg",{className:clsx$1("Icon",{"is-spin":ct},st),ref:et,...gt,...ft,children:jsxRuntimeExports.jsx("use",{xlinkHref:`#icon-${rt}`})})});function composeClass(_e){return _e&&`Btn--${_e}`}const Button=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,color:ct,variant:ut,size:ft,icon:gt,loading:xt,block:$t,disabled:_t,children:wt,onClick:Tt,...Rt}=_e,It=gt||xt&&"spinner",At=ft||($t?"lg":"");function jt(Nt){!_t&&!xt&&Tt&&Tt(Nt)}return jsxRuntimeExports.jsxs("button",{className:clsx$1("Btn",composeClass(ct),composeClass(ut),composeClass(At),{"Btn--block":$t},rt),type:"button",disabled:_t,onClick:jt,ref:et,...Rt,children:[It&&jsxRuntimeExports.jsx("span",{className:"Btn-icon",children:jsxRuntimeExports.jsx(Icon,{type:It,spin:xt})}),st||wt]})}),arEG={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:"يبحث"}},enUS={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"}},frFR={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"}},zhCN={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:"搜索"}},defaultLocales={"ar-EG":arEG,"fr-FR":frFR,"en-US":enUS,"zh-CN":zhCN},DEFAULT_LOCALE="en-US",ConfigContext=React$1.createContext({}),ConfigProvider=({locale:_e=DEFAULT_LOCALE,locales:et,elderMode:rt,children:st})=>jsxRuntimeExports.jsx(ConfigContext.Provider,{value:{locale:_e,locales:et,elderMode:rt},children:st}),useConfig$1=()=>reactExports.useContext(ConfigContext),useLocale$1=(_e,et)=>{const{locale:rt,locales:st}=reactExports.useContext(ConfigContext);let ut={...rt&&defaultLocales[rt]||defaultLocales[DEFAULT_LOCALE],...st};return!rt&&!st&&et?ut=et:_e&&(ut=ut[_e]||{}),{locale:rt,trans:ft=>ft?ut[ft]:ut}},Card=React$1.forwardRef((_e,et)=>{const{className:rt,size:st,fluid:ct,children:ut,...ft}=_e,gt=useConfig$1();return jsxRuntimeExports.jsx("div",{className:clsx$1("Card",st&&`Card--${st}`,{"Card--fluid":ct},rt),"data-fluid":ct,"data-elder-mode":gt.elderMode,...ft,ref:et,children:ut})}),mapDirection={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},mapWrap={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},mapJustify={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},mapAlign={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},Flex=React$1.forwardRef((_e,et)=>{const{as:rt="div",className:st,inline:ct,center:ut,direction:ft,wrap:gt,justifyContent:xt,justify:$t=xt,alignItems:_t,align:wt=_t,children:Tt,...Rt}=_e;return jsxRuntimeExports.jsx(rt,{className:clsx$1("Flex",ft&&mapDirection[ft],$t&&mapJustify[$t],wt&&mapAlign[wt],gt&&mapWrap[gt],{"Flex--inline":ct,"Flex--center":ut},st),ref:et,...Rt,children:Tt})}),FlexItem=React$1.forwardRef((_e,et)=>{const{className:rt,flex:st,alignSelf:ct,order:ut,style:ft,children:gt,...xt}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("FlexItem",rt),style:{...ft,flex:st,alignSelf:ct,order:ut},ref:et,...xt,children:gt})});React$1.forwardRef((_e,et)=>{const{className:rt,aspectRatio:st="square",color:ct,image:ut,children:ft,...gt}=_e,xt={backgroundColor:ct||void 0,backgroundImage:typeof ut=="string"?`url('${ut}')`:void 0};return jsxRuntimeExports.jsx("div",{className:clsx$1("CardMedia",{"CardMedia--wide":st==="wide","CardMedia--square":st==="square"},rt),style:xt,...gt,ref:et,children:ft&&jsxRuntimeExports.jsx(Flex,{className:"CardMedia-content",direction:"column",center:!0,children:ft})})});React$1.forwardRef((_e,et)=>{const{className:rt,children:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardContent",rt),...ct,ref:et,children:st})});React$1.forwardRef((_e,et)=>{const{className:rt,title:st,subtitle:ct,center:ut,children:ft,...gt}=_e;return jsxRuntimeExports.jsxs("div",{className:clsx$1("CardTitle",{"CardTitle--center":ut},rt),...gt,ref:et,children:[st&&jsxRuntimeExports.jsx("h5",{className:"CardTitle-title",children:st}),ft&&typeof ft=="string"&&jsxRuntimeExports.jsx("h5",{className:"CardTitle-title",children:ft}),ct&&jsxRuntimeExports.jsx("p",{className:"CardTitle-subtitle",children:ct}),ft&&typeof ft!="string"&&ft]})});React$1.forwardRef((_e,et)=>{const{className:rt,children:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardText",rt),...ct,ref:et,children:typeof st=="string"?jsxRuntimeExports.jsx("p",{children:st}):st})});React$1.forwardRef((_e,et)=>{const{children:rt,className:st,direction:ct,...ut}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardActions",st,ct&&`CardActions--${ct}`),...ut,ref:et,children:rt})});const CarouselItem=_e=>{const{width:et,children:rt}=_e;return jsxRuntimeExports.jsx("div",{className:"Carousel-item",style:{width:et},children:rt})},setTransform=(_e,et)=>{_e.style.transform=et,_e.style.webkitTransform=et},setTransition=(_e,et)=>{_e.style.transition=et,_e.style.webkitTransition=et},testCache={passiveListener:()=>{let _e=!1;try{const et=Object.defineProperty({},"passive",{get(){_e=!0}});window.addEventListener("test",null,et)}catch{}return _e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function canUse(_e){return testCache[_e]()}const formElements=["TEXTAREA","OPTION","INPUT","SELECT"],canTouch$1=canUse("touch");React$1.forwardRef((_e,et)=>{const{className:rt,startIndex:st=0,draggable:ct=!0,duration:ut=300,easing:ft="ease",threshold:gt=20,clickDragThreshold:xt=10,loop:$t=!0,rtl:_t=!1,autoPlay:wt=_e.autoplay||!1,interval:Tt=_e.autoplaySpeed||4e3,dots:Rt=_e.indicators||!0,onChange:It,children:At}=_e,jt=React$1.Children.count(At),Nt=`${100/jt}%`,kt=reactExports.useRef(null),Ft=reactExports.useRef(null),Ht=reactExports.useRef(null),Wt=reactExports.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),Vt=reactExports.useCallback(Rr=>$t?Rr%jt:Math.max(0,Math.min(Rr,jt-1)),[jt,$t]),[qt,Gt]=reactExports.useState(Vt(st)),[Xt,Zt]=reactExports.useState(!1),lr=reactExports.useCallback(()=>{setTransition(Ft.current,`transform ${ut}ms ${ft}`)},[ut,ft]),er=()=>{setTransition(Ft.current,"transform 0s")},cr=Rr=>{setTransform(Ft.current,`translate3d(${Rr}px, 0, 0)`)},ur=reactExports.useCallback((Rr,Pr)=>{const Mr=$t?Rr+1:Rr,kr=(_t?1:-1)*Mr*Wt.current.wrapWidth;Pr?requestAnimationFrame(()=>{requestAnimationFrame(()=>{lr(),cr(kr)})}):cr(kr)},[lr,$t,_t]),pr=reactExports.useCallback(Rr=>{if(jt<=1)return;const Pr=Vt(Rr);Pr!==qt&&Gt(Pr)},[qt,jt,Vt]),hr=reactExports.useCallback(()=>{if(jt<=1)return;let Rr=qt-1;if($t){if(Rr<0){const Pr=Wt.current,Mr=jt+1,kr=(_t?1:-1)*Mr*Pr.wrapWidth,Fr=ct?Pr.endX-Pr.startX:0;er(),cr(kr+Fr),Rr=jt-1}}else Rr=Math.max(Rr,0);Rr!==qt&&Gt(Rr)},[qt,jt,ct,$t,_t]),fr=reactExports.useCallback(()=>{if(jt<=1)return;let Rr=qt+1;if($t){if(Rr>jt-1){Rr=0;const Mr=Wt.current,kr=ct?Mr.endX-Mr.startX:0;er(),cr(kr)}}else Rr=Math.min(Rr,jt-1);Rr!==qt&&Gt(Rr)},[qt,jt,ct,$t]),dr=reactExports.useCallback(()=>{!wt||Wt.current.hover||(Ht.current=setTimeout(()=>{lr(),fr()},Tt))},[wt,Tt,lr,fr]),yr=()=>{clearTimeout(Ht.current)},$r=()=>{ur(qt,!0),dr()},Er=()=>{const Rr=Wt.current,Pr=(_t?-1:1)*(Rr.endX-Rr.startX),Mr=Math.abs(Pr),kr=Pr>0&&qt-1<0,Fr=Pr<0&&qt+1>jt-1;kr||Fr?$t?kr?hr():fr():$r():Pr>0&&Mr>gt&&jt>1?hr():Pr<0&&Mr>gt&&jt>1?fr():$r()},mr=()=>{const Rr=Wt.current;Rr.startX=0,Rr.endX=0,Rr.startY=0,Rr.canMove=null,Rr.pressDown=!1},Sr=Rr=>{if(formElements.includes(Rr.target.nodeName))return;Rr.preventDefault(),Rr.stopPropagation();const Pr="touches"in Rr?Rr.touches[0]:Rr,Mr=Wt.current;Mr.pressDown=!0,Mr.startX=Pr.pageX,Mr.startY=Pr.pageY,yr()},Tr=Rr=>{Rr.stopPropagation();const Pr="touches"in Rr?Rr.touches[0]:Rr,Mr=Wt.current;if(Mr.pressDown){if("touches"in Rr&&(Mr.canMove===null&&(Mr.canMove=Math.abs(Mr.startY-Pr.pageY)xt&&Zt(!0);const Br=_t?Fr+wr:wr-Fr;cr(Br)}},jr=Rr=>{Rr.stopPropagation();const Pr=Wt.current;Pr.pressDown=!1,Zt(!1),lr(),Pr.endX?Er():dr(),mr()},Or=()=>{Wt.current.hover=!0,yr()},_r=Rr=>{const Pr=Wt.current;Pr.hover=!1,Pr.pressDown&&(Pr.pressDown=!1,Pr.endX=Rr.pageX,lr(),Er(),mr()),dr()},Cr=Rr=>{const{slideTo:Pr}=Rr.currentTarget.dataset;if(Pr){const Mr=parseInt(Pr,10);pr(Mr)}Rr.preventDefault()};reactExports.useImperativeHandle(et,()=>({goTo:pr,prev:hr,next:fr,wrapperRef:kt}),[pr,hr,fr]),reactExports.useEffect(()=>{function Rr(){Wt.current.wrapWidth=kt.current.offsetWidth,ur(qt)}return Wt.current.first&&Rr(),window.addEventListener("resize",Rr),()=>{window.removeEventListener("resize",Rr)}},[qt,ur]),reactExports.useEffect(()=>{It&&!Wt.current.first&&It(qt)},[qt,It]),reactExports.useEffect(()=>{Wt.current.first?(ur(qt),Wt.current.first=!1):ur(qt,!0)},[qt,ur]),reactExports.useEffect(()=>(dr(),()=>{yr()}),[wt,qt,dr]);let Nr;return ct?Nr=canTouch$1?{onTouchStart:Sr,onTouchMove:Tr,onTouchEnd:jr}:{onMouseDown:Sr,onMouseMove:Tr,onMouseUp:jr,onMouseEnter:Or,onMouseLeave:_r}:Nr={onMouseEnter:Or,onMouseLeave:_r},jsxRuntimeExports.jsxs("div",{className:clsx$1("Carousel",{"Carousel--draggable":ct,"Carousel--rtl":_t,"Carousel--dragging":Xt},rt),ref:kt,...Nr,children:[jsxRuntimeExports.jsxs("div",{className:"Carousel-inner",style:{width:`${$t?jt+2:jt}00%`},ref:Ft,children:[$t&&jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:React$1.Children.toArray(At)[jt-1]}),React$1.Children.map(At,(Rr,Pr)=>jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:Rr},Pr)),$t&&jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:React$1.Children.toArray(At)[0]})]}),Rt&&jsxRuntimeExports.jsx("ol",{className:"Carousel-dots",children:React$1.Children.map(At,(Rr,Pr)=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx("button",{className:clsx$1("Carousel-dot",{active:qt===Pr}),type:"button","aria-label":`Go to slide ${Pr+1}`,"data-slide-to":Pr,onClick:Cr})},Pr))})]})});const Checkbox=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,checked:ct,disabled:ut,onChange:ft,...gt}=_e;return jsxRuntimeExports.jsxs("label",{className:clsx$1("Checkbox",rt,{"Checkbox--checked":ct,"Checkbox--disabled":ut}),ref:et,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:ct,disabled:ut,onChange:ft,...gt}),jsxRuntimeExports.jsx("span",{className:"Checkbox-text",children:st})]})});React$1.forwardRef((_e,et)=>{const{className:rt,options:st,value:ct,name:ut,disabled:ft,block:gt,onChange:xt}=_e;function $t(_t,wt){const Tt=wt.target.checked?ct.concat(_t):ct.filter(Rt=>Rt!==_t);xt(Tt,wt)}return jsxRuntimeExports.jsx("div",{className:clsx$1("CheckboxGroup",{"CheckboxGroup--block":gt},rt),ref:et,children:st.map(_t=>jsxRuntimeExports.jsx(Checkbox,{label:_t.label||_t.value,value:_t.value,name:ut,checked:ct.includes(_t.value),disabled:"disabled"in _t?_t.disabled:ft,onChange:wt=>{$t(_t.value,wt)}},_t.value))})});const doc=document,html=doc.documentElement,ClickOutside=_e=>{const{children:et,onClick:rt,mouseEvent:st="mouseup",...ct}=_e,ut=reactExports.useRef(null);function ft(gt){ut.current&&html.contains(gt.target)&&!ut.current.contains(gt.target)&&rt(gt)}return reactExports.useEffect(()=>(st&&doc.addEventListener(st,ft),()=>{doc.removeEventListener(st,ft)})),jsxRuntimeExports.jsx("div",{ref:ut,...ct,children:et})},IMAGE_EMPTY="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",IMAGE_OOPS="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";React$1.forwardRef((_e,et)=>{const{className:rt,type:st,image:ct,tip:ut,children:ft}=_e,gt=ct||(st==="error"?IMAGE_OOPS:IMAGE_EMPTY);return jsxRuntimeExports.jsxs(Flex,{className:clsx$1("Empty",rt),direction:"column",center:!0,ref:et,children:[jsxRuntimeExports.jsx("img",{className:"Empty-img",src:gt,alt:ut}),ut&&jsxRuntimeExports.jsx("p",{className:"Empty-tip",children:ut}),ft]})});const ThemeContext=React$1.createContext("");React$1.forwardRef((_e,et)=>{const{children:rt,...st}=_e;return jsxRuntimeExports.jsx("label",{className:"Label",...st,ref:et,children:rt})});const IconButton=React$1.forwardRef((_e,et)=>{const{className:rt,icon:st,img:ct,...ut}=_e;return jsxRuntimeExports.jsxs(Button,{className:clsx$1("IconBtn",rt),ref:et,...ut,children:[st&&jsxRuntimeExports.jsx(Icon,{type:st}),!st&&ct&&jsxRuntimeExports.jsx("img",{src:ct,alt:""})]})});React$1.forwardRef((_e,et)=>{const{className:rt,src:st,lazy:ct,fluid:ut,children:ft,...gt}=_e,[xt,$t]=reactExports.useState(ct?void 0:st),_t=useForwardRef(et),wt=reactExports.useRef(""),Tt=reactExports.useRef(!1);return reactExports.useEffect(()=>{if(!ct)return;const Rt=new IntersectionObserver(([It])=>{It.isIntersecting&&($t(wt.current),Tt.current=!0,Rt.unobserve(It.target))});return _t.current&&Rt.observe(_t.current),()=>{Rt.disconnect()}},[_t,ct]),reactExports.useEffect(()=>{wt.current=st,(!ct||Tt.current)&&$t(st)},[ct,st]),jsxRuntimeExports.jsx("img",{className:clsx$1("Image",{"Image--fluid":ut},rt),src:xt,alt:"",ref:_t,...gt})});function getToBottom(_e){return _e.scrollHeight-_e.scrollTop-_e.offsetHeight}React$1.forwardRef((_e,et)=>{const{className:rt,disabled:st,distance:ct=0,children:ut,onLoadMore:ft,onScroll:gt,...xt}=_e,$t=useForwardRef(et);function _t(wt){gt&>(wt);const Tt=$t.current;if(!Tt)return;getToBottom(Tt)<=ct&&ft()}return jsxRuntimeExports.jsx("div",{className:clsx$1("InfiniteScroll",rt),role:"feed",onScroll:st?void 0:_t,ref:$t,...xt,children:ut})});function getCount(_e,et){return`${`${_e}`.length}${et?`/${et}`:""}`}const Input=React$1.forwardRef((_e,et)=>{const{className:rt,type:st="text",variant:ct,value:ut,placeholder:ft,rows:gt=1,minRows:xt=gt,maxRows:$t=5,maxLength:_t,showCount:wt=!!_t,multiline:Tt,autoSize:Rt,onChange:It,...At}=_e;let jt=gt;jt$t&&(jt=$t);const[Nt,kt]=reactExports.useState(jt),[Ft,Ht]=reactExports.useState(21),Wt=useForwardRef(et),Vt=reactExports.useContext(ThemeContext),qt=ct||(Vt==="light"?"flushed":"outline"),Xt=Tt||Rt||gt>1?"textarea":"input";reactExports.useEffect(()=>{if(!Wt.current)return;const cr=getComputedStyle(Wt.current,null).lineHeight,ur=Number(cr.replace("px",""));ur!==Ft&&Ht(ur)},[Wt,Ft]);const Zt=reactExports.useCallback(()=>{if(!Rt||!Wt.current)return;const cr=Wt.current,ur=cr.rows;cr.rows=xt,ft&&(cr.placeholder="");const pr=~~(cr.scrollHeight/Ft);pr===ur&&(cr.rows=pr),pr>=$t&&(cr.rows=$t,cr.scrollTop=cr.scrollHeight),kt(pr<$t?pr:$t),ft&&(cr.placeholder=ft)},[Rt,Wt,Ft,$t,xt,ft]);reactExports.useEffect(()=>{ut===""?kt(jt):Zt()},[jt,Zt,ut]);const lr=reactExports.useCallback(cr=>{if(Zt(),It){const ur=cr.target.value,hr=_t&&ur.length>_t?ur.substr(0,_t):ur;It(hr,cr)}},[_t,It,Zt]),er=jsxRuntimeExports.jsx(Xt,{className:clsx$1("Input",`Input--${qt}`,rt),type:st,value:ut,placeholder:ft,maxLength:_t,ref:Wt,rows:Nt,onChange:lr,...At});return wt?jsxRuntimeExports.jsxs("div",{className:clsx$1("InputWrapper",{"has-counter":wt}),children:[er,wt&&jsxRuntimeExports.jsx("div",{className:"Input-counter",children:getCount(ut,_t)})]}):er});React$1.forwardRef((_e,et)=>{const{bordered:rt=!1,className:st,children:ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("List",{"List--bordered":rt},st),role:"list",ref:et,children:ct})});React$1.forwardRef((_e,et)=>{const{className:rt,as:st="div",content:ct,rightIcon:ut,children:ft,onClick:gt,...xt}=_e;return jsxRuntimeExports.jsxs(st,{className:clsx$1("ListItem",rt),onClick:gt,role:"listitem",...xt,ref:et,children:[jsxRuntimeExports.jsx("div",{className:"ListItem-content",children:ct||ft}),ut&&jsxRuntimeExports.jsx(Icon,{type:ut})]})});const SystemMessage=_e=>{const{className:et,content:rt,action:st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Message SystemMessage",et),children:jsxRuntimeExports.jsxs("div",{className:"SystemMessage-inner",children:[jsxRuntimeExports.jsx("span",{children:rt}),st&&jsxRuntimeExports.jsx("a",{href:"javascript:;",onClick:st.onClick,children:st.text})]})})},REGEX_FORMAT=/YYYY|M|D|dddd|HH|mm/g,MS_A_DAY=24*60*60*1e3,MS_A_WEEK=MS_A_DAY*7,parseDate=_e=>_e instanceof Date?_e:new Date(_e),getWeeHours=()=>new Date(new Date().setHours(0,0,0,0)),padStart=_e=>(_e<=9?"0":"")+_e,getFormat=_e=>{const et=getWeeHours().getTime()-_e.getTime();return et<0?"LT":etct[ut])}const Time=({date:_e})=>{const{trans:et}=useLocale$1("Time");return jsxRuntimeExports.jsx("time",{className:"Time",dateTime:new Date(_e).toJSON(),children:formatDate(_e,et())})};function Typing(){return jsxRuntimeExports.jsx(Bubble,{type:"typing",children:jsxRuntimeExports.jsxs("div",{className:"Typing","aria-busy":"true",children:[jsxRuntimeExports.jsx("div",{className:"Typing-dot"}),jsxRuntimeExports.jsx("div",{className:"Typing-dot"}),jsxRuntimeExports.jsx("div",{className:"Typing-dot"})]})})}const Message=_e=>{const{renderMessageContent:et=()=>null,...rt}=_e,{type:st,content:ct,user:ut={},_id:ft,position:gt="left",hasTime:xt=!0,createdAt:$t}=rt,{name:_t,avatar:wt}=ut;if(st==="system")return jsxRuntimeExports.jsx(SystemMessage,{content:ct.text,action:ct.action});const Tt=gt==="right"||gt==="left";return jsxRuntimeExports.jsxs("div",{className:clsx$1("Message",gt),"data-id":ft,"data-type":st,children:[xt&&$t&&jsxRuntimeExports.jsx("div",{className:"Message-meta",children:jsxRuntimeExports.jsx(Time,{date:$t})}),jsxRuntimeExports.jsxs("div",{className:"Message-main",children:[Tt&&wt&&jsxRuntimeExports.jsx(Avatar,{src:wt,alt:_t,url:ut.url}),jsxRuntimeExports.jsxs("div",{className:"Message-inner",children:[Tt&&_t&&jsxRuntimeExports.jsx("div",{className:"Message-author",children:_t}),jsxRuntimeExports.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:st==="typing"?jsxRuntimeExports.jsx(Typing,{}):et(rt)})]})]})]})},Message$1=React$1.memo(Message);let nextId$1=0;const getNextId=()=>nextId$1++;function useNextId(_e="id-"){return reactExports.useRef(`${_e}${getNextId()}`).current}const toggleClass=(_e,et,rt=document.body)=>{rt.classList[et?"add":"remove"](_e)};function clearModal(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&toggleClass("S--modalOpen",!1)}const Base=React$1.forwardRef((_e,et)=>{const{baseClass:rt,active:st,className:ct,title:ut,showClose:ft=!0,autoFocus:gt=!0,backdrop:xt=!0,height:$t,overflow:_t,actions:wt,vertical:Tt=!0,btnVariant:Rt,bgColor:It,children:At,onBackdropClick:jt,onClose:Nt}=_e,kt=useNextId("modal-"),Ft=_e.titleId||kt,Ht=useConfig$1(),Wt=reactExports.useRef(null),{didMount:Vt,isShow:qt}=useMount({active:st,ref:Wt});if(reactExports.useEffect(()=>{setTimeout(()=>{gt&&Wt.current&&Wt.current.focus()})},[gt]),reactExports.useEffect(()=>{qt&&toggleClass("S--modalOpen",qt)},[qt]),reactExports.useEffect(()=>{!st&&!Vt&&clearModal()},[st,Vt]),reactExports.useImperativeHandle(et,()=>({wrapperRef:Wt})),reactExports.useEffect(()=>()=>{clearModal()},[]),!Vt)return null;const Gt=rt==="Popup";return reactDomExports.createPortal(jsxRuntimeExports.jsxs("div",{className:clsx$1(rt,ct,{active:qt}),tabIndex:-1,"data-elder-mode":Ht.elderMode,ref:Wt,children:[xt&&jsxRuntimeExports.jsx(Backdrop,{active:qt,onClick:xt===!0?jt||Nt:void 0}),jsxRuntimeExports.jsx("div",{className:clsx$1(`${rt}-dialog`,{"pb-safe":Gt&&!wt}),"data-bg-color":It,"data-height":Gt&&$t?$t:void 0,role:"dialog","aria-labelledby":Ft,"aria-modal":!0,children:jsxRuntimeExports.jsxs("div",{className:`${rt}-content`,children:[jsxRuntimeExports.jsxs("div",{className:`${rt}-header`,children:[jsxRuntimeExports.jsx("h5",{className:`${rt}-title`,id:Ft,children:ut}),ft&&Nt&&jsxRuntimeExports.jsx(IconButton,{className:`${rt}-close`,icon:"close",size:"lg",onClick:Nt,"aria-label":"关闭"})]}),jsxRuntimeExports.jsx("div",{className:clsx$1(`${rt}-body`,{overflow:_t}),children:At}),wt&&jsxRuntimeExports.jsx("div",{className:`${rt}-footer ${rt}-footer--${Tt?"v":"h"}`,"data-variant":Rt||"round",children:wt.map(Xt=>reactExports.createElement(Button,{size:"lg",block:Gt,variant:Rt,...Xt,key:Xt.label}))})]})})]}),document.body)}),Modal=React$1.forwardRef((_e,et)=>jsxRuntimeExports.jsx(Base,{baseClass:"Modal",btnVariant:_e.vertical===!1?void 0:"outline",ref:et,..._e})),isPrimary=_e=>_e.color==="primary";React$1.forwardRef((_e,et)=>{const{className:rt,vertical:st,actions:ct,...ut}=_e,{locale:ft=""}=useLocale$1(),gt=ft.includes("zh"),xt=st??!gt;return Array.isArray(ct)&&ct.sort(($t,_t)=>isPrimary($t)?xt?-1:1:isPrimary(_t)?xt?1:-1:0),jsxRuntimeExports.jsx(Base,{baseClass:"Modal",className:clsx$1("Confirm",rt),showClose:!1,btnVariant:"outline",vertical:xt,actions:ct,ref:et,...ut})});React$1.forwardRef((_e,et)=>jsxRuntimeExports.jsx(Base,{baseClass:"Popup",overflow:!0,ref:et,..._e}));const Navbar=React$1.forwardRef((_e,et)=>{const{className:rt,title:st,logo:ct,desc:ut,leftContent:ft,rightContent:gt=[],align:xt}=_e,$t=xt==="left",_t=$t?!0:!ct;return jsxRuntimeExports.jsxs("header",{className:clsx$1("Navbar",{"Navbar--left":$t},rt),ref:et,children:[jsxRuntimeExports.jsx("div",{className:"Navbar-left",children:ft&&jsxRuntimeExports.jsx(IconButton,{size:"lg",...ft})}),jsxRuntimeExports.jsxs("div",{className:"Navbar-main",children:[ct&&jsxRuntimeExports.jsx("img",{className:"Navbar-logo",src:ct,alt:st}),jsxRuntimeExports.jsxs("div",{className:"Navbar-inner",children:[_t&&jsxRuntimeExports.jsx("h2",{className:"Navbar-title",children:st}),jsxRuntimeExports.jsx("div",{className:"Navbar-desc",children:ut})]})]}),jsxRuntimeExports.jsx("div",{className:"Navbar-right",children:gt.map(wt=>jsxRuntimeExports.jsx(IconButton,{size:"lg",...wt},wt.icon))})]})}),Text=React$1.forwardRef((_e,et)=>{const{as:rt="div",className:st,align:ct,breakWord:ut,truncate:ft,children:gt,...xt}=_e,$t=Number.isInteger(ft),_t=clsx$1(ct&&`Text--${ct}`,{"Text--break":ut,"Text--truncate":ft===!0,"Text--ellipsis":$t},st),wt=$t?{WebkitLineClamp:ft}:null;return jsxRuntimeExports.jsx(rt,{className:_t,style:wt,...xt,ref:et,children:gt})}),canFormat="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Price=React$1.forwardRef((_e,et)=>{const{className:rt,price:st,currency:ct,locale:ut,original:ft,...gt}=_e;let xt=[];if(ut&&ct&&canFormat?xt=new Intl.NumberFormat(ut,{style:"currency",currency:ct}).formatToParts(st):xt=void 0,!xt){const $t=".",[_t,wt]=`${st}`.split($t);xt=[{type:"currency",value:ct},{type:"integer",value:_t},{type:"decimal",value:wt&&$t},{type:"fraction",value:wt}]}return jsxRuntimeExports.jsx("div",{className:clsx$1("Price",{"Price--original":ft},rt),ref:et,...gt,children:xt.map(($t,_t)=>$t.value?jsxRuntimeExports.jsx("span",{className:`Price-${$t.type}`,children:$t.value},_t):null)})});React$1.forwardRef((_e,et)=>{const{className:rt,value:st,status:ct,...ut}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Progress",ct&&`Progress--${ct}`,rt),ref:et,...ut,children:jsxRuntimeExports.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${st}%`},"aria-valuenow":st,"aria-valuemin":0,"aria-valuemax":100})})});const rAF=requestAnimationFrame;function smoothScroll({el:_e,to:et,duration:rt=300,x:st}){let ct=0;const ut=st?"scrollLeft":"scrollTop",ft=_e[ut],gt=Math.round(rt/16),xt=(et-ft)/gt;if(!rAF){_e[ut]=et;return}function $t(){_e[ut]+=xt,++ct{const{distance:rt=30,loadingDistance:st=30,maxDistance:ct,distanceRatio:ut=2,loadMoreText:ft="点击加载更多",children:gt,onScroll:xt,onRefresh:$t,renderIndicator:_t=yr=>yr==="active"||yr==="loading"?jsxRuntimeExports.jsx(Icon,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=_e,wt=reactExports.useRef(null),Tt=reactExports.useRef(null),Rt=useLatest($t),[It,At]=reactExports.useState(0),[jt,Nt]=reactExports.useState("pending"),[kt,Ft]=reactExports.useState(!1),[Ht,Wt]=reactExports.useState(!_e.onRefresh),Vt=reactExports.useRef({}),qt=reactExports.useRef(jt),Gt=reactExports.useRef(),Xt=reactExports.useRef(),Zt=!canUse("touch");reactExports.useEffect(()=>{qt.current=jt},[jt]);const lr=yr=>{const $r=Tt.current;$r&&setTransform($r,`translate3d(0px,${yr}px,0)`)},er=({y:yr,animated:$r=!0})=>{const Er=wt.current;if(!Er)return;const mr=yr==="100%"?Er.scrollHeight-Er.offsetHeight:yr;$r?smoothScroll({el:Er,to:mr,x:!1}):Er.scrollTop=mr},cr=reactExports.useCallback(({animated:yr=!0}={})=>{er({y:"100%",animated:yr})},[]),ur=reactExports.useCallback(()=>{At(0),Nt("pending"),lr(0)},[]),pr=reactExports.useCallback(()=>{const yr=wt.current;if(!(!yr||!Rt.current)){Nt("loading");try{const $r=yr.scrollHeight;Rt.current().then(Er=>{const mr=()=>{er({y:yr.scrollHeight-$r-50,animated:!1})};clearTimeout(Gt.current),clearTimeout(Xt.current),mr(),Gt.current=setTimeout(mr,150),Xt.current=setTimeout(mr,250),ur(),Er&&Er.noMore&&Wt(!0)})}catch($r){console.error($r),ur()}}},[Rt,ur]),hr=()=>{Vt.current.startY=0},fr=reactExports.useCallback(yr=>{const $r=yr.touches[0].clientY,Er=wt.current.scrollTop<=0;Er?Vt.current.startY||(Vt.current.startY=$r,Nt("pull"),Ft(!1)):Vt.current.startY=0;const{startY:mr}=Vt.current;if(!Er||$rct&&(Sr=ct),Sr>0&&(yr.cancelable&&yr.preventDefault(),yr.stopPropagation(),lr(Sr),At(Sr),Nt(Sr>=rt?"active":"pull"))},[ut,ct,rt]),dr=reactExports.useCallback(()=>{Ft(!0),Vt.current.startY&&qt.current==="active"?pr():ur()},[pr,ur]);return reactExports.useEffect(()=>{const yr=wt.current;!yr||Zt||(Ht?(yr.removeEventListener("touchstart",hr),yr.removeEventListener("touchmove",fr),yr.removeEventListener("touchend",dr),yr.removeEventListener("touchcancel",dr)):(yr.addEventListener("touchstart",hr,passiveOpts),yr.addEventListener("touchmove",fr,nonPassiveOpts),yr.addEventListener("touchend",dr),yr.addEventListener("touchcancel",dr)))},[Ht,dr,fr,Zt]),reactExports.useEffect(()=>{jt==="loading"&&!Zt&&lr(st)},[st,jt,Zt]),reactExports.useImperativeHandle(et,()=>({scrollTo:er,scrollToEnd:cr,wrapperRef:wt}),[cr]),jsxRuntimeExports.jsx("div",{className:"PullToRefresh",ref:wt,onScroll:xt,children:jsxRuntimeExports.jsx("div",{className:"PullToRefresh-inner",children:jsxRuntimeExports.jsxs("div",{className:clsx$1("PullToRefresh-content",{"PullToRefresh-transition":kt}),ref:Tt,children:[jsxRuntimeExports.jsx("div",{className:"PullToRefresh-indicator",children:_t(jt,It)}),!Ht&&Zt&&jsxRuntimeExports.jsxs(Flex,{className:"PullToRefresh-fallback",center:!0,children:[_t(jt,rt),jsxRuntimeExports.jsx(Button,{className:"PullToRefresh-loadMore",variant:"text",onClick:pr,children:ft})]}),React$1.Children.only(gt)]})})})}),observerOptions={threshold:[0,.1]},Item=_e=>{const{item:et,effect:rt,children:st,onIntersect:ct}=_e,ut=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!ct)return;const ft=new IntersectionObserver(([gt])=>{gt.intersectionRatio>0&&(ct(et,gt)||ft.unobserve(gt.target))},observerOptions);return ut.current&&ft.observe(ut.current),()=>{ft.disconnect()}},[et,ct]),jsxRuntimeExports.jsx("div",{className:clsx$1("ScrollView-item",{"slide-in-right-item":rt==="slide","A-fadeIn":rt==="fade"}),ref:ut,children:st})},hasControls=!canUse("touch"),ScrollView=React$1.forwardRef((_e,et)=>{const{className:rt,fullWidth:st,scrollX:ct=!0,effect:ut="slide",data:ft,itemKey:gt,renderItem:xt,onIntersect:$t,onScroll:_t,children:wt,...Tt}=_e,Rt=reactExports.useRef(null),It=reactExports.useRef(null);function At(){const kt=It.current;kt.scrollLeft-=kt.offsetWidth}function jt(){const kt=It.current;kt.scrollLeft+=kt.offsetWidth}const Nt=reactExports.useCallback((kt,Ft)=>{let Ht;return gt&&(Ht=typeof gt=="function"?gt(kt,Ft):kt[gt]),Ht||Ft},[gt]);return reactExports.useImperativeHandle(et,()=>({scrollTo:({x:kt,y:Ft})=>{kt!=null&&(It.current.scrollLeft=kt),Ft!=null&&(It.current.scrollTop=Ft)},wrapperRef:Rt})),jsxRuntimeExports.jsxs("div",{className:clsx$1("ScrollView",{"ScrollView--fullWidth":st,"ScrollView--x":ct,"ScrollView--hasControls":hasControls},rt),ref:Rt,...Tt,children:[hasControls&&jsxRuntimeExports.jsx(IconButton,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:At}),jsxRuntimeExports.jsx("div",{className:"ScrollView-scroller",ref:It,onScroll:_t,children:jsxRuntimeExports.jsxs("div",{className:"ScrollView-inner",children:[ft.map((kt,Ft)=>jsxRuntimeExports.jsx(Item,{item:kt,effect:kt.effect||ut,onIntersect:$t,children:xt(kt,Ft)},Nt(kt,Ft))),wt?jsxRuntimeExports.jsx(Item,{item:{},effect:ut,onIntersect:$t,children:wt}):null]})}),hasControls&&jsxRuntimeExports.jsx(IconButton,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:jt})]})}),QuickReply=_e=>{const{item:et,index:rt,onClick:st}=_e;function ct(){st(et,rt)}const ut={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(ft){ft.file.status!=="uploading"&&console.log(ft.file,ft.fileList),ft.file.status==="done"?message$2.success(`${ft.file.name} file uploaded successfully`):ft.file.status==="error"&&message$2.error(`${ft.file.name} file upload failed.`)}};return jsxRuntimeExports.jsx("button",{className:clsx$1("QuickReply",{new:et.isNew,highlight:et.isHighlight}),type:"button","data-code":et.code,"aria-label":`快捷短语: ${et.name},双击发送`,onClick:ct,children:et.type==="upload"?jsxRuntimeExports.jsx(Upload$1,{...ut,children:jsxRuntimeExports.jsxs("div",{className:"QuickReply-inner",children:[et.icon&&jsxRuntimeExports.jsx(Icon,{type:et.icon}),et.img&&jsxRuntimeExports.jsx("img",{className:"QuickReply-img",src:et.img,alt:""}),jsxRuntimeExports.jsx("span",{children:et.name})]})}):jsxRuntimeExports.jsxs("div",{className:"QuickReply-inner",children:[et.icon&&jsxRuntimeExports.jsx(Icon,{type:et.icon}),et.img&&jsxRuntimeExports.jsx("img",{className:"QuickReply-img",src:et.img,alt:""}),jsxRuntimeExports.jsx("span",{children:et.name})]})})},QuickReplies=_e=>{const{items:et,visible:rt,onClick:st,onScroll:ct}=_e,ut=reactExports.useRef(null),[ft,gt]=reactExports.useState(!!ct);return reactExports.useLayoutEffect(()=>{let xt;return ut.current&&(gt(!1),ut.current.scrollTo({x:0,y:0}),xt=setTimeout(()=>{gt(!0)},500)),()=>{clearTimeout(xt)}},[et]),et.length?jsxRuntimeExports.jsx(ScrollView,{className:"QuickReplies",data:et,itemKey:"name",ref:ut,"data-visible":rt,onScroll:ft?ct:void 0,renderItem:(xt,$t)=>jsxRuntimeExports.jsx(QuickReply,{item:xt,index:$t,onClick:st},xt.name)}):null};QuickReplies.defaultProps={items:[],visible:!0};const QuickReplies$1=React$1.memo(QuickReplies),Radio=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,checked:ct,disabled:ut,onChange:ft,...gt}=_e;return jsxRuntimeExports.jsxs("label",{className:clsx$1("Radio",rt,{"Radio--checked":ct,"Radio--disabled":ut}),ref:et,children:[jsxRuntimeExports.jsx("input",{type:"radio",className:"Radio-input",checked:ct,disabled:ut,onChange:ft,...gt}),jsxRuntimeExports.jsx("span",{className:"Radio-text",children:st})]})});React$1.forwardRef((_e,et)=>{const{className:rt,options:st,value:ct,name:ut,disabled:ft,block:gt,onChange:xt}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("RadioGroup",{"RadioGroup--block":gt},rt),ref:et,children:st.map($t=>jsxRuntimeExports.jsx(Radio,{label:$t.label||$t.value,value:$t.value,name:ut,checked:ct===$t.value,disabled:"disabled"in $t?$t.disabled:ft,onChange:_t=>{xt($t.value,_t)}},$t.value))})});React$1.forwardRef((_e,et)=>{const{className:rt,content:st,options:ct={},...ut}=_e,ft={__html:purify.sanitize(st,ct)};return jsxRuntimeExports.jsx("div",{className:clsx$1("RichText",rt),dangerouslySetInnerHTML:ft,ref:et,...ut})});React$1.forwardRef((_e,et)=>{const{className:rt,onSearch:st,onChange:ct,onClear:ut,value:ft,clearable:gt=!0,showSearch:xt=!0,...$t}=_e,[_t,wt]=reactExports.useState(ft||""),{trans:Tt}=useLocale$1("Search"),Rt=Nt=>{wt(Nt),ct&&ct(Nt)},It=()=>{wt(""),ut&&ut()},At=Nt=>{Nt.keyCode===13&&(st&&st(_t,Nt),Nt.preventDefault())},jt=Nt=>{st&&st(_t,Nt)};return jsxRuntimeExports.jsxs("div",{className:clsx$1("Search",rt),ref:et,children:[jsxRuntimeExports.jsx(Icon,{className:"Search-icon",type:"search"}),jsxRuntimeExports.jsx(Input,{className:"Search-input",type:"search",value:_t,enterKeyHint:"search",onChange:Rt,onKeyDown:At,...$t}),gt&&_t&&jsxRuntimeExports.jsx(IconButton,{className:"Search-clear",icon:"x-circle-fill",onClick:It}),xt&&jsxRuntimeExports.jsx(Button,{className:"Search-btn",color:"primary",onClick:jt,children:Tt("search")})]})});React$1.forwardRef(({className:_e,placeholder:et,variant:rt="outline",children:st,...ct},ut)=>jsxRuntimeExports.jsxs("select",{className:clsx$1("Input Select",`Input--${rt}`,_e),...ct,ref:ut,children:[et&&jsxRuntimeExports.jsx("option",{value:"",children:et}),st]}));React$1.forwardRef((_e,et)=>{const{className:rt,current:st=0,status:ct,inverted:ut,children:ft,...gt}=_e,$t=React$1.Children.toArray(ft).map((_t,wt)=>{const Tt={index:wt,active:!1,completed:!1,disabled:!1};return st===wt?(Tt.active=!0,Tt.status=ct):st>wt?Tt.completed=!0:(Tt.disabled=!ut,Tt.completed=ut),React$1.isValidElement(_t)?React$1.cloneElement(_t,{...Tt,..._t.props}):null});return jsxRuntimeExports.jsx("ul",{className:clsx$1("Stepper",rt),ref:et,...gt,children:$t})});function renderDot(_e){if(_e){const et={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return jsxRuntimeExports.jsx(Icon,{type:et[_e]})}return jsxRuntimeExports.jsx("div",{className:"Step-dot"})}React$1.forwardRef((_e,et)=>{const{className:rt,active:st=!1,completed:ct=!1,disabled:ut=!1,status:ft,index:gt,title:xt,subTitle:$t,desc:_t,children:wt,...Tt}=_e;return jsxRuntimeExports.jsxs("li",{className:clsx$1("Step",{"Step--active":st,"Step--completed":ct,"Step--disabled":ut},rt),ref:et,"data-status":ft,...Tt,children:[jsxRuntimeExports.jsx("div",{className:"Step-icon",children:renderDot(ft)}),jsxRuntimeExports.jsx("div",{className:"Step-line"}),jsxRuntimeExports.jsxs("div",{className:"Step-content",children:[xt&&jsxRuntimeExports.jsxs("div",{className:"Step-title",children:[xt&&jsxRuntimeExports.jsx("span",{children:xt}),$t&&jsxRuntimeExports.jsx("small",{children:$t})]}),_t&&jsxRuntimeExports.jsx("div",{className:"Step-desc",children:_t}),wt]})]})});const TabItem=_e=>{const{active:et,index:rt,children:st,onClick:ct,...ut}=_e;function ft(gt){ct(rt,gt)}return jsxRuntimeExports.jsx("div",{className:"Tabs-navItem",children:jsxRuntimeExports.jsx("button",{className:clsx$1("Tabs-navLink",{active:et}),type:"button",role:"tab","aria-selected":et,onClick:ft,...ut,children:jsxRuntimeExports.jsx("span",{children:st})})})},TabsPane=_e=>{const{active:et,children:rt,...st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Tabs-pane",{active:et}),...st,role:"tabpanel",children:rt})};React$1.forwardRef((_e,et)=>{const{className:rt,index:st=0,scrollable:ct,hideNavIfOnlyOne:ut,children:ft,onChange:gt}=_e,[xt,$t]=reactExports.useState({}),[_t,wt]=reactExports.useState(st||0),Tt=reactExports.useRef(_t),Rt=reactExports.useRef(null),It=[],At=[],jt=useNextId("tabs-");function Nt(Ht,Wt){wt(Ht),gt&>(Ht,Wt)}React$1.Children.forEach(ft,(Ht,Wt)=>{if(!Ht)return;const Vt=_t===Wt,qt=`${jt}-${Wt}`;It.push(jsxRuntimeExports.jsx(TabItem,{active:Vt,index:Wt,onClick:Nt,"aria-controls":qt,tabIndex:Vt?-1:0,children:Ht.props.label},qt)),Ht.props.children&&At.push(jsxRuntimeExports.jsx(TabsPane,{active:Vt,id:qt,children:Ht.props.children},qt))}),reactExports.useEffect(()=>{wt(st)},[st]);const kt=reactExports.useCallback(()=>{const Ht=Rt.current;if(!Ht)return;const Wt=Ht.children[Tt.current];if(!Wt)return;const Vt=Wt.querySelector("span");if(!Vt)return;const{offsetWidth:qt,offsetLeft:Gt}=Wt,{width:Xt}=Vt.getBoundingClientRect(),Zt=Math.max(Xt-16,26),lr=Gt+qt/2;$t({transform:`translateX(${lr-Zt/2}px)`,width:`${Zt}px`}),ct&&smoothScroll({el:Ht,to:lr-Ht.offsetWidth/2,x:!0})},[ct]);reactExports.useEffect(()=>{const Ht=Rt.current;let Wt;return Ht&&"ResizeObserver"in window&&(Wt=new ResizeObserver(kt),Wt.observe(Ht)),()=>{Wt&&Ht&&Wt.unobserve(Ht)}},[kt]),reactExports.useEffect(()=>{Tt.current=_t,kt()},[_t,kt]);const Ft=It.length>(ut?1:0);return jsxRuntimeExports.jsxs("div",{className:clsx$1("Tabs",{"Tabs--scrollable":ct},rt),ref:et,children:[Ft&&jsxRuntimeExports.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:Rt,children:[It,jsxRuntimeExports.jsx("span",{className:"Tabs-navPointer",style:xt})]}),jsxRuntimeExports.jsx("div",{className:"Tabs-content",children:At})]})});React$1.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("div",{ref:et,children:_e}));const Tag=React$1.forwardRef((_e,et)=>{const{as:rt="span",className:st,color:ct,children:ut,...ft}=_e;return jsxRuntimeExports.jsx(rt,{className:clsx$1("Tag",ct&&`Tag--${ct}`,st),ref:et,...ft,children:ut})}),ToolbarButton=_e=>{const{item:et,onClick:rt}=_e,{type:st,icon:ct,img:ut,title:ft}=et,gt={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(xt){xt.file.status!=="uploading"&&console.log(xt.file,xt.fileList),xt.file.status==="done"?message$2.success(`${xt.file.name} file uploaded successfully`):xt.file.status==="error"&&message$2.error(`${xt.file.name} file upload failed.`)}};return jsxRuntimeExports.jsx("div",{className:"Toolbar-item","data-type":st,children:st==="upload"?jsxRuntimeExports.jsx(Upload$1,{...gt,children:jsxRuntimeExports.jsxs(Button,{className:"Toolbar-btn",onClick:xt=>rt(et,xt),children:[jsxRuntimeExports.jsxs("span",{className:"Toolbar-btnIcon",children:[ct&&jsxRuntimeExports.jsx(Icon,{type:ct}),ut&&jsxRuntimeExports.jsx("img",{className:"Toolbar-img",src:ut,alt:""})]}),jsxRuntimeExports.jsx("span",{className:"Toolbar-btnText",children:ft})]})}):jsxRuntimeExports.jsxs(Button,{className:"Toolbar-btn",onClick:xt=>rt(et,xt),children:[jsxRuntimeExports.jsxs("span",{className:"Toolbar-btnIcon",children:[ct&&jsxRuntimeExports.jsx(Icon,{type:ct}),ut&&jsxRuntimeExports.jsx("img",{className:"Toolbar-img",src:ut,alt:""})]}),jsxRuntimeExports.jsx("span",{className:"Toolbar-btnText",children:ft})]})})},Toolbar=_e=>{const{items:et,onClick:rt}=_e;return jsxRuntimeExports.jsx("div",{className:"Toolbar",children:et.map(st=>jsxRuntimeExports.jsx(ToolbarButton,{item:st,onClick:rt},st.type))})};React$1.forwardRef((_e,et)=>{const{className:rt,children:st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Tree",rt),role:"tree",ref:et,children:st})});React$1.forwardRef((_e,et)=>{const{title:rt,content:st,link:ct,children:ut=[],onClick:ft,onExpand:gt}=_e,[xt,$t]=reactExports.useState(!1),_t=ut.length>0;function wt(){_t?($t(!xt),gt(rt,!xt)):ft({title:rt,content:st,link:ct})}return jsxRuntimeExports.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":xt,ref:et,children:[jsxRuntimeExports.jsxs("div",{className:"TreeNode-title",onClick:wt,role:"treeitem","aria-expanded":xt,tabIndex:0,children:[jsxRuntimeExports.jsx("span",{className:"TreeNode-title-text",children:rt}),_t?jsxRuntimeExports.jsx(Icon,{className:"TreeNode-title-icon",type:xt?"chevron-up":"chevron-down"}):null]}),_t?ut.map((Tt,Rt)=>jsxRuntimeExports.jsx("div",{className:clsx$1("TreeNode-children",{"TreeNode-children-active":xt}),children:jsxRuntimeExports.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>ft({...Tt,index:Rt}),role:"treeitem",children:jsxRuntimeExports.jsx("span",{className:"TreeNode-title-text",children:Tt.title})})},Rt)):null]})});function formatTime(_e){if(!_e)return"";const et=Math.floor(_e/3600),rt=Math.floor((_e-et*3600)/60),st=Math.floor(_e-et*3600-rt*60);let ct="";return et>0&&(ct+=`${et}:`),ct+=`${rt}:`,st<10&&(ct+="0"),ct+=st,ct}React$1.forwardRef((_e,et)=>{const{className:rt,src:st,cover:ct,duration:ut,onClick:ft,onCoverLoad:gt,style:xt,videoRef:$t,children:_t,...wt}=_e,Tt=reactExports.useRef(null),Rt=reactExports.useRef(null),It=$t||Rt,[At,jt]=reactExports.useState(!1),[Nt,kt]=reactExports.useState(!0);function Ft(Gt){jt(!0);const Xt=It.current;Xt&&(Xt.ended||Xt.paused?Xt.play():Xt.pause()),ft&&ft(Nt,Gt)}function Ht(){kt(!1)}function Wt(){kt(!0)}const Vt=!At&&!!ct,qt=Vt&&!!ut;return reactExports.useImperativeHandle(et,()=>({wrapperRef:Tt})),jsxRuntimeExports.jsxs("div",{className:clsx$1("Video",`Video--${Nt?"paused":"playing"}`,rt),style:xt,ref:Tt,children:[Vt&&jsxRuntimeExports.jsx("img",{className:"Video-cover",src:ct,onLoad:gt,alt:""}),qt&&jsxRuntimeExports.jsx("span",{className:"Video-duration",children:formatTime(+ut)}),jsxRuntimeExports.jsx("video",{className:"Video-video",src:st,ref:It,hidden:Vt,controls:!0,onPlay:Ht,onPause:Wt,onEnded:Wt,...wt,children:_t}),Vt&&jsxRuntimeExports.jsx("button",{className:clsx$1("Video-playBtn",{paused:Nt}),type:"button",onClick:Ft,children:jsxRuntimeExports.jsx("span",{className:"Video-playIcon"})})]})});const getExtName=_e=>_e.slice((_e.lastIndexOf(".")-1>>>0)+2),UNITS=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],k$3=1024,prettyBytes=(_e,et)=>{if(_e<1)return`${_e} ${UNITS[0]}`;const rt=et||2,st=Math.floor(Math.log(_e)/Math.log(k$3));return`${parseFloat((_e/k$3**st).toFixed(rt))} ${UNITS[st]}`};React$1.forwardRef((_e,et)=>{const{className:rt,file:st,extension:ct,children:ut}=_e,{name:ft,size:gt}=st,xt=ct||getExtName(ft);return jsxRuntimeExports.jsx(Card,{className:clsx$1("FileCard",rt),size:"xl",ref:et,children:jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs("div",{className:"FileCard-icon","data-type":xt,children:[jsxRuntimeExports.jsx(Icon,{type:"file"}),jsxRuntimeExports.jsx(Text,{truncate:!0,as:"span",className:"FileCard-ext",children:xt})]}),jsxRuntimeExports.jsxs(FlexItem,{children:[jsxRuntimeExports.jsx(Text,{truncate:2,breakWord:!0,className:"FileCard-name",children:ft}),jsxRuntimeExports.jsxs("div",{className:"FileCard-meta",children:[gt!=null&&jsxRuntimeExports.jsx("span",{className:"FileCard-size",children:prettyBytes(gt)}),ut]})]})]})})});React$1.forwardRef((_e,et)=>{const rt=useConfig$1(),{className:st,type:ct,img:ut,name:ft,desc:gt,tags:xt=[],locale:$t,currency:_t,price:wt,count:Tt,unit:Rt,action:It,elderMode:At,children:jt,originalPrice:Nt,meta:kt,status:Ft,...Ht}=_e,Wt=At||rt.elderMode,Vt=ct==="order"&&!Wt,qt=ct!=="order"&&!Wt,Gt={currency:_t,locale:$t},Xt=wt!=null&&jsxRuntimeExports.jsx(Price,{price:wt,...Gt}),Zt=jsxRuntimeExports.jsxs("div",{className:"Goods-countUnit",children:[Tt&&jsxRuntimeExports.jsxs("span",{className:"Goods-count",children:["×",Tt]}),Rt&&jsxRuntimeExports.jsx("span",{className:"Goods-unit",children:Rt})]});return jsxRuntimeExports.jsxs(Flex,{className:clsx$1("Goods",st),"data-type":ct,"data-elder-mode":Wt,ref:et,...Ht,children:[ut&&jsxRuntimeExports.jsx("img",{className:"Goods-img",src:ut,alt:ft}),jsxRuntimeExports.jsxs(FlexItem,{className:"Goods-main",children:[qt&&It&&jsxRuntimeExports.jsx(IconButton,{className:"Goods-buyBtn",icon:"cart",...It}),jsxRuntimeExports.jsx(Text,{as:"h4",truncate:Vt?2:!0,className:"Goods-name",children:ft}),jsxRuntimeExports.jsx(Text,{className:"Goods-desc",truncate:Wt,children:gt}),Wt?jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Xt,It&&jsxRuntimeExports.jsx(Button,{size:"sm",...It})]}):jsxRuntimeExports.jsx("div",{className:"Goods-tags",children:xt.map(lr=>jsxRuntimeExports.jsx(Tag,{color:"primary",children:lr.name},lr.name))}),qt&&jsxRuntimeExports.jsxs(Flex,{alignItems:"flex-end",children:[jsxRuntimeExports.jsxs(FlexItem,{children:[Xt,Nt&&jsxRuntimeExports.jsx(Price,{price:Nt,original:!0,...Gt}),kt&&jsxRuntimeExports.jsx("span",{className:"Goods-meta",children:kt})]}),Zt]}),jt]}),Vt&&jsxRuntimeExports.jsxs("div",{className:"Goods-aside",children:[Xt,Zt,jsxRuntimeExports.jsx("span",{className:"Goods-status",children:Ft}),It&&jsxRuntimeExports.jsx(Button,{className:"Goods-detailBtn",...It})]})]})});const BackBottom=({count:_e,onClick:et,onDidMount:rt})=>{const{trans:st}=useLocale$1("BackBottom");let ct=st("bottom");return _e&&(ct=st(_e===1?"newMsgOne":"newMsgOther").replace("{n}",_e)),reactExports.useEffect(()=>{rt&&rt()},[rt]),jsxRuntimeExports.jsx("div",{className:"BackBottom",children:jsxRuntimeExports.jsxs(Button,{className:"slide-in-right-item",onClick:et,children:[ct,jsxRuntimeExports.jsx(Icon,{type:"chevron-double-down"})]})})};function throttle(_e,et=300){let rt=!0;return(...st)=>{rt&&(rt=!1,_e(...st),setTimeout(()=>{rt=!0},et))}}const listenerOpts$1=canUse("passiveListener")?{passive:!0}:!1;function isNearBottom(_e,et){const rt=Math.max(_e.offsetHeight,600);return getToBottom(_e){const{messages:rt,isTyping:st,loadMoreText:ct,onRefresh:ut,onScroll:ft,renderBeforeMessageList:gt,renderMessageContent:xt,onBackBottomShow:$t,onBackBottomClick:_t}=_e,[wt,Tt]=reactExports.useState(!1),[Rt,It]=reactExports.useState(0),At=reactExports.useRef(wt),jt=reactExports.useRef(Rt),Nt=reactExports.useRef(null),kt=reactExports.useRef(null),Ft=rt[rt.length-1],Ht=()=>{It(0),Tt(!1)},Wt=reactExports.useCallback(Xt=>{kt.current&&(!At.current||Xt&&Xt.force)&&(kt.current.scrollToEnd(Xt),At.current&&Ht())},[]),Vt=()=>{Wt({animated:!1,force:!0}),_t&&_t()},qt=reactExports.useRef(throttle(Xt=>{isNearBottom(Xt,3)?jt.current?isNearBottom(Xt,.5)&&Ht():Tt(!1):Tt(!0)})),Gt=Xt=>{qt.current(Xt.target),ft&&ft(Xt)};return reactExports.useEffect(()=>{jt.current=Rt},[Rt]),reactExports.useEffect(()=>{At.current=wt},[wt]),reactExports.useEffect(()=>{const Xt=kt.current,Zt=Xt&&Xt.wrapperRef.current;if(!(!Zt||!Ft||Ft.position==="pop"))if(Ft.position==="right")Wt({force:!0});else if(isNearBottom(Zt,2)){const lr=!!Zt.scrollTop;Wt({animated:lr,force:!0})}else It(lr=>lr+1),Tt(!0)},[Ft,Wt]),reactExports.useEffect(()=>{Wt()},[st,Wt]),reactExports.useEffect(()=>{const Xt=Nt.current;let Zt=!1,lr=0;function er(){Zt=!1,lr=0}function cr(pr){const{activeElement:hr}=document;hr&&hr.nodeName==="TEXTAREA"&&(Zt=!0,lr=pr.touches[0].clientY)}function ur(pr){Zt&&Math.abs(pr.touches[0].clientY-lr)>20&&(document.activeElement.blur(),er())}return Xt.addEventListener("touchstart",cr,listenerOpts$1),Xt.addEventListener("touchmove",ur,listenerOpts$1),Xt.addEventListener("touchend",er),Xt.addEventListener("touchcancel",er),()=>{Xt.removeEventListener("touchstart",cr),Xt.removeEventListener("touchmove",ur),Xt.removeEventListener("touchend",er),Xt.removeEventListener("touchcancel",er)}},[]),reactExports.useImperativeHandle(et,()=>({ref:Nt,scrollToEnd:Wt}),[Wt]),jsxRuntimeExports.jsxs("div",{className:"MessageContainer",ref:Nt,tabIndex:-1,children:[gt&>(),jsxRuntimeExports.jsx(PullToRefresh,{onRefresh:ut,onScroll:Gt,loadMoreText:ct,ref:kt,children:jsxRuntimeExports.jsxs("div",{className:"MessageList",children:[rt.map(Xt=>reactExports.createElement(Message$1,{...Xt,renderMessageContent:xt,key:Xt._id})),st&&jsxRuntimeExports.jsx(Message$1,{type:"typing",_id:"typing"})]})}),wt&&jsxRuntimeExports.jsx(BackBottom,{count:Rt,onClick:Vt,onDidMount:$t})]})}),canPassive=canUse("passiveListener"),listenerOpts=canPassive?{passive:!0}:!1,listenerOptsWithoutPassive=canPassive?{passive:!1}:!1,MOVE_INTERVAL=80,btnTextMap={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let ts=0,startY=0;const Recorder=React$1.forwardRef((_e,et)=>{const{volume:rt,onStart:st,onEnd:ct,onCancel:ut}=_e,[ft,gt]=reactExports.useState("inited"),xt=reactExports.useRef(null),{trans:$t}=useLocale$1("Recorder"),_t=reactExports.useCallback(()=>{const Rt=Date.now()-ts;ct&&ct({duration:Rt})},[ct]);reactExports.useImperativeHandle(et,()=>({stop(){gt("inited"),_t(),ts=0}})),reactExports.useEffect(()=>{const Rt=xt.current;function It(Nt){Nt.cancelable&&Nt.preventDefault(),startY=Nt.touches[0].pageY,ts=Date.now(),gt("recording"),st&&st()}function At(Nt){if(!ts)return;const kt=Nt.touches[0].pageY,Ft=startY-kt>MOVE_INTERVAL;gt(Ft?"willCancel":"recording")}function jt(Nt){if(!ts)return;const kt=Nt.changedTouches[0].pageY,Ft=startY-kt{Rt.removeEventListener("touchstart",It),Rt.removeEventListener("touchmove",At),Rt.removeEventListener("touchend",jt),Rt.removeEventListener("touchcancel",jt)}},[_t,ut,st]);const wt=ft==="willCancel",Tt={transform:`scale(${(rt||1)/100+1})`};return jsxRuntimeExports.jsxs("div",{className:clsx$1("Recorder",{"Recorder--cancel":wt}),ref:xt,children:[ft!=="inited"&&jsxRuntimeExports.jsxs(Flex,{className:"RecorderToast",direction:"column",center:!0,children:[jsxRuntimeExports.jsxs("div",{className:"RecorderToast-waves",hidden:ft!=="recording",style:Tt,children:[jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-1",type:"hexagon"}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-2",type:"hexagon"}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-3",type:"hexagon"})]}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-icon",type:wt?"cancel":"mic"}),jsxRuntimeExports.jsx("span",{children:$t(wt?"release2cancel":"releaseOrSwipe")})]}),jsxRuntimeExports.jsx("div",{className:"Recorder-btn",role:"button","aria-label":$t("hold2talk"),children:jsxRuntimeExports.jsx("span",{children:$t(btnTextMap[ft])})})]})}),AccessoryWrap=({onClickOutside:_e,children:et})=>jsxRuntimeExports.jsx(ClickOutside,{onClick:_e,children:et});function useWindowResize(_e){const et=reactExports.useRef(!1);reactExports.useEffect(()=>{function rt(){_e(),et.current=!1}function st(){et.current||(et.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(rt):setTimeout(rt,66))}return window.addEventListener("resize",st),()=>{window.removeEventListener("resize",st)}},[_e])}const Popover=_e=>{const{className:et,active:rt,target:st,children:ct,onClose:ut}=_e,ft=useClickOutside(ut,"mousedown"),{didMount:gt,isShow:xt}=useMount({active:rt,ref:ft}),[$t,_t]=reactExports.useState({}),wt=reactExports.useCallback(()=>{if(!ft.current)return;const Tt=st.getBoundingClientRect(),Rt=ft.current.getBoundingClientRect();_t({top:`${Tt.top-Rt.height}px`,left:`${Tt.left}px`})},[st,ft]);return reactExports.useEffect(()=>{ft.current&&(ft.current.focus(),wt())},[gt,wt,ft]),useWindowResize(wt),gt?reactDomExports.createPortal(jsxRuntimeExports.jsxs("div",{className:clsx$1("Popover",et,{active:xt}),ref:ft,style:$t,children:[jsxRuntimeExports.jsx("div",{className:"Popover-body",children:ct}),jsxRuntimeExports.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:jsxRuntimeExports.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},Action=_e=>jsxRuntimeExports.jsx("div",{className:"Composer-actions","data-action-icon":_e.icon,children:jsxRuntimeExports.jsx(IconButton,{size:"lg",..._e})}),ToolbarItem=_e=>{const{item:et,onClick:rt}=_e;return jsxRuntimeExports.jsx(Action,{icon:et.icon,img:et.img,"data-icon":et.icon,"data-tooltip":et.title||null,"aria-label":et.title,onClick:rt})},SendConfirm=_e=>{const{file:et,onCancel:rt,onSend:st}=_e,[ct,ut]=reactExports.useState(""),{trans:ft}=useLocale$1("SendConfirm");return reactExports.useEffect(()=>{const gt=new FileReader;gt.onload=xt=>{xt.target&&ut(xt.target.result)},gt.readAsDataURL(et)},[et]),jsxRuntimeExports.jsx(Modal,{className:"SendConfirm",title:ft("title"),active:!!ct,vertical:!1,actions:[{label:ft("cancel"),onClick:rt},{label:ft("send"),color:"primary",onClick:st}],children:jsxRuntimeExports.jsx(Flex,{className:"SendConfirm-inner",center:!0,children:jsxRuntimeExports.jsx("img",{src:ct,alt:""})})})},ua=navigator.userAgent;function isIOS(){return/iPad|iPhone|iPod/.test(ua)}function isSafari(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(ua)}function isSafariOrIOS11(){return ua.includes("Safari/")||/OS 11_[0-3]\D/.test(ua)}function getIOSMajorVersion(){const _e=ua.match(/OS (\d+)_/);return _e?+_e[1]:0}const iOS=isIOS();function testScrollType(){if(iOS){if(isSafariOrIOS11())return 0;if(getIOSMajorVersion()<13)return 1}return 2}function riseInput(_e,et){const rt=testScrollType();let st;const ct=et||_e,ut=()=>{rt!==0&&(rt===1?document.body.scrollTop=document.body.scrollHeight:ct.scrollIntoView(!1))};_e.addEventListener("focus",()=>{setTimeout(ut,300),st=setTimeout(ut,1e3)}),_e.addEventListener("blur",()=>{clearTimeout(st),rt&&iOS&&setTimeout(()=>{document.body.scrollIntoView()})})}function parseDataTransfer(_e,et){const{items:rt}=_e.clipboardData;if(rt&&rt.length)for(let st=0;st{const[ct,ut]=reactExports.useState(null),ft=reactExports.useCallback($t=>{parseDataTransfer($t,ut)},[]),gt=reactExports.useCallback(()=>{ut(null)},[]),xt=reactExports.useCallback(()=>{rt&&ct&&Promise.resolve(rt(ct)).then(()=>{ut(null)})},[rt,ct]);return reactExports.useEffect(()=>{if(canTouch&&_e.current){const $t=document.querySelector(".Composer");riseInput(_e.current,$t)}},[_e]),jsxRuntimeExports.jsxs("div",{className:clsx$1({"S--invisible":et}),children:[jsxRuntimeExports.jsx(Input,{className:"Composer-input",rows:1,autoSize:!0,enterKeyHint:"send",onPaste:rt?ft:void 0,ref:_e,...st}),ct&&jsxRuntimeExports.jsx(SendConfirm,{file:ct,onCancel:gt,onSend:xt})]})},SendButton=({disabled:_e,onClick:et})=>{const{trans:rt}=useLocale$1("Composer");return jsxRuntimeExports.jsx("div",{className:"Composer-actions",children:jsxRuntimeExports.jsx(Button,{className:"Composer-sendBtn",disabled:_e,onMouseDown:et,color:"primary",children:rt("send")})})},CLASS_NAME_FOCUSING="S--focusing",Composer=React$1.forwardRef((_e,et)=>{const{text:rt="",textOnce:st,inputType:ct="text",wideBreakpoint:ut,placeholder:ft="请输入...",recorder:gt={},onInputTypeChange:xt,onFocus:$t,onBlur:_t,onChange:wt,onSend:Tt,onImageSend:Rt,onAccessoryToggle:It,toolbar:At=[],onToolbarClick:jt,rightAction:Nt,inputOptions:kt}=_e,[Ft,Ht]=reactExports.useState(rt),[Wt,Vt]=reactExports.useState(""),[qt,Gt]=reactExports.useState(ft),[Xt,Zt]=reactExports.useState(ct||"text"),[lr,er]=reactExports.useState(!1),[cr,ur]=reactExports.useState(""),pr=reactExports.useRef(null),hr=reactExports.useRef(!1),fr=reactExports.useRef(),dr=reactExports.useRef(),yr=reactExports.useRef(!1),[$r,Er]=reactExports.useState(!1);reactExports.useEffect(()=>{const Dr=ut&&window.matchMedia?window.matchMedia(`(min-width: ${ut})`):!1;function Xr(Kr){Er(Kr.matches)}return Er(Dr&&Dr.matches),Dr&&Dr.addListener(Xr),()=>{Dr&&Dr.removeListener(Xr)}},[ut]),reactExports.useEffect(()=>{toggleClass("S--wide",$r),$r||ur("")},[$r]),reactExports.useEffect(()=>{yr.current&&It&&It(lr)},[lr,It]),reactExports.useEffect(()=>{st?(Vt(st),Gt(st)):(Vt(""),Gt(ft))},[ft,st]),reactExports.useEffect(()=>{yr.current=!0},[]),reactExports.useImperativeHandle(et,()=>({setText:Ht}));const mr=reactExports.useCallback(()=>{const Dr=Xt==="voice",Xr=Dr?"text":"voice";if(Zt(Xr),Dr){const Kr=pr.current;Kr.focus(),Kr.selectionStart=Kr.selectionEnd=Kr.value.length}xt&&xt(Xr)},[Xt,xt]),Sr=reactExports.useCallback(Dr=>{clearTimeout(fr.current),toggleClass(CLASS_NAME_FOCUSING,!0),hr.current=!0,$t&&$t(Dr)},[$t]),Tr=reactExports.useCallback(Dr=>{fr.current=setTimeout(()=>{toggleClass(CLASS_NAME_FOCUSING,!1),hr.current=!1},0),_t&&_t(Dr)},[_t]),jr=reactExports.useCallback(()=>{Ft?(Tt("text",Ft),Ht("")):Wt&&Tt("text",Wt),Wt&&(Vt(""),Gt(ft)),hr.current&&pr.current.focus()},[ft,Tt,Ft,Wt]),Or=reactExports.useCallback(Dr=>{!Dr.shiftKey&&Dr.keyCode===13&&(jr(),Dr.preventDefault())},[jr]),_r=reactExports.useCallback((Dr,Xr)=>{Ht(Dr),wt&&wt(Dr,Xr)},[wt]),Cr=reactExports.useCallback(Dr=>{jr(),Dr.preventDefault()},[jr]),Nr=reactExports.useCallback(()=>{er(!lr)},[lr]),Rr=reactExports.useCallback(()=>{setTimeout(()=>{er(!1),ur("")})},[]),Pr=reactExports.useCallback((Dr,Xr)=>{jt&&jt(Dr,Xr),Dr.render&&(dr.current=Xr.currentTarget,ur(Dr.render))},[jt]),Mr=reactExports.useCallback(()=>{ur("")},[]),kr=Xt==="text",Fr=kr?"volume-circle":"keyboard-circle",wr=At.length>0,Br={...kt,value:Ft,inputRef:pr,placeholder:qt,onFocus:Sr,onBlur:Tr,onKeyDown:Or,onChange:_r,onImageSend:Rt};return $r?jsxRuntimeExports.jsxs("div",{className:"Composer Composer--lg",children:[wr&&At.map(Dr=>jsxRuntimeExports.jsx(ToolbarItem,{item:Dr,onClick:Xr=>Pr(Dr,Xr)},Dr.type)),cr&&jsxRuntimeExports.jsx(Popover,{active:!!cr,target:dr.current,onClose:Mr,children:cr}),jsxRuntimeExports.jsx("div",{className:"Composer-inputWrap",children:jsxRuntimeExports.jsx(ComposerInput,{invisible:!1,...Br})}),jsxRuntimeExports.jsx(SendButton,{onClick:Cr,disabled:!Ft})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"Composer",children:[gt.canRecord&&jsxRuntimeExports.jsx(Action,{className:"Composer-inputTypeBtn","data-icon":Fr,icon:Fr,onClick:mr,"aria-label":kr?"切换到语音输入":"切换到键盘输入"}),jsxRuntimeExports.jsxs("div",{className:"Composer-inputWrap",children:[jsxRuntimeExports.jsx(ComposerInput,{invisible:!kr,...Br}),!kr&&jsxRuntimeExports.jsx(Recorder,{...gt})]}),!Ft&&Nt&&jsxRuntimeExports.jsx(Action,{...Nt}),wr&&jsxRuntimeExports.jsx(Action,{className:clsx$1("Composer-toggleBtn",{active:lr}),icon:"plus-circle",onClick:Nr,"aria-label":lr?"关闭工具栏":"展开工具栏"}),(Ft||Wt)&&jsxRuntimeExports.jsx(SendButton,{onClick:Cr,disabled:!1})]}),lr&&jsxRuntimeExports.jsx(AccessoryWrap,{onClickOutside:Rr,children:cr||jsxRuntimeExports.jsx(Toolbar,{items:At,onClick:Pr})})]})}),Chat=React$1.forwardRef((_e,et)=>{const{wideBreakpoint:rt,locale:st="zh-CN",locales:ct,elderMode:ut,navbar:ft,renderNavbar:gt,loadMoreText:xt,renderBeforeMessageList:$t,messagesRef:_t,onRefresh:wt,onScroll:Tt,messages:Rt=[],isTyping:It,renderMessageContent:At,onBackBottomShow:jt,onBackBottomClick:Nt,quickReplies:kt=[],quickRepliesVisible:Ft,onQuickReplyClick:Ht=()=>{},onQuickReplyScroll:Wt,renderQuickReplies:Vt,text:qt,textOnce:Gt,placeholder:Xt,onInputFocus:Zt,onInputChange:lr,onInputBlur:er,onSend:cr,onImageSend:ur,inputOptions:pr,composerRef:hr,inputType:fr,onInputTypeChange:dr,recorder:yr,toolbar:$r,onToolbarClick:Er,onAccessoryToggle:mr,rightAction:Sr,Composer:Tr=Composer}=_e;function jr(Or){_t&&_t.current&&_t.current.scrollToEnd({animated:!1,force:!0}),Zt&&Zt(Or)}return reactExports.useEffect(()=>{const Or=document.documentElement;isSafari()&&(Or.dataset.safari="");const _r=getIOSMajorVersion();_r&&_r<11&&(Or.dataset.oldIos="")},[]),jsxRuntimeExports.jsx(ConfigProvider,{locale:st,locales:ct,elderMode:ut,children:jsxRuntimeExports.jsxs("div",{className:"ChatApp","data-elder-mode":ut,ref:et,children:[gt?gt():ft&&jsxRuntimeExports.jsx(Navbar,{...ft}),jsxRuntimeExports.jsx(MessageContainer,{ref:_t,loadMoreText:xt,messages:Rt,isTyping:It,renderBeforeMessageList:$t,renderMessageContent:At,onRefresh:wt,onScroll:Tt,onBackBottomShow:jt,onBackBottomClick:Nt}),jsxRuntimeExports.jsxs("div",{className:"ChatFooter",children:[Vt?Vt():jsxRuntimeExports.jsx(QuickReplies$1,{items:kt,visible:Ft,onClick:Ht,onScroll:Wt}),jsxRuntimeExports.jsx(Tr,{wideBreakpoint:rt,ref:hr,inputType:fr,text:qt,textOnce:Gt,inputOptions:pr,placeholder:Xt,onAccessoryToggle:mr,recorder:yr,toolbar:$r,onToolbarClick:Er,onInputTypeChange:dr,onFocus:jr,onChange:lr,onBlur:er,onSend:cr,onImageSend:ur,rightAction:Sr})]})]})})});var hs=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,Dg=Object.getOwnPropertyNames,jg=Object.prototype.hasOwnProperty,be$1=(_e,et)=>()=>(_e&&(et=_e(_e=0)),et),M$1=(_e,et)=>()=>(et||_e((et={exports:{}}).exports,et),et.exports),Qt=(_e,et)=>{for(var rt in et)hs(_e,rt,{get:et[rt],enumerable:!0})},Fg=(_e,et,rt,st)=>{if(et&&typeof et=="object"||typeof et=="function")for(let ct of Dg(et))!jg.call(_e,ct)&&ct!==rt&&hs(_e,ct,{get:()=>et[ct],enumerable:!(st=qg(et,ct))||st.enumerable});return _e},Z=_e=>Fg(hs({},"__esModule",{value:!0}),_e),_$2=be$1(()=>{}),B$2={};Qt(B$2,{_debugEnd:()=>pu,_debugProcess:()=>du,_events:()=>Pu,_eventsCount:()=>Ou,_exiting:()=>Gl,_fatalExceptions:()=>uu,_getActiveHandles:()=>Xl,_getActiveRequests:()=>Jl,_kill:()=>eu,_linkedBinding:()=>zl,_maxListeners:()=>Bu,_preload_modules:()=>Tu,_rawDebug:()=>Hl,_startProfilerIdleNotifier:()=>gu,_stopProfilerIdleNotifier:()=>yu,_tickCallback:()=>hu,abort:()=>mu,addListener:()=>xu,allowedNodeEnvironmentFlags:()=>ou,arch:()=>Ol,argv:()=>Ml,argv0:()=>Iu,assert:()=>au,binding:()=>Dl,chdir:()=>Wl,config:()=>Ql,cpuUsage:()=>qi,cwd:()=>Fl,debugPort:()=>Au,default:()=>Fu,dlopen:()=>Yl,domain:()=>Kl,emit:()=>Nu,emitWarning:()=>ql,env:()=>kl,execArgv:()=>Ll,execPath:()=>Su,exit:()=>nu,features:()=>lu,hasUncaughtExceptionCaptureCallback:()=>cu,hrtime:()=>Ni,kill:()=>iu,listeners:()=>ju,memoryUsage:()=>ru,moduleLoadList:()=>Vl,nextTick:()=>Cl,off:()=>Mu,on:()=>bt,once:()=>ku,openStdin:()=>su,pid:()=>vu,platform:()=>xl,ppid:()=>Eu,prependListener:()=>qu,prependOnceListener:()=>Du,reallyExit:()=>Zl,release:()=>$l,removeAllListeners:()=>Uu,removeListener:()=>Lu,resourceUsage:()=>tu,setSourceMapsEnabled:()=>Ru,setUncaughtExceptionCaptureCallback:()=>fu,stderr:()=>wu,stdin:()=>_u,stdout:()=>bu,title:()=>Pl,umask:()=>jl,uptime:()=>Cu,version:()=>Ul,versions:()=>Nl});function gs(_e){throw new Error("Node.js process "+_e+" is not supported by JSPM core outside of Node.js")}function Wg(){!xr||!Yt||(xr=!1,Yt.length?yt=Yt.concat(yt):Ui=-1,yt.length&&Rl())}function Rl(){if(!xr){var _e=setTimeout(Wg,0);xr=!0;for(var et=yt.length;et;){for(Yt=yt,yt=[];++Ui1)for(var rt=1;rt{_$2(),v$1(),m$1(),yt=[],xr=!1,Ui=-1,Bl.prototype.run=function(){this.fun.apply(null,this.array)},Pl="browser",Ol="x64",xl="browser",kl={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ml=["/usr/bin/node"],Ll=[],Ul="v16.8.0",Nl={},ql=function(_e,et){console.warn((et?et+": ":"")+_e)},Dl=function(_e){gs("binding")},jl=function(_e){return 0},Fl=function(){return"/"},Wl=function(_e){},$l={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Hl=me,Vl=[],Kl={},Gl=!1,Ql={},Zl=me,eu=me,qi=function(){return{}},tu=qi,ru=qi,iu=me,nu=me,su=me,ou={},lu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},uu=me,fu=me,hu=me,du=me,pu=me,gu=me,yu=me,bu=void 0,wu=void 0,_u=void 0,mu=me,vu=2,Eu=1,Su="/bin/usr/node",Au=9229,Iu="node",Tu=[],Ru=me,Mt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Mt.now===void 0&&(ds=Date.now(),Mt.timing&&Mt.timing.navigationStart&&(ds=Mt.timing.navigationStart),Mt.now=()=>Date.now()-ds),ps=1e9,Ni.bigint=function(_e){var et=Ni(_e);return typeof BigInt>"u"?et[0]*ps+et[1]:BigInt(et[0]*ps)+BigInt(et[1])},Bu=10,Pu={},Ou=0,xu=bt,ku=bt,Mu=bt,Lu=bt,Uu=bt,Nu=me,qu=bt,Du=bt,Fu={version:Ul,versions:Nl,arch:Ol,platform:xl,release:$l,_rawDebug:Hl,moduleLoadList:Vl,binding:Dl,_linkedBinding:zl,_events:Pu,_eventsCount:Ou,_maxListeners:Bu,on:bt,addListener:xu,once:ku,off:Mu,removeListener:Lu,removeAllListeners:Uu,emit:Nu,prependListener:qu,prependOnceListener:Du,listeners:ju,domain:Kl,_exiting:Gl,config:Ql,dlopen:Yl,uptime:Cu,_getActiveRequests:Jl,_getActiveHandles:Xl,reallyExit:Zl,_kill:eu,cpuUsage:qi,resourceUsage:tu,memoryUsage:ru,kill:iu,exit:nu,openStdin:su,allowedNodeEnvironmentFlags:ou,assert:au,features:lu,_fatalExceptions:uu,setUncaughtExceptionCaptureCallback:fu,hasUncaughtExceptionCaptureCallback:cu,emitWarning:ql,nextTick:Cl,_tickCallback:hu,_debugProcess:du,_debugEnd:pu,_startProfilerIdleNotifier:gu,_stopProfilerIdleNotifier:yu,stdout:bu,stdin:_u,stderr:wu,abort:mu,umask:jl,chdir:Wl,cwd:Fl,env:kl,title:Pl,argv:Ml,execArgv:Ll,pid:vu,ppid:Eu,execPath:Su,debugPort:Au,hrtime:Ni,argv0:Iu,_preload_modules:Tu,setSourceMapsEnabled:Ru}}),m$1=be$1(()=>{Wu()}),ve={};Qt(ve,{Buffer:()=>x$1,INSPECT_MAX_BYTES:()=>zg,default:()=>Lt,kMaxLength:()=>Kg});function $g(){if($u)return li;$u=!0,li.byteLength=gt,li.toByteArray=$t,li.fromByteArray=Tt;for(var _e=[],et=[],rt=typeof Uint8Array<"u"?Uint8Array:Array,st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ct=0,ut=st.length;ct0)throw new Error("Invalid string. Length must be a multiple of 4");var At=Rt.indexOf("=");At===-1&&(At=It);var jt=At===It?0:4-At%4;return[At,jt]}function gt(Rt){var It=ft(Rt),At=It[0],jt=It[1];return(At+jt)*3/4-jt}function xt(Rt,It,At){return(It+At)*3/4-At}function $t(Rt){var It,At=ft(Rt),jt=At[0],Nt=At[1],kt=new rt(xt(Rt,jt,Nt)),Ft=0,Ht=Nt>0?jt-4:jt,Wt;for(Wt=0;Wt>16&255,kt[Ft++]=It>>8&255,kt[Ft++]=It&255;return Nt===2&&(It=et[Rt.charCodeAt(Wt)]<<2|et[Rt.charCodeAt(Wt+1)]>>4,kt[Ft++]=It&255),Nt===1&&(It=et[Rt.charCodeAt(Wt)]<<10|et[Rt.charCodeAt(Wt+1)]<<4|et[Rt.charCodeAt(Wt+2)]>>2,kt[Ft++]=It>>8&255,kt[Ft++]=It&255),kt}function _t(Rt){return _e[Rt>>18&63]+_e[Rt>>12&63]+_e[Rt>>6&63]+_e[Rt&63]}function wt(Rt,It,At){for(var jt,Nt=[],kt=It;ktHt?Ht:Ft+kt));return jt===1?(It=Rt[At-1],Nt.push(_e[It>>2]+_e[It<<4&63]+"==")):jt===2&&(It=(Rt[At-2]<<8)+Rt[At-1],Nt.push(_e[It>>10]+_e[It>>4&63]+_e[It<<2&63]+"=")),Nt.join("")}return li}function Hg(){return Hu?Di:(Hu=!0,Di.read=function(_e,et,rt,st,ct){var ut,ft,gt=ct*8-st-1,xt=(1<>1,_t=-7,wt=rt?ct-1:0,Tt=rt?-1:1,Rt=_e[et+wt];for(wt+=Tt,ut=Rt&(1<<-_t)-1,Rt>>=-_t,_t+=gt;_t>0;ut=ut*256+_e[et+wt],wt+=Tt,_t-=8);for(ft=ut&(1<<-_t)-1,ut>>=-_t,_t+=st;_t>0;ft=ft*256+_e[et+wt],wt+=Tt,_t-=8);if(ut===0)ut=1-$t;else{if(ut===xt)return ft?NaN:(Rt?-1:1)*(1/0);ft=ft+Math.pow(2,st),ut=ut-$t}return(Rt?-1:1)*ft*Math.pow(2,ut-st)},Di.write=function(_e,et,rt,st,ct,ut){var ft,gt,xt,$t=ut*8-ct-1,_t=(1<<$t)-1,wt=_t>>1,Tt=ct===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rt=st?0:ut-1,It=st?1:-1,At=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(gt=isNaN(et)?1:0,ft=_t):(ft=Math.floor(Math.log(et)/Math.LN2),et*(xt=Math.pow(2,-ft))<1&&(ft--,xt*=2),ft+wt>=1?et+=Tt/xt:et+=Tt*Math.pow(2,1-wt),et*xt>=2&&(ft++,xt/=2),ft+wt>=_t?(gt=0,ft=_t):ft+wt>=1?(gt=(et*xt-1)*Math.pow(2,ct),ft=ft+wt):(gt=et*Math.pow(2,wt-1)*Math.pow(2,ct),ft=0));ct>=8;_e[rt+Rt]=gt&255,Rt+=It,gt/=256,ct-=8);for(ft=ft<0;_e[rt+Rt]=ft&255,Rt+=It,ft/=256,$t-=8);_e[rt+Rt-It]|=At*128},Di)}function Vg(){if(Vu)return Jt;Vu=!0;let _e=$g(),et=Hg(),rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Jt.Buffer=ft,Jt.SlowBuffer=Nt,Jt.INSPECT_MAX_BYTES=50;let st=2147483647;Jt.kMaxLength=st,ft.TYPED_ARRAY_SUPPORT=ct(),!ft.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 ct(){try{let vr=new Uint8Array(1),gr={foo:function(){return 42}};return Object.setPrototypeOf(gr,Uint8Array.prototype),Object.setPrototypeOf(vr,gr),vr.foo()===42}catch{return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function ut(vr){if(vr>st)throw new RangeError('The value "'+vr+'" is invalid for option "size"');let gr=new Uint8Array(vr);return Object.setPrototypeOf(gr,ft.prototype),gr}function ft(vr,gr,br){if(typeof vr=="number"){if(typeof gr=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _t(vr)}return gt(vr,gr,br)}ft.poolSize=8192;function gt(vr,gr,br){if(typeof vr=="string")return wt(vr,gr);if(ArrayBuffer.isView(vr))return Rt(vr);if(vr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vr);if(qr(vr,ArrayBuffer)||vr&&qr(vr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(qr(vr,SharedArrayBuffer)||vr&&qr(vr.buffer,SharedArrayBuffer)))return It(vr,gr,br);if(typeof vr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Hr=vr.valueOf&&vr.valueOf();if(Hr!=null&&Hr!==vr)return ft.from(Hr,gr,br);let Vr=At(vr);if(Vr)return Vr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof vr[Symbol.toPrimitive]=="function")return ft.from(vr[Symbol.toPrimitive]("string"),gr,br);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vr)}ft.from=function(vr,gr,br){return gt(vr,gr,br)},Object.setPrototypeOf(ft.prototype,Uint8Array.prototype),Object.setPrototypeOf(ft,Uint8Array);function xt(vr){if(typeof vr!="number")throw new TypeError('"size" argument must be of type number');if(vr<0)throw new RangeError('The value "'+vr+'" is invalid for option "size"')}function $t(vr,gr,br){return xt(vr),vr<=0?ut(vr):gr!==void 0?typeof br=="string"?ut(vr).fill(gr,br):ut(vr).fill(gr):ut(vr)}ft.alloc=function(vr,gr,br){return $t(vr,gr,br)};function _t(vr){return xt(vr),ut(vr<0?0:jt(vr)|0)}ft.allocUnsafe=function(vr){return _t(vr)},ft.allocUnsafeSlow=function(vr){return _t(vr)};function wt(vr,gr){if((typeof gr!="string"||gr==="")&&(gr="utf8"),!ft.isEncoding(gr))throw new TypeError("Unknown encoding: "+gr);let br=kt(vr,gr)|0,Hr=ut(br),Vr=Hr.write(vr,gr);return Vr!==br&&(Hr=Hr.slice(0,Vr)),Hr}function Tt(vr){let gr=vr.length<0?0:jt(vr.length)|0,br=ut(gr);for(let Hr=0;Hr=st)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+st.toString(16)+" bytes");return vr|0}function Nt(vr){return+vr!=vr&&(vr=0),ft.alloc(+vr)}ft.isBuffer=function(vr){return vr!=null&&vr._isBuffer===!0&&vr!==ft.prototype},ft.compare=function(vr,gr){if(qr(vr,Uint8Array)&&(vr=ft.from(vr,vr.offset,vr.byteLength)),qr(gr,Uint8Array)&&(gr=ft.from(gr,gr.offset,gr.byteLength)),!ft.isBuffer(vr)||!ft.isBuffer(gr))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(vr===gr)return 0;let br=vr.length,Hr=gr.length;for(let Vr=0,Wr=Math.min(br,Hr);VrHr.length?(ft.isBuffer(Wr)||(Wr=ft.from(Wr)),Wr.copy(Hr,Vr)):Uint8Array.prototype.set.call(Hr,Wr,Vr);else if(ft.isBuffer(Wr))Wr.copy(Hr,Vr);else throw new TypeError('"list" argument must be an Array of Buffers');Vr+=Wr.length}return Hr};function kt(vr,gr){if(ft.isBuffer(vr))return vr.length;if(ArrayBuffer.isView(vr)||qr(vr,ArrayBuffer))return vr.byteLength;if(typeof vr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof vr);let br=vr.length,Hr=arguments.length>2&&arguments[2]===!0;if(!Hr&&br===0)return 0;let Vr=!1;for(;;)switch(gr){case"ascii":case"latin1":case"binary":return br;case"utf8":case"utf-8":return Br(vr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br*2;case"hex":return br>>>1;case"base64":return Kr(vr).length;default:if(Vr)return Hr?-1:Br(vr).length;gr=(""+gr).toLowerCase(),Vr=!0}}ft.byteLength=kt;function Ft(vr,gr,br){let Hr=!1;if((gr===void 0||gr<0)&&(gr=0),gr>this.length||((br===void 0||br>this.length)&&(br=this.length),br<=0)||(br>>>=0,gr>>>=0,br<=gr))return"";for(vr||(vr="utf8");;)switch(vr){case"hex":return dr(this,gr,br);case"utf8":case"utf-8":return cr(this,gr,br);case"ascii":return hr(this,gr,br);case"latin1":case"binary":return fr(this,gr,br);case"base64":return er(this,gr,br);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(this,gr,br);default:if(Hr)throw new TypeError("Unknown encoding: "+vr);vr=(vr+"").toLowerCase(),Hr=!0}}ft.prototype._isBuffer=!0;function Ht(vr,gr,br){let Hr=vr[gr];vr[gr]=vr[br],vr[br]=Hr}ft.prototype.swap16=function(){let vr=this.length;if(vr%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let gr=0;grgr&&(vr+=" ... "),""},rt&&(ft.prototype[rt]=ft.prototype.inspect),ft.prototype.compare=function(vr,gr,br,Hr,Vr){if(qr(vr,Uint8Array)&&(vr=ft.from(vr,vr.offset,vr.byteLength)),!ft.isBuffer(vr))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof vr);if(gr===void 0&&(gr=0),br===void 0&&(br=vr?vr.length:0),Hr===void 0&&(Hr=0),Vr===void 0&&(Vr=this.length),gr<0||br>vr.length||Hr<0||Vr>this.length)throw new RangeError("out of range index");if(Hr>=Vr&&gr>=br)return 0;if(Hr>=Vr)return-1;if(gr>=br)return 1;if(gr>>>=0,br>>>=0,Hr>>>=0,Vr>>>=0,this===vr)return 0;let Wr=Vr-Hr,Gr=br-gr,cn=Math.min(Wr,Gr),mn=this.slice(Hr,Vr),hn=vr.slice(gr,br);for(let En=0;En2147483647?br=2147483647:br<-2147483648&&(br=-2147483648),br=+br,pn(br)&&(br=Vr?0:vr.length-1),br<0&&(br=vr.length+br),br>=vr.length){if(Vr)return-1;br=vr.length-1}else if(br<0)if(Vr)br=0;else return-1;if(typeof gr=="string"&&(gr=ft.from(gr,Hr)),ft.isBuffer(gr))return gr.length===0?-1:Vt(vr,gr,br,Hr,Vr);if(typeof gr=="number")return gr=gr&255,typeof Uint8Array.prototype.indexOf=="function"?Vr?Uint8Array.prototype.indexOf.call(vr,gr,br):Uint8Array.prototype.lastIndexOf.call(vr,gr,br):Vt(vr,[gr],br,Hr,Vr);throw new TypeError("val must be string, number or Buffer")}function Vt(vr,gr,br,Hr,Vr){let Wr=1,Gr=vr.length,cn=gr.length;if(Hr!==void 0&&(Hr=String(Hr).toLowerCase(),Hr==="ucs2"||Hr==="ucs-2"||Hr==="utf16le"||Hr==="utf-16le")){if(vr.length<2||gr.length<2)return-1;Wr=2,Gr/=2,cn/=2,br/=2}function mn(En,Rn){return Wr===1?En[Rn]:En.readUInt16BE(Rn*Wr)}let hn;if(Vr){let En=-1;for(hn=br;hnGr&&(br=Gr-cn),hn=br;hn>=0;hn--){let En=!0;for(let Rn=0;RnVr&&(Hr=Vr)):Hr=Vr;let Wr=gr.length;Hr>Wr/2&&(Hr=Wr/2);let Gr;for(Gr=0;Gr>>0,isFinite(br)?(br=br>>>0,Hr===void 0&&(Hr="utf8")):(Hr=br,br=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Vr=this.length-gr;if((br===void 0||br>Vr)&&(br=Vr),vr.length>0&&(br<0||gr<0)||gr>this.length)throw new RangeError("Attempt to write outside buffer bounds");Hr||(Hr="utf8");let Wr=!1;for(;;)switch(Hr){case"hex":return qt(this,vr,gr,br);case"utf8":case"utf-8":return Gt(this,vr,gr,br);case"ascii":case"latin1":case"binary":return Xt(this,vr,gr,br);case"base64":return Zt(this,vr,gr,br);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lr(this,vr,gr,br);default:if(Wr)throw new TypeError("Unknown encoding: "+Hr);Hr=(""+Hr).toLowerCase(),Wr=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function er(vr,gr,br){return gr===0&&br===vr.length?_e.fromByteArray(vr):_e.fromByteArray(vr.slice(gr,br))}function cr(vr,gr,br){br=Math.min(vr.length,br);let Hr=[],Vr=gr;for(;Vr239?4:Wr>223?3:Wr>191?2:1;if(Vr+cn<=br){let mn,hn,En,Rn;switch(cn){case 1:Wr<128&&(Gr=Wr);break;case 2:mn=vr[Vr+1],(mn&192)===128&&(Rn=(Wr&31)<<6|mn&63,Rn>127&&(Gr=Rn));break;case 3:mn=vr[Vr+1],hn=vr[Vr+2],(mn&192)===128&&(hn&192)===128&&(Rn=(Wr&15)<<12|(mn&63)<<6|hn&63,Rn>2047&&(Rn<55296||Rn>57343)&&(Gr=Rn));break;case 4:mn=vr[Vr+1],hn=vr[Vr+2],En=vr[Vr+3],(mn&192)===128&&(hn&192)===128&&(En&192)===128&&(Rn=(Wr&15)<<18|(mn&63)<<12|(hn&63)<<6|En&63,Rn>65535&&Rn<1114112&&(Gr=Rn))}}Gr===null?(Gr=65533,cn=1):Gr>65535&&(Gr-=65536,Hr.push(Gr>>>10&1023|55296),Gr=56320|Gr&1023),Hr.push(Gr),Vr+=cn}return pr(Hr)}let ur=4096;function pr(vr){let gr=vr.length;if(gr<=ur)return String.fromCharCode.apply(String,vr);let br="",Hr=0;for(;HrHr)&&(br=Hr);let Vr="";for(let Wr=gr;Wrbr&&(vr=br),gr<0?(gr+=br,gr<0&&(gr=0)):gr>br&&(gr=br),grbr)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUintLE=ft.prototype.readUIntLE=function(vr,gr,br){vr=vr>>>0,gr=gr>>>0,br||$r(vr,gr,this.length);let Hr=this[vr],Vr=1,Wr=0;for(;++Wr>>0,gr=gr>>>0,br||$r(vr,gr,this.length);let Hr=this[vr+--gr],Vr=1;for(;gr>0&&(Vr*=256);)Hr+=this[vr+--gr]*Vr;return Hr},ft.prototype.readUint8=ft.prototype.readUInt8=function(vr,gr){return vr=vr>>>0,gr||$r(vr,1,this.length),this[vr]},ft.prototype.readUint16LE=ft.prototype.readUInt16LE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,2,this.length),this[vr]|this[vr+1]<<8},ft.prototype.readUint16BE=ft.prototype.readUInt16BE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,2,this.length),this[vr]<<8|this[vr+1]},ft.prototype.readUint32LE=ft.prototype.readUInt32LE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,4,this.length),(this[vr]|this[vr+1]<<8|this[vr+2]<<16)+this[vr+3]*16777216},ft.prototype.readUint32BE=ft.prototype.readUInt32BE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,4,this.length),this[vr]*16777216+(this[vr+1]<<16|this[vr+2]<<8|this[vr+3])},ft.prototype.readBigUInt64LE=Zr(function(vr){vr=vr>>>0,Mr(vr,"offset");let gr=this[vr],br=this[vr+7];(gr===void 0||br===void 0)&&kr(vr,this.length-8);let Hr=gr+this[++vr]*2**8+this[++vr]*2**16+this[++vr]*2**24,Vr=this[++vr]+this[++vr]*2**8+this[++vr]*2**16+br*2**24;return BigInt(Hr)+(BigInt(Vr)<>>0,Mr(vr,"offset");let gr=this[vr],br=this[vr+7];(gr===void 0||br===void 0)&&kr(vr,this.length-8);let Hr=gr*2**24+this[++vr]*2**16+this[++vr]*2**8+this[++vr],Vr=this[++vr]*2**24+this[++vr]*2**16+this[++vr]*2**8+br;return(BigInt(Hr)<>>0,gr=gr>>>0,br||$r(vr,gr,this.length);let Hr=this[vr],Vr=1,Wr=0;for(;++Wr=Vr&&(Hr-=Math.pow(2,8*gr)),Hr},ft.prototype.readIntBE=function(vr,gr,br){vr=vr>>>0,gr=gr>>>0,br||$r(vr,gr,this.length);let Hr=gr,Vr=1,Wr=this[vr+--Hr];for(;Hr>0&&(Vr*=256);)Wr+=this[vr+--Hr]*Vr;return Vr*=128,Wr>=Vr&&(Wr-=Math.pow(2,8*gr)),Wr},ft.prototype.readInt8=function(vr,gr){return vr=vr>>>0,gr||$r(vr,1,this.length),this[vr]&128?(255-this[vr]+1)*-1:this[vr]},ft.prototype.readInt16LE=function(vr,gr){vr=vr>>>0,gr||$r(vr,2,this.length);let br=this[vr]|this[vr+1]<<8;return br&32768?br|4294901760:br},ft.prototype.readInt16BE=function(vr,gr){vr=vr>>>0,gr||$r(vr,2,this.length);let br=this[vr+1]|this[vr]<<8;return br&32768?br|4294901760:br},ft.prototype.readInt32LE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,4,this.length),this[vr]|this[vr+1]<<8|this[vr+2]<<16|this[vr+3]<<24},ft.prototype.readInt32BE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,4,this.length),this[vr]<<24|this[vr+1]<<16|this[vr+2]<<8|this[vr+3]},ft.prototype.readBigInt64LE=Zr(function(vr){vr=vr>>>0,Mr(vr,"offset");let gr=this[vr],br=this[vr+7];(gr===void 0||br===void 0)&&kr(vr,this.length-8);let Hr=this[vr+4]+this[vr+5]*2**8+this[vr+6]*2**16+(br<<24);return(BigInt(Hr)<>>0,Mr(vr,"offset");let gr=this[vr],br=this[vr+7];(gr===void 0||br===void 0)&&kr(vr,this.length-8);let Hr=(gr<<24)+this[++vr]*2**16+this[++vr]*2**8+this[++vr];return(BigInt(Hr)<>>0,gr||$r(vr,4,this.length),et.read(this,vr,!0,23,4)},ft.prototype.readFloatBE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,4,this.length),et.read(this,vr,!1,23,4)},ft.prototype.readDoubleLE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,8,this.length),et.read(this,vr,!0,52,8)},ft.prototype.readDoubleBE=function(vr,gr){return vr=vr>>>0,gr||$r(vr,8,this.length),et.read(this,vr,!1,52,8)};function Er(vr,gr,br,Hr,Vr,Wr){if(!ft.isBuffer(vr))throw new TypeError('"buffer" argument must be a Buffer instance');if(gr>Vr||grvr.length)throw new RangeError("Index out of range")}ft.prototype.writeUintLE=ft.prototype.writeUIntLE=function(vr,gr,br,Hr){if(vr=+vr,gr=gr>>>0,br=br>>>0,!Hr){let Gr=Math.pow(2,8*br)-1;Er(this,vr,gr,br,Gr,0)}let Vr=1,Wr=0;for(this[gr]=vr&255;++Wr>>0,br=br>>>0,!Hr){let Gr=Math.pow(2,8*br)-1;Er(this,vr,gr,br,Gr,0)}let Vr=br-1,Wr=1;for(this[gr+Vr]=vr&255;--Vr>=0&&(Wr*=256);)this[gr+Vr]=vr/Wr&255;return gr+br},ft.prototype.writeUint8=ft.prototype.writeUInt8=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,1,255,0),this[gr]=vr&255,gr+1},ft.prototype.writeUint16LE=ft.prototype.writeUInt16LE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,2,65535,0),this[gr]=vr&255,this[gr+1]=vr>>>8,gr+2},ft.prototype.writeUint16BE=ft.prototype.writeUInt16BE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,2,65535,0),this[gr]=vr>>>8,this[gr+1]=vr&255,gr+2},ft.prototype.writeUint32LE=ft.prototype.writeUInt32LE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,4,4294967295,0),this[gr+3]=vr>>>24,this[gr+2]=vr>>>16,this[gr+1]=vr>>>8,this[gr]=vr&255,gr+4},ft.prototype.writeUint32BE=ft.prototype.writeUInt32BE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,4,4294967295,0),this[gr]=vr>>>24,this[gr+1]=vr>>>16,this[gr+2]=vr>>>8,this[gr+3]=vr&255,gr+4};function mr(vr,gr,br,Hr,Vr){Pr(gr,Hr,Vr,vr,br,7);let Wr=Number(gr&BigInt(4294967295));vr[br++]=Wr,Wr=Wr>>8,vr[br++]=Wr,Wr=Wr>>8,vr[br++]=Wr,Wr=Wr>>8,vr[br++]=Wr;let Gr=Number(gr>>BigInt(32)&BigInt(4294967295));return vr[br++]=Gr,Gr=Gr>>8,vr[br++]=Gr,Gr=Gr>>8,vr[br++]=Gr,Gr=Gr>>8,vr[br++]=Gr,br}function Sr(vr,gr,br,Hr,Vr){Pr(gr,Hr,Vr,vr,br,7);let Wr=Number(gr&BigInt(4294967295));vr[br+7]=Wr,Wr=Wr>>8,vr[br+6]=Wr,Wr=Wr>>8,vr[br+5]=Wr,Wr=Wr>>8,vr[br+4]=Wr;let Gr=Number(gr>>BigInt(32)&BigInt(4294967295));return vr[br+3]=Gr,Gr=Gr>>8,vr[br+2]=Gr,Gr=Gr>>8,vr[br+1]=Gr,Gr=Gr>>8,vr[br]=Gr,br+8}ft.prototype.writeBigUInt64LE=Zr(function(vr,gr=0){return mr(this,vr,gr,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeBigUInt64BE=Zr(function(vr,gr=0){return Sr(this,vr,gr,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeIntLE=function(vr,gr,br,Hr){if(vr=+vr,gr=gr>>>0,!Hr){let cn=Math.pow(2,8*br-1);Er(this,vr,gr,br,cn-1,-cn)}let Vr=0,Wr=1,Gr=0;for(this[gr]=vr&255;++Vr>0)-Gr&255;return gr+br},ft.prototype.writeIntBE=function(vr,gr,br,Hr){if(vr=+vr,gr=gr>>>0,!Hr){let cn=Math.pow(2,8*br-1);Er(this,vr,gr,br,cn-1,-cn)}let Vr=br-1,Wr=1,Gr=0;for(this[gr+Vr]=vr&255;--Vr>=0&&(Wr*=256);)vr<0&&Gr===0&&this[gr+Vr+1]!==0&&(Gr=1),this[gr+Vr]=(vr/Wr>>0)-Gr&255;return gr+br},ft.prototype.writeInt8=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,1,127,-128),vr<0&&(vr=255+vr+1),this[gr]=vr&255,gr+1},ft.prototype.writeInt16LE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,2,32767,-32768),this[gr]=vr&255,this[gr+1]=vr>>>8,gr+2},ft.prototype.writeInt16BE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,2,32767,-32768),this[gr]=vr>>>8,this[gr+1]=vr&255,gr+2},ft.prototype.writeInt32LE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,4,2147483647,-2147483648),this[gr]=vr&255,this[gr+1]=vr>>>8,this[gr+2]=vr>>>16,this[gr+3]=vr>>>24,gr+4},ft.prototype.writeInt32BE=function(vr,gr,br){return vr=+vr,gr=gr>>>0,br||Er(this,vr,gr,4,2147483647,-2147483648),vr<0&&(vr=4294967295+vr+1),this[gr]=vr>>>24,this[gr+1]=vr>>>16,this[gr+2]=vr>>>8,this[gr+3]=vr&255,gr+4},ft.prototype.writeBigInt64LE=Zr(function(vr,gr=0){return mr(this,vr,gr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ft.prototype.writeBigInt64BE=Zr(function(vr,gr=0){return Sr(this,vr,gr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Tr(vr,gr,br,Hr,Vr,Wr){if(br+Hr>vr.length)throw new RangeError("Index out of range");if(br<0)throw new RangeError("Index out of range")}function jr(vr,gr,br,Hr,Vr){return gr=+gr,br=br>>>0,Vr||Tr(vr,gr,br,4),et.write(vr,gr,br,Hr,23,4),br+4}ft.prototype.writeFloatLE=function(vr,gr,br){return jr(this,vr,gr,!0,br)},ft.prototype.writeFloatBE=function(vr,gr,br){return jr(this,vr,gr,!1,br)};function Or(vr,gr,br,Hr,Vr){return gr=+gr,br=br>>>0,Vr||Tr(vr,gr,br,8),et.write(vr,gr,br,Hr,52,8),br+8}ft.prototype.writeDoubleLE=function(vr,gr,br){return Or(this,vr,gr,!0,br)},ft.prototype.writeDoubleBE=function(vr,gr,br){return Or(this,vr,gr,!1,br)},ft.prototype.copy=function(vr,gr,br,Hr){if(!ft.isBuffer(vr))throw new TypeError("argument should be a Buffer");if(br||(br=0),!Hr&&Hr!==0&&(Hr=this.length),gr>=vr.length&&(gr=vr.length),gr||(gr=0),Hr>0&&Hr=this.length)throw new RangeError("Index out of range");if(Hr<0)throw new RangeError("sourceEnd out of bounds");Hr>this.length&&(Hr=this.length),vr.length-gr>>0,br=br===void 0?this.length:br>>>0,vr||(vr=0);let Vr;if(typeof vr=="number")for(Vr=gr;Vr2**32?Vr=Nr(String(br)):typeof br=="bigint"&&(Vr=String(br),(br>BigInt(2)**BigInt(32)||br<-(BigInt(2)**BigInt(32)))&&(Vr=Nr(Vr)),Vr+="n"),Hr+=` It must be ${gr}. Received ${Vr}`,Hr},RangeError);function Nr(vr){let gr="",br=vr.length,Hr=vr[0]==="-"?1:0;for(;br>=Hr+4;br-=3)gr=`_${vr.slice(br-3,br)}${gr}`;return`${vr.slice(0,br)}${gr}`}function Rr(vr,gr,br){Mr(gr,"offset"),(vr[gr]===void 0||vr[gr+br]===void 0)&&kr(gr,vr.length-(br+1))}function Pr(vr,gr,br,Hr,Vr,Wr){if(vr>br||vr3?gr===0||gr===BigInt(0)?cn=`>= 0${Gr} and < 2${Gr} ** ${(Wr+1)*8}${Gr}`:cn=`>= -(2${Gr} ** ${(Wr+1)*8-1}${Gr}) and < 2 ** ${(Wr+1)*8-1}${Gr}`:cn=`>= ${gr}${Gr} and <= ${br}${Gr}`,new _r.ERR_OUT_OF_RANGE("value",cn,vr)}Rr(Hr,Vr,Wr)}function Mr(vr,gr){if(typeof vr!="number")throw new _r.ERR_INVALID_ARG_TYPE(gr,"number",vr)}function kr(vr,gr,br){throw Math.floor(vr)!==vr?(Mr(vr,br),new _r.ERR_OUT_OF_RANGE(br||"offset","an integer",vr)):gr<0?new _r.ERR_BUFFER_OUT_OF_BOUNDS:new _r.ERR_OUT_OF_RANGE(br||"offset",`>= ${br?1:0} and <= ${gr}`,vr)}let Fr=/[^+/0-9A-Za-z-_]/g;function wr(vr){if(vr=vr.split("=")[0],vr=vr.trim().replace(Fr,""),vr.length<2)return"";for(;vr.length%4!==0;)vr=vr+"=";return vr}function Br(vr,gr){gr=gr||1/0;let br,Hr=vr.length,Vr=null,Wr=[];for(let Gr=0;Gr55295&&br<57344){if(!Vr){if(br>56319){(gr-=3)>-1&&Wr.push(239,191,189);continue}else if(Gr+1===Hr){(gr-=3)>-1&&Wr.push(239,191,189);continue}Vr=br;continue}if(br<56320){(gr-=3)>-1&&Wr.push(239,191,189),Vr=br;continue}br=(Vr-55296<<10|br-56320)+65536}else Vr&&(gr-=3)>-1&&Wr.push(239,191,189);if(Vr=null,br<128){if((gr-=1)<0)break;Wr.push(br)}else if(br<2048){if((gr-=2)<0)break;Wr.push(br>>6|192,br&63|128)}else if(br<65536){if((gr-=3)<0)break;Wr.push(br>>12|224,br>>6&63|128,br&63|128)}else if(br<1114112){if((gr-=4)<0)break;Wr.push(br>>18|240,br>>12&63|128,br>>6&63|128,br&63|128)}else throw new Error("Invalid code point")}return Wr}function Dr(vr){let gr=[];for(let br=0;br>8,Vr=br%256,Wr.push(Vr),Wr.push(Hr);return Wr}function Kr(vr){return _e.toByteArray(wr(vr))}function zr(vr,gr,br,Hr){let Vr;for(Vr=0;Vr=gr.length||Vr>=vr.length);++Vr)gr[Vr+br]=vr[Vr];return Vr}function qr(vr,gr){return vr instanceof gr||vr!=null&&vr.constructor!=null&&vr.constructor.name!=null&&vr.constructor.name===gr.name}function pn(vr){return vr!==vr}let Qr=function(){let vr="0123456789abcdef",gr=new Array(256);for(let br=0;br<16;++br){let Hr=br*16;for(let Vr=0;Vr<16;++Vr)gr[Hr+Vr]=vr[br]+vr[Vr]}return gr}();function Zr(vr){return typeof BigInt>"u"?vn:vr}function vn(){throw new Error("BigInt not supported")}return Jt}var li,$u,Di,Hu,Jt,Vu,Lt,x$1,zg,Kg,we=be$1(()=>{_$2(),v$1(),m$1(),li={},$u=!1,Di={},Hu=!1,Jt={},Vu=!1,Lt=Vg(),Lt.Buffer,Lt.SlowBuffer,Lt.INSPECT_MAX_BYTES,Lt.kMaxLength,x$1=Lt.Buffer,zg=Lt.INSPECT_MAX_BYTES,Kg=Lt.kMaxLength}),v$1=be$1(()=>{we()}),zu=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=class{constructor(rt){this.aliasToTopic={},this.max=rt}put(rt,st){return st===0||st>this.max?!1:(this.aliasToTopic[st]=rt,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(rt){return this.aliasToTopic[rt]}clear(){this.aliasToTopic={}}};_e.default=et}),ce=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports={ArrayIsArray(rt){return Array.isArray(rt)},ArrayPrototypeIncludes(rt,st){return rt.includes(st)},ArrayPrototypeIndexOf(rt,st){return rt.indexOf(st)},ArrayPrototypeJoin(rt,st){return rt.join(st)},ArrayPrototypeMap(rt,st){return rt.map(st)},ArrayPrototypePop(rt,st){return rt.pop(st)},ArrayPrototypePush(rt,st){return rt.push(st)},ArrayPrototypeSlice(rt,st,ct){return rt.slice(st,ct)},Error,FunctionPrototypeCall(rt,st,...ct){return rt.call(st,...ct)},FunctionPrototypeSymbolHasInstance(rt,st){return Function.prototype[Symbol.hasInstance].call(rt,st)},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(rt,st){return Object.defineProperties(rt,st)},ObjectDefineProperty(rt,st,ct){return Object.defineProperty(rt,st,ct)},ObjectGetOwnPropertyDescriptor(rt,st){return Object.getOwnPropertyDescriptor(rt,st)},ObjectKeys(rt){return Object.keys(rt)},ObjectSetPrototypeOf(rt,st){return Object.setPrototypeOf(rt,st)},Promise,PromisePrototypeCatch(rt,st){return rt.catch(st)},PromisePrototypeThen(rt,st,ct){return rt.then(st,ct)},PromiseReject(rt){return Promise.reject(rt)},ReflectApply:Reflect.apply,RegExpPrototypeTest(rt,st){return rt.test(st)},SafeSet:Set,String,StringPrototypeSlice(rt,st,ct){return rt.slice(st,ct)},StringPrototypeToLowerCase(rt){return rt.toLowerCase()},StringPrototypeToUpperCase(rt){return rt.toUpperCase()},StringPrototypeTrim(rt){return rt.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(rt,st,ct){return rt.set(st,ct)},Uint8Array}}),Je=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=(we(),Z(ve)),st=Object.getPrototypeOf(async function(){}).constructor,ct=globalThis.Blob||rt.Blob,ut=typeof ct<"u"?function(gt){return gt instanceof ct}:function(gt){return!1},ft=class extends Error{constructor(gt){if(!Array.isArray(gt))throw new TypeError(`Expected input to be an Array, got ${typeof gt}`);let xt="";for(let $t=0;$t{gt=$t,xt=_t}),resolve:gt,reject:xt}},promisify(gt){return new Promise((xt,$t)=>{gt((_t,...wt)=>_t?$t(_t):xt(...wt))})},debuglog(){return function(){}},format(gt,...xt){return gt.replace(/%([sdifj])/g,function(...[$t,_t]){let wt=xt.shift();return _t==="f"?wt.toFixed(6):_t==="j"?JSON.stringify(wt):_t==="s"&&typeof wt=="object"?`${wt.constructor!==Object?wt.constructor.name:""} {}`.trim():wt.toString()})},inspect(gt){switch(typeof gt){case"string":if(gt.includes("'"))if(gt.includes('"')){if(!gt.includes("`")&&!gt.includes("${"))return`\`${gt}\``}else return`"${gt}"`;return`'${gt}'`;case"number":return isNaN(gt)?"NaN":Object.is(gt,-0)?String(gt):gt;case"bigint":return`${String(gt)}n`;case"boolean":case"undefined":return String(gt);case"object":return"{}"}},types:{isAsyncFunction(gt){return gt instanceof st},isArrayBufferView(gt){return ArrayBuffer.isView(gt)}},isBlob:ut},et.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Fi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{AbortController:rt,AbortSignal:st}=typeof self<"u"?self:typeof window<"u"?window:void 0;et.exports=rt,et.exports.AbortSignal=st,et.exports.default=rt}),Se=M$1((_e,et)=>{_$2(),v$1(),m$1();var{format:rt,inspect:st,AggregateError:ct}=Je(),ut=globalThis.AggregateError||ct,ft=Symbol("kIsNodeError"),gt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xt=/^([A-Z][a-z0-9]*)+$/,$t="__node_internal_",_t={};function wt(kt,Ft){if(!kt)throw new _t.ERR_INTERNAL_ASSERTION(Ft)}function Tt(kt){let Ft="",Ht=kt.length,Wt=kt[0]==="-"?1:0;for(;Ht>=Wt+4;Ht-=3)Ft=`_${kt.slice(Ht-3,Ht)}${Ft}`;return`${kt.slice(0,Ht)}${Ft}`}function Rt(kt,Ft,Ht){if(typeof Ft=="function")return wt(Ft.length<=Ht.length,`Code: ${kt}; The provided arguments length (${Ht.length}) does not match the required ones (${Ft.length}).`),Ft(...Ht);let Wt=(Ft.match(/%[dfijoOs]/g)||[]).length;return wt(Wt===Ht.length,`Code: ${kt}; The provided arguments length (${Ht.length}) does not match the required ones (${Wt}).`),Ht.length===0?Ft:rt(Ft,...Ht)}function It(kt,Ft,Ht){Ht||(Ht=Error);class Wt extends Ht{constructor(...qt){super(Rt(kt,Ft,qt))}toString(){return`${this.name} [${kt}]: ${this.message}`}}Object.defineProperties(Wt.prototype,{name:{value:Ht.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${kt}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),Wt.prototype.code=kt,Wt.prototype[ft]=!0,_t[kt]=Wt}function At(kt){let Ft=$t+kt.name;return Object.defineProperty(kt,"name",{value:Ft}),kt}function jt(kt,Ft){if(kt&&Ft&&kt!==Ft){if(Array.isArray(Ft.errors))return Ft.errors.push(kt),Ft;let Ht=new ut([Ft,kt],Ft.message);return Ht.code=Ft.code,Ht}return kt||Ft}var Nt=class extends Error{constructor(kt="The operation was aborted",Ft=void 0){if(Ft!==void 0&&typeof Ft!="object")throw new _t.ERR_INVALID_ARG_TYPE("options","Object",Ft);super(kt,Ft),this.code="ABORT_ERR",this.name="AbortError"}};It("ERR_ASSERTION","%s",Error),It("ERR_INVALID_ARG_TYPE",(kt,Ft,Ht)=>{wt(typeof kt=="string","'name' must be a string"),Array.isArray(Ft)||(Ft=[Ft]);let Wt="The ";kt.endsWith(" argument")?Wt+=`${kt} `:Wt+=`"${kt}" ${kt.includes(".")?"property":"argument"} `,Wt+="must be ";let Vt=[],qt=[],Gt=[];for(let Zt of Ft)wt(typeof Zt=="string","All expected entries have to be of type string"),gt.includes(Zt)?Vt.push(Zt.toLowerCase()):xt.test(Zt)?qt.push(Zt):(wt(Zt!=="object",'The value "object" should be written as "Object"'),Gt.push(Zt));if(qt.length>0){let Zt=Vt.indexOf("object");Zt!==-1&&(Vt.splice(Vt,Zt,1),qt.push("Object"))}if(Vt.length>0){switch(Vt.length){case 1:Wt+=`of type ${Vt[0]}`;break;case 2:Wt+=`one of type ${Vt[0]} or ${Vt[1]}`;break;default:{let Zt=Vt.pop();Wt+=`one of type ${Vt.join(", ")}, or ${Zt}`}}(qt.length>0||Gt.length>0)&&(Wt+=" or ")}if(qt.length>0){switch(qt.length){case 1:Wt+=`an instance of ${qt[0]}`;break;case 2:Wt+=`an instance of ${qt[0]} or ${qt[1]}`;break;default:{let Zt=qt.pop();Wt+=`an instance of ${qt.join(", ")}, or ${Zt}`}}Gt.length>0&&(Wt+=" or ")}switch(Gt.length){case 0:break;case 1:Gt[0].toLowerCase()!==Gt[0]&&(Wt+="an "),Wt+=`${Gt[0]}`;break;case 2:Wt+=`one of ${Gt[0]} or ${Gt[1]}`;break;default:{let Zt=Gt.pop();Wt+=`one of ${Gt.join(", ")}, or ${Zt}`}}if(Ht==null)Wt+=`. Received ${Ht}`;else if(typeof Ht=="function"&&Ht.name)Wt+=`. Received function ${Ht.name}`;else if(typeof Ht=="object"){var Xt;if((Xt=Ht.constructor)!==null&&Xt!==void 0&&Xt.name)Wt+=`. Received an instance of ${Ht.constructor.name}`;else{let Zt=st(Ht,{depth:-1});Wt+=`. Received ${Zt}`}}else{let Zt=st(Ht,{colors:!1});Zt.length>25&&(Zt=`${Zt.slice(0,25)}...`),Wt+=`. Received type ${typeof Ht} (${Zt})`}return Wt},TypeError),It("ERR_INVALID_ARG_VALUE",(kt,Ft,Ht="is invalid")=>{let Wt=st(Ft);return Wt.length>128&&(Wt=Wt.slice(0,128)+"..."),`The ${kt.includes(".")?"property":"argument"} '${kt}' ${Ht}. Received ${Wt}`},TypeError),It("ERR_INVALID_RETURN_VALUE",(kt,Ft,Ht)=>{var Wt;let Vt=Ht!=null&&(Wt=Ht.constructor)!==null&&Wt!==void 0&&Wt.name?`instance of ${Ht.constructor.name}`:`type ${typeof Ht}`;return`Expected ${kt} to be returned from the "${Ft}" function but got ${Vt}.`},TypeError),It("ERR_MISSING_ARGS",(...kt)=>{wt(kt.length>0,"At least one arg needs to be specified");let Ft,Ht=kt.length;switch(kt=(Array.isArray(kt)?kt:[kt]).map(Wt=>`"${Wt}"`).join(" or "),Ht){case 1:Ft+=`The ${kt[0]} argument`;break;case 2:Ft+=`The ${kt[0]} and ${kt[1]} arguments`;break;default:{let Wt=kt.pop();Ft+=`The ${kt.join(", ")}, and ${Wt} arguments`}break}return`${Ft} must be specified`},TypeError),It("ERR_OUT_OF_RANGE",(kt,Ft,Ht)=>{wt(Ft,'Missing "range" argument');let Wt;return Number.isInteger(Ht)&&Math.abs(Ht)>2**32?Wt=Tt(String(Ht)):typeof Ht=="bigint"?(Wt=String(Ht),(Ht>2n**32n||Ht<-(2n**32n))&&(Wt=Tt(Wt)),Wt+="n"):Wt=st(Ht),`The value of "${kt}" is out of range. It must be ${Ft}. Received ${Wt}`},RangeError),It("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),It("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),It("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),It("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),It("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),It("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),It("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),It("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),It("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),It("ERR_STREAM_WRITE_AFTER_END","write after end",Error),It("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),et.exports={AbortError:Nt,aggregateTwoErrors:At(jt),hideStackFrames:At,codes:_t}}),ui=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayIsArray:rt,ArrayPrototypeIncludes:st,ArrayPrototypeJoin:ct,ArrayPrototypeMap:ut,NumberIsInteger:ft,NumberIsNaN:gt,NumberMAX_SAFE_INTEGER:xt,NumberMIN_SAFE_INTEGER:$t,NumberParseInt:_t,ObjectPrototypeHasOwnProperty:wt,RegExpPrototypeExec:Tt,String:Rt,StringPrototypeToUpperCase:It,StringPrototypeTrim:At}=ce(),{hideStackFrames:jt,codes:{ERR_SOCKET_BAD_PORT:Nt,ERR_INVALID_ARG_TYPE:kt,ERR_INVALID_ARG_VALUE:Ft,ERR_OUT_OF_RANGE:Ht,ERR_UNKNOWN_SIGNAL:Wt}}=Se(),{normalizeEncoding:Vt}=Je(),{isAsyncFunction:qt,isArrayBufferView:Gt}=Je().types,Xt={};function Zt(zr){return zr===(zr|0)}function lr(zr){return zr===zr>>>0}var er=/^[0-7]+$/,cr="must be a 32-bit unsigned integer or an octal string";function ur(zr,qr,pn){if(typeof zr>"u"&&(zr=pn),typeof zr=="string"){if(Tt(er,zr)===null)throw new Ft(qr,zr,cr);zr=_t(zr,8)}return fr(zr,qr),zr}var pr=jt((zr,qr,pn=$t,Qr=xt)=>{if(typeof zr!="number")throw new kt(qr,"number",zr);if(!ft(zr))throw new Ht(qr,"an integer",zr);if(zrQr)throw new Ht(qr,`>= ${pn} && <= ${Qr}`,zr)}),hr=jt((zr,qr,pn=-2147483648,Qr=2147483647)=>{if(typeof zr!="number")throw new kt(qr,"number",zr);if(!ft(zr))throw new Ht(qr,"an integer",zr);if(zrQr)throw new Ht(qr,`>= ${pn} && <= ${Qr}`,zr)}),fr=jt((zr,qr,pn=!1)=>{if(typeof zr!="number")throw new kt(qr,"number",zr);if(!ft(zr))throw new Ht(qr,"an integer",zr);let Qr=pn?1:0,Zr=4294967295;if(zrZr)throw new Ht(qr,`>= ${Qr} && <= ${Zr}`,zr)});function dr(zr,qr){if(typeof zr!="string")throw new kt(qr,"string",zr)}function yr(zr,qr,pn=void 0,Qr){if(typeof zr!="number")throw new kt(qr,"number",zr);if(pn!=null&&zrQr||(pn!=null||Qr!=null)&>(zr))throw new Ht(qr,`${pn!=null?`>= ${pn}`:""}${pn!=null&&Qr!=null?" && ":""}${Qr!=null?`<= ${Qr}`:""}`,zr)}var $r=jt((zr,qr,pn)=>{if(!st(pn,zr)){let Qr="must be one of: "+ct(ut(pn,Zr=>typeof Zr=="string"?`'${Zr}'`:Rt(Zr)),", ");throw new Ft(qr,zr,Qr)}});function Er(zr,qr){if(typeof zr!="boolean")throw new kt(qr,"boolean",zr)}function mr(zr,qr,pn){return zr==null||!wt(zr,qr)?pn:zr[qr]}var Sr=jt((zr,qr,pn=null)=>{let Qr=mr(pn,"allowArray",!1),Zr=mr(pn,"allowFunction",!1);if(!mr(pn,"nullable",!1)&&zr===null||!Qr&&rt(zr)||typeof zr!="object"&&(!Zr||typeof zr!="function"))throw new kt(qr,"Object",zr)}),Tr=jt((zr,qr)=>{if(zr!=null&&typeof zr!="object"&&typeof zr!="function")throw new kt(qr,"a dictionary",zr)}),jr=jt((zr,qr,pn=0)=>{if(!rt(zr))throw new kt(qr,"Array",zr);if(zr.length{if(!Gt(zr))throw new kt(qr,["Buffer","TypedArray","DataView"],zr)});function Rr(zr,qr){let pn=Vt(qr),Qr=zr.length;if(pn==="hex"&&Qr%2!==0)throw new Ft("encoding",qr,`is invalid for data of length ${Qr}`)}function Pr(zr,qr="Port",pn=!0){if(typeof zr!="number"&&typeof zr!="string"||typeof zr=="string"&&At(zr).length===0||+zr!==+zr>>>0||zr>65535||zr===0&&!pn)throw new Nt(qr,zr,pn);return zr|0}var Mr=jt((zr,qr)=>{if(zr!==void 0&&(zr===null||typeof zr!="object"||!("aborted"in zr)))throw new kt(qr,"AbortSignal",zr)}),kr=jt((zr,qr)=>{if(typeof zr!="function")throw new kt(qr,"Function",zr)}),Fr=jt((zr,qr)=>{if(typeof zr!="function"||qt(zr))throw new kt(qr,"Function",zr)}),wr=jt((zr,qr)=>{if(zr!==void 0)throw new kt(qr,"undefined",zr)});function Br(zr,qr,pn){if(!st(pn,zr))throw new kt(qr,`('${ct(pn,"|")}')`,zr)}var Dr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Xr(zr,qr){if(typeof zr>"u"||!Tt(Dr,zr))throw new Ft(qr,zr,'must be an array or string of format "; rel=preload; as=style"')}function Kr(zr){if(typeof zr=="string")return Xr(zr,"hints"),zr;if(rt(zr)){let qr=zr.length,pn="";if(qr===0)return pn;for(let Qr=0;Qr; rel=preload; as=style"')}et.exports={isInt32:Zt,isUint32:lr,parseFileMode:ur,validateArray:jr,validateStringArray:Or,validateBooleanArray:_r,validateBoolean:Er,validateBuffer:Nr,validateDictionary:Tr,validateEncoding:Rr,validateFunction:kr,validateInt32:hr,validateInteger:pr,validateNumber:yr,validateObject:Sr,validateOneOf:$r,validatePlainFunction:Fr,validatePort:Pr,validateSignalName:Cr,validateString:dr,validateUint32:fr,validateUndefined:wr,validateUnion:Br,validateAbortSignal:Mr,validateLinkHeaderValue:Kr}}),Ut=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=et.exports={},st,ct;function ut(){throw new Error("setTimeout has not been defined")}function ft(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?st=setTimeout:st=ut}catch{st=ut}try{typeof clearTimeout=="function"?ct=clearTimeout:ct=ft}catch{ct=ft}})();function gt(Nt){if(st===setTimeout)return setTimeout(Nt,0);if((st===ut||!st)&&setTimeout)return st=setTimeout,setTimeout(Nt,0);try{return st(Nt,0)}catch{try{return st.call(null,Nt,0)}catch{return st.call(this,Nt,0)}}}function xt(Nt){if(ct===clearTimeout)return clearTimeout(Nt);if((ct===ft||!ct)&&clearTimeout)return ct=clearTimeout,clearTimeout(Nt);try{return ct(Nt)}catch{try{return ct.call(null,Nt)}catch{return ct.call(this,Nt)}}}var $t=[],_t=!1,wt,Tt=-1;function Rt(){!_t||!wt||(_t=!1,wt.length?$t=wt.concat($t):Tt=-1,$t.length&&It())}function It(){if(!_t){var Nt=gt(Rt);_t=!0;for(var kt=$t.length;kt;){for(wt=$t,$t=[];++Tt1)for(var Ft=1;Ft{_$2(),v$1(),m$1();var{Symbol:rt,SymbolAsyncIterator:st,SymbolIterator:ct,SymbolFor:ut}=ce(),ft=rt("kDestroyed"),gt=rt("kIsErrored"),xt=rt("kIsReadable"),$t=rt("kIsDisturbed"),_t=ut("nodejs.webstream.isClosedPromise"),wt=ut("nodejs.webstream.controllerErrorFunction");function Tt(mr,Sr=!1){var Tr;return!!(mr&&typeof mr.pipe=="function"&&typeof mr.on=="function"&&(!Sr||typeof mr.pause=="function"&&typeof mr.resume=="function")&&(!mr._writableState||((Tr=mr._readableState)===null||Tr===void 0?void 0:Tr.readable)!==!1)&&(!mr._writableState||mr._readableState))}function Rt(mr){var Sr;return!!(mr&&typeof mr.write=="function"&&typeof mr.on=="function"&&(!mr._readableState||((Sr=mr._writableState)===null||Sr===void 0?void 0:Sr.writable)!==!1))}function It(mr){return!!(mr&&typeof mr.pipe=="function"&&mr._readableState&&typeof mr.on=="function"&&typeof mr.write=="function")}function At(mr){return mr&&(mr._readableState||mr._writableState||typeof mr.write=="function"&&typeof mr.on=="function"||typeof mr.pipe=="function"&&typeof mr.on=="function")}function jt(mr){return!!(mr&&!At(mr)&&typeof mr.pipeThrough=="function"&&typeof mr.getReader=="function"&&typeof mr.cancel=="function")}function Nt(mr){return!!(mr&&!At(mr)&&typeof mr.getWriter=="function"&&typeof mr.abort=="function")}function kt(mr){return!!(mr&&!At(mr)&&typeof mr.readable=="object"&&typeof mr.writable=="object")}function Ft(mr){return jt(mr)||Nt(mr)||kt(mr)}function Ht(mr,Sr){return mr==null?!1:Sr===!0?typeof mr[st]=="function":Sr===!1?typeof mr[ct]=="function":typeof mr[st]=="function"||typeof mr[ct]=="function"}function Wt(mr){if(!At(mr))return null;let Sr=mr._writableState,Tr=mr._readableState,jr=Sr||Tr;return!!(mr.destroyed||mr[ft]||jr!=null&&jr.destroyed)}function Vt(mr){if(!Rt(mr))return null;if(mr.writableEnded===!0)return!0;let Sr=mr._writableState;return Sr!=null&&Sr.errored?!1:typeof(Sr==null?void 0:Sr.ended)!="boolean"?null:Sr.ended}function qt(mr,Sr){if(!Rt(mr))return null;if(mr.writableFinished===!0)return!0;let Tr=mr._writableState;return Tr!=null&&Tr.errored?!1:typeof(Tr==null?void 0:Tr.finished)!="boolean"?null:!!(Tr.finished||Sr===!1&&Tr.ended===!0&&Tr.length===0)}function Gt(mr){if(!Tt(mr))return null;if(mr.readableEnded===!0)return!0;let Sr=mr._readableState;return!Sr||Sr.errored?!1:typeof(Sr==null?void 0:Sr.ended)!="boolean"?null:Sr.ended}function Xt(mr,Sr){if(!Tt(mr))return null;let Tr=mr._readableState;return Tr!=null&&Tr.errored?!1:typeof(Tr==null?void 0:Tr.endEmitted)!="boolean"?null:!!(Tr.endEmitted||Sr===!1&&Tr.ended===!0&&Tr.length===0)}function Zt(mr){return mr&&mr[xt]!=null?mr[xt]:typeof(mr==null?void 0:mr.readable)!="boolean"?null:Wt(mr)?!1:Tt(mr)&&mr.readable&&!Xt(mr)}function lr(mr){return typeof(mr==null?void 0:mr.writable)!="boolean"?null:Wt(mr)?!1:Rt(mr)&&mr.writable&&!Vt(mr)}function er(mr,Sr){return At(mr)?Wt(mr)?!0:!((Sr==null?void 0:Sr.readable)!==!1&&Zt(mr)||(Sr==null?void 0:Sr.writable)!==!1&&lr(mr)):null}function cr(mr){var Sr,Tr;return At(mr)?mr.writableErrored?mr.writableErrored:(Sr=(Tr=mr._writableState)===null||Tr===void 0?void 0:Tr.errored)!==null&&Sr!==void 0?Sr:null:null}function ur(mr){var Sr,Tr;return At(mr)?mr.readableErrored?mr.readableErrored:(Sr=(Tr=mr._readableState)===null||Tr===void 0?void 0:Tr.errored)!==null&&Sr!==void 0?Sr:null:null}function pr(mr){if(!At(mr))return null;if(typeof mr.closed=="boolean")return mr.closed;let Sr=mr._writableState,Tr=mr._readableState;return typeof(Sr==null?void 0:Sr.closed)=="boolean"||typeof(Tr==null?void 0:Tr.closed)=="boolean"?(Sr==null?void 0:Sr.closed)||(Tr==null?void 0:Tr.closed):typeof mr._closed=="boolean"&&hr(mr)?mr._closed:null}function hr(mr){return typeof mr._closed=="boolean"&&typeof mr._defaultKeepAlive=="boolean"&&typeof mr._removedConnection=="boolean"&&typeof mr._removedContLen=="boolean"}function fr(mr){return typeof mr._sent100=="boolean"&&hr(mr)}function dr(mr){var Sr;return typeof mr._consuming=="boolean"&&typeof mr._dumped=="boolean"&&((Sr=mr.req)===null||Sr===void 0?void 0:Sr.upgradeOrConnect)===void 0}function yr(mr){if(!At(mr))return null;let Sr=mr._writableState,Tr=mr._readableState,jr=Sr||Tr;return!jr&&fr(mr)||!!(jr&&jr.autoDestroy&&jr.emitClose&&jr.closed===!1)}function $r(mr){var Sr;return!!(mr&&((Sr=mr[$t])!==null&&Sr!==void 0?Sr:mr.readableDidRead||mr.readableAborted))}function Er(mr){var Sr,Tr,jr,Or,_r,Cr,Nr,Rr,Pr,Mr;return!!(mr&&((Sr=(Tr=(jr=(Or=(_r=(Cr=mr[gt])!==null&&Cr!==void 0?Cr:mr.readableErrored)!==null&&_r!==void 0?_r:mr.writableErrored)!==null&&Or!==void 0?Or:(Nr=mr._readableState)===null||Nr===void 0?void 0:Nr.errorEmitted)!==null&&jr!==void 0?jr:(Rr=mr._writableState)===null||Rr===void 0?void 0:Rr.errorEmitted)!==null&&Tr!==void 0?Tr:(Pr=mr._readableState)===null||Pr===void 0?void 0:Pr.errored)!==null&&Sr!==void 0?Sr:!((Mr=mr._writableState)===null||Mr===void 0)&&Mr.errored))}et.exports={kDestroyed:ft,isDisturbed:$r,kIsDisturbed:$t,isErrored:Er,kIsErrored:gt,isReadable:Zt,kIsReadable:xt,kIsClosedPromise:_t,kControllerErrorFunction:wt,isClosed:pr,isDestroyed:Wt,isDuplexNodeStream:It,isFinished:er,isIterable:Ht,isReadableNodeStream:Tt,isReadableStream:jt,isReadableEnded:Gt,isReadableFinished:Xt,isReadableErrored:ur,isNodeStream:At,isWebStream:Ft,isWritable:lr,isWritableNodeStream:Rt,isWritableStream:Nt,isWritableEnded:Vt,isWritableFinished:qt,isWritableErrored:cr,isServerRequest:dr,isServerResponse:fr,willEmitClose:yr,isTransformStream:kt}}),mt=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{AbortError:st,codes:ct}=Se(),{ERR_INVALID_ARG_TYPE:ut,ERR_STREAM_PREMATURE_CLOSE:ft}=ct,{kEmptyObject:gt,once:xt}=Je(),{validateAbortSignal:$t,validateFunction:_t,validateObject:wt,validateBoolean:Tt}=ui(),{Promise:Rt,PromisePrototypeThen:It}=ce(),{isClosed:At,isReadable:jt,isReadableNodeStream:Nt,isReadableStream:kt,isReadableFinished:Ft,isReadableErrored:Ht,isWritable:Wt,isWritableNodeStream:Vt,isWritableStream:qt,isWritableFinished:Gt,isWritableErrored:Xt,isNodeStream:Zt,willEmitClose:lr,kIsClosedPromise:er}=tt();function cr(dr){return dr.setHeader&&typeof dr.abort=="function"}var ur=()=>{};function pr(dr,yr,$r){var Er,mr;if(arguments.length===2?($r=yr,yr=gt):yr==null?yr=gt:wt(yr,"options"),_t($r,"callback"),$t(yr.signal,"options.signal"),$r=xt($r),kt(dr)||qt(dr))return hr(dr,yr,$r);if(!Zt(dr))throw new ut("stream",["ReadableStream","WritableStream","Stream"],dr);let Sr=(Er=yr.readable)!==null&&Er!==void 0?Er:Nt(dr),Tr=(mr=yr.writable)!==null&&mr!==void 0?mr:Vt(dr),jr=dr._writableState,Or=dr._readableState,_r=()=>{dr.writable||Rr()},Cr=lr(dr)&&Nt(dr)===Sr&&Vt(dr)===Tr,Nr=Gt(dr,!1),Rr=()=>{Nr=!0,dr.destroyed&&(Cr=!1),!(Cr&&(!dr.readable||Sr))&&(!Sr||Pr)&&$r.call(dr)},Pr=Ft(dr,!1),Mr=()=>{Pr=!0,dr.destroyed&&(Cr=!1),!(Cr&&(!dr.writable||Tr))&&(!Tr||Nr)&&$r.call(dr)},kr=Kr=>{$r.call(dr,Kr)},Fr=At(dr),wr=()=>{Fr=!0;let Kr=Xt(dr)||Ht(dr);if(Kr&&typeof Kr!="boolean")return $r.call(dr,Kr);if(Sr&&!Pr&&Nt(dr,!0)&&!Ft(dr,!1))return $r.call(dr,new ft);if(Tr&&!Nr&&!Gt(dr,!1))return $r.call(dr,new ft);$r.call(dr)},Br=()=>{Fr=!0;let Kr=Xt(dr)||Ht(dr);if(Kr&&typeof Kr!="boolean")return $r.call(dr,Kr);$r.call(dr)},Dr=()=>{dr.req.on("finish",Rr)};cr(dr)?(dr.on("complete",Rr),Cr||dr.on("abort",wr),dr.req?Dr():dr.on("request",Dr)):Tr&&!jr&&(dr.on("end",_r),dr.on("close",_r)),!Cr&&typeof dr.aborted=="boolean"&&dr.on("aborted",wr),dr.on("end",Mr),dr.on("finish",Rr),yr.error!==!1&&dr.on("error",kr),dr.on("close",wr),Fr?rt.nextTick(wr):jr!=null&&jr.errorEmitted||Or!=null&&Or.errorEmitted?Cr||rt.nextTick(Br):(!Sr&&(!Cr||jt(dr))&&(Nr||Wt(dr)===!1)||!Tr&&(!Cr||Wt(dr))&&(Pr||jt(dr)===!1)||Or&&dr.req&&dr.aborted)&&rt.nextTick(Br);let Xr=()=>{$r=ur,dr.removeListener("aborted",wr),dr.removeListener("complete",Rr),dr.removeListener("abort",wr),dr.removeListener("request",Dr),dr.req&&dr.req.removeListener("finish",Rr),dr.removeListener("end",_r),dr.removeListener("close",_r),dr.removeListener("finish",Rr),dr.removeListener("end",Mr),dr.removeListener("error",kr),dr.removeListener("close",wr)};if(yr.signal&&!Fr){let Kr=()=>{let zr=$r;Xr(),zr.call(dr,new st(void 0,{cause:yr.signal.reason}))};if(yr.signal.aborted)rt.nextTick(Kr);else{let zr=$r;$r=xt((...qr)=>{yr.signal.removeEventListener("abort",Kr),zr.apply(dr,qr)}),yr.signal.addEventListener("abort",Kr)}}return Xr}function hr(dr,yr,$r){let Er=!1,mr=ur;if(yr.signal)if(mr=()=>{Er=!0,$r.call(dr,new st(void 0,{cause:yr.signal.reason}))},yr.signal.aborted)rt.nextTick(mr);else{let Tr=$r;$r=xt((...jr)=>{yr.signal.removeEventListener("abort",mr),Tr.apply(dr,jr)}),yr.signal.addEventListener("abort",mr)}let Sr=(...Tr)=>{Er||rt.nextTick(()=>$r.apply(dr,Tr))};return It(dr[er].promise,Sr,Sr),ur}function fr(dr,yr){var $r;let Er=!1;return yr===null&&(yr=gt),($r=yr)!==null&&$r!==void 0&&$r.cleanup&&(Tt(yr.cleanup,"cleanup"),Er=yr.cleanup),new Rt((mr,Sr)=>{let Tr=pr(dr,yr,jr=>{Er&&Tr(),jr?Sr(jr):mr()})})}et.exports=pr,et.exports.finished=fr}),tr=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{aggregateTwoErrors:st,codes:{ERR_MULTIPLE_CALLBACK:ct},AbortError:ut}=Se(),{Symbol:ft}=ce(),{kDestroyed:gt,isDestroyed:xt,isFinished:$t,isServerRequest:_t}=tt(),wt=ft("kDestroy"),Tt=ft("kConstruct");function Rt(er,cr,ur){er&&(er.stack,cr&&!cr.errored&&(cr.errored=er),ur&&!ur.errored&&(ur.errored=er))}function It(er,cr){let ur=this._readableState,pr=this._writableState,hr=pr||ur;return pr!=null&&pr.destroyed||ur!=null&&ur.destroyed?(typeof cr=="function"&&cr(),this):(Rt(er,pr,ur),pr&&(pr.destroyed=!0),ur&&(ur.destroyed=!0),hr.constructed?At(this,er,cr):this.once(wt,function(fr){At(this,st(fr,er),cr)}),this)}function At(er,cr,ur){let pr=!1;function hr(fr){if(pr)return;pr=!0;let dr=er._readableState,yr=er._writableState;Rt(fr,yr,dr),yr&&(yr.closed=!0),dr&&(dr.closed=!0),typeof ur=="function"&&ur(fr),fr?rt.nextTick(jt,er,fr):rt.nextTick(Nt,er)}try{er._destroy(cr||null,hr)}catch(fr){hr(fr)}}function jt(er,cr){kt(er,cr),Nt(er)}function Nt(er){let cr=er._readableState,ur=er._writableState;ur&&(ur.closeEmitted=!0),cr&&(cr.closeEmitted=!0),(ur!=null&&ur.emitClose||cr!=null&&cr.emitClose)&&er.emit("close")}function kt(er,cr){let ur=er._readableState,pr=er._writableState;pr!=null&&pr.errorEmitted||ur!=null&&ur.errorEmitted||(pr&&(pr.errorEmitted=!0),ur&&(ur.errorEmitted=!0),er.emit("error",cr))}function Ft(){let er=this._readableState,cr=this._writableState;er&&(er.constructed=!0,er.closed=!1,er.closeEmitted=!1,er.destroyed=!1,er.errored=null,er.errorEmitted=!1,er.reading=!1,er.ended=er.readable===!1,er.endEmitted=er.readable===!1),cr&&(cr.constructed=!0,cr.destroyed=!1,cr.closed=!1,cr.closeEmitted=!1,cr.errored=null,cr.errorEmitted=!1,cr.finalCalled=!1,cr.prefinished=!1,cr.ended=cr.writable===!1,cr.ending=cr.writable===!1,cr.finished=cr.writable===!1)}function Ht(er,cr,ur){let pr=er._readableState,hr=er._writableState;if(hr!=null&&hr.destroyed||pr!=null&&pr.destroyed)return this;pr!=null&&pr.autoDestroy||hr!=null&&hr.autoDestroy?er.destroy(cr):cr&&(cr.stack,hr&&!hr.errored&&(hr.errored=cr),pr&&!pr.errored&&(pr.errored=cr),ur?rt.nextTick(kt,er,cr):kt(er,cr))}function Wt(er,cr){if(typeof er._construct!="function")return;let ur=er._readableState,pr=er._writableState;ur&&(ur.constructed=!1),pr&&(pr.constructed=!1),er.once(Tt,cr),!(er.listenerCount(Tt)>1)&&rt.nextTick(Vt,er)}function Vt(er){let cr=!1;function ur(pr){if(cr){Ht(er,pr??new ct);return}cr=!0;let hr=er._readableState,fr=er._writableState,dr=fr||hr;hr&&(hr.constructed=!0),fr&&(fr.constructed=!0),dr.destroyed?er.emit(wt,pr):pr?Ht(er,pr,!0):rt.nextTick(qt,er)}try{er._construct(pr=>{rt.nextTick(ur,pr)})}catch(pr){rt.nextTick(ur,pr)}}function qt(er){er.emit(Tt)}function Gt(er){return(er==null?void 0:er.setHeader)&&typeof er.abort=="function"}function Xt(er){er.emit("close")}function Zt(er,cr){er.emit("error",cr),rt.nextTick(Xt,er)}function lr(er,cr){!er||xt(er)||(!cr&&!$t(er)&&(cr=new ut),_t(er)?(er.socket=null,er.destroy(cr)):Gt(er)?er.abort():Gt(er.req)?er.req.abort():typeof er.destroy=="function"?er.destroy(cr):typeof er.close=="function"?er.close():cr?rt.nextTick(Zt,er,cr):rt.nextTick(Xt,er),er.destroyed||(er[gt]=!0))}et.exports={construct:Wt,destroyer:lr,destroy:It,undestroy:Ft,errorOrDestroy:Ht}});function Y$1(){Y$1.init.call(this)}function Qi(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}function rc(_e){return _e._maxListeners===void 0?Y$1.defaultMaxListeners:_e._maxListeners}function Yf(_e,et,rt,st){var ct,ut,ft,gt;if(Qi(rt),(ut=_e._events)===void 0?(ut=_e._events=Object.create(null),_e._eventsCount=0):(ut.newListener!==void 0&&(_e.emit("newListener",et,rt.listener?rt.listener:rt),ut=_e._events),ft=ut[et]),ft===void 0)ft=ut[et]=rt,++_e._eventsCount;else if(typeof ft=="function"?ft=ut[et]=st?[rt,ft]:[ft,rt]:st?ft.unshift(rt):ft.push(rt),(ct=rc(_e))>0&&ft.length>ct&&!ft.warned){ft.warned=!0;var xt=new Error("Possible EventEmitter memory leak detected. "+ft.length+" "+String(et)+" listeners added. Use emitter.setMaxListeners() to increase limit");xt.name="MaxListenersExceededWarning",xt.emitter=_e,xt.type=et,xt.count=ft.length,gt=xt,console&&console.warn&&console.warn(gt)}return _e}function Db(){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 Jf(_e,et,rt){var st={fired:!1,wrapFn:void 0,target:_e,type:et,listener:rt},ct=Db.bind(st);return ct.listener=rt,st.wrapFn=ct,ct}function Xf(_e,et,rt){var st=_e._events;if(st===void 0)return[];var ct=st[et];return ct===void 0?[]:typeof ct=="function"?rt?[ct.listener||ct]:[ct]:rt?function(ut){for(var ft=new Array(ut.length),gt=0;gt{_$2(),v$1(),m$1(),Lr=typeof Reflect=="object"?Reflect:null,Kf=Lr&&typeof Lr.apply=="function"?Lr.apply:function(_e,et,rt){return Function.prototype.apply.call(_e,et,rt)},tc=Lr&&typeof Lr.ownKeys=="function"?Lr.ownKeys:Object.getOwnPropertySymbols?function(_e){return Object.getOwnPropertyNames(_e).concat(Object.getOwnPropertySymbols(_e))}:function(_e){return Object.getOwnPropertyNames(_e)},Gf=Number.isNaN||function(_e){return _e!=_e},ec=Y$1,Y$1.EventEmitter=Y$1,Y$1.prototype._events=void 0,Y$1.prototype._eventsCount=0,Y$1.prototype._maxListeners=void 0,Qf=10,Object.defineProperty(Y$1,"defaultMaxListeners",{enumerable:!0,get:function(){return Qf},set:function(_e){if(typeof _e!="number"||_e<0||Gf(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");Qf=_e}}),Y$1.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},Y$1.prototype.setMaxListeners=function(_e){if(typeof _e!="number"||_e<0||Gf(_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},Y$1.prototype.getMaxListeners=function(){return rc(this)},Y$1.prototype.emit=function(_e){for(var et=[],rt=1;rt0&&(ut=et[0]),ut instanceof Error)throw ut;var ft=new Error("Unhandled error."+(ut?" ("+ut.message+")":""));throw ft.context=ut,ft}var gt=ct[_e];if(gt===void 0)return!1;if(typeof gt=="function")Kf(gt,this,et);else{var xt=gt.length,$t=ic(gt,xt);for(rt=0;rt=0;ut--)if(rt[ut]===et||rt[ut].listener===et){ft=rt[ut].listener,ct=ut;break}if(ct<0)return this;ct===0?rt.shift():function(gt,xt){for(;xt+1=0;st--)this.removeListener(_e,et[st]);return this},Y$1.prototype.listeners=function(_e){return Xf(this,_e,!0)},Y$1.prototype.rawListeners=function(_e){return Xf(this,_e,!1)},Y$1.listenerCount=function(_e,et){return typeof _e.listenerCount=="function"?_e.listenerCount(et):Zf.call(_e,et)},Y$1.prototype.listenerCount=Zf,Y$1.prototype.eventNames=function(){return this._eventsCount>0?tc(this._events):[]},Be=ec,Be.EventEmitter,Be.defaultMaxListeners,Be.init,Be.listenerCount,Be.EventEmitter,Be.defaultMaxListeners,Be.init,Be.listenerCount}),rr={};Qt(rr,{EventEmitter:()=>jb,default:()=>Be,defaultMaxListeners:()=>Fb,init:()=>Wb,listenerCount:()=>$b,on:()=>Hb,once:()=>Vb});var jb,Fb,Wb,$b,Hb,Vb,ir=be$1(()=>{_$2(),v$1(),m$1(),Ns(),Ns(),Be.once=function(_e,et){return new Promise((rt,st)=>{function ct(...ft){ut!==void 0&&_e.removeListener("error",ut),rt(ft)}let ut;et!=="error"&&(ut=ft=>{_e.removeListener(name,ct),st(ft)},_e.once("error",ut)),_e.once(et,ct)})},Be.on=function(_e,et){let rt=[],st=[],ct=null,ut=!1,ft={async next(){let $t=rt.shift();if($t)return createIterResult($t,!1);if(ct){let _t=Promise.reject(ct);return ct=null,_t}return ut?createIterResult(void 0,!0):new Promise((_t,wt)=>st.push({resolve:_t,reject:wt}))},async return(){_e.removeListener(et,gt),_e.removeListener("error",xt),ut=!0;for(let $t of st)$t.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw($t){ct=$t,_e.removeListener(et,gt),_e.removeListener("error",xt)},[Symbol.asyncIterator](){return this}};return _e.on(et,gt),_e.on("error",xt),ft;function gt(...$t){let _t=st.shift();_t?_t.resolve(createIterResult($t,!1)):rt.push($t)}function xt($t){ut=!0;let _t=st.shift();_t?_t.reject($t):ct=$t,ft.return()}},{EventEmitter:jb,defaultMaxListeners:Fb,init:Wb,listenerCount:$b,on:Hb,once:Vb}=Be}),Xi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayIsArray:rt,ObjectSetPrototypeOf:st}=ce(),{EventEmitter:ct}=(ir(),Z(rr));function ut(gt){ct.call(this,gt)}st(ut.prototype,ct.prototype),st(ut,ct),ut.prototype.pipe=function(gt,xt){let $t=this;function _t(Nt){gt.writable&>.write(Nt)===!1&&$t.pause&&$t.pause()}$t.on("data",_t);function wt(){$t.readable&&$t.resume&&$t.resume()}gt.on("drain",wt),!gt._isStdio&&(!xt||xt.end!==!1)&&($t.on("end",Rt),$t.on("close",It));let Tt=!1;function Rt(){Tt||(Tt=!0,gt.end())}function It(){Tt||(Tt=!0,typeof gt.destroy=="function"&>.destroy())}function At(Nt){jt(),ct.listenerCount(this,"error")===0&&this.emit("error",Nt)}ft($t,"error",At),ft(gt,"error",At);function jt(){$t.removeListener("data",_t),gt.removeListener("drain",wt),$t.removeListener("end",Rt),$t.removeListener("close",It),$t.removeListener("error",At),gt.removeListener("error",At),$t.removeListener("end",jt),$t.removeListener("close",jt),gt.removeListener("close",jt)}return $t.on("end",jt),$t.on("close",jt),gt.on("close",jt),gt.emit("pipe",$t),gt};function ft(gt,xt,$t){if(typeof gt.prependListener=="function")return gt.prependListener(xt,$t);!gt._events||!gt._events[xt]?gt.on(xt,$t):rt(gt._events[xt])?gt._events[xt].unshift($t):gt._events[xt]=[$t,gt._events[xt]]}et.exports={Stream:ut,prependListener:ft}}),fi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{AbortError:rt,codes:st}=Se(),{isNodeStream:ct,isWebStream:ut,kControllerErrorFunction:ft}=tt(),gt=mt(),{ERR_INVALID_ARG_TYPE:xt}=st,$t=(_t,wt)=>{if(typeof _t!="object"||!("aborted"in _t))throw new xt(wt,"AbortSignal",_t)};et.exports.addAbortSignal=function(_t,wt){if($t(_t,"signal"),!ct(wt)&&!ut(wt))throw new xt("stream",["ReadableStream","WritableStream","Stream"],wt);return et.exports.addAbortSignalNoValidate(_t,wt)},et.exports.addAbortSignalNoValidate=function(_t,wt){if(typeof _t!="object"||!("aborted"in _t))return wt;let Tt=ct(wt)?()=>{wt.destroy(new rt(void 0,{cause:_t.reason}))}:()=>{wt[ft](new rt(void 0,{cause:_t.reason}))};return _t.aborted?Tt():(_t.addEventListener("abort",Tt),gt(wt,()=>_t.removeEventListener("abort",Tt))),wt}}),cc=M$1((_e,et)=>{_$2(),v$1(),m$1();var{StringPrototypeSlice:rt,SymbolIterator:st,TypedArrayPrototypeSet:ct,Uint8Array:ut}=ce(),{Buffer:ft}=(we(),Z(ve)),{inspect:gt}=Je();et.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(xt){let $t={data:xt,next:null};this.length>0?this.tail.next=$t:this.head=$t,this.tail=$t,++this.length}unshift(xt){let $t={data:xt,next:this.head};this.length===0&&(this.tail=$t),this.head=$t,++this.length}shift(){if(this.length===0)return;let xt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,xt}clear(){this.head=this.tail=null,this.length=0}join(xt){if(this.length===0)return"";let $t=this.head,_t=""+$t.data;for(;($t=$t.next)!==null;)_t+=xt+$t.data;return _t}concat(xt){if(this.length===0)return ft.alloc(0);let $t=ft.allocUnsafe(xt>>>0),_t=this.head,wt=0;for(;_t;)ct($t,_t.data,wt),wt+=_t.data.length,_t=_t.next;return $t}consume(xt,$t){let _t=this.head.data;if(xt<_t.length){let wt=_t.slice(0,xt);return this.head.data=_t.slice(xt),wt}return xt===_t.length?this.shift():$t?this._getString(xt):this._getBuffer(xt)}first(){return this.head.data}*[st](){for(let xt=this.head;xt;xt=xt.next)yield xt.data}_getString(xt){let $t="",_t=this.head,wt=0;do{let Tt=_t.data;if(xt>Tt.length)$t+=Tt,xt-=Tt.length;else{xt===Tt.length?($t+=Tt,++wt,_t.next?this.head=_t.next:this.head=this.tail=null):($t+=rt(Tt,0,xt),this.head=_t,_t.data=rt(Tt,xt));break}++wt}while((_t=_t.next)!==null);return this.length-=wt,$t}_getBuffer(xt){let $t=ft.allocUnsafe(xt),_t=xt,wt=this.head,Tt=0;do{let Rt=wt.data;if(xt>Rt.length)ct($t,Rt,_t-xt),xt-=Rt.length;else{xt===Rt.length?(ct($t,Rt,_t-xt),++Tt,wt.next?this.head=wt.next:this.head=this.tail=null):(ct($t,new ut(Rt.buffer,Rt.byteOffset,xt),_t-xt),this.head=wt,wt.data=Rt.slice(xt));break}++Tt}while((wt=wt.next)!==null);return this.length-=Tt,$t}[Symbol.for("nodejs.util.inspect.custom")](xt,$t){return gt(this,{...$t,depth:0,customInspect:!1})}}}),tn=M$1((_e,et)=>{_$2(),v$1(),m$1();var{MathFloor:rt,NumberIsInteger:st}=ce(),{ERR_INVALID_ARG_VALUE:ct}=Se().codes;function ut(xt,$t,_t){return xt.highWaterMark!=null?xt.highWaterMark:$t?xt[_t]:null}function ft(xt){return xt?16:16*1024}function gt(xt,$t,_t,wt){let Tt=ut($t,wt,_t);if(Tt!=null){if(!st(Tt)||Tt<0){let Rt=wt?`options.${_t}`:"options.highWaterMark";throw new ct(Rt,Tt)}return rt(Tt)}return ft(xt.objectMode)}et.exports={getHighWaterMark:gt,getDefaultHighWaterMark:ft}});function yc(_e){var et=_e.length;if(et%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var rt=_e.indexOf("=");return rt===-1&&(rt=et),[rt,rt===et?0:4-rt%4]}function ow(_e,et,rt){for(var st,ct,ut=[],ft=et;ft>18&63]+$e[ct>>12&63]+$e[ct>>6&63]+$e[63&ct]);return ut.join("")}function vt(_e){if(_e>2147483647)throw new RangeError('The value "'+_e+'" is invalid for option "size"');var et=new Uint8Array(_e);return Object.setPrototypeOf(et,k$2.prototype),et}function k$2(_e,et,rt){if(typeof _e=="number"){if(typeof et=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $s(_e)}return Tc(_e,et,rt)}function Tc(_e,et,rt){if(typeof _e=="string")return function(ut,ft){if(typeof ft=="string"&&ft!==""||(ft="utf8"),!k$2.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var gt=0|Cc(ut,ft),xt=vt(gt),$t=xt.write(ut,ft);return $t!==gt&&(xt=xt.slice(0,$t)),xt}(_e,et);if(ArrayBuffer.isView(_e))return js(_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(Et$1(_e,ArrayBuffer)||_e&&Et$1(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Et$1(_e,SharedArrayBuffer)||_e&&Et$1(_e.buffer,SharedArrayBuffer)))return wc(_e,et,rt);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var st=_e.valueOf&&_e.valueOf();if(st!=null&&st!==_e)return k$2.from(st,et,rt);var ct=function(ut){if(k$2.isBuffer(ut)){var ft=0|zs(ut.length),gt=vt(ft);return gt.length===0||ut.copy(gt,0,0,ft),gt}if(ut.length!==void 0)return typeof ut.length!="number"||Ks(ut.length)?vt(0):js(ut);if(ut.type==="Buffer"&&Array.isArray(ut.data))return js(ut.data)}(_e);if(ct)return ct;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return k$2.from(_e[Symbol.toPrimitive]("string"),et,rt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e)}function Rc(_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 $s(_e){return Rc(_e),vt(_e<0?0:0|zs(_e))}function js(_e){for(var et=_e.length<0?0:0|zs(_e.length),rt=vt(et),st=0;st=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|_e}function Cc(_e,et){if(k$2.isBuffer(_e))return _e.length;if(ArrayBuffer.isView(_e)||Et$1(_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 rt=_e.length,st=arguments.length>2&&arguments[2]===!0;if(!st&&rt===0)return 0;for(var ct=!1;;)switch(et){case"ascii":case"latin1":case"binary":return rt;case"utf8":case"utf-8":return Hs(_e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*rt;case"hex":return rt>>>1;case"base64":return xc(_e).length;default:if(ct)return st?-1:Hs(_e).length;et=(""+et).toLowerCase(),ct=!0}}function lw(_e,et,rt){var st=!1;if((et===void 0||et<0)&&(et=0),et>this.length||((rt===void 0||rt>this.length)&&(rt=this.length),rt<=0)||(rt>>>=0)<=(et>>>=0))return"";for(_e||(_e="utf8");;)switch(_e){case"hex":return bw(this,et,rt);case"utf8":case"utf-8":return Pc(this,et,rt);case"ascii":return gw(this,et,rt);case"latin1":case"binary":return yw(this,et,rt);case"base64":return pw(this,et,rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ww(this,et,rt);default:if(st)throw new TypeError("Unknown encoding: "+_e);_e=(_e+"").toLowerCase(),st=!0}}function sr(_e,et,rt){var st=_e[et];_e[et]=_e[rt],_e[rt]=st}function _c(_e,et,rt,st,ct){if(_e.length===0)return-1;if(typeof rt=="string"?(st=rt,rt=0):rt>2147483647?rt=2147483647:rt<-2147483648&&(rt=-2147483648),Ks(rt=+rt)&&(rt=ct?0:_e.length-1),rt<0&&(rt=_e.length+rt),rt>=_e.length){if(ct)return-1;rt=_e.length-1}else if(rt<0){if(!ct)return-1;rt=0}if(typeof et=="string"&&(et=k$2.from(et,st)),k$2.isBuffer(et))return et.length===0?-1:mc(_e,et,rt,st,ct);if(typeof et=="number")return et&=255,typeof Uint8Array.prototype.indexOf=="function"?ct?Uint8Array.prototype.indexOf.call(_e,et,rt):Uint8Array.prototype.lastIndexOf.call(_e,et,rt):mc(_e,[et],rt,st,ct);throw new TypeError("val must be string, number or Buffer")}function mc(_e,et,rt,st,ct){var ut,ft=1,gt=_e.length,xt=et.length;if(st!==void 0&&((st=String(st).toLowerCase())==="ucs2"||st==="ucs-2"||st==="utf16le"||st==="utf-16le")){if(_e.length<2||et.length<2)return-1;ft=2,gt/=2,xt/=2,rt/=2}function $t(Rt,It){return ft===1?Rt[It]:Rt.readUInt16BE(It*ft)}if(ct){var _t=-1;for(ut=rt;utgt&&(rt=gt-xt),ut=rt;ut>=0;ut--){for(var wt=!0,Tt=0;Ttct&&(st=ct):st=ct;var ut=et.length;st>ut/2&&(st=ut/2);for(var ft=0;ft>8,xt=ft%256,$t.push(xt),$t.push(gt);return $t}(et,_e.length-rt),_e,rt,st)}function pw(_e,et,rt){return et===0&&rt===_e.length?Ws.fromByteArray(_e):Ws.fromByteArray(_e.slice(et,rt))}function Pc(_e,et,rt){rt=Math.min(_e.length,rt);for(var st=[],ct=et;ct239?4:$t>223?3:$t>191?2:1;if(ct+wt<=rt)switch(wt){case 1:$t<128&&(_t=$t);break;case 2:(192&(ut=_e[ct+1]))==128&&(xt=(31&$t)<<6|63&ut)>127&&(_t=xt);break;case 3:ut=_e[ct+1],ft=_e[ct+2],(192&ut)==128&&(192&ft)==128&&(xt=(15&$t)<<12|(63&ut)<<6|63&ft)>2047&&(xt<55296||xt>57343)&&(_t=xt);break;case 4:ut=_e[ct+1],ft=_e[ct+2],gt=_e[ct+3],(192&ut)==128&&(192&ft)==128&&(192>)==128&&(xt=(15&$t)<<18|(63&ut)<<12|(63&ft)<<6|63>)>65535&&xt<1114112&&(_t=xt)}_t===null?(_t=65533,wt=1):_t>65535&&(_t-=65536,st.push(_t>>>10&1023|55296),_t=56320|1023&_t),st.push(_t),ct+=wt}return function(Tt){var Rt=Tt.length;if(Rt<=4096)return String.fromCharCode.apply(String,Tt);for(var It="",At=0;Atst)&&(rt=st);for(var ct="",ut=et;utrt)throw new RangeError("Trying to access beyond buffer length")}function Pe(_e,et,rt,st,ct,ut){if(!k$2.isBuffer(_e))throw new TypeError('"buffer" argument must be a Buffer instance');if(et>ct||et_e.length)throw new RangeError("Index out of range")}function Oc(_e,et,rt,st,ct,ut){if(rt+st>_e.length)throw new RangeError("Index out of range");if(rt<0)throw new RangeError("Index out of range")}function vc(_e,et,rt,st,ct){return et=+et,rt>>>=0,ct||Oc(_e,0,rt,4),Ur.write(_e,et,rt,st,23,4),rt+4}function Ec(_e,et,rt,st,ct){return et=+et,rt>>>=0,ct||Oc(_e,0,rt,8),Ur.write(_e,et,rt,st,52,8),rt+8}function Hs(_e,et){var rt;et=et||1/0;for(var st=_e.length,ct=null,ut=[],ft=0;ft55295&&rt<57344){if(!ct){if(rt>56319){(et-=3)>-1&&ut.push(239,191,189);continue}if(ft+1===st){(et-=3)>-1&&ut.push(239,191,189);continue}ct=rt;continue}if(rt<56320){(et-=3)>-1&&ut.push(239,191,189),ct=rt;continue}rt=65536+(ct-55296<<10|rt-56320)}else ct&&(et-=3)>-1&&ut.push(239,191,189);if(ct=null,rt<128){if((et-=1)<0)break;ut.push(rt)}else if(rt<2048){if((et-=2)<0)break;ut.push(rt>>6|192,63&rt|128)}else if(rt<65536){if((et-=3)<0)break;ut.push(rt>>12|224,rt>>6&63|128,63&rt|128)}else{if(!(rt<1114112))throw new Error("Invalid code point");if((et-=4)<0)break;ut.push(rt>>18|240,rt>>12&63|128,rt>>6&63|128,63&rt|128)}}return ut}function xc(_e){return Ws.toByteArray(function(et){if((et=(et=et.split("=")[0]).trim().replace(_w,"")).length<2)return"";for(;et.length%4!=0;)et+="=";return et}(_e))}function on(_e,et,rt,st){for(var ct=0;ct=et.length||ct>=_e.length);++ct)et[ct+rt]=_e[ct];return ct}function Et$1(_e,et){return _e instanceof et||_e!=null&&_e.constructor!=null&&_e.constructor.name!=null&&_e.constructor.name===et.name}function Ks(_e){return _e!=_e}function Sc(_e,et){for(var rt in _e)et[rt]=_e[rt]}function or(_e,et,rt){return it$1(_e,et,rt)}function ci(_e){var et;switch(this.encoding=function(rt){var st=function(ct){if(!ct)return"utf8";for(var ut;;)switch(ct){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 ct;default:if(ut)return;ct=(""+ct).toLowerCase(),ut=!0}}(rt);if(typeof st!="string"&&(Vs.isEncoding===Ac||!Ac(rt)))throw new Error("Unknown encoding: "+rt);return st||rt}(_e),this.encoding){case"utf16le":this.text=Sw,this.end=Aw,et=4;break;case"utf8":this.fillLast=Ew,et=4;break;case"base64":this.text=Iw,this.end=Tw,et=3;break;default:return this.write=Rw,this.end=Cw,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Vs.allocUnsafe(et)}function Fs(_e){return _e<=127?0:_e>>5==6?2:_e>>4==14?3:_e>>3==30?4:_e>>6==2?-1:-2}function Ew(_e){var et=this.lastTotal-this.lastNeed,rt=function(st,ct,ut){if((192&ct[0])!=128)return st.lastNeed=0,"�";if(st.lastNeed>1&&ct.length>1){if((192&ct[1])!=128)return st.lastNeed=1,"�";if(st.lastNeed>2&&ct.length>2&&(192&ct[2])!=128)return st.lastNeed=2,"�"}}(this,_e);return rt!==void 0?rt:this.lastNeed<=_e.length?(_e.copy(this.lastChar,et,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_e.copy(this.lastChar,et,0,_e.length),this.lastNeed-=_e.length,void 0)}function Sw(_e,et){if((_e.length-et)%2==0){var rt=_e.toString("utf16le",et);if(rt){var st=rt.charCodeAt(rt.length-1);if(st>=55296&&st<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_e[_e.length-2],this.lastChar[1]=_e[_e.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_e[_e.length-1],_e.toString("utf16le",et,_e.length-1)}function Aw(_e){var et=_e&&_e.length?this.write(_e):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return et+this.lastChar.toString("utf16le",0,rt)}return et}function Iw(_e,et){var rt=(_e.length-et)%3;return rt===0?_e.toString("base64",et):(this.lastNeed=3-rt,this.lastTotal=3,rt===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",et,_e.length-rt))}function Tw(_e){var et=_e&&_e.length?this.write(_e):"";return this.lastNeed?et+this.lastChar.toString("base64",0,3-this.lastNeed):et}function Rw(_e){return _e.toString(this.encoding)}function Cw(_e){return _e&&_e.length?this.write(_e):""}var Ic,$e,xe,pc,rn,nr,gc,aw,St,Ws,Ur,bc,_w,mw,nn,sn,it$1,vw,ar,Vs,Ac,Gs=be$1(()=>{for(_$2(),v$1(),m$1(),Ic={byteLength:function(_e){var et=yc(_e),rt=et[0],st=et[1];return 3*(rt+st)/4-st},toByteArray:function(_e){var et,rt,st=yc(_e),ct=st[0],ut=st[1],ft=new pc(function($t,_t,wt){return 3*(_t+wt)/4-wt}(0,ct,ut)),gt=0,xt=ut>0?ct-4:ct;for(rt=0;rt>16&255,ft[gt++]=et>>8&255,ft[gt++]=255&et;return ut===2&&(et=xe[_e.charCodeAt(rt)]<<2|xe[_e.charCodeAt(rt+1)]>>4,ft[gt++]=255&et),ut===1&&(et=xe[_e.charCodeAt(rt)]<<10|xe[_e.charCodeAt(rt+1)]<<4|xe[_e.charCodeAt(rt+2)]>>2,ft[gt++]=et>>8&255,ft[gt++]=255&et),ft},fromByteArray:function(_e){for(var et,rt=_e.length,st=rt%3,ct=[],ut=0,ft=rt-st;utft?ft:ut+16383));return st===1?(et=_e[rt-1],ct.push($e[et>>2]+$e[et<<4&63]+"==")):st===2&&(et=(_e[rt-2]<<8)+_e[rt-1],ct.push($e[et>>10]+$e[et>>4&63]+$e[et<<2&63]+"=")),ct.join("")}},$e=[],xe=[],pc=typeof Uint8Array<"u"?Uint8Array:Array,rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=0,gc=rn.length;nr>1,_t=-7,wt=rt?ct-1:0,Tt=rt?-1:1,Rt=_e[et+wt];for(wt+=Tt,ut=Rt&(1<<-_t)-1,Rt>>=-_t,_t+=gt;_t>0;ut=256*ut+_e[et+wt],wt+=Tt,_t-=8);for(ft=ut&(1<<-_t)-1,ut>>=-_t,_t+=st;_t>0;ft=256*ft+_e[et+wt],wt+=Tt,_t-=8);if(ut===0)ut=1-$t;else{if(ut===xt)return ft?NaN:1/0*(Rt?-1:1);ft+=Math.pow(2,st),ut-=$t}return(Rt?-1:1)*ft*Math.pow(2,ut-st)},write:function(_e,et,rt,st,ct,ut){var ft,gt,xt,$t=8*ut-ct-1,_t=(1<<$t)-1,wt=_t>>1,Tt=ct===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rt=st?0:ut-1,It=st?1:-1,At=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(gt=isNaN(et)?1:0,ft=_t):(ft=Math.floor(Math.log(et)/Math.LN2),et*(xt=Math.pow(2,-ft))<1&&(ft--,xt*=2),(et+=ft+wt>=1?Tt/xt:Tt*Math.pow(2,1-wt))*xt>=2&&(ft++,xt/=2),ft+wt>=_t?(gt=0,ft=_t):ft+wt>=1?(gt=(et*xt-1)*Math.pow(2,ct),ft+=wt):(gt=et*Math.pow(2,wt-1)*Math.pow(2,ct),ft=0));ct>=8;_e[rt+Rt]=255>,Rt+=It,gt/=256,ct-=8);for(ft=ft<0;_e[rt+Rt]=255&ft,Rt+=It,ft/=256,$t-=8);_e[rt+Rt-It]|=128*At}},St={},Ws=Ic,Ur=aw,bc=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,St.Buffer=k$2,St.SlowBuffer=function(_e){return+_e!=_e&&(_e=0),k$2.alloc(+_e)},St.INSPECT_MAX_BYTES=50,St.kMaxLength=2147483647,k$2.TYPED_ARRAY_SUPPORT=function(){try{var _e=new Uint8Array(1),et={foo:function(){return 42}};return Object.setPrototypeOf(et,Uint8Array.prototype),Object.setPrototypeOf(_e,et),_e.foo()===42}catch{return!1}}(),k$2.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(k$2.prototype,"parent",{enumerable:!0,get:function(){if(k$2.isBuffer(this))return this.buffer}}),Object.defineProperty(k$2.prototype,"offset",{enumerable:!0,get:function(){if(k$2.isBuffer(this))return this.byteOffset}}),k$2.poolSize=8192,k$2.from=function(_e,et,rt){return Tc(_e,et,rt)},Object.setPrototypeOf(k$2.prototype,Uint8Array.prototype),Object.setPrototypeOf(k$2,Uint8Array),k$2.alloc=function(_e,et,rt){return function(st,ct,ut){return Rc(st),st<=0?vt(st):ct!==void 0?typeof ut=="string"?vt(st).fill(ct,ut):vt(st).fill(ct):vt(st)}(_e,et,rt)},k$2.allocUnsafe=function(_e){return $s(_e)},k$2.allocUnsafeSlow=function(_e){return $s(_e)},k$2.isBuffer=function(_e){return _e!=null&&_e._isBuffer===!0&&_e!==k$2.prototype},k$2.compare=function(_e,et){if(Et$1(_e,Uint8Array)&&(_e=k$2.from(_e,_e.offset,_e.byteLength)),Et$1(et,Uint8Array)&&(et=k$2.from(et,et.offset,et.byteLength)),!k$2.isBuffer(_e)||!k$2.isBuffer(et))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_e===et)return 0;for(var rt=_e.length,st=et.length,ct=0,ut=Math.min(rt,st);ctet&&(_e+=" ... "),""},bc&&(k$2.prototype[bc]=k$2.prototype.inspect),k$2.prototype.compare=function(_e,et,rt,st,ct){if(Et$1(_e,Uint8Array)&&(_e=k$2.from(_e,_e.offset,_e.byteLength)),!k$2.isBuffer(_e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _e);if(et===void 0&&(et=0),rt===void 0&&(rt=_e?_e.length:0),st===void 0&&(st=0),ct===void 0&&(ct=this.length),et<0||rt>_e.length||st<0||ct>this.length)throw new RangeError("out of range index");if(st>=ct&&et>=rt)return 0;if(st>=ct)return-1;if(et>=rt)return 1;if(this===_e)return 0;for(var ut=(ct>>>=0)-(st>>>=0),ft=(rt>>>=0)-(et>>>=0),gt=Math.min(ut,ft),xt=this.slice(st,ct),$t=_e.slice(et,rt),_t=0;_t>>=0,isFinite(rt)?(rt>>>=0,st===void 0&&(st="utf8")):(st=rt,rt=void 0)}var ct=this.length-et;if((rt===void 0||rt>ct)&&(rt=ct),_e.length>0&&(rt<0||et<0)||et>this.length)throw new RangeError("Attempt to write outside buffer bounds");st||(st="utf8");for(var ut=!1;;)switch(st){case"hex":return uw(this,_e,et,rt);case"utf8":case"utf-8":return fw(this,_e,et,rt);case"ascii":return Bc(this,_e,et,rt);case"latin1":case"binary":return cw(this,_e,et,rt);case"base64":return hw(this,_e,et,rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dw(this,_e,et,rt);default:if(ut)throw new TypeError("Unknown encoding: "+st);st=(""+st).toLowerCase(),ut=!0}},k$2.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},k$2.prototype.slice=function(_e,et){var rt=this.length;(_e=~~_e)<0?(_e+=rt)<0&&(_e=0):_e>rt&&(_e=rt),(et=et===void 0?rt:~~et)<0?(et+=rt)<0&&(et=0):et>rt&&(et=rt),et<_e&&(et=_e);var st=this.subarray(_e,et);return Object.setPrototypeOf(st,k$2.prototype),st},k$2.prototype.readUIntLE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e],ct=1,ut=0;++ut>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e+--et],ct=1;et>0&&(ct*=256);)st+=this[_e+--et]*ct;return st},k$2.prototype.readUInt8=function(_e,et){return _e>>>=0,et||ye(_e,1,this.length),this[_e]},k$2.prototype.readUInt16LE=function(_e,et){return _e>>>=0,et||ye(_e,2,this.length),this[_e]|this[_e+1]<<8},k$2.prototype.readUInt16BE=function(_e,et){return _e>>>=0,et||ye(_e,2,this.length),this[_e]<<8|this[_e+1]},k$2.prototype.readUInt32LE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),(this[_e]|this[_e+1]<<8|this[_e+2]<<16)+16777216*this[_e+3]},k$2.prototype.readUInt32BE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),16777216*this[_e]+(this[_e+1]<<16|this[_e+2]<<8|this[_e+3])},k$2.prototype.readIntLE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e],ct=1,ut=0;++ut=(ct*=128)&&(st-=Math.pow(2,8*et)),st},k$2.prototype.readIntBE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=et,ct=1,ut=this[_e+--st];st>0&&(ct*=256);)ut+=this[_e+--st]*ct;return ut>=(ct*=128)&&(ut-=Math.pow(2,8*et)),ut},k$2.prototype.readInt8=function(_e,et){return _e>>>=0,et||ye(_e,1,this.length),128&this[_e]?-1*(255-this[_e]+1):this[_e]},k$2.prototype.readInt16LE=function(_e,et){_e>>>=0,et||ye(_e,2,this.length);var rt=this[_e]|this[_e+1]<<8;return 32768&rt?4294901760|rt:rt},k$2.prototype.readInt16BE=function(_e,et){_e>>>=0,et||ye(_e,2,this.length);var rt=this[_e+1]|this[_e]<<8;return 32768&rt?4294901760|rt:rt},k$2.prototype.readInt32LE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),this[_e]|this[_e+1]<<8|this[_e+2]<<16|this[_e+3]<<24},k$2.prototype.readInt32BE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),this[_e]<<24|this[_e+1]<<16|this[_e+2]<<8|this[_e+3]},k$2.prototype.readFloatLE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),Ur.read(this,_e,!0,23,4)},k$2.prototype.readFloatBE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),Ur.read(this,_e,!1,23,4)},k$2.prototype.readDoubleLE=function(_e,et){return _e>>>=0,et||ye(_e,8,this.length),Ur.read(this,_e,!0,52,8)},k$2.prototype.readDoubleBE=function(_e,et){return _e>>>=0,et||ye(_e,8,this.length),Ur.read(this,_e,!1,52,8)},k$2.prototype.writeUIntLE=function(_e,et,rt,st){_e=+_e,et>>>=0,rt>>>=0,st||Pe(this,_e,et,rt,Math.pow(2,8*rt)-1,0);var ct=1,ut=0;for(this[et]=255&_e;++ut>>=0,rt>>>=0,st||Pe(this,_e,et,rt,Math.pow(2,8*rt)-1,0);var ct=rt-1,ut=1;for(this[et+ct]=255&_e;--ct>=0&&(ut*=256);)this[et+ct]=_e/ut&255;return et+rt},k$2.prototype.writeUInt8=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,1,255,0),this[et]=255&_e,et+1},k$2.prototype.writeUInt16LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,65535,0),this[et]=255&_e,this[et+1]=_e>>>8,et+2},k$2.prototype.writeUInt16BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,65535,0),this[et]=_e>>>8,this[et+1]=255&_e,et+2},k$2.prototype.writeUInt32LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,4294967295,0),this[et+3]=_e>>>24,this[et+2]=_e>>>16,this[et+1]=_e>>>8,this[et]=255&_e,et+4},k$2.prototype.writeUInt32BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,4294967295,0),this[et]=_e>>>24,this[et+1]=_e>>>16,this[et+2]=_e>>>8,this[et+3]=255&_e,et+4},k$2.prototype.writeIntLE=function(_e,et,rt,st){if(_e=+_e,et>>>=0,!st){var ct=Math.pow(2,8*rt-1);Pe(this,_e,et,rt,ct-1,-ct)}var ut=0,ft=1,gt=0;for(this[et]=255&_e;++ut>0)-gt&255;return et+rt},k$2.prototype.writeIntBE=function(_e,et,rt,st){if(_e=+_e,et>>>=0,!st){var ct=Math.pow(2,8*rt-1);Pe(this,_e,et,rt,ct-1,-ct)}var ut=rt-1,ft=1,gt=0;for(this[et+ut]=255&_e;--ut>=0&&(ft*=256);)_e<0&>===0&&this[et+ut+1]!==0&&(gt=1),this[et+ut]=(_e/ft>>0)-gt&255;return et+rt},k$2.prototype.writeInt8=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,1,127,-128),_e<0&&(_e=255+_e+1),this[et]=255&_e,et+1},k$2.prototype.writeInt16LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,32767,-32768),this[et]=255&_e,this[et+1]=_e>>>8,et+2},k$2.prototype.writeInt16BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,32767,-32768),this[et]=_e>>>8,this[et+1]=255&_e,et+2},k$2.prototype.writeInt32LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,2147483647,-2147483648),this[et]=255&_e,this[et+1]=_e>>>8,this[et+2]=_e>>>16,this[et+3]=_e>>>24,et+4},k$2.prototype.writeInt32BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,2147483647,-2147483648),_e<0&&(_e=4294967295+_e+1),this[et]=_e>>>24,this[et+1]=_e>>>16,this[et+2]=_e>>>8,this[et+3]=255&_e,et+4},k$2.prototype.writeFloatLE=function(_e,et,rt){return vc(this,_e,et,!0,rt)},k$2.prototype.writeFloatBE=function(_e,et,rt){return vc(this,_e,et,!1,rt)},k$2.prototype.writeDoubleLE=function(_e,et,rt){return Ec(this,_e,et,!0,rt)},k$2.prototype.writeDoubleBE=function(_e,et,rt){return Ec(this,_e,et,!1,rt)},k$2.prototype.copy=function(_e,et,rt,st){if(!k$2.isBuffer(_e))throw new TypeError("argument should be a Buffer");if(rt||(rt=0),st||st===0||(st=this.length),et>=_e.length&&(et=_e.length),et||(et=0),st>0&&st=this.length)throw new RangeError("Index out of range");if(st<0)throw new RangeError("sourceEnd out of bounds");st>this.length&&(st=this.length),_e.length-et=0;--ut)_e[ut+et]=this[ut+rt];else Uint8Array.prototype.set.call(_e,this.subarray(rt,st),et);return ct},k$2.prototype.fill=function(_e,et,rt,st){if(typeof _e=="string"){if(typeof et=="string"?(st=et,et=0,rt=this.length):typeof rt=="string"&&(st=rt,rt=this.length),st!==void 0&&typeof st!="string")throw new TypeError("encoding must be a string");if(typeof st=="string"&&!k$2.isEncoding(st))throw new TypeError("Unknown encoding: "+st);if(_e.length===1){var ct=_e.charCodeAt(0);(st==="utf8"&&ct<128||st==="latin1")&&(_e=ct)}}else typeof _e=="number"?_e&=255:typeof _e=="boolean"&&(_e=Number(_e));if(et<0||this.length>>=0,rt=rt===void 0?this.length:rt>>>0,_e||(_e=0),typeof _e=="number")for(ut=et;ut=0?(xt>0&&(ct.lastNeed=xt-1),xt):--gt=0?(xt>0&&(ct.lastNeed=xt-2),xt):--gt=0?(xt>0&&(xt===2?xt=0:ct.lastNeed=xt-3),xt):0}(this,_e,et);if(!this.lastNeed)return _e.toString("utf8",et);this.lastTotal=rt;var st=_e.length-(rt-this.lastNeed);return _e.copy(this.lastChar,0,st),_e.toString("utf8",et,st)},ci.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},ar.StringDecoder,ar.StringDecoder}),kc={};Qt(kc,{StringDecoder:()=>Bw,default:()=>ar});var Bw,Mc=be$1(()=>{_$2(),v$1(),m$1(),Gs(),Gs(),Bw=ar.StringDecoder}),Qs=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{PromisePrototypeThen:st,SymbolAsyncIterator:ct,SymbolIterator:ut}=ce(),{Buffer:ft}=(we(),Z(ve)),{ERR_INVALID_ARG_TYPE:gt,ERR_STREAM_NULL_VALUES:xt}=Se().codes;function $t(_t,wt,Tt){let Rt;if(typeof wt=="string"||wt instanceof ft)return new _t({objectMode:!0,...Tt,read(){this.push(wt),this.push(null)}});let It;if(wt&&wt[ct])It=!0,Rt=wt[ct]();else if(wt&&wt[ut])It=!1,Rt=wt[ut]();else throw new gt("iterable",["Iterable"],wt);let At=new _t({objectMode:!0,highWaterMark:1,...Tt}),jt=!1;At._read=function(){jt||(jt=!0,kt())},At._destroy=function(Ft,Ht){st(Nt(Ft),()=>rt.nextTick(Ht,Ft),Wt=>rt.nextTick(Ht,Wt||Ft))};async function Nt(Ft){let Ht=Ft!=null,Wt=typeof Rt.throw=="function";if(Ht&&Wt){let{value:Vt,done:qt}=await Rt.throw(Ft);if(await Vt,qt)return}if(typeof Rt.return=="function"){let{value:Vt}=await Rt.return();await Vt}}async function kt(){for(;;){try{let{value:Ft,done:Ht}=It?await Rt.next():Rt.next();if(Ht)At.push(null);else{let Wt=Ft&&typeof Ft.then=="function"?await Ft:Ft;if(Wt===null)throw jt=!1,new xt;if(At.push(Wt))continue;jt=!1}}catch(Ft){At.destroy(Ft)}break}}return At}et.exports=$t}),hi=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayPrototypeIndexOf:st,NumberIsInteger:ct,NumberIsNaN:ut,NumberParseInt:ft,ObjectDefineProperties:gt,ObjectKeys:xt,ObjectSetPrototypeOf:$t,Promise:_t,SafeSet:wt,SymbolAsyncIterator:Tt,Symbol:Rt}=ce();et.exports=mr,mr.ReadableState=Er;var{EventEmitter:It}=(ir(),Z(rr)),{Stream:At,prependListener:jt}=Xi(),{Buffer:Nt}=(we(),Z(ve)),{addAbortSignal:kt}=fi(),Ft=mt(),Ht=Je().debuglog("stream",gr=>{Ht=gr}),Wt=cc(),Vt=tr(),{getHighWaterMark:qt,getDefaultHighWaterMark:Gt}=tn(),{aggregateTwoErrors:Xt,codes:{ERR_INVALID_ARG_TYPE:Zt,ERR_METHOD_NOT_IMPLEMENTED:lr,ERR_OUT_OF_RANGE:er,ERR_STREAM_PUSH_AFTER_EOF:cr,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:ur}}=Se(),{validateObject:pr}=ui(),hr=Rt("kPaused"),{StringDecoder:fr}=(Mc(),Z(kc)),dr=Qs();$t(mr.prototype,At.prototype),$t(mr,At);var yr=()=>{},{errorOrDestroy:$r}=Vt;function Er(gr,br,Hr){typeof Hr!="boolean"&&(Hr=br instanceof nt()),this.objectMode=!!(gr&&gr.objectMode),Hr&&(this.objectMode=this.objectMode||!!(gr&&gr.readableObjectMode)),this.highWaterMark=gr?qt(this,gr,"readableHighWaterMark",Hr):Gt(!1),this.buffer=new Wt,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[hr]=null,this.errorEmitted=!1,this.emitClose=!gr||gr.emitClose!==!1,this.autoDestroy=!gr||gr.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=gr&&gr.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,gr&&gr.encoding&&(this.decoder=new fr(gr.encoding),this.encoding=gr.encoding)}function mr(gr){if(!(this instanceof mr))return new mr(gr);let br=this instanceof nt();this._readableState=new Er(gr,this,br),gr&&(typeof gr.read=="function"&&(this._read=gr.read),typeof gr.destroy=="function"&&(this._destroy=gr.destroy),typeof gr.construct=="function"&&(this._construct=gr.construct),gr.signal&&!br&&kt(gr.signal,this)),At.call(this,gr),Vt.construct(this,()=>{this._readableState.needReadable&&Pr(this,this._readableState)})}mr.prototype.destroy=Vt.destroy,mr.prototype._undestroy=Vt.undestroy,mr.prototype._destroy=function(gr,br){br(gr)},mr.prototype[It.captureRejectionSymbol]=function(gr){this.destroy(gr)},mr.prototype.push=function(gr,br){return Sr(this,gr,br,!1)},mr.prototype.unshift=function(gr,br){return Sr(this,gr,br,!0)};function Sr(gr,br,Hr,Vr){Ht("readableAddChunk",br);let Wr=gr._readableState,Gr;if(Wr.objectMode||(typeof br=="string"?(Hr=Hr||Wr.defaultEncoding,Wr.encoding!==Hr&&(Vr&&Wr.encoding?br=Nt.from(br,Hr).toString(Wr.encoding):(br=Nt.from(br,Hr),Hr=""))):br instanceof Nt?Hr="":At._isUint8Array(br)?(br=At._uint8ArrayToBuffer(br),Hr=""):br!=null&&(Gr=new Zt("chunk",["string","Buffer","Uint8Array"],br))),Gr)$r(gr,Gr);else if(br===null)Wr.reading=!1,Cr(gr,Wr);else if(Wr.objectMode||br&&br.length>0)if(Vr)if(Wr.endEmitted)$r(gr,new ur);else{if(Wr.destroyed||Wr.errored)return!1;Tr(gr,Wr,br,!0)}else if(Wr.ended)$r(gr,new cr);else{if(Wr.destroyed||Wr.errored)return!1;Wr.reading=!1,Wr.decoder&&!Hr?(br=Wr.decoder.write(br),Wr.objectMode||br.length!==0?Tr(gr,Wr,br,!1):Pr(gr,Wr)):Tr(gr,Wr,br,!1)}else Vr||(Wr.reading=!1,Pr(gr,Wr));return!Wr.ended&&(Wr.length0?(br.multiAwaitDrain?br.awaitDrainWriters.clear():br.awaitDrainWriters=null,br.dataEmitted=!0,gr.emit("data",Hr)):(br.length+=br.objectMode?1:Hr.length,Vr?br.buffer.unshift(Hr):br.buffer.push(Hr),br.needReadable&&Nr(gr)),Pr(gr,br)}mr.prototype.isPaused=function(){let gr=this._readableState;return gr[hr]===!0||gr.flowing===!1},mr.prototype.setEncoding=function(gr){let br=new fr(gr);this._readableState.decoder=br,this._readableState.encoding=this._readableState.decoder.encoding;let Hr=this._readableState.buffer,Vr="";for(let Wr of Hr)Vr+=br.write(Wr);return Hr.clear(),Vr!==""&&Hr.push(Vr),this._readableState.length=Vr.length,this};var jr=1073741824;function Or(gr){if(gr>jr)throw new er("size","<= 1GiB",gr);return gr--,gr|=gr>>>1,gr|=gr>>>2,gr|=gr>>>4,gr|=gr>>>8,gr|=gr>>>16,gr++,gr}function _r(gr,br){return gr<=0||br.length===0&&br.ended?0:br.objectMode?1:ut(gr)?br.flowing&&br.length?br.buffer.first().length:br.length:gr<=br.length?gr:br.ended?br.length:0}mr.prototype.read=function(gr){Ht("read",gr),gr===void 0?gr=NaN:ct(gr)||(gr=ft(gr,10));let br=this._readableState,Hr=gr;if(gr>br.highWaterMark&&(br.highWaterMark=Or(gr)),gr!==0&&(br.emittedReadable=!1),gr===0&&br.needReadable&&((br.highWaterMark!==0?br.length>=br.highWaterMark:br.length>0)||br.ended))return Ht("read: emitReadable",br.length,br.ended),br.length===0&&br.ended?pn(this):Nr(this),null;if(gr=_r(gr,br),gr===0&&br.ended)return br.length===0&&pn(this),null;let Vr=br.needReadable;if(Ht("need readable",Vr),(br.length===0||br.length-gr0?Wr=qr(gr,br):Wr=null,Wr===null?(br.needReadable=br.length<=br.highWaterMark,gr=0):(br.length-=gr,br.multiAwaitDrain?br.awaitDrainWriters.clear():br.awaitDrainWriters=null),br.length===0&&(br.ended||(br.needReadable=!0),Hr!==gr&&br.ended&&pn(this)),Wr!==null&&!br.errorEmitted&&!br.closeEmitted&&(br.dataEmitted=!0,this.emit("data",Wr)),Wr};function Cr(gr,br){if(Ht("onEofChunk"),!br.ended){if(br.decoder){let Hr=br.decoder.end();Hr&&Hr.length&&(br.buffer.push(Hr),br.length+=br.objectMode?1:Hr.length)}br.ended=!0,br.sync?Nr(gr):(br.needReadable=!1,br.emittedReadable=!0,Rr(gr))}}function Nr(gr){let br=gr._readableState;Ht("emitReadable",br.needReadable,br.emittedReadable),br.needReadable=!1,br.emittedReadable||(Ht("emitReadable",br.flowing),br.emittedReadable=!0,rt.nextTick(Rr,gr))}function Rr(gr){let br=gr._readableState;Ht("emitReadable_",br.destroyed,br.length,br.ended),!br.destroyed&&!br.errored&&(br.length||br.ended)&&(gr.emit("readable"),br.emittedReadable=!1),br.needReadable=!br.flowing&&!br.ended&&br.length<=br.highWaterMark,Xr(gr)}function Pr(gr,br){!br.readingMore&&br.constructed&&(br.readingMore=!0,rt.nextTick(Mr,gr,br))}function Mr(gr,br){for(;!br.reading&&!br.ended&&(br.length1&&Vr.pipes.includes(gr)&&(Ht("false write response, pause",Vr.awaitDrainWriters.size),Vr.awaitDrainWriters.add(gr)),Hr.pause()),mn||(mn=kr(Hr,gr),gr.on("drain",mn))}Hr.on("data",Dn);function Dn(dn){Ht("ondata");let gn=gr.write(dn);Ht("dest.write",gn),gn===!1&&Rn()}function Bn(dn){if(Ht("onerror",dn),ao(),gr.removeListener("error",Bn),gr.listenerCount("error")===0){let gn=gr._writableState||gr._readableState;gn&&!gn.errorEmitted?$r(gr,dn):gr.emit("error",dn)}}jt(gr,"error",Bn);function Yn(){gr.removeListener("finish",qn),ao()}gr.once("close",Yn);function qn(){Ht("onfinish"),gr.removeListener("close",Yn),ao()}gr.once("finish",qn);function ao(){Ht("unpipe"),Hr.unpipe(gr)}return gr.emit("pipe",Hr),gr.writableNeedDrain===!0?Vr.flowing&&Rn():Vr.flowing||(Ht("pipe resume"),Hr.resume()),gr};function kr(gr,br){return function(){let Hr=gr._readableState;Hr.awaitDrainWriters===br?(Ht("pipeOnDrain",1),Hr.awaitDrainWriters=null):Hr.multiAwaitDrain&&(Ht("pipeOnDrain",Hr.awaitDrainWriters.size),Hr.awaitDrainWriters.delete(br)),(!Hr.awaitDrainWriters||Hr.awaitDrainWriters.size===0)&&gr.listenerCount("data")&&gr.resume()}}mr.prototype.unpipe=function(gr){let br=this._readableState,Hr={hasUnpiped:!1};if(br.pipes.length===0)return this;if(!gr){let Wr=br.pipes;br.pipes=[],this.pause();for(let Gr=0;Gr0,Vr.flowing!==!1&&this.resume()):gr==="readable"&&!Vr.endEmitted&&!Vr.readableListening&&(Vr.readableListening=Vr.needReadable=!0,Vr.flowing=!1,Vr.emittedReadable=!1,Ht("on readable",Vr.length,Vr.reading),Vr.length?Nr(this):Vr.reading||rt.nextTick(wr,this)),Hr},mr.prototype.addListener=mr.prototype.on,mr.prototype.removeListener=function(gr,br){let Hr=At.prototype.removeListener.call(this,gr,br);return gr==="readable"&&rt.nextTick(Fr,this),Hr},mr.prototype.off=mr.prototype.removeListener,mr.prototype.removeAllListeners=function(gr){let br=At.prototype.removeAllListeners.apply(this,arguments);return(gr==="readable"||gr===void 0)&&rt.nextTick(Fr,this),br};function Fr(gr){let br=gr._readableState;br.readableListening=gr.listenerCount("readable")>0,br.resumeScheduled&&br[hr]===!1?br.flowing=!0:gr.listenerCount("data")>0?gr.resume():br.readableListening||(br.flowing=null)}function wr(gr){Ht("readable nexttick read 0"),gr.read(0)}mr.prototype.resume=function(){let gr=this._readableState;return gr.flowing||(Ht("resume"),gr.flowing=!gr.readableListening,Br(this,gr)),gr[hr]=!1,this};function Br(gr,br){br.resumeScheduled||(br.resumeScheduled=!0,rt.nextTick(Dr,gr,br))}function Dr(gr,br){Ht("resume",br.reading),br.reading||gr.read(0),br.resumeScheduled=!1,gr.emit("resume"),Xr(gr),br.flowing&&!br.reading&&gr.read(0)}mr.prototype.pause=function(){return Ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[hr]=!0,this};function Xr(gr){let br=gr._readableState;for(Ht("flow",br.flowing);br.flowing&&gr.read()!==null;);}mr.prototype.wrap=function(gr){let br=!1;gr.on("data",Vr=>{!this.push(Vr)&&gr.pause&&(br=!0,gr.pause())}),gr.on("end",()=>{this.push(null)}),gr.on("error",Vr=>{$r(this,Vr)}),gr.on("close",()=>{this.destroy()}),gr.on("destroy",()=>{this.destroy()}),this._read=()=>{br&&gr.resume&&(br=!1,gr.resume())};let Hr=xt(gr);for(let Vr=1;Vr{Wr=cn?Xt(Wr,cn):null,Hr(),Hr=yr});try{for(;;){let cn=gr.destroyed?null:gr.read();if(cn!==null)yield cn;else{if(Wr)throw Wr;if(Wr===null)return;await new _t(Vr)}}}catch(cn){throw Wr=Xt(Wr,cn),Wr}finally{(Wr||(br==null?void 0:br.destroyOnReturn)!==!1)&&(Wr===void 0||gr._readableState.autoDestroy)?Vt.destroyer(gr,null):(gr.off("readable",Vr),Gr())}}gt(mr.prototype,{readable:{__proto__:null,get(){let gr=this._readableState;return!!gr&&gr.readable!==!1&&!gr.destroyed&&!gr.errorEmitted&&!gr.endEmitted},set(gr){this._readableState&&(this._readableState.readable=!!gr)}},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(gr){this._readableState&&(this._readableState.flowing=gr)}},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(gr){this._readableState&&(this._readableState.destroyed=gr)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),gt(Er.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[hr]!==!1},set(gr){this[hr]=!!gr}}}),mr._fromList=qr;function qr(gr,br){if(br.length===0)return null;let Hr;return br.objectMode?Hr=br.buffer.shift():!gr||gr>=br.length?(br.decoder?Hr=br.buffer.join(""):br.buffer.length===1?Hr=br.buffer.first():Hr=br.buffer.concat(br.length),br.buffer.clear()):Hr=br.buffer.consume(gr,br.decoder),Hr}function pn(gr){let br=gr._readableState;Ht("endReadable",br.endEmitted),br.endEmitted||(br.ended=!0,rt.nextTick(Qr,br,gr))}function Qr(gr,br){if(Ht("endReadableNT",gr.endEmitted,gr.length),!gr.errored&&!gr.closeEmitted&&!gr.endEmitted&&gr.length===0){if(gr.endEmitted=!0,br.emit("end"),br.writable&&br.allowHalfOpen===!1)rt.nextTick(Zr,br);else if(gr.autoDestroy){let Hr=br._writableState;(!Hr||Hr.autoDestroy&&(Hr.finished||Hr.writable===!1))&&br.destroy()}}}function Zr(gr){gr.writable&&!gr.writableEnded&&!gr.destroyed&&gr.end()}mr.from=function(gr,br){return dr(mr,gr,br)};var vn;function vr(){return vn===void 0&&(vn={}),vn}mr.fromWeb=function(gr,br){return vr().newStreamReadableFromReadableStream(gr,br)},mr.toWeb=function(gr,br){return vr().newReadableStreamFromStreamReadable(gr,br)},mr.wrap=function(gr,br){var Hr,Vr;return new mr({objectMode:(Hr=(Vr=gr.readableObjectMode)!==null&&Vr!==void 0?Vr:gr.objectMode)!==null&&Hr!==void 0?Hr:!0,...br,destroy(Wr,Gr){Vt.destroyer(gr,Wr),Gr(Wr)}}).wrap(gr)}}),lo=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayPrototypeSlice:st,Error:ct,FunctionPrototypeSymbolHasInstance:ut,ObjectDefineProperty:ft,ObjectDefineProperties:gt,ObjectSetPrototypeOf:xt,StringPrototypeToLowerCase:$t,Symbol:_t,SymbolHasInstance:wt}=ce();et.exports=fr,fr.WritableState=pr;var{EventEmitter:Tt}=(ir(),Z(rr)),Rt=Xi().Stream,{Buffer:It}=(we(),Z(ve)),At=tr(),{addAbortSignal:jt}=fi(),{getHighWaterMark:Nt,getDefaultHighWaterMark:kt}=tn(),{ERR_INVALID_ARG_TYPE:Ft,ERR_METHOD_NOT_IMPLEMENTED:Ht,ERR_MULTIPLE_CALLBACK:Wt,ERR_STREAM_CANNOT_PIPE:Vt,ERR_STREAM_DESTROYED:qt,ERR_STREAM_ALREADY_FINISHED:Gt,ERR_STREAM_NULL_VALUES:Xt,ERR_STREAM_WRITE_AFTER_END:Zt,ERR_UNKNOWN_ENCODING:lr}=Se().codes,{errorOrDestroy:er}=At;xt(fr.prototype,Rt.prototype),xt(fr,Rt);function cr(){}var ur=_t("kOnFinished");function pr(wr,Br,Dr){typeof Dr!="boolean"&&(Dr=Br instanceof nt()),this.objectMode=!!(wr&&wr.objectMode),Dr&&(this.objectMode=this.objectMode||!!(wr&&wr.writableObjectMode)),this.highWaterMark=wr?Nt(this,wr,"writableHighWaterMark",Dr):kt(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Xr=!!(wr&&wr.decodeStrings===!1);this.decodeStrings=!Xr,this.defaultEncoding=wr&&wr.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=mr.bind(void 0,Br),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,hr(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!wr||wr.emitClose!==!1,this.autoDestroy=!wr||wr.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ur]=[]}function hr(wr){wr.buffered=[],wr.bufferedIndex=0,wr.allBuffers=!0,wr.allNoop=!0}pr.prototype.getBuffer=function(){return st(this.buffered,this.bufferedIndex)},ft(pr.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function fr(wr){let Br=this instanceof nt();if(!Br&&!ut(fr,this))return new fr(wr);this._writableState=new pr(wr,this,Br),wr&&(typeof wr.write=="function"&&(this._write=wr.write),typeof wr.writev=="function"&&(this._writev=wr.writev),typeof wr.destroy=="function"&&(this._destroy=wr.destroy),typeof wr.final=="function"&&(this._final=wr.final),typeof wr.construct=="function"&&(this._construct=wr.construct),wr.signal&&jt(wr.signal,this)),Rt.call(this,wr),At.construct(this,()=>{let Dr=this._writableState;Dr.writing||Or(this,Dr),Rr(this,Dr)})}ft(fr,wt,{__proto__:null,value:function(wr){return ut(this,wr)?!0:this!==fr?!1:wr&&wr._writableState instanceof pr}}),fr.prototype.pipe=function(){er(this,new Vt)};function dr(wr,Br,Dr,Xr){let Kr=wr._writableState;if(typeof Dr=="function")Xr=Dr,Dr=Kr.defaultEncoding;else{if(!Dr)Dr=Kr.defaultEncoding;else if(Dr!=="buffer"&&!It.isEncoding(Dr))throw new lr(Dr);typeof Xr!="function"&&(Xr=cr)}if(Br===null)throw new Xt;if(!Kr.objectMode)if(typeof Br=="string")Kr.decodeStrings!==!1&&(Br=It.from(Br,Dr),Dr="buffer");else if(Br instanceof It)Dr="buffer";else if(Rt._isUint8Array(Br))Br=Rt._uint8ArrayToBuffer(Br),Dr="buffer";else throw new Ft("chunk",["string","Buffer","Uint8Array"],Br);let zr;return Kr.ending?zr=new Zt:Kr.destroyed&&(zr=new qt("write")),zr?(rt.nextTick(Xr,zr),er(wr,zr,!0),zr):(Kr.pendingcb++,yr(wr,Kr,Br,Dr,Xr))}fr.prototype.write=function(wr,Br,Dr){return dr(this,wr,Br,Dr)===!0},fr.prototype.cork=function(){this._writableState.corked++},fr.prototype.uncork=function(){let wr=this._writableState;wr.corked&&(wr.corked--,wr.writing||Or(this,wr))},fr.prototype.setDefaultEncoding=function(wr){if(typeof wr=="string"&&(wr=$t(wr)),!It.isEncoding(wr))throw new lr(wr);return this._writableState.defaultEncoding=wr,this};function yr(wr,Br,Dr,Xr,Kr){let zr=Br.objectMode?1:Dr.length;Br.length+=zr;let qr=Br.lengthDr.bufferedIndex&&Or(wr,Dr),Xr?Dr.afterWriteTickInfo!==null&&Dr.afterWriteTickInfo.cb===Kr?Dr.afterWriteTickInfo.count++:(Dr.afterWriteTickInfo={count:1,cb:Kr,stream:wr,state:Dr},rt.nextTick(Sr,Dr.afterWriteTickInfo)):Tr(wr,Dr,1,Kr))}function Sr({stream:wr,state:Br,count:Dr,cb:Xr}){return Br.afterWriteTickInfo=null,Tr(wr,Br,Dr,Xr)}function Tr(wr,Br,Dr,Xr){for(!Br.ending&&!wr.destroyed&&Br.length===0&&Br.needDrain&&(Br.needDrain=!1,wr.emit("drain"));Dr-- >0;)Br.pendingcb--,Xr();Br.destroyed&&jr(Br),Rr(wr,Br)}function jr(wr){if(wr.writing)return;for(let Kr=wr.bufferedIndex;Kr1&&wr._writev){Br.pendingcb-=zr-1;let pn=Br.allNoop?cr:Zr=>{for(let vn=qr;vn256?(Dr.splice(0,qr),Br.bufferedIndex=0):Br.bufferedIndex=qr}Br.bufferProcessing=!1}fr.prototype._write=function(wr,Br,Dr){if(this._writev)this._writev([{chunk:wr,encoding:Br}],Dr);else throw new Ht("_write()")},fr.prototype._writev=null,fr.prototype.end=function(wr,Br,Dr){let Xr=this._writableState;typeof wr=="function"?(Dr=wr,wr=null,Br=null):typeof Br=="function"&&(Dr=Br,Br=null);let Kr;if(wr!=null){let zr=dr(this,wr,Br);zr instanceof ct&&(Kr=zr)}return Xr.corked&&(Xr.corked=1,this.uncork()),Kr||(!Xr.errored&&!Xr.ending?(Xr.ending=!0,Rr(this,Xr,!0),Xr.ended=!0):Xr.finished?Kr=new Gt("end"):Xr.destroyed&&(Kr=new qt("end"))),typeof Dr=="function"&&(Kr||Xr.finished?rt.nextTick(Dr,Kr):Xr[ur].push(Dr)),this};function _r(wr){return wr.ending&&!wr.destroyed&&wr.constructed&&wr.length===0&&!wr.errored&&wr.buffered.length===0&&!wr.finished&&!wr.writing&&!wr.errorEmitted&&!wr.closeEmitted}function Cr(wr,Br){let Dr=!1;function Xr(Kr){if(Dr){er(wr,Kr??Wt());return}if(Dr=!0,Br.pendingcb--,Kr){let zr=Br[ur].splice(0);for(let qr=0;qr{_r(Kr)?Pr(Xr,Kr):Kr.pendingcb--},wr,Br)):_r(Br)&&(Br.pendingcb++,Pr(wr,Br))))}function Pr(wr,Br){Br.pendingcb--,Br.finished=!0;let Dr=Br[ur].splice(0);for(let Xr=0;Xr{_$2(),v$1(),m$1();var rt=Ut(),st=(we(),Z(ve)),{isReadable:ct,isWritable:ut,isIterable:ft,isNodeStream:gt,isReadableNodeStream:xt,isWritableNodeStream:$t,isDuplexNodeStream:_t}=tt(),wt=mt(),{AbortError:Tt,codes:{ERR_INVALID_ARG_TYPE:Rt,ERR_INVALID_RETURN_VALUE:It}}=Se(),{destroyer:At}=tr(),jt=nt(),Nt=hi(),{createDeferredPromise:kt}=Je(),Ft=Qs(),Ht=globalThis.Blob||st.Blob,Wt=typeof Ht<"u"?function(lr){return lr instanceof Ht}:function(lr){return!1},Vt=globalThis.AbortController||Fi().AbortController,{FunctionPrototypeCall:qt}=ce(),Gt=class extends jt{constructor(lr){super(lr),(lr==null?void 0:lr.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(lr==null?void 0:lr.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};et.exports=function lr(er,cr){if(_t(er))return er;if(xt(er))return Zt({readable:er});if($t(er))return Zt({writable:er});if(gt(er))return Zt({writable:!1,readable:!1});if(typeof er=="function"){let{value:pr,write:hr,final:fr,destroy:dr}=Xt(er);if(ft(pr))return Ft(Gt,pr,{objectMode:!0,write:hr,final:fr,destroy:dr});let yr=pr==null?void 0:pr.then;if(typeof yr=="function"){let $r,Er=qt(yr,pr,mr=>{if(mr!=null)throw new It("nully","body",mr)},mr=>{At($r,mr)});return $r=new Gt({objectMode:!0,readable:!1,write:hr,final(mr){fr(async()=>{try{await Er,rt.nextTick(mr,null)}catch(Sr){rt.nextTick(mr,Sr)}})},destroy:dr})}throw new It("Iterable, AsyncIterable or AsyncFunction",cr,pr)}if(Wt(er))return lr(er.arrayBuffer());if(ft(er))return Ft(Gt,er,{objectMode:!0,writable:!1});if(typeof(er==null?void 0:er.writable)=="object"||typeof(er==null?void 0:er.readable)=="object"){let pr=er!=null&&er.readable?xt(er==null?void 0:er.readable)?er==null?void 0:er.readable:lr(er.readable):void 0,hr=er!=null&&er.writable?$t(er==null?void 0:er.writable)?er==null?void 0:er.writable:lr(er.writable):void 0;return Zt({readable:pr,writable:hr})}let ur=er==null?void 0:er.then;if(typeof ur=="function"){let pr;return qt(ur,er,hr=>{hr!=null&&pr.push(hr),pr.push(null)},hr=>{At(pr,hr)}),pr=new Gt({objectMode:!0,writable:!1,read(){}})}throw new Rt(cr,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],er)};function Xt(lr){let{promise:er,resolve:cr}=kt(),ur=new Vt,pr=ur.signal;return{value:lr(async function*(){for(;;){let hr=er;er=null;let{chunk:fr,done:dr,cb:yr}=await hr;if(rt.nextTick(yr),dr)return;if(pr.aborted)throw new Tt(void 0,{cause:pr.reason});({promise:er,resolve:cr}=kt()),yield fr}}(),{signal:pr}),write(hr,fr,dr){let yr=cr;cr=null,yr({chunk:hr,done:!1,cb:dr})},final(hr){let fr=cr;cr=null,fr({done:!0,cb:hr})},destroy(hr,fr){ur.abort(),fr(hr)}}}function Zt(lr){let er=lr.readable&&typeof lr.readable.read!="function"?Nt.wrap(lr.readable):lr.readable,cr=lr.writable,ur=!!ct(er),pr=!!ut(cr),hr,fr,dr,yr,$r;function Er(mr){let Sr=yr;yr=null,Sr?Sr(mr):mr&&$r.destroy(mr)}return $r=new Gt({readableObjectMode:!!(er!=null&&er.readableObjectMode),writableObjectMode:!!(cr!=null&&cr.writableObjectMode),readable:ur,writable:pr}),pr&&(wt(cr,mr=>{pr=!1,mr&&At(er,mr),Er(mr)}),$r._write=function(mr,Sr,Tr){cr.write(mr,Sr)?Tr():hr=Tr},$r._final=function(mr){cr.end(),fr=mr},cr.on("drain",function(){if(hr){let mr=hr;hr=null,mr()}}),cr.on("finish",function(){if(fr){let mr=fr;fr=null,mr()}})),ur&&(wt(er,mr=>{ur=!1,mr&&At(er,mr),Er(mr)}),er.on("readable",function(){if(dr){let mr=dr;dr=null,mr()}}),er.on("end",function(){$r.push(null)}),$r._read=function(){for(;;){let mr=er.read();if(mr===null){dr=$r._read;return}if(!$r.push(mr))return}}),$r._destroy=function(mr,Sr){!mr&&yr!==null&&(mr=new Tt),dr=null,hr=null,fr=null,yr===null?Sr(mr):(yr=Sr,At(cr,mr),At(er,mr))},$r}}),nt=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ObjectDefineProperties:rt,ObjectGetOwnPropertyDescriptor:st,ObjectKeys:ct,ObjectSetPrototypeOf:ut}=ce();et.exports=xt;var ft=hi(),gt=lo();ut(xt.prototype,ft.prototype),ut(xt,ft);{let Tt=ct(gt.prototype);for(let Rt=0;Rt{_$2(),v$1(),m$1();var{ObjectSetPrototypeOf:rt,Symbol:st}=ce();et.exports=xt;var{ERR_METHOD_NOT_IMPLEMENTED:ct}=Se().codes,ut=nt(),{getHighWaterMark:ft}=tn();rt(xt.prototype,ut.prototype),rt(xt,ut);var gt=st("kCallback");function xt(wt){if(!(this instanceof xt))return new xt(wt);let Tt=wt?ft(this,wt,"readableHighWaterMark",!0):null;Tt===0&&(wt={...wt,highWaterMark:null,readableHighWaterMark:Tt,writableHighWaterMark:wt.writableHighWaterMark||0}),ut.call(this,wt),this._readableState.sync=!1,this[gt]=null,wt&&(typeof wt.transform=="function"&&(this._transform=wt.transform),typeof wt.flush=="function"&&(this._flush=wt.flush)),this.on("prefinish",_t)}function $t(wt){typeof this._flush=="function"&&!this.destroyed?this._flush((Tt,Rt)=>{if(Tt){wt?wt(Tt):this.destroy(Tt);return}Rt!=null&&this.push(Rt),this.push(null),wt&&wt()}):(this.push(null),wt&&wt())}function _t(){this._final!==$t&&$t.call(this)}xt.prototype._final=$t,xt.prototype._transform=function(wt,Tt,Rt){throw new ct("_transform()")},xt.prototype._write=function(wt,Tt,Rt){let It=this._readableState,At=this._writableState,jt=It.length;this._transform(wt,Tt,(Nt,kt)=>{if(Nt){Rt(Nt);return}kt!=null&&this.push(kt),At.ended||jt===It.length||It.length{_$2(),v$1(),m$1();var{ObjectSetPrototypeOf:rt}=ce();et.exports=ct;var st=yo();rt(ct.prototype,st.prototype),rt(ct,st);function ct(ut){if(!(this instanceof ct))return new ct(ut);st.call(this,ut)}ct.prototype._transform=function(ut,ft,gt){gt(null,ut)}}),bn=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayIsArray:st,Promise:ct,SymbolAsyncIterator:ut}=ce(),ft=mt(),{once:gt}=Je(),xt=tr(),$t=nt(),{aggregateTwoErrors:_t,codes:{ERR_INVALID_ARG_TYPE:wt,ERR_INVALID_RETURN_VALUE:Tt,ERR_MISSING_ARGS:Rt,ERR_STREAM_DESTROYED:It,ERR_STREAM_PREMATURE_CLOSE:At},AbortError:jt}=Se(),{validateFunction:Nt,validateAbortSignal:kt}=ui(),{isIterable:Ft,isReadable:Ht,isReadableNodeStream:Wt,isNodeStream:Vt,isTransformStream:qt,isWebStream:Gt,isReadableStream:Xt,isReadableEnded:Zt}=tt(),lr=globalThis.AbortController||Fi().AbortController,er,cr;function ur(Sr,Tr,jr){let Or=!1;Sr.on("close",()=>{Or=!0});let _r=ft(Sr,{readable:Tr,writable:jr},Cr=>{Or=!Cr});return{destroy:Cr=>{Or||(Or=!0,xt.destroyer(Sr,Cr||new It("pipe")))},cleanup:_r}}function pr(Sr){return Nt(Sr[Sr.length-1],"streams[stream.length - 1]"),Sr.pop()}function hr(Sr){if(Ft(Sr))return Sr;if(Wt(Sr))return fr(Sr);throw new wt("val",["Readable","Iterable","AsyncIterable"],Sr)}async function*fr(Sr){cr||(cr=hi()),yield*cr.prototype[ut].call(Sr)}async function dr(Sr,Tr,jr,{end:Or}){let _r,Cr=null,Nr=Mr=>{if(Mr&&(_r=Mr),Cr){let kr=Cr;Cr=null,kr()}},Rr=()=>new ct((Mr,kr)=>{_r?kr(_r):Cr=()=>{_r?kr(_r):Mr()}});Tr.on("drain",Nr);let Pr=ft(Tr,{readable:!1},Nr);try{Tr.writableNeedDrain&&await Rr();for await(let Mr of Sr)Tr.write(Mr)||await Rr();Or&&Tr.end(),await Rr(),jr()}catch(Mr){jr(_r!==Mr?_t(_r,Mr):Mr)}finally{Pr(),Tr.off("drain",Nr)}}async function yr(Sr,Tr,jr,{end:Or}){qt(Tr)&&(Tr=Tr.writable);let _r=Tr.getWriter();try{for await(let Cr of Sr)await _r.ready,_r.write(Cr).catch(()=>{});await _r.ready,Or&&await _r.close(),jr()}catch(Cr){try{await _r.abort(Cr),jr(Cr)}catch(Nr){jr(Nr)}}}function $r(...Sr){return Er(Sr,gt(pr(Sr)))}function Er(Sr,Tr,jr){if(Sr.length===1&&st(Sr[0])&&(Sr=Sr[0]),Sr.length<2)throw new Rt("streams");let Or=new lr,_r=Or.signal,Cr=jr==null?void 0:jr.signal,Nr=[];kt(Cr,"options.signal");function Rr(){Br(new jt)}Cr==null||Cr.addEventListener("abort",Rr);let Pr,Mr,kr=[],Fr=0;function wr(zr){Br(zr,--Fr===0)}function Br(zr,qr){if(zr&&(!Pr||Pr.code==="ERR_STREAM_PREMATURE_CLOSE")&&(Pr=zr),!(!Pr&&!qr)){for(;kr.length;)kr.shift()(Pr);Cr==null||Cr.removeEventListener("abort",Rr),Or.abort(),qr&&(Pr||Nr.forEach(pn=>pn()),rt.nextTick(Tr,Pr,Mr))}}let Dr;for(let zr=0;zr0,Zr=pn||(jr==null?void 0:jr.end)!==!1,vn=zr===Sr.length-1;if(Vt(qr)){let vr=function(gr){gr&&gr.name!=="AbortError"&&gr.code!=="ERR_STREAM_PREMATURE_CLOSE"&&wr(gr)};if(Zr){let{destroy:gr,cleanup:br}=ur(qr,pn,Qr);kr.push(gr),Ht(qr)&&vn&&Nr.push(br)}qr.on("error",vr),Ht(qr)&&vn&&Nr.push(()=>{qr.removeListener("error",vr)})}if(zr===0)if(typeof qr=="function"){if(Dr=qr({signal:_r}),!Ft(Dr))throw new Tt("Iterable, AsyncIterable or Stream","source",Dr)}else Ft(qr)||Wt(qr)||qt(qr)?Dr=qr:Dr=$t.from(qr);else if(typeof qr=="function"){if(qt(Dr)){var Xr;Dr=hr((Xr=Dr)===null||Xr===void 0?void 0:Xr.readable)}else Dr=hr(Dr);if(Dr=qr(Dr,{signal:_r}),pn){if(!Ft(Dr,!0))throw new Tt("AsyncIterable",`transform[${zr-1}]`,Dr)}else{var Kr;er||(er=wo());let vr=new er({objectMode:!0}),gr=(Kr=Dr)===null||Kr===void 0?void 0:Kr.then;if(typeof gr=="function")Fr++,gr.call(Dr,Vr=>{Mr=Vr,Vr!=null&&vr.write(Vr),Zr&&vr.end(),rt.nextTick(wr)},Vr=>{vr.destroy(Vr),rt.nextTick(wr,Vr)});else if(Ft(Dr,!0))Fr++,dr(Dr,vr,wr,{end:Zr});else if(Xt(Dr)||qt(Dr)){let Vr=Dr.readable||Dr;Fr++,dr(Vr,vr,wr,{end:Zr})}else throw new Tt("AsyncIterable or Promise","destination",Dr);Dr=vr;let{destroy:br,cleanup:Hr}=ur(Dr,!1,!0);kr.push(br),vn&&Nr.push(Hr)}}else if(Vt(qr)){if(Wt(Dr)){Fr+=2;let vr=mr(Dr,qr,wr,{end:Zr});Ht(qr)&&vn&&Nr.push(vr)}else if(qt(Dr)||Xt(Dr)){let vr=Dr.readable||Dr;Fr++,dr(vr,qr,wr,{end:Zr})}else if(Ft(Dr))Fr++,dr(Dr,qr,wr,{end:Zr});else throw new wt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Dr);Dr=qr}else if(Gt(qr)){if(Wt(Dr))Fr++,yr(hr(Dr),qr,wr,{end:Zr});else if(Xt(Dr)||Ft(Dr))Fr++,yr(Dr,qr,wr,{end:Zr});else if(qt(Dr))Fr++,yr(Dr.readable,qr,wr,{end:Zr});else throw new wt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Dr);Dr=qr}else Dr=$t.from(qr)}return(_r!=null&&_r.aborted||Cr!=null&&Cr.aborted)&&rt.nextTick(Rr),Dr}function mr(Sr,Tr,jr,{end:Or}){let _r=!1;if(Tr.on("close",()=>{_r||jr(new At)}),Sr.pipe(Tr,{end:!1}),Or){let Cr=function(){_r=!0,Tr.end()};Zt(Sr)?rt.nextTick(Cr):Sr.once("end",Cr)}else jr();return ft(Sr,{readable:!0,writable:!1},Cr=>{let Nr=Sr._readableState;Cr&&Cr.code==="ERR_STREAM_PREMATURE_CLOSE"&&Nr&&Nr.ended&&!Nr.errored&&!Nr.errorEmitted?Sr.once("end",jr).once("error",jr):jr(Cr)}),ft(Tr,{readable:!1,writable:!0},jr)}et.exports={pipelineImpl:Er,pipeline:$r}}),Co=M$1((_e,et)=>{_$2(),v$1(),m$1();var{pipeline:rt}=bn(),st=nt(),{destroyer:ct}=tr(),{isNodeStream:ut,isReadable:ft,isWritable:gt,isWebStream:xt,isTransformStream:$t,isWritableStream:_t,isReadableStream:wt}=tt(),{AbortError:Tt,codes:{ERR_INVALID_ARG_VALUE:Rt,ERR_MISSING_ARGS:It}}=Se(),At=mt();et.exports=function(...jt){if(jt.length===0)throw new It("streams");if(jt.length===1)return st.from(jt[0]);let Nt=[...jt];if(typeof jt[0]=="function"&&(jt[0]=st.from(jt[0])),typeof jt[jt.length-1]=="function"){let er=jt.length-1;jt[er]=st.from(jt[er])}for(let er=0;er0&&!(gt(jt[er])||_t(jt[er])||$t(jt[er])))throw new Rt(`streams[${er}]`,Nt[er],"must be writable")}let kt,Ft,Ht,Wt,Vt;function qt(er){let cr=Wt;Wt=null,cr?cr(er):er?Vt.destroy(er):!lr&&!Zt&&Vt.destroy()}let Gt=jt[0],Xt=rt(jt,qt),Zt=!!(gt(Gt)||_t(Gt)||$t(Gt)),lr=!!(ft(Xt)||wt(Xt)||$t(Xt));if(Vt=new st({writableObjectMode:!!(Gt!=null&&Gt.writableObjectMode),readableObjectMode:!!(Xt!=null&&Xt.writableObjectMode),writable:Zt,readable:lr}),Zt){if(ut(Gt))Vt._write=function(cr,ur,pr){Gt.write(cr,ur)?pr():kt=pr},Vt._final=function(cr){Gt.end(),Ft=cr},Gt.on("drain",function(){if(kt){let cr=kt;kt=null,cr()}});else if(xt(Gt)){let cr=($t(Gt)?Gt.writable:Gt).getWriter();Vt._write=async function(ur,pr,hr){try{await cr.ready,cr.write(ur).catch(()=>{}),hr()}catch(fr){hr(fr)}},Vt._final=async function(ur){try{await cr.ready,cr.close().catch(()=>{}),Ft=ur}catch(pr){ur(pr)}}}let er=$t(Xt)?Xt.readable:Xt;At(er,()=>{if(Ft){let cr=Ft;Ft=null,cr()}})}if(lr){if(ut(Xt))Xt.on("readable",function(){if(Ht){let er=Ht;Ht=null,er()}}),Xt.on("end",function(){Vt.push(null)}),Vt._read=function(){for(;;){let er=Xt.read();if(er===null){Ht=Vt._read;return}if(!Vt.push(er))return}};else if(xt(Xt)){let er=($t(Xt)?Xt.readable:Xt).getReader();Vt._read=async function(){for(;;)try{let{value:cr,done:ur}=await er.read();if(!Vt.push(cr))return;if(ur){Vt.push(null);return}}catch{return}}}}return Vt._destroy=function(er,cr){!er&&Wt!==null&&(er=new Tt),Ht=null,kt=null,Ft=null,Wt===null?cr(er):(Wt=cr,ut(Xt)&&ct(Xt,er))},Vt}}),Kh=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=globalThis.AbortController||Fi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:st,ERR_INVALID_ARG_TYPE:ct,ERR_MISSING_ARGS:ut,ERR_OUT_OF_RANGE:ft},AbortError:gt}=Se(),{validateAbortSignal:xt,validateInteger:$t,validateObject:_t}=ui(),wt=ce().Symbol("kWeak"),{finished:Tt}=mt(),Rt=Co(),{addAbortSignalNoValidate:It}=fi(),{isWritable:At,isNodeStream:jt}=tt(),{ArrayPrototypePush:Nt,MathFloor:kt,Number:Ft,NumberIsNaN:Ht,Promise:Wt,PromiseReject:Vt,PromisePrototypeThen:qt,Symbol:Gt}=ce(),Xt=Gt("kEmpty"),Zt=Gt("kEof");function lr(Or,_r){if(_r!=null&&_t(_r,"options"),(_r==null?void 0:_r.signal)!=null&&xt(_r.signal,"options.signal"),jt(Or)&&!At(Or))throw new st("stream",Or,"must be writable");let Cr=Rt(this,Or);return _r!=null&&_r.signal&&It(_r.signal,Cr),Cr}function er(Or,_r){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);_r!=null&&_t(_r,"options"),(_r==null?void 0:_r.signal)!=null&&xt(_r.signal,"options.signal");let Cr=1;return(_r==null?void 0:_r.concurrency)!=null&&(Cr=kt(_r.concurrency)),$t(Cr,"concurrency",1),(async function*(){var Nr,Rr;let Pr=new rt,Mr=this,kr=[],Fr=Pr.signal,wr={signal:Fr},Br=()=>Pr.abort();_r!=null&&(Nr=_r.signal)!==null&&Nr!==void 0&&Nr.aborted&&Br(),_r==null||(Rr=_r.signal)===null||Rr===void 0||Rr.addEventListener("abort",Br);let Dr,Xr,Kr=!1;function zr(){Kr=!0}async function qr(){try{for await(let Zr of Mr){var pn;if(Kr)return;if(Fr.aborted)throw new gt;try{Zr=Or(Zr,wr)}catch(vn){Zr=Vt(vn)}Zr!==Xt&&(typeof((pn=Zr)===null||pn===void 0?void 0:pn.catch)=="function"&&Zr.catch(zr),kr.push(Zr),Dr&&(Dr(),Dr=null),!Kr&&kr.length&&kr.length>=Cr&&await new Wt(vn=>{Xr=vn}))}kr.push(Zt)}catch(Zr){let vn=Vt(Zr);qt(vn,void 0,zr),kr.push(vn)}finally{var Qr;Kr=!0,Dr&&(Dr(),Dr=null),_r==null||(Qr=_r.signal)===null||Qr===void 0||Qr.removeEventListener("abort",Br)}}qr();try{for(;;){for(;kr.length>0;){let pn=await kr[0];if(pn===Zt)return;if(Fr.aborted)throw new gt;pn!==Xt&&(yield pn),kr.shift(),Xr&&(Xr(),Xr=null)}await new Wt(pn=>{Dr=pn})}}finally{Pr.abort(),Kr=!0,Xr&&(Xr(),Xr=null)}}).call(this)}function cr(Or=void 0){return Or!=null&&_t(Or,"options"),(Or==null?void 0:Or.signal)!=null&&xt(Or.signal,"options.signal"),(async function*(){let _r=0;for await(let Nr of this){var Cr;if(Or!=null&&(Cr=Or.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt({cause:Or.signal.reason});yield[_r++,Nr]}}).call(this)}async function ur(Or,_r=void 0){for await(let Cr of dr.call(this,Or,_r))return!0;return!1}async function pr(Or,_r=void 0){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);return!await ur.call(this,async(...Cr)=>!await Or(...Cr),_r)}async function hr(Or,_r){for await(let Cr of dr.call(this,Or,_r))return Cr}async function fr(Or,_r){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);async function Cr(Nr,Rr){return await Or(Nr,Rr),Xt}for await(let Nr of er.call(this,Cr,_r));}function dr(Or,_r){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);async function Cr(Nr,Rr){return await Or(Nr,Rr)?Nr:Xt}return er.call(this,Cr,_r)}var yr=class extends ut{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function $r(Or,_r,Cr){var Nr;if(typeof Or!="function")throw new ct("reducer",["Function","AsyncFunction"],Or);Cr!=null&&_t(Cr,"options"),(Cr==null?void 0:Cr.signal)!=null&&xt(Cr.signal,"options.signal");let Rr=arguments.length>1;if(Cr!=null&&(Nr=Cr.signal)!==null&&Nr!==void 0&&Nr.aborted){let wr=new gt(void 0,{cause:Cr.signal.reason});throw this.once("error",()=>{}),await Tt(this.destroy(wr)),wr}let Pr=new rt,Mr=Pr.signal;if(Cr!=null&&Cr.signal){let wr={once:!0,[wt]:this};Cr.signal.addEventListener("abort",()=>Pr.abort(),wr)}let kr=!1;try{for await(let wr of this){var Fr;if(kr=!0,Cr!=null&&(Fr=Cr.signal)!==null&&Fr!==void 0&&Fr.aborted)throw new gt;Rr?_r=await Or(_r,wr,{signal:Mr}):(_r=wr,Rr=!0)}if(!kr&&!Rr)throw new yr}finally{Pr.abort()}return _r}async function Er(Or){Or!=null&&_t(Or,"options"),(Or==null?void 0:Or.signal)!=null&&xt(Or.signal,"options.signal");let _r=[];for await(let Nr of this){var Cr;if(Or!=null&&(Cr=Or.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt(void 0,{cause:Or.signal.reason});Nt(_r,Nr)}return _r}function mr(Or,_r){let Cr=er.call(this,Or,_r);return(async function*(){for await(let Nr of Cr)yield*Nr}).call(this)}function Sr(Or){if(Or=Ft(Or),Ht(Or))return 0;if(Or<0)throw new ft("number",">= 0",Or);return Or}function Tr(Or,_r=void 0){return _r!=null&&_t(_r,"options"),(_r==null?void 0:_r.signal)!=null&&xt(_r.signal,"options.signal"),Or=Sr(Or),(async function*(){var Cr;if(_r!=null&&(Cr=_r.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt;for await(let Rr of this){var Nr;if(_r!=null&&(Nr=_r.signal)!==null&&Nr!==void 0&&Nr.aborted)throw new gt;Or--<=0&&(yield Rr)}}).call(this)}function jr(Or,_r=void 0){return _r!=null&&_t(_r,"options"),(_r==null?void 0:_r.signal)!=null&&xt(_r.signal,"options.signal"),Or=Sr(Or),(async function*(){var Cr;if(_r!=null&&(Cr=_r.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt;for await(let Rr of this){var Nr;if(_r!=null&&(Nr=_r.signal)!==null&&Nr!==void 0&&Nr.aborted)throw new gt;if(Or-- >0)yield Rr;else return}}).call(this)}et.exports.streamReturningOperators={asIndexedPairs:cr,drop:Tr,filter:dr,flatMap:mr,map:er,take:jr,compose:lr},et.exports.promiseReturningOperators={every:pr,forEach:fr,reduce:$r,toArray:Er,some:ur,find:hr}}),xo=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayPrototypePop:rt,Promise:st}=ce(),{isIterable:ct,isNodeStream:ut,isWebStream:ft}=tt(),{pipelineImpl:gt}=bn(),{finished:xt}=mt();ko();function $t(..._t){return new st((wt,Tt)=>{let Rt,It,At=_t[_t.length-1];if(At&&typeof At=="object"&&!ut(At)&&!ct(At)&&!ft(At)){let jt=rt(_t);Rt=jt.signal,It=jt.end}gt(_t,(jt,Nt)=>{jt?Tt(jt):wt(Nt)},{signal:Rt,end:It})})}et.exports={finished:xt,pipeline:$t}}),ko=M$1((_e,et)=>{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),{ObjectDefineProperty:st,ObjectKeys:ct,ReflectApply:ut}=ce(),{promisify:{custom:ft}}=Je(),{streamReturningOperators:gt,promiseReturningOperators:xt}=Kh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:$t}}=Se(),_t=Co(),{pipeline:wt}=bn(),{destroyer:Tt}=tr(),Rt=mt(),It=xo(),At=tt(),jt=et.exports=Xi().Stream;jt.isDisturbed=At.isDisturbed,jt.isErrored=At.isErrored,jt.isReadable=At.isReadable,jt.Readable=hi();for(let kt of ct(gt)){let Ft=function(...Wt){if(new.target)throw $t();return jt.Readable.from(ut(Ht,this,Wt))},Ht=gt[kt];st(Ft,"name",{__proto__:null,value:Ht.name}),st(Ft,"length",{__proto__:null,value:Ht.length}),st(jt.Readable.prototype,kt,{__proto__:null,value:Ft,enumerable:!1,configurable:!0,writable:!0})}for(let kt of ct(xt)){let Ft=function(...Wt){if(new.target)throw $t();return ut(Ht,this,Wt)},Ht=xt[kt];st(Ft,"name",{__proto__:null,value:Ht.name}),st(Ft,"length",{__proto__:null,value:Ht.length}),st(jt.Readable.prototype,kt,{__proto__:null,value:Ft,enumerable:!1,configurable:!0,writable:!0})}jt.Writable=lo(),jt.Duplex=nt(),jt.Transform=yo(),jt.PassThrough=wo(),jt.pipeline=wt;var{addAbortSignal:Nt}=fi();jt.addAbortSignal=Nt,jt.finished=Rt,jt.destroy=Tt,jt.compose=_t,st(jt,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return It}}),st(wt,ft,{__proto__:null,enumerable:!0,get(){return It.pipeline}}),st(Rt,ft,{__proto__:null,enumerable:!0,get(){return It.finished}}),jt.Stream=jt,jt._isUint8Array=function(kt){return kt instanceof Uint8Array},jt._uint8ArrayToBuffer=function(kt){return rt.from(kt.buffer,kt.byteOffset,kt.byteLength)}}),Dt=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=ko(),st=xo(),ct=rt.Readable.destroy;et.exports=rt.Readable,et.exports._uint8ArrayToBuffer=rt._uint8ArrayToBuffer,et.exports._isUint8Array=rt._isUint8Array,et.exports.isDisturbed=rt.isDisturbed,et.exports.isErrored=rt.isErrored,et.exports.isReadable=rt.isReadable,et.exports.Readable=rt.Readable,et.exports.Writable=rt.Writable,et.exports.Duplex=rt.Duplex,et.exports.Transform=rt.Transform,et.exports.PassThrough=rt.PassThrough,et.exports.addAbortSignal=rt.addAbortSignal,et.exports.finished=rt.finished,et.exports.destroy=rt.destroy,et.exports.destroy=ct,et.exports.pipeline=rt.pipeline,et.exports.compose=rt.compose,Object.defineProperty(rt,"promises",{configurable:!0,enumerable:!0,get(){return st}}),et.exports.Stream=rt.Stream,et.exports.default=et.exports}),nd=M$1((_e,et)=>{_$2(),v$1(),m$1(),typeof Object.create=="function"?et.exports=function(rt,st){st&&(rt.super_=st,rt.prototype=Object.create(st.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(rt,st){if(st){rt.super_=st;var ct=function(){};ct.prototype=st.prototype,rt.prototype=new ct,rt.prototype.constructor=rt}}}),ad=M$1((_e,et)=>{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),st=Symbol.for("BufferList");function ct(ut){if(!(this instanceof ct))return new ct(ut);ct._init.call(this,ut)}ct._init=function(ut){Object.defineProperty(this,st,{value:!0}),this._bufs=[],this.length=0,ut&&this.append(ut)},ct.prototype._new=function(ut){return new ct(ut)},ct.prototype._offset=function(ut){if(ut===0)return[0,0];let ft=0;for(let gt=0;gtthis.length||ut<0)return;let ft=this._offset(ut);return this._bufs[ft[0]][ft[1]]},ct.prototype.slice=function(ut,ft){return typeof ut=="number"&&ut<0&&(ut+=this.length),typeof ft=="number"&&ft<0&&(ft+=this.length),this.copy(null,0,ut,ft)},ct.prototype.copy=function(ut,ft,gt,xt){if((typeof gt!="number"||gt<0)&&(gt=0),(typeof xt!="number"||xt>this.length)&&(xt=this.length),gt>=this.length||xt<=0)return ut||rt.alloc(0);let $t=!!ut,_t=this._offset(gt),wt=xt-gt,Tt=wt,Rt=$t&&ft||0,It=_t[1];if(gt===0&&xt===this.length){if(!$t)return this._bufs.length===1?this._bufs[0]:rt.concat(this._bufs,this.length);for(let At=0;Atjt)this._bufs[At].copy(ut,Rt,It),Rt+=jt;else{this._bufs[At].copy(ut,Rt,It,It+Tt),Rt+=jt;break}Tt-=jt,It&&(It=0)}return ut.length>Rt?ut.slice(0,Rt):ut},ct.prototype.shallowSlice=function(ut,ft){if(ut=ut||0,ft=typeof ft!="number"?this.length:ft,ut<0&&(ut+=this.length),ft<0&&(ft+=this.length),ut===ft)return this._new();let gt=this._offset(ut),xt=this._offset(ft),$t=this._bufs.slice(gt[0],xt[0]+1);return xt[1]===0?$t.pop():$t[$t.length-1]=$t[$t.length-1].slice(0,xt[1]),gt[1]!==0&&($t[0]=$t[0].slice(gt[1])),this._new($t)},ct.prototype.toString=function(ut,ft,gt){return this.slice(ft,gt).toString(ut)},ct.prototype.consume=function(ut){if(ut=Math.trunc(ut),Number.isNaN(ut)||ut<=0)return this;for(;this._bufs.length;)if(ut>=this._bufs[0].length)ut-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(ut),this.length-=ut;break}return this},ct.prototype.duplicate=function(){let ut=this._new();for(let ft=0;ftthis.length?this.length:ft;let xt=this._offset(ft),$t=xt[0],_t=xt[1];for(;$t=ut.length){let Tt=wt.indexOf(ut,_t);if(Tt!==-1)return this._reverseOffset([$t,Tt]);_t=wt.length-ut.length+1}else{let Tt=this._reverseOffset([$t,_t]);if(this._match(Tt,ut))return Tt;_t++}_t=0}return-1},ct.prototype._match=function(ut,ft){if(this.length-ut{_$2(),v$1(),m$1();var rt=Dt().Duplex,st=nd(),ct=ad();function ut(ft){if(!(this instanceof ut))return new ut(ft);if(typeof ft=="function"){this._callback=ft;let gt=(function(xt){this._callback&&(this._callback(xt),this._callback=null)}).bind(this);this.on("pipe",function(xt){xt.on("error",gt)}),this.on("unpipe",function(xt){xt.removeListener("error",gt)}),ft=null}ct._init.call(this,ft),rt.call(this)}st(ut,rt),Object.assign(ut.prototype,ct.prototype),ut.prototype._new=function(ft){return new ut(ft)},ut.prototype._write=function(ft,gt,xt){this._appendBuffer(ft),typeof xt=="function"&&xt()},ut.prototype._read=function(ft){if(!this.length)return this.push(null);ft=Math.min(ft,this.length),this.push(this.slice(0,ft)),this.consume(ft)},ut.prototype.end=function(ft){rt.prototype.end.call(this,ft),this._callback&&(this._callback(null,this.slice()),this._callback=null)},ut.prototype._destroy=function(ft,gt){this._bufs.length=0,this.length=0,gt(ft)},ut.prototype._isBufferList=function(ft){return ft instanceof ut||ft instanceof ct||ut.isBufferList(ft)},ut.isBufferList=ct.isBufferList,et.exports=ut,et.exports.BufferListStream=ut,et.exports.BufferList=ct}),fd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};et.exports=rt}),jo=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=et.exports,{Buffer:st}=(we(),Z(ve));rt.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"},rt.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},rt.requiredHeaderFlagsErrors={};for(let ut in rt.requiredHeaderFlags){let ft=rt.requiredHeaderFlags[ut];rt.requiredHeaderFlagsErrors[ut]="Invalid header flag bits, must be 0x"+ft.toString(16)+" for "+rt.types[ut]+" packet"}rt.codes={};for(let ut in rt.types){let ft=rt.types[ut];rt.codes[ft]=ut}rt.CMD_SHIFT=4,rt.CMD_MASK=240,rt.DUP_MASK=8,rt.QOS_MASK=3,rt.QOS_SHIFT=1,rt.RETAIN_MASK=1,rt.VARBYTEINT_MASK=127,rt.VARBYTEINT_FIN_MASK=128,rt.VARBYTEINT_MAX=268435455,rt.SESSIONPRESENT_MASK=1,rt.SESSIONPRESENT_HEADER=st.from([rt.SESSIONPRESENT_MASK]),rt.CONNACK_HEADER=st.from([rt.codes.connack<[0,1].map(gt=>[0,1].map(xt=>{let $t=st.alloc(1);return $t.writeUInt8(rt.codes[ut]<st.from([ut])),rt.EMPTY={pingreq:st.from([rt.codes.pingreq<<4,0]),pingresp:st.from([rt.codes.pingresp<<4,0]),disconnect:st.from([rt.codes.disconnect<<4,0])},rt.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"},rt.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},rt.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"},rt.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"},rt.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"},rt.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),dd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=1e3,st=rt*60,ct=st*60,ut=ct*24,ft=ut*7,gt=ut*365.25;et.exports=function(Tt,Rt){Rt=Rt||{};var It=typeof Tt;if(It==="string"&&Tt.length>0)return xt(Tt);if(It==="number"&&isFinite(Tt))return Rt.long?_t(Tt):$t(Tt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Tt))};function xt(Tt){if(Tt=String(Tt),!(Tt.length>100)){var Rt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Tt);if(Rt){var It=parseFloat(Rt[1]),At=(Rt[2]||"ms").toLowerCase();switch(At){case"years":case"year":case"yrs":case"yr":case"y":return It*gt;case"weeks":case"week":case"w":return It*ft;case"days":case"day":case"d":return It*ut;case"hours":case"hour":case"hrs":case"hr":case"h":return It*ct;case"minutes":case"minute":case"mins":case"min":case"m":return It*st;case"seconds":case"second":case"secs":case"sec":case"s":return It*rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return It;default:return}}}}function $t(Tt){var Rt=Math.abs(Tt);return Rt>=ut?Math.round(Tt/ut)+"d":Rt>=ct?Math.round(Tt/ct)+"h":Rt>=st?Math.round(Tt/st)+"m":Rt>=rt?Math.round(Tt/rt)+"s":Tt+"ms"}function _t(Tt){var Rt=Math.abs(Tt);return Rt>=ut?wt(Tt,Rt,ut,"day"):Rt>=ct?wt(Tt,Rt,ct,"hour"):Rt>=st?wt(Tt,Rt,st,"minute"):Rt>=rt?wt(Tt,Rt,rt,"second"):Tt+" ms"}function wt(Tt,Rt,It,At){var jt=Rt>=It*1.5;return Math.round(Tt/It)+" "+At+(jt?"s":"")}}),gd=M$1((_e,et)=>{_$2(),v$1(),m$1();function rt(st){ut.debug=ut,ut.default=ut,ut.coerce=wt,ut.disable=xt,ut.enable=gt,ut.enabled=$t,ut.humanize=dd(),ut.destroy=Tt,Object.keys(st).forEach(Rt=>{ut[Rt]=st[Rt]}),ut.names=[],ut.skips=[],ut.formatters={};function ct(Rt){let It=0;for(let At=0;At{if(Gt==="%%")return"%";qt++;let Zt=ut.formatters[Xt];if(typeof Zt=="function"){let lr=Ft[qt];Gt=Zt.call(Ht,lr),Ft.splice(qt,1),qt--}return Gt}),ut.formatArgs.call(Ht,Ft),(Ht.log||ut.log).apply(Ht,Ft)}return kt.namespace=Rt,kt.useColors=ut.useColors(),kt.color=ut.selectColor(Rt),kt.extend=ft,kt.destroy=ut.destroy,Object.defineProperty(kt,"enabled",{enumerable:!0,configurable:!1,get:()=>At!==null?At:(jt!==ut.namespaces&&(jt=ut.namespaces,Nt=ut.enabled(Rt)),Nt),set:Ft=>{At=Ft}}),typeof ut.init=="function"&&ut.init(kt),kt}function ft(Rt,It){let At=ut(this.namespace+(typeof It>"u"?":":It)+Rt);return At.log=this.log,At}function gt(Rt){ut.save(Rt),ut.namespaces=Rt,ut.names=[],ut.skips=[];let It,At=(typeof Rt=="string"?Rt:"").split(/[\s,]+/),jt=At.length;for(It=0;It"-"+It)].join(",");return ut.enable(""),Rt}function $t(Rt){if(Rt[Rt.length-1]==="*")return!0;let It,At;for(It=0,At=ut.skips.length;It{_$2(),v$1(),m$1(),_e.formatArgs=st,_e.save=ct,_e.load=ut,_e.useColors=rt,_e.storage=ft(),_e.destroy=(()=>{let xt=!1;return()=>{xt||(xt=!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 rt(){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 st(xt){if(xt[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+xt[0]+(this.useColors?"%c ":" ")+"+"+et.exports.humanize(this.diff),!this.useColors)return;let $t="color: "+this.color;xt.splice(1,0,$t,"color: inherit");let _t=0,wt=0;xt[0].replace(/%[a-zA-Z%]/g,Tt=>{Tt!=="%%"&&(_t++,Tt==="%c"&&(wt=_t))}),xt.splice(wt,0,$t)}_e.log=console.debug||console.log||(()=>{});function ct(xt){try{xt?_e.storage.setItem("debug",xt):_e.storage.removeItem("debug")}catch{}}function ut(){let xt;try{xt=_e.storage.getItem("debug")}catch{}return!xt&&typeof B$2<"u"&&"env"in B$2&&(xt=B$2.env.DEBUG),xt}function ft(){try{return localStorage}catch{}}et.exports=gd()(_e);var{formatters:gt}=et.exports;gt.j=function(xt){try{return JSON.stringify(xt)}catch($t){return"[UnexpectedJSONParseError]: "+$t.message}}}),wd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=ld(),{EventEmitter:st}=(ir(),Z(rr)),ct=fd(),ut=jo(),ft=ot()("mqtt-packet:parser"),gt=class _h extends st{constructor(){super(),this.parser=this.constructor.parser}static parser($t){return this instanceof _h?(this.settings=$t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new _h().parser($t)}_resetState(){ft("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new ct,this.error=null,this._list=rt(),this._stateCounter=0}parse($t){for(this.error&&this._resetState(),this._list.append($t),ft("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++,ft("parse: state complete. _stateCounter is now: %d",this._stateCounter),ft("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return ft("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let $t=this._list.readUInt8(0),_t=$t>>ut.CMD_SHIFT;this.packet.cmd=ut.types[_t];let wt=$t&15,Tt=ut.requiredHeaderFlags[_t];return Tt!=null&&wt!==Tt?this._emitError(new Error(ut.requiredHeaderFlagsErrors[_t])):(this.packet.retain=($t&ut.RETAIN_MASK)!==0,this.packet.qos=$t>>ut.QOS_SHIFT&ut.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=($t&ut.DUP_MASK)!==0,ft("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let $t=this._parseVarByteNum(!0);return $t&&(this.packet.length=$t.value,this._list.consume($t.bytes)),ft("_parseLength %d",$t.value),!!$t}_parsePayload(){ft("_parsePayload: payload %O",this._list);let $t=!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"))}$t=!0}return ft("_parsePayload complete result: %s",$t),$t}_parseConnect(){ft("_parseConnect");let $t,_t,wt,Tt,Rt={},It=this.packet,At=this._parseString();if(At===null)return this._emitError(new Error("Cannot parse protocolId"));if(At!=="MQTT"&&At!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(It.protocolId=At,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(It.protocolVersion=this._list.readUInt8(this._pos),It.protocolVersion>=128&&(It.bridgeMode=!0,It.protocolVersion=It.protocolVersion-128),It.protocolVersion!==3&&It.protocolVersion!==4&&It.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"));Rt.username=this._list.readUInt8(this._pos)&ut.USERNAME_MASK,Rt.password=this._list.readUInt8(this._pos)&ut.PASSWORD_MASK,Rt.will=this._list.readUInt8(this._pos)&ut.WILL_FLAG_MASK;let jt=!!(this._list.readUInt8(this._pos)&ut.WILL_RETAIN_MASK),Nt=(this._list.readUInt8(this._pos)&ut.WILL_QOS_MASK)>>ut.WILL_QOS_SHIFT;if(Rt.will)It.will={},It.will.retain=jt,It.will.qos=Nt;else{if(jt)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(Nt)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(It.clean=(this._list.readUInt8(this._pos)&ut.CLEAN_SESSION_MASK)!==0,this._pos++,It.keepalive=this._parseNum(),It.keepalive===-1)return this._emitError(new Error("Packet too short"));if(It.protocolVersion===5){let Ft=this._parseProperties();Object.getOwnPropertyNames(Ft).length&&(It.properties=Ft)}let kt=this._parseString();if(kt===null)return this._emitError(new Error("Packet too short"));if(It.clientId=kt,ft("_parseConnect: packet.clientId: %s",It.clientId),Rt.will){if(It.protocolVersion===5){let Ft=this._parseProperties();Object.getOwnPropertyNames(Ft).length&&(It.will.properties=Ft)}if($t=this._parseString(),$t===null)return this._emitError(new Error("Cannot parse will topic"));if(It.will.topic=$t,ft("_parseConnect: packet.will.topic: %s",It.will.topic),_t=this._parseBuffer(),_t===null)return this._emitError(new Error("Cannot parse will payload"));It.will.payload=_t,ft("_parseConnect: packet.will.paylaod: %s",It.will.payload)}if(Rt.username){if(Tt=this._parseString(),Tt===null)return this._emitError(new Error("Cannot parse username"));It.username=Tt,ft("_parseConnect: packet.username: %s",It.username)}if(Rt.password){if(wt=this._parseBuffer(),wt===null)return this._emitError(new Error("Cannot parse password"));It.password=wt}return this.settings=It,ft("_parseConnect: complete"),It}_parseConnack(){ft("_parseConnack");let $t=this.packet;if(this._list.length<1)return null;let _t=this._list.readUInt8(this._pos++);if(_t>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if($t.sessionPresent=!!(_t&ut.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?$t.reasonCode=this._list.readUInt8(this._pos++):$t.reasonCode=0;else{if(this._list.length<2)return null;$t.returnCode=this._list.readUInt8(this._pos++)}if($t.returnCode===-1||$t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let wt=this._parseProperties();Object.getOwnPropertyNames(wt).length&&($t.properties=wt)}ft("_parseConnack: complete")}_parsePublish(){ft("_parsePublish");let $t=this.packet;if($t.topic=this._parseString(),$t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!($t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}$t.payload=this._list.slice(this._pos,$t.length),ft("_parsePublish: payload from buffer list: %o",$t.payload)}}_parseSubscribe(){ft("_parseSubscribe");let $t=this.packet,_t,wt,Tt,Rt,It,At,jt;if($t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let Nt=this._parseProperties();Object.getOwnPropertyNames(Nt).length&&($t.properties=Nt)}if($t.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<$t.length;){if(_t=this._parseString(),_t===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=$t.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(wt=this._parseByte(),this.settings.protocolVersion===5){if(wt&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(wt&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(Tt=wt&ut.SUBSCRIBE_OPTIONS_QOS_MASK,Tt>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(At=(wt>>ut.SUBSCRIBE_OPTIONS_NL_SHIFT&ut.SUBSCRIBE_OPTIONS_NL_MASK)!==0,It=(wt>>ut.SUBSCRIBE_OPTIONS_RAP_SHIFT&ut.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,Rt=wt>>ut.SUBSCRIBE_OPTIONS_RH_SHIFT&ut.SUBSCRIBE_OPTIONS_RH_MASK,Rt>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));jt={topic:_t,qos:Tt},this.settings.protocolVersion===5?(jt.nl=At,jt.rap=It,jt.rh=Rt):this.settings.bridgeMode&&(jt.rh=0,jt.rap=!0,jt.nl=!0),ft("_parseSubscribe: push subscription `%s` to subscription",jt),$t.subscriptions.push(jt)}}}_parseSuback(){ft("_parseSuback");let $t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}if($t.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&_t!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(_t)}}}_parseUnsubscribe(){ft("_parseUnsubscribe");let $t=this.packet;if($t.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}if($t.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<$t.length;){let _t=this._parseString();if(_t===null)return this._emitError(new Error("Cannot parse topic"));ft("_parseUnsubscribe: push topic `%s` to unsubscriptions",_t),$t.unsubscriptions.push(_t)}}}_parseUnsuback(){ft("_parseUnsuback");let $t=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&$t.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if($t.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let _t=this._parseProperties();for(Object.getOwnPropertyNames(_t).length&&($t.properties=_t),$t.granted=[];this._pos2){switch($t.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!ut.MQTT5_PUBACK_PUBREC_CODES[$t.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!ut.MQTT5_PUBREL_PUBCOMP_CODES[$t.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}ft("_parseConfirmation: packet.reasonCode `%d`",$t.reasonCode)}else $t.reasonCode=0;if($t.length>3){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}}return!0}_parseDisconnect(){let $t=this.packet;if(ft("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?($t.reasonCode=this._parseByte(),ut.MQTT5_DISCONNECT_CODES[$t.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):$t.reasonCode=0;let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}return ft("_parseDisconnect result: true"),!0}_parseAuth(){ft("_parseAuth");let $t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if($t.reasonCode=this._parseByte(),!ut.MQTT5_AUTH_CODES[$t.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let _t=this._parseProperties();return Object.getOwnPropertyNames(_t).length&&($t.properties=_t),ft("_parseAuth: result: true"),!0}_parseMessageId(){let $t=this.packet;return $t.messageId=this._parseNum(),$t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(ft("_parseMessageId: packet.messageId %d",$t.messageId),!0)}_parseString($t){let _t=this._parseNum(),wt=_t+this._pos;if(_t===-1||wt>this._list.length||wt>this.packet.length)return null;let Tt=this._list.toString("utf8",this._pos,wt);return this._pos+=_t,ft("_parseString: result: %s",Tt),Tt}_parseStringPair(){return ft("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let $t=this._parseNum(),_t=$t+this._pos;if($t===-1||_t>this._list.length||_t>this.packet.length)return null;let wt=this._list.slice(this._pos,_t);return this._pos+=$t,ft("_parseBuffer: result: %o",wt),wt}_parseNum(){if(this._list.length-this._pos<2)return-1;let $t=this._list.readUInt16BE(this._pos);return this._pos+=2,ft("_parseNum: result: %s",$t),$t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let $t=this._list.readUInt32BE(this._pos);return this._pos+=4,ft("_parse4ByteNum: result: %s",$t),$t}_parseVarByteNum($t){ft("_parseVarByteNum");let _t=4,wt=0,Tt=1,Rt=0,It=!1,At,jt=this._pos?this._pos:0;for(;wt<_t&&jt+wt=wt&&this._emitError(new Error("Invalid variable byte integer")),jt&&(this._pos+=wt),It?$t?It={bytes:wt,value:Rt}:It=Rt:It=!1,ft("_parseVarByteNum: result: %o",It),It}_parseByte(){let $t;return this._pos{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),st=65536,ct={},ut=rt.isBuffer(rt.from([1,2]).subarray(0,1));function ft(_t){let wt=rt.allocUnsafe(2);return wt.writeUInt8(_t>>8,0),wt.writeUInt8(_t&255,1),wt}function gt(){for(let _t=0;_t0&&(wt=wt|128),Rt.writeUInt8(wt,Tt++);while(_t>0&&Tt<4);return _t>0&&(Tt=0),ut?Rt.subarray(0,Tt):Rt.slice(0,Tt)}function $t(_t){let wt=rt.allocUnsafe(4);return wt.writeUInt32BE(_t,0),wt}et.exports={cache:ct,generateCache:gt,generateNumber:ft,genBufVariableByteInt:xt,generate4ByteBuffer:$t}}),Sd=M$1((_e,et)=>{_$2(),v$1(),m$1(),typeof B$2>"u"||!B$2.version||B$2.version.indexOf("v0.")===0||B$2.version.indexOf("v1.")===0&&B$2.version.indexOf("v1.8.")!==0?et.exports={nextTick:rt}:et.exports=B$2;function rt(st,ct,ut,ft){if(typeof st!="function")throw new TypeError('"callback" argument must be a function');var gt=arguments.length,xt,$t;switch(gt){case 0:case 1:return B$2.nextTick(st);case 2:return B$2.nextTick(function(){st.call(null,ct)});case 3:return B$2.nextTick(function(){st.call(null,ct,ut)});case 4:return B$2.nextTick(function(){st.call(null,ct,ut,ft)});default:for(xt=new Array(gt-1),$t=0;$t{_$2(),v$1(),m$1();var rt=jo(),{Buffer:st}=(we(),Z(ve)),ct=st.allocUnsafe(0),ut=st.from([0]),ft=Ed(),gt=Sd().nextTick,xt=ot()("mqtt-packet:writeToStream"),$t=ft.cache,_t=ft.generateNumber,wt=ft.generateCache,Tt=ft.genBufVariableByteInt,Rt=ft.generate4ByteBuffer,It=fr,At=!0;function jt(_r,Cr,Nr){switch(xt("generate called"),Cr.cork&&(Cr.cork(),gt(Nt,Cr)),At&&(At=!1,wt()),xt("generate: packet.cmd: %s",_r.cmd),_r.cmd){case"connect":return kt(_r,Cr);case"connack":return Ft(_r,Cr,Nr);case"publish":return Ht(_r,Cr,Nr);case"puback":case"pubrec":case"pubrel":case"pubcomp":return Wt(_r,Cr,Nr);case"subscribe":return Vt(_r,Cr,Nr);case"suback":return qt(_r,Cr,Nr);case"unsubscribe":return Gt(_r,Cr,Nr);case"unsuback":return Xt(_r,Cr,Nr);case"pingreq":case"pingresp":return Zt(_r,Cr);case"disconnect":return lr(_r,Cr,Nr);case"auth":return er(_r,Cr,Nr);default:return Cr.destroy(new Error("Unknown command")),!1}}Object.defineProperty(jt,"cacheNumbers",{get(){return It===fr},set(_r){_r?((!$t||Object.keys($t).length===0)&&(At=!0),It=fr):(At=!1,It=dr)}});function Nt(_r){_r.uncork()}function kt(_r,Cr,Nr){let Rr=_r||{},Pr=Rr.protocolId||"MQTT",Mr=Rr.protocolVersion||4,kr=Rr.will,Fr=Rr.clean,wr=Rr.keepalive||0,Br=Rr.clientId||"",Dr=Rr.username,Xr=Rr.password,Kr=Rr.properties;Fr===void 0&&(Fr=!0);let zr=0;if(!Pr||typeof Pr!="string"&&!st.isBuffer(Pr))return Cr.destroy(new Error("Invalid protocolId")),!1;if(zr+=Pr.length+2,Mr!==3&&Mr!==4&&Mr!==5)return Cr.destroy(new Error("Invalid protocol version")),!1;if(zr+=1,(typeof Br=="string"||st.isBuffer(Br))&&(Br||Mr>=4)&&(Br||Fr))zr+=st.byteLength(Br)+2;else{if(Mr<4)return Cr.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(Fr*1===0)return Cr.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof wr!="number"||wr<0||wr>65535||wr%1!==0)return Cr.destroy(new Error("Invalid keepalive")),!1;zr+=2,zr+=1;let qr,pn;if(Mr===5){if(qr=Er(Cr,Kr),!qr)return!1;zr+=qr.length}if(kr){if(typeof kr!="object")return Cr.destroy(new Error("Invalid will")),!1;if(!kr.topic||typeof kr.topic!="string")return Cr.destroy(new Error("Invalid will topic")),!1;if(zr+=st.byteLength(kr.topic)+2,zr+=2,kr.payload)if(kr.payload.length>=0)typeof kr.payload=="string"?zr+=st.byteLength(kr.payload):zr+=kr.payload.length;else return Cr.destroy(new Error("Invalid will payload")),!1;if(pn={},Mr===5){if(pn=Er(Cr,kr.properties),!pn)return!1;zr+=pn.length}}let Qr=!1;if(Dr!=null)if(Or(Dr))Qr=!0,zr+=st.byteLength(Dr)+2;else return Cr.destroy(new Error("Invalid username")),!1;if(Xr!=null){if(!Qr)return Cr.destroy(new Error("Username is required to use password")),!1;if(Or(Xr))zr+=jr(Xr)+2;else return Cr.destroy(new Error("Invalid password")),!1}Cr.write(rt.CONNECT_HEADER),ur(Cr,zr),$r(Cr,Pr),Rr.bridgeMode&&(Mr+=128),Cr.write(Mr===131?rt.VERSION131:Mr===132?rt.VERSION132:Mr===4?rt.VERSION4:Mr===5?rt.VERSION5:rt.VERSION3);let Zr=0;return Zr|=Dr!=null?rt.USERNAME_MASK:0,Zr|=Xr!=null?rt.PASSWORD_MASK:0,Zr|=kr&&kr.retain?rt.WILL_RETAIN_MASK:0,Zr|=kr&&kr.qos?kr.qos<0&&It(Cr,Br),Kr==null||Kr.write(),xt("publish: payload: %o",wr),Cr.write(wr)}function Wt(_r,Cr,Nr){let Rr=Nr?Nr.protocolVersion:4,Pr=_r||{},Mr=Pr.cmd||"puback",kr=Pr.messageId,Fr=Pr.dup&&Mr==="pubrel"?rt.DUP_MASK:0,wr=0,Br=Pr.reasonCode,Dr=Pr.properties,Xr=Rr===5?3:2;if(Mr==="pubrel"&&(wr=1),typeof kr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;let Kr=null;if(Rr===5&&typeof Dr=="object"){if(Kr=mr(Cr,Dr,Nr,Xr),!Kr)return!1;Xr+=Kr.length}return Cr.write(rt.ACKS[Mr][wr][Fr][0]),Xr===3&&(Xr+=Br!==0?1:-1),ur(Cr,Xr),It(Cr,kr),Rr===5&&Xr!==2&&Cr.write(st.from([Br])),Kr!==null?Kr.write():Xr===4&&Cr.write(st.from([0])),!0}function Vt(_r,Cr,Nr){xt("subscribe: packet: ");let Rr=Nr?Nr.protocolVersion:4,Pr=_r||{},Mr=Pr.dup?rt.DUP_MASK:0,kr=Pr.messageId,Fr=Pr.subscriptions,wr=Pr.properties,Br=0;if(typeof kr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;Br+=2;let Dr=null;if(Rr===5){if(Dr=Er(Cr,wr),!Dr)return!1;Br+=Dr.length}if(typeof Fr=="object"&&Fr.length)for(let Kr=0;Kr2)return Cr.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}Br+=st.byteLength(zr)+2+1}else return Cr.destroy(new Error("Invalid subscriptions")),!1;xt("subscribe: writing to stream: %o",rt.SUBSCRIBE_HEADER),Cr.write(rt.SUBSCRIBE_HEADER[1][Mr?1:0][0]),ur(Cr,Br),It(Cr,kr),Dr!==null&&Dr.write();let Xr=!0;for(let Kr of Fr){let zr=Kr.topic,qr=Kr.qos,pn=+Kr.nl,Qr=+Kr.rap,Zr=Kr.rh,vn;pr(Cr,zr),vn=rt.SUBSCRIBE_OPTIONS_QOS[qr],Rr===5&&(vn|=pn?rt.SUBSCRIBE_OPTIONS_NL:0,vn|=Qr?rt.SUBSCRIBE_OPTIONS_RAP:0,vn|=Zr?rt.SUBSCRIBE_OPTIONS_RH[Zr]:0),Xr=Cr.write(st.from([vn]))}return Xr}function qt(_r,Cr,Nr){let Rr=Nr?Nr.protocolVersion:4,Pr=_r||{},Mr=Pr.messageId,kr=Pr.granted,Fr=Pr.properties,wr=0;if(typeof Mr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;if(wr+=2,typeof kr=="object"&&kr.length)for(let Dr=0;Drrt.VARBYTEINT_MAX)return _r.destroy(new Error(`Invalid variable byte integer: ${Cr}`)),!1;let Nr=cr[Cr];return Nr||(Nr=Tt(Cr),Cr<16384&&(cr[Cr]=Nr)),xt("writeVarByteInt: writing to stream: %o",Nr),_r.write(Nr)}function pr(_r,Cr){let Nr=st.byteLength(Cr);return It(_r,Nr),xt("writeString: %s",Cr),_r.write(Cr,"utf8")}function hr(_r,Cr,Nr){pr(_r,Cr),pr(_r,Nr)}function fr(_r,Cr){return xt("writeNumberCached: number: %d",Cr),xt("writeNumberCached: %o",$t[Cr]),_r.write($t[Cr])}function dr(_r,Cr){let Nr=_t(Cr);return xt("writeNumberGenerated: %o",Nr),_r.write(Nr)}function yr(_r,Cr){let Nr=Rt(Cr);return xt("write4ByteNumber: %o",Nr),_r.write(Nr)}function $r(_r,Cr){typeof Cr=="string"?pr(_r,Cr):Cr?(It(_r,Cr.length),_r.write(Cr)):It(_r,0)}function Er(_r,Cr){if(typeof Cr!="object"||Cr.length!=null)return{length:1,write(){Tr(_r,{},0)}};let Nr=0;function Rr(Pr,Mr){let kr=rt.propertiesTypes[Pr],Fr=0;switch(kr){case"byte":{if(typeof Mr!="boolean")return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=2;break}case"int8":{if(typeof Mr!="number"||Mr<0||Mr>255)return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=2;break}case"binary":{if(Mr&&Mr===null)return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=1+st.byteLength(Mr)+2;break}case"int16":{if(typeof Mr!="number"||Mr<0||Mr>65535)return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=3;break}case"int32":{if(typeof Mr!="number"||Mr<0||Mr>4294967295)return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=5;break}case"var":{if(typeof Mr!="number"||Mr<0||Mr>268435455)return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=1+st.byteLength(Tt(Mr));break}case"string":{if(typeof Mr!="string")return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=3+st.byteLength(Mr.toString());break}case"pair":{if(typeof Mr!="object")return _r.destroy(new Error(`Invalid ${Pr}: ${Mr}`)),!1;Fr+=Object.getOwnPropertyNames(Mr).reduce((wr,Br)=>{let Dr=Mr[Br];return Array.isArray(Dr)?wr+=Dr.reduce((Xr,Kr)=>(Xr+=3+st.byteLength(Br.toString())+2+st.byteLength(Kr.toString()),Xr),0):wr+=3+st.byteLength(Br.toString())+2+st.byteLength(Mr[Br].toString()),wr},0);break}default:return _r.destroy(new Error(`Invalid property ${Pr}: ${Mr}`)),!1}return Fr}if(Cr)for(let Pr in Cr){let Mr=0,kr=0,Fr=Cr[Pr];if(Array.isArray(Fr))for(let wr=0;wrMr;){let Fr=Pr.shift();if(Fr&&Cr[Fr])delete Cr[Fr],kr=Er(_r,Cr);else return!1}return kr}function Sr(_r,Cr,Nr){switch(rt.propertiesTypes[Cr]){case"byte":{_r.write(st.from([rt.properties[Cr]])),_r.write(st.from([+Nr]));break}case"int8":{_r.write(st.from([rt.properties[Cr]])),_r.write(st.from([Nr]));break}case"binary":{_r.write(st.from([rt.properties[Cr]])),$r(_r,Nr);break}case"int16":{_r.write(st.from([rt.properties[Cr]])),It(_r,Nr);break}case"int32":{_r.write(st.from([rt.properties[Cr]])),yr(_r,Nr);break}case"var":{_r.write(st.from([rt.properties[Cr]])),ur(_r,Nr);break}case"string":{_r.write(st.from([rt.properties[Cr]])),pr(_r,Nr);break}case"pair":{Object.getOwnPropertyNames(Nr).forEach(Rr=>{let Pr=Nr[Rr];Array.isArray(Pr)?Pr.forEach(Mr=>{_r.write(st.from([rt.properties[Cr]])),hr(_r,Rr.toString(),Mr.toString())}):(_r.write(st.from([rt.properties[Cr]])),hr(_r,Rr.toString(),Pr.toString()))});break}default:return _r.destroy(new Error(`Invalid property ${Cr} value: ${Nr}`)),!1}}function Tr(_r,Cr,Nr){ur(_r,Nr);for(let Rr in Cr)if(Object.prototype.hasOwnProperty.call(Cr,Rr)&&Cr[Rr]!==null){let Pr=Cr[Rr];if(Array.isArray(Pr))for(let Mr=0;Mr{_$2(),v$1(),m$1();var rt=Vo(),{EventEmitter:st}=(ir(),Z(rr)),{Buffer:ct}=(we(),Z(ve));function ut(gt,xt){let $t=new ft;return rt(gt,$t,xt),$t.concat()}var ft=class extends st{constructor(){super(),this._array=new Array(20),this._i=0}write(gt){return this._array[this._i++]=gt,!0}concat(){let gt=0,xt=new Array(this._array.length),$t=this._array,_t=0,wt;for(wt=0;wt<$t.length&&$t[wt]!==void 0;wt++)typeof $t[wt]!="string"?xt[wt]=$t[wt].length:xt[wt]=ct.byteLength($t[wt]),gt+=xt[wt];let Tt=ct.allocUnsafe(gt);for(wt=0;wt<$t.length&&$t[wt]!==void 0;wt++)typeof $t[wt]!="string"?($t[wt].copy(Tt,_t),_t+=xt[wt]):(Tt.write($t[wt],_t),_t+=xt[wt]);return Tt}destroy(gt){gt&&this.emit("error",gt)}};et.exports=ut}),Ld=M$1(_e=>{_$2(),v$1(),m$1(),_e.parser=wd().parser,_e.generate=Md(),_e.writeToStream=Vo()}),Qo=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let rt=this.nextId++;return this.nextId===65536&&(this.nextId=1),rt}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(rt){return!0}deallocate(rt){}clear(){}};_e.default=et}),Nd=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports=st;function rt(ut){return ut instanceof x$1?x$1.from(ut):new ut.constructor(ut.buffer.slice(),ut.byteOffset,ut.length)}function st(ut){if(ut=ut||{},ut.circles)return ct(ut);return ut.proto?xt:gt;function ft($t,_t){for(var wt=Object.keys($t),Tt=new Array(wt.length),Rt=0;Rt{_$2(),v$1(),m$1(),et.exports=Nd()()}),Fd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.validateTopics=_e.validateTopic=void 0;function et(st){let ct=st.split("/");for(let ut=0;ut{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Dt(),rt={objectMode:!0},st={clean:!0},ct=class{constructor(ut){this.options=ut||{},this.options=Object.assign(Object.assign({},st),ut),this._inflights=new Map}put(ut,ft){return this._inflights.set(ut.messageId,ut),ft&&ft(),this}createStream(){let ut=new et.Readable(rt),ft=[],gt=!1,xt=0;return this._inflights.forEach(($t,_t)=>{ft.push($t)}),ut._read=()=>{!gt&&xt{if(!gt)return gt=!0,setTimeout(()=>{ut.emit("close")},0),ut},ut}del(ut,ft){let gt=this._inflights.get(ut.messageId);return gt?(this._inflights.delete(ut.messageId),ft(null,gt)):ft&&ft(new Error("missing packet")),this}get(ut,ft){let gt=this._inflights.get(ut.messageId);return gt?ft(null,gt):ft&&ft(new Error("missing packet")),this}close(ut){this.options.clean&&(this._inflights=null),ut&&ut()}};_e.default=ct}),$d=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=[0,16,128,131,135,144,145,151,153],rt=(st,ct,ut)=>{st.log("handlePublish: packet %o",ct),ut=typeof ut<"u"?ut:st.noop;let ft=ct.topic.toString(),gt=ct.payload,{qos:xt}=ct,{messageId:$t}=ct,{options:_t}=st;if(st.options.protocolVersion===5){let wt;if(ct.properties&&(wt=ct.properties.topicAlias),typeof wt<"u")if(ft.length===0)if(wt>0&&wt<=65535){let Tt=st.topicAliasRecv.getTopicByAlias(wt);if(Tt)ft=Tt,st.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",ft,wt);else{st.log("handlePublish :: unregistered topic alias. alias: %d",wt),st.emit("error",new Error("Received unregistered Topic Alias"));return}}else{st.log("handlePublish :: topic alias out of range. alias: %d",wt),st.emit("error",new Error("Received Topic Alias is out of range"));return}else if(st.topicAliasRecv.put(ft,wt))st.log("handlePublish :: registered topic: %s - alias: %d",ft,wt);else{st.log("handlePublish :: topic alias out of range. alias: %d",wt),st.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(st.log("handlePublish: qos %d",xt),xt){case 2:{_t.customHandleAcks(ft,gt,ct,(wt,Tt)=>{if(typeof wt=="number"&&(Tt=wt,wt=null),wt)return st.emit("error",wt);if(et.indexOf(Tt)===-1)return st.emit("error",new Error("Wrong reason code for pubrec"));Tt?st._sendPacket({cmd:"pubrec",messageId:$t,reasonCode:Tt},ut):st.incomingStore.put(ct,()=>{st._sendPacket({cmd:"pubrec",messageId:$t},ut)})});break}case 1:{_t.customHandleAcks(ft,gt,ct,(wt,Tt)=>{if(typeof wt=="number"&&(Tt=wt,wt=null),wt)return st.emit("error",wt);if(et.indexOf(Tt)===-1)return st.emit("error",new Error("Wrong reason code for puback"));Tt||st.emit("message",ft,gt,ct),st.handleMessage(ct,Rt=>{if(Rt)return ut&&ut(Rt);st._sendPacket({cmd:"puback",messageId:$t,reasonCode:Tt},ut)})});break}case 0:st.emit("message",ft,gt,ct),st.handleMessage(ct,ut);break;default:st.log("handlePublish: unknown QoS. Doing nothing.");break}};_e.default=rt}),Yr=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.nextTick=_e.applyMixin=_e.ErrorWithReasonCode=void 0;var et=class pm extends Error{constructor(ct,ut){super(ct),this.code=ut,Object.setPrototypeOf(this,pm.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};_e.ErrorWithReasonCode=et;function rt(st,ct,ut=!1){var ft;let gt=[ct];for(;;){let xt=gt[0],$t=Object.getPrototypeOf(xt);if($t!=null&&$t.prototype)gt.unshift($t);else break}for(let xt of gt)for(let $t of Object.getOwnPropertyNames(xt.prototype))(ut||$t!=="constructor")&&Object.defineProperty(st.prototype,$t,(ft=Object.getOwnPropertyDescriptor(xt.prototype,$t))!==null&&ft!==void 0?ft:Object.create(null))}_e.applyMixin=rt,_e.nextTick=B$2?B$2.nextTick:st=>{setTimeout(st,0)}}),Si=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReasonCodes=void 0,_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 et=(rt,st)=>{let{messageId:ct}=st,ut=st.cmd,ft=null,gt=rt.outgoing[ct]?rt.outgoing[ct].cb:null,xt;if(!gt){rt.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(rt.log("_handleAck :: packet type",ut),ut){case"pubcomp":case"puback":{let $t=st.reasonCode;$t&&$t>0&&$t!==16?(xt=new Error(`Publish error: ${_e.ReasonCodes[$t]}`),xt.code=$t,rt._removeOutgoingAndStoreMessage(ct,()=>{gt(xt,st)})):rt._removeOutgoingAndStoreMessage(ct,gt);break}case"pubrec":{ft={cmd:"pubrel",qos:2,messageId:ct};let $t=st.reasonCode;$t&&$t>0&&$t!==16?(xt=new Error(`Publish error: ${_e.ReasonCodes[$t]}`),xt.code=$t,rt._removeOutgoingAndStoreMessage(ct,()=>{gt(xt,st)})):rt._sendPacket(ft);break}case"suback":{delete rt.outgoing[ct],rt.messageIdProvider.deallocate(ct);let $t=st.granted;for(let _t=0;_t<$t.length;_t++)if($t[_t]&128){let wt=rt.messageIdToTopic[ct];wt&&wt.forEach(Tt=>{delete rt._resubscribeTopics[Tt]})}delete rt.messageIdToTopic[ct],rt._invokeStoreProcessingQueue(),gt(null,st);break}case"unsuback":{delete rt.outgoing[ct],rt.messageIdProvider.deallocate(ct),rt._invokeStoreProcessingQueue(),gt(null);break}default:rt.emit("error",new Error("unrecognized packet type"))}rt.disconnecting&&Object.keys(rt.outgoing).length===0&&rt.emit("outgoingEmpty")};_e.default=et}),Vd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Yr(),rt=Si(),st=(ct,ut)=>{let{options:ft}=ct,gt=ft.protocolVersion,xt=gt===5?ut.reasonCode:ut.returnCode;if(gt!==5){let $t=new et.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${gt}`,xt);ct.emit("error",$t);return}ct.handleAuth(ut,($t,_t)=>{if($t){ct.emit("error",$t);return}if(xt===24)ct.reconnecting=!1,ct._sendPacket(_t);else{let wt=new et.ErrorWithReasonCode(`Connection refused: ${rt.ReasonCodes[xt]}`,xt);ct.emit("error",wt)}})};_e.default=st}),Yd=M$1(_e=>{var Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt,Gt,Xt,Zt,lr,er,cr,ur,pr,hr,fr,dr,yr,$r,Er,mr,em,Tr,jr,Or,_r,Cr,gm,Rr,Pr,Mr,kr,As,wr,ks,Dr,tm,Kr,Op,qr,Mp,Qr,ba,vn,rm,gr,fp,Hr;_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.LRUCache=void 0;var et=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,rt=new Set,st=typeof B$2=="object"&&B$2?B$2:{},ct=(Vr,Wr,Gr,cn)=>{typeof st.emitWarning=="function"?st.emitWarning(Vr,Wr,Gr,cn):console.error(`[${Gr}] ${Wr}: ${Vr}`)},ut=globalThis.AbortController,ft=globalThis.AbortSignal;if(typeof ut>"u"){ft=class{constructor(){zo(this,"onabort");zo(this,"_onabort",[]);zo(this,"reason");zo(this,"aborted",!1)}addEventListener(Gr,cn){this._onabort.push(cn)}},ut=class{constructor(){zo(this,"signal",new ft);Wr()}abort(Gr){var cn,mn;if(!this.signal.aborted){this.signal.reason=Gr,this.signal.aborted=!0;for(let hn of this.signal._onabort)hn(Gr);(mn=(cn=this.signal).onabort)==null||mn.call(cn,Gr)}}};let Vr=((Rt=st.env)==null?void 0:Rt.LRU_CACHE_IGNORE_AC_WARNING)!=="1",Wr=()=>{Vr&&(Vr=!1,ct("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",Wr))}}var gt=Vr=>!rt.has(Vr),xt=Vr=>Vr&&Vr===Math.floor(Vr)&&Vr>0&&isFinite(Vr),$t=Vr=>xt(Vr)?Vr<=Math.pow(2,8)?Uint8Array:Vr<=Math.pow(2,16)?Uint16Array:Vr<=Math.pow(2,32)?Uint32Array:Vr<=Number.MAX_SAFE_INTEGER?_t:null:null,_t=class extends Array{constructor(Vr){super(Vr),this.fill(0)}},wt=(It=class{constructor(Wr,Gr){zo(this,"heap");zo(this,"length");if(!Jr(It,At))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Gr(Wr),this.length=0}static create(Wr){let Gr=$t(Wr);if(!Gr)return[];Jn(It,At,!0);let cn=new It(Wr,Gr);return Jn(It,At,!1),cn}push(Wr){this.heap[this.length++]=Wr}pop(){return this.heap[--this.length]}},At=new WeakMap,go(It,At,!1),It),Tt=(Hr=class{constructor(Wr){go(this,mr);go(this,Cr);go(this,kr);go(this,wr);go(this,Dr);go(this,Kr);go(this,qr);go(this,Qr);go(this,vn);go(this,gr);go(this,jt,void 0);go(this,Nt,void 0);go(this,kt,void 0);go(this,Ft,void 0);go(this,Ht,void 0);zo(this,"ttl");zo(this,"ttlResolution");zo(this,"ttlAutopurge");zo(this,"updateAgeOnGet");zo(this,"updateAgeOnHas");zo(this,"allowStale");zo(this,"noDisposeOnSet");zo(this,"noUpdateTTL");zo(this,"maxEntrySize");zo(this,"sizeCalculation");zo(this,"noDeleteOnFetchRejection");zo(this,"noDeleteOnStaleGet");zo(this,"allowStaleOnFetchAbort");zo(this,"allowStaleOnFetchRejection");zo(this,"ignoreFetchAbort");go(this,Wt,void 0);go(this,Vt,void 0);go(this,qt,void 0);go(this,Gt,void 0);go(this,Xt,void 0);go(this,Zt,void 0);go(this,lr,void 0);go(this,er,void 0);go(this,cr,void 0);go(this,ur,void 0);go(this,pr,void 0);go(this,hr,void 0);go(this,fr,void 0);go(this,dr,void 0);go(this,yr,void 0);go(this,$r,void 0);go(this,Er,void 0);go(this,Tr,()=>{});go(this,jr,()=>{});go(this,Or,()=>{});go(this,_r,()=>!1);go(this,Rr,Wr=>{});go(this,Pr,(Wr,Gr,cn)=>{});go(this,Mr,(Wr,Gr,cn,mn)=>{if(cn||mn)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Gr=0,ttl:cn,ttlResolution:mn=1,ttlAutopurge:hn,updateAgeOnGet:En,updateAgeOnHas:Rn,allowStale:Dn,dispose:Bn,disposeAfter:Yn,noDisposeOnSet:qn,noUpdateTTL:ao,maxSize:dn=0,maxEntrySize:gn=0,sizeCalculation:yn,fetchMethod:wn,noDeleteOnFetchRejection:Tn,noDeleteOnStaleGet:Nn,allowStaleOnFetchRejection:On,allowStaleOnFetchAbort:xn,ignoreFetchAbort:Cn}=Wr;if(Gr!==0&&!xt(Gr))throw new TypeError("max option must be a nonnegative integer");let Sn=Gr?$t(Gr):Array;if(!Sn)throw new Error("invalid max value: "+Gr);if(Jn(this,jt,Gr),Jn(this,Nt,dn),this.maxEntrySize=gn||Jr(this,Nt),this.sizeCalculation=yn,this.sizeCalculation){if(!Jr(this,Nt)&&!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(wn!==void 0&&typeof wn!="function")throw new TypeError("fetchMethod must be a function if specified");if(Jn(this,Ht,wn),Jn(this,$r,!!wn),Jn(this,qt,new Map),Jn(this,Gt,new Array(Gr).fill(void 0)),Jn(this,Xt,new Array(Gr).fill(void 0)),Jn(this,Zt,new Sn(Gr)),Jn(this,lr,new Sn(Gr)),Jn(this,er,0),Jn(this,cr,0),Jn(this,ur,wt.create(Gr)),Jn(this,Wt,0),Jn(this,Vt,0),typeof Bn=="function"&&Jn(this,kt,Bn),typeof Yn=="function"?(Jn(this,Ft,Yn),Jn(this,pr,[])):(Jn(this,Ft,void 0),Jn(this,pr,void 0)),Jn(this,yr,!!Jr(this,kt)),Jn(this,Er,!!Jr(this,Ft)),this.noDisposeOnSet=!!qn,this.noUpdateTTL=!!ao,this.noDeleteOnFetchRejection=!!Tn,this.allowStaleOnFetchRejection=!!On,this.allowStaleOnFetchAbort=!!xn,this.ignoreFetchAbort=!!Cn,this.maxEntrySize!==0){if(Jr(this,Nt)!==0&&!xt(Jr(this,Nt)))throw new TypeError("maxSize must be a positive integer if specified");if(!xt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ho(this,Cr,gm).call(this)}if(this.allowStale=!!Dn,this.noDeleteOnStaleGet=!!Nn,this.updateAgeOnGet=!!En,this.updateAgeOnHas=!!Rn,this.ttlResolution=xt(mn)||mn===0?mn:1,this.ttlAutopurge=!!hn,this.ttl=cn||0,this.ttl){if(!xt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ho(this,mr,em).call(this)}if(Jr(this,jt)===0&&this.ttl===0&&Jr(this,Nt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Jr(this,jt)&&!Jr(this,Nt)){let Mn="LRU_CACHE_UNBOUNDED";gt(Mn)&&(rt.add(Mn),ct("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Mn,Hr))}}static unsafeExposeInternals(Wr){return{starts:Jr(Wr,fr),ttls:Jr(Wr,dr),sizes:Jr(Wr,hr),keyMap:Jr(Wr,qt),keyList:Jr(Wr,Gt),valList:Jr(Wr,Xt),next:Jr(Wr,Zt),prev:Jr(Wr,lr),get head(){return Jr(Wr,er)},get tail(){return Jr(Wr,cr)},free:Jr(Wr,ur),isBackgroundFetch:Gr=>{var cn;return ho(cn=Wr,Qr,ba).call(cn,Gr)},backgroundFetch:(Gr,cn,mn,hn)=>{var En;return ho(En=Wr,qr,Mp).call(En,Gr,cn,mn,hn)},moveToTail:Gr=>{var cn;return ho(cn=Wr,gr,fp).call(cn,Gr)},indexes:Gr=>{var cn;return ho(cn=Wr,kr,As).call(cn,Gr)},rindexes:Gr=>{var cn;return ho(cn=Wr,wr,ks).call(cn,Gr)},isStale:Gr=>{var cn;return Jr(cn=Wr,_r).call(cn,Gr)}}}get max(){return Jr(this,jt)}get maxSize(){return Jr(this,Nt)}get calculatedSize(){return Jr(this,Vt)}get size(){return Jr(this,Wt)}get fetchMethod(){return Jr(this,Ht)}get dispose(){return Jr(this,kt)}get disposeAfter(){return Jr(this,Ft)}getRemainingTTL(Wr){return Jr(this,qt).has(Wr)?1/0:0}*entries(){for(let Wr of ho(this,kr,As).call(this))Jr(this,Xt)[Wr]!==void 0&&Jr(this,Gt)[Wr]!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield[Jr(this,Gt)[Wr],Jr(this,Xt)[Wr]])}*rentries(){for(let Wr of ho(this,wr,ks).call(this))Jr(this,Xt)[Wr]!==void 0&&Jr(this,Gt)[Wr]!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield[Jr(this,Gt)[Wr],Jr(this,Xt)[Wr]])}*keys(){for(let Wr of ho(this,kr,As).call(this)){let Gr=Jr(this,Gt)[Wr];Gr!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield Gr)}}*rkeys(){for(let Wr of ho(this,wr,ks).call(this)){let Gr=Jr(this,Gt)[Wr];Gr!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield Gr)}}*values(){for(let Wr of ho(this,kr,As).call(this))Jr(this,Xt)[Wr]!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield Jr(this,Xt)[Wr])}*rvalues(){for(let Wr of ho(this,wr,ks).call(this))Jr(this,Xt)[Wr]!==void 0&&!ho(this,Qr,ba).call(this,Jr(this,Xt)[Wr])&&(yield Jr(this,Xt)[Wr])}[Symbol.iterator](){return this.entries()}find(Wr,Gr={}){for(let cn of ho(this,kr,As).call(this)){let mn=Jr(this,Xt)[cn],hn=ho(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;if(hn!==void 0&&Wr(hn,Jr(this,Gt)[cn],this))return this.get(Jr(this,Gt)[cn],Gr)}}forEach(Wr,Gr=this){for(let cn of ho(this,kr,As).call(this)){let mn=Jr(this,Xt)[cn],hn=ho(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;hn!==void 0&&Wr.call(Gr,hn,Jr(this,Gt)[cn],this)}}rforEach(Wr,Gr=this){for(let cn of ho(this,wr,ks).call(this)){let mn=Jr(this,Xt)[cn],hn=ho(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;hn!==void 0&&Wr.call(Gr,hn,Jr(this,Gt)[cn],this)}}purgeStale(){let Wr=!1;for(let Gr of ho(this,wr,ks).call(this,{allowStale:!0}))Jr(this,_r).call(this,Gr)&&(this.delete(Jr(this,Gt)[Gr]),Wr=!0);return Wr}dump(){let Wr=[];for(let Gr of ho(this,kr,As).call(this,{allowStale:!0})){let cn=Jr(this,Gt)[Gr],mn=Jr(this,Xt)[Gr],hn=ho(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;if(hn===void 0||cn===void 0)continue;let En={value:hn};if(Jr(this,dr)&&Jr(this,fr)){En.ttl=Jr(this,dr)[Gr];let Rn=et.now()-Jr(this,fr)[Gr];En.start=Math.floor(Date.now()-Rn)}Jr(this,hr)&&(En.size=Jr(this,hr)[Gr]),Wr.unshift([cn,En])}return Wr}load(Wr){this.clear();for(let[Gr,cn]of Wr){if(cn.start){let mn=Date.now()-cn.start;cn.start=et.now()-mn}this.set(Gr,cn.value,cn)}}set(Wr,Gr,cn={}){var ao,dn,gn,yn,wn;if(Gr===void 0)return this.delete(Wr),this;let{ttl:mn=this.ttl,start:hn,noDisposeOnSet:En=this.noDisposeOnSet,sizeCalculation:Rn=this.sizeCalculation,status:Dn}=cn,{noUpdateTTL:Bn=this.noUpdateTTL}=cn,Yn=Jr(this,Mr).call(this,Wr,Gr,cn.size||0,Rn);if(this.maxEntrySize&&Yn>this.maxEntrySize)return Dn&&(Dn.set="miss",Dn.maxEntrySizeExceeded=!0),this.delete(Wr),this;let qn=Jr(this,Wt)===0?void 0:Jr(this,qt).get(Wr);if(qn===void 0)qn=Jr(this,Wt)===0?Jr(this,cr):Jr(this,ur).length!==0?Jr(this,ur).pop():Jr(this,Wt)===Jr(this,jt)?ho(this,Kr,Op).call(this,!1):Jr(this,Wt),Jr(this,Gt)[qn]=Wr,Jr(this,Xt)[qn]=Gr,Jr(this,qt).set(Wr,qn),Jr(this,Zt)[Jr(this,cr)]=qn,Jr(this,lr)[qn]=Jr(this,cr),Jn(this,cr,qn),Sl(this,Wt)._++,Jr(this,Pr).call(this,qn,Yn,Dn),Dn&&(Dn.set="add"),Bn=!1;else{ho(this,gr,fp).call(this,qn);let Tn=Jr(this,Xt)[qn];if(Gr!==Tn){if(Jr(this,$r)&&ho(this,Qr,ba).call(this,Tn)){Tn.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Nn}=Tn;Nn!==void 0&&!En&&(Jr(this,yr)&&((ao=Jr(this,kt))==null||ao.call(this,Nn,Wr,"set")),Jr(this,Er)&&((dn=Jr(this,pr))==null||dn.push([Nn,Wr,"set"])))}else En||(Jr(this,yr)&&((gn=Jr(this,kt))==null||gn.call(this,Tn,Wr,"set")),Jr(this,Er)&&((yn=Jr(this,pr))==null||yn.push([Tn,Wr,"set"])));if(Jr(this,Rr).call(this,qn),Jr(this,Pr).call(this,qn,Yn,Dn),Jr(this,Xt)[qn]=Gr,Dn){Dn.set="replace";let Nn=Tn&&ho(this,Qr,ba).call(this,Tn)?Tn.__staleWhileFetching:Tn;Nn!==void 0&&(Dn.oldValue=Nn)}}else Dn&&(Dn.set="update")}if(mn!==0&&!Jr(this,dr)&&ho(this,mr,em).call(this),Jr(this,dr)&&(Bn||Jr(this,Or).call(this,qn,mn,hn),Dn&&Jr(this,jr).call(this,Dn,qn)),!En&&Jr(this,Er)&&Jr(this,pr)){let Tn=Jr(this,pr),Nn;for(;Nn=Tn==null?void 0:Tn.shift();)(wn=Jr(this,Ft))==null||wn.call(this,...Nn)}return this}pop(){var Wr;try{for(;Jr(this,Wt);){let Gr=Jr(this,Xt)[Jr(this,er)];if(ho(this,Kr,Op).call(this,!0),ho(this,Qr,ba).call(this,Gr)){if(Gr.__staleWhileFetching)return Gr.__staleWhileFetching}else if(Gr!==void 0)return Gr}}finally{if(Jr(this,Er)&&Jr(this,pr)){let Gr=Jr(this,pr),cn;for(;cn=Gr==null?void 0:Gr.shift();)(Wr=Jr(this,Ft))==null||Wr.call(this,...cn)}}}has(Wr,Gr={}){let{updateAgeOnHas:cn=this.updateAgeOnHas,status:mn}=Gr,hn=Jr(this,qt).get(Wr);if(hn!==void 0){let En=Jr(this,Xt)[hn];if(ho(this,Qr,ba).call(this,En)&&En.__staleWhileFetching===void 0)return!1;if(Jr(this,_r).call(this,hn))mn&&(mn.has="stale",Jr(this,jr).call(this,mn,hn));else return cn&&Jr(this,Tr).call(this,hn),mn&&(mn.has="hit",Jr(this,jr).call(this,mn,hn)),!0}else mn&&(mn.has="miss");return!1}peek(Wr,Gr={}){let{allowStale:cn=this.allowStale}=Gr,mn=Jr(this,qt).get(Wr);if(mn!==void 0&&(cn||!Jr(this,_r).call(this,mn))){let hn=Jr(this,Xt)[mn];return ho(this,Qr,ba).call(this,hn)?hn.__staleWhileFetching:hn}}async fetch(Wr,Gr={}){let{allowStale:cn=this.allowStale,updateAgeOnGet:mn=this.updateAgeOnGet,noDeleteOnStaleGet:hn=this.noDeleteOnStaleGet,ttl:En=this.ttl,noDisposeOnSet:Rn=this.noDisposeOnSet,size:Dn=0,sizeCalculation:Bn=this.sizeCalculation,noUpdateTTL:Yn=this.noUpdateTTL,noDeleteOnFetchRejection:qn=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:ao=this.allowStaleOnFetchRejection,ignoreFetchAbort:dn=this.ignoreFetchAbort,allowStaleOnFetchAbort:gn=this.allowStaleOnFetchAbort,context:yn,forceRefresh:wn=!1,status:Tn,signal:Nn}=Gr;if(!Jr(this,$r))return Tn&&(Tn.fetch="get"),this.get(Wr,{allowStale:cn,updateAgeOnGet:mn,noDeleteOnStaleGet:hn,status:Tn});let On={allowStale:cn,updateAgeOnGet:mn,noDeleteOnStaleGet:hn,ttl:En,noDisposeOnSet:Rn,size:Dn,sizeCalculation:Bn,noUpdateTTL:Yn,noDeleteOnFetchRejection:qn,allowStaleOnFetchRejection:ao,allowStaleOnFetchAbort:gn,ignoreFetchAbort:dn,status:Tn,signal:Nn},xn=Jr(this,qt).get(Wr);if(xn===void 0){Tn&&(Tn.fetch="miss");let Cn=ho(this,qr,Mp).call(this,Wr,xn,On,yn);return Cn.__returned=Cn}else{let Cn=Jr(this,Xt)[xn];if(ho(this,Qr,ba).call(this,Cn)){let Un=cn&&Cn.__staleWhileFetching!==void 0;return Tn&&(Tn.fetch="inflight",Un&&(Tn.returnedStale=!0)),Un?Cn.__staleWhileFetching:Cn.__returned=Cn}let Sn=Jr(this,_r).call(this,xn);if(!wn&&!Sn)return Tn&&(Tn.fetch="hit"),ho(this,gr,fp).call(this,xn),mn&&Jr(this,Tr).call(this,xn),Tn&&Jr(this,jr).call(this,Tn,xn),Cn;let Mn=ho(this,qr,Mp).call(this,Wr,xn,On,yn),jn=Mn.__staleWhileFetching!==void 0&&cn;return Tn&&(Tn.fetch=Sn?"stale":"refresh",jn&&Sn&&(Tn.returnedStale=!0)),jn?Mn.__staleWhileFetching:Mn.__returned=Mn}}get(Wr,Gr={}){let{allowStale:cn=this.allowStale,updateAgeOnGet:mn=this.updateAgeOnGet,noDeleteOnStaleGet:hn=this.noDeleteOnStaleGet,status:En}=Gr,Rn=Jr(this,qt).get(Wr);if(Rn!==void 0){let Dn=Jr(this,Xt)[Rn],Bn=ho(this,Qr,ba).call(this,Dn);return En&&Jr(this,jr).call(this,En,Rn),Jr(this,_r).call(this,Rn)?(En&&(En.get="stale"),Bn?(En&&cn&&Dn.__staleWhileFetching!==void 0&&(En.returnedStale=!0),cn?Dn.__staleWhileFetching:void 0):(hn||this.delete(Wr),En&&cn&&(En.returnedStale=!0),cn?Dn:void 0)):(En&&(En.get="hit"),Bn?Dn.__staleWhileFetching:(ho(this,gr,fp).call(this,Rn),mn&&Jr(this,Tr).call(this,Rn),Dn))}else En&&(En.get="miss")}delete(Wr){var cn,mn,hn,En;let Gr=!1;if(Jr(this,Wt)!==0){let Rn=Jr(this,qt).get(Wr);if(Rn!==void 0)if(Gr=!0,Jr(this,Wt)===1)this.clear();else{Jr(this,Rr).call(this,Rn);let Dn=Jr(this,Xt)[Rn];ho(this,Qr,ba).call(this,Dn)?Dn.__abortController.abort(new Error("deleted")):(Jr(this,yr)||Jr(this,Er))&&(Jr(this,yr)&&((cn=Jr(this,kt))==null||cn.call(this,Dn,Wr,"delete")),Jr(this,Er)&&((mn=Jr(this,pr))==null||mn.push([Dn,Wr,"delete"]))),Jr(this,qt).delete(Wr),Jr(this,Gt)[Rn]=void 0,Jr(this,Xt)[Rn]=void 0,Rn===Jr(this,cr)?Jn(this,cr,Jr(this,lr)[Rn]):Rn===Jr(this,er)?Jn(this,er,Jr(this,Zt)[Rn]):(Jr(this,Zt)[Jr(this,lr)[Rn]]=Jr(this,Zt)[Rn],Jr(this,lr)[Jr(this,Zt)[Rn]]=Jr(this,lr)[Rn]),Sl(this,Wt)._--,Jr(this,ur).push(Rn)}}if(Jr(this,Er)&&((hn=Jr(this,pr))!=null&&hn.length)){let Rn=Jr(this,pr),Dn;for(;Dn=Rn==null?void 0:Rn.shift();)(En=Jr(this,Ft))==null||En.call(this,...Dn)}return Gr}clear(){var Wr,Gr,cn;for(let mn of ho(this,wr,ks).call(this,{allowStale:!0})){let hn=Jr(this,Xt)[mn];if(ho(this,Qr,ba).call(this,hn))hn.__abortController.abort(new Error("deleted"));else{let En=Jr(this,Gt)[mn];Jr(this,yr)&&((Wr=Jr(this,kt))==null||Wr.call(this,hn,En,"delete")),Jr(this,Er)&&((Gr=Jr(this,pr))==null||Gr.push([hn,En,"delete"]))}}if(Jr(this,qt).clear(),Jr(this,Xt).fill(void 0),Jr(this,Gt).fill(void 0),Jr(this,dr)&&Jr(this,fr)&&(Jr(this,dr).fill(0),Jr(this,fr).fill(0)),Jr(this,hr)&&Jr(this,hr).fill(0),Jn(this,er,0),Jn(this,cr,0),Jr(this,ur).length=0,Jn(this,Vt,0),Jn(this,Wt,0),Jr(this,Er)&&Jr(this,pr)){let mn=Jr(this,pr),hn;for(;hn=mn==null?void 0:mn.shift();)(cn=Jr(this,Ft))==null||cn.call(this,...hn)}}},jt=new WeakMap,Nt=new WeakMap,kt=new WeakMap,Ft=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,Vt=new WeakMap,qt=new WeakMap,Gt=new WeakMap,Xt=new WeakMap,Zt=new WeakMap,lr=new WeakMap,er=new WeakMap,cr=new WeakMap,ur=new WeakMap,pr=new WeakMap,hr=new WeakMap,fr=new WeakMap,dr=new WeakMap,yr=new WeakMap,$r=new WeakMap,Er=new WeakMap,mr=new WeakSet,em=function(){let Wr=new _t(Jr(this,jt)),Gr=new _t(Jr(this,jt));Jn(this,dr,Wr),Jn(this,fr,Gr),Jn(this,Or,(hn,En,Rn=et.now())=>{if(Gr[hn]=En!==0?Rn:0,Wr[hn]=En,En!==0&&this.ttlAutopurge){let Dn=setTimeout(()=>{Jr(this,_r).call(this,hn)&&this.delete(Jr(this,Gt)[hn])},En+1);Dn.unref&&Dn.unref()}}),Jn(this,Tr,hn=>{Gr[hn]=Wr[hn]!==0?et.now():0}),Jn(this,jr,(hn,En)=>{if(Wr[En]){let Rn=Wr[En],Dn=Gr[En];hn.ttl=Rn,hn.start=Dn,hn.now=cn||mn();let Bn=hn.now-Dn;hn.remainingTTL=Rn-Bn}});let cn=0,mn=()=>{let hn=et.now();if(this.ttlResolution>0){cn=hn;let En=setTimeout(()=>cn=0,this.ttlResolution);En.unref&&En.unref()}return hn};this.getRemainingTTL=hn=>{let En=Jr(this,qt).get(hn);if(En===void 0)return 0;let Rn=Wr[En],Dn=Gr[En];if(Rn===0||Dn===0)return 1/0;let Bn=(cn||mn())-Dn;return Rn-Bn},Jn(this,_r,hn=>Wr[hn]!==0&&Gr[hn]!==0&&(cn||mn())-Gr[hn]>Wr[hn])},Tr=new WeakMap,jr=new WeakMap,Or=new WeakMap,_r=new WeakMap,Cr=new WeakSet,gm=function(){let Wr=new _t(Jr(this,jt));Jn(this,Vt,0),Jn(this,hr,Wr),Jn(this,Rr,Gr=>{Jn(this,Vt,Jr(this,Vt)-Wr[Gr]),Wr[Gr]=0}),Jn(this,Mr,(Gr,cn,mn,hn)=>{if(ho(this,Qr,ba).call(this,cn))return 0;if(!xt(mn))if(hn){if(typeof hn!="function")throw new TypeError("sizeCalculation must be a function");if(mn=hn(cn,Gr),!xt(mn))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 mn}),Jn(this,Pr,(Gr,cn,mn)=>{if(Wr[Gr]=cn,Jr(this,Nt)){let hn=Jr(this,Nt)-Wr[Gr];for(;Jr(this,Vt)>hn;)ho(this,Kr,Op).call(this,!0)}Jn(this,Vt,Jr(this,Vt)+Wr[Gr]),mn&&(mn.entrySize=cn,mn.totalCalculatedSize=Jr(this,Vt))})},Rr=new WeakMap,Pr=new WeakMap,Mr=new WeakMap,kr=new WeakSet,As=function*({allowStale:Wr=this.allowStale}={}){if(Jr(this,Wt))for(let Gr=Jr(this,cr);!(!ho(this,Dr,tm).call(this,Gr)||((Wr||!Jr(this,_r).call(this,Gr))&&(yield Gr),Gr===Jr(this,er)));)Gr=Jr(this,lr)[Gr]},wr=new WeakSet,ks=function*({allowStale:Wr=this.allowStale}={}){if(Jr(this,Wt))for(let Gr=Jr(this,er);!(!ho(this,Dr,tm).call(this,Gr)||((Wr||!Jr(this,_r).call(this,Gr))&&(yield Gr),Gr===Jr(this,cr)));)Gr=Jr(this,Zt)[Gr]},Dr=new WeakSet,tm=function(Wr){return Wr!==void 0&&Jr(this,qt).get(Jr(this,Gt)[Wr])===Wr},Kr=new WeakSet,Op=function(Wr){var hn,En;let Gr=Jr(this,er),cn=Jr(this,Gt)[Gr],mn=Jr(this,Xt)[Gr];return Jr(this,$r)&&ho(this,Qr,ba).call(this,mn)?mn.__abortController.abort(new Error("evicted")):(Jr(this,yr)||Jr(this,Er))&&(Jr(this,yr)&&((hn=Jr(this,kt))==null||hn.call(this,mn,cn,"evict")),Jr(this,Er)&&((En=Jr(this,pr))==null||En.push([mn,cn,"evict"]))),Jr(this,Rr).call(this,Gr),Wr&&(Jr(this,Gt)[Gr]=void 0,Jr(this,Xt)[Gr]=void 0,Jr(this,ur).push(Gr)),Jr(this,Wt)===1?(Jn(this,er,Jn(this,cr,0)),Jr(this,ur).length=0):Jn(this,er,Jr(this,Zt)[Gr]),Jr(this,qt).delete(cn),Sl(this,Wt)._--,Gr},qr=new WeakSet,Mp=function(Wr,Gr,cn,mn){let hn=Gr===void 0?void 0:Jr(this,Xt)[Gr];if(ho(this,Qr,ba).call(this,hn))return hn;let En=new ut,{signal:Rn}=cn;Rn==null||Rn.addEventListener("abort",()=>En.abort(Rn.reason),{signal:En.signal});let Dn={signal:En.signal,options:cn,context:mn},Bn=(yn,wn=!1)=>{let{aborted:Tn}=En.signal,Nn=cn.ignoreFetchAbort&&yn!==void 0;if(cn.status&&(Tn&&!wn?(cn.status.fetchAborted=!0,cn.status.fetchError=En.signal.reason,Nn&&(cn.status.fetchAbortIgnored=!0)):cn.status.fetchResolved=!0),Tn&&!Nn&&!wn)return qn(En.signal.reason);let On=dn;return Jr(this,Xt)[Gr]===dn&&(yn===void 0?On.__staleWhileFetching?Jr(this,Xt)[Gr]=On.__staleWhileFetching:this.delete(Wr):(cn.status&&(cn.status.fetchUpdated=!0),this.set(Wr,yn,Dn.options))),yn},Yn=yn=>(cn.status&&(cn.status.fetchRejected=!0,cn.status.fetchError=yn),qn(yn)),qn=yn=>{let{aborted:wn}=En.signal,Tn=wn&&cn.allowStaleOnFetchAbort,Nn=Tn||cn.allowStaleOnFetchRejection,On=Nn||cn.noDeleteOnFetchRejection,xn=dn;if(Jr(this,Xt)[Gr]===dn&&(!On||xn.__staleWhileFetching===void 0?this.delete(Wr):Tn||(Jr(this,Xt)[Gr]=xn.__staleWhileFetching)),Nn)return cn.status&&xn.__staleWhileFetching!==void 0&&(cn.status.returnedStale=!0),xn.__staleWhileFetching;if(xn.__returned===xn)throw yn},ao=(yn,wn)=>{var Nn;let Tn=(Nn=Jr(this,Ht))==null?void 0:Nn.call(this,Wr,hn,Dn);Tn&&Tn instanceof Promise&&Tn.then(On=>yn(On===void 0?void 0:On),wn),En.signal.addEventListener("abort",()=>{(!cn.ignoreFetchAbort||cn.allowStaleOnFetchAbort)&&(yn(void 0),cn.allowStaleOnFetchAbort&&(yn=On=>Bn(On,!0)))})};cn.status&&(cn.status.fetchDispatched=!0);let dn=new Promise(ao).then(Bn,Yn),gn=Object.assign(dn,{__abortController:En,__staleWhileFetching:hn,__returned:void 0});return Gr===void 0?(this.set(Wr,gn,{...Dn.options,status:void 0}),Gr=Jr(this,qt).get(Wr)):Jr(this,Xt)[Gr]=gn,gn},Qr=new WeakSet,ba=function(Wr){if(!Jr(this,$r))return!1;let Gr=Wr;return!!Gr&&Gr instanceof Promise&&Gr.hasOwnProperty("__staleWhileFetching")&&Gr.__abortController instanceof ut},vn=new WeakSet,rm=function(Wr,Gr){Jr(this,lr)[Gr]=Wr,Jr(this,Zt)[Wr]=Gr},gr=new WeakSet,fp=function(Wr){Wr!==Jr(this,cr)&&(Wr===Jr(this,er)?Jn(this,er,Jr(this,Zt)[Wr]):ho(this,vn,rm).call(this,Jr(this,lr)[Wr],Jr(this,Zt)[Wr]),ho(this,vn,rm).call(this,Jr(this,cr),Wr),Jn(this,cr,Wr))},Hr);_e.LRUCache=Tt}),at=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.ContainerIterator=_e.Container=_e.Base=void 0;var et=class{constructor(ct=0){this.iteratorType=ct}equals(ct){return this.o===ct.o}};_e.ContainerIterator=et;var rt=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};_e.Base=rt;var st=class extends rt{};_e.Container=st}),Jd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[]){super(),this.S=[];let ut=this;ct.forEach(function(ft){ut.push(ft)})}clear(){this.i=0,this.S=[]}push(ct){return this.S.push(ct),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},st=rt;_e.default=st}),Xd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[]){super(),this.j=0,this.q=[];let ut=this;ct.forEach(function(ft){ut.push(ft)})}clear(){this.q=[],this.i=this.j=0}push(ct){let ut=this.q.length;if(this.j/ut>.5&&this.j+this.i>=ut&&ut>4096){let ft=this.i;for(let gt=0;gt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[],ut=function(gt,xt){return gt>xt?-1:gt>1;for(let xt=this.i-1>>1;xt>=0;--xt)this.k(xt,gt)}m(ct){let ut=this.C[ct];for(;ct>0;){let ft=ct-1>>1,gt=this.C[ft];if(this.v(gt,ut)<=0)break;this.C[ct]=gt,ct=ft}this.C[ct]=ut}k(ct,ut){let ft=this.C[ct];for(;ct0&&(gt=xt,$t=this.C[xt]),this.v($t,ft)>=0)break;this.C[ct]=$t,ct=gt}this.C[ct]=ft}clear(){this.i=0,this.C.length=0}push(ct){this.C.push(ct),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let ct=this.C[0],ut=this.C.pop();return this.i-=1,this.i&&(this.C[0]=ut,this.k(0,this.i>>1)),ct}top(){return this.C[0]}find(ct){return this.C.indexOf(ct)>=0}remove(ct){let ut=this.C.indexOf(ct);return ut<0?!1:(ut===0?this.pop():ut===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(ut,1,this.C.pop()),this.i-=1,this.m(ut),this.k(ut,this.i>>1)),!0)}updateItem(ct){let ut=this.C.indexOf(ct);return ut<0?!1:(this.m(ut),this.k(ut,this.i>>1),!0)}toArray(){return[...this.C]}},st=rt;_e.default=st}),Ln=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Container{},st=rt;_e.default=st}),lt=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.throwIteratorAccessError=et;function et(){throw new RangeError("Iterator access denied!")}}),da=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.RandomIterator=void 0;var et=at(),rt=lt(),st=class extends et.ContainerIterator{constructor(ct,ut){super(ut),this.o=ct,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,rt.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,rt.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,rt.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,rt.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(ct){this.container.setElementByPos(this.o,ct)}};_e.RandomIterator=st}),ep=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=st(Ln()),rt=da();function st(gt){return gt&>.t?gt:{default:gt}}var ct=class hm extends rt.RandomIterator{constructor(xt,$t,_t){super(xt,_t),this.container=$t}copy(){return new hm(this.o,this.container,this.iteratorType)}},ut=class extends et.default{constructor(gt=[],xt=!0){if(super(),Array.isArray(gt))this.J=xt?[...gt]:gt,this.i=gt.length;else{this.J=[];let $t=this;gt.forEach(function(_t){$t.pushBack(_t)})}}clear(){this.i=0,this.J.length=0}begin(){return new ct(0,this)}end(){return new ct(this.i,this)}rBegin(){return new ct(this.i-1,this,1)}rEnd(){return new ct(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;return this.J[gt]}eraseElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;return this.J.splice(gt,1),this.i-=1,this.i}eraseElementByValue(gt){let xt=0;for(let $t=0;$tthis.i-1)throw new RangeError;this.J[gt]=xt}insert(gt,xt,$t=1){if(gt<0||gt>this.i)throw new RangeError;return this.J.splice(gt,0,...new Array($t).fill(xt)),this.i+=$t,this.i}find(gt){for(let xt=0;xt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(Ln()),rt=at(),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class mm extends rt.ContainerIterator{constructor($t,_t,wt,Tt){super(Tt),this.o=$t,this.h=_t,this.container=wt,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.l}set pointer($t){this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.l=$t}copy(){return new mm(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let $t=this;xt.forEach(function(_t){$t.pushBack(_t)})}V(xt){let{L:$t,B:_t}=xt;$t.B=_t,_t.L=$t,xt===this.p&&(this.p=_t),xt===this._&&(this._=$t),this.i-=1}G(xt,$t){let _t=$t.B,wt={l:xt,L:$t,B:_t};$t.B=wt,_t.L=wt,$t===this.h&&(this.p=wt),_t===this.h&&(this._=wt),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new ut(this.p,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this._,this.h,this,1)}rEnd(){return new ut(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return $t.l}eraseElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return this.V($t),this.i}eraseElementByValue(xt){let $t=this.p;for(;$t!==this.h;)$t.l===xt&&this.V($t),$t=$t.B;return this.i}eraseElementByIterator(xt){let $t=xt.o;return $t===this.h&&(0,st.throwIteratorAccessError)(),xt=xt.next(),this.V($t),xt}pushBack(xt){return this.G(xt,this._),this.i}popBack(){if(this.i===0)return;let xt=this._.l;return this.V(this._),xt}pushFront(xt){return this.G(xt,this.h),this.i}popFront(){if(this.i===0)return;let xt=this.p.l;return this.V(this.p),xt}setElementByPos(xt,$t){if(xt<0||xt>this.i-1)throw new RangeError;let _t=this.p;for(;xt--;)_t=_t.B;_t.l=$t}insert(xt,$t,_t=1){if(xt<0||xt>this.i)throw new RangeError;if(_t<=0)return this.i;if(xt===0)for(;_t--;)this.pushFront($t);else if(xt===this.i)for(;_t--;)this.pushBack($t);else{let wt=this.p;for(let Rt=1;Rt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=st(Ln()),rt=da();function st(gt){return gt&>.t?gt:{default:gt}}var ct=class vm extends rt.RandomIterator{constructor(xt,$t,_t){super(xt,_t),this.container=$t}copy(){return new vm(this.o,this.container,this.iteratorType)}},ut=class extends et.default{constructor(gt=[],xt=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let $t=(()=>{if(typeof gt.length=="number")return gt.length;if(typeof gt.size=="number")return gt.size;if(typeof gt.size=="function")return gt.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=xt,this.P=Math.max(Math.ceil($t/this.F),1);for(let Tt=0;Tt>1)-(_t>>1),this.D=this.N=this.F-$t%this.F>>1;let wt=this;gt.forEach(function(Tt){wt.pushBack(Tt)})}T(){let gt=[],xt=Math.max(this.P>>1,1);for(let $t=0;$t>1}begin(){return new ct(0,this)}end(){return new ct(this.i,this)}rBegin(){return new ct(this.i-1,this,1)}rEnd(){return new ct(-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(gt){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,gt}pushFront(gt){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]=gt,this.i}popFront(){if(this.i===0)return;let gt=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:xt,curNodePointerIndex:$t}=this.O(gt);return this.A[xt][$t]}setElementByPos(gt,xt){if(gt<0||gt>this.i-1)throw new RangeError;let{curNodeBucketIndex:$t,curNodePointerIndex:_t}=this.O(gt);this.A[$t][_t]=xt}insert(gt,xt,$t=1){if(gt<0||gt>this.i)throw new RangeError;if(gt===0)for(;$t--;)this.pushFront(xt);else if(gt===this.i)for(;$t--;)this.pushBack(xt);else{let _t=[];for(let wt=gt;wtthis.i-1)throw new RangeError;if(gt===0)this.popFront();else if(gt===this.i-1)this.popBack();else{let xt=[];for(let _t=gt+1;_tgt;)this.popBack();return this.i}sort(gt){let xt=[];for(let $t=0;$t{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.TreeNodeEnableIndex=_e.TreeNode=void 0;var et=class{constructor(st,ct){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=st,this.l=ct}L(){let st=this;if(st.ee===1&&st.tt.tt===st)st=st.W;else if(st.U)for(st=st.U;st.W;)st=st.W;else{let ct=st.tt;for(;ct.U===st;)st=ct,ct=st.tt;st=ct}return st}B(){let st=this;if(st.W){for(st=st.W;st.U;)st=st.U;return st}else{let ct=st.tt;for(;ct.W===st;)st=ct,ct=st.tt;return st.W!==ct?ct:st}}te(){let st=this.tt,ct=this.W,ut=ct.U;return st.tt===this?st.tt=ct:st.U===this?st.U=ct:st.W=ct,ct.tt=st,ct.U=this,this.tt=ct,this.W=ut,ut&&(ut.tt=this),ct}se(){let st=this.tt,ct=this.U,ut=ct.W;return st.tt===this?st.tt=ct:st.U===this?st.U=ct:st.W=ct,ct.tt=st,ct.W=this,this.tt=ct,this.U=ut,ut&&(ut.tt=this),ct}};_e.TreeNode=et;var rt=class extends et{constructor(){super(...arguments),this.rt=1}te(){let st=super.te();return this.ie(),st.ie(),st}se(){let st=super.se();return this.ie(),st.ie(),st}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};_e.TreeNodeEnableIndex=rt}),_a=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ip(),rt=at(),st=lt(),ct=class extends rt.Container{constructor(ft=function(xt,$t){return xt<$t?-1:xt>$t?1:0},gt=!1){super(),this.Y=void 0,this.v=ft,gt?(this.re=et.TreeNodeEnableIndex,this.M=function(xt,$t,_t){let wt=this.ne(xt,$t,_t);if(wt){let Tt=wt.tt;for(;Tt!==this.h;)Tt.rt+=1,Tt=Tt.tt;let Rt=this.he(wt);if(Rt){let{parentNode:It,grandParent:At,curNode:jt}=Rt;It.ie(),At.ie(),jt.ie()}}return this.i},this.V=function(xt){let $t=this.fe(xt);for(;$t!==this.h;)$t.rt-=1,$t=$t.tt}):(this.re=et.TreeNode,this.M=function(xt,$t,_t){let wt=this.ne(xt,$t,_t);return wt&&this.he(wt),this.i},this.V=this.fe),this.h=new this.re}X(ft,gt){let xt=this.h;for(;ft;){let $t=this.v(ft.u,gt);if($t<0)ft=ft.W;else if($t>0)xt=ft,ft=ft.U;else return ft}return xt}Z(ft,gt){let xt=this.h;for(;ft;)this.v(ft.u,gt)<=0?ft=ft.W:(xt=ft,ft=ft.U);return xt}$(ft,gt){let xt=this.h;for(;ft;){let $t=this.v(ft.u,gt);if($t<0)xt=ft,ft=ft.W;else if($t>0)ft=ft.U;else return ft}return xt}rr(ft,gt){let xt=this.h;for(;ft;)this.v(ft.u,gt)<0?(xt=ft,ft=ft.W):ft=ft.U;return xt}ue(ft){for(;;){let gt=ft.tt;if(gt===this.h)return;if(ft.ee===1){ft.ee=0;return}if(ft===gt.U){let xt=gt.W;if(xt.ee===1)xt.ee=0,gt.ee=1,gt===this.Y?this.Y=gt.te():gt.te();else if(xt.W&&xt.W.ee===1){xt.ee=gt.ee,gt.ee=0,xt.W.ee=0,gt===this.Y?this.Y=gt.te():gt.te();return}else xt.U&&xt.U.ee===1?(xt.ee=1,xt.U.ee=0,xt.se()):(xt.ee=1,ft=gt)}else{let xt=gt.U;if(xt.ee===1)xt.ee=0,gt.ee=1,gt===this.Y?this.Y=gt.se():gt.se();else if(xt.U&&xt.U.ee===1){xt.ee=gt.ee,gt.ee=0,xt.U.ee=0,gt===this.Y?this.Y=gt.se():gt.se();return}else xt.W&&xt.W.ee===1?(xt.ee=1,xt.W.ee=0,xt.te()):(xt.ee=1,ft=gt)}}}fe(ft){if(this.i===1)return this.clear(),this.h;let gt=ft;for(;gt.U||gt.W;){if(gt.W)for(gt=gt.W;gt.U;)gt=gt.U;else gt=gt.U;[ft.u,gt.u]=[gt.u,ft.u],[ft.l,gt.l]=[gt.l,ft.l],ft=gt}this.h.U===gt?this.h.U=gt.tt:this.h.W===gt&&(this.h.W=gt.tt),this.ue(gt);let xt=gt.tt;return gt===xt.U?xt.U=void 0:xt.W=void 0,this.i-=1,this.Y.ee=0,xt}oe(ft,gt){return ft===void 0?!1:this.oe(ft.U,gt)||gt(ft)?!0:this.oe(ft.W,gt)}he(ft){for(;;){let gt=ft.tt;if(gt.ee===0)return;let xt=gt.tt;if(gt===xt.U){let $t=xt.W;if($t&&$t.ee===1){if($t.ee=gt.ee=0,xt===this.Y)return;xt.ee=1,ft=xt;continue}else if(ft===gt.W){if(ft.ee=0,ft.U&&(ft.U.tt=gt),ft.W&&(ft.W.tt=xt),gt.W=ft.U,xt.U=ft.W,ft.U=gt,ft.W=xt,xt===this.Y)this.Y=ft,this.h.tt=ft;else{let _t=xt.tt;_t.U===xt?_t.U=ft:_t.W=ft}return ft.tt=xt.tt,gt.tt=ft,xt.tt=ft,xt.ee=1,{parentNode:gt,grandParent:xt,curNode:ft}}else gt.ee=0,xt===this.Y?this.Y=xt.se():xt.se(),xt.ee=1}else{let $t=xt.U;if($t&&$t.ee===1){if($t.ee=gt.ee=0,xt===this.Y)return;xt.ee=1,ft=xt;continue}else if(ft===gt.U){if(ft.ee=0,ft.U&&(ft.U.tt=xt),ft.W&&(ft.W.tt=gt),xt.W=ft.U,gt.U=ft.W,ft.U=xt,ft.W=gt,xt===this.Y)this.Y=ft,this.h.tt=ft;else{let _t=xt.tt;_t.U===xt?_t.U=ft:_t.W=ft}return ft.tt=xt.tt,gt.tt=ft,xt.tt=ft,xt.ee=1,{parentNode:gt,grandParent:xt,curNode:ft}}else gt.ee=0,xt===this.Y?this.Y=xt.te():xt.te(),xt.ee=1}return}}ne(ft,gt,xt){if(this.Y===void 0){this.i+=1,this.Y=new this.re(ft,gt),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 $t,_t=this.h.U,wt=this.v(_t.u,ft);if(wt===0){_t.l=gt;return}else if(wt>0)_t.U=new this.re(ft,gt),_t.U.tt=_t,$t=_t.U,this.h.U=$t;else{let Tt=this.h.W,Rt=this.v(Tt.u,ft);if(Rt===0){Tt.l=gt;return}else if(Rt<0)Tt.W=new this.re(ft,gt),Tt.W.tt=Tt,$t=Tt.W,this.h.W=$t;else{if(xt!==void 0){let It=xt.o;if(It!==this.h){let At=this.v(It.u,ft);if(At===0){It.l=gt;return}else if(At>0){let jt=It.L(),Nt=this.v(jt.u,ft);if(Nt===0){jt.l=gt;return}else Nt<0&&($t=new this.re(ft,gt),jt.W===void 0?(jt.W=$t,$t.tt=jt):(It.U=$t,$t.tt=It))}}}if($t===void 0)for($t=this.Y;;){let It=this.v($t.u,ft);if(It>0){if($t.U===void 0){$t.U=new this.re(ft,gt),$t.U.tt=$t,$t=$t.U;break}$t=$t.U}else if(It<0){if($t.W===void 0){$t.W=new this.re(ft,gt),$t.W.tt=$t,$t=$t.W;break}$t=$t.W}else{$t.l=gt;return}}}}return this.i+=1,$t}I(ft,gt){for(;ft;){let xt=this.v(ft.u,gt);if(xt<0)ft=ft.W;else if(xt>0)ft=ft.U;else return ft}return ft||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(ft,gt){let xt=ft.o;if(xt===this.h&&(0,st.throwIteratorAccessError)(),this.i===1)return xt.u=gt,!0;if(xt===this.h.U)return this.v(xt.B().u,gt)>0?(xt.u=gt,!0):!1;if(xt===this.h.W)return this.v(xt.L().u,gt)<0?(xt.u=gt,!0):!1;let $t=xt.L().u;if(this.v($t,gt)>=0)return!1;let _t=xt.B().u;return this.v(_t,gt)<=0?!1:(xt.u=gt,!0)}eraseElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt=0,xt=this;return this.oe(this.Y,function($t){return ft===gt?(xt.V($t),!0):(gt+=1,!1)}),this.i}eraseElementByKey(ft){if(this.i===0)return!1;let gt=this.I(this.Y,ft);return gt===this.h?!1:(this.V(gt),!0)}eraseElementByIterator(ft){let gt=ft.o;gt===this.h&&(0,st.throwIteratorAccessError)();let xt=gt.W===void 0;return ft.iteratorType===0?xt&&ft.next():(!xt||gt.U===void 0)&&ft.next(),this.V(gt),ft}forEach(ft){let gt=0;for(let xt of this)ft(xt,gt++,this)}getElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt,xt=0;for(let $t of this){if(xt===ft){gt=$t;break}xt+=1}return gt}getHeight(){if(this.i===0)return 0;let ft=function(gt){return gt?Math.max(ft(gt.U),ft(gt.W))+1:0};return ft(this.Y)}},ut=ct;_e.default=ut}),va=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=lt(),st=class extends et.ContainerIterator{constructor(ut,ft,gt){super(gt),this.o=ut,this.h=ft,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,rt.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,rt.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let ut=this.o,ft=this.h.tt;if(ut===this.h)return ft?ft.rt-1:0;let gt=0;for(ut.U&&(gt+=ut.U.rt);ut!==ft;){let xt=ut.tt;ut===xt.W&&(gt+=1,xt.U&&(gt+=xt.U.rt)),ut=xt}return gt}},ct=st;_e.default=ct}),ap=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(_a()),rt=ct(va()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class ym extends rt.default{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.u}copy(){return new ym(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[],$t,_t){super($t,_t);let wt=this;xt.forEach(function(Tt){wt.insert(Tt)})}*K(xt){xt!==void 0&&(yield*this.K(xt.U),yield xt.u,yield*this.K(xt.W))}begin(){return new ut(this.h.U||this.h,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this.h.W||this.h,this.h,this,1)}rEnd(){return new ut(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(xt,$t){return this.M(xt,void 0,$t)}find(xt){let $t=this.I(this.Y,xt);return new ut($t,this.h,this)}lowerBound(xt){let $t=this.X(this.Y,xt);return new ut($t,this.h,this)}upperBound(xt){let $t=this.Z(this.Y,xt);return new ut($t,this.h,this)}reverseLowerBound(xt){let $t=this.$(this.Y,xt);return new ut($t,this.h,this)}reverseUpperBound(xt){let $t=this.rr(this.Y,xt);return new ut($t,this.h,this)}union(xt){let $t=this;return xt.forEach(function(_t){$t.insert(_t)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},gt=ft;_e.default=gt}),up=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(_a()),rt=ct(va()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class bm extends rt.default{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){this.o===this.h&&(0,st.throwIteratorAccessError)();let $t=this;return new Proxy([],{get(_t,wt){if(wt==="0")return $t.o.u;if(wt==="1")return $t.o.l},set(_t,wt,Tt){if(wt!=="1")throw new TypeError("props must be 1");return $t.o.l=Tt,!0}})}copy(){return new bm(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[],$t,_t){super($t,_t);let wt=this;xt.forEach(function(Tt){wt.setElement(Tt[0],Tt[1])})}*K(xt){xt!==void 0&&(yield*this.K(xt.U),yield[xt.u,xt.l],yield*this.K(xt.W))}begin(){return new ut(this.h.U||this.h,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this.h.W||this.h,this.h,this,1)}rEnd(){return new ut(this.h,this.h,this,1)}front(){if(this.i===0)return;let xt=this.h.U;return[xt.u,xt.l]}back(){if(this.i===0)return;let xt=this.h.W;return[xt.u,xt.l]}lowerBound(xt){let $t=this.X(this.Y,xt);return new ut($t,this.h,this)}upperBound(xt){let $t=this.Z(this.Y,xt);return new ut($t,this.h,this)}reverseLowerBound(xt){let $t=this.$(this.Y,xt);return new ut($t,this.h,this)}reverseUpperBound(xt){let $t=this.rr(this.Y,xt);return new ut($t,this.h,this)}setElement(xt,$t,_t){return this.M(xt,$t,_t)}find(xt){let $t=this.I(this.Y,xt);return new ut($t,this.h,this)}getElementByKey(xt){return this.I(this.Y,xt).l}union(xt){let $t=this;return xt.forEach(function(_t){$t.setElement(_t[0],_t[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},gt=ft;_e.default=gt}),Ia=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=et;function et(rt){let st=typeof rt;return st==="object"&&rt!==null||st==="function"}}),Ba=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.HashContainerIterator=_e.HashContainer=void 0;var et=at(),rt=ct(Ia()),st=lt();function ct(gt){return gt&>.t?gt:{default:gt}}var ut=class extends et.ContainerIterator{constructor(gt,xt,$t){super($t),this.o=gt,this.h=xt,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this})}};_e.HashContainerIterator=ut;var ft=class extends et.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(gt){let{L:xt,B:$t}=gt;xt.B=$t,$t.L=xt,gt===this.p&&(this.p=$t),gt===this._&&(this._=xt),this.i-=1}M(gt,xt,$t){$t===void 0&&($t=(0,rt.default)(gt));let _t;if($t){let wt=gt[this.HASH_TAG];if(wt!==void 0)return this.H[wt].l=xt,this.i;Object.defineProperty(gt,this.HASH_TAG,{value:this.H.length,configurable:!0}),_t={u:gt,l:xt,L:this._,B:this.h},this.H.push(_t)}else{let wt=this.g[gt];if(wt)return wt.l=xt,this.i;_t={u:gt,l:xt,L:this._,B:this.h},this.g[gt]=_t}return this.i===0?(this.p=_t,this.h.B=_t):this._.B=_t,this._=_t,this.h.L=_t,++this.i}I(gt,xt){if(xt===void 0&&(xt=(0,rt.default)(gt)),xt){let $t=gt[this.HASH_TAG];return $t===void 0?this.h:this.H[$t]}else return this.g[gt]||this.h}clear(){let gt=this.HASH_TAG;this.H.forEach(function(xt){delete xt.u[gt]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(gt,xt){let $t;if(xt===void 0&&(xt=(0,rt.default)(gt)),xt){let _t=gt[this.HASH_TAG];if(_t===void 0)return!1;delete gt[this.HASH_TAG],$t=this.H[_t],delete this.H[_t]}else{if($t=this.g[gt],$t===void 0)return!1;delete this.g[gt]}return this.V($t),!0}eraseElementByIterator(gt){let xt=gt.o;return xt===this.h&&(0,st.throwIteratorAccessError)(),this.V(xt),gt.next()}eraseElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;let xt=this.p;for(;gt--;)xt=xt.B;return this.V(xt),this.i}};_e.HashContainer=ft}),hp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=Ba(),rt=lt(),st=class xm extends et.HashContainerIterator{constructor(gt,xt,$t,_t){super(gt,xt,_t),this.container=$t}get pointer(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o.u}copy(){return new xm(this.o,this.h,this.container,this.iteratorType)}},ct=class extends et.HashContainer{constructor(ft=[]){super();let gt=this;ft.forEach(function(xt){gt.insert(xt)})}begin(){return new st(this.p,this.h,this)}end(){return new st(this.h,this.h,this)}rBegin(){return new st(this._,this.h,this,1)}rEnd(){return new st(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(ft,gt){return this.M(ft,void 0,gt)}getElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt=this.p;for(;ft--;)gt=gt.B;return gt.u}find(ft,gt){let xt=this.I(ft,gt);return new st(xt,this.h,this)}forEach(ft){let gt=0,xt=this.p;for(;xt!==this.h;)ft(xt.u,gt++,this),xt=xt.B}[Symbol.iterator](){return(function*(){let ft=this.p;for(;ft!==this.h;)yield ft.u,ft=ft.B}).bind(this)()}},ut=ct;_e.default=ut}),pp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=Ba(),rt=ct(Ia()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class $m extends et.HashContainerIterator{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){this.o===this.h&&(0,st.throwIteratorAccessError)();let $t=this;return new Proxy([],{get(_t,wt){if(wt==="0")return $t.o.u;if(wt==="1")return $t.o.l},set(_t,wt,Tt){if(wt!=="1")throw new TypeError("props must be 1");return $t.o.l=Tt,!0}})}copy(){return new $m(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.HashContainer{constructor(xt=[]){super();let $t=this;xt.forEach(function(_t){$t.setElement(_t[0],_t[1])})}begin(){return new ut(this.p,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this._,this.h,this,1)}rEnd(){return new ut(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(xt,$t,_t){return this.M(xt,$t,_t)}getElementByKey(xt,$t){if($t===void 0&&($t=(0,rt.default)(xt)),$t){let wt=xt[this.HASH_TAG];return wt!==void 0?this.H[wt].l:void 0}let _t=this.g[xt];return _t?_t.l:void 0}getElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return[$t.u,$t.l]}find(xt,$t){let _t=this.I(xt,$t);return new ut(_t,this.h,this)}forEach(xt){let $t=0,_t=this.p;for(;_t!==this.h;)xt([_t.u,_t.l],$t++,this),_t=_t.B}[Symbol.iterator](){return(function*(){let xt=this.p;for(;xt!==this.h;)yield[xt.u,xt.l],xt=xt.B}).bind(this)()}},gt=ft;_e.default=gt}),gp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),Object.defineProperty(_e,"Deque",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(_e,"HashMap",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(_e,"HashSet",{enumerable:!0,get:function(){return $t.default}}),Object.defineProperty(_e,"LinkList",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(_e,"OrderedMap",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(_e,"OrderedSet",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(_e,"PriorityQueue",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(_e,"Queue",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(_e,"Stack",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(_e,"Vector",{enumerable:!0,get:function(){return ct.default}});var et=wt(Jd()),rt=wt(Xd()),st=wt(Zd()),ct=wt(ep()),ut=wt(tp()),ft=wt(rp()),gt=wt(ap()),xt=wt(up()),$t=wt(hp()),_t=wt(pp());function wt(Tt){return Tt&&Tt.t?Tt:{default:Tt}}}),bp=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=gp().OrderedSet,st=ot()("number-allocator:trace"),ct=ot()("number-allocator:error");function ut(gt,xt){this.low=gt,this.high=xt}ut.prototype.equals=function(gt){return this.low===gt.low&&this.high===gt.high},ut.prototype.compare=function(gt){return this.low$t.compare(_t)),st("Create"),this.clear()}ft.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},ft.prototype.alloc=function(){if(this.ss.size()===0)return st("alloc():empty"),null;let gt=this.ss.begin(),xt=gt.pointer.low,$t=gt.pointer.high,_t=xt;return _t+1<=$t?this.ss.updateKeyByIterator(gt,new ut(xt+1,$t)):this.ss.eraseElementByPos(0),st("alloc():"+_t),_t},ft.prototype.use=function(gt){let xt=new ut(gt,gt),$t=this.ss.lowerBound(xt);if(!$t.equals(this.ss.end())){let _t=$t.pointer.low,wt=$t.pointer.high;return $t.pointer.equals(xt)?(this.ss.eraseElementByIterator($t),st("use():"+gt),!0):_t>gt?!1:_t===gt?(this.ss.updateKeyByIterator($t,new ut(_t+1,wt)),st("use():"+gt),!0):wt===gt?(this.ss.updateKeyByIterator($t,new ut(_t,wt-1)),st("use():"+gt),!0):(this.ss.updateKeyByIterator($t,new ut(gt+1,wt)),this.ss.insert(new ut(_t,gt-1)),st("use():"+gt),!0)}return st("use():failed"),!1},ft.prototype.free=function(gt){if(gtthis.max){ct("free():"+gt+" is out of range");return}let xt=new ut(gt,gt),$t=this.ss.upperBound(xt);if($t.equals(this.ss.end())){if($t.equals(this.ss.begin())){this.ss.insert(xt);return}$t.pre();let _t=$t.pointer.high;$t.pointer.high+1===gt?this.ss.updateKeyByIterator($t,new ut(_t,gt)):this.ss.insert(xt)}else if($t.equals(this.ss.begin()))if(gt+1===$t.pointer.low){let _t=$t.pointer.high;this.ss.updateKeyByIterator($t,new ut(gt,_t))}else this.ss.insert(xt);else{let _t=$t.pointer.low,wt=$t.pointer.high;$t.pre();let Tt=$t.pointer.low;$t.pointer.high+1===gt?gt+1===_t?(this.ss.eraseElementByIterator($t),this.ss.updateKeyByIterator($t,new ut(Tt,wt))):this.ss.updateKeyByIterator($t,new ut(Tt,gt)):gt+1===_t?(this.ss.eraseElementByIterator($t.next()),this.ss.insert(new ut(gt,wt))):this.ss.insert(xt)}st("free():"+gt)},ft.prototype.clear=function(){st("clear()"),this.ss.clear(),this.ss.insert(new ut(this.min,this.max))},ft.prototype.intervalCount=function(){return this.ss.size()},ft.prototype.dump=function(){console.log("length:"+this.ss.size());for(let gt of this.ss)console.log(gt)},et.exports=ft}),xa=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=bp();et.exports.NumberAllocator=rt}),_p=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Yd(),rt=xa(),st=class{constructor(ct){ct>0&&(this.aliasToTopic=new et.LRUCache({max:ct}),this.topicToAlias={},this.numberAllocator=new rt.NumberAllocator(1,ct),this.max=ct,this.length=0)}put(ct,ut){if(ut===0||ut>this.max)return!1;let ft=this.aliasToTopic.get(ut);return ft&&delete this.topicToAlias[ft],this.aliasToTopic.set(ut,ct),this.topicToAlias[ct]=ut,this.numberAllocator.use(ut),this.length=this.aliasToTopic.size,!0}getTopicByAlias(ct){return this.aliasToTopic.get(ct)}getAliasByTopic(ct){let ut=this.topicToAlias[ct];return typeof ut<"u"&&this.aliasToTopic.get(ut),ut}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=st}),mp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=Si(),st=et(_p()),ct=Yr(),ut=(ft,gt)=>{ft.log("_handleConnack");let{options:xt}=ft,$t=xt.protocolVersion===5?gt.reasonCode:gt.returnCode;if(clearTimeout(ft.connackTimer),delete ft.topicAliasSend,gt.properties){if(gt.properties.topicAliasMaximum){if(gt.properties.topicAliasMaximum>65535){ft.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}gt.properties.topicAliasMaximum>0&&(ft.topicAliasSend=new st.default(gt.properties.topicAliasMaximum))}gt.properties.serverKeepAlive&&xt.keepalive&&(xt.keepalive=gt.properties.serverKeepAlive,ft._shiftPingInterval()),gt.properties.maximumPacketSize&&(xt.properties||(xt.properties={}),xt.properties.maximumPacketSize=gt.properties.maximumPacketSize)}if($t===0)ft.reconnecting=!1,ft._onConnect(gt);else if($t>0){let _t=new ct.ErrorWithReasonCode(`Connection refused: ${rt.ReasonCodes[$t]}`,$t);ft.emit("error",_t)}};_e.default=ut}),vp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(rt,st,ct)=>{rt.log("handling pubrel packet");let ut=typeof ct<"u"?ct:rt.noop,{messageId:ft}=st,gt={cmd:"pubcomp",messageId:ft};rt.incomingStore.get(st,(xt,$t)=>{xt?rt._sendPacket(gt,ut):(rt.emit("message",$t.topic,$t.payload,$t),rt.handleMessage($t,_t=>{if(_t)return ut(_t);rt.incomingStore.del($t,rt.noop),rt._sendPacket(gt,ut)}))})};_e.default=et}),Ep=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(xt){return xt&&xt.__esModule?xt:{default:xt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et($d()),st=et(Vd()),ct=et(mp()),ut=et(Si()),ft=et(vp()),gt=(xt,$t,_t)=>{let{options:wt}=xt;if(wt.protocolVersion===5&&wt.properties&&wt.properties.maximumPacketSize&&wt.properties.maximumPacketSize<$t.length)return xt.emit("error",new Error(`exceeding packets size ${$t.cmd}`)),xt.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),xt;switch(xt.log("_handlePacket :: emitting packetreceive"),xt.emit("packetreceive",$t),$t.cmd){case"publish":(0,rt.default)(xt,$t,_t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":(0,ut.default)(xt,$t),_t();break;case"pubrel":(0,ft.default)(xt,$t,_t);break;case"connack":(0,ct.default)(xt,$t),_t();break;case"auth":(0,st.default)(xt,$t),_t();break;case"pingresp":xt.pingResp=!0,_t();break;case"disconnect":xt.emit("disconnect",$t),_t();break;default:xt.log("_handlePacket :: unknown command"),_t();break}};_e.default=gt}),Sp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TypedEventEmitter=void 0;var rt=et((ir(),Z(rr))),st=Yr(),ct=class{};_e.TypedEventEmitter=ct,(0,st.applyMixin)(ct,rt.default)}),Ip=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e):typeof define=="function"&&define.amd?define(["exports"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.fastUniqueNumbers={}))}(_e,function(rt){var st=function(Rt){return function(It){var At=Rt(It);return It.add(At),At}},ct=function(Rt){return function(It,At){return Rt.set(It,At),At}},ut=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,ft=536870912,gt=ft*2,xt=function(Rt,It){return function(At){var jt=It.get(At),Nt=jt===void 0?At.size:jtut)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;At.has(Nt);)Nt=Math.floor(Math.random()*ut);return Rt(At,Nt)}},$t=new WeakMap,_t=ct($t),wt=xt(_t,$t),Tt=st(wt);rt.addUniqueNumber=Tt,rt.generateUniqueNumber=wt})}),Rp=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e,Ip()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.workerTimersBroker={},rt.fastUniqueNumbers))}(_e,function(rt,st){var ct=function(gt){return gt.method!==void 0&>.method==="call"},ut=function(gt){return gt.error===null&&typeof gt.id=="number"},ft=function(gt){var xt=new Map([[0,function(){}]]),$t=new Map([[0,function(){}]]),_t=new Map,wt=new Worker(gt);wt.addEventListener("message",function(jt){var Nt=jt.data;if(ct(Nt)){var kt=Nt.params,Ft=kt.timerId,Ht=kt.timerType;if(Ht==="interval"){var Wt=xt.get(Ft);if(typeof Wt=="number"){var Vt=_t.get(Wt);if(Vt===void 0||Vt.timerId!==Ft||Vt.timerType!==Ht)throw new Error("The timer is in an undefined state.")}else if(typeof Wt<"u")Wt();else throw new Error("The timer is in an undefined state.")}else if(Ht==="timeout"){var qt=$t.get(Ft);if(typeof qt=="number"){var Gt=_t.get(qt);if(Gt===void 0||Gt.timerId!==Ft||Gt.timerType!==Ht)throw new Error("The timer is in an undefined state.")}else if(typeof qt<"u")qt(),$t.delete(Ft);else throw new Error("The timer is in an undefined state.")}}else if(ut(Nt)){var Xt=Nt.id,Zt=_t.get(Xt);if(Zt===void 0)throw new Error("The timer is in an undefined state.");var lr=Zt.timerId,er=Zt.timerType;_t.delete(Xt),er==="interval"?xt.delete(lr):$t.delete(lr)}else{var cr=Nt.error.message;throw new Error(cr)}});var Tt=function(jt){var Nt=st.generateUniqueNumber(_t);_t.set(Nt,{timerId:jt,timerType:"interval"}),xt.set(jt,Nt),wt.postMessage({id:Nt,method:"clear",params:{timerId:jt,timerType:"interval"}})},Rt=function(jt){var Nt=st.generateUniqueNumber(_t);_t.set(Nt,{timerId:jt,timerType:"timeout"}),$t.set(jt,Nt),wt.postMessage({id:Nt,method:"clear",params:{timerId:jt,timerType:"timeout"}})},It=function(jt,Nt){var kt=st.generateUniqueNumber(xt);return xt.set(kt,function(){jt(),typeof xt.get(kt)=="function"&&wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"interval"}})}),wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"interval"}}),kt},At=function(jt,Nt){var kt=st.generateUniqueNumber($t);return $t.set(kt,jt),wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"timeout"}}),kt};return{clearInterval:Tt,clearTimeout:Rt,setInterval:It,setTimeout:At}};rt.load=ft})}),Bp=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e,Rp()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.workerTimers={},rt.workerTimersBroker))}(_e,function(rt,st){var ct=function(wt,Tt){var Rt=null;return function(){if(Rt!==null)return Rt;var It=new Blob([Tt],{type:"application/javascript; charset=utf-8"}),At=URL.createObjectURL(It);return Rt=wt(At),setTimeout(function(){return URL.revokeObjectURL(At)}),Rt}},ut=`(()=>{var e={67:(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(67)})()})();`,ft=ct(st.load,ut),gt=function(wt){return ft().clearInterval(wt)},xt=function(wt){return ft().clearTimeout(wt)},$t=function(wt,Tt){return ft().setInterval(wt,Tt)},_t=function(wt,Tt){return ft().setTimeout(wt,Tt)};rt.clearInterval=gt,rt.clearTimeout=xt,rt.setInterval=$t,rt.setTimeout=_t})}),Zn=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.isWebWorker=void 0;var et=()=>typeof window<"u"&&typeof window.document<"u",rt=()=>{var ut,ft;return!!(typeof self=="object"&&!((ft=(ut=self==null?void 0:self.constructor)===null||ut===void 0?void 0:ut.name)===null||ft===void 0)&&ft.includes("WorkerGlobalScope"))},st=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ct=et()||rt()||st();_e.isWebWorker=rt(),_e.default=ct}),xp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(gt,xt,$t,_t){_t===void 0&&(_t=$t);var wt=Object.getOwnPropertyDescriptor(xt,$t);(!wt||("get"in wt?!xt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return xt[$t]}}),Object.defineProperty(gt,_t,wt)}:function(gt,xt,$t,_t){_t===void 0&&(_t=$t),gt[_t]=xt[$t]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(gt,xt){Object.defineProperty(gt,"default",{enumerable:!0,value:xt})}:function(gt,xt){gt.default=xt}),st=_e&&_e.__importStar||function(gt){if(gt&>.__esModule)return gt;var xt={};if(gt!=null)for(var $t in gt)$t!=="default"&&Object.prototype.hasOwnProperty.call(gt,$t)&&et(xt,gt,$t);return rt(xt,gt),xt};Object.defineProperty(_e,"__esModule",{value:!0});var ct=Bp(),ut=st(Zn()),ft=class{constructor(gt,xt){this._setTimeout=ut.default&&!ut.isWebWorker?ct.setTimeout:($t,_t)=>setTimeout($t,_t),this._clearTimeout=ut.default&&!ut.isWebWorker?ct.clearTimeout:$t=>clearTimeout($t),this.keepalive=gt*1e3,this.checkPing=xt,this.reschedule()}clear(){this.timer&&(this._clearTimeout(this.timer),this.timer=null)}reschedule(){this.clear(),this.timer=this._setTimeout(()=>{this.checkPing(),this.timer&&this.reschedule()},this.keepalive)}};_e.default=ft}),rs=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(Ht,Wt,Vt,qt){qt===void 0&&(qt=Vt);var Gt=Object.getOwnPropertyDescriptor(Wt,Vt);(!Gt||("get"in Gt?!Wt.__esModule:Gt.writable||Gt.configurable))&&(Gt={enumerable:!0,get:function(){return Wt[Vt]}}),Object.defineProperty(Ht,qt,Gt)}:function(Ht,Wt,Vt,qt){qt===void 0&&(qt=Vt),Ht[qt]=Wt[Vt]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(Ht,Wt){Object.defineProperty(Ht,"default",{enumerable:!0,value:Wt})}:function(Ht,Wt){Ht.default=Wt}),st=_e&&_e.__importStar||function(Ht){if(Ht&&Ht.__esModule)return Ht;var Wt={};if(Ht!=null)for(var Vt in Ht)Vt!=="default"&&Object.prototype.hasOwnProperty.call(Ht,Vt)&&et(Wt,Ht,Vt);return rt(Wt,Ht),Wt},ct=_e&&_e.__importDefault||function(Ht){return Ht&&Ht.__esModule?Ht:{default:Ht}};Object.defineProperty(_e,"__esModule",{value:!0});var ut=ct(zu()),ft=ct(Ld()),gt=ct(Qo()),xt=Dt(),$t=ct(Dd()),_t=st(Fd()),wt=ct(ot()),Tt=ct(Xo()),Rt=ct(Ep()),It=Yr(),At=Sp(),jt=ct(xp()),Nt=globalThis.setImmediate||((...Ht)=>{let Wt=Ht.shift();(0,It.nextTick)(()=>{Wt(...Ht)})}),kt={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0},Ft=class Sm extends At.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(Wt,Vt){super(),this.options=Vt||{};for(let qt in kt)typeof this.options[qt]>"u"?this.options[qt]=kt[qt]:this.options[qt]=Vt[qt];this.log=this.options.log||(0,wt.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: options.protocol",Vt.protocol),this.log("MqttClient :: options.protocolVersion",Vt.protocolVersion),this.log("MqttClient :: options.username",Vt.username),this.log("MqttClient :: options.keepalive",Vt.keepalive),this.log("MqttClient :: options.reconnectPeriod",Vt.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",Vt.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",Vt.properties?Vt.properties.topicAliasMaximum:void 0),this.options.clientId=typeof Vt.clientId=="string"?Vt.clientId:Sm.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=Vt.protocolVersion===5&&Vt.customHandleAcks?Vt.customHandleAcks:(...qt)=>{qt[3](null,0)},this.options.writeCache||(ft.default.writeToStream.cacheNumbers=!1),this.streamBuilder=Wt,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new gt.default:this.options.messageIdProvider,this.outgoingStore=Vt.outgoingStore||new Tt.default,this.incomingStore=Vt.incomingStore||new Tt.default,this.queueQoSZero=Vt.queueQoSZero===void 0?!0:Vt.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=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,Vt.properties&&Vt.properties.topicAliasMaximum>0&&(Vt.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new ut.default(Vt.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:qt}=this,Gt=()=>{let Xt=qt.shift();this.log("deliver :: entry %o",Xt);let Zt=null;if(!Xt){this._resubscribe();return}Zt=Xt.packet,this.log("deliver :: call _sendPacket for %o",Zt);let lr=!0;Zt.messageId&&Zt.messageId!==0&&(this.messageIdProvider.register(Zt.messageId)||(lr=!1)),lr?this._sendPacket(Zt,er=>{Xt.cb&&Xt.cb(er),Gt()}):(this.log("messageId: %d has already used. The message is skipped and removed.",Zt.messageId),Gt())};this.log("connect :: sending queued packets"),Gt()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this.log("close :: clearing ping timer"),this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(Wt,Vt){Vt()}handleMessage(Wt,Vt){Vt()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var Wt;let Vt=new xt.Writable,qt=ft.default.parser(this.options),Gt=null,Xt=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),qt.on("packet",ur=>{this.log("parser :: on packet push to packets array."),Xt.push(ur)});let Zt=()=>{this.log("work :: getting next packet in queue");let ur=Xt.shift();if(ur)this.log("work :: packet pulled from queue"),(0,Rt.default)(this,ur,lr);else{this.log("work :: no packets in queue");let pr=Gt;Gt=null,this.log("work :: done flag is %s",!!pr),pr&&pr()}},lr=()=>{if(Xt.length)(0,It.nextTick)(Zt);else{let ur=Gt;Gt=null,ur()}};Vt._write=(ur,pr,hr)=>{Gt=hr,this.log("writable stream :: parsing buffer"),qt.parse(ur),Zt()};let er=ur=>{this.log("streamErrorHandler :: error",ur.message),ur.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",ur)):this.noop(ur)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(Vt),this.stream.on("error",er),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 cr={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&&(cr.will=Object.assign(Object.assign({},this.options.will),{payload:(Wt=this.options.will)===null||Wt===void 0?void 0:Wt.payload})),this.topicAliasRecv&&(cr.properties||(cr.properties={}),this.topicAliasRecv&&(cr.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(cr),qt.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 ur=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(ur)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this._cleanUp(!0)},this.options.connectTimeout),this}publish(Wt,Vt,qt,Gt){this.log("publish :: message `%s` to topic `%s`",Vt,Wt);let{options:Xt}=this;typeof qt=="function"&&(Gt=qt,qt=null),qt=qt||{},qt=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),qt);let{qos:Zt,retain:lr,dup:er,properties:cr,cbStorePut:ur}=qt;if(this._checkDisconnecting(Gt))return this;let pr=()=>{let hr=0;if((Zt===1||Zt===2)&&(hr=this._nextId(),hr===null))return this.log("No messageId left"),!1;let fr={cmd:"publish",topic:Wt,payload:Vt,qos:Zt,retain:lr,messageId:hr,dup:er};switch(Xt.protocolVersion===5&&(fr.properties=cr),this.log("publish :: qos",Zt),Zt){case 1:case 2:this.outgoing[fr.messageId]={volatile:!1,cb:Gt||this.noop},this.log("MqttClient:publish: packet cmd: %s",fr.cmd),this._sendPacket(fr,void 0,ur);break;default:this.log("MqttClient:publish: packet cmd: %s",fr.cmd),this._sendPacket(fr,Gt,ur);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!pr())&&this._storeProcessingQueue.push({invoke:pr,cbStorePut:qt.cbStorePut,callback:Gt}),this}publishAsync(Wt,Vt,qt){return new Promise((Gt,Xt)=>{this.publish(Wt,Vt,qt,(Zt,lr)=>{Zt?Xt(Zt):Gt(lr)})})}subscribe(Wt,Vt,qt){let Gt=this.options.protocolVersion;typeof Vt=="function"&&(qt=Vt),qt=qt||this.noop;let Xt=!1,Zt=[];typeof Wt=="string"?(Wt=[Wt],Zt=Wt):Array.isArray(Wt)?Zt=Wt:typeof Wt=="object"&&(Xt=Wt.resubscribe,delete Wt.resubscribe,Zt=Object.keys(Wt));let lr=_t.validateTopics(Zt);if(lr!==null)return Nt(qt,new Error(`Invalid topic ${lr}`)),this;if(this._checkDisconnecting(qt))return this.log("subscribe: discconecting true"),this;let er={qos:0};Gt===5&&(er.nl=!1,er.rap=!1,er.rh=0),Vt=Object.assign(Object.assign({},er),Vt);let cr=Vt.properties,ur=[],pr=(fr,dr)=>{if(dr=dr||Vt,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,fr)||this._resubscribeTopics[fr].qos{this.log("subscribe: array topic %s",fr),pr(fr)}):Object.keys(Wt).forEach(fr=>{this.log("subscribe: object topic %s, %o",fr,Wt[fr]),pr(fr,Wt[fr])}),!ur.length)return qt(null,[]),this;let hr=()=>{let fr=this._nextId();if(fr===null)return this.log("No messageId left"),!1;let dr={cmd:"subscribe",subscriptions:ur,messageId:fr};if(cr&&(dr.properties=cr),this.options.resubscribe){this.log("subscribe :: resubscribe true");let yr=[];ur.forEach($r=>{if(this.options.reconnectPeriod>0){let Er={qos:$r.qos};Gt===5&&(Er.nl=$r.nl||!1,Er.rap=$r.rap||!1,Er.rh=$r.rh||0,Er.properties=$r.properties),this._resubscribeTopics[$r.topic]=Er,yr.push($r.topic)}}),this.messageIdToTopic[dr.messageId]=yr}return this.outgoing[dr.messageId]={volatile:!0,cb(yr,$r){if(!yr){let{granted:Er}=$r;for(let mr=0;mr0||!hr())&&this._storeProcessingQueue.push({invoke:hr,callback:qt}),this}subscribeAsync(Wt,Vt){return new Promise((qt,Gt)=>{this.subscribe(Wt,Vt,(Xt,Zt)=>{Xt?Gt(Xt):qt(Zt)})})}unsubscribe(Wt,Vt,qt){typeof Wt=="string"&&(Wt=[Wt]),typeof Vt=="function"&&(qt=Vt),qt=qt||this.noop;let Gt=_t.validateTopics(Wt);if(Gt!==null)return Nt(qt,new Error(`Invalid topic ${Gt}`)),this;if(this._checkDisconnecting(qt))return this;let Xt=()=>{let Zt=this._nextId();if(Zt===null)return this.log("No messageId left"),!1;let lr={cmd:"unsubscribe",messageId:Zt,unsubscriptions:[]};return typeof Wt=="string"?lr.unsubscriptions=[Wt]:Array.isArray(Wt)&&(lr.unsubscriptions=Wt),this.options.resubscribe&&lr.unsubscriptions.forEach(er=>{delete this._resubscribeTopics[er]}),typeof Vt=="object"&&Vt.properties&&(lr.properties=Vt.properties),this.outgoing[lr.messageId]={volatile:!0,cb:qt},this.log("unsubscribe: call _sendPacket"),this._sendPacket(lr),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!Xt())&&this._storeProcessingQueue.push({invoke:Xt,callback:qt}),this}unsubscribeAsync(Wt,Vt){return new Promise((qt,Gt)=>{this.unsubscribe(Wt,Vt,(Xt,Zt)=>{Xt?Gt(Xt):qt(Zt)})})}end(Wt,Vt,qt){this.log("end :: (%s)",this.options.clientId),(Wt==null||typeof Wt!="boolean")&&(qt=qt||Vt,Vt=Wt,Wt=!1),typeof Vt!="object"&&(qt=qt||Vt,Vt=null),this.log("end :: cb? %s",!!qt),(!qt||typeof qt!="function")&&(qt=this.noop);let Gt=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(Zt=>{this.outgoingStore.close(lr=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),qt){let er=Zt||lr;this.log("end :: closeStores: invoking callback with args"),qt(er)}})}),this._deferredReconnect&&this._deferredReconnect()},Xt=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,Wt),this._cleanUp(Wt,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,It.nextTick)(Gt)},Vt)};return this.disconnecting?(qt(),this):(this._clearReconnect(),this.disconnecting=!0,!Wt&&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,Xt,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),Xt()),this)}endAsync(Wt,Vt){return new Promise((qt,Gt)=>{this.end(Wt,Vt,Xt=>{Xt?Gt(Xt):qt()})})}removeOutgoingMessage(Wt){if(this.outgoing[Wt]){let{cb:Vt}=this.outgoing[Wt];this._removeOutgoingAndStoreMessage(Wt,()=>{Vt(new Error("Message removed"))})}return this}reconnect(Wt){this.log("client reconnect");let Vt=()=>{Wt?(this.options.incomingStore=Wt.incomingStore,this.options.outgoingStore=Wt.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new Tt.default,this.outgoingStore=this.options.outgoingStore||new Tt.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=Vt:Vt(),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(Wt=>{this.outgoing[Wt].volatile&&typeof this.outgoing[Wt].cb=="function"&&(this.outgoing[Wt].cb(new Error("Connection closed")),delete this.outgoing[Wt])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(Wt=>{typeof this.outgoing[Wt].cb=="function"&&(this.outgoing[Wt].cb(new Error("Connection closed")),delete this.outgoing[Wt])}))}_removeTopicAliasAndRecoverTopicName(Wt){let Vt;Wt.properties&&(Vt=Wt.properties.topicAlias);let qt=Wt.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",Vt,qt),qt.length===0){if(typeof Vt>"u")return new Error("Unregistered Topic Alias");if(qt=this.topicAliasSend.getTopicByAlias(Vt),typeof qt>"u")return new Error("Unregistered Topic Alias");Wt.topic=qt}Vt&&delete Wt.properties.topicAlias}_checkDisconnecting(Wt){return this.disconnecting&&(Wt&&Wt!==this.noop?Wt(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(Wt,Vt,qt={}){if(Vt&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",Vt)),this.log("_cleanUp :: forced? %s",Wt),Wt)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let Gt=Object.assign({cmd:"disconnect"},qt);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Gt,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),Nt(()=>{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.pingTimer&&(this.log("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),Vt&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",Vt),Vt())}_storeAndSend(Wt,Vt,qt){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",Wt.cmd);let Gt=Wt,Xt;if(Gt.cmd==="publish"&&(Gt=(0,$t.default)(Wt),Xt=this._removeTopicAliasAndRecoverTopicName(Gt),Xt))return Vt&&Vt(Xt);this.outgoingStore.put(Gt,Zt=>{if(Zt)return Vt&&Vt(Zt);qt(),this._writePacket(Wt,Vt)})}_applyTopicAlias(Wt){if(this.options.protocolVersion===5&&Wt.cmd==="publish"){let Vt;Wt.properties&&(Vt=Wt.properties.topicAlias);let qt=Wt.topic.toString();if(this.topicAliasSend)if(Vt){if(qt.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",qt,Vt),!this.topicAliasSend.put(qt,Vt)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",qt,Vt),new Error("Sending Topic Alias out of range")}else qt.length!==0&&(this.options.autoAssignTopicAlias?(Vt=this.topicAliasSend.getAliasByTopic(qt),Vt?(Wt.topic="",Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",qt,Vt)):(Vt=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(qt,Vt),Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",qt,Vt))):this.options.autoUseTopicAlias&&(Vt=this.topicAliasSend.getAliasByTopic(qt),Vt&&(Wt.topic="",Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",qt,Vt))));else if(Vt)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",qt,Vt),new Error("Sending Topic Alias out of range")}}_noop(Wt){this.log("noop ::",Wt)}_writePacket(Wt,Vt){this.log("_writePacket :: packet: %O",Wt),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",Wt),this._shiftPingInterval(),this.log("_writePacket :: writing to stream");let qt=ft.default.writeToStream(Wt,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",qt),!qt&&Vt&&Vt!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",Vt)):Vt&&(this.log("_writePacket :: invoking cb"),Vt())}_sendPacket(Wt,Vt,qt,Gt){this.log("_sendPacket :: (%s) :: start",this.options.clientId),qt=qt||this.noop,Vt=Vt||this.noop;let Xt=this._applyTopicAlias(Wt);if(Xt){Vt(Xt);return}if(!this.connected){if(Wt.cmd==="auth"){this._writePacket(Wt,Vt);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(Wt,Vt,qt);return}if(Gt){this._writePacket(Wt,Vt);return}switch(Wt.cmd){case"publish":break;case"pubrel":this._storeAndSend(Wt,Vt,qt);return;default:this._writePacket(Wt,Vt);return}switch(Wt.qos){case 2:case 1:this._storeAndSend(Wt,Vt,qt);break;case 0:default:this._writePacket(Wt,Vt);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(Wt,Vt,qt){this.log("_storePacket :: packet: %o",Wt),this.log("_storePacket :: cb? %s",!!Vt),qt=qt||this.noop;let Gt=Wt;if(Gt.cmd==="publish"){Gt=(0,$t.default)(Wt);let Zt=this._removeTopicAliasAndRecoverTopicName(Gt);if(Zt)return Vt&&Vt(Zt)}let Xt=Gt.qos||0;Xt===0&&this.queueQoSZero||Gt.cmd!=="publish"?this.queue.push({packet:Gt,cb:Vt}):Xt>0?(Vt=this.outgoing[Gt.messageId]?this.outgoing[Gt.messageId].cb:null,this.outgoingStore.put(Gt,Zt=>{if(Zt)return Vt&&Vt(Zt);qt()})):Vt&&Vt(new Error("No connection to broker"))}_setupPingTimer(){this.log("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive),!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=new jt.default(this.options.keepalive,()=>{this._checkPing()}))}_shiftPingInterval(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule()}_checkPing(){this.log("_checkPing :: checking ping..."),this.pingResp?(this.log("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(this.log("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))}_resubscribe(){this.log("_resubscribe");let Wt=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&Wt.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let Vt=0;Vt{let qt=this.outgoingStore.createStream(),Gt=()=>{qt.destroy(),qt=null,this._flushStoreProcessingQueue(),Xt()},Xt=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",Gt),qt.on("error",lr=>{Xt(),this._flushStoreProcessingQueue(),this.removeListener("close",Gt),this.emit("error",lr)});let Zt=()=>{if(!qt)return;let lr=qt.read(1),er;if(!lr){qt.once("readable",Zt);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[lr.messageId]){Zt();return}!this.disconnecting&&!this.reconnectTimer?(er=this.outgoing[lr.messageId]?this.outgoing[lr.messageId].cb:null,this.outgoing[lr.messageId]={volatile:!1,cb(cr,ur){er&&er(cr,ur),Zt()}},this._packetIdsDuringStoreProcessing[lr.messageId]=!0,this.messageIdProvider.register(lr.messageId)?this._sendPacket(lr,void 0,void 0,!0):this.log("messageId: %d has already used.",lr.messageId)):qt.destroy&&qt.destroy()};qt.on("end",()=>{let lr=!0;for(let er in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[er]){lr=!1;break}this.removeListener("close",Gt),lr?(Xt(),this._invokeAllStoreProcessingQueue(),this.emit("connect",Wt)):Vt()}),Zt()};Vt()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let Wt=this._storeProcessingQueue[0];if(Wt&&Wt.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let Wt of this._storeProcessingQueue)Wt.cbStorePut&&Wt.cbStorePut(new Error("Connection closed")),Wt.callback&&Wt.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(Wt,Vt){delete this.outgoing[Wt],this.outgoingStore.del({messageId:Wt},(qt,Gt)=>{Vt(qt,Gt),this.messageIdProvider.deallocate(Wt),this._invokeStoreProcessingQueue()})}};_e.default=Ft}),Up=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=xa(),rt=class{constructor(){this.numberAllocator=new et.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(st){return this.numberAllocator.use(st)}deallocate(st){this.numberAllocator.free(st)}clear(){this.numberAllocator.clear()}};_e.default=rt});function Ar(_e){throw new RangeError(Gv[_e])}function Np(_e,et){let rt=_e.split("@"),st="";rt.length>1&&(st=rt[0]+"@",_e=rt[1]);let ct=function(ut,ft){let gt=[],xt=ut.length;for(;xt--;)gt[xt]=ft(ut[xt]);return gt}((_e=_e.replace(Kv,".")).split("."),et).join(".");return st+ct}function Fp(_e){let et=[],rt=0,st=_e.length;for(;rt=55296&&ct<=56319&&rt{_$2(),v$1(),m$1(),Vv=/^xn--/,zv=/[^\0-\x7E]/,Kv=/[\x2E\u3002\uFF0E\uFF61]/g,Gv={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ht=Math.floor,$a=String.fromCharCode,qp=function(_e,et){return _e+22+75*(_e<26)-((et!=0)<<5)},Wp=function(_e,et,rt){let st=0;for(_e=rt?ht(_e/700):_e>>1,_e+=ht(_e/et);_e>455;st+=36)_e=ht(_e/35);return ht(st+36*_e/(_e+38))},Dp=function(_e){let et=[],rt=_e.length,st=0,ct=128,ut=72,ft=_e.lastIndexOf("-");ft<0&&(ft=0);for(let xt=0;xt=128&&Ar("not-basic"),et.push(_e.charCodeAt(xt));for(let xt=ft>0?ft+1:0;xt=rt&&Ar("invalid-input");let Rt=(gt=_e.charCodeAt(xt++))-48<10?gt-22:gt-65<26?gt-65:gt-97<26?gt-97:36;(Rt>=36||Rt>ht((2147483647-st)/wt))&&Ar("overflow"),st+=Rt*wt;let It=Tt<=ut?1:Tt>=ut+26?26:Tt-ut;if(Rtht(2147483647/At)&&Ar("overflow"),wt*=At}let _t=et.length+1;ut=Wp(st-$t,_t,$t==0),ht(st/_t)>2147483647-ct&&Ar("overflow"),ct+=ht(st/_t),st%=_t,et.splice(st++,0,ct)}var gt;return String.fromCodePoint(...et)},jp=function(_e){let et=[],rt=(_e=Fp(_e)).length,st=128,ct=0,ut=72;for(let xt of _e)xt<128&&et.push($a(xt));let ft=et.length,gt=ft;for(ft&&et.push("-");gt=st&&_tht((2147483647-ct)/$t)&&Ar("overflow"),ct+=(xt-st)*$t,st=xt;for(let _t of _e)if(_t2147483647&&Ar("overflow"),_t==st){let wt=ct;for(let Tt=36;;Tt+=36){let Rt=Tt<=ut?1:Tt>=ut+26?26:Tt-ut;if(wtString.fromCodePoint(..._e)},decode:Dp,encode:jp,toASCII:function(_e){return Np(_e,function(et){return zv.test(et)?"xn--"+jp(et):et})},toUnicode:function(_e){return Np(_e,function(et){return Vv.test(et)?Dp(et.slice(4).toLowerCase()):et})}},zt.decode,zt.encode,zt.toASCII,zt.toUnicode,zt.ucs2,zt.version});function Qv(_e,et){return Object.prototype.hasOwnProperty.call(_e,et)}var Yv,Pi,Jv,dt,Hp=be$1(()=>{_$2(),v$1(),m$1(),Yv=function(_e,et,rt,st){et=et||"&",rt=rt||"=";var ct={};if(typeof _e!="string"||_e.length===0)return ct;var ut=/\+/g;_e=_e.split(et);var ft=1e3;st&&typeof st.maxKeys=="number"&&(ft=st.maxKeys);var gt=_e.length;ft>0&>>ft&&(gt=ft);for(var xt=0;xt=0?($t=Rt.substr(0,It),_t=Rt.substr(It+1)):($t=Rt,_t=""),wt=decodeURIComponent($t),Tt=decodeURIComponent(_t),Qv(ct,wt)?Array.isArray(ct[wt])?ct[wt].push(Tt):ct[wt]=[ct[wt],Tt]:ct[wt]=Tt}return ct},Pi=function(_e){switch(typeof _e){case"string":return _e;case"boolean":return _e?"true":"false";case"number":return isFinite(_e)?_e:"";default:return""}},Jv=function(_e,et,rt,st){return et=et||"&",rt=rt||"=",_e===null&&(_e=void 0),typeof _e=="object"?Object.keys(_e).map(function(ct){var ut=encodeURIComponent(Pi(ct))+rt;return Array.isArray(_e[ct])?_e[ct].map(function(ft){return ut+encodeURIComponent(Pi(ft))}).join(et):ut+encodeURIComponent(Pi(_e[ct]))}).join(et):st?encodeURIComponent(Pi(st))+rt+encodeURIComponent(Pi(_e)):""},dt={},dt.decode=dt.parse=Yv,dt.encode=dt.stringify=Jv,dt.decode,dt.encode,dt.parse,dt.stringify});function Ha(){throw new Error("setTimeout has not been defined")}function Va(){throw new Error("clearTimeout has not been defined")}function Kp(_e){if(Bt===setTimeout)return setTimeout(_e,0);if((Bt===Ha||!Bt)&&setTimeout)return Bt=setTimeout,setTimeout(_e,0);try{return Bt(_e,0)}catch{try{return Bt.call(null,_e,0)}catch{return Bt.call(this||ri,_e,0)}}}function Xv(){ti&&Ir&&(ti=!1,Ir.length?Ot=Ir.concat(Ot):is=-1,Ot.length&&Gp())}function Gp(){if(!ti){var _e=Kp(Xv);ti=!0;for(var et=Ot.length;et;){for(Ir=Ot,Ot=[];++is{_$2(),v$1(),m$1(),ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fe=zp={},function(){try{Bt=typeof setTimeout=="function"?setTimeout:Ha}catch{Bt=Ha}try{Pt=typeof clearTimeout=="function"?clearTimeout:Va}catch{Pt=Va}}(),Ot=[],ti=!1,is=-1,fe.nextTick=function(_e){var et=new Array(arguments.length-1);if(arguments.length>1)for(var rt=1;rt1)for(var Nt=1;Nt{_$2(),v$1(),m$1(),za={},Yp=!1,ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,re$1=Zv(),re$1.platform="browser",re$1.addListener,re$1.argv,re$1.binding,re$1.browser,re$1.chdir,re$1.cwd,re$1.emit,re$1.env,re$1.listeners,re$1.nextTick,re$1.off,re$1.on,re$1.once,re$1.prependListener,re$1.prependOnceListener,re$1.removeAllListeners,re$1.removeListener,re$1.title,re$1.umask,re$1.version,re$1.versions});function eE(){if(Jp)return Ga;Jp=!0;var _e=re$1;function et(ut){if(typeof ut!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ut))}function rt(ut,ft){for(var gt="",xt=0,$t=-1,_t=0,wt,Tt=0;Tt<=ut.length;++Tt){if(Tt2){var Rt=gt.lastIndexOf("/");if(Rt!==gt.length-1){Rt===-1?(gt="",xt=0):(gt=gt.slice(0,Rt),xt=gt.length-1-gt.lastIndexOf("/")),$t=Tt,_t=0;continue}}else if(gt.length===2||gt.length===1){gt="",xt=0,$t=Tt,_t=0;continue}}ft&&(gt.length>0?gt+="/..":gt="..",xt=2)}else gt.length>0?gt+="/"+ut.slice($t+1,Tt):gt=ut.slice($t+1,Tt),xt=Tt-$t-1;$t=Tt,_t=0}else wt===46&&_t!==-1?++_t:_t=-1}return gt}function st(ut,ft){var gt=ft.dir||ft.root,xt=ft.base||(ft.name||"")+(ft.ext||"");return gt?gt===ft.root?gt+xt:gt+ut+xt:xt}var ct={resolve:function(){for(var ut="",ft=!1,gt,xt=arguments.length-1;xt>=-1&&!ft;xt--){var $t;xt>=0?$t=arguments[xt]:(gt===void 0&&(gt=_e.cwd()),$t=gt),et($t),$t.length!==0&&(ut=$t+"/"+ut,ft=$t.charCodeAt(0)===47)}return ut=rt(ut,!ft),ft?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},normalize:function(ut){if(et(ut),ut.length===0)return".";var ft=ut.charCodeAt(0)===47,gt=ut.charCodeAt(ut.length-1)===47;return ut=rt(ut,!ft),ut.length===0&&!ft&&(ut="."),ut.length>0&>&&(ut+="/"),ft?"/"+ut:ut},isAbsolute:function(ut){return et(ut),ut.length>0&&ut.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ut,ft=0;ft0&&(ut===void 0?ut=gt:ut+="/"+gt)}return ut===void 0?".":ct.normalize(ut)},relative:function(ut,ft){if(et(ut),et(ft),ut===ft||(ut=ct.resolve(ut),ft=ct.resolve(ft),ut===ft))return"";for(var gt=1;gtRt){if(ft.charCodeAt(_t+At)===47)return ft.slice(_t+At+1);if(At===0)return ft.slice(_t+At)}else $t>Rt&&(ut.charCodeAt(gt+At)===47?It=At:At===0&&(It=0));break}var jt=ut.charCodeAt(gt+At),Nt=ft.charCodeAt(_t+At);if(jt!==Nt)break;jt===47&&(It=At)}var kt="";for(At=gt+It+1;At<=xt;++At)(At===xt||ut.charCodeAt(At)===47)&&(kt.length===0?kt+="..":kt+="/..");return kt.length>0?kt+ft.slice(_t+It):(_t+=It,ft.charCodeAt(_t)===47&&++_t,ft.slice(_t))},_makeLong:function(ut){return ut},dirname:function(ut){if(et(ut),ut.length===0)return".";for(var ft=ut.charCodeAt(0),gt=ft===47,xt=-1,$t=!0,_t=ut.length-1;_t>=1;--_t)if(ft=ut.charCodeAt(_t),ft===47){if(!$t){xt=_t;break}}else $t=!1;return xt===-1?gt?"/":".":gt&&xt===1?"//":ut.slice(0,xt)},basename:function(ut,ft){if(ft!==void 0&&typeof ft!="string")throw new TypeError('"ext" argument must be a string');et(ut);var gt=0,xt=-1,$t=!0,_t;if(ft!==void 0&&ft.length>0&&ft.length<=ut.length){if(ft.length===ut.length&&ft===ut)return"";var wt=ft.length-1,Tt=-1;for(_t=ut.length-1;_t>=0;--_t){var Rt=ut.charCodeAt(_t);if(Rt===47){if(!$t){gt=_t+1;break}}else Tt===-1&&($t=!1,Tt=_t+1),wt>=0&&(Rt===ft.charCodeAt(wt)?--wt===-1&&(xt=_t):(wt=-1,xt=Tt))}return gt===xt?xt=Tt:xt===-1&&(xt=ut.length),ut.slice(gt,xt)}else{for(_t=ut.length-1;_t>=0;--_t)if(ut.charCodeAt(_t)===47){if(!$t){gt=_t+1;break}}else xt===-1&&($t=!1,xt=_t+1);return xt===-1?"":ut.slice(gt,xt)}},extname:function(ut){et(ut);for(var ft=-1,gt=0,xt=-1,$t=!0,_t=0,wt=ut.length-1;wt>=0;--wt){var Tt=ut.charCodeAt(wt);if(Tt===47){if(!$t){gt=wt+1;break}continue}xt===-1&&($t=!1,xt=wt+1),Tt===46?ft===-1?ft=wt:_t!==1&&(_t=1):ft!==-1&&(_t=-1)}return ft===-1||xt===-1||_t===0||_t===1&&ft===xt-1&&ft===gt+1?"":ut.slice(ft,xt)},format:function(ut){if(ut===null||typeof ut!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ut);return st("/",ut)},parse:function(ut){et(ut);var ft={root:"",dir:"",base:"",ext:"",name:""};if(ut.length===0)return ft;var gt=ut.charCodeAt(0),xt=gt===47,$t;xt?(ft.root="/",$t=1):$t=0;for(var _t=-1,wt=0,Tt=-1,Rt=!0,It=ut.length-1,At=0;It>=$t;--It){if(gt=ut.charCodeAt(It),gt===47){if(!Rt){wt=It+1;break}continue}Tt===-1&&(Rt=!1,Tt=It+1),gt===46?_t===-1?_t=It:At!==1&&(At=1):_t!==-1&&(At=-1)}return _t===-1||Tt===-1||At===0||At===1&&_t===Tt-1&&_t===wt+1?Tt!==-1&&(wt===0&&xt?ft.base=ft.name=ut.slice(1,Tt):ft.base=ft.name=ut.slice(wt,Tt)):(wt===0&&xt?(ft.name=ut.slice(1,_t),ft.base=ut.slice(1,Tt)):(ft.name=ut.slice(wt,_t),ft.base=ut.slice(wt,Tt)),ft.ext=ut.slice(_t,Tt)),wt>0?ft.dir=ut.slice(0,wt-1):xt&&(ft.dir="/"),ft},sep:"/",delimiter:":",win32:null,posix:null};return ct.posix=ct,Ga=ct,Ga}var Ga,Jp,Qa,Xp=be$1(()=>{_$2(),v$1(),m$1(),Ka(),Ga={},Jp=!1,Qa=eE()}),og={};Qt(og,{URL:()=>PE,Url:()=>IE,default:()=>X,fileURLToPath:()=>ng,format:()=>TE,parse:()=>BE,pathToFileURL:()=>sg,resolve:()=>RE,resolveObject:()=>CE});function Fe$1(){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 Oi(_e,et,rt){if(_e&&pt$1.isObject(_e)&&_e instanceof Fe$1)return _e;var st=new Fe$1;return st.parse(_e,et,rt),st}function lE(){if(rg)return Xa;rg=!0;var _e=ne$1;function et(ut){if(typeof ut!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ut))}function rt(ut,ft){for(var gt="",xt=0,$t=-1,_t=0,wt,Tt=0;Tt<=ut.length;++Tt){if(Tt2){var Rt=gt.lastIndexOf("/");if(Rt!==gt.length-1){Rt===-1?(gt="",xt=0):(gt=gt.slice(0,Rt),xt=gt.length-1-gt.lastIndexOf("/")),$t=Tt,_t=0;continue}}else if(gt.length===2||gt.length===1){gt="",xt=0,$t=Tt,_t=0;continue}}ft&&(gt.length>0?gt+="/..":gt="..",xt=2)}else gt.length>0?gt+="/"+ut.slice($t+1,Tt):gt=ut.slice($t+1,Tt),xt=Tt-$t-1;$t=Tt,_t=0}else wt===46&&_t!==-1?++_t:_t=-1}return gt}function st(ut,ft){var gt=ft.dir||ft.root,xt=ft.base||(ft.name||"")+(ft.ext||"");return gt?gt===ft.root?gt+xt:gt+ut+xt:xt}var ct={resolve:function(){for(var ut="",ft=!1,gt,xt=arguments.length-1;xt>=-1&&!ft;xt--){var $t;xt>=0?$t=arguments[xt]:(gt===void 0&&(gt=_e.cwd()),$t=gt),et($t),$t.length!==0&&(ut=$t+"/"+ut,ft=$t.charCodeAt(0)===47)}return ut=rt(ut,!ft),ft?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},normalize:function(ut){if(et(ut),ut.length===0)return".";var ft=ut.charCodeAt(0)===47,gt=ut.charCodeAt(ut.length-1)===47;return ut=rt(ut,!ft),ut.length===0&&!ft&&(ut="."),ut.length>0&>&&(ut+="/"),ft?"/"+ut:ut},isAbsolute:function(ut){return et(ut),ut.length>0&&ut.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ut,ft=0;ft0&&(ut===void 0?ut=gt:ut+="/"+gt)}return ut===void 0?".":ct.normalize(ut)},relative:function(ut,ft){if(et(ut),et(ft),ut===ft||(ut=ct.resolve(ut),ft=ct.resolve(ft),ut===ft))return"";for(var gt=1;gtRt){if(ft.charCodeAt(_t+At)===47)return ft.slice(_t+At+1);if(At===0)return ft.slice(_t+At)}else $t>Rt&&(ut.charCodeAt(gt+At)===47?It=At:At===0&&(It=0));break}var jt=ut.charCodeAt(gt+At),Nt=ft.charCodeAt(_t+At);if(jt!==Nt)break;jt===47&&(It=At)}var kt="";for(At=gt+It+1;At<=xt;++At)(At===xt||ut.charCodeAt(At)===47)&&(kt.length===0?kt+="..":kt+="/..");return kt.length>0?kt+ft.slice(_t+It):(_t+=It,ft.charCodeAt(_t)===47&&++_t,ft.slice(_t))},_makeLong:function(ut){return ut},dirname:function(ut){if(et(ut),ut.length===0)return".";for(var ft=ut.charCodeAt(0),gt=ft===47,xt=-1,$t=!0,_t=ut.length-1;_t>=1;--_t)if(ft=ut.charCodeAt(_t),ft===47){if(!$t){xt=_t;break}}else $t=!1;return xt===-1?gt?"/":".":gt&&xt===1?"//":ut.slice(0,xt)},basename:function(ut,ft){if(ft!==void 0&&typeof ft!="string")throw new TypeError('"ext" argument must be a string');et(ut);var gt=0,xt=-1,$t=!0,_t;if(ft!==void 0&&ft.length>0&&ft.length<=ut.length){if(ft.length===ut.length&&ft===ut)return"";var wt=ft.length-1,Tt=-1;for(_t=ut.length-1;_t>=0;--_t){var Rt=ut.charCodeAt(_t);if(Rt===47){if(!$t){gt=_t+1;break}}else Tt===-1&&($t=!1,Tt=_t+1),wt>=0&&(Rt===ft.charCodeAt(wt)?--wt===-1&&(xt=_t):(wt=-1,xt=Tt))}return gt===xt?xt=Tt:xt===-1&&(xt=ut.length),ut.slice(gt,xt)}else{for(_t=ut.length-1;_t>=0;--_t)if(ut.charCodeAt(_t)===47){if(!$t){gt=_t+1;break}}else xt===-1&&($t=!1,xt=_t+1);return xt===-1?"":ut.slice(gt,xt)}},extname:function(ut){et(ut);for(var ft=-1,gt=0,xt=-1,$t=!0,_t=0,wt=ut.length-1;wt>=0;--wt){var Tt=ut.charCodeAt(wt);if(Tt===47){if(!$t){gt=wt+1;break}continue}xt===-1&&($t=!1,xt=wt+1),Tt===46?ft===-1?ft=wt:_t!==1&&(_t=1):ft!==-1&&(_t=-1)}return ft===-1||xt===-1||_t===0||_t===1&&ft===xt-1&&ft===gt+1?"":ut.slice(ft,xt)},format:function(ut){if(ut===null||typeof ut!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ut);return st("/",ut)},parse:function(ut){et(ut);var ft={root:"",dir:"",base:"",ext:"",name:""};if(ut.length===0)return ft;var gt=ut.charCodeAt(0),xt=gt===47,$t;xt?(ft.root="/",$t=1):$t=0;for(var _t=-1,wt=0,Tt=-1,Rt=!0,It=ut.length-1,At=0;It>=$t;--It){if(gt=ut.charCodeAt(It),gt===47){if(!Rt){wt=It+1;break}continue}Tt===-1&&(Rt=!1,Tt=It+1),gt===46?_t===-1?_t=It:At!==1&&(At=1):_t!==-1&&(At=-1)}return _t===-1||Tt===-1||At===0||At===1&&_t===Tt-1&&_t===wt+1?Tt!==-1&&(wt===0&&xt?ft.base=ft.name=ut.slice(1,Tt):ft.base=ft.name=ut.slice(wt,Tt)):(wt===0&&xt?(ft.name=ut.slice(1,_t),ft.base=ut.slice(1,Tt)):(ft.name=ut.slice(wt,_t),ft.base=ut.slice(wt,Tt)),ft.ext=ut.slice(_t,Tt)),wt>0?ft.dir=ut.slice(0,wt-1):xt&&(ft.dir="/"),ft},sep:"/",delimiter:":",win32:null,posix:null};return ct.posix=ct,Xa=ct,Xa}function mE(_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 el?vE(_e):EE(_e)}function vE(_e){let et=_e.hostname,rt=_e.pathname;for(let st=0;stdE||ct!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return rt.slice(1)}}function EE(_e){if(_e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let et=_e.pathname;for(let rt=0;rt{delete ut[It]}),rt.headers=AxiosHeaders$1.concat(ft,ut);const gt=[];let xt=!0;this.interceptors.request.forEach(function(At){typeof At.runWhen=="function"&&At.runWhen(rt)===!1||(xt=xt&&At.synchronous,gt.unshift(At.fulfilled,At.rejected))});const $t=[];this.interceptors.response.forEach(function(At){$t.push(At.fulfilled,At.rejected)});let _t,wt=0,Tt;if(!xt){const It=[dispatchRequest.bind(this),void 0];for(It.unshift.apply(It,gt),It.push.apply(It,$t),Tt=It.length,_t=Promise.resolve(rt);wt{if(!st._listeners)return;let ut=st._listeners.length;for(;ut-- >0;)st._listeners[ut](ct);st._listeners=null}),this.promise.then=ct=>{let ut;const ft=new Promise(gt=>{st.subscribe(gt),ut=gt}).then(ct);return ft.cancel=function(){st.unsubscribe(ut)},ft},et(function(ut,ft,gt){st.reason||(st.reason=new CanceledError(ut,ft,gt),rt(st.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(et){if(this.reason){et(this.reason);return}this._listeners?this._listeners.push(et):this._listeners=[et]}unsubscribe(et){if(!this._listeners)return;const rt=this._listeners.indexOf(et);rt!==-1&&this._listeners.splice(rt,1)}static source(){let et;return{token:new CancelToken(function(ct){et=ct}),cancel:et}}}const CancelToken$1=CancelToken;function spread(_e){return function(rt){return _e.apply(null,rt)}}function isAxiosError(_e){return utils$2.isObject(_e)&&_e.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([_e,et])=>{HttpStatusCode[et]=_e});const HttpStatusCode$1=HttpStatusCode;function createInstance(_e){const et=new Axios$1(_e),rt=bind(Axios$1.prototype.request,et);return utils$2.extend(rt,Axios$1.prototype,et,{allOwnKeys:!0}),utils$2.extend(rt,et,null,{allOwnKeys:!0}),rt.create=function(ct){return createInstance(mergeConfig(_e,ct))},rt}const axios=createInstance(defaults$3);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(et){return Promise.all(et)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=_e=>formDataToJSON(utils$2.isHTMLForm(_e)?new FormData(_e):_e);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;function mitt(_e){return{all:_e=_e||new Map,on:function(et,rt){var st=_e.get(et);st?st.push(rt):_e.set(et,[rt])},off:function(et,rt){var st=_e.get(et);st&&(rt?st.splice(st.indexOf(rt)>>>0,1):_e.set(et,[]))},emit:function(et,rt){var st=_e.get(et);st&&st.slice().map(function(ct){ct(rt)}),(st=_e.get("*"))&&st.slice().map(function(ct){ct(et,rt)})}}}const emitter=mitt(),request=axios.create({timeout:2e4,baseURL:BASE_URL,paramsSerializer:{indexes:null}});request.interceptors.request.use(_e=>{let et=localStorage.getItem(ACCESS_TOKEN);return et&&et.length>10&&_e.url.startsWith("/api")&&(_e.headers.Authorization=`Bearer ${et}`),!et&&_e.url.startsWith("/api")?Promise.reject(axiosError):_e},_e=>(console.debug("request error",_e),_e.response.status===403&&emitter.emit(EVENT_BUS_TOKEN_INVALID,"403"),_e.response.status===401&&emitter.emit(EVENT_BUS_TOKEN_INVALID,"401"),Promise.reject(_e)));request.interceptors.response.use(_e=>_e,_e=>{if(console.debug("response error",_e),_e.response)switch(_e.response.status){case 400:console.log("axios interception error 400"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"400");break;case 401:console.log("axios interception error 401"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"401");break;case 403:console.log("axios interception error 403"),emitter.emit(EVENT_BUS_TOKEN_INVALID,"403");break;case 500:console.log("axios interception error 500"),emitter.emit(EVENT_BUS_SERVER_ERROR_500,"500");break;case 601:console.log("axios interception error 601",_e.message);break}return Promise.resolve({message:_e.message,code:_e.response.status,data:{message:_e.message,code:_e.response.status,data:!1}})});const response={data:null,status:601,statusText:ANONYMOUS,headers:{},config:{headers:void 0},request:null},axiosError={message:"匿名用户,无需访问服务器接口",name:ANONYMOUS,code:"601",config:response.config,request:response.request,response,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 login(_e){return request("/auth/v1/login",{method:"POST",data:{username:_e.username,password:_e.password,client:HTTP_CLIENT}})}async function sendMobileCode(_e){return console.log("sendMobileCode:",_e),request("/auth/v1/send/mobile",{method:"POST",data:{mobile:_e.mobile,type:_e.type,client:HTTP_CLIENT}})}async function loginMobile(_e){return console.log("loginMobile:",_e),request("/auth/v1/login/mobile",{method:"POST",data:{mobile:_e.mobile,code:_e.code,client:HTTP_CLIENT}})}async function logout(_e){return request("/api/v1/user/logout",{method:"POST",data:{client:HTTP_CLIENT},..._e||{}})}const Mobile=({loginType:_e})=>{const et=useIntl();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="mobile"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(MobileOutlined$1,{className:"prefixIcon"})},name:"mobile",placeholder:et.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]}),jsxRuntimeExports.jsx(ProFormCaptcha$1,{fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},captchaProps:{size:"large"},placeholder:et.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(rt,st)=>rt?`${st} ${et.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:et.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async rt=>{if(console.log("mobile:",rt),rt&&rt.length===11){const ct=await sendMobileCode({mobile:rt,type:SEND_MOBILE_CODE_TYPE_LOGIN});if(ct.data.code!==200){message$2.error(ct.data.message);return}message$2.success(ct.data.message)}else message$2.error("手机号格式错误")}}),jsxRuntimeExports.jsx(Alert$1,{message:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})};let message;const AntdGlobalComp=()=>{const _e=AntdApp.useApp();return message=_e.message,_e.modal,_e.notification,null},Scan=({loginType:_e})=>(useIntl(),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==="scan"&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto"},value:"login"})})})),useUserStore=create$4()(devtools(persist(immer((_e,et)=>({userInfo:{uid:"",nickname:"",avatar:""},setUserInfo:rt=>{_e({userInfo:rt})},resetUserInfo(){_e({userInfo:{uid:et().userInfo.uid,nickname:"",avatar:""}})}})),{name:USER_STORE}))),LoginPage=({isModel:_e=!1})=>{const et=useIntl(),rt=useNavigate(),{token:st}=theme.useToken(),[ct,ut]=reactExports.useState("account"),ft=useUserStore(wt=>wt.setUserInfo),gt=useAuthStore(wt=>wt.setAccessToken),xt=[{key:"account",label:et.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:jsxRuntimeExports.jsx(Account,{loginType:ct})},{key:"mobile",label:et.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:jsxRuntimeExports.jsx(Mobile,{loginType:ct})},{key:"scan",label:et.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:jsxRuntimeExports.jsx(Scan,{loginType:ct})}],$t=async wt=>{console.log("handleSubmit values: ",wt,ct),message.loading("正在登录...");const Tt=await login({...wt});console.log("LoginResult:",Tt),Tt.data.code===200?(message.destroy(),message.success("登录成功!"),gt(Tt.data.data.access_token),ft(Tt.data.data.user),_e||rt("/chat")):(message.destroy(),message.error(Tt.data.message))},_t=async wt=>{console.log("handleMobileSubmit values: ",wt),message.loading("正在登录...");const Tt=await loginMobile({...wt});console.log("LoginMobileResult:",Tt),Tt.data.code===200?(message.destroy(),message.success("登录成功!"),gt(Tt.data.data.access_token),ft(Tt.data.data.user),IS_ELECTRON&&window.electronAPI.loginSuccess(),rt("/chat")):(message.destroy(),message.error(Tt.data.message))};return jsxRuntimeExports.jsx(ProConfigProvider,{hashed:!1,children:jsxRuntimeExports.jsx("div",{style:{backgroundColor:st.colorBgContainer,textAlign:"center"},children:jsxRuntimeExports.jsxs(LoginForm,{logo:"./logo.png",title:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"app.title"}),subTitle:et.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{username:"agent1@email.com",password:"123456",mobile:"18888888008"},onFinish:async wt=>{if(console.log("login:",wt),ct==="account"){let Tt={username:wt.username,password:wt.password};await $t(Tt)}else{let Tt={mobile:wt.mobile,code:wt.code};await _t(Tt)}},children:[jsxRuntimeExports.jsx(Tabs$1,{centered:!0,items:xt,activeKey:ct,onChange:wt=>ut(wt)}),jsxRuntimeExports.jsx("div",{style:{marginBlockEnd:24,textAlign:"left"}})]})})})},Login=({isModel:_e=!1})=>jsxRuntimeExports.jsx(AntdApp,{children:jsxRuntimeExports.jsx(LoginPage,{isModel:_e})}),Register=()=>{useNavigate();const{token:_e}=theme.useToken();return reactExports.useState("phone"),setAlpha(_e.colorTextBase,.2),jsxRuntimeExports.jsx(ProConfigProvider,{hashed:!1,children:jsxRuntimeExports.jsx("div",{style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100vh"},children:jsxRuntimeExports.jsxs(LoginForm,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ProFormText$1,{name:"username",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined$1,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),jsxRuntimeExports.jsx(ProFormText$1.Password,{name:"password",fieldProps:{size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined$1,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),jsxRuntimeExports.jsxs("div",{style:{marginBlockEnd:24},children:[jsxRuntimeExports.jsx(ProFormCheckbox$1,{noStyle:!0,name:"autoLogin",children:"自动登录"}),jsxRuntimeExports.jsx(Link,{to:"/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(Ft){try{return Ft.defaultView&&Ft.defaultView.frameElement||null}catch{return null}}var et=function(Ft){for(var Ht=Ft,Wt=_e(Ht);Wt;)Ht=Wt.ownerDocument,Wt=_e(Ht);return Ht}(window.document),rt=[],st=null,ct=null;function ut(Ft){this.time=Ft.time,this.target=Ft.target,this.rootBounds=It(Ft.rootBounds),this.boundingClientRect=It(Ft.boundingClientRect),this.intersectionRect=It(Ft.intersectionRect||Rt()),this.isIntersecting=!!Ft.intersectionRect;var Ht=this.boundingClientRect,Wt=Ht.width*Ht.height,Vt=this.intersectionRect,qt=Vt.width*Vt.height;Wt?this.intersectionRatio=Number((qt/Wt).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function ft(Ft,Ht){var Wt=Ht||{};if(typeof Ft!="function")throw new Error("callback must be a function");if(Wt.root&&Wt.root.nodeType!=1&&Wt.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=xt(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=Ft,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(Wt.rootMargin),this.thresholds=this._initThresholds(Wt.threshold),this.root=Wt.root||null,this.rootMargin=this._rootMarginValues.map(function(Vt){return Vt.value+Vt.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}ft.prototype.THROTTLE_TIMEOUT=100,ft.prototype.POLL_INTERVAL=null,ft.prototype.USE_MUTATION_OBSERVER=!0,ft._setupCrossOriginUpdater=function(){return st||(st=function(Ft,Ht){!Ft||!Ht?ct=Rt():ct=At(Ft,Ht),rt.forEach(function(Wt){Wt._checkForIntersections()})}),st},ft._resetCrossOriginUpdater=function(){st=null,ct=null},ft.prototype.observe=function(Ft){var Ht=this._observationTargets.some(function(Wt){return Wt.element==Ft});if(!Ht){if(!(Ft&&Ft.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:Ft,entry:null}),this._monitorIntersections(Ft.ownerDocument),this._checkForIntersections()}},ft.prototype.unobserve=function(Ft){this._observationTargets=this._observationTargets.filter(function(Ht){return Ht.element!=Ft}),this._unmonitorIntersections(Ft.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},ft.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},ft.prototype.takeRecords=function(){var Ft=this._queuedEntries.slice();return this._queuedEntries=[],Ft},ft.prototype._initThresholds=function(Ft){var Ht=Ft||[0];return Array.isArray(Ht)||(Ht=[Ht]),Ht.sort().filter(function(Wt,Vt,qt){if(typeof Wt!="number"||isNaN(Wt)||Wt<0||Wt>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return Wt!==qt[Vt-1]})},ft.prototype._parseRootMargin=function(Ft){var Ht=Ft||"0px",Wt=Ht.split(/\s+/).map(function(Vt){var qt=/^(-?\d*\.?\d+)(px|%)$/.exec(Vt);if(!qt)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(qt[1]),unit:qt[2]}});return Wt[1]=Wt[1]||Wt[0],Wt[2]=Wt[2]||Wt[0],Wt[3]=Wt[3]||Wt[1],Wt},ft.prototype._monitorIntersections=function(Ft){var Ht=Ft.defaultView;if(Ht&&this._monitoringDocuments.indexOf(Ft)==-1){var Wt=this._checkForIntersections,Vt=null,qt=null;this.POLL_INTERVAL?Vt=Ht.setInterval(Wt,this.POLL_INTERVAL):($t(Ht,"resize",Wt,!0),$t(Ft,"scroll",Wt,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in Ht&&(qt=new Ht.MutationObserver(Wt),qt.observe(Ft,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(Ft),this._monitoringUnsubscribes.push(function(){var Zt=Ft.defaultView;Zt&&(Vt&&Zt.clearInterval(Vt),_t(Zt,"resize",Wt,!0)),_t(Ft,"scroll",Wt,!0),qt&&qt.disconnect()});var Xt=this.root&&(this.root.ownerDocument||this.root)||et;if(Ft!=Xt){var Gt=_e(Ft);Gt&&this._monitorIntersections(Gt.ownerDocument)}}},ft.prototype._unmonitorIntersections=function(Ft){var Ht=this._monitoringDocuments.indexOf(Ft);if(Ht!=-1){var Wt=this.root&&(this.root.ownerDocument||this.root)||et,Vt=this._observationTargets.some(function(Gt){var Zt=Gt.element.ownerDocument;if(Zt==Ft)return!0;for(;Zt&&Zt!=Wt;){var er=_e(Zt);if(Zt=er&&er.ownerDocument,Zt==Ft)return!0}return!1});if(!Vt){var qt=this._monitoringUnsubscribes[Ht];if(this._monitoringDocuments.splice(Ht,1),this._monitoringUnsubscribes.splice(Ht,1),qt(),Ft!=Wt){var Xt=_e(Ft);Xt&&this._unmonitorIntersections(Xt.ownerDocument)}}}},ft.prototype._unmonitorAllIntersections=function(){var Ft=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var Ht=0;Ht=0&&Zt>=0&&{top:Wt,bottom:Vt,left:qt,right:Xt,width:Gt,height:Zt}||null}function Tt(Ft){var Ht;try{Ht=Ft.getBoundingClientRect()}catch{}return Ht?(Ht.width&&Ht.height||(Ht={top:Ht.top,right:Ht.right,bottom:Ht.bottom,left:Ht.left,width:Ht.right-Ht.left,height:Ht.bottom-Ht.top}),Ht):Rt()}function Rt(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function It(Ft){return!Ft||"x"in Ft?Ft:{top:Ft.top,y:Ft.top,bottom:Ft.bottom,left:Ft.left,x:Ft.left,right:Ft.right,width:Ft.width,height:Ft.height}}function At(Ft,Ht){var Wt=Ht.top-Ft.top,Vt=Ht.left-Ft.left;return{top:Wt,left:Vt,height:Ht.height,width:Ht.width,bottom:Wt+Ht.height,right:Vt+Ht.width}}function jt(Ft,Ht){for(var Wt=Ht;Wt;){if(Wt==Ft)return!0;Wt=Nt(Wt)}return!1}function Nt(Ft){var Ht=Ft.parentNode;return Ft.nodeType==9&&Ft!=et?_e(Ft):(Ht&&Ht.assignedSlot&&(Ht=Ht.assignedSlot.parentNode),Ht&&Ht.nodeType==11&&Ht.host?Ht.host:Ht)}function kt(Ft){return Ft&&Ft.nodeType===9}window.IntersectionObserver=ft,window.IntersectionObserverEntry=ut})();function r$2(_e){var et,rt,st="";if(typeof _e=="string"||typeof _e=="number")st+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(rt=r$2(_e[et]))&&(st&&(st+=" "),st+=rt);else for(et in _e)_e[et]&&(st&&(st+=" "),st+=et);return st}function clsx$1(){for(var _e,et,rt=0,st="";rt1?rt-1:0),ct=1;ct2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf$1&&setPrototypeOf$1(_e,null);let st=et.length;for(;st--;){let ct=et[st];if(typeof ct=="string"){const ut=rt(ct);ut!==ct&&(isFrozen(et)||(et[st]=ut),ct=ut)}_e[ct]=!0}return _e}function cleanArray(_e){for(let et=0;et<_e.length;et++)objectHasOwnProperty(_e,et)||(_e[et]=null);return _e}function clone$2(_e){const et=create$2(null);for(const[rt,st]of entries(_e))objectHasOwnProperty(_e,rt)&&(Array.isArray(st)?et[rt]=cleanArray(st):st&&typeof st=="object"&&st.constructor===Object?et[rt]=clone$2(st):et[rt]=st);return et}function lookupGetter(_e,et){for(;_e!==null;){const st=getOwnPropertyDescriptor(_e,et);if(st){if(st.get)return unapply(st.get);if(typeof st.value=="function")return unapply(st.value)}_e=getPrototypeOf$1(_e)}function rt(){return null}return rt}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text$1=freeze(["#text"]),html$2=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml$2=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(et,rt){if(typeof et!="object"||typeof et.createPolicy!="function")return null;let st=null;const ct="data-tt-policy-suffix";rt&&rt.hasAttribute(ct)&&(st=rt.getAttribute(ct));const ut="dompurify"+(st?"#"+st:"");try{return et.createPolicy(ut,{createHTML(ft){return ft},createScriptURL(ft){return ft}})}catch{return console.warn("TrustedTypes policy "+ut+" could not be created."),null}};function createDOMPurify(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const et=wn=>createDOMPurify(wn);if(et.version="3.0.9",et.removed=[],!_e||!_e.document||_e.document.nodeType!==9)return et.isSupported=!1,et;let{document:rt}=_e;const st=rt,ct=st.currentScript,{DocumentFragment:ut,HTMLTemplateElement:ft,Node:gt,Element:xt,NodeFilter:$t,NamedNodeMap:_t=_e.NamedNodeMap||_e.MozNamedAttrMap,HTMLFormElement:wt,DOMParser:Tt,trustedTypes:Rt}=_e,It=xt.prototype,At=lookupGetter(It,"cloneNode"),jt=lookupGetter(It,"nextSibling"),Nt=lookupGetter(It,"childNodes"),kt=lookupGetter(It,"parentNode");if(typeof ft=="function"){const wn=rt.createElement("template");wn.content&&wn.content.ownerDocument&&(rt=wn.content.ownerDocument)}let Ft,Ht="";const{implementation:Wt,createNodeIterator:Vt,createDocumentFragment:qt,getElementsByTagName:Xt}=rt,{importNode:Gt}=st;let Zt={};et.isSupported=typeof entries=="function"&&typeof kt=="function"&&Wt&&Wt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:er,ERB_EXPR:lr,TMPLIT_EXPR:cr,DATA_ATTR:ur,ARIA_ATTR:fr,IS_SCRIPT_OR_DATA:hr,ATTR_WHITESPACE:pr}=EXPRESSIONS;let{IS_ALLOWED_URI:dr}=EXPRESSIONS,yr=null;const Sr=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text$1]);let br=null;const mr=addToSet({},[...html$2,...svg,...mathMl,...xml$2]);let Er=Object.seal(create$2(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}})),Tr=null,Mr=null,Or=!0,wr=!0,Cr=!1,Nr=!0,Rr=!1,Pr=!1,jr=!1,kr=!1,Fr=!1,_r=!1,Br=!1,Dr=!0,Xr=!1;const Kr="user-content-";let Hr=!0,Vr=!1,ln={},Qr=null;const Zr=addToSet({},["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 vn=null;const vr=addToSet({},["audio","video","img","source","image","track"]);let gr=null;const $r=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),zr="http://www.w3.org/1998/Math/MathML",qr="http://www.w3.org/2000/svg",Wr="http://www.w3.org/1999/xhtml";let Gr=Wr,dn=!1,mn=null;const hn=addToSet({},[zr,qr,Wr],stringToString);let Cn=null;const Rn=["application/xhtml+xml","text/html"],kn="text/html";let Bn=null,Yn=null;const Gn=rt.createElement("form"),io=function(cn){return cn instanceof RegExp||cn instanceof Function},pn=function(){let cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Yn&&Yn===cn)){if((!cn||typeof cn!="object")&&(cn={}),cn=clone$2(cn),Cn=Rn.indexOf(cn.PARSER_MEDIA_TYPE)===-1?kn:cn.PARSER_MEDIA_TYPE,Bn=Cn==="application/xhtml+xml"?stringToString:stringToLowerCase,yr=objectHasOwnProperty(cn,"ALLOWED_TAGS")?addToSet({},cn.ALLOWED_TAGS,Bn):Sr,br=objectHasOwnProperty(cn,"ALLOWED_ATTR")?addToSet({},cn.ALLOWED_ATTR,Bn):mr,mn=objectHasOwnProperty(cn,"ALLOWED_NAMESPACES")?addToSet({},cn.ALLOWED_NAMESPACES,stringToString):hn,gr=objectHasOwnProperty(cn,"ADD_URI_SAFE_ATTR")?addToSet(clone$2($r),cn.ADD_URI_SAFE_ATTR,Bn):$r,vn=objectHasOwnProperty(cn,"ADD_DATA_URI_TAGS")?addToSet(clone$2(vr),cn.ADD_DATA_URI_TAGS,Bn):vr,Qr=objectHasOwnProperty(cn,"FORBID_CONTENTS")?addToSet({},cn.FORBID_CONTENTS,Bn):Zr,Tr=objectHasOwnProperty(cn,"FORBID_TAGS")?addToSet({},cn.FORBID_TAGS,Bn):{},Mr=objectHasOwnProperty(cn,"FORBID_ATTR")?addToSet({},cn.FORBID_ATTR,Bn):{},ln=objectHasOwnProperty(cn,"USE_PROFILES")?cn.USE_PROFILES:!1,Or=cn.ALLOW_ARIA_ATTR!==!1,wr=cn.ALLOW_DATA_ATTR!==!1,Cr=cn.ALLOW_UNKNOWN_PROTOCOLS||!1,Nr=cn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Rr=cn.SAFE_FOR_TEMPLATES||!1,Pr=cn.WHOLE_DOCUMENT||!1,Fr=cn.RETURN_DOM||!1,_r=cn.RETURN_DOM_FRAGMENT||!1,Br=cn.RETURN_TRUSTED_TYPE||!1,kr=cn.FORCE_BODY||!1,Dr=cn.SANITIZE_DOM!==!1,Xr=cn.SANITIZE_NAMED_PROPS||!1,Hr=cn.KEEP_CONTENT!==!1,Vr=cn.IN_PLACE||!1,dr=cn.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Gr=cn.NAMESPACE||Wr,Er=cn.CUSTOM_ELEMENT_HANDLING||{},cn.CUSTOM_ELEMENT_HANDLING&&io(cn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Er.tagNameCheck=cn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),cn.CUSTOM_ELEMENT_HANDLING&&io(cn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Er.attributeNameCheck=cn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),cn.CUSTOM_ELEMENT_HANDLING&&typeof cn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Er.allowCustomizedBuiltInElements=cn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Rr&&(wr=!1),_r&&(Fr=!0),ln&&(yr=addToSet({},text$1),br=[],ln.html===!0&&(addToSet(yr,html$1),addToSet(br,html$2)),ln.svg===!0&&(addToSet(yr,svg$1),addToSet(br,svg),addToSet(br,xml$2)),ln.svgFilters===!0&&(addToSet(yr,svgFilters),addToSet(br,svg),addToSet(br,xml$2)),ln.mathMl===!0&&(addToSet(yr,mathMl$1),addToSet(br,mathMl),addToSet(br,xml$2))),cn.ADD_TAGS&&(yr===Sr&&(yr=clone$2(yr)),addToSet(yr,cn.ADD_TAGS,Bn)),cn.ADD_ATTR&&(br===mr&&(br=clone$2(br)),addToSet(br,cn.ADD_ATTR,Bn)),cn.ADD_URI_SAFE_ATTR&&addToSet(gr,cn.ADD_URI_SAFE_ATTR,Bn),cn.FORBID_CONTENTS&&(Qr===Zr&&(Qr=clone$2(Qr)),addToSet(Qr,cn.FORBID_CONTENTS,Bn)),Hr&&(yr["#text"]=!0),Pr&&addToSet(yr,["html","head","body"]),yr.table&&(addToSet(yr,["tbody"]),delete Tr.tbody),cn.TRUSTED_TYPES_POLICY){if(typeof cn.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof cn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ft=cn.TRUSTED_TYPES_POLICY,Ht=Ft.createHTML("")}else Ft===void 0&&(Ft=_createTrustedTypesPolicy(Rt,ct)),Ft!==null&&typeof Ht=="string"&&(Ht=Ft.createHTML(""));freeze&&freeze(cn),Yn=cn}},gn=addToSet({},["mi","mo","mn","ms","mtext"]),yn=addToSet({},["foreignobject","desc","title","annotation-xml"]),_n=addToSet({},["title","style","font","a","script"]),Tn=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Nn=addToSet({},[...mathMl$1,...mathMlDisallowed]),On=function(cn){let Pn=kt(cn);(!Pn||!Pn.tagName)&&(Pn={namespaceURI:Gr,tagName:"template"});const An=stringToLowerCase(cn.tagName),Xn=stringToLowerCase(Pn.tagName);return mn[cn.namespaceURI]?cn.namespaceURI===qr?Pn.namespaceURI===Wr?An==="svg":Pn.namespaceURI===zr?An==="svg"&&(Xn==="annotation-xml"||gn[Xn]):!!Tn[An]:cn.namespaceURI===zr?Pn.namespaceURI===Wr?An==="math":Pn.namespaceURI===qr?An==="math"&&yn[Xn]:!!Nn[An]:cn.namespaceURI===Wr?Pn.namespaceURI===qr&&!yn[Xn]||Pn.namespaceURI===zr&&!gn[Xn]?!1:!Nn[An]&&(_n[An]||!Tn[An]):!!(Cn==="application/xhtml+xml"&&mn[cn.namespaceURI]):!1},$n=function(cn){arrayPush(et.removed,{element:cn});try{cn.parentNode.removeChild(cn)}catch{cn.remove()}},Sn=function(cn,Pn){try{arrayPush(et.removed,{attribute:Pn.getAttributeNode(cn),from:Pn})}catch{arrayPush(et.removed,{attribute:null,from:Pn})}if(Pn.removeAttribute(cn),cn==="is"&&!br[cn])if(Fr||_r)try{$n(Pn)}catch{}else try{Pn.setAttribute(cn,"")}catch{}},xn=function(cn){let Pn=null,An=null;if(kr)cn=""+cn;else{const ro=stringMatch(cn,/^[\r\n\t ]+/);An=ro&&ro[0]}Cn==="application/xhtml+xml"&&Gr===Wr&&(cn=''+cn+"");const Xn=Ft?Ft.createHTML(cn):cn;if(Gr===Wr)try{Pn=new Tt().parseFromString(Xn,Cn)}catch{}if(!Pn||!Pn.documentElement){Pn=Wt.createDocument(Gr,"template",null);try{Pn.documentElement.innerHTML=dn?Ht:Xn}catch{}}const eo=Pn.body||Pn.documentElement;return cn&&An&&eo.insertBefore(rt.createTextNode(An),eo.childNodes[0]||null),Gr===Wr?Xt.call(Pn,Pr?"html":"body")[0]:Pr?Pn.documentElement:eo},In=function(cn){return Vt.call(cn.ownerDocument||cn,cn,$t.SHOW_ELEMENT|$t.SHOW_COMMENT|$t.SHOW_TEXT,null)},jn=function(cn){return cn instanceof wt&&(typeof cn.nodeName!="string"||typeof cn.textContent!="string"||typeof cn.removeChild!="function"||!(cn.attributes instanceof _t)||typeof cn.removeAttribute!="function"||typeof cn.setAttribute!="function"||typeof cn.namespaceURI!="string"||typeof cn.insertBefore!="function"||typeof cn.hasChildNodes!="function")},Hn=function(cn){return typeof gt=="function"&&cn instanceof gt},qn=function(cn,Pn,An){Zt[cn]&&arrayForEach(Zt[cn],Xn=>{Xn.call(et,Pn,An,Yn)})},Jn=function(cn){let Pn=null;if(qn("beforeSanitizeElements",cn,null),jn(cn))return $n(cn),!0;const An=Bn(cn.nodeName);if(qn("uponSanitizeElement",cn,{tagName:An,allowedTags:yr}),cn.hasChildNodes()&&!Hn(cn.firstElementChild)&®ExpTest(/<[/\w]/g,cn.innerHTML)&®ExpTest(/<[/\w]/g,cn.textContent))return $n(cn),!0;if(!yr[An]||Tr[An]){if(!Tr[An]&&Vn(An)&&(Er.tagNameCheck instanceof RegExp&®ExpTest(Er.tagNameCheck,An)||Er.tagNameCheck instanceof Function&&Er.tagNameCheck(An)))return!1;if(Hr&&!Qr[An]){const Xn=kt(cn)||cn.parentNode,eo=Nt(cn)||cn.childNodes;if(eo&&Xn){const ro=eo.length;for(let Kn=ro-1;Kn>=0;--Kn)Xn.insertBefore(At(eo[Kn],!0),jt(cn))}}return $n(cn),!0}return cn instanceof xt&&!On(cn)||(An==="noscript"||An==="noembed"||An==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,cn.innerHTML)?($n(cn),!0):(Rr&&cn.nodeType===3&&(Pn=cn.textContent,arrayForEach([er,lr,cr],Xn=>{Pn=stringReplace(Pn,Xn," ")}),cn.textContent!==Pn&&(arrayPush(et.removed,{element:cn.cloneNode()}),cn.textContent=Pn)),qn("afterSanitizeElements",cn,null),!1)},ao=function(cn,Pn,An){if(Dr&&(Pn==="id"||Pn==="name")&&(An in rt||An in Gn))return!1;if(!(wr&&!Mr[Pn]&®ExpTest(ur,Pn))){if(!(Or&®ExpTest(fr,Pn))){if(!br[Pn]||Mr[Pn]){if(!(Vn(cn)&&(Er.tagNameCheck instanceof RegExp&®ExpTest(Er.tagNameCheck,cn)||Er.tagNameCheck instanceof Function&&Er.tagNameCheck(cn))&&(Er.attributeNameCheck instanceof RegExp&®ExpTest(Er.attributeNameCheck,Pn)||Er.attributeNameCheck instanceof Function&&Er.attributeNameCheck(Pn))||Pn==="is"&&Er.allowCustomizedBuiltInElements&&(Er.tagNameCheck instanceof RegExp&®ExpTest(Er.tagNameCheck,An)||Er.tagNameCheck instanceof Function&&Er.tagNameCheck(An))))return!1}else if(!gr[Pn]){if(!regExpTest(dr,stringReplace(An,pr,""))){if(!((Pn==="src"||Pn==="xlink:href"||Pn==="href")&&cn!=="script"&&stringIndexOf(An,"data:")===0&&vn[cn])){if(!(Cr&&!regExpTest(hr,stringReplace(An,pr,"")))){if(An)return!1}}}}}}return!0},Vn=function(cn){return cn!=="annotation-xml"&&cn.indexOf("-")>0},Wn=function(cn){qn("beforeSanitizeAttributes",cn,null);const{attributes:Pn}=cn;if(!Pn)return;const An={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:br};let Xn=Pn.length;for(;Xn--;){const eo=Pn[Xn],{name:ro,namespaceURI:Kn,value:co}=eo,uo=Bn(ro);let vo=ro==="value"?co:stringTrim(co);if(An.attrName=uo,An.attrValue=vo,An.keepAttr=!0,An.forceKeepAttr=void 0,qn("uponSanitizeAttribute",cn,An),vo=An.attrValue,An.forceKeepAttr||(Sn(ro,cn),!An.keepAttr))continue;if(!Nr&®ExpTest(/\/>/i,vo)){Sn(ro,cn);continue}Rr&&arrayForEach([er,lr,cr],Ho=>{vo=stringReplace(vo,Ho," ")});const Bo=Bn(cn.nodeName);if(ao(Bo,uo,vo)){if(Xr&&(uo==="id"||uo==="name")&&(Sn(ro,cn),vo=Kr+vo),Ft&&typeof Rt=="object"&&typeof Rt.getAttributeType=="function"&&!Kn)switch(Rt.getAttributeType(Bo,uo)){case"TrustedHTML":{vo=Ft.createHTML(vo);break}case"TrustedScriptURL":{vo=Ft.createScriptURL(vo);break}}try{Kn?cn.setAttributeNS(Kn,ro,vo):cn.setAttribute(ro,vo),arrayPop(et.removed)}catch{}}}qn("afterSanitizeAttributes",cn,null)},zn=function wn(cn){let Pn=null;const An=In(cn);for(qn("beforeSanitizeShadowDOM",cn,null);Pn=An.nextNode();)qn("uponSanitizeShadowNode",Pn,null),!Jn(Pn)&&(Pn.content instanceof ut&&wn(Pn.content),Wn(Pn));qn("afterSanitizeShadowDOM",cn,null)};return et.sanitize=function(wn){let cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pn=null,An=null,Xn=null,eo=null;if(dn=!wn,dn&&(wn=""),typeof wn!="string"&&!Hn(wn))if(typeof wn.toString=="function"){if(wn=wn.toString(),typeof wn!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!et.isSupported)return wn;if(jr||pn(cn),et.removed=[],typeof wn=="string"&&(Vr=!1),Vr){if(wn.nodeName){const co=Bn(wn.nodeName);if(!yr[co]||Tr[co])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(wn instanceof gt)Pn=xn(""),An=Pn.ownerDocument.importNode(wn,!0),An.nodeType===1&&An.nodeName==="BODY"||An.nodeName==="HTML"?Pn=An:Pn.appendChild(An);else{if(!Fr&&!Rr&&!Pr&&wn.indexOf("<")===-1)return Ft&&Br?Ft.createHTML(wn):wn;if(Pn=xn(wn),!Pn)return Fr?null:Br?Ht:""}Pn&&kr&&$n(Pn.firstChild);const ro=In(Vr?wn:Pn);for(;Xn=ro.nextNode();)Jn(Xn)||(Xn.content instanceof ut&&zn(Xn.content),Wn(Xn));if(Vr)return wn;if(Fr){if(_r)for(eo=qt.call(Pn.ownerDocument);Pn.firstChild;)eo.appendChild(Pn.firstChild);else eo=Pn;return(br.shadowroot||br.shadowrootmode)&&(eo=Gt.call(st,eo,!0)),eo}let Kn=Pr?Pn.outerHTML:Pn.innerHTML;return Pr&&yr["!doctype"]&&Pn.ownerDocument&&Pn.ownerDocument.doctype&&Pn.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Pn.ownerDocument.doctype.name)&&(Kn=" +`+Kn),Rr&&arrayForEach([er,lr,cr],co=>{Kn=stringReplace(Kn,co," ")}),Ft&&Br?Ft.createHTML(Kn):Kn},et.setConfig=function(){let wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pn(wn),jr=!0},et.clearConfig=function(){Yn=null,jr=!1},et.isValidAttribute=function(wn,cn,Pn){Yn||pn({});const An=Bn(wn),Xn=Bn(cn);return ao(An,Xn,Pn)},et.addHook=function(wn,cn){typeof cn=="function"&&(Zt[wn]=Zt[wn]||[],arrayPush(Zt[wn],cn))},et.removeHook=function(wn){if(Zt[wn])return arrayPop(Zt[wn])},et.removeHooks=function(wn){Zt[wn]&&(Zt[wn]=[])},et.removeAllHooks=function(){Zt={}},et}var purify=createDOMPurify();function useClickOutside(_e,et="click"){const rt=reactExports.useRef();return reactExports.useEffect(()=>{const st=ct=>{const ut=rt.current;!ut||ut.contains(ct.target)||_e&&_e(ct)};return document.addEventListener(et,st),()=>{document.removeEventListener(et,st)}},[et,_e]),rt}function useForwardRef(_e){const et=reactExports.useRef(null);return reactExports.useEffect(()=>{_e&&(typeof _e=="function"?_e(et.current):_e.current=et.current)},[_e]),et}function useLatest(_e){const et=reactExports.useRef(_e);return et.current=_e,et}function getRandomString(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)}function reflow(_e){return _e.offsetHeight}const TIME_GAP=5*60*1e3;let lastTs=0;const makeMsg=(_e,et)=>{const rt=_e.createdAt||Date.now(),st=_e.hasTime||rt-lastTs>TIME_GAP;return st&&(lastTs=rt),{..._e,_id:_e._id||et||getRandomString(),createdAt:rt,position:_e.position||"left",hasTime:st}};function useMessages(_e=[]){const et=reactExports.useMemo(()=>_e.map($t=>makeMsg($t)),[_e]),[rt,st]=reactExports.useState(et),ct=reactExports.useCallback($t=>{st(_t=>[...$t,..._t])},[]),ut=reactExports.useCallback(($t,_t)=>{st(wt=>wt.map(Tt=>Tt._id===$t?makeMsg(_t,$t):Tt))},[]),ft=reactExports.useCallback($t=>{const _t=makeMsg($t);st(wt=>[...wt,_t])},[]),gt=reactExports.useCallback($t=>{st(_t=>_t.filter(wt=>wt._id!==$t))},[]),xt=reactExports.useCallback(($t=[])=>{st($t)},[]);return{messages:rt,prependMsgs:ct,appendMsg:ft,updateMsg:ut,deleteMsg:gt,resetList:xt}}function useMount({active:_e=!1,ref:et,delay:rt=300}){const[st,ct]=reactExports.useState(!1),[ut,ft]=reactExports.useState(!1),gt=reactExports.useRef(),xt=()=>{gt.current&&clearTimeout(gt.current)};return reactExports.useEffect(()=>(_e?(xt(),ft(_e)):(ct(_e),gt.current=setTimeout(()=>{ft(_e)},rt)),xt),[_e,rt]),reactExports.useEffect(()=>{et.current&&reflow(et.current),ct(ut)},[ut,et]),{didMount:ut,isShow:st}}class ErrorBoundary extends React$1.Component{constructor(et){super(et),this.state={error:null,errorInfo:null}}componentDidCatch(et,rt){const{onError:st}=this.props;st&&st(et,rt),this.setState({error:et,errorInfo:rt})}render(){const{FallbackComponent:et,children:rt,...st}=this.props,{error:ct,errorInfo:ut}=this.state;return ut?et?jsxRuntimeExports.jsx(et,{error:ct,errorInfo:ut,...st}):null:rt}}React$1.createContext({addComponent:()=>{},hasComponent:()=>!1,getComponent:()=>null});const Avatar=_e=>{const{className:et,src:rt,alt:st,url:ct,size:ut="md",shape:ft="circle",children:gt}=_e,xt=ct?"a":"span";return jsxRuntimeExports.jsx(xt,{className:clsx$1("Avatar",`Avatar--${ut}`,`Avatar--${ft}`,et),href:ct,children:rt?jsxRuntimeExports.jsx("img",{src:rt,alt:st}):gt})},Backdrop=_e=>{const{className:et,active:rt,onClick:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Backdrop",et,{active:rt}),onClick:st,role:"button",tabIndex:-1,"aria-hidden":!0,...ct})},Bubble=React$1.forwardRef((_e,et)=>{const{type:rt="text",content:st,children:ct,...ut}=_e;return jsxRuntimeExports.jsxs("div",{className:`Bubble ${rt}`,"data-type":rt,ref:et,...ut,children:[st&&jsxRuntimeExports.jsx("p",{children:st}),ct]})}),Icon=React$1.forwardRef((_e,et)=>{const{type:rt,className:st,spin:ct,name:ut,...ft}=_e,gt=typeof ut=="string"?{"aria-label":ut}:{"aria-hidden":!0};return jsxRuntimeExports.jsx("svg",{className:clsx$1("Icon",{"is-spin":ct},st),ref:et,...gt,...ft,children:jsxRuntimeExports.jsx("use",{xlinkHref:`#icon-${rt}`})})});function composeClass(_e){return _e&&`Btn--${_e}`}const Button=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,color:ct,variant:ut,size:ft,icon:gt,loading:xt,block:$t,disabled:_t,children:wt,onClick:Tt,...Rt}=_e,It=gt||xt&&"spinner",At=ft||($t?"lg":"");function jt(Nt){!_t&&!xt&&Tt&&Tt(Nt)}return jsxRuntimeExports.jsxs("button",{className:clsx$1("Btn",composeClass(ct),composeClass(ut),composeClass(At),{"Btn--block":$t},rt),type:"button",disabled:_t,onClick:jt,ref:et,...Rt,children:[It&&jsxRuntimeExports.jsx("span",{className:"Btn-icon",children:jsxRuntimeExports.jsx(Icon,{type:It,spin:xt})}),st||wt]})}),arEG={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:"يبحث"}},enUS={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"}},frFR={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"}},zhCN={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:"搜索"}},defaultLocales={"ar-EG":arEG,"fr-FR":frFR,"en-US":enUS,"zh-CN":zhCN},DEFAULT_LOCALE="en-US",ConfigContext=React$1.createContext({}),ConfigProvider=({locale:_e=DEFAULT_LOCALE,locales:et,elderMode:rt,children:st})=>jsxRuntimeExports.jsx(ConfigContext.Provider,{value:{locale:_e,locales:et,elderMode:rt},children:st}),useConfig$1=()=>reactExports.useContext(ConfigContext),useLocale$1=(_e,et)=>{const{locale:rt,locales:st}=reactExports.useContext(ConfigContext);let ut={...rt&&defaultLocales[rt]||defaultLocales[DEFAULT_LOCALE],...st};return!rt&&!st&&et?ut=et:_e&&(ut=ut[_e]||{}),{locale:rt,trans:ft=>ft?ut[ft]:ut}},Card=React$1.forwardRef((_e,et)=>{const{className:rt,size:st,fluid:ct,children:ut,...ft}=_e,gt=useConfig$1();return jsxRuntimeExports.jsx("div",{className:clsx$1("Card",st&&`Card--${st}`,{"Card--fluid":ct},rt),"data-fluid":ct,"data-elder-mode":gt.elderMode,...ft,ref:et,children:ut})}),mapDirection={row:"Flex--d-r","row-reverse":"Flex--d-rr",column:"Flex--d-c","column-reverse":"Flex--d-cr"},mapWrap={nowrap:"Flex--w-n",wrap:"Flex--w-w","wrap-reverse":"Flex--w-wr"},mapJustify={"flex-start":"Flex--jc-fs","flex-end":"Flex--jc-fe",center:"Flex--jc-c","space-between":"Flex--jc-sb","space-around":"Flex--jc-sa"},mapAlign={"flex-start":"Flex--ai-fs","flex-end":"Flex--ai-fe",center:"Flex--ai-c"},Flex=React$1.forwardRef((_e,et)=>{const{as:rt="div",className:st,inline:ct,center:ut,direction:ft,wrap:gt,justifyContent:xt,justify:$t=xt,alignItems:_t,align:wt=_t,children:Tt,...Rt}=_e;return jsxRuntimeExports.jsx(rt,{className:clsx$1("Flex",ft&&mapDirection[ft],$t&&mapJustify[$t],wt&&mapAlign[wt],gt&&mapWrap[gt],{"Flex--inline":ct,"Flex--center":ut},st),ref:et,...Rt,children:Tt})}),FlexItem=React$1.forwardRef((_e,et)=>{const{className:rt,flex:st,alignSelf:ct,order:ut,style:ft,children:gt,...xt}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("FlexItem",rt),style:{...ft,flex:st,alignSelf:ct,order:ut},ref:et,...xt,children:gt})});React$1.forwardRef((_e,et)=>{const{className:rt,aspectRatio:st="square",color:ct,image:ut,children:ft,...gt}=_e,xt={backgroundColor:ct||void 0,backgroundImage:typeof ut=="string"?`url('${ut}')`:void 0};return jsxRuntimeExports.jsx("div",{className:clsx$1("CardMedia",{"CardMedia--wide":st==="wide","CardMedia--square":st==="square"},rt),style:xt,...gt,ref:et,children:ft&&jsxRuntimeExports.jsx(Flex,{className:"CardMedia-content",direction:"column",center:!0,children:ft})})});React$1.forwardRef((_e,et)=>{const{className:rt,children:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardContent",rt),...ct,ref:et,children:st})});React$1.forwardRef((_e,et)=>{const{className:rt,title:st,subtitle:ct,center:ut,children:ft,...gt}=_e;return jsxRuntimeExports.jsxs("div",{className:clsx$1("CardTitle",{"CardTitle--center":ut},rt),...gt,ref:et,children:[st&&jsxRuntimeExports.jsx("h5",{className:"CardTitle-title",children:st}),ft&&typeof ft=="string"&&jsxRuntimeExports.jsx("h5",{className:"CardTitle-title",children:ft}),ct&&jsxRuntimeExports.jsx("p",{className:"CardTitle-subtitle",children:ct}),ft&&typeof ft!="string"&&ft]})});React$1.forwardRef((_e,et)=>{const{className:rt,children:st,...ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardText",rt),...ct,ref:et,children:typeof st=="string"?jsxRuntimeExports.jsx("p",{children:st}):st})});React$1.forwardRef((_e,et)=>{const{children:rt,className:st,direction:ct,...ut}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("CardActions",st,ct&&`CardActions--${ct}`),...ut,ref:et,children:rt})});const CarouselItem=_e=>{const{width:et,children:rt}=_e;return jsxRuntimeExports.jsx("div",{className:"Carousel-item",style:{width:et},children:rt})},setTransform=(_e,et)=>{_e.style.transform=et,_e.style.webkitTransform=et},setTransition=(_e,et)=>{_e.style.transition=et,_e.style.webkitTransition=et},testCache={passiveListener:()=>{let _e=!1;try{const et=Object.defineProperty({},"passive",{get(){_e=!0}});window.addEventListener("test",null,et)}catch{}return _e},smoothScroll:()=>"scrollBehavior"in document.documentElement.style,touch:()=>"ontouchstart"in window};function canUse(_e){return testCache[_e]()}const formElements=["TEXTAREA","OPTION","INPUT","SELECT"],canTouch$1=canUse("touch");React$1.forwardRef((_e,et)=>{const{className:rt,startIndex:st=0,draggable:ct=!0,duration:ut=300,easing:ft="ease",threshold:gt=20,clickDragThreshold:xt=10,loop:$t=!0,rtl:_t=!1,autoPlay:wt=_e.autoplay||!1,interval:Tt=_e.autoplaySpeed||4e3,dots:Rt=_e.indicators||!0,onChange:It,children:At}=_e,jt=React$1.Children.count(At),Nt=`${100/jt}%`,kt=reactExports.useRef(null),Ft=reactExports.useRef(null),Ht=reactExports.useRef(null),Wt=reactExports.useRef({first:!0,wrapWidth:0,hover:!1,startX:0,endX:0,startY:0,canMove:null,pressDown:!1}),Vt=reactExports.useCallback(Rr=>$t?Rr%jt:Math.max(0,Math.min(Rr,jt-1)),[jt,$t]),[qt,Xt]=reactExports.useState(Vt(st)),[Gt,Zt]=reactExports.useState(!1),er=reactExports.useCallback(()=>{setTransition(Ft.current,`transform ${ut}ms ${ft}`)},[ut,ft]),lr=()=>{setTransition(Ft.current,"transform 0s")},cr=Rr=>{setTransform(Ft.current,`translate3d(${Rr}px, 0, 0)`)},ur=reactExports.useCallback((Rr,Pr)=>{const jr=$t?Rr+1:Rr,kr=(_t?1:-1)*jr*Wt.current.wrapWidth;Pr?requestAnimationFrame(()=>{requestAnimationFrame(()=>{er(),cr(kr)})}):cr(kr)},[er,$t,_t]),fr=reactExports.useCallback(Rr=>{if(jt<=1)return;const Pr=Vt(Rr);Pr!==qt&&Xt(Pr)},[qt,jt,Vt]),hr=reactExports.useCallback(()=>{if(jt<=1)return;let Rr=qt-1;if($t){if(Rr<0){const Pr=Wt.current,jr=jt+1,kr=(_t?1:-1)*jr*Pr.wrapWidth,Fr=ct?Pr.endX-Pr.startX:0;lr(),cr(kr+Fr),Rr=jt-1}}else Rr=Math.max(Rr,0);Rr!==qt&&Xt(Rr)},[qt,jt,ct,$t,_t]),pr=reactExports.useCallback(()=>{if(jt<=1)return;let Rr=qt+1;if($t){if(Rr>jt-1){Rr=0;const jr=Wt.current,kr=ct?jr.endX-jr.startX:0;lr(),cr(kr)}}else Rr=Math.min(Rr,jt-1);Rr!==qt&&Xt(Rr)},[qt,jt,ct,$t]),dr=reactExports.useCallback(()=>{!wt||Wt.current.hover||(Ht.current=setTimeout(()=>{er(),pr()},Tt))},[wt,Tt,er,pr]),yr=()=>{clearTimeout(Ht.current)},Sr=()=>{ur(qt,!0),dr()},br=()=>{const Rr=Wt.current,Pr=(_t?-1:1)*(Rr.endX-Rr.startX),jr=Math.abs(Pr),kr=Pr>0&&qt-1<0,Fr=Pr<0&&qt+1>jt-1;kr||Fr?$t?kr?hr():pr():Sr():Pr>0&&jr>gt&&jt>1?hr():Pr<0&&jr>gt&&jt>1?pr():Sr()},mr=()=>{const Rr=Wt.current;Rr.startX=0,Rr.endX=0,Rr.startY=0,Rr.canMove=null,Rr.pressDown=!1},Er=Rr=>{if(formElements.includes(Rr.target.nodeName))return;Rr.preventDefault(),Rr.stopPropagation();const Pr="touches"in Rr?Rr.touches[0]:Rr,jr=Wt.current;jr.pressDown=!0,jr.startX=Pr.pageX,jr.startY=Pr.pageY,yr()},Tr=Rr=>{Rr.stopPropagation();const Pr="touches"in Rr?Rr.touches[0]:Rr,jr=Wt.current;if(jr.pressDown){if("touches"in Rr&&(jr.canMove===null&&(jr.canMove=Math.abs(jr.startY-Pr.pageY)xt&&Zt(!0);const Br=_t?Fr+_r:_r-Fr;cr(Br)}},Mr=Rr=>{Rr.stopPropagation();const Pr=Wt.current;Pr.pressDown=!1,Zt(!1),er(),Pr.endX?br():dr(),mr()},Or=()=>{Wt.current.hover=!0,yr()},wr=Rr=>{const Pr=Wt.current;Pr.hover=!1,Pr.pressDown&&(Pr.pressDown=!1,Pr.endX=Rr.pageX,er(),br(),mr()),dr()},Cr=Rr=>{const{slideTo:Pr}=Rr.currentTarget.dataset;if(Pr){const jr=parseInt(Pr,10);fr(jr)}Rr.preventDefault()};reactExports.useImperativeHandle(et,()=>({goTo:fr,prev:hr,next:pr,wrapperRef:kt}),[fr,hr,pr]),reactExports.useEffect(()=>{function Rr(){Wt.current.wrapWidth=kt.current.offsetWidth,ur(qt)}return Wt.current.first&&Rr(),window.addEventListener("resize",Rr),()=>{window.removeEventListener("resize",Rr)}},[qt,ur]),reactExports.useEffect(()=>{It&&!Wt.current.first&&It(qt)},[qt,It]),reactExports.useEffect(()=>{Wt.current.first?(ur(qt),Wt.current.first=!1):ur(qt,!0)},[qt,ur]),reactExports.useEffect(()=>(dr(),()=>{yr()}),[wt,qt,dr]);let Nr;return ct?Nr=canTouch$1?{onTouchStart:Er,onTouchMove:Tr,onTouchEnd:Mr}:{onMouseDown:Er,onMouseMove:Tr,onMouseUp:Mr,onMouseEnter:Or,onMouseLeave:wr}:Nr={onMouseEnter:Or,onMouseLeave:wr},jsxRuntimeExports.jsxs("div",{className:clsx$1("Carousel",{"Carousel--draggable":ct,"Carousel--rtl":_t,"Carousel--dragging":Gt},rt),ref:kt,...Nr,children:[jsxRuntimeExports.jsxs("div",{className:"Carousel-inner",style:{width:`${$t?jt+2:jt}00%`},ref:Ft,children:[$t&&jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:React$1.Children.toArray(At)[jt-1]}),React$1.Children.map(At,(Rr,Pr)=>jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:Rr},Pr)),$t&&jsxRuntimeExports.jsx(CarouselItem,{width:Nt,children:React$1.Children.toArray(At)[0]})]}),Rt&&jsxRuntimeExports.jsx("ol",{className:"Carousel-dots",children:React$1.Children.map(At,(Rr,Pr)=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx("button",{className:clsx$1("Carousel-dot",{active:qt===Pr}),type:"button","aria-label":`Go to slide ${Pr+1}`,"data-slide-to":Pr,onClick:Cr})},Pr))})]})});const Checkbox=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,checked:ct,disabled:ut,onChange:ft,...gt}=_e;return jsxRuntimeExports.jsxs("label",{className:clsx$1("Checkbox",rt,{"Checkbox--checked":ct,"Checkbox--disabled":ut}),ref:et,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"Checkbox-input",checked:ct,disabled:ut,onChange:ft,...gt}),jsxRuntimeExports.jsx("span",{className:"Checkbox-text",children:st})]})});React$1.forwardRef((_e,et)=>{const{className:rt,options:st,value:ct,name:ut,disabled:ft,block:gt,onChange:xt}=_e;function $t(_t,wt){const Tt=wt.target.checked?ct.concat(_t):ct.filter(Rt=>Rt!==_t);xt(Tt,wt)}return jsxRuntimeExports.jsx("div",{className:clsx$1("CheckboxGroup",{"CheckboxGroup--block":gt},rt),ref:et,children:st.map(_t=>jsxRuntimeExports.jsx(Checkbox,{label:_t.label||_t.value,value:_t.value,name:ut,checked:ct.includes(_t.value),disabled:"disabled"in _t?_t.disabled:ft,onChange:wt=>{$t(_t.value,wt)}},_t.value))})});const doc=document,html=doc.documentElement,ClickOutside=_e=>{const{children:et,onClick:rt,mouseEvent:st="mouseup",...ct}=_e,ut=reactExports.useRef(null);function ft(gt){ut.current&&html.contains(gt.target)&&!ut.current.contains(gt.target)&&rt(gt)}return reactExports.useEffect(()=>(st&&doc.addEventListener(st,ft),()=>{doc.removeEventListener(st,ft)})),jsxRuntimeExports.jsx("div",{ref:ut,...ct,children:et})},IMAGE_EMPTY="//gw.alicdn.com/tfs/TB1fnnLRkvoK1RjSZFDXXXY3pXa-300-250.svg",IMAGE_OOPS="//gw.alicdn.com/tfs/TB1lRjJRbvpK1RjSZPiXXbmwXXa-300-250.svg";React$1.forwardRef((_e,et)=>{const{className:rt,type:st,image:ct,tip:ut,children:ft}=_e,gt=ct||(st==="error"?IMAGE_OOPS:IMAGE_EMPTY);return jsxRuntimeExports.jsxs(Flex,{className:clsx$1("Empty",rt),direction:"column",center:!0,ref:et,children:[jsxRuntimeExports.jsx("img",{className:"Empty-img",src:gt,alt:ut}),ut&&jsxRuntimeExports.jsx("p",{className:"Empty-tip",children:ut}),ft]})});const ThemeContext=React$1.createContext("");React$1.forwardRef((_e,et)=>{const{children:rt,...st}=_e;return jsxRuntimeExports.jsx("label",{className:"Label",...st,ref:et,children:rt})});const IconButton=React$1.forwardRef((_e,et)=>{const{className:rt,icon:st,img:ct,...ut}=_e;return jsxRuntimeExports.jsxs(Button,{className:clsx$1("IconBtn",rt),ref:et,...ut,children:[st&&jsxRuntimeExports.jsx(Icon,{type:st}),!st&&ct&&jsxRuntimeExports.jsx("img",{src:ct,alt:""})]})});React$1.forwardRef((_e,et)=>{const{className:rt,src:st,lazy:ct,fluid:ut,children:ft,...gt}=_e,[xt,$t]=reactExports.useState(ct?void 0:st),_t=useForwardRef(et),wt=reactExports.useRef(""),Tt=reactExports.useRef(!1);return reactExports.useEffect(()=>{if(!ct)return;const Rt=new IntersectionObserver(([It])=>{It.isIntersecting&&($t(wt.current),Tt.current=!0,Rt.unobserve(It.target))});return _t.current&&Rt.observe(_t.current),()=>{Rt.disconnect()}},[_t,ct]),reactExports.useEffect(()=>{wt.current=st,(!ct||Tt.current)&&$t(st)},[ct,st]),jsxRuntimeExports.jsx("img",{className:clsx$1("Image",{"Image--fluid":ut},rt),src:xt,alt:"",ref:_t,...gt})});function getToBottom(_e){return _e.scrollHeight-_e.scrollTop-_e.offsetHeight}React$1.forwardRef((_e,et)=>{const{className:rt,disabled:st,distance:ct=0,children:ut,onLoadMore:ft,onScroll:gt,...xt}=_e,$t=useForwardRef(et);function _t(wt){gt&>(wt);const Tt=$t.current;if(!Tt)return;getToBottom(Tt)<=ct&&ft()}return jsxRuntimeExports.jsx("div",{className:clsx$1("InfiniteScroll",rt),role:"feed",onScroll:st?void 0:_t,ref:$t,...xt,children:ut})});function getCount(_e,et){return`${`${_e}`.length}${et?`/${et}`:""}`}const Input=React$1.forwardRef((_e,et)=>{const{className:rt,type:st="text",variant:ct,value:ut,placeholder:ft,rows:gt=1,minRows:xt=gt,maxRows:$t=5,maxLength:_t,showCount:wt=!!_t,multiline:Tt,autoSize:Rt,onChange:It,...At}=_e;let jt=gt;jt$t&&(jt=$t);const[Nt,kt]=reactExports.useState(jt),[Ft,Ht]=reactExports.useState(21),Wt=useForwardRef(et),Vt=reactExports.useContext(ThemeContext),qt=ct||(Vt==="light"?"flushed":"outline"),Gt=Tt||Rt||gt>1?"textarea":"input";reactExports.useEffect(()=>{if(!Wt.current)return;const cr=getComputedStyle(Wt.current,null).lineHeight,ur=Number(cr.replace("px",""));ur!==Ft&&Ht(ur)},[Wt,Ft]);const Zt=reactExports.useCallback(()=>{if(!Rt||!Wt.current)return;const cr=Wt.current,ur=cr.rows;cr.rows=xt,ft&&(cr.placeholder="");const fr=~~(cr.scrollHeight/Ft);fr===ur&&(cr.rows=fr),fr>=$t&&(cr.rows=$t,cr.scrollTop=cr.scrollHeight),kt(fr<$t?fr:$t),ft&&(cr.placeholder=ft)},[Rt,Wt,Ft,$t,xt,ft]);reactExports.useEffect(()=>{ut===""?kt(jt):Zt()},[jt,Zt,ut]);const er=reactExports.useCallback(cr=>{if(Zt(),It){const ur=cr.target.value,hr=_t&&ur.length>_t?ur.substr(0,_t):ur;It(hr,cr)}},[_t,It,Zt]),lr=jsxRuntimeExports.jsx(Gt,{className:clsx$1("Input",`Input--${qt}`,rt),type:st,value:ut,placeholder:ft,maxLength:_t,ref:Wt,rows:Nt,onChange:er,...At});return wt?jsxRuntimeExports.jsxs("div",{className:clsx$1("InputWrapper",{"has-counter":wt}),children:[lr,wt&&jsxRuntimeExports.jsx("div",{className:"Input-counter",children:getCount(ut,_t)})]}):lr});React$1.forwardRef((_e,et)=>{const{bordered:rt=!1,className:st,children:ct}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("List",{"List--bordered":rt},st),role:"list",ref:et,children:ct})});React$1.forwardRef((_e,et)=>{const{className:rt,as:st="div",content:ct,rightIcon:ut,children:ft,onClick:gt,...xt}=_e;return jsxRuntimeExports.jsxs(st,{className:clsx$1("ListItem",rt),onClick:gt,role:"listitem",...xt,ref:et,children:[jsxRuntimeExports.jsx("div",{className:"ListItem-content",children:ct||ft}),ut&&jsxRuntimeExports.jsx(Icon,{type:ut})]})});const SystemMessage=_e=>{const{className:et,content:rt,action:st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Message SystemMessage",et),children:jsxRuntimeExports.jsxs("div",{className:"SystemMessage-inner",children:[jsxRuntimeExports.jsx("span",{children:rt}),st&&jsxRuntimeExports.jsx("a",{href:"javascript:;",onClick:st.onClick,children:st.text})]})})},REGEX_FORMAT=/YYYY|M|D|dddd|HH|mm/g,MS_A_DAY=24*60*60*1e3,MS_A_WEEK=MS_A_DAY*7,parseDate=_e=>_e instanceof Date?_e:new Date(_e),getWeeHours=()=>new Date(new Date().setHours(0,0,0,0)),padStart=_e=>(_e<=9?"0":"")+_e,getFormat=_e=>{const et=getWeeHours().getTime()-_e.getTime();return et<0?"LT":etct[ut])}const Time=({date:_e})=>{const{trans:et}=useLocale$1("Time");return jsxRuntimeExports.jsx("time",{className:"Time",dateTime:new Date(_e).toJSON(),children:formatDate(_e,et())})};function Typing(){return jsxRuntimeExports.jsx(Bubble,{type:"typing",children:jsxRuntimeExports.jsxs("div",{className:"Typing","aria-busy":"true",children:[jsxRuntimeExports.jsx("div",{className:"Typing-dot"}),jsxRuntimeExports.jsx("div",{className:"Typing-dot"}),jsxRuntimeExports.jsx("div",{className:"Typing-dot"})]})})}const Message=_e=>{const{renderMessageContent:et=()=>null,...rt}=_e,{type:st,content:ct,user:ut={},_id:ft,position:gt="left",hasTime:xt=!0,createdAt:$t}=rt,{name:_t,avatar:wt}=ut;if(st==="system")return jsxRuntimeExports.jsx(SystemMessage,{content:ct.text,action:ct.action});const Tt=gt==="right"||gt==="left";return jsxRuntimeExports.jsxs("div",{className:clsx$1("Message",gt),"data-id":ft,"data-type":st,children:[xt&&$t&&jsxRuntimeExports.jsx("div",{className:"Message-meta",children:jsxRuntimeExports.jsx(Time,{date:$t})}),jsxRuntimeExports.jsxs("div",{className:"Message-main",children:[Tt&&wt&&jsxRuntimeExports.jsx(Avatar,{src:wt,alt:_t,url:ut.url}),jsxRuntimeExports.jsxs("div",{className:"Message-inner",children:[Tt&&_t&&jsxRuntimeExports.jsx("div",{className:"Message-author",children:_t}),jsxRuntimeExports.jsx("div",{className:"Message-content",role:"alert","aria-live":"assertive","aria-atomic":"false",children:st==="typing"?jsxRuntimeExports.jsx(Typing,{}):et(rt)})]})]})]})},Message$1=React$1.memo(Message);let nextId$1=0;const getNextId=()=>nextId$1++;function useNextId(_e="id-"){return reactExports.useRef(`${_e}${getNextId()}`).current}const toggleClass=(_e,et,rt=document.body)=>{rt.classList[et?"add":"remove"](_e)};function clearModal(){!document.querySelector(".Modal")&&!document.querySelector(".Popup")&&toggleClass("S--modalOpen",!1)}const Base=React$1.forwardRef((_e,et)=>{const{baseClass:rt,active:st,className:ct,title:ut,showClose:ft=!0,autoFocus:gt=!0,backdrop:xt=!0,height:$t,overflow:_t,actions:wt,vertical:Tt=!0,btnVariant:Rt,bgColor:It,children:At,onBackdropClick:jt,onClose:Nt}=_e,kt=useNextId("modal-"),Ft=_e.titleId||kt,Ht=useConfig$1(),Wt=reactExports.useRef(null),{didMount:Vt,isShow:qt}=useMount({active:st,ref:Wt});if(reactExports.useEffect(()=>{setTimeout(()=>{gt&&Wt.current&&Wt.current.focus()})},[gt]),reactExports.useEffect(()=>{qt&&toggleClass("S--modalOpen",qt)},[qt]),reactExports.useEffect(()=>{!st&&!Vt&&clearModal()},[st,Vt]),reactExports.useImperativeHandle(et,()=>({wrapperRef:Wt})),reactExports.useEffect(()=>()=>{clearModal()},[]),!Vt)return null;const Xt=rt==="Popup";return reactDomExports.createPortal(jsxRuntimeExports.jsxs("div",{className:clsx$1(rt,ct,{active:qt}),tabIndex:-1,"data-elder-mode":Ht.elderMode,ref:Wt,children:[xt&&jsxRuntimeExports.jsx(Backdrop,{active:qt,onClick:xt===!0?jt||Nt:void 0}),jsxRuntimeExports.jsx("div",{className:clsx$1(`${rt}-dialog`,{"pb-safe":Xt&&!wt}),"data-bg-color":It,"data-height":Xt&&$t?$t:void 0,role:"dialog","aria-labelledby":Ft,"aria-modal":!0,children:jsxRuntimeExports.jsxs("div",{className:`${rt}-content`,children:[jsxRuntimeExports.jsxs("div",{className:`${rt}-header`,children:[jsxRuntimeExports.jsx("h5",{className:`${rt}-title`,id:Ft,children:ut}),ft&&Nt&&jsxRuntimeExports.jsx(IconButton,{className:`${rt}-close`,icon:"close",size:"lg",onClick:Nt,"aria-label":"关闭"})]}),jsxRuntimeExports.jsx("div",{className:clsx$1(`${rt}-body`,{overflow:_t}),children:At}),wt&&jsxRuntimeExports.jsx("div",{className:`${rt}-footer ${rt}-footer--${Tt?"v":"h"}`,"data-variant":Rt||"round",children:wt.map(Gt=>reactExports.createElement(Button,{size:"lg",block:Xt,variant:Rt,...Gt,key:Gt.label}))})]})})]}),document.body)}),Modal=React$1.forwardRef((_e,et)=>jsxRuntimeExports.jsx(Base,{baseClass:"Modal",btnVariant:_e.vertical===!1?void 0:"outline",ref:et,..._e})),isPrimary=_e=>_e.color==="primary";React$1.forwardRef((_e,et)=>{const{className:rt,vertical:st,actions:ct,...ut}=_e,{locale:ft=""}=useLocale$1(),gt=ft.includes("zh"),xt=st??!gt;return Array.isArray(ct)&&ct.sort(($t,_t)=>isPrimary($t)?xt?-1:1:isPrimary(_t)?xt?1:-1:0),jsxRuntimeExports.jsx(Base,{baseClass:"Modal",className:clsx$1("Confirm",rt),showClose:!1,btnVariant:"outline",vertical:xt,actions:ct,ref:et,...ut})});React$1.forwardRef((_e,et)=>jsxRuntimeExports.jsx(Base,{baseClass:"Popup",overflow:!0,ref:et,..._e}));const Navbar=React$1.forwardRef((_e,et)=>{const{className:rt,title:st,logo:ct,desc:ut,leftContent:ft,rightContent:gt=[],align:xt}=_e,$t=xt==="left",_t=$t?!0:!ct;return jsxRuntimeExports.jsxs("header",{className:clsx$1("Navbar",{"Navbar--left":$t},rt),ref:et,children:[jsxRuntimeExports.jsx("div",{className:"Navbar-left",children:ft&&jsxRuntimeExports.jsx(IconButton,{size:"lg",...ft})}),jsxRuntimeExports.jsxs("div",{className:"Navbar-main",children:[ct&&jsxRuntimeExports.jsx("img",{className:"Navbar-logo",src:ct,alt:st}),jsxRuntimeExports.jsxs("div",{className:"Navbar-inner",children:[_t&&jsxRuntimeExports.jsx("h2",{className:"Navbar-title",children:st}),jsxRuntimeExports.jsx("div",{className:"Navbar-desc",children:ut})]})]}),jsxRuntimeExports.jsx("div",{className:"Navbar-right",children:gt.map(wt=>jsxRuntimeExports.jsx(IconButton,{size:"lg",...wt},wt.icon))})]})}),Text=React$1.forwardRef((_e,et)=>{const{as:rt="div",className:st,align:ct,breakWord:ut,truncate:ft,children:gt,...xt}=_e,$t=Number.isInteger(ft),_t=clsx$1(ct&&`Text--${ct}`,{"Text--break":ut,"Text--truncate":ft===!0,"Text--ellipsis":$t},st),wt=$t?{WebkitLineClamp:ft}:null;return jsxRuntimeExports.jsx(rt,{className:_t,style:wt,...xt,ref:et,children:gt})}),canFormat="Intl"in window&&typeof Intl.NumberFormat.prototype.formatToParts=="function",Price=React$1.forwardRef((_e,et)=>{const{className:rt,price:st,currency:ct,locale:ut,original:ft,...gt}=_e;let xt=[];if(ut&&ct&&canFormat?xt=new Intl.NumberFormat(ut,{style:"currency",currency:ct}).formatToParts(st):xt=void 0,!xt){const $t=".",[_t,wt]=`${st}`.split($t);xt=[{type:"currency",value:ct},{type:"integer",value:_t},{type:"decimal",value:wt&&$t},{type:"fraction",value:wt}]}return jsxRuntimeExports.jsx("div",{className:clsx$1("Price",{"Price--original":ft},rt),ref:et,...gt,children:xt.map(($t,_t)=>$t.value?jsxRuntimeExports.jsx("span",{className:`Price-${$t.type}`,children:$t.value},_t):null)})});React$1.forwardRef((_e,et)=>{const{className:rt,value:st,status:ct,...ut}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Progress",ct&&`Progress--${ct}`,rt),ref:et,...ut,children:jsxRuntimeExports.jsx("div",{className:"Progress-bar",role:"progressbar",style:{width:`${st}%`},"aria-valuenow":st,"aria-valuemin":0,"aria-valuemax":100})})});const rAF=requestAnimationFrame;function smoothScroll({el:_e,to:et,duration:rt=300,x:st}){let ct=0;const ut=st?"scrollLeft":"scrollTop",ft=_e[ut],gt=Math.round(rt/16),xt=(et-ft)/gt;if(!rAF){_e[ut]=et;return}function $t(){_e[ut]+=xt,++ct{const{distance:rt=30,loadingDistance:st=30,maxDistance:ct,distanceRatio:ut=2,loadMoreText:ft="点击加载更多",children:gt,onScroll:xt,onRefresh:$t,renderIndicator:_t=yr=>yr==="active"||yr==="loading"?jsxRuntimeExports.jsx(Icon,{className:"PullToRefresh-spinner",type:"spinner",spin:!0}):null}=_e,wt=reactExports.useRef(null),Tt=reactExports.useRef(null),Rt=useLatest($t),[It,At]=reactExports.useState(0),[jt,Nt]=reactExports.useState("pending"),[kt,Ft]=reactExports.useState(!1),[Ht,Wt]=reactExports.useState(!_e.onRefresh),Vt=reactExports.useRef({}),qt=reactExports.useRef(jt),Xt=reactExports.useRef(),Gt=reactExports.useRef(),Zt=!canUse("touch");reactExports.useEffect(()=>{qt.current=jt},[jt]);const er=yr=>{const Sr=Tt.current;Sr&&setTransform(Sr,`translate3d(0px,${yr}px,0)`)},lr=({y:yr,animated:Sr=!0})=>{const br=wt.current;if(!br)return;const mr=yr==="100%"?br.scrollHeight-br.offsetHeight:yr;Sr?smoothScroll({el:br,to:mr,x:!1}):br.scrollTop=mr},cr=reactExports.useCallback(({animated:yr=!0}={})=>{lr({y:"100%",animated:yr})},[]),ur=reactExports.useCallback(()=>{At(0),Nt("pending"),er(0)},[]),fr=reactExports.useCallback(()=>{const yr=wt.current;if(!(!yr||!Rt.current)){Nt("loading");try{const Sr=yr.scrollHeight;Rt.current().then(br=>{const mr=()=>{lr({y:yr.scrollHeight-Sr-50,animated:!1})};clearTimeout(Xt.current),clearTimeout(Gt.current),mr(),Xt.current=setTimeout(mr,150),Gt.current=setTimeout(mr,250),ur(),br&&br.noMore&&Wt(!0)})}catch(Sr){console.error(Sr),ur()}}},[Rt,ur]),hr=()=>{Vt.current.startY=0},pr=reactExports.useCallback(yr=>{const Sr=yr.touches[0].clientY,br=wt.current.scrollTop<=0;br?Vt.current.startY||(Vt.current.startY=Sr,Nt("pull"),Ft(!1)):Vt.current.startY=0;const{startY:mr}=Vt.current;if(!br||Srct&&(Er=ct),Er>0&&(yr.cancelable&&yr.preventDefault(),yr.stopPropagation(),er(Er),At(Er),Nt(Er>=rt?"active":"pull"))},[ut,ct,rt]),dr=reactExports.useCallback(()=>{Ft(!0),Vt.current.startY&&qt.current==="active"?fr():ur()},[fr,ur]);return reactExports.useEffect(()=>{const yr=wt.current;!yr||Zt||(Ht?(yr.removeEventListener("touchstart",hr),yr.removeEventListener("touchmove",pr),yr.removeEventListener("touchend",dr),yr.removeEventListener("touchcancel",dr)):(yr.addEventListener("touchstart",hr,passiveOpts),yr.addEventListener("touchmove",pr,nonPassiveOpts),yr.addEventListener("touchend",dr),yr.addEventListener("touchcancel",dr)))},[Ht,dr,pr,Zt]),reactExports.useEffect(()=>{jt==="loading"&&!Zt&&er(st)},[st,jt,Zt]),reactExports.useImperativeHandle(et,()=>({scrollTo:lr,scrollToEnd:cr,wrapperRef:wt}),[cr]),jsxRuntimeExports.jsx("div",{className:"PullToRefresh",ref:wt,onScroll:xt,children:jsxRuntimeExports.jsx("div",{className:"PullToRefresh-inner",children:jsxRuntimeExports.jsxs("div",{className:clsx$1("PullToRefresh-content",{"PullToRefresh-transition":kt}),ref:Tt,children:[jsxRuntimeExports.jsx("div",{className:"PullToRefresh-indicator",children:_t(jt,It)}),!Ht&&Zt&&jsxRuntimeExports.jsxs(Flex,{className:"PullToRefresh-fallback",center:!0,children:[_t(jt,rt),jsxRuntimeExports.jsx(Button,{className:"PullToRefresh-loadMore",variant:"text",onClick:fr,children:ft})]}),React$1.Children.only(gt)]})})})}),observerOptions={threshold:[0,.1]},Item=_e=>{const{item:et,effect:rt,children:st,onIntersect:ct}=_e,ut=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!ct)return;const ft=new IntersectionObserver(([gt])=>{gt.intersectionRatio>0&&(ct(et,gt)||ft.unobserve(gt.target))},observerOptions);return ut.current&&ft.observe(ut.current),()=>{ft.disconnect()}},[et,ct]),jsxRuntimeExports.jsx("div",{className:clsx$1("ScrollView-item",{"slide-in-right-item":rt==="slide","A-fadeIn":rt==="fade"}),ref:ut,children:st})},hasControls=!canUse("touch"),ScrollView=React$1.forwardRef((_e,et)=>{const{className:rt,fullWidth:st,scrollX:ct=!0,effect:ut="slide",data:ft,itemKey:gt,renderItem:xt,onIntersect:$t,onScroll:_t,children:wt,...Tt}=_e,Rt=reactExports.useRef(null),It=reactExports.useRef(null);function At(){const kt=It.current;kt.scrollLeft-=kt.offsetWidth}function jt(){const kt=It.current;kt.scrollLeft+=kt.offsetWidth}const Nt=reactExports.useCallback((kt,Ft)=>{let Ht;return gt&&(Ht=typeof gt=="function"?gt(kt,Ft):kt[gt]),Ht||Ft},[gt]);return reactExports.useImperativeHandle(et,()=>({scrollTo:({x:kt,y:Ft})=>{kt!=null&&(It.current.scrollLeft=kt),Ft!=null&&(It.current.scrollTop=Ft)},wrapperRef:Rt})),jsxRuntimeExports.jsxs("div",{className:clsx$1("ScrollView",{"ScrollView--fullWidth":st,"ScrollView--x":ct,"ScrollView--hasControls":hasControls},rt),ref:Rt,...Tt,children:[hasControls&&jsxRuntimeExports.jsx(IconButton,{className:"ScrollView-control",icon:"chevron-left","aria-label":"Previous",onClick:At}),jsxRuntimeExports.jsx("div",{className:"ScrollView-scroller",ref:It,onScroll:_t,children:jsxRuntimeExports.jsxs("div",{className:"ScrollView-inner",children:[ft.map((kt,Ft)=>jsxRuntimeExports.jsx(Item,{item:kt,effect:kt.effect||ut,onIntersect:$t,children:xt(kt,Ft)},Nt(kt,Ft))),wt?jsxRuntimeExports.jsx(Item,{item:{},effect:ut,onIntersect:$t,children:wt}):null]})}),hasControls&&jsxRuntimeExports.jsx(IconButton,{className:"ScrollView-control",icon:"chevron-right","aria-label":"Next",onClick:jt})]})}),QuickReply=_e=>{const{item:et,index:rt,onClick:st}=_e;function ct(){st(et,rt)}const ut={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(ft){ft.file.status!=="uploading"&&console.log(ft.file,ft.fileList),ft.file.status==="done"?message$2.success(`${ft.file.name} file uploaded successfully`):ft.file.status==="error"&&message$2.error(`${ft.file.name} file upload failed.`)}};return jsxRuntimeExports.jsx("button",{className:clsx$1("QuickReply",{new:et.isNew,highlight:et.isHighlight}),type:"button","data-code":et.code,"aria-label":`快捷短语: ${et.name},双击发送`,onClick:ct,children:et.type==="upload"?jsxRuntimeExports.jsx(Upload$1,{...ut,children:jsxRuntimeExports.jsxs("div",{className:"QuickReply-inner",children:[et.icon&&jsxRuntimeExports.jsx(Icon,{type:et.icon}),et.img&&jsxRuntimeExports.jsx("img",{className:"QuickReply-img",src:et.img,alt:""}),jsxRuntimeExports.jsx("span",{children:et.name})]})}):jsxRuntimeExports.jsxs("div",{className:"QuickReply-inner",children:[et.icon&&jsxRuntimeExports.jsx(Icon,{type:et.icon}),et.img&&jsxRuntimeExports.jsx("img",{className:"QuickReply-img",src:et.img,alt:""}),jsxRuntimeExports.jsx("span",{children:et.name})]})})},QuickReplies=_e=>{const{items:et,visible:rt,onClick:st,onScroll:ct}=_e,ut=reactExports.useRef(null),[ft,gt]=reactExports.useState(!!ct);return reactExports.useLayoutEffect(()=>{let xt;return ut.current&&(gt(!1),ut.current.scrollTo({x:0,y:0}),xt=setTimeout(()=>{gt(!0)},500)),()=>{clearTimeout(xt)}},[et]),et.length?jsxRuntimeExports.jsx(ScrollView,{className:"QuickReplies",data:et,itemKey:"name",ref:ut,"data-visible":rt,onScroll:ft?ct:void 0,renderItem:(xt,$t)=>jsxRuntimeExports.jsx(QuickReply,{item:xt,index:$t,onClick:st},xt.name)}):null};QuickReplies.defaultProps={items:[],visible:!0};const QuickReplies$1=React$1.memo(QuickReplies),Radio=React$1.forwardRef((_e,et)=>{const{className:rt,label:st,checked:ct,disabled:ut,onChange:ft,...gt}=_e;return jsxRuntimeExports.jsxs("label",{className:clsx$1("Radio",rt,{"Radio--checked":ct,"Radio--disabled":ut}),ref:et,children:[jsxRuntimeExports.jsx("input",{type:"radio",className:"Radio-input",checked:ct,disabled:ut,onChange:ft,...gt}),jsxRuntimeExports.jsx("span",{className:"Radio-text",children:st})]})});React$1.forwardRef((_e,et)=>{const{className:rt,options:st,value:ct,name:ut,disabled:ft,block:gt,onChange:xt}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("RadioGroup",{"RadioGroup--block":gt},rt),ref:et,children:st.map($t=>jsxRuntimeExports.jsx(Radio,{label:$t.label||$t.value,value:$t.value,name:ut,checked:ct===$t.value,disabled:"disabled"in $t?$t.disabled:ft,onChange:_t=>{xt($t.value,_t)}},$t.value))})});React$1.forwardRef((_e,et)=>{const{className:rt,content:st,options:ct={},...ut}=_e,ft={__html:purify.sanitize(st,ct)};return jsxRuntimeExports.jsx("div",{className:clsx$1("RichText",rt),dangerouslySetInnerHTML:ft,ref:et,...ut})});React$1.forwardRef((_e,et)=>{const{className:rt,onSearch:st,onChange:ct,onClear:ut,value:ft,clearable:gt=!0,showSearch:xt=!0,...$t}=_e,[_t,wt]=reactExports.useState(ft||""),{trans:Tt}=useLocale$1("Search"),Rt=Nt=>{wt(Nt),ct&&ct(Nt)},It=()=>{wt(""),ut&&ut()},At=Nt=>{Nt.keyCode===13&&(st&&st(_t,Nt),Nt.preventDefault())},jt=Nt=>{st&&st(_t,Nt)};return jsxRuntimeExports.jsxs("div",{className:clsx$1("Search",rt),ref:et,children:[jsxRuntimeExports.jsx(Icon,{className:"Search-icon",type:"search"}),jsxRuntimeExports.jsx(Input,{className:"Search-input",type:"search",value:_t,enterKeyHint:"search",onChange:Rt,onKeyDown:At,...$t}),gt&&_t&&jsxRuntimeExports.jsx(IconButton,{className:"Search-clear",icon:"x-circle-fill",onClick:It}),xt&&jsxRuntimeExports.jsx(Button,{className:"Search-btn",color:"primary",onClick:jt,children:Tt("search")})]})});React$1.forwardRef(({className:_e,placeholder:et,variant:rt="outline",children:st,...ct},ut)=>jsxRuntimeExports.jsxs("select",{className:clsx$1("Input Select",`Input--${rt}`,_e),...ct,ref:ut,children:[et&&jsxRuntimeExports.jsx("option",{value:"",children:et}),st]}));React$1.forwardRef((_e,et)=>{const{className:rt,current:st=0,status:ct,inverted:ut,children:ft,...gt}=_e,$t=React$1.Children.toArray(ft).map((_t,wt)=>{const Tt={index:wt,active:!1,completed:!1,disabled:!1};return st===wt?(Tt.active=!0,Tt.status=ct):st>wt?Tt.completed=!0:(Tt.disabled=!ut,Tt.completed=ut),React$1.isValidElement(_t)?React$1.cloneElement(_t,{...Tt,..._t.props}):null});return jsxRuntimeExports.jsx("ul",{className:clsx$1("Stepper",rt),ref:et,...gt,children:$t})});function renderDot(_e){if(_e){const et={success:"check-circle-fill",fail:"warning-circle-fill",abort:"dash-circle-fill"};return jsxRuntimeExports.jsx(Icon,{type:et[_e]})}return jsxRuntimeExports.jsx("div",{className:"Step-dot"})}React$1.forwardRef((_e,et)=>{const{className:rt,active:st=!1,completed:ct=!1,disabled:ut=!1,status:ft,index:gt,title:xt,subTitle:$t,desc:_t,children:wt,...Tt}=_e;return jsxRuntimeExports.jsxs("li",{className:clsx$1("Step",{"Step--active":st,"Step--completed":ct,"Step--disabled":ut},rt),ref:et,"data-status":ft,...Tt,children:[jsxRuntimeExports.jsx("div",{className:"Step-icon",children:renderDot(ft)}),jsxRuntimeExports.jsx("div",{className:"Step-line"}),jsxRuntimeExports.jsxs("div",{className:"Step-content",children:[xt&&jsxRuntimeExports.jsxs("div",{className:"Step-title",children:[xt&&jsxRuntimeExports.jsx("span",{children:xt}),$t&&jsxRuntimeExports.jsx("small",{children:$t})]}),_t&&jsxRuntimeExports.jsx("div",{className:"Step-desc",children:_t}),wt]})]})});const TabItem=_e=>{const{active:et,index:rt,children:st,onClick:ct,...ut}=_e;function ft(gt){ct(rt,gt)}return jsxRuntimeExports.jsx("div",{className:"Tabs-navItem",children:jsxRuntimeExports.jsx("button",{className:clsx$1("Tabs-navLink",{active:et}),type:"button",role:"tab","aria-selected":et,onClick:ft,...ut,children:jsxRuntimeExports.jsx("span",{children:st})})})},TabsPane=_e=>{const{active:et,children:rt,...st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Tabs-pane",{active:et}),...st,role:"tabpanel",children:rt})};React$1.forwardRef((_e,et)=>{const{className:rt,index:st=0,scrollable:ct,hideNavIfOnlyOne:ut,children:ft,onChange:gt}=_e,[xt,$t]=reactExports.useState({}),[_t,wt]=reactExports.useState(st||0),Tt=reactExports.useRef(_t),Rt=reactExports.useRef(null),It=[],At=[],jt=useNextId("tabs-");function Nt(Ht,Wt){wt(Ht),gt&>(Ht,Wt)}React$1.Children.forEach(ft,(Ht,Wt)=>{if(!Ht)return;const Vt=_t===Wt,qt=`${jt}-${Wt}`;It.push(jsxRuntimeExports.jsx(TabItem,{active:Vt,index:Wt,onClick:Nt,"aria-controls":qt,tabIndex:Vt?-1:0,children:Ht.props.label},qt)),Ht.props.children&&At.push(jsxRuntimeExports.jsx(TabsPane,{active:Vt,id:qt,children:Ht.props.children},qt))}),reactExports.useEffect(()=>{wt(st)},[st]);const kt=reactExports.useCallback(()=>{const Ht=Rt.current;if(!Ht)return;const Wt=Ht.children[Tt.current];if(!Wt)return;const Vt=Wt.querySelector("span");if(!Vt)return;const{offsetWidth:qt,offsetLeft:Xt}=Wt,{width:Gt}=Vt.getBoundingClientRect(),Zt=Math.max(Gt-16,26),er=Xt+qt/2;$t({transform:`translateX(${er-Zt/2}px)`,width:`${Zt}px`}),ct&&smoothScroll({el:Ht,to:er-Ht.offsetWidth/2,x:!0})},[ct]);reactExports.useEffect(()=>{const Ht=Rt.current;let Wt;return Ht&&"ResizeObserver"in window&&(Wt=new ResizeObserver(kt),Wt.observe(Ht)),()=>{Wt&&Ht&&Wt.unobserve(Ht)}},[kt]),reactExports.useEffect(()=>{Tt.current=_t,kt()},[_t,kt]);const Ft=It.length>(ut?1:0);return jsxRuntimeExports.jsxs("div",{className:clsx$1("Tabs",{"Tabs--scrollable":ct},rt),ref:et,children:[Ft&&jsxRuntimeExports.jsxs("div",{className:"Tabs-nav",role:"tablist",ref:Rt,children:[It,jsxRuntimeExports.jsx("span",{className:"Tabs-navPointer",style:xt})]}),jsxRuntimeExports.jsx("div",{className:"Tabs-content",children:At})]})});React$1.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("div",{ref:et,children:_e}));const Tag=React$1.forwardRef((_e,et)=>{const{as:rt="span",className:st,color:ct,children:ut,...ft}=_e;return jsxRuntimeExports.jsx(rt,{className:clsx$1("Tag",ct&&`Tag--${ct}`,st),ref:et,...ft,children:ut})}),ToolbarButton=_e=>{const{item:et,onClick:rt}=_e,{type:st,icon:ct,img:ut,title:ft}=et,gt={name:"file",action:"https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188",showUploadList:!1,headers:{authorization:"authorization-text"},onChange(xt){xt.file.status!=="uploading"&&console.log(xt.file,xt.fileList),xt.file.status==="done"?message$2.success(`${xt.file.name} file uploaded successfully`):xt.file.status==="error"&&message$2.error(`${xt.file.name} file upload failed.`)}};return jsxRuntimeExports.jsx("div",{className:"Toolbar-item","data-type":st,children:st==="upload"?jsxRuntimeExports.jsx(Upload$1,{...gt,children:jsxRuntimeExports.jsxs(Button,{className:"Toolbar-btn",onClick:xt=>rt(et,xt),children:[jsxRuntimeExports.jsxs("span",{className:"Toolbar-btnIcon",children:[ct&&jsxRuntimeExports.jsx(Icon,{type:ct}),ut&&jsxRuntimeExports.jsx("img",{className:"Toolbar-img",src:ut,alt:""})]}),jsxRuntimeExports.jsx("span",{className:"Toolbar-btnText",children:ft})]})}):jsxRuntimeExports.jsxs(Button,{className:"Toolbar-btn",onClick:xt=>rt(et,xt),children:[jsxRuntimeExports.jsxs("span",{className:"Toolbar-btnIcon",children:[ct&&jsxRuntimeExports.jsx(Icon,{type:ct}),ut&&jsxRuntimeExports.jsx("img",{className:"Toolbar-img",src:ut,alt:""})]}),jsxRuntimeExports.jsx("span",{className:"Toolbar-btnText",children:ft})]})})},Toolbar=_e=>{const{items:et,onClick:rt}=_e;return jsxRuntimeExports.jsx("div",{className:"Toolbar",children:et.map(st=>jsxRuntimeExports.jsx(ToolbarButton,{item:st,onClick:rt},st.type))})};React$1.forwardRef((_e,et)=>{const{className:rt,children:st}=_e;return jsxRuntimeExports.jsx("div",{className:clsx$1("Tree",rt),role:"tree",ref:et,children:st})});React$1.forwardRef((_e,et)=>{const{title:rt,content:st,link:ct,children:ut=[],onClick:ft,onExpand:gt}=_e,[xt,$t]=reactExports.useState(!1),_t=ut.length>0;function wt(){_t?($t(!xt),gt(rt,!xt)):ft({title:rt,content:st,link:ct})}return jsxRuntimeExports.jsxs("div",{className:"TreeNode",role:"treeitem","aria-expanded":xt,ref:et,children:[jsxRuntimeExports.jsxs("div",{className:"TreeNode-title",onClick:wt,role:"treeitem","aria-expanded":xt,tabIndex:0,children:[jsxRuntimeExports.jsx("span",{className:"TreeNode-title-text",children:rt}),_t?jsxRuntimeExports.jsx(Icon,{className:"TreeNode-title-icon",type:xt?"chevron-up":"chevron-down"}):null]}),_t?ut.map((Tt,Rt)=>jsxRuntimeExports.jsx("div",{className:clsx$1("TreeNode-children",{"TreeNode-children-active":xt}),children:jsxRuntimeExports.jsx("div",{className:"TreeNode-title TreeNode-children-title",onClick:()=>ft({...Tt,index:Rt}),role:"treeitem",children:jsxRuntimeExports.jsx("span",{className:"TreeNode-title-text",children:Tt.title})})},Rt)):null]})});function formatTime(_e){if(!_e)return"";const et=Math.floor(_e/3600),rt=Math.floor((_e-et*3600)/60),st=Math.floor(_e-et*3600-rt*60);let ct="";return et>0&&(ct+=`${et}:`),ct+=`${rt}:`,st<10&&(ct+="0"),ct+=st,ct}React$1.forwardRef((_e,et)=>{const{className:rt,src:st,cover:ct,duration:ut,onClick:ft,onCoverLoad:gt,style:xt,videoRef:$t,children:_t,...wt}=_e,Tt=reactExports.useRef(null),Rt=reactExports.useRef(null),It=$t||Rt,[At,jt]=reactExports.useState(!1),[Nt,kt]=reactExports.useState(!0);function Ft(Xt){jt(!0);const Gt=It.current;Gt&&(Gt.ended||Gt.paused?Gt.play():Gt.pause()),ft&&ft(Nt,Xt)}function Ht(){kt(!1)}function Wt(){kt(!0)}const Vt=!At&&!!ct,qt=Vt&&!!ut;return reactExports.useImperativeHandle(et,()=>({wrapperRef:Tt})),jsxRuntimeExports.jsxs("div",{className:clsx$1("Video",`Video--${Nt?"paused":"playing"}`,rt),style:xt,ref:Tt,children:[Vt&&jsxRuntimeExports.jsx("img",{className:"Video-cover",src:ct,onLoad:gt,alt:""}),qt&&jsxRuntimeExports.jsx("span",{className:"Video-duration",children:formatTime(+ut)}),jsxRuntimeExports.jsx("video",{className:"Video-video",src:st,ref:It,hidden:Vt,controls:!0,onPlay:Ht,onPause:Wt,onEnded:Wt,...wt,children:_t}),Vt&&jsxRuntimeExports.jsx("button",{className:clsx$1("Video-playBtn",{paused:Nt}),type:"button",onClick:Ft,children:jsxRuntimeExports.jsx("span",{className:"Video-playIcon"})})]})});const getExtName=_e=>_e.slice((_e.lastIndexOf(".")-1>>>0)+2),UNITS=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],k$3=1024,prettyBytes=(_e,et)=>{if(_e<1)return`${_e} ${UNITS[0]}`;const rt=et||2,st=Math.floor(Math.log(_e)/Math.log(k$3));return`${parseFloat((_e/k$3**st).toFixed(rt))} ${UNITS[st]}`};React$1.forwardRef((_e,et)=>{const{className:rt,file:st,extension:ct,children:ut}=_e,{name:ft,size:gt}=st,xt=ct||getExtName(ft);return jsxRuntimeExports.jsx(Card,{className:clsx$1("FileCard",rt),size:"xl",ref:et,children:jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs("div",{className:"FileCard-icon","data-type":xt,children:[jsxRuntimeExports.jsx(Icon,{type:"file"}),jsxRuntimeExports.jsx(Text,{truncate:!0,as:"span",className:"FileCard-ext",children:xt})]}),jsxRuntimeExports.jsxs(FlexItem,{children:[jsxRuntimeExports.jsx(Text,{truncate:2,breakWord:!0,className:"FileCard-name",children:ft}),jsxRuntimeExports.jsxs("div",{className:"FileCard-meta",children:[gt!=null&&jsxRuntimeExports.jsx("span",{className:"FileCard-size",children:prettyBytes(gt)}),ut]})]})]})})});React$1.forwardRef((_e,et)=>{const rt=useConfig$1(),{className:st,type:ct,img:ut,name:ft,desc:gt,tags:xt=[],locale:$t,currency:_t,price:wt,count:Tt,unit:Rt,action:It,elderMode:At,children:jt,originalPrice:Nt,meta:kt,status:Ft,...Ht}=_e,Wt=At||rt.elderMode,Vt=ct==="order"&&!Wt,qt=ct!=="order"&&!Wt,Xt={currency:_t,locale:$t},Gt=wt!=null&&jsxRuntimeExports.jsx(Price,{price:wt,...Xt}),Zt=jsxRuntimeExports.jsxs("div",{className:"Goods-countUnit",children:[Tt&&jsxRuntimeExports.jsxs("span",{className:"Goods-count",children:["×",Tt]}),Rt&&jsxRuntimeExports.jsx("span",{className:"Goods-unit",children:Rt})]});return jsxRuntimeExports.jsxs(Flex,{className:clsx$1("Goods",st),"data-type":ct,"data-elder-mode":Wt,ref:et,...Ht,children:[ut&&jsxRuntimeExports.jsx("img",{className:"Goods-img",src:ut,alt:ft}),jsxRuntimeExports.jsxs(FlexItem,{className:"Goods-main",children:[qt&&It&&jsxRuntimeExports.jsx(IconButton,{className:"Goods-buyBtn",icon:"cart",...It}),jsxRuntimeExports.jsx(Text,{as:"h4",truncate:Vt?2:!0,className:"Goods-name",children:ft}),jsxRuntimeExports.jsx(Text,{className:"Goods-desc",truncate:Wt,children:gt}),Wt?jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Gt,It&&jsxRuntimeExports.jsx(Button,{size:"sm",...It})]}):jsxRuntimeExports.jsx("div",{className:"Goods-tags",children:xt.map(er=>jsxRuntimeExports.jsx(Tag,{color:"primary",children:er.name},er.name))}),qt&&jsxRuntimeExports.jsxs(Flex,{alignItems:"flex-end",children:[jsxRuntimeExports.jsxs(FlexItem,{children:[Gt,Nt&&jsxRuntimeExports.jsx(Price,{price:Nt,original:!0,...Xt}),kt&&jsxRuntimeExports.jsx("span",{className:"Goods-meta",children:kt})]}),Zt]}),jt]}),Vt&&jsxRuntimeExports.jsxs("div",{className:"Goods-aside",children:[Gt,Zt,jsxRuntimeExports.jsx("span",{className:"Goods-status",children:Ft}),It&&jsxRuntimeExports.jsx(Button,{className:"Goods-detailBtn",...It})]})]})});const BackBottom=({count:_e,onClick:et,onDidMount:rt})=>{const{trans:st}=useLocale$1("BackBottom");let ct=st("bottom");return _e&&(ct=st(_e===1?"newMsgOne":"newMsgOther").replace("{n}",_e)),reactExports.useEffect(()=>{rt&&rt()},[rt]),jsxRuntimeExports.jsx("div",{className:"BackBottom",children:jsxRuntimeExports.jsxs(Button,{className:"slide-in-right-item",onClick:et,children:[ct,jsxRuntimeExports.jsx(Icon,{type:"chevron-double-down"})]})})};function throttle(_e,et=300){let rt=!0;return(...st)=>{rt&&(rt=!1,_e(...st),setTimeout(()=>{rt=!0},et))}}const listenerOpts$1=canUse("passiveListener")?{passive:!0}:!1;function isNearBottom(_e,et){const rt=Math.max(_e.offsetHeight,600);return getToBottom(_e){const{messages:rt,isTyping:st,loadMoreText:ct,onRefresh:ut,onScroll:ft,renderBeforeMessageList:gt,renderMessageContent:xt,onBackBottomShow:$t,onBackBottomClick:_t}=_e,[wt,Tt]=reactExports.useState(!1),[Rt,It]=reactExports.useState(0),At=reactExports.useRef(wt),jt=reactExports.useRef(Rt),Nt=reactExports.useRef(null),kt=reactExports.useRef(null),Ft=rt[rt.length-1],Ht=()=>{It(0),Tt(!1)},Wt=reactExports.useCallback(Gt=>{kt.current&&(!At.current||Gt&&Gt.force)&&(kt.current.scrollToEnd(Gt),At.current&&Ht())},[]),Vt=()=>{Wt({animated:!1,force:!0}),_t&&_t()},qt=reactExports.useRef(throttle(Gt=>{isNearBottom(Gt,3)?jt.current?isNearBottom(Gt,.5)&&Ht():Tt(!1):Tt(!0)})),Xt=Gt=>{qt.current(Gt.target),ft&&ft(Gt)};return reactExports.useEffect(()=>{jt.current=Rt},[Rt]),reactExports.useEffect(()=>{At.current=wt},[wt]),reactExports.useEffect(()=>{const Gt=kt.current,Zt=Gt&&Gt.wrapperRef.current;if(!(!Zt||!Ft||Ft.position==="pop"))if(Ft.position==="right")Wt({force:!0});else if(isNearBottom(Zt,2)){const er=!!Zt.scrollTop;Wt({animated:er,force:!0})}else It(er=>er+1),Tt(!0)},[Ft,Wt]),reactExports.useEffect(()=>{Wt()},[st,Wt]),reactExports.useEffect(()=>{const Gt=Nt.current;let Zt=!1,er=0;function lr(){Zt=!1,er=0}function cr(fr){const{activeElement:hr}=document;hr&&hr.nodeName==="TEXTAREA"&&(Zt=!0,er=fr.touches[0].clientY)}function ur(fr){Zt&&Math.abs(fr.touches[0].clientY-er)>20&&(document.activeElement.blur(),lr())}return Gt.addEventListener("touchstart",cr,listenerOpts$1),Gt.addEventListener("touchmove",ur,listenerOpts$1),Gt.addEventListener("touchend",lr),Gt.addEventListener("touchcancel",lr),()=>{Gt.removeEventListener("touchstart",cr),Gt.removeEventListener("touchmove",ur),Gt.removeEventListener("touchend",lr),Gt.removeEventListener("touchcancel",lr)}},[]),reactExports.useImperativeHandle(et,()=>({ref:Nt,scrollToEnd:Wt}),[Wt]),jsxRuntimeExports.jsxs("div",{className:"MessageContainer",ref:Nt,tabIndex:-1,children:[gt&>(),jsxRuntimeExports.jsx(PullToRefresh,{onRefresh:ut,onScroll:Xt,loadMoreText:ct,ref:kt,children:jsxRuntimeExports.jsxs("div",{className:"MessageList",children:[rt.map(Gt=>reactExports.createElement(Message$1,{...Gt,renderMessageContent:xt,key:Gt._id})),st&&jsxRuntimeExports.jsx(Message$1,{type:"typing",_id:"typing"})]})}),wt&&jsxRuntimeExports.jsx(BackBottom,{count:Rt,onClick:Vt,onDidMount:$t})]})}),canPassive=canUse("passiveListener"),listenerOpts=canPassive?{passive:!0}:!1,listenerOptsWithoutPassive=canPassive?{passive:!1}:!1,MOVE_INTERVAL=80,btnTextMap={inited:"hold2talk",recording:"release2send",willCancel:"release2send"};let ts=0,startY=0;const Recorder=React$1.forwardRef((_e,et)=>{const{volume:rt,onStart:st,onEnd:ct,onCancel:ut}=_e,[ft,gt]=reactExports.useState("inited"),xt=reactExports.useRef(null),{trans:$t}=useLocale$1("Recorder"),_t=reactExports.useCallback(()=>{const Rt=Date.now()-ts;ct&&ct({duration:Rt})},[ct]);reactExports.useImperativeHandle(et,()=>({stop(){gt("inited"),_t(),ts=0}})),reactExports.useEffect(()=>{const Rt=xt.current;function It(Nt){Nt.cancelable&&Nt.preventDefault(),startY=Nt.touches[0].pageY,ts=Date.now(),gt("recording"),st&&st()}function At(Nt){if(!ts)return;const kt=Nt.touches[0].pageY,Ft=startY-kt>MOVE_INTERVAL;gt(Ft?"willCancel":"recording")}function jt(Nt){if(!ts)return;const kt=Nt.changedTouches[0].pageY,Ft=startY-kt{Rt.removeEventListener("touchstart",It),Rt.removeEventListener("touchmove",At),Rt.removeEventListener("touchend",jt),Rt.removeEventListener("touchcancel",jt)}},[_t,ut,st]);const wt=ft==="willCancel",Tt={transform:`scale(${(rt||1)/100+1})`};return jsxRuntimeExports.jsxs("div",{className:clsx$1("Recorder",{"Recorder--cancel":wt}),ref:xt,children:[ft!=="inited"&&jsxRuntimeExports.jsxs(Flex,{className:"RecorderToast",direction:"column",center:!0,children:[jsxRuntimeExports.jsxs("div",{className:"RecorderToast-waves",hidden:ft!=="recording",style:Tt,children:[jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-1",type:"hexagon"}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-2",type:"hexagon"}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-wave-3",type:"hexagon"})]}),jsxRuntimeExports.jsx(Icon,{className:"RecorderToast-icon",type:wt?"cancel":"mic"}),jsxRuntimeExports.jsx("span",{children:$t(wt?"release2cancel":"releaseOrSwipe")})]}),jsxRuntimeExports.jsx("div",{className:"Recorder-btn",role:"button","aria-label":$t("hold2talk"),children:jsxRuntimeExports.jsx("span",{children:$t(btnTextMap[ft])})})]})}),AccessoryWrap=({onClickOutside:_e,children:et})=>jsxRuntimeExports.jsx(ClickOutside,{onClick:_e,children:et});function useWindowResize(_e){const et=reactExports.useRef(!1);reactExports.useEffect(()=>{function rt(){_e(),et.current=!1}function st(){et.current||(et.current=!0,window.requestAnimationFrame?window.requestAnimationFrame(rt):setTimeout(rt,66))}return window.addEventListener("resize",st),()=>{window.removeEventListener("resize",st)}},[_e])}const Popover=_e=>{const{className:et,active:rt,target:st,children:ct,onClose:ut}=_e,ft=useClickOutside(ut,"mousedown"),{didMount:gt,isShow:xt}=useMount({active:rt,ref:ft}),[$t,_t]=reactExports.useState({}),wt=reactExports.useCallback(()=>{if(!ft.current)return;const Tt=st.getBoundingClientRect(),Rt=ft.current.getBoundingClientRect();_t({top:`${Tt.top-Rt.height}px`,left:`${Tt.left}px`})},[st,ft]);return reactExports.useEffect(()=>{ft.current&&(ft.current.focus(),wt())},[gt,wt,ft]),useWindowResize(wt),gt?reactDomExports.createPortal(jsxRuntimeExports.jsxs("div",{className:clsx$1("Popover",et,{active:xt}),ref:ft,style:$t,children:[jsxRuntimeExports.jsx("div",{className:"Popover-body",children:ct}),jsxRuntimeExports.jsx("svg",{className:"Popover-arrow",viewBox:"0 0 9 5",children:jsxRuntimeExports.jsx("polygon",{points:"0,0 5,5, 9,0"})})]}),document.body):null},Action=_e=>jsxRuntimeExports.jsx("div",{className:"Composer-actions","data-action-icon":_e.icon,children:jsxRuntimeExports.jsx(IconButton,{size:"lg",..._e})}),ToolbarItem=_e=>{const{item:et,onClick:rt}=_e;return jsxRuntimeExports.jsx(Action,{icon:et.icon,img:et.img,"data-icon":et.icon,"data-tooltip":et.title||null,"aria-label":et.title,onClick:rt})},SendConfirm=_e=>{const{file:et,onCancel:rt,onSend:st}=_e,[ct,ut]=reactExports.useState(""),{trans:ft}=useLocale$1("SendConfirm");return reactExports.useEffect(()=>{const gt=new FileReader;gt.onload=xt=>{xt.target&&ut(xt.target.result)},gt.readAsDataURL(et)},[et]),jsxRuntimeExports.jsx(Modal,{className:"SendConfirm",title:ft("title"),active:!!ct,vertical:!1,actions:[{label:ft("cancel"),onClick:rt},{label:ft("send"),color:"primary",onClick:st}],children:jsxRuntimeExports.jsx(Flex,{className:"SendConfirm-inner",center:!0,children:jsxRuntimeExports.jsx("img",{src:ct,alt:""})})})},ua=navigator.userAgent;function isIOS(){return/iPad|iPhone|iPod/.test(ua)}function isSafari(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(ua)}function isSafariOrIOS11(){return ua.includes("Safari/")||/OS 11_[0-3]\D/.test(ua)}function getIOSMajorVersion(){const _e=ua.match(/OS (\d+)_/);return _e?+_e[1]:0}const iOS=isIOS();function testScrollType(){if(iOS){if(isSafariOrIOS11())return 0;if(getIOSMajorVersion()<13)return 1}return 2}function riseInput(_e,et){const rt=testScrollType();let st;const ct=et||_e,ut=()=>{rt!==0&&(rt===1?document.body.scrollTop=document.body.scrollHeight:ct.scrollIntoView(!1))};_e.addEventListener("focus",()=>{setTimeout(ut,300),st=setTimeout(ut,1e3)}),_e.addEventListener("blur",()=>{clearTimeout(st),rt&&iOS&&setTimeout(()=>{document.body.scrollIntoView()})})}function parseDataTransfer(_e,et){const{items:rt}=_e.clipboardData;if(rt&&rt.length)for(let st=0;st{const[ct,ut]=reactExports.useState(null),ft=reactExports.useCallback($t=>{parseDataTransfer($t,ut)},[]),gt=reactExports.useCallback(()=>{ut(null)},[]),xt=reactExports.useCallback(()=>{rt&&ct&&Promise.resolve(rt(ct)).then(()=>{ut(null)})},[rt,ct]);return reactExports.useEffect(()=>{if(canTouch&&_e.current){const $t=document.querySelector(".Composer");riseInput(_e.current,$t)}},[_e]),jsxRuntimeExports.jsxs("div",{className:clsx$1({"S--invisible":et}),children:[jsxRuntimeExports.jsx(Input,{className:"Composer-input",rows:1,autoSize:!0,enterKeyHint:"send",onPaste:rt?ft:void 0,ref:_e,...st}),ct&&jsxRuntimeExports.jsx(SendConfirm,{file:ct,onCancel:gt,onSend:xt})]})},SendButton=({disabled:_e,onClick:et})=>{const{trans:rt}=useLocale$1("Composer");return jsxRuntimeExports.jsx("div",{className:"Composer-actions",children:jsxRuntimeExports.jsx(Button,{className:"Composer-sendBtn",disabled:_e,onMouseDown:et,color:"primary",children:rt("send")})})},CLASS_NAME_FOCUSING="S--focusing",Composer=React$1.forwardRef((_e,et)=>{const{text:rt="",textOnce:st,inputType:ct="text",wideBreakpoint:ut,placeholder:ft="请输入...",recorder:gt={},onInputTypeChange:xt,onFocus:$t,onBlur:_t,onChange:wt,onSend:Tt,onImageSend:Rt,onAccessoryToggle:It,toolbar:At=[],onToolbarClick:jt,rightAction:Nt,inputOptions:kt}=_e,[Ft,Ht]=reactExports.useState(rt),[Wt,Vt]=reactExports.useState(""),[qt,Xt]=reactExports.useState(ft),[Gt,Zt]=reactExports.useState(ct||"text"),[er,lr]=reactExports.useState(!1),[cr,ur]=reactExports.useState(""),fr=reactExports.useRef(null),hr=reactExports.useRef(!1),pr=reactExports.useRef(),dr=reactExports.useRef(),yr=reactExports.useRef(!1),[Sr,br]=reactExports.useState(!1);reactExports.useEffect(()=>{const Dr=ut&&window.matchMedia?window.matchMedia(`(min-width: ${ut})`):!1;function Xr(Kr){br(Kr.matches)}return br(Dr&&Dr.matches),Dr&&Dr.addListener(Xr),()=>{Dr&&Dr.removeListener(Xr)}},[ut]),reactExports.useEffect(()=>{toggleClass("S--wide",Sr),Sr||ur("")},[Sr]),reactExports.useEffect(()=>{yr.current&&It&&It(er)},[er,It]),reactExports.useEffect(()=>{st?(Vt(st),Xt(st)):(Vt(""),Xt(ft))},[ft,st]),reactExports.useEffect(()=>{yr.current=!0},[]),reactExports.useImperativeHandle(et,()=>({setText:Ht}));const mr=reactExports.useCallback(()=>{const Dr=Gt==="voice",Xr=Dr?"text":"voice";if(Zt(Xr),Dr){const Kr=fr.current;Kr.focus(),Kr.selectionStart=Kr.selectionEnd=Kr.value.length}xt&&xt(Xr)},[Gt,xt]),Er=reactExports.useCallback(Dr=>{clearTimeout(pr.current),toggleClass(CLASS_NAME_FOCUSING,!0),hr.current=!0,$t&&$t(Dr)},[$t]),Tr=reactExports.useCallback(Dr=>{pr.current=setTimeout(()=>{toggleClass(CLASS_NAME_FOCUSING,!1),hr.current=!1},0),_t&&_t(Dr)},[_t]),Mr=reactExports.useCallback(()=>{Ft?(Tt("text",Ft),Ht("")):Wt&&Tt("text",Wt),Wt&&(Vt(""),Xt(ft)),hr.current&&fr.current.focus()},[ft,Tt,Ft,Wt]),Or=reactExports.useCallback(Dr=>{!Dr.shiftKey&&Dr.keyCode===13&&(Mr(),Dr.preventDefault())},[Mr]),wr=reactExports.useCallback((Dr,Xr)=>{Ht(Dr),wt&&wt(Dr,Xr)},[wt]),Cr=reactExports.useCallback(Dr=>{Mr(),Dr.preventDefault()},[Mr]),Nr=reactExports.useCallback(()=>{lr(!er)},[er]),Rr=reactExports.useCallback(()=>{setTimeout(()=>{lr(!1),ur("")})},[]),Pr=reactExports.useCallback((Dr,Xr)=>{jt&&jt(Dr,Xr),Dr.render&&(dr.current=Xr.currentTarget,ur(Dr.render))},[jt]),jr=reactExports.useCallback(()=>{ur("")},[]),kr=Gt==="text",Fr=kr?"volume-circle":"keyboard-circle",_r=At.length>0,Br={...kt,value:Ft,inputRef:fr,placeholder:qt,onFocus:Er,onBlur:Tr,onKeyDown:Or,onChange:wr,onImageSend:Rt};return Sr?jsxRuntimeExports.jsxs("div",{className:"Composer Composer--lg",children:[_r&&At.map(Dr=>jsxRuntimeExports.jsx(ToolbarItem,{item:Dr,onClick:Xr=>Pr(Dr,Xr)},Dr.type)),cr&&jsxRuntimeExports.jsx(Popover,{active:!!cr,target:dr.current,onClose:jr,children:cr}),jsxRuntimeExports.jsx("div",{className:"Composer-inputWrap",children:jsxRuntimeExports.jsx(ComposerInput,{invisible:!1,...Br})}),jsxRuntimeExports.jsx(SendButton,{onClick:Cr,disabled:!Ft})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"Composer",children:[gt.canRecord&&jsxRuntimeExports.jsx(Action,{className:"Composer-inputTypeBtn","data-icon":Fr,icon:Fr,onClick:mr,"aria-label":kr?"切换到语音输入":"切换到键盘输入"}),jsxRuntimeExports.jsxs("div",{className:"Composer-inputWrap",children:[jsxRuntimeExports.jsx(ComposerInput,{invisible:!kr,...Br}),!kr&&jsxRuntimeExports.jsx(Recorder,{...gt})]}),!Ft&&Nt&&jsxRuntimeExports.jsx(Action,{...Nt}),_r&&jsxRuntimeExports.jsx(Action,{className:clsx$1("Composer-toggleBtn",{active:er}),icon:"plus-circle",onClick:Nr,"aria-label":er?"关闭工具栏":"展开工具栏"}),(Ft||Wt)&&jsxRuntimeExports.jsx(SendButton,{onClick:Cr,disabled:!1})]}),er&&jsxRuntimeExports.jsx(AccessoryWrap,{onClickOutside:Rr,children:cr||jsxRuntimeExports.jsx(Toolbar,{items:At,onClick:Pr})})]})}),Chat=React$1.forwardRef((_e,et)=>{const{wideBreakpoint:rt,locale:st="zh-CN",locales:ct,elderMode:ut,navbar:ft,renderNavbar:gt,loadMoreText:xt,renderBeforeMessageList:$t,messagesRef:_t,onRefresh:wt,onScroll:Tt,messages:Rt=[],isTyping:It,renderMessageContent:At,onBackBottomShow:jt,onBackBottomClick:Nt,quickReplies:kt=[],quickRepliesVisible:Ft,onQuickReplyClick:Ht=()=>{},onQuickReplyScroll:Wt,renderQuickReplies:Vt,text:qt,textOnce:Xt,placeholder:Gt,onInputFocus:Zt,onInputChange:er,onInputBlur:lr,onSend:cr,onImageSend:ur,inputOptions:fr,composerRef:hr,inputType:pr,onInputTypeChange:dr,recorder:yr,toolbar:Sr,onToolbarClick:br,onAccessoryToggle:mr,rightAction:Er,Composer:Tr=Composer}=_e;function Mr(Or){_t&&_t.current&&_t.current.scrollToEnd({animated:!1,force:!0}),Zt&&Zt(Or)}return reactExports.useEffect(()=>{const Or=document.documentElement;isSafari()&&(Or.dataset.safari="");const wr=getIOSMajorVersion();wr&&wr<11&&(Or.dataset.oldIos="")},[]),jsxRuntimeExports.jsx(ConfigProvider,{locale:st,locales:ct,elderMode:ut,children:jsxRuntimeExports.jsxs("div",{className:"ChatApp","data-elder-mode":ut,ref:et,children:[gt?gt():ft&&jsxRuntimeExports.jsx(Navbar,{...ft}),jsxRuntimeExports.jsx(MessageContainer,{ref:_t,loadMoreText:xt,messages:Rt,isTyping:It,renderBeforeMessageList:$t,renderMessageContent:At,onRefresh:wt,onScroll:Tt,onBackBottomShow:jt,onBackBottomClick:Nt}),jsxRuntimeExports.jsxs("div",{className:"ChatFooter",children:[Vt?Vt():jsxRuntimeExports.jsx(QuickReplies$1,{items:kt,visible:Ft,onClick:Ht,onScroll:Wt}),jsxRuntimeExports.jsx(Tr,{wideBreakpoint:rt,ref:hr,inputType:pr,text:qt,textOnce:Xt,inputOptions:fr,placeholder:Gt,onAccessoryToggle:mr,recorder:yr,toolbar:Sr,onToolbarClick:br,onInputTypeChange:dr,onFocus:Mr,onChange:er,onBlur:lr,onSend:cr,onImageSend:ur,rightAction:Er})]})]})})});var hs=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,Dg=Object.getOwnPropertyNames,jg=Object.prototype.hasOwnProperty,be$1=(_e,et)=>()=>(_e&&(et=_e(_e=0)),et),M$1=(_e,et)=>()=>(et||_e((et={exports:{}}).exports,et),et.exports),Qt=(_e,et)=>{for(var rt in et)hs(_e,rt,{get:et[rt],enumerable:!0})},Fg=(_e,et,rt,st)=>{if(et&&typeof et=="object"||typeof et=="function")for(let ct of Dg(et))!jg.call(_e,ct)&&ct!==rt&&hs(_e,ct,{get:()=>et[ct],enumerable:!(st=qg(et,ct))||st.enumerable});return _e},Z=_e=>Fg(hs({},"__esModule",{value:!0}),_e),_$2=be$1(()=>{}),B$2={};Qt(B$2,{_debugEnd:()=>pu,_debugProcess:()=>du,_events:()=>Pu,_eventsCount:()=>Ou,_exiting:()=>Gl,_fatalExceptions:()=>uu,_getActiveHandles:()=>Xl,_getActiveRequests:()=>Jl,_kill:()=>eu,_linkedBinding:()=>zl,_maxListeners:()=>Bu,_preload_modules:()=>Tu,_rawDebug:()=>Hl,_startProfilerIdleNotifier:()=>gu,_stopProfilerIdleNotifier:()=>yu,_tickCallback:()=>hu,abort:()=>mu,addListener:()=>xu,allowedNodeEnvironmentFlags:()=>ou,arch:()=>Ol,argv:()=>Ml,argv0:()=>Iu,assert:()=>au,binding:()=>Dl,chdir:()=>Wl,config:()=>Ql,cpuUsage:()=>qi,cwd:()=>Fl,debugPort:()=>Au,default:()=>Fu,dlopen:()=>Yl,domain:()=>Kl,emit:()=>Nu,emitWarning:()=>ql,env:()=>kl,execArgv:()=>Ll,execPath:()=>Su,exit:()=>nu,features:()=>lu,hasUncaughtExceptionCaptureCallback:()=>cu,hrtime:()=>Ni,kill:()=>iu,listeners:()=>ju,memoryUsage:()=>ru,moduleLoadList:()=>Vl,nextTick:()=>Cl,off:()=>Mu,on:()=>bt,once:()=>ku,openStdin:()=>su,pid:()=>vu,platform:()=>xl,ppid:()=>Eu,prependListener:()=>qu,prependOnceListener:()=>Du,reallyExit:()=>Zl,release:()=>$l,removeAllListeners:()=>Uu,removeListener:()=>Lu,resourceUsage:()=>tu,setSourceMapsEnabled:()=>Ru,setUncaughtExceptionCaptureCallback:()=>fu,stderr:()=>wu,stdin:()=>_u,stdout:()=>bu,title:()=>Pl,umask:()=>jl,uptime:()=>Cu,version:()=>Ul,versions:()=>Nl});function gs(_e){throw new Error("Node.js process "+_e+" is not supported by JSPM core outside of Node.js")}function Wg(){!xr||!Yt||(xr=!1,Yt.length?yt=Yt.concat(yt):Ui=-1,yt.length&&Rl())}function Rl(){if(!xr){var _e=setTimeout(Wg,0);xr=!0;for(var et=yt.length;et;){for(Yt=yt,yt=[];++Ui1)for(var rt=1;rt{_$2(),v$1(),m$1(),yt=[],xr=!1,Ui=-1,Bl.prototype.run=function(){this.fun.apply(null,this.array)},Pl="browser",Ol="x64",xl="browser",kl={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ml=["/usr/bin/node"],Ll=[],Ul="v16.8.0",Nl={},ql=function(_e,et){console.warn((et?et+": ":"")+_e)},Dl=function(_e){gs("binding")},jl=function(_e){return 0},Fl=function(){return"/"},Wl=function(_e){},$l={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Hl=me,Vl=[],Kl={},Gl=!1,Ql={},Zl=me,eu=me,qi=function(){return{}},tu=qi,ru=qi,iu=me,nu=me,su=me,ou={},lu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},uu=me,fu=me,hu=me,du=me,pu=me,gu=me,yu=me,bu=void 0,wu=void 0,_u=void 0,mu=me,vu=2,Eu=1,Su="/bin/usr/node",Au=9229,Iu="node",Tu=[],Ru=me,Mt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Mt.now===void 0&&(ds=Date.now(),Mt.timing&&Mt.timing.navigationStart&&(ds=Mt.timing.navigationStart),Mt.now=()=>Date.now()-ds),ps=1e9,Ni.bigint=function(_e){var et=Ni(_e);return typeof BigInt>"u"?et[0]*ps+et[1]:BigInt(et[0]*ps)+BigInt(et[1])},Bu=10,Pu={},Ou=0,xu=bt,ku=bt,Mu=bt,Lu=bt,Uu=bt,Nu=me,qu=bt,Du=bt,Fu={version:Ul,versions:Nl,arch:Ol,platform:xl,release:$l,_rawDebug:Hl,moduleLoadList:Vl,binding:Dl,_linkedBinding:zl,_events:Pu,_eventsCount:Ou,_maxListeners:Bu,on:bt,addListener:xu,once:ku,off:Mu,removeListener:Lu,removeAllListeners:Uu,emit:Nu,prependListener:qu,prependOnceListener:Du,listeners:ju,domain:Kl,_exiting:Gl,config:Ql,dlopen:Yl,uptime:Cu,_getActiveRequests:Jl,_getActiveHandles:Xl,reallyExit:Zl,_kill:eu,cpuUsage:qi,resourceUsage:tu,memoryUsage:ru,kill:iu,exit:nu,openStdin:su,allowedNodeEnvironmentFlags:ou,assert:au,features:lu,_fatalExceptions:uu,setUncaughtExceptionCaptureCallback:fu,hasUncaughtExceptionCaptureCallback:cu,emitWarning:ql,nextTick:Cl,_tickCallback:hu,_debugProcess:du,_debugEnd:pu,_startProfilerIdleNotifier:gu,_stopProfilerIdleNotifier:yu,stdout:bu,stdin:_u,stderr:wu,abort:mu,umask:jl,chdir:Wl,cwd:Fl,env:kl,title:Pl,argv:Ml,execArgv:Ll,pid:vu,ppid:Eu,execPath:Su,debugPort:Au,hrtime:Ni,argv0:Iu,_preload_modules:Tu,setSourceMapsEnabled:Ru}}),m$1=be$1(()=>{Wu()}),ve={};Qt(ve,{Buffer:()=>x$1,INSPECT_MAX_BYTES:()=>zg,default:()=>Lt,kMaxLength:()=>Kg});function $g(){if($u)return li;$u=!0,li.byteLength=gt,li.toByteArray=$t,li.fromByteArray=Tt;for(var _e=[],et=[],rt=typeof Uint8Array<"u"?Uint8Array:Array,st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ct=0,ut=st.length;ct0)throw new Error("Invalid string. Length must be a multiple of 4");var At=Rt.indexOf("=");At===-1&&(At=It);var jt=At===It?0:4-At%4;return[At,jt]}function gt(Rt){var It=ft(Rt),At=It[0],jt=It[1];return(At+jt)*3/4-jt}function xt(Rt,It,At){return(It+At)*3/4-At}function $t(Rt){var It,At=ft(Rt),jt=At[0],Nt=At[1],kt=new rt(xt(Rt,jt,Nt)),Ft=0,Ht=Nt>0?jt-4:jt,Wt;for(Wt=0;Wt>16&255,kt[Ft++]=It>>8&255,kt[Ft++]=It&255;return Nt===2&&(It=et[Rt.charCodeAt(Wt)]<<2|et[Rt.charCodeAt(Wt+1)]>>4,kt[Ft++]=It&255),Nt===1&&(It=et[Rt.charCodeAt(Wt)]<<10|et[Rt.charCodeAt(Wt+1)]<<4|et[Rt.charCodeAt(Wt+2)]>>2,kt[Ft++]=It>>8&255,kt[Ft++]=It&255),kt}function _t(Rt){return _e[Rt>>18&63]+_e[Rt>>12&63]+_e[Rt>>6&63]+_e[Rt&63]}function wt(Rt,It,At){for(var jt,Nt=[],kt=It;ktHt?Ht:Ft+kt));return jt===1?(It=Rt[At-1],Nt.push(_e[It>>2]+_e[It<<4&63]+"==")):jt===2&&(It=(Rt[At-2]<<8)+Rt[At-1],Nt.push(_e[It>>10]+_e[It>>4&63]+_e[It<<2&63]+"=")),Nt.join("")}return li}function Hg(){return Hu?Di:(Hu=!0,Di.read=function(_e,et,rt,st,ct){var ut,ft,gt=ct*8-st-1,xt=(1<>1,_t=-7,wt=rt?ct-1:0,Tt=rt?-1:1,Rt=_e[et+wt];for(wt+=Tt,ut=Rt&(1<<-_t)-1,Rt>>=-_t,_t+=gt;_t>0;ut=ut*256+_e[et+wt],wt+=Tt,_t-=8);for(ft=ut&(1<<-_t)-1,ut>>=-_t,_t+=st;_t>0;ft=ft*256+_e[et+wt],wt+=Tt,_t-=8);if(ut===0)ut=1-$t;else{if(ut===xt)return ft?NaN:(Rt?-1:1)*(1/0);ft=ft+Math.pow(2,st),ut=ut-$t}return(Rt?-1:1)*ft*Math.pow(2,ut-st)},Di.write=function(_e,et,rt,st,ct,ut){var ft,gt,xt,$t=ut*8-ct-1,_t=(1<<$t)-1,wt=_t>>1,Tt=ct===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rt=st?0:ut-1,It=st?1:-1,At=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(gt=isNaN(et)?1:0,ft=_t):(ft=Math.floor(Math.log(et)/Math.LN2),et*(xt=Math.pow(2,-ft))<1&&(ft--,xt*=2),ft+wt>=1?et+=Tt/xt:et+=Tt*Math.pow(2,1-wt),et*xt>=2&&(ft++,xt/=2),ft+wt>=_t?(gt=0,ft=_t):ft+wt>=1?(gt=(et*xt-1)*Math.pow(2,ct),ft=ft+wt):(gt=et*Math.pow(2,wt-1)*Math.pow(2,ct),ft=0));ct>=8;_e[rt+Rt]=gt&255,Rt+=It,gt/=256,ct-=8);for(ft=ft<0;_e[rt+Rt]=ft&255,Rt+=It,ft/=256,$t-=8);_e[rt+Rt-It]|=At*128},Di)}function Vg(){if(Vu)return Jt;Vu=!0;let _e=$g(),et=Hg(),rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Jt.Buffer=ft,Jt.SlowBuffer=Nt,Jt.INSPECT_MAX_BYTES=50;let st=2147483647;Jt.kMaxLength=st,ft.TYPED_ARRAY_SUPPORT=ct(),!ft.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 ct(){try{let vr=new Uint8Array(1),gr={foo:function(){return 42}};return Object.setPrototypeOf(gr,Uint8Array.prototype),Object.setPrototypeOf(vr,gr),vr.foo()===42}catch{return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function ut(vr){if(vr>st)throw new RangeError('The value "'+vr+'" is invalid for option "size"');let gr=new Uint8Array(vr);return Object.setPrototypeOf(gr,ft.prototype),gr}function ft(vr,gr,$r){if(typeof vr=="number"){if(typeof gr=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _t(vr)}return gt(vr,gr,$r)}ft.poolSize=8192;function gt(vr,gr,$r){if(typeof vr=="string")return wt(vr,gr);if(ArrayBuffer.isView(vr))return Rt(vr);if(vr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vr);if(Vr(vr,ArrayBuffer)||vr&&Vr(vr.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Vr(vr,SharedArrayBuffer)||vr&&Vr(vr.buffer,SharedArrayBuffer)))return It(vr,gr,$r);if(typeof vr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let zr=vr.valueOf&&vr.valueOf();if(zr!=null&&zr!==vr)return ft.from(zr,gr,$r);let qr=At(vr);if(qr)return qr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof vr[Symbol.toPrimitive]=="function")return ft.from(vr[Symbol.toPrimitive]("string"),gr,$r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vr)}ft.from=function(vr,gr,$r){return gt(vr,gr,$r)},Object.setPrototypeOf(ft.prototype,Uint8Array.prototype),Object.setPrototypeOf(ft,Uint8Array);function xt(vr){if(typeof vr!="number")throw new TypeError('"size" argument must be of type number');if(vr<0)throw new RangeError('The value "'+vr+'" is invalid for option "size"')}function $t(vr,gr,$r){return xt(vr),vr<=0?ut(vr):gr!==void 0?typeof $r=="string"?ut(vr).fill(gr,$r):ut(vr).fill(gr):ut(vr)}ft.alloc=function(vr,gr,$r){return $t(vr,gr,$r)};function _t(vr){return xt(vr),ut(vr<0?0:jt(vr)|0)}ft.allocUnsafe=function(vr){return _t(vr)},ft.allocUnsafeSlow=function(vr){return _t(vr)};function wt(vr,gr){if((typeof gr!="string"||gr==="")&&(gr="utf8"),!ft.isEncoding(gr))throw new TypeError("Unknown encoding: "+gr);let $r=kt(vr,gr)|0,zr=ut($r),qr=zr.write(vr,gr);return qr!==$r&&(zr=zr.slice(0,qr)),zr}function Tt(vr){let gr=vr.length<0?0:jt(vr.length)|0,$r=ut(gr);for(let zr=0;zr=st)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+st.toString(16)+" bytes");return vr|0}function Nt(vr){return+vr!=vr&&(vr=0),ft.alloc(+vr)}ft.isBuffer=function(vr){return vr!=null&&vr._isBuffer===!0&&vr!==ft.prototype},ft.compare=function(vr,gr){if(Vr(vr,Uint8Array)&&(vr=ft.from(vr,vr.offset,vr.byteLength)),Vr(gr,Uint8Array)&&(gr=ft.from(gr,gr.offset,gr.byteLength)),!ft.isBuffer(vr)||!ft.isBuffer(gr))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(vr===gr)return 0;let $r=vr.length,zr=gr.length;for(let qr=0,Wr=Math.min($r,zr);qrzr.length?(ft.isBuffer(Wr)||(Wr=ft.from(Wr)),Wr.copy(zr,qr)):Uint8Array.prototype.set.call(zr,Wr,qr);else if(ft.isBuffer(Wr))Wr.copy(zr,qr);else throw new TypeError('"list" argument must be an Array of Buffers');qr+=Wr.length}return zr};function kt(vr,gr){if(ft.isBuffer(vr))return vr.length;if(ArrayBuffer.isView(vr)||Vr(vr,ArrayBuffer))return vr.byteLength;if(typeof vr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof vr);let $r=vr.length,zr=arguments.length>2&&arguments[2]===!0;if(!zr&&$r===0)return 0;let qr=!1;for(;;)switch(gr){case"ascii":case"latin1":case"binary":return $r;case"utf8":case"utf-8":return Br(vr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r*2;case"hex":return $r>>>1;case"base64":return Kr(vr).length;default:if(qr)return zr?-1:Br(vr).length;gr=(""+gr).toLowerCase(),qr=!0}}ft.byteLength=kt;function Ft(vr,gr,$r){let zr=!1;if((gr===void 0||gr<0)&&(gr=0),gr>this.length||(($r===void 0||$r>this.length)&&($r=this.length),$r<=0)||($r>>>=0,gr>>>=0,$r<=gr))return"";for(vr||(vr="utf8");;)switch(vr){case"hex":return dr(this,gr,$r);case"utf8":case"utf-8":return cr(this,gr,$r);case"ascii":return hr(this,gr,$r);case"latin1":case"binary":return pr(this,gr,$r);case"base64":return lr(this,gr,$r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yr(this,gr,$r);default:if(zr)throw new TypeError("Unknown encoding: "+vr);vr=(vr+"").toLowerCase(),zr=!0}}ft.prototype._isBuffer=!0;function Ht(vr,gr,$r){let zr=vr[gr];vr[gr]=vr[$r],vr[$r]=zr}ft.prototype.swap16=function(){let vr=this.length;if(vr%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let gr=0;grgr&&(vr+=" ... "),""},rt&&(ft.prototype[rt]=ft.prototype.inspect),ft.prototype.compare=function(vr,gr,$r,zr,qr){if(Vr(vr,Uint8Array)&&(vr=ft.from(vr,vr.offset,vr.byteLength)),!ft.isBuffer(vr))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof vr);if(gr===void 0&&(gr=0),$r===void 0&&($r=vr?vr.length:0),zr===void 0&&(zr=0),qr===void 0&&(qr=this.length),gr<0||$r>vr.length||zr<0||qr>this.length)throw new RangeError("out of range index");if(zr>=qr&&gr>=$r)return 0;if(zr>=qr)return-1;if(gr>=$r)return 1;if(gr>>>=0,$r>>>=0,zr>>>=0,qr>>>=0,this===vr)return 0;let Wr=qr-zr,Gr=$r-gr,dn=Math.min(Wr,Gr),mn=this.slice(zr,qr),hn=vr.slice(gr,$r);for(let Cn=0;Cn2147483647?$r=2147483647:$r<-2147483648&&($r=-2147483648),$r=+$r,ln($r)&&($r=qr?0:vr.length-1),$r<0&&($r=vr.length+$r),$r>=vr.length){if(qr)return-1;$r=vr.length-1}else if($r<0)if(qr)$r=0;else return-1;if(typeof gr=="string"&&(gr=ft.from(gr,zr)),ft.isBuffer(gr))return gr.length===0?-1:Vt(vr,gr,$r,zr,qr);if(typeof gr=="number")return gr=gr&255,typeof Uint8Array.prototype.indexOf=="function"?qr?Uint8Array.prototype.indexOf.call(vr,gr,$r):Uint8Array.prototype.lastIndexOf.call(vr,gr,$r):Vt(vr,[gr],$r,zr,qr);throw new TypeError("val must be string, number or Buffer")}function Vt(vr,gr,$r,zr,qr){let Wr=1,Gr=vr.length,dn=gr.length;if(zr!==void 0&&(zr=String(zr).toLowerCase(),zr==="ucs2"||zr==="ucs-2"||zr==="utf16le"||zr==="utf-16le")){if(vr.length<2||gr.length<2)return-1;Wr=2,Gr/=2,dn/=2,$r/=2}function mn(Cn,Rn){return Wr===1?Cn[Rn]:Cn.readUInt16BE(Rn*Wr)}let hn;if(qr){let Cn=-1;for(hn=$r;hnGr&&($r=Gr-dn),hn=$r;hn>=0;hn--){let Cn=!0;for(let Rn=0;Rnqr&&(zr=qr)):zr=qr;let Wr=gr.length;zr>Wr/2&&(zr=Wr/2);let Gr;for(Gr=0;Gr>>0,isFinite($r)?($r=$r>>>0,zr===void 0&&(zr="utf8")):(zr=$r,$r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let qr=this.length-gr;if(($r===void 0||$r>qr)&&($r=qr),vr.length>0&&($r<0||gr<0)||gr>this.length)throw new RangeError("Attempt to write outside buffer bounds");zr||(zr="utf8");let Wr=!1;for(;;)switch(zr){case"hex":return qt(this,vr,gr,$r);case"utf8":case"utf-8":return Xt(this,vr,gr,$r);case"ascii":case"latin1":case"binary":return Gt(this,vr,gr,$r);case"base64":return Zt(this,vr,gr,$r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return er(this,vr,gr,$r);default:if(Wr)throw new TypeError("Unknown encoding: "+zr);zr=(""+zr).toLowerCase(),Wr=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lr(vr,gr,$r){return gr===0&&$r===vr.length?_e.fromByteArray(vr):_e.fromByteArray(vr.slice(gr,$r))}function cr(vr,gr,$r){$r=Math.min(vr.length,$r);let zr=[],qr=gr;for(;qr<$r;){let Wr=vr[qr],Gr=null,dn=Wr>239?4:Wr>223?3:Wr>191?2:1;if(qr+dn<=$r){let mn,hn,Cn,Rn;switch(dn){case 1:Wr<128&&(Gr=Wr);break;case 2:mn=vr[qr+1],(mn&192)===128&&(Rn=(Wr&31)<<6|mn&63,Rn>127&&(Gr=Rn));break;case 3:mn=vr[qr+1],hn=vr[qr+2],(mn&192)===128&&(hn&192)===128&&(Rn=(Wr&15)<<12|(mn&63)<<6|hn&63,Rn>2047&&(Rn<55296||Rn>57343)&&(Gr=Rn));break;case 4:mn=vr[qr+1],hn=vr[qr+2],Cn=vr[qr+3],(mn&192)===128&&(hn&192)===128&&(Cn&192)===128&&(Rn=(Wr&15)<<18|(mn&63)<<12|(hn&63)<<6|Cn&63,Rn>65535&&Rn<1114112&&(Gr=Rn))}}Gr===null?(Gr=65533,dn=1):Gr>65535&&(Gr-=65536,zr.push(Gr>>>10&1023|55296),Gr=56320|Gr&1023),zr.push(Gr),qr+=dn}return fr(zr)}let ur=4096;function fr(vr){let gr=vr.length;if(gr<=ur)return String.fromCharCode.apply(String,vr);let $r="",zr=0;for(;zrzr)&&($r=zr);let qr="";for(let Wr=gr;Wr<$r;++Wr)qr+=Qr[vr[Wr]];return qr}function yr(vr,gr,$r){let zr=vr.slice(gr,$r),qr="";for(let Wr=0;Wr$r&&(vr=$r),gr<0?(gr+=$r,gr<0&&(gr=0)):gr>$r&&(gr=$r),gr$r)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUintLE=ft.prototype.readUIntLE=function(vr,gr,$r){vr=vr>>>0,gr=gr>>>0,$r||Sr(vr,gr,this.length);let zr=this[vr],qr=1,Wr=0;for(;++Wr>>0,gr=gr>>>0,$r||Sr(vr,gr,this.length);let zr=this[vr+--gr],qr=1;for(;gr>0&&(qr*=256);)zr+=this[vr+--gr]*qr;return zr},ft.prototype.readUint8=ft.prototype.readUInt8=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,1,this.length),this[vr]},ft.prototype.readUint16LE=ft.prototype.readUInt16LE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,2,this.length),this[vr]|this[vr+1]<<8},ft.prototype.readUint16BE=ft.prototype.readUInt16BE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,2,this.length),this[vr]<<8|this[vr+1]},ft.prototype.readUint32LE=ft.prototype.readUInt32LE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,4,this.length),(this[vr]|this[vr+1]<<8|this[vr+2]<<16)+this[vr+3]*16777216},ft.prototype.readUint32BE=ft.prototype.readUInt32BE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,4,this.length),this[vr]*16777216+(this[vr+1]<<16|this[vr+2]<<8|this[vr+3])},ft.prototype.readBigUInt64LE=Zr(function(vr){vr=vr>>>0,jr(vr,"offset");let gr=this[vr],$r=this[vr+7];(gr===void 0||$r===void 0)&&kr(vr,this.length-8);let zr=gr+this[++vr]*2**8+this[++vr]*2**16+this[++vr]*2**24,qr=this[++vr]+this[++vr]*2**8+this[++vr]*2**16+$r*2**24;return BigInt(zr)+(BigInt(qr)<>>0,jr(vr,"offset");let gr=this[vr],$r=this[vr+7];(gr===void 0||$r===void 0)&&kr(vr,this.length-8);let zr=gr*2**24+this[++vr]*2**16+this[++vr]*2**8+this[++vr],qr=this[++vr]*2**24+this[++vr]*2**16+this[++vr]*2**8+$r;return(BigInt(zr)<>>0,gr=gr>>>0,$r||Sr(vr,gr,this.length);let zr=this[vr],qr=1,Wr=0;for(;++Wr=qr&&(zr-=Math.pow(2,8*gr)),zr},ft.prototype.readIntBE=function(vr,gr,$r){vr=vr>>>0,gr=gr>>>0,$r||Sr(vr,gr,this.length);let zr=gr,qr=1,Wr=this[vr+--zr];for(;zr>0&&(qr*=256);)Wr+=this[vr+--zr]*qr;return qr*=128,Wr>=qr&&(Wr-=Math.pow(2,8*gr)),Wr},ft.prototype.readInt8=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,1,this.length),this[vr]&128?(255-this[vr]+1)*-1:this[vr]},ft.prototype.readInt16LE=function(vr,gr){vr=vr>>>0,gr||Sr(vr,2,this.length);let $r=this[vr]|this[vr+1]<<8;return $r&32768?$r|4294901760:$r},ft.prototype.readInt16BE=function(vr,gr){vr=vr>>>0,gr||Sr(vr,2,this.length);let $r=this[vr+1]|this[vr]<<8;return $r&32768?$r|4294901760:$r},ft.prototype.readInt32LE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,4,this.length),this[vr]|this[vr+1]<<8|this[vr+2]<<16|this[vr+3]<<24},ft.prototype.readInt32BE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,4,this.length),this[vr]<<24|this[vr+1]<<16|this[vr+2]<<8|this[vr+3]},ft.prototype.readBigInt64LE=Zr(function(vr){vr=vr>>>0,jr(vr,"offset");let gr=this[vr],$r=this[vr+7];(gr===void 0||$r===void 0)&&kr(vr,this.length-8);let zr=this[vr+4]+this[vr+5]*2**8+this[vr+6]*2**16+($r<<24);return(BigInt(zr)<>>0,jr(vr,"offset");let gr=this[vr],$r=this[vr+7];(gr===void 0||$r===void 0)&&kr(vr,this.length-8);let zr=(gr<<24)+this[++vr]*2**16+this[++vr]*2**8+this[++vr];return(BigInt(zr)<>>0,gr||Sr(vr,4,this.length),et.read(this,vr,!0,23,4)},ft.prototype.readFloatBE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,4,this.length),et.read(this,vr,!1,23,4)},ft.prototype.readDoubleLE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,8,this.length),et.read(this,vr,!0,52,8)},ft.prototype.readDoubleBE=function(vr,gr){return vr=vr>>>0,gr||Sr(vr,8,this.length),et.read(this,vr,!1,52,8)};function br(vr,gr,$r,zr,qr,Wr){if(!ft.isBuffer(vr))throw new TypeError('"buffer" argument must be a Buffer instance');if(gr>qr||grvr.length)throw new RangeError("Index out of range")}ft.prototype.writeUintLE=ft.prototype.writeUIntLE=function(vr,gr,$r,zr){if(vr=+vr,gr=gr>>>0,$r=$r>>>0,!zr){let Gr=Math.pow(2,8*$r)-1;br(this,vr,gr,$r,Gr,0)}let qr=1,Wr=0;for(this[gr]=vr&255;++Wr<$r&&(qr*=256);)this[gr+Wr]=vr/qr&255;return gr+$r},ft.prototype.writeUintBE=ft.prototype.writeUIntBE=function(vr,gr,$r,zr){if(vr=+vr,gr=gr>>>0,$r=$r>>>0,!zr){let Gr=Math.pow(2,8*$r)-1;br(this,vr,gr,$r,Gr,0)}let qr=$r-1,Wr=1;for(this[gr+qr]=vr&255;--qr>=0&&(Wr*=256);)this[gr+qr]=vr/Wr&255;return gr+$r},ft.prototype.writeUint8=ft.prototype.writeUInt8=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,1,255,0),this[gr]=vr&255,gr+1},ft.prototype.writeUint16LE=ft.prototype.writeUInt16LE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,2,65535,0),this[gr]=vr&255,this[gr+1]=vr>>>8,gr+2},ft.prototype.writeUint16BE=ft.prototype.writeUInt16BE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,2,65535,0),this[gr]=vr>>>8,this[gr+1]=vr&255,gr+2},ft.prototype.writeUint32LE=ft.prototype.writeUInt32LE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,4,4294967295,0),this[gr+3]=vr>>>24,this[gr+2]=vr>>>16,this[gr+1]=vr>>>8,this[gr]=vr&255,gr+4},ft.prototype.writeUint32BE=ft.prototype.writeUInt32BE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,4,4294967295,0),this[gr]=vr>>>24,this[gr+1]=vr>>>16,this[gr+2]=vr>>>8,this[gr+3]=vr&255,gr+4};function mr(vr,gr,$r,zr,qr){Pr(gr,zr,qr,vr,$r,7);let Wr=Number(gr&BigInt(4294967295));vr[$r++]=Wr,Wr=Wr>>8,vr[$r++]=Wr,Wr=Wr>>8,vr[$r++]=Wr,Wr=Wr>>8,vr[$r++]=Wr;let Gr=Number(gr>>BigInt(32)&BigInt(4294967295));return vr[$r++]=Gr,Gr=Gr>>8,vr[$r++]=Gr,Gr=Gr>>8,vr[$r++]=Gr,Gr=Gr>>8,vr[$r++]=Gr,$r}function Er(vr,gr,$r,zr,qr){Pr(gr,zr,qr,vr,$r,7);let Wr=Number(gr&BigInt(4294967295));vr[$r+7]=Wr,Wr=Wr>>8,vr[$r+6]=Wr,Wr=Wr>>8,vr[$r+5]=Wr,Wr=Wr>>8,vr[$r+4]=Wr;let Gr=Number(gr>>BigInt(32)&BigInt(4294967295));return vr[$r+3]=Gr,Gr=Gr>>8,vr[$r+2]=Gr,Gr=Gr>>8,vr[$r+1]=Gr,Gr=Gr>>8,vr[$r]=Gr,$r+8}ft.prototype.writeBigUInt64LE=Zr(function(vr,gr=0){return mr(this,vr,gr,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeBigUInt64BE=Zr(function(vr,gr=0){return Er(this,vr,gr,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeIntLE=function(vr,gr,$r,zr){if(vr=+vr,gr=gr>>>0,!zr){let dn=Math.pow(2,8*$r-1);br(this,vr,gr,$r,dn-1,-dn)}let qr=0,Wr=1,Gr=0;for(this[gr]=vr&255;++qr<$r&&(Wr*=256);)vr<0&&Gr===0&&this[gr+qr-1]!==0&&(Gr=1),this[gr+qr]=(vr/Wr>>0)-Gr&255;return gr+$r},ft.prototype.writeIntBE=function(vr,gr,$r,zr){if(vr=+vr,gr=gr>>>0,!zr){let dn=Math.pow(2,8*$r-1);br(this,vr,gr,$r,dn-1,-dn)}let qr=$r-1,Wr=1,Gr=0;for(this[gr+qr]=vr&255;--qr>=0&&(Wr*=256);)vr<0&&Gr===0&&this[gr+qr+1]!==0&&(Gr=1),this[gr+qr]=(vr/Wr>>0)-Gr&255;return gr+$r},ft.prototype.writeInt8=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,1,127,-128),vr<0&&(vr=255+vr+1),this[gr]=vr&255,gr+1},ft.prototype.writeInt16LE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,2,32767,-32768),this[gr]=vr&255,this[gr+1]=vr>>>8,gr+2},ft.prototype.writeInt16BE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,2,32767,-32768),this[gr]=vr>>>8,this[gr+1]=vr&255,gr+2},ft.prototype.writeInt32LE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,4,2147483647,-2147483648),this[gr]=vr&255,this[gr+1]=vr>>>8,this[gr+2]=vr>>>16,this[gr+3]=vr>>>24,gr+4},ft.prototype.writeInt32BE=function(vr,gr,$r){return vr=+vr,gr=gr>>>0,$r||br(this,vr,gr,4,2147483647,-2147483648),vr<0&&(vr=4294967295+vr+1),this[gr]=vr>>>24,this[gr+1]=vr>>>16,this[gr+2]=vr>>>8,this[gr+3]=vr&255,gr+4},ft.prototype.writeBigInt64LE=Zr(function(vr,gr=0){return mr(this,vr,gr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ft.prototype.writeBigInt64BE=Zr(function(vr,gr=0){return Er(this,vr,gr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Tr(vr,gr,$r,zr,qr,Wr){if($r+zr>vr.length)throw new RangeError("Index out of range");if($r<0)throw new RangeError("Index out of range")}function Mr(vr,gr,$r,zr,qr){return gr=+gr,$r=$r>>>0,qr||Tr(vr,gr,$r,4),et.write(vr,gr,$r,zr,23,4),$r+4}ft.prototype.writeFloatLE=function(vr,gr,$r){return Mr(this,vr,gr,!0,$r)},ft.prototype.writeFloatBE=function(vr,gr,$r){return Mr(this,vr,gr,!1,$r)};function Or(vr,gr,$r,zr,qr){return gr=+gr,$r=$r>>>0,qr||Tr(vr,gr,$r,8),et.write(vr,gr,$r,zr,52,8),$r+8}ft.prototype.writeDoubleLE=function(vr,gr,$r){return Or(this,vr,gr,!0,$r)},ft.prototype.writeDoubleBE=function(vr,gr,$r){return Or(this,vr,gr,!1,$r)},ft.prototype.copy=function(vr,gr,$r,zr){if(!ft.isBuffer(vr))throw new TypeError("argument should be a Buffer");if($r||($r=0),!zr&&zr!==0&&(zr=this.length),gr>=vr.length&&(gr=vr.length),gr||(gr=0),zr>0&&zr<$r&&(zr=$r),zr===$r||vr.length===0||this.length===0)return 0;if(gr<0)throw new RangeError("targetStart out of bounds");if($r<0||$r>=this.length)throw new RangeError("Index out of range");if(zr<0)throw new RangeError("sourceEnd out of bounds");zr>this.length&&(zr=this.length),vr.length-gr>>0,$r=$r===void 0?this.length:$r>>>0,vr||(vr=0);let qr;if(typeof vr=="number")for(qr=gr;qr<$r;++qr)this[qr]=vr;else{let Wr=ft.isBuffer(vr)?vr:ft.from(vr,zr),Gr=Wr.length;if(Gr===0)throw new TypeError('The value "'+vr+'" is invalid for argument "value"');for(qr=0;qr<$r-gr;++qr)this[qr+gr]=Wr[qr%Gr]}return this};let wr={};function Cr(vr,gr,$r){wr[vr]=class extends $r{constructor(){super(),Object.defineProperty(this,"message",{value:gr.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${vr}]`,this.stack,delete this.name}get code(){return vr}set code(zr){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:zr,writable:!0})}toString(){return`${this.name} [${vr}]: ${this.message}`}}}Cr("ERR_BUFFER_OUT_OF_BOUNDS",function(vr){return vr?`${vr} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Cr("ERR_INVALID_ARG_TYPE",function(vr,gr){return`The "${vr}" argument must be of type number. Received type ${typeof gr}`},TypeError),Cr("ERR_OUT_OF_RANGE",function(vr,gr,$r){let zr=`The value of "${vr}" is out of range.`,qr=$r;return Number.isInteger($r)&&Math.abs($r)>2**32?qr=Nr(String($r)):typeof $r=="bigint"&&(qr=String($r),($r>BigInt(2)**BigInt(32)||$r<-(BigInt(2)**BigInt(32)))&&(qr=Nr(qr)),qr+="n"),zr+=` It must be ${gr}. Received ${qr}`,zr},RangeError);function Nr(vr){let gr="",$r=vr.length,zr=vr[0]==="-"?1:0;for(;$r>=zr+4;$r-=3)gr=`_${vr.slice($r-3,$r)}${gr}`;return`${vr.slice(0,$r)}${gr}`}function Rr(vr,gr,$r){jr(gr,"offset"),(vr[gr]===void 0||vr[gr+$r]===void 0)&&kr(gr,vr.length-($r+1))}function Pr(vr,gr,$r,zr,qr,Wr){if(vr>$r||vr3?gr===0||gr===BigInt(0)?dn=`>= 0${Gr} and < 2${Gr} ** ${(Wr+1)*8}${Gr}`:dn=`>= -(2${Gr} ** ${(Wr+1)*8-1}${Gr}) and < 2 ** ${(Wr+1)*8-1}${Gr}`:dn=`>= ${gr}${Gr} and <= ${$r}${Gr}`,new wr.ERR_OUT_OF_RANGE("value",dn,vr)}Rr(zr,qr,Wr)}function jr(vr,gr){if(typeof vr!="number")throw new wr.ERR_INVALID_ARG_TYPE(gr,"number",vr)}function kr(vr,gr,$r){throw Math.floor(vr)!==vr?(jr(vr,$r),new wr.ERR_OUT_OF_RANGE($r||"offset","an integer",vr)):gr<0?new wr.ERR_BUFFER_OUT_OF_BOUNDS:new wr.ERR_OUT_OF_RANGE($r||"offset",`>= ${$r?1:0} and <= ${gr}`,vr)}let Fr=/[^+/0-9A-Za-z-_]/g;function _r(vr){if(vr=vr.split("=")[0],vr=vr.trim().replace(Fr,""),vr.length<2)return"";for(;vr.length%4!==0;)vr=vr+"=";return vr}function Br(vr,gr){gr=gr||1/0;let $r,zr=vr.length,qr=null,Wr=[];for(let Gr=0;Gr55295&&$r<57344){if(!qr){if($r>56319){(gr-=3)>-1&&Wr.push(239,191,189);continue}else if(Gr+1===zr){(gr-=3)>-1&&Wr.push(239,191,189);continue}qr=$r;continue}if($r<56320){(gr-=3)>-1&&Wr.push(239,191,189),qr=$r;continue}$r=(qr-55296<<10|$r-56320)+65536}else qr&&(gr-=3)>-1&&Wr.push(239,191,189);if(qr=null,$r<128){if((gr-=1)<0)break;Wr.push($r)}else if($r<2048){if((gr-=2)<0)break;Wr.push($r>>6|192,$r&63|128)}else if($r<65536){if((gr-=3)<0)break;Wr.push($r>>12|224,$r>>6&63|128,$r&63|128)}else if($r<1114112){if((gr-=4)<0)break;Wr.push($r>>18|240,$r>>12&63|128,$r>>6&63|128,$r&63|128)}else throw new Error("Invalid code point")}return Wr}function Dr(vr){let gr=[];for(let $r=0;$r>8,qr=$r%256,Wr.push(qr),Wr.push(zr);return Wr}function Kr(vr){return _e.toByteArray(_r(vr))}function Hr(vr,gr,$r,zr){let qr;for(qr=0;qr=gr.length||qr>=vr.length);++qr)gr[qr+$r]=vr[qr];return qr}function Vr(vr,gr){return vr instanceof gr||vr!=null&&vr.constructor!=null&&vr.constructor.name!=null&&vr.constructor.name===gr.name}function ln(vr){return vr!==vr}let Qr=function(){let vr="0123456789abcdef",gr=new Array(256);for(let $r=0;$r<16;++$r){let zr=$r*16;for(let qr=0;qr<16;++qr)gr[zr+qr]=vr[$r]+vr[qr]}return gr}();function Zr(vr){return typeof BigInt>"u"?vn:vr}function vn(){throw new Error("BigInt not supported")}return Jt}var li,$u,Di,Hu,Jt,Vu,Lt,x$1,zg,Kg,we=be$1(()=>{_$2(),v$1(),m$1(),li={},$u=!1,Di={},Hu=!1,Jt={},Vu=!1,Lt=Vg(),Lt.Buffer,Lt.SlowBuffer,Lt.INSPECT_MAX_BYTES,Lt.kMaxLength,x$1=Lt.Buffer,zg=Lt.INSPECT_MAX_BYTES,Kg=Lt.kMaxLength}),v$1=be$1(()=>{we()}),zu=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=class{constructor(rt){this.aliasToTopic={},this.max=rt}put(rt,st){return st===0||st>this.max?!1:(this.aliasToTopic[st]=rt,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(rt){return this.aliasToTopic[rt]}clear(){this.aliasToTopic={}}};_e.default=et}),ce=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports={ArrayIsArray(rt){return Array.isArray(rt)},ArrayPrototypeIncludes(rt,st){return rt.includes(st)},ArrayPrototypeIndexOf(rt,st){return rt.indexOf(st)},ArrayPrototypeJoin(rt,st){return rt.join(st)},ArrayPrototypeMap(rt,st){return rt.map(st)},ArrayPrototypePop(rt,st){return rt.pop(st)},ArrayPrototypePush(rt,st){return rt.push(st)},ArrayPrototypeSlice(rt,st,ct){return rt.slice(st,ct)},Error,FunctionPrototypeCall(rt,st,...ct){return rt.call(st,...ct)},FunctionPrototypeSymbolHasInstance(rt,st){return Function.prototype[Symbol.hasInstance].call(rt,st)},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(rt,st){return Object.defineProperties(rt,st)},ObjectDefineProperty(rt,st,ct){return Object.defineProperty(rt,st,ct)},ObjectGetOwnPropertyDescriptor(rt,st){return Object.getOwnPropertyDescriptor(rt,st)},ObjectKeys(rt){return Object.keys(rt)},ObjectSetPrototypeOf(rt,st){return Object.setPrototypeOf(rt,st)},Promise,PromisePrototypeCatch(rt,st){return rt.catch(st)},PromisePrototypeThen(rt,st,ct){return rt.then(st,ct)},PromiseReject(rt){return Promise.reject(rt)},ReflectApply:Reflect.apply,RegExpPrototypeTest(rt,st){return rt.test(st)},SafeSet:Set,String,StringPrototypeSlice(rt,st,ct){return rt.slice(st,ct)},StringPrototypeToLowerCase(rt){return rt.toLowerCase()},StringPrototypeToUpperCase(rt){return rt.toUpperCase()},StringPrototypeTrim(rt){return rt.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(rt,st,ct){return rt.set(st,ct)},Uint8Array}}),Je=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=(we(),Z(ve)),st=Object.getPrototypeOf(async function(){}).constructor,ct=globalThis.Blob||rt.Blob,ut=typeof ct<"u"?function(gt){return gt instanceof ct}:function(gt){return!1},ft=class extends Error{constructor(gt){if(!Array.isArray(gt))throw new TypeError(`Expected input to be an Array, got ${typeof gt}`);let xt="";for(let $t=0;$t{gt=$t,xt=_t}),resolve:gt,reject:xt}},promisify(gt){return new Promise((xt,$t)=>{gt((_t,...wt)=>_t?$t(_t):xt(...wt))})},debuglog(){return function(){}},format(gt,...xt){return gt.replace(/%([sdifj])/g,function(...[$t,_t]){let wt=xt.shift();return _t==="f"?wt.toFixed(6):_t==="j"?JSON.stringify(wt):_t==="s"&&typeof wt=="object"?`${wt.constructor!==Object?wt.constructor.name:""} {}`.trim():wt.toString()})},inspect(gt){switch(typeof gt){case"string":if(gt.includes("'"))if(gt.includes('"')){if(!gt.includes("`")&&!gt.includes("${"))return`\`${gt}\``}else return`"${gt}"`;return`'${gt}'`;case"number":return isNaN(gt)?"NaN":Object.is(gt,-0)?String(gt):gt;case"bigint":return`${String(gt)}n`;case"boolean":case"undefined":return String(gt);case"object":return"{}"}},types:{isAsyncFunction(gt){return gt instanceof st},isArrayBufferView(gt){return ArrayBuffer.isView(gt)}},isBlob:ut},et.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Fi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{AbortController:rt,AbortSignal:st}=typeof self<"u"?self:typeof window<"u"?window:void 0;et.exports=rt,et.exports.AbortSignal=st,et.exports.default=rt}),Se=M$1((_e,et)=>{_$2(),v$1(),m$1();var{format:rt,inspect:st,AggregateError:ct}=Je(),ut=globalThis.AggregateError||ct,ft=Symbol("kIsNodeError"),gt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xt=/^([A-Z][a-z0-9]*)+$/,$t="__node_internal_",_t={};function wt(kt,Ft){if(!kt)throw new _t.ERR_INTERNAL_ASSERTION(Ft)}function Tt(kt){let Ft="",Ht=kt.length,Wt=kt[0]==="-"?1:0;for(;Ht>=Wt+4;Ht-=3)Ft=`_${kt.slice(Ht-3,Ht)}${Ft}`;return`${kt.slice(0,Ht)}${Ft}`}function Rt(kt,Ft,Ht){if(typeof Ft=="function")return wt(Ft.length<=Ht.length,`Code: ${kt}; The provided arguments length (${Ht.length}) does not match the required ones (${Ft.length}).`),Ft(...Ht);let Wt=(Ft.match(/%[dfijoOs]/g)||[]).length;return wt(Wt===Ht.length,`Code: ${kt}; The provided arguments length (${Ht.length}) does not match the required ones (${Wt}).`),Ht.length===0?Ft:rt(Ft,...Ht)}function It(kt,Ft,Ht){Ht||(Ht=Error);class Wt extends Ht{constructor(...qt){super(Rt(kt,Ft,qt))}toString(){return`${this.name} [${kt}]: ${this.message}`}}Object.defineProperties(Wt.prototype,{name:{value:Ht.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${kt}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),Wt.prototype.code=kt,Wt.prototype[ft]=!0,_t[kt]=Wt}function At(kt){let Ft=$t+kt.name;return Object.defineProperty(kt,"name",{value:Ft}),kt}function jt(kt,Ft){if(kt&&Ft&&kt!==Ft){if(Array.isArray(Ft.errors))return Ft.errors.push(kt),Ft;let Ht=new ut([Ft,kt],Ft.message);return Ht.code=Ft.code,Ht}return kt||Ft}var Nt=class extends Error{constructor(kt="The operation was aborted",Ft=void 0){if(Ft!==void 0&&typeof Ft!="object")throw new _t.ERR_INVALID_ARG_TYPE("options","Object",Ft);super(kt,Ft),this.code="ABORT_ERR",this.name="AbortError"}};It("ERR_ASSERTION","%s",Error),It("ERR_INVALID_ARG_TYPE",(kt,Ft,Ht)=>{wt(typeof kt=="string","'name' must be a string"),Array.isArray(Ft)||(Ft=[Ft]);let Wt="The ";kt.endsWith(" argument")?Wt+=`${kt} `:Wt+=`"${kt}" ${kt.includes(".")?"property":"argument"} `,Wt+="must be ";let Vt=[],qt=[],Xt=[];for(let Zt of Ft)wt(typeof Zt=="string","All expected entries have to be of type string"),gt.includes(Zt)?Vt.push(Zt.toLowerCase()):xt.test(Zt)?qt.push(Zt):(wt(Zt!=="object",'The value "object" should be written as "Object"'),Xt.push(Zt));if(qt.length>0){let Zt=Vt.indexOf("object");Zt!==-1&&(Vt.splice(Vt,Zt,1),qt.push("Object"))}if(Vt.length>0){switch(Vt.length){case 1:Wt+=`of type ${Vt[0]}`;break;case 2:Wt+=`one of type ${Vt[0]} or ${Vt[1]}`;break;default:{let Zt=Vt.pop();Wt+=`one of type ${Vt.join(", ")}, or ${Zt}`}}(qt.length>0||Xt.length>0)&&(Wt+=" or ")}if(qt.length>0){switch(qt.length){case 1:Wt+=`an instance of ${qt[0]}`;break;case 2:Wt+=`an instance of ${qt[0]} or ${qt[1]}`;break;default:{let Zt=qt.pop();Wt+=`an instance of ${qt.join(", ")}, or ${Zt}`}}Xt.length>0&&(Wt+=" or ")}switch(Xt.length){case 0:break;case 1:Xt[0].toLowerCase()!==Xt[0]&&(Wt+="an "),Wt+=`${Xt[0]}`;break;case 2:Wt+=`one of ${Xt[0]} or ${Xt[1]}`;break;default:{let Zt=Xt.pop();Wt+=`one of ${Xt.join(", ")}, or ${Zt}`}}if(Ht==null)Wt+=`. Received ${Ht}`;else if(typeof Ht=="function"&&Ht.name)Wt+=`. Received function ${Ht.name}`;else if(typeof Ht=="object"){var Gt;if((Gt=Ht.constructor)!==null&&Gt!==void 0&&Gt.name)Wt+=`. Received an instance of ${Ht.constructor.name}`;else{let Zt=st(Ht,{depth:-1});Wt+=`. Received ${Zt}`}}else{let Zt=st(Ht,{colors:!1});Zt.length>25&&(Zt=`${Zt.slice(0,25)}...`),Wt+=`. Received type ${typeof Ht} (${Zt})`}return Wt},TypeError),It("ERR_INVALID_ARG_VALUE",(kt,Ft,Ht="is invalid")=>{let Wt=st(Ft);return Wt.length>128&&(Wt=Wt.slice(0,128)+"..."),`The ${kt.includes(".")?"property":"argument"} '${kt}' ${Ht}. Received ${Wt}`},TypeError),It("ERR_INVALID_RETURN_VALUE",(kt,Ft,Ht)=>{var Wt;let Vt=Ht!=null&&(Wt=Ht.constructor)!==null&&Wt!==void 0&&Wt.name?`instance of ${Ht.constructor.name}`:`type ${typeof Ht}`;return`Expected ${kt} to be returned from the "${Ft}" function but got ${Vt}.`},TypeError),It("ERR_MISSING_ARGS",(...kt)=>{wt(kt.length>0,"At least one arg needs to be specified");let Ft,Ht=kt.length;switch(kt=(Array.isArray(kt)?kt:[kt]).map(Wt=>`"${Wt}"`).join(" or "),Ht){case 1:Ft+=`The ${kt[0]} argument`;break;case 2:Ft+=`The ${kt[0]} and ${kt[1]} arguments`;break;default:{let Wt=kt.pop();Ft+=`The ${kt.join(", ")}, and ${Wt} arguments`}break}return`${Ft} must be specified`},TypeError),It("ERR_OUT_OF_RANGE",(kt,Ft,Ht)=>{wt(Ft,'Missing "range" argument');let Wt;return Number.isInteger(Ht)&&Math.abs(Ht)>2**32?Wt=Tt(String(Ht)):typeof Ht=="bigint"?(Wt=String(Ht),(Ht>2n**32n||Ht<-(2n**32n))&&(Wt=Tt(Wt)),Wt+="n"):Wt=st(Ht),`The value of "${kt}" is out of range. It must be ${Ft}. Received ${Wt}`},RangeError),It("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),It("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),It("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),It("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),It("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),It("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),It("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),It("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),It("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),It("ERR_STREAM_WRITE_AFTER_END","write after end",Error),It("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),et.exports={AbortError:Nt,aggregateTwoErrors:At(jt),hideStackFrames:At,codes:_t}}),ui=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayIsArray:rt,ArrayPrototypeIncludes:st,ArrayPrototypeJoin:ct,ArrayPrototypeMap:ut,NumberIsInteger:ft,NumberIsNaN:gt,NumberMAX_SAFE_INTEGER:xt,NumberMIN_SAFE_INTEGER:$t,NumberParseInt:_t,ObjectPrototypeHasOwnProperty:wt,RegExpPrototypeExec:Tt,String:Rt,StringPrototypeToUpperCase:It,StringPrototypeTrim:At}=ce(),{hideStackFrames:jt,codes:{ERR_SOCKET_BAD_PORT:Nt,ERR_INVALID_ARG_TYPE:kt,ERR_INVALID_ARG_VALUE:Ft,ERR_OUT_OF_RANGE:Ht,ERR_UNKNOWN_SIGNAL:Wt}}=Se(),{normalizeEncoding:Vt}=Je(),{isAsyncFunction:qt,isArrayBufferView:Xt}=Je().types,Gt={};function Zt(Hr){return Hr===(Hr|0)}function er(Hr){return Hr===Hr>>>0}var lr=/^[0-7]+$/,cr="must be a 32-bit unsigned integer or an octal string";function ur(Hr,Vr,ln){if(typeof Hr>"u"&&(Hr=ln),typeof Hr=="string"){if(Tt(lr,Hr)===null)throw new Ft(Vr,Hr,cr);Hr=_t(Hr,8)}return pr(Hr,Vr),Hr}var fr=jt((Hr,Vr,ln=$t,Qr=xt)=>{if(typeof Hr!="number")throw new kt(Vr,"number",Hr);if(!ft(Hr))throw new Ht(Vr,"an integer",Hr);if(HrQr)throw new Ht(Vr,`>= ${ln} && <= ${Qr}`,Hr)}),hr=jt((Hr,Vr,ln=-2147483648,Qr=2147483647)=>{if(typeof Hr!="number")throw new kt(Vr,"number",Hr);if(!ft(Hr))throw new Ht(Vr,"an integer",Hr);if(HrQr)throw new Ht(Vr,`>= ${ln} && <= ${Qr}`,Hr)}),pr=jt((Hr,Vr,ln=!1)=>{if(typeof Hr!="number")throw new kt(Vr,"number",Hr);if(!ft(Hr))throw new Ht(Vr,"an integer",Hr);let Qr=ln?1:0,Zr=4294967295;if(HrZr)throw new Ht(Vr,`>= ${Qr} && <= ${Zr}`,Hr)});function dr(Hr,Vr){if(typeof Hr!="string")throw new kt(Vr,"string",Hr)}function yr(Hr,Vr,ln=void 0,Qr){if(typeof Hr!="number")throw new kt(Vr,"number",Hr);if(ln!=null&&HrQr||(ln!=null||Qr!=null)&>(Hr))throw new Ht(Vr,`${ln!=null?`>= ${ln}`:""}${ln!=null&&Qr!=null?" && ":""}${Qr!=null?`<= ${Qr}`:""}`,Hr)}var Sr=jt((Hr,Vr,ln)=>{if(!st(ln,Hr)){let Qr="must be one of: "+ct(ut(ln,Zr=>typeof Zr=="string"?`'${Zr}'`:Rt(Zr)),", ");throw new Ft(Vr,Hr,Qr)}});function br(Hr,Vr){if(typeof Hr!="boolean")throw new kt(Vr,"boolean",Hr)}function mr(Hr,Vr,ln){return Hr==null||!wt(Hr,Vr)?ln:Hr[Vr]}var Er=jt((Hr,Vr,ln=null)=>{let Qr=mr(ln,"allowArray",!1),Zr=mr(ln,"allowFunction",!1);if(!mr(ln,"nullable",!1)&&Hr===null||!Qr&&rt(Hr)||typeof Hr!="object"&&(!Zr||typeof Hr!="function"))throw new kt(Vr,"Object",Hr)}),Tr=jt((Hr,Vr)=>{if(Hr!=null&&typeof Hr!="object"&&typeof Hr!="function")throw new kt(Vr,"a dictionary",Hr)}),Mr=jt((Hr,Vr,ln=0)=>{if(!rt(Hr))throw new kt(Vr,"Array",Hr);if(Hr.length{if(!Xt(Hr))throw new kt(Vr,["Buffer","TypedArray","DataView"],Hr)});function Rr(Hr,Vr){let ln=Vt(Vr),Qr=Hr.length;if(ln==="hex"&&Qr%2!==0)throw new Ft("encoding",Vr,`is invalid for data of length ${Qr}`)}function Pr(Hr,Vr="Port",ln=!0){if(typeof Hr!="number"&&typeof Hr!="string"||typeof Hr=="string"&&At(Hr).length===0||+Hr!==+Hr>>>0||Hr>65535||Hr===0&&!ln)throw new Nt(Vr,Hr,ln);return Hr|0}var jr=jt((Hr,Vr)=>{if(Hr!==void 0&&(Hr===null||typeof Hr!="object"||!("aborted"in Hr)))throw new kt(Vr,"AbortSignal",Hr)}),kr=jt((Hr,Vr)=>{if(typeof Hr!="function")throw new kt(Vr,"Function",Hr)}),Fr=jt((Hr,Vr)=>{if(typeof Hr!="function"||qt(Hr))throw new kt(Vr,"Function",Hr)}),_r=jt((Hr,Vr)=>{if(Hr!==void 0)throw new kt(Vr,"undefined",Hr)});function Br(Hr,Vr,ln){if(!st(ln,Hr))throw new kt(Vr,`('${ct(ln,"|")}')`,Hr)}var Dr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Xr(Hr,Vr){if(typeof Hr>"u"||!Tt(Dr,Hr))throw new Ft(Vr,Hr,'must be an array or string of format "; rel=preload; as=style"')}function Kr(Hr){if(typeof Hr=="string")return Xr(Hr,"hints"),Hr;if(rt(Hr)){let Vr=Hr.length,ln="";if(Vr===0)return ln;for(let Qr=0;Qr; rel=preload; as=style"')}et.exports={isInt32:Zt,isUint32:er,parseFileMode:ur,validateArray:Mr,validateStringArray:Or,validateBooleanArray:wr,validateBoolean:br,validateBuffer:Nr,validateDictionary:Tr,validateEncoding:Rr,validateFunction:kr,validateInt32:hr,validateInteger:fr,validateNumber:yr,validateObject:Er,validateOneOf:Sr,validatePlainFunction:Fr,validatePort:Pr,validateSignalName:Cr,validateString:dr,validateUint32:pr,validateUndefined:_r,validateUnion:Br,validateAbortSignal:jr,validateLinkHeaderValue:Kr}}),Ut=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=et.exports={},st,ct;function ut(){throw new Error("setTimeout has not been defined")}function ft(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?st=setTimeout:st=ut}catch{st=ut}try{typeof clearTimeout=="function"?ct=clearTimeout:ct=ft}catch{ct=ft}})();function gt(Nt){if(st===setTimeout)return setTimeout(Nt,0);if((st===ut||!st)&&setTimeout)return st=setTimeout,setTimeout(Nt,0);try{return st(Nt,0)}catch{try{return st.call(null,Nt,0)}catch{return st.call(this,Nt,0)}}}function xt(Nt){if(ct===clearTimeout)return clearTimeout(Nt);if((ct===ft||!ct)&&clearTimeout)return ct=clearTimeout,clearTimeout(Nt);try{return ct(Nt)}catch{try{return ct.call(null,Nt)}catch{return ct.call(this,Nt)}}}var $t=[],_t=!1,wt,Tt=-1;function Rt(){!_t||!wt||(_t=!1,wt.length?$t=wt.concat($t):Tt=-1,$t.length&&It())}function It(){if(!_t){var Nt=gt(Rt);_t=!0;for(var kt=$t.length;kt;){for(wt=$t,$t=[];++Tt1)for(var Ft=1;Ft{_$2(),v$1(),m$1();var{Symbol:rt,SymbolAsyncIterator:st,SymbolIterator:ct,SymbolFor:ut}=ce(),ft=rt("kDestroyed"),gt=rt("kIsErrored"),xt=rt("kIsReadable"),$t=rt("kIsDisturbed"),_t=ut("nodejs.webstream.isClosedPromise"),wt=ut("nodejs.webstream.controllerErrorFunction");function Tt(mr,Er=!1){var Tr;return!!(mr&&typeof mr.pipe=="function"&&typeof mr.on=="function"&&(!Er||typeof mr.pause=="function"&&typeof mr.resume=="function")&&(!mr._writableState||((Tr=mr._readableState)===null||Tr===void 0?void 0:Tr.readable)!==!1)&&(!mr._writableState||mr._readableState))}function Rt(mr){var Er;return!!(mr&&typeof mr.write=="function"&&typeof mr.on=="function"&&(!mr._readableState||((Er=mr._writableState)===null||Er===void 0?void 0:Er.writable)!==!1))}function It(mr){return!!(mr&&typeof mr.pipe=="function"&&mr._readableState&&typeof mr.on=="function"&&typeof mr.write=="function")}function At(mr){return mr&&(mr._readableState||mr._writableState||typeof mr.write=="function"&&typeof mr.on=="function"||typeof mr.pipe=="function"&&typeof mr.on=="function")}function jt(mr){return!!(mr&&!At(mr)&&typeof mr.pipeThrough=="function"&&typeof mr.getReader=="function"&&typeof mr.cancel=="function")}function Nt(mr){return!!(mr&&!At(mr)&&typeof mr.getWriter=="function"&&typeof mr.abort=="function")}function kt(mr){return!!(mr&&!At(mr)&&typeof mr.readable=="object"&&typeof mr.writable=="object")}function Ft(mr){return jt(mr)||Nt(mr)||kt(mr)}function Ht(mr,Er){return mr==null?!1:Er===!0?typeof mr[st]=="function":Er===!1?typeof mr[ct]=="function":typeof mr[st]=="function"||typeof mr[ct]=="function"}function Wt(mr){if(!At(mr))return null;let Er=mr._writableState,Tr=mr._readableState,Mr=Er||Tr;return!!(mr.destroyed||mr[ft]||Mr!=null&&Mr.destroyed)}function Vt(mr){if(!Rt(mr))return null;if(mr.writableEnded===!0)return!0;let Er=mr._writableState;return Er!=null&&Er.errored?!1:typeof(Er==null?void 0:Er.ended)!="boolean"?null:Er.ended}function qt(mr,Er){if(!Rt(mr))return null;if(mr.writableFinished===!0)return!0;let Tr=mr._writableState;return Tr!=null&&Tr.errored?!1:typeof(Tr==null?void 0:Tr.finished)!="boolean"?null:!!(Tr.finished||Er===!1&&Tr.ended===!0&&Tr.length===0)}function Xt(mr){if(!Tt(mr))return null;if(mr.readableEnded===!0)return!0;let Er=mr._readableState;return!Er||Er.errored?!1:typeof(Er==null?void 0:Er.ended)!="boolean"?null:Er.ended}function Gt(mr,Er){if(!Tt(mr))return null;let Tr=mr._readableState;return Tr!=null&&Tr.errored?!1:typeof(Tr==null?void 0:Tr.endEmitted)!="boolean"?null:!!(Tr.endEmitted||Er===!1&&Tr.ended===!0&&Tr.length===0)}function Zt(mr){return mr&&mr[xt]!=null?mr[xt]:typeof(mr==null?void 0:mr.readable)!="boolean"?null:Wt(mr)?!1:Tt(mr)&&mr.readable&&!Gt(mr)}function er(mr){return typeof(mr==null?void 0:mr.writable)!="boolean"?null:Wt(mr)?!1:Rt(mr)&&mr.writable&&!Vt(mr)}function lr(mr,Er){return At(mr)?Wt(mr)?!0:!((Er==null?void 0:Er.readable)!==!1&&Zt(mr)||(Er==null?void 0:Er.writable)!==!1&&er(mr)):null}function cr(mr){var Er,Tr;return At(mr)?mr.writableErrored?mr.writableErrored:(Er=(Tr=mr._writableState)===null||Tr===void 0?void 0:Tr.errored)!==null&&Er!==void 0?Er:null:null}function ur(mr){var Er,Tr;return At(mr)?mr.readableErrored?mr.readableErrored:(Er=(Tr=mr._readableState)===null||Tr===void 0?void 0:Tr.errored)!==null&&Er!==void 0?Er:null:null}function fr(mr){if(!At(mr))return null;if(typeof mr.closed=="boolean")return mr.closed;let Er=mr._writableState,Tr=mr._readableState;return typeof(Er==null?void 0:Er.closed)=="boolean"||typeof(Tr==null?void 0:Tr.closed)=="boolean"?(Er==null?void 0:Er.closed)||(Tr==null?void 0:Tr.closed):typeof mr._closed=="boolean"&&hr(mr)?mr._closed:null}function hr(mr){return typeof mr._closed=="boolean"&&typeof mr._defaultKeepAlive=="boolean"&&typeof mr._removedConnection=="boolean"&&typeof mr._removedContLen=="boolean"}function pr(mr){return typeof mr._sent100=="boolean"&&hr(mr)}function dr(mr){var Er;return typeof mr._consuming=="boolean"&&typeof mr._dumped=="boolean"&&((Er=mr.req)===null||Er===void 0?void 0:Er.upgradeOrConnect)===void 0}function yr(mr){if(!At(mr))return null;let Er=mr._writableState,Tr=mr._readableState,Mr=Er||Tr;return!Mr&&pr(mr)||!!(Mr&&Mr.autoDestroy&&Mr.emitClose&&Mr.closed===!1)}function Sr(mr){var Er;return!!(mr&&((Er=mr[$t])!==null&&Er!==void 0?Er:mr.readableDidRead||mr.readableAborted))}function br(mr){var Er,Tr,Mr,Or,wr,Cr,Nr,Rr,Pr,jr;return!!(mr&&((Er=(Tr=(Mr=(Or=(wr=(Cr=mr[gt])!==null&&Cr!==void 0?Cr:mr.readableErrored)!==null&&wr!==void 0?wr:mr.writableErrored)!==null&&Or!==void 0?Or:(Nr=mr._readableState)===null||Nr===void 0?void 0:Nr.errorEmitted)!==null&&Mr!==void 0?Mr:(Rr=mr._writableState)===null||Rr===void 0?void 0:Rr.errorEmitted)!==null&&Tr!==void 0?Tr:(Pr=mr._readableState)===null||Pr===void 0?void 0:Pr.errored)!==null&&Er!==void 0?Er:!((jr=mr._writableState)===null||jr===void 0)&&jr.errored))}et.exports={kDestroyed:ft,isDisturbed:Sr,kIsDisturbed:$t,isErrored:br,kIsErrored:gt,isReadable:Zt,kIsReadable:xt,kIsClosedPromise:_t,kControllerErrorFunction:wt,isClosed:fr,isDestroyed:Wt,isDuplexNodeStream:It,isFinished:lr,isIterable:Ht,isReadableNodeStream:Tt,isReadableStream:jt,isReadableEnded:Xt,isReadableFinished:Gt,isReadableErrored:ur,isNodeStream:At,isWebStream:Ft,isWritable:er,isWritableNodeStream:Rt,isWritableStream:Nt,isWritableEnded:Vt,isWritableFinished:qt,isWritableErrored:cr,isServerRequest:dr,isServerResponse:pr,willEmitClose:yr,isTransformStream:kt}}),mt=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{AbortError:st,codes:ct}=Se(),{ERR_INVALID_ARG_TYPE:ut,ERR_STREAM_PREMATURE_CLOSE:ft}=ct,{kEmptyObject:gt,once:xt}=Je(),{validateAbortSignal:$t,validateFunction:_t,validateObject:wt,validateBoolean:Tt}=ui(),{Promise:Rt,PromisePrototypeThen:It}=ce(),{isClosed:At,isReadable:jt,isReadableNodeStream:Nt,isReadableStream:kt,isReadableFinished:Ft,isReadableErrored:Ht,isWritable:Wt,isWritableNodeStream:Vt,isWritableStream:qt,isWritableFinished:Xt,isWritableErrored:Gt,isNodeStream:Zt,willEmitClose:er,kIsClosedPromise:lr}=tt();function cr(dr){return dr.setHeader&&typeof dr.abort=="function"}var ur=()=>{};function fr(dr,yr,Sr){var br,mr;if(arguments.length===2?(Sr=yr,yr=gt):yr==null?yr=gt:wt(yr,"options"),_t(Sr,"callback"),$t(yr.signal,"options.signal"),Sr=xt(Sr),kt(dr)||qt(dr))return hr(dr,yr,Sr);if(!Zt(dr))throw new ut("stream",["ReadableStream","WritableStream","Stream"],dr);let Er=(br=yr.readable)!==null&&br!==void 0?br:Nt(dr),Tr=(mr=yr.writable)!==null&&mr!==void 0?mr:Vt(dr),Mr=dr._writableState,Or=dr._readableState,wr=()=>{dr.writable||Rr()},Cr=er(dr)&&Nt(dr)===Er&&Vt(dr)===Tr,Nr=Xt(dr,!1),Rr=()=>{Nr=!0,dr.destroyed&&(Cr=!1),!(Cr&&(!dr.readable||Er))&&(!Er||Pr)&&Sr.call(dr)},Pr=Ft(dr,!1),jr=()=>{Pr=!0,dr.destroyed&&(Cr=!1),!(Cr&&(!dr.writable||Tr))&&(!Tr||Nr)&&Sr.call(dr)},kr=Kr=>{Sr.call(dr,Kr)},Fr=At(dr),_r=()=>{Fr=!0;let Kr=Gt(dr)||Ht(dr);if(Kr&&typeof Kr!="boolean")return Sr.call(dr,Kr);if(Er&&!Pr&&Nt(dr,!0)&&!Ft(dr,!1))return Sr.call(dr,new ft);if(Tr&&!Nr&&!Xt(dr,!1))return Sr.call(dr,new ft);Sr.call(dr)},Br=()=>{Fr=!0;let Kr=Gt(dr)||Ht(dr);if(Kr&&typeof Kr!="boolean")return Sr.call(dr,Kr);Sr.call(dr)},Dr=()=>{dr.req.on("finish",Rr)};cr(dr)?(dr.on("complete",Rr),Cr||dr.on("abort",_r),dr.req?Dr():dr.on("request",Dr)):Tr&&!Mr&&(dr.on("end",wr),dr.on("close",wr)),!Cr&&typeof dr.aborted=="boolean"&&dr.on("aborted",_r),dr.on("end",jr),dr.on("finish",Rr),yr.error!==!1&&dr.on("error",kr),dr.on("close",_r),Fr?rt.nextTick(_r):Mr!=null&&Mr.errorEmitted||Or!=null&&Or.errorEmitted?Cr||rt.nextTick(Br):(!Er&&(!Cr||jt(dr))&&(Nr||Wt(dr)===!1)||!Tr&&(!Cr||Wt(dr))&&(Pr||jt(dr)===!1)||Or&&dr.req&&dr.aborted)&&rt.nextTick(Br);let Xr=()=>{Sr=ur,dr.removeListener("aborted",_r),dr.removeListener("complete",Rr),dr.removeListener("abort",_r),dr.removeListener("request",Dr),dr.req&&dr.req.removeListener("finish",Rr),dr.removeListener("end",wr),dr.removeListener("close",wr),dr.removeListener("finish",Rr),dr.removeListener("end",jr),dr.removeListener("error",kr),dr.removeListener("close",_r)};if(yr.signal&&!Fr){let Kr=()=>{let Hr=Sr;Xr(),Hr.call(dr,new st(void 0,{cause:yr.signal.reason}))};if(yr.signal.aborted)rt.nextTick(Kr);else{let Hr=Sr;Sr=xt((...Vr)=>{yr.signal.removeEventListener("abort",Kr),Hr.apply(dr,Vr)}),yr.signal.addEventListener("abort",Kr)}}return Xr}function hr(dr,yr,Sr){let br=!1,mr=ur;if(yr.signal)if(mr=()=>{br=!0,Sr.call(dr,new st(void 0,{cause:yr.signal.reason}))},yr.signal.aborted)rt.nextTick(mr);else{let Tr=Sr;Sr=xt((...Mr)=>{yr.signal.removeEventListener("abort",mr),Tr.apply(dr,Mr)}),yr.signal.addEventListener("abort",mr)}let Er=(...Tr)=>{br||rt.nextTick(()=>Sr.apply(dr,Tr))};return It(dr[lr].promise,Er,Er),ur}function pr(dr,yr){var Sr;let br=!1;return yr===null&&(yr=gt),(Sr=yr)!==null&&Sr!==void 0&&Sr.cleanup&&(Tt(yr.cleanup,"cleanup"),br=yr.cleanup),new Rt((mr,Er)=>{let Tr=fr(dr,yr,Mr=>{br&&Tr(),Mr?Er(Mr):mr()})})}et.exports=fr,et.exports.finished=pr}),tr=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{aggregateTwoErrors:st,codes:{ERR_MULTIPLE_CALLBACK:ct},AbortError:ut}=Se(),{Symbol:ft}=ce(),{kDestroyed:gt,isDestroyed:xt,isFinished:$t,isServerRequest:_t}=tt(),wt=ft("kDestroy"),Tt=ft("kConstruct");function Rt(lr,cr,ur){lr&&(lr.stack,cr&&!cr.errored&&(cr.errored=lr),ur&&!ur.errored&&(ur.errored=lr))}function It(lr,cr){let ur=this._readableState,fr=this._writableState,hr=fr||ur;return fr!=null&&fr.destroyed||ur!=null&&ur.destroyed?(typeof cr=="function"&&cr(),this):(Rt(lr,fr,ur),fr&&(fr.destroyed=!0),ur&&(ur.destroyed=!0),hr.constructed?At(this,lr,cr):this.once(wt,function(pr){At(this,st(pr,lr),cr)}),this)}function At(lr,cr,ur){let fr=!1;function hr(pr){if(fr)return;fr=!0;let dr=lr._readableState,yr=lr._writableState;Rt(pr,yr,dr),yr&&(yr.closed=!0),dr&&(dr.closed=!0),typeof ur=="function"&&ur(pr),pr?rt.nextTick(jt,lr,pr):rt.nextTick(Nt,lr)}try{lr._destroy(cr||null,hr)}catch(pr){hr(pr)}}function jt(lr,cr){kt(lr,cr),Nt(lr)}function Nt(lr){let cr=lr._readableState,ur=lr._writableState;ur&&(ur.closeEmitted=!0),cr&&(cr.closeEmitted=!0),(ur!=null&&ur.emitClose||cr!=null&&cr.emitClose)&&lr.emit("close")}function kt(lr,cr){let ur=lr._readableState,fr=lr._writableState;fr!=null&&fr.errorEmitted||ur!=null&&ur.errorEmitted||(fr&&(fr.errorEmitted=!0),ur&&(ur.errorEmitted=!0),lr.emit("error",cr))}function Ft(){let lr=this._readableState,cr=this._writableState;lr&&(lr.constructed=!0,lr.closed=!1,lr.closeEmitted=!1,lr.destroyed=!1,lr.errored=null,lr.errorEmitted=!1,lr.reading=!1,lr.ended=lr.readable===!1,lr.endEmitted=lr.readable===!1),cr&&(cr.constructed=!0,cr.destroyed=!1,cr.closed=!1,cr.closeEmitted=!1,cr.errored=null,cr.errorEmitted=!1,cr.finalCalled=!1,cr.prefinished=!1,cr.ended=cr.writable===!1,cr.ending=cr.writable===!1,cr.finished=cr.writable===!1)}function Ht(lr,cr,ur){let fr=lr._readableState,hr=lr._writableState;if(hr!=null&&hr.destroyed||fr!=null&&fr.destroyed)return this;fr!=null&&fr.autoDestroy||hr!=null&&hr.autoDestroy?lr.destroy(cr):cr&&(cr.stack,hr&&!hr.errored&&(hr.errored=cr),fr&&!fr.errored&&(fr.errored=cr),ur?rt.nextTick(kt,lr,cr):kt(lr,cr))}function Wt(lr,cr){if(typeof lr._construct!="function")return;let ur=lr._readableState,fr=lr._writableState;ur&&(ur.constructed=!1),fr&&(fr.constructed=!1),lr.once(Tt,cr),!(lr.listenerCount(Tt)>1)&&rt.nextTick(Vt,lr)}function Vt(lr){let cr=!1;function ur(fr){if(cr){Ht(lr,fr??new ct);return}cr=!0;let hr=lr._readableState,pr=lr._writableState,dr=pr||hr;hr&&(hr.constructed=!0),pr&&(pr.constructed=!0),dr.destroyed?lr.emit(wt,fr):fr?Ht(lr,fr,!0):rt.nextTick(qt,lr)}try{lr._construct(fr=>{rt.nextTick(ur,fr)})}catch(fr){rt.nextTick(ur,fr)}}function qt(lr){lr.emit(Tt)}function Xt(lr){return(lr==null?void 0:lr.setHeader)&&typeof lr.abort=="function"}function Gt(lr){lr.emit("close")}function Zt(lr,cr){lr.emit("error",cr),rt.nextTick(Gt,lr)}function er(lr,cr){!lr||xt(lr)||(!cr&&!$t(lr)&&(cr=new ut),_t(lr)?(lr.socket=null,lr.destroy(cr)):Xt(lr)?lr.abort():Xt(lr.req)?lr.req.abort():typeof lr.destroy=="function"?lr.destroy(cr):typeof lr.close=="function"?lr.close():cr?rt.nextTick(Zt,lr,cr):rt.nextTick(Gt,lr),lr.destroyed||(lr[gt]=!0))}et.exports={construct:Wt,destroyer:er,destroy:It,undestroy:Ft,errorOrDestroy:Ht}});function Y$1(){Y$1.init.call(this)}function Qi(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}function rc(_e){return _e._maxListeners===void 0?Y$1.defaultMaxListeners:_e._maxListeners}function Yf(_e,et,rt,st){var ct,ut,ft,gt;if(Qi(rt),(ut=_e._events)===void 0?(ut=_e._events=Object.create(null),_e._eventsCount=0):(ut.newListener!==void 0&&(_e.emit("newListener",et,rt.listener?rt.listener:rt),ut=_e._events),ft=ut[et]),ft===void 0)ft=ut[et]=rt,++_e._eventsCount;else if(typeof ft=="function"?ft=ut[et]=st?[rt,ft]:[ft,rt]:st?ft.unshift(rt):ft.push(rt),(ct=rc(_e))>0&&ft.length>ct&&!ft.warned){ft.warned=!0;var xt=new Error("Possible EventEmitter memory leak detected. "+ft.length+" "+String(et)+" listeners added. Use emitter.setMaxListeners() to increase limit");xt.name="MaxListenersExceededWarning",xt.emitter=_e,xt.type=et,xt.count=ft.length,gt=xt,console&&console.warn&&console.warn(gt)}return _e}function Db(){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 Jf(_e,et,rt){var st={fired:!1,wrapFn:void 0,target:_e,type:et,listener:rt},ct=Db.bind(st);return ct.listener=rt,st.wrapFn=ct,ct}function Xf(_e,et,rt){var st=_e._events;if(st===void 0)return[];var ct=st[et];return ct===void 0?[]:typeof ct=="function"?rt?[ct.listener||ct]:[ct]:rt?function(ut){for(var ft=new Array(ut.length),gt=0;gt{_$2(),v$1(),m$1(),Lr=typeof Reflect=="object"?Reflect:null,Kf=Lr&&typeof Lr.apply=="function"?Lr.apply:function(_e,et,rt){return Function.prototype.apply.call(_e,et,rt)},tc=Lr&&typeof Lr.ownKeys=="function"?Lr.ownKeys:Object.getOwnPropertySymbols?function(_e){return Object.getOwnPropertyNames(_e).concat(Object.getOwnPropertySymbols(_e))}:function(_e){return Object.getOwnPropertyNames(_e)},Gf=Number.isNaN||function(_e){return _e!=_e},ec=Y$1,Y$1.EventEmitter=Y$1,Y$1.prototype._events=void 0,Y$1.prototype._eventsCount=0,Y$1.prototype._maxListeners=void 0,Qf=10,Object.defineProperty(Y$1,"defaultMaxListeners",{enumerable:!0,get:function(){return Qf},set:function(_e){if(typeof _e!="number"||_e<0||Gf(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");Qf=_e}}),Y$1.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},Y$1.prototype.setMaxListeners=function(_e){if(typeof _e!="number"||_e<0||Gf(_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},Y$1.prototype.getMaxListeners=function(){return rc(this)},Y$1.prototype.emit=function(_e){for(var et=[],rt=1;rt0&&(ut=et[0]),ut instanceof Error)throw ut;var ft=new Error("Unhandled error."+(ut?" ("+ut.message+")":""));throw ft.context=ut,ft}var gt=ct[_e];if(gt===void 0)return!1;if(typeof gt=="function")Kf(gt,this,et);else{var xt=gt.length,$t=ic(gt,xt);for(rt=0;rt=0;ut--)if(rt[ut]===et||rt[ut].listener===et){ft=rt[ut].listener,ct=ut;break}if(ct<0)return this;ct===0?rt.shift():function(gt,xt){for(;xt+1=0;st--)this.removeListener(_e,et[st]);return this},Y$1.prototype.listeners=function(_e){return Xf(this,_e,!0)},Y$1.prototype.rawListeners=function(_e){return Xf(this,_e,!1)},Y$1.listenerCount=function(_e,et){return typeof _e.listenerCount=="function"?_e.listenerCount(et):Zf.call(_e,et)},Y$1.prototype.listenerCount=Zf,Y$1.prototype.eventNames=function(){return this._eventsCount>0?tc(this._events):[]},Be=ec,Be.EventEmitter,Be.defaultMaxListeners,Be.init,Be.listenerCount,Be.EventEmitter,Be.defaultMaxListeners,Be.init,Be.listenerCount}),rr={};Qt(rr,{EventEmitter:()=>jb,default:()=>Be,defaultMaxListeners:()=>Fb,init:()=>Wb,listenerCount:()=>$b,on:()=>Hb,once:()=>Vb});var jb,Fb,Wb,$b,Hb,Vb,ir=be$1(()=>{_$2(),v$1(),m$1(),Ns(),Ns(),Be.once=function(_e,et){return new Promise((rt,st)=>{function ct(...ft){ut!==void 0&&_e.removeListener("error",ut),rt(ft)}let ut;et!=="error"&&(ut=ft=>{_e.removeListener(name,ct),st(ft)},_e.once("error",ut)),_e.once(et,ct)})},Be.on=function(_e,et){let rt=[],st=[],ct=null,ut=!1,ft={async next(){let $t=rt.shift();if($t)return createIterResult($t,!1);if(ct){let _t=Promise.reject(ct);return ct=null,_t}return ut?createIterResult(void 0,!0):new Promise((_t,wt)=>st.push({resolve:_t,reject:wt}))},async return(){_e.removeListener(et,gt),_e.removeListener("error",xt),ut=!0;for(let $t of st)$t.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw($t){ct=$t,_e.removeListener(et,gt),_e.removeListener("error",xt)},[Symbol.asyncIterator](){return this}};return _e.on(et,gt),_e.on("error",xt),ft;function gt(...$t){let _t=st.shift();_t?_t.resolve(createIterResult($t,!1)):rt.push($t)}function xt($t){ut=!0;let _t=st.shift();_t?_t.reject($t):ct=$t,ft.return()}},{EventEmitter:jb,defaultMaxListeners:Fb,init:Wb,listenerCount:$b,on:Hb,once:Vb}=Be}),Xi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayIsArray:rt,ObjectSetPrototypeOf:st}=ce(),{EventEmitter:ct}=(ir(),Z(rr));function ut(gt){ct.call(this,gt)}st(ut.prototype,ct.prototype),st(ut,ct),ut.prototype.pipe=function(gt,xt){let $t=this;function _t(Nt){gt.writable&>.write(Nt)===!1&&$t.pause&&$t.pause()}$t.on("data",_t);function wt(){$t.readable&&$t.resume&&$t.resume()}gt.on("drain",wt),!gt._isStdio&&(!xt||xt.end!==!1)&&($t.on("end",Rt),$t.on("close",It));let Tt=!1;function Rt(){Tt||(Tt=!0,gt.end())}function It(){Tt||(Tt=!0,typeof gt.destroy=="function"&>.destroy())}function At(Nt){jt(),ct.listenerCount(this,"error")===0&&this.emit("error",Nt)}ft($t,"error",At),ft(gt,"error",At);function jt(){$t.removeListener("data",_t),gt.removeListener("drain",wt),$t.removeListener("end",Rt),$t.removeListener("close",It),$t.removeListener("error",At),gt.removeListener("error",At),$t.removeListener("end",jt),$t.removeListener("close",jt),gt.removeListener("close",jt)}return $t.on("end",jt),$t.on("close",jt),gt.on("close",jt),gt.emit("pipe",$t),gt};function ft(gt,xt,$t){if(typeof gt.prependListener=="function")return gt.prependListener(xt,$t);!gt._events||!gt._events[xt]?gt.on(xt,$t):rt(gt._events[xt])?gt._events[xt].unshift($t):gt._events[xt]=[$t,gt._events[xt]]}et.exports={Stream:ut,prependListener:ft}}),fi=M$1((_e,et)=>{_$2(),v$1(),m$1();var{AbortError:rt,codes:st}=Se(),{isNodeStream:ct,isWebStream:ut,kControllerErrorFunction:ft}=tt(),gt=mt(),{ERR_INVALID_ARG_TYPE:xt}=st,$t=(_t,wt)=>{if(typeof _t!="object"||!("aborted"in _t))throw new xt(wt,"AbortSignal",_t)};et.exports.addAbortSignal=function(_t,wt){if($t(_t,"signal"),!ct(wt)&&!ut(wt))throw new xt("stream",["ReadableStream","WritableStream","Stream"],wt);return et.exports.addAbortSignalNoValidate(_t,wt)},et.exports.addAbortSignalNoValidate=function(_t,wt){if(typeof _t!="object"||!("aborted"in _t))return wt;let Tt=ct(wt)?()=>{wt.destroy(new rt(void 0,{cause:_t.reason}))}:()=>{wt[ft](new rt(void 0,{cause:_t.reason}))};return _t.aborted?Tt():(_t.addEventListener("abort",Tt),gt(wt,()=>_t.removeEventListener("abort",Tt))),wt}}),cc=M$1((_e,et)=>{_$2(),v$1(),m$1();var{StringPrototypeSlice:rt,SymbolIterator:st,TypedArrayPrototypeSet:ct,Uint8Array:ut}=ce(),{Buffer:ft}=(we(),Z(ve)),{inspect:gt}=Je();et.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(xt){let $t={data:xt,next:null};this.length>0?this.tail.next=$t:this.head=$t,this.tail=$t,++this.length}unshift(xt){let $t={data:xt,next:this.head};this.length===0&&(this.tail=$t),this.head=$t,++this.length}shift(){if(this.length===0)return;let xt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,xt}clear(){this.head=this.tail=null,this.length=0}join(xt){if(this.length===0)return"";let $t=this.head,_t=""+$t.data;for(;($t=$t.next)!==null;)_t+=xt+$t.data;return _t}concat(xt){if(this.length===0)return ft.alloc(0);let $t=ft.allocUnsafe(xt>>>0),_t=this.head,wt=0;for(;_t;)ct($t,_t.data,wt),wt+=_t.data.length,_t=_t.next;return $t}consume(xt,$t){let _t=this.head.data;if(xt<_t.length){let wt=_t.slice(0,xt);return this.head.data=_t.slice(xt),wt}return xt===_t.length?this.shift():$t?this._getString(xt):this._getBuffer(xt)}first(){return this.head.data}*[st](){for(let xt=this.head;xt;xt=xt.next)yield xt.data}_getString(xt){let $t="",_t=this.head,wt=0;do{let Tt=_t.data;if(xt>Tt.length)$t+=Tt,xt-=Tt.length;else{xt===Tt.length?($t+=Tt,++wt,_t.next?this.head=_t.next:this.head=this.tail=null):($t+=rt(Tt,0,xt),this.head=_t,_t.data=rt(Tt,xt));break}++wt}while((_t=_t.next)!==null);return this.length-=wt,$t}_getBuffer(xt){let $t=ft.allocUnsafe(xt),_t=xt,wt=this.head,Tt=0;do{let Rt=wt.data;if(xt>Rt.length)ct($t,Rt,_t-xt),xt-=Rt.length;else{xt===Rt.length?(ct($t,Rt,_t-xt),++Tt,wt.next?this.head=wt.next:this.head=this.tail=null):(ct($t,new ut(Rt.buffer,Rt.byteOffset,xt),_t-xt),this.head=wt,wt.data=Rt.slice(xt));break}++Tt}while((wt=wt.next)!==null);return this.length-=Tt,$t}[Symbol.for("nodejs.util.inspect.custom")](xt,$t){return gt(this,{...$t,depth:0,customInspect:!1})}}}),tn=M$1((_e,et)=>{_$2(),v$1(),m$1();var{MathFloor:rt,NumberIsInteger:st}=ce(),{ERR_INVALID_ARG_VALUE:ct}=Se().codes;function ut(xt,$t,_t){return xt.highWaterMark!=null?xt.highWaterMark:$t?xt[_t]:null}function ft(xt){return xt?16:16*1024}function gt(xt,$t,_t,wt){let Tt=ut($t,wt,_t);if(Tt!=null){if(!st(Tt)||Tt<0){let Rt=wt?`options.${_t}`:"options.highWaterMark";throw new ct(Rt,Tt)}return rt(Tt)}return ft(xt.objectMode)}et.exports={getHighWaterMark:gt,getDefaultHighWaterMark:ft}});function yc(_e){var et=_e.length;if(et%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var rt=_e.indexOf("=");return rt===-1&&(rt=et),[rt,rt===et?0:4-rt%4]}function ow(_e,et,rt){for(var st,ct,ut=[],ft=et;ft>18&63]+$e[ct>>12&63]+$e[ct>>6&63]+$e[63&ct]);return ut.join("")}function vt(_e){if(_e>2147483647)throw new RangeError('The value "'+_e+'" is invalid for option "size"');var et=new Uint8Array(_e);return Object.setPrototypeOf(et,k$2.prototype),et}function k$2(_e,et,rt){if(typeof _e=="number"){if(typeof et=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $s(_e)}return Tc(_e,et,rt)}function Tc(_e,et,rt){if(typeof _e=="string")return function(ut,ft){if(typeof ft=="string"&&ft!==""||(ft="utf8"),!k$2.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var gt=0|Cc(ut,ft),xt=vt(gt),$t=xt.write(ut,ft);return $t!==gt&&(xt=xt.slice(0,$t)),xt}(_e,et);if(ArrayBuffer.isView(_e))return js(_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(Et$1(_e,ArrayBuffer)||_e&&Et$1(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Et$1(_e,SharedArrayBuffer)||_e&&Et$1(_e.buffer,SharedArrayBuffer)))return wc(_e,et,rt);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var st=_e.valueOf&&_e.valueOf();if(st!=null&&st!==_e)return k$2.from(st,et,rt);var ct=function(ut){if(k$2.isBuffer(ut)){var ft=0|zs(ut.length),gt=vt(ft);return gt.length===0||ut.copy(gt,0,0,ft),gt}if(ut.length!==void 0)return typeof ut.length!="number"||Ks(ut.length)?vt(0):js(ut);if(ut.type==="Buffer"&&Array.isArray(ut.data))return js(ut.data)}(_e);if(ct)return ct;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return k$2.from(_e[Symbol.toPrimitive]("string"),et,rt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e)}function Rc(_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 $s(_e){return Rc(_e),vt(_e<0?0:0|zs(_e))}function js(_e){for(var et=_e.length<0?0:0|zs(_e.length),rt=vt(et),st=0;st=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|_e}function Cc(_e,et){if(k$2.isBuffer(_e))return _e.length;if(ArrayBuffer.isView(_e)||Et$1(_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 rt=_e.length,st=arguments.length>2&&arguments[2]===!0;if(!st&&rt===0)return 0;for(var ct=!1;;)switch(et){case"ascii":case"latin1":case"binary":return rt;case"utf8":case"utf-8":return Hs(_e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*rt;case"hex":return rt>>>1;case"base64":return xc(_e).length;default:if(ct)return st?-1:Hs(_e).length;et=(""+et).toLowerCase(),ct=!0}}function lw(_e,et,rt){var st=!1;if((et===void 0||et<0)&&(et=0),et>this.length||((rt===void 0||rt>this.length)&&(rt=this.length),rt<=0)||(rt>>>=0)<=(et>>>=0))return"";for(_e||(_e="utf8");;)switch(_e){case"hex":return bw(this,et,rt);case"utf8":case"utf-8":return Pc(this,et,rt);case"ascii":return gw(this,et,rt);case"latin1":case"binary":return yw(this,et,rt);case"base64":return pw(this,et,rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ww(this,et,rt);default:if(st)throw new TypeError("Unknown encoding: "+_e);_e=(_e+"").toLowerCase(),st=!0}}function sr(_e,et,rt){var st=_e[et];_e[et]=_e[rt],_e[rt]=st}function _c(_e,et,rt,st,ct){if(_e.length===0)return-1;if(typeof rt=="string"?(st=rt,rt=0):rt>2147483647?rt=2147483647:rt<-2147483648&&(rt=-2147483648),Ks(rt=+rt)&&(rt=ct?0:_e.length-1),rt<0&&(rt=_e.length+rt),rt>=_e.length){if(ct)return-1;rt=_e.length-1}else if(rt<0){if(!ct)return-1;rt=0}if(typeof et=="string"&&(et=k$2.from(et,st)),k$2.isBuffer(et))return et.length===0?-1:mc(_e,et,rt,st,ct);if(typeof et=="number")return et&=255,typeof Uint8Array.prototype.indexOf=="function"?ct?Uint8Array.prototype.indexOf.call(_e,et,rt):Uint8Array.prototype.lastIndexOf.call(_e,et,rt):mc(_e,[et],rt,st,ct);throw new TypeError("val must be string, number or Buffer")}function mc(_e,et,rt,st,ct){var ut,ft=1,gt=_e.length,xt=et.length;if(st!==void 0&&((st=String(st).toLowerCase())==="ucs2"||st==="ucs-2"||st==="utf16le"||st==="utf-16le")){if(_e.length<2||et.length<2)return-1;ft=2,gt/=2,xt/=2,rt/=2}function $t(Rt,It){return ft===1?Rt[It]:Rt.readUInt16BE(It*ft)}if(ct){var _t=-1;for(ut=rt;utgt&&(rt=gt-xt),ut=rt;ut>=0;ut--){for(var wt=!0,Tt=0;Ttct&&(st=ct):st=ct;var ut=et.length;st>ut/2&&(st=ut/2);for(var ft=0;ft>8,xt=ft%256,$t.push(xt),$t.push(gt);return $t}(et,_e.length-rt),_e,rt,st)}function pw(_e,et,rt){return et===0&&rt===_e.length?Ws.fromByteArray(_e):Ws.fromByteArray(_e.slice(et,rt))}function Pc(_e,et,rt){rt=Math.min(_e.length,rt);for(var st=[],ct=et;ct239?4:$t>223?3:$t>191?2:1;if(ct+wt<=rt)switch(wt){case 1:$t<128&&(_t=$t);break;case 2:(192&(ut=_e[ct+1]))==128&&(xt=(31&$t)<<6|63&ut)>127&&(_t=xt);break;case 3:ut=_e[ct+1],ft=_e[ct+2],(192&ut)==128&&(192&ft)==128&&(xt=(15&$t)<<12|(63&ut)<<6|63&ft)>2047&&(xt<55296||xt>57343)&&(_t=xt);break;case 4:ut=_e[ct+1],ft=_e[ct+2],gt=_e[ct+3],(192&ut)==128&&(192&ft)==128&&(192>)==128&&(xt=(15&$t)<<18|(63&ut)<<12|(63&ft)<<6|63>)>65535&&xt<1114112&&(_t=xt)}_t===null?(_t=65533,wt=1):_t>65535&&(_t-=65536,st.push(_t>>>10&1023|55296),_t=56320|1023&_t),st.push(_t),ct+=wt}return function(Tt){var Rt=Tt.length;if(Rt<=4096)return String.fromCharCode.apply(String,Tt);for(var It="",At=0;Atst)&&(rt=st);for(var ct="",ut=et;utrt)throw new RangeError("Trying to access beyond buffer length")}function Pe(_e,et,rt,st,ct,ut){if(!k$2.isBuffer(_e))throw new TypeError('"buffer" argument must be a Buffer instance');if(et>ct||et_e.length)throw new RangeError("Index out of range")}function Oc(_e,et,rt,st,ct,ut){if(rt+st>_e.length)throw new RangeError("Index out of range");if(rt<0)throw new RangeError("Index out of range")}function vc(_e,et,rt,st,ct){return et=+et,rt>>>=0,ct||Oc(_e,0,rt,4),Ur.write(_e,et,rt,st,23,4),rt+4}function Ec(_e,et,rt,st,ct){return et=+et,rt>>>=0,ct||Oc(_e,0,rt,8),Ur.write(_e,et,rt,st,52,8),rt+8}function Hs(_e,et){var rt;et=et||1/0;for(var st=_e.length,ct=null,ut=[],ft=0;ft55295&&rt<57344){if(!ct){if(rt>56319){(et-=3)>-1&&ut.push(239,191,189);continue}if(ft+1===st){(et-=3)>-1&&ut.push(239,191,189);continue}ct=rt;continue}if(rt<56320){(et-=3)>-1&&ut.push(239,191,189),ct=rt;continue}rt=65536+(ct-55296<<10|rt-56320)}else ct&&(et-=3)>-1&&ut.push(239,191,189);if(ct=null,rt<128){if((et-=1)<0)break;ut.push(rt)}else if(rt<2048){if((et-=2)<0)break;ut.push(rt>>6|192,63&rt|128)}else if(rt<65536){if((et-=3)<0)break;ut.push(rt>>12|224,rt>>6&63|128,63&rt|128)}else{if(!(rt<1114112))throw new Error("Invalid code point");if((et-=4)<0)break;ut.push(rt>>18|240,rt>>12&63|128,rt>>6&63|128,63&rt|128)}}return ut}function xc(_e){return Ws.toByteArray(function(et){if((et=(et=et.split("=")[0]).trim().replace(_w,"")).length<2)return"";for(;et.length%4!=0;)et+="=";return et}(_e))}function on$1(_e,et,rt,st){for(var ct=0;ct=et.length||ct>=_e.length);++ct)et[ct+rt]=_e[ct];return ct}function Et$1(_e,et){return _e instanceof et||_e!=null&&_e.constructor!=null&&_e.constructor.name!=null&&_e.constructor.name===et.name}function Ks(_e){return _e!=_e}function Sc(_e,et){for(var rt in _e)et[rt]=_e[rt]}function or(_e,et,rt){return it$1(_e,et,rt)}function ci(_e){var et;switch(this.encoding=function(rt){var st=function(ct){if(!ct)return"utf8";for(var ut;;)switch(ct){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 ct;default:if(ut)return;ct=(""+ct).toLowerCase(),ut=!0}}(rt);if(typeof st!="string"&&(Vs.isEncoding===Ac||!Ac(rt)))throw new Error("Unknown encoding: "+rt);return st||rt}(_e),this.encoding){case"utf16le":this.text=Sw,this.end=Aw,et=4;break;case"utf8":this.fillLast=Ew,et=4;break;case"base64":this.text=Iw,this.end=Tw,et=3;break;default:return this.write=Rw,this.end=Cw,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Vs.allocUnsafe(et)}function Fs(_e){return _e<=127?0:_e>>5==6?2:_e>>4==14?3:_e>>3==30?4:_e>>6==2?-1:-2}function Ew(_e){var et=this.lastTotal-this.lastNeed,rt=function(st,ct,ut){if((192&ct[0])!=128)return st.lastNeed=0,"�";if(st.lastNeed>1&&ct.length>1){if((192&ct[1])!=128)return st.lastNeed=1,"�";if(st.lastNeed>2&&ct.length>2&&(192&ct[2])!=128)return st.lastNeed=2,"�"}}(this,_e);return rt!==void 0?rt:this.lastNeed<=_e.length?(_e.copy(this.lastChar,et,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_e.copy(this.lastChar,et,0,_e.length),this.lastNeed-=_e.length,void 0)}function Sw(_e,et){if((_e.length-et)%2==0){var rt=_e.toString("utf16le",et);if(rt){var st=rt.charCodeAt(rt.length-1);if(st>=55296&&st<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_e[_e.length-2],this.lastChar[1]=_e[_e.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_e[_e.length-1],_e.toString("utf16le",et,_e.length-1)}function Aw(_e){var et=_e&&_e.length?this.write(_e):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return et+this.lastChar.toString("utf16le",0,rt)}return et}function Iw(_e,et){var rt=(_e.length-et)%3;return rt===0?_e.toString("base64",et):(this.lastNeed=3-rt,this.lastTotal=3,rt===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",et,_e.length-rt))}function Tw(_e){var et=_e&&_e.length?this.write(_e):"";return this.lastNeed?et+this.lastChar.toString("base64",0,3-this.lastNeed):et}function Rw(_e){return _e.toString(this.encoding)}function Cw(_e){return _e&&_e.length?this.write(_e):""}var Ic,$e,xe,pc,rn,nr,gc,aw,St,Ws,Ur,bc,_w,mw,nn,sn,it$1,vw,ar,Vs,Ac,Gs=be$1(()=>{for(_$2(),v$1(),m$1(),Ic={byteLength:function(_e){var et=yc(_e),rt=et[0],st=et[1];return 3*(rt+st)/4-st},toByteArray:function(_e){var et,rt,st=yc(_e),ct=st[0],ut=st[1],ft=new pc(function($t,_t,wt){return 3*(_t+wt)/4-wt}(0,ct,ut)),gt=0,xt=ut>0?ct-4:ct;for(rt=0;rt>16&255,ft[gt++]=et>>8&255,ft[gt++]=255&et;return ut===2&&(et=xe[_e.charCodeAt(rt)]<<2|xe[_e.charCodeAt(rt+1)]>>4,ft[gt++]=255&et),ut===1&&(et=xe[_e.charCodeAt(rt)]<<10|xe[_e.charCodeAt(rt+1)]<<4|xe[_e.charCodeAt(rt+2)]>>2,ft[gt++]=et>>8&255,ft[gt++]=255&et),ft},fromByteArray:function(_e){for(var et,rt=_e.length,st=rt%3,ct=[],ut=0,ft=rt-st;utft?ft:ut+16383));return st===1?(et=_e[rt-1],ct.push($e[et>>2]+$e[et<<4&63]+"==")):st===2&&(et=(_e[rt-2]<<8)+_e[rt-1],ct.push($e[et>>10]+$e[et>>4&63]+$e[et<<2&63]+"=")),ct.join("")}},$e=[],xe=[],pc=typeof Uint8Array<"u"?Uint8Array:Array,rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=0,gc=rn.length;nr>1,_t=-7,wt=rt?ct-1:0,Tt=rt?-1:1,Rt=_e[et+wt];for(wt+=Tt,ut=Rt&(1<<-_t)-1,Rt>>=-_t,_t+=gt;_t>0;ut=256*ut+_e[et+wt],wt+=Tt,_t-=8);for(ft=ut&(1<<-_t)-1,ut>>=-_t,_t+=st;_t>0;ft=256*ft+_e[et+wt],wt+=Tt,_t-=8);if(ut===0)ut=1-$t;else{if(ut===xt)return ft?NaN:1/0*(Rt?-1:1);ft+=Math.pow(2,st),ut-=$t}return(Rt?-1:1)*ft*Math.pow(2,ut-st)},write:function(_e,et,rt,st,ct,ut){var ft,gt,xt,$t=8*ut-ct-1,_t=(1<<$t)-1,wt=_t>>1,Tt=ct===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rt=st?0:ut-1,It=st?1:-1,At=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(gt=isNaN(et)?1:0,ft=_t):(ft=Math.floor(Math.log(et)/Math.LN2),et*(xt=Math.pow(2,-ft))<1&&(ft--,xt*=2),(et+=ft+wt>=1?Tt/xt:Tt*Math.pow(2,1-wt))*xt>=2&&(ft++,xt/=2),ft+wt>=_t?(gt=0,ft=_t):ft+wt>=1?(gt=(et*xt-1)*Math.pow(2,ct),ft+=wt):(gt=et*Math.pow(2,wt-1)*Math.pow(2,ct),ft=0));ct>=8;_e[rt+Rt]=255>,Rt+=It,gt/=256,ct-=8);for(ft=ft<0;_e[rt+Rt]=255&ft,Rt+=It,ft/=256,$t-=8);_e[rt+Rt-It]|=128*At}},St={},Ws=Ic,Ur=aw,bc=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,St.Buffer=k$2,St.SlowBuffer=function(_e){return+_e!=_e&&(_e=0),k$2.alloc(+_e)},St.INSPECT_MAX_BYTES=50,St.kMaxLength=2147483647,k$2.TYPED_ARRAY_SUPPORT=function(){try{var _e=new Uint8Array(1),et={foo:function(){return 42}};return Object.setPrototypeOf(et,Uint8Array.prototype),Object.setPrototypeOf(_e,et),_e.foo()===42}catch{return!1}}(),k$2.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(k$2.prototype,"parent",{enumerable:!0,get:function(){if(k$2.isBuffer(this))return this.buffer}}),Object.defineProperty(k$2.prototype,"offset",{enumerable:!0,get:function(){if(k$2.isBuffer(this))return this.byteOffset}}),k$2.poolSize=8192,k$2.from=function(_e,et,rt){return Tc(_e,et,rt)},Object.setPrototypeOf(k$2.prototype,Uint8Array.prototype),Object.setPrototypeOf(k$2,Uint8Array),k$2.alloc=function(_e,et,rt){return function(st,ct,ut){return Rc(st),st<=0?vt(st):ct!==void 0?typeof ut=="string"?vt(st).fill(ct,ut):vt(st).fill(ct):vt(st)}(_e,et,rt)},k$2.allocUnsafe=function(_e){return $s(_e)},k$2.allocUnsafeSlow=function(_e){return $s(_e)},k$2.isBuffer=function(_e){return _e!=null&&_e._isBuffer===!0&&_e!==k$2.prototype},k$2.compare=function(_e,et){if(Et$1(_e,Uint8Array)&&(_e=k$2.from(_e,_e.offset,_e.byteLength)),Et$1(et,Uint8Array)&&(et=k$2.from(et,et.offset,et.byteLength)),!k$2.isBuffer(_e)||!k$2.isBuffer(et))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_e===et)return 0;for(var rt=_e.length,st=et.length,ct=0,ut=Math.min(rt,st);ctet&&(_e+=" ... "),""},bc&&(k$2.prototype[bc]=k$2.prototype.inspect),k$2.prototype.compare=function(_e,et,rt,st,ct){if(Et$1(_e,Uint8Array)&&(_e=k$2.from(_e,_e.offset,_e.byteLength)),!k$2.isBuffer(_e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _e);if(et===void 0&&(et=0),rt===void 0&&(rt=_e?_e.length:0),st===void 0&&(st=0),ct===void 0&&(ct=this.length),et<0||rt>_e.length||st<0||ct>this.length)throw new RangeError("out of range index");if(st>=ct&&et>=rt)return 0;if(st>=ct)return-1;if(et>=rt)return 1;if(this===_e)return 0;for(var ut=(ct>>>=0)-(st>>>=0),ft=(rt>>>=0)-(et>>>=0),gt=Math.min(ut,ft),xt=this.slice(st,ct),$t=_e.slice(et,rt),_t=0;_t>>=0,isFinite(rt)?(rt>>>=0,st===void 0&&(st="utf8")):(st=rt,rt=void 0)}var ct=this.length-et;if((rt===void 0||rt>ct)&&(rt=ct),_e.length>0&&(rt<0||et<0)||et>this.length)throw new RangeError("Attempt to write outside buffer bounds");st||(st="utf8");for(var ut=!1;;)switch(st){case"hex":return uw(this,_e,et,rt);case"utf8":case"utf-8":return fw(this,_e,et,rt);case"ascii":return Bc(this,_e,et,rt);case"latin1":case"binary":return cw(this,_e,et,rt);case"base64":return hw(this,_e,et,rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dw(this,_e,et,rt);default:if(ut)throw new TypeError("Unknown encoding: "+st);st=(""+st).toLowerCase(),ut=!0}},k$2.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},k$2.prototype.slice=function(_e,et){var rt=this.length;(_e=~~_e)<0?(_e+=rt)<0&&(_e=0):_e>rt&&(_e=rt),(et=et===void 0?rt:~~et)<0?(et+=rt)<0&&(et=0):et>rt&&(et=rt),et<_e&&(et=_e);var st=this.subarray(_e,et);return Object.setPrototypeOf(st,k$2.prototype),st},k$2.prototype.readUIntLE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e],ct=1,ut=0;++ut>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e+--et],ct=1;et>0&&(ct*=256);)st+=this[_e+--et]*ct;return st},k$2.prototype.readUInt8=function(_e,et){return _e>>>=0,et||ye(_e,1,this.length),this[_e]},k$2.prototype.readUInt16LE=function(_e,et){return _e>>>=0,et||ye(_e,2,this.length),this[_e]|this[_e+1]<<8},k$2.prototype.readUInt16BE=function(_e,et){return _e>>>=0,et||ye(_e,2,this.length),this[_e]<<8|this[_e+1]},k$2.prototype.readUInt32LE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),(this[_e]|this[_e+1]<<8|this[_e+2]<<16)+16777216*this[_e+3]},k$2.prototype.readUInt32BE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),16777216*this[_e]+(this[_e+1]<<16|this[_e+2]<<8|this[_e+3])},k$2.prototype.readIntLE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=this[_e],ct=1,ut=0;++ut=(ct*=128)&&(st-=Math.pow(2,8*et)),st},k$2.prototype.readIntBE=function(_e,et,rt){_e>>>=0,et>>>=0,rt||ye(_e,et,this.length);for(var st=et,ct=1,ut=this[_e+--st];st>0&&(ct*=256);)ut+=this[_e+--st]*ct;return ut>=(ct*=128)&&(ut-=Math.pow(2,8*et)),ut},k$2.prototype.readInt8=function(_e,et){return _e>>>=0,et||ye(_e,1,this.length),128&this[_e]?-1*(255-this[_e]+1):this[_e]},k$2.prototype.readInt16LE=function(_e,et){_e>>>=0,et||ye(_e,2,this.length);var rt=this[_e]|this[_e+1]<<8;return 32768&rt?4294901760|rt:rt},k$2.prototype.readInt16BE=function(_e,et){_e>>>=0,et||ye(_e,2,this.length);var rt=this[_e+1]|this[_e]<<8;return 32768&rt?4294901760|rt:rt},k$2.prototype.readInt32LE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),this[_e]|this[_e+1]<<8|this[_e+2]<<16|this[_e+3]<<24},k$2.prototype.readInt32BE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),this[_e]<<24|this[_e+1]<<16|this[_e+2]<<8|this[_e+3]},k$2.prototype.readFloatLE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),Ur.read(this,_e,!0,23,4)},k$2.prototype.readFloatBE=function(_e,et){return _e>>>=0,et||ye(_e,4,this.length),Ur.read(this,_e,!1,23,4)},k$2.prototype.readDoubleLE=function(_e,et){return _e>>>=0,et||ye(_e,8,this.length),Ur.read(this,_e,!0,52,8)},k$2.prototype.readDoubleBE=function(_e,et){return _e>>>=0,et||ye(_e,8,this.length),Ur.read(this,_e,!1,52,8)},k$2.prototype.writeUIntLE=function(_e,et,rt,st){_e=+_e,et>>>=0,rt>>>=0,st||Pe(this,_e,et,rt,Math.pow(2,8*rt)-1,0);var ct=1,ut=0;for(this[et]=255&_e;++ut>>=0,rt>>>=0,st||Pe(this,_e,et,rt,Math.pow(2,8*rt)-1,0);var ct=rt-1,ut=1;for(this[et+ct]=255&_e;--ct>=0&&(ut*=256);)this[et+ct]=_e/ut&255;return et+rt},k$2.prototype.writeUInt8=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,1,255,0),this[et]=255&_e,et+1},k$2.prototype.writeUInt16LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,65535,0),this[et]=255&_e,this[et+1]=_e>>>8,et+2},k$2.prototype.writeUInt16BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,65535,0),this[et]=_e>>>8,this[et+1]=255&_e,et+2},k$2.prototype.writeUInt32LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,4294967295,0),this[et+3]=_e>>>24,this[et+2]=_e>>>16,this[et+1]=_e>>>8,this[et]=255&_e,et+4},k$2.prototype.writeUInt32BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,4294967295,0),this[et]=_e>>>24,this[et+1]=_e>>>16,this[et+2]=_e>>>8,this[et+3]=255&_e,et+4},k$2.prototype.writeIntLE=function(_e,et,rt,st){if(_e=+_e,et>>>=0,!st){var ct=Math.pow(2,8*rt-1);Pe(this,_e,et,rt,ct-1,-ct)}var ut=0,ft=1,gt=0;for(this[et]=255&_e;++ut>0)-gt&255;return et+rt},k$2.prototype.writeIntBE=function(_e,et,rt,st){if(_e=+_e,et>>>=0,!st){var ct=Math.pow(2,8*rt-1);Pe(this,_e,et,rt,ct-1,-ct)}var ut=rt-1,ft=1,gt=0;for(this[et+ut]=255&_e;--ut>=0&&(ft*=256);)_e<0&>===0&&this[et+ut+1]!==0&&(gt=1),this[et+ut]=(_e/ft>>0)-gt&255;return et+rt},k$2.prototype.writeInt8=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,1,127,-128),_e<0&&(_e=255+_e+1),this[et]=255&_e,et+1},k$2.prototype.writeInt16LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,32767,-32768),this[et]=255&_e,this[et+1]=_e>>>8,et+2},k$2.prototype.writeInt16BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,2,32767,-32768),this[et]=_e>>>8,this[et+1]=255&_e,et+2},k$2.prototype.writeInt32LE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,2147483647,-2147483648),this[et]=255&_e,this[et+1]=_e>>>8,this[et+2]=_e>>>16,this[et+3]=_e>>>24,et+4},k$2.prototype.writeInt32BE=function(_e,et,rt){return _e=+_e,et>>>=0,rt||Pe(this,_e,et,4,2147483647,-2147483648),_e<0&&(_e=4294967295+_e+1),this[et]=_e>>>24,this[et+1]=_e>>>16,this[et+2]=_e>>>8,this[et+3]=255&_e,et+4},k$2.prototype.writeFloatLE=function(_e,et,rt){return vc(this,_e,et,!0,rt)},k$2.prototype.writeFloatBE=function(_e,et,rt){return vc(this,_e,et,!1,rt)},k$2.prototype.writeDoubleLE=function(_e,et,rt){return Ec(this,_e,et,!0,rt)},k$2.prototype.writeDoubleBE=function(_e,et,rt){return Ec(this,_e,et,!1,rt)},k$2.prototype.copy=function(_e,et,rt,st){if(!k$2.isBuffer(_e))throw new TypeError("argument should be a Buffer");if(rt||(rt=0),st||st===0||(st=this.length),et>=_e.length&&(et=_e.length),et||(et=0),st>0&&st=this.length)throw new RangeError("Index out of range");if(st<0)throw new RangeError("sourceEnd out of bounds");st>this.length&&(st=this.length),_e.length-et=0;--ut)_e[ut+et]=this[ut+rt];else Uint8Array.prototype.set.call(_e,this.subarray(rt,st),et);return ct},k$2.prototype.fill=function(_e,et,rt,st){if(typeof _e=="string"){if(typeof et=="string"?(st=et,et=0,rt=this.length):typeof rt=="string"&&(st=rt,rt=this.length),st!==void 0&&typeof st!="string")throw new TypeError("encoding must be a string");if(typeof st=="string"&&!k$2.isEncoding(st))throw new TypeError("Unknown encoding: "+st);if(_e.length===1){var ct=_e.charCodeAt(0);(st==="utf8"&&ct<128||st==="latin1")&&(_e=ct)}}else typeof _e=="number"?_e&=255:typeof _e=="boolean"&&(_e=Number(_e));if(et<0||this.length>>=0,rt=rt===void 0?this.length:rt>>>0,_e||(_e=0),typeof _e=="number")for(ut=et;ut=0?(xt>0&&(ct.lastNeed=xt-1),xt):--gt=0?(xt>0&&(ct.lastNeed=xt-2),xt):--gt=0?(xt>0&&(xt===2?xt=0:ct.lastNeed=xt-3),xt):0}(this,_e,et);if(!this.lastNeed)return _e.toString("utf8",et);this.lastTotal=rt;var st=_e.length-(rt-this.lastNeed);return _e.copy(this.lastChar,0,st),_e.toString("utf8",et,st)},ci.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},ar.StringDecoder,ar.StringDecoder}),kc={};Qt(kc,{StringDecoder:()=>Bw,default:()=>ar});var Bw,Mc=be$1(()=>{_$2(),v$1(),m$1(),Gs(),Gs(),Bw=ar.StringDecoder}),Qs=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{PromisePrototypeThen:st,SymbolAsyncIterator:ct,SymbolIterator:ut}=ce(),{Buffer:ft}=(we(),Z(ve)),{ERR_INVALID_ARG_TYPE:gt,ERR_STREAM_NULL_VALUES:xt}=Se().codes;function $t(_t,wt,Tt){let Rt;if(typeof wt=="string"||wt instanceof ft)return new _t({objectMode:!0,...Tt,read(){this.push(wt),this.push(null)}});let It;if(wt&&wt[ct])It=!0,Rt=wt[ct]();else if(wt&&wt[ut])It=!1,Rt=wt[ut]();else throw new gt("iterable",["Iterable"],wt);let At=new _t({objectMode:!0,highWaterMark:1,...Tt}),jt=!1;At._read=function(){jt||(jt=!0,kt())},At._destroy=function(Ft,Ht){st(Nt(Ft),()=>rt.nextTick(Ht,Ft),Wt=>rt.nextTick(Ht,Wt||Ft))};async function Nt(Ft){let Ht=Ft!=null,Wt=typeof Rt.throw=="function";if(Ht&&Wt){let{value:Vt,done:qt}=await Rt.throw(Ft);if(await Vt,qt)return}if(typeof Rt.return=="function"){let{value:Vt}=await Rt.return();await Vt}}async function kt(){for(;;){try{let{value:Ft,done:Ht}=It?await Rt.next():Rt.next();if(Ht)At.push(null);else{let Wt=Ft&&typeof Ft.then=="function"?await Ft:Ft;if(Wt===null)throw jt=!1,new xt;if(At.push(Wt))continue;jt=!1}}catch(Ft){At.destroy(Ft)}break}}return At}et.exports=$t}),hi=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayPrototypeIndexOf:st,NumberIsInteger:ct,NumberIsNaN:ut,NumberParseInt:ft,ObjectDefineProperties:gt,ObjectKeys:xt,ObjectSetPrototypeOf:$t,Promise:_t,SafeSet:wt,SymbolAsyncIterator:Tt,Symbol:Rt}=ce();et.exports=mr,mr.ReadableState=br;var{EventEmitter:It}=(ir(),Z(rr)),{Stream:At,prependListener:jt}=Xi(),{Buffer:Nt}=(we(),Z(ve)),{addAbortSignal:kt}=fi(),Ft=mt(),Ht=Je().debuglog("stream",gr=>{Ht=gr}),Wt=cc(),Vt=tr(),{getHighWaterMark:qt,getDefaultHighWaterMark:Xt}=tn(),{aggregateTwoErrors:Gt,codes:{ERR_INVALID_ARG_TYPE:Zt,ERR_METHOD_NOT_IMPLEMENTED:er,ERR_OUT_OF_RANGE:lr,ERR_STREAM_PUSH_AFTER_EOF:cr,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:ur}}=Se(),{validateObject:fr}=ui(),hr=Rt("kPaused"),{StringDecoder:pr}=(Mc(),Z(kc)),dr=Qs();$t(mr.prototype,At.prototype),$t(mr,At);var yr=()=>{},{errorOrDestroy:Sr}=Vt;function br(gr,$r,zr){typeof zr!="boolean"&&(zr=$r instanceof nt()),this.objectMode=!!(gr&&gr.objectMode),zr&&(this.objectMode=this.objectMode||!!(gr&&gr.readableObjectMode)),this.highWaterMark=gr?qt(this,gr,"readableHighWaterMark",zr):Xt(!1),this.buffer=new Wt,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[hr]=null,this.errorEmitted=!1,this.emitClose=!gr||gr.emitClose!==!1,this.autoDestroy=!gr||gr.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=gr&&gr.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,gr&&gr.encoding&&(this.decoder=new pr(gr.encoding),this.encoding=gr.encoding)}function mr(gr){if(!(this instanceof mr))return new mr(gr);let $r=this instanceof nt();this._readableState=new br(gr,this,$r),gr&&(typeof gr.read=="function"&&(this._read=gr.read),typeof gr.destroy=="function"&&(this._destroy=gr.destroy),typeof gr.construct=="function"&&(this._construct=gr.construct),gr.signal&&!$r&&kt(gr.signal,this)),At.call(this,gr),Vt.construct(this,()=>{this._readableState.needReadable&&Pr(this,this._readableState)})}mr.prototype.destroy=Vt.destroy,mr.prototype._undestroy=Vt.undestroy,mr.prototype._destroy=function(gr,$r){$r(gr)},mr.prototype[It.captureRejectionSymbol]=function(gr){this.destroy(gr)},mr.prototype.push=function(gr,$r){return Er(this,gr,$r,!1)},mr.prototype.unshift=function(gr,$r){return Er(this,gr,$r,!0)};function Er(gr,$r,zr,qr){Ht("readableAddChunk",$r);let Wr=gr._readableState,Gr;if(Wr.objectMode||(typeof $r=="string"?(zr=zr||Wr.defaultEncoding,Wr.encoding!==zr&&(qr&&Wr.encoding?$r=Nt.from($r,zr).toString(Wr.encoding):($r=Nt.from($r,zr),zr=""))):$r instanceof Nt?zr="":At._isUint8Array($r)?($r=At._uint8ArrayToBuffer($r),zr=""):$r!=null&&(Gr=new Zt("chunk",["string","Buffer","Uint8Array"],$r))),Gr)Sr(gr,Gr);else if($r===null)Wr.reading=!1,Cr(gr,Wr);else if(Wr.objectMode||$r&&$r.length>0)if(qr)if(Wr.endEmitted)Sr(gr,new ur);else{if(Wr.destroyed||Wr.errored)return!1;Tr(gr,Wr,$r,!0)}else if(Wr.ended)Sr(gr,new cr);else{if(Wr.destroyed||Wr.errored)return!1;Wr.reading=!1,Wr.decoder&&!zr?($r=Wr.decoder.write($r),Wr.objectMode||$r.length!==0?Tr(gr,Wr,$r,!1):Pr(gr,Wr)):Tr(gr,Wr,$r,!1)}else qr||(Wr.reading=!1,Pr(gr,Wr));return!Wr.ended&&(Wr.length0?($r.multiAwaitDrain?$r.awaitDrainWriters.clear():$r.awaitDrainWriters=null,$r.dataEmitted=!0,gr.emit("data",zr)):($r.length+=$r.objectMode?1:zr.length,qr?$r.buffer.unshift(zr):$r.buffer.push(zr),$r.needReadable&&Nr(gr)),Pr(gr,$r)}mr.prototype.isPaused=function(){let gr=this._readableState;return gr[hr]===!0||gr.flowing===!1},mr.prototype.setEncoding=function(gr){let $r=new pr(gr);this._readableState.decoder=$r,this._readableState.encoding=this._readableState.decoder.encoding;let zr=this._readableState.buffer,qr="";for(let Wr of zr)qr+=$r.write(Wr);return zr.clear(),qr!==""&&zr.push(qr),this._readableState.length=qr.length,this};var Mr=1073741824;function Or(gr){if(gr>Mr)throw new lr("size","<= 1GiB",gr);return gr--,gr|=gr>>>1,gr|=gr>>>2,gr|=gr>>>4,gr|=gr>>>8,gr|=gr>>>16,gr++,gr}function wr(gr,$r){return gr<=0||$r.length===0&&$r.ended?0:$r.objectMode?1:ut(gr)?$r.flowing&&$r.length?$r.buffer.first().length:$r.length:gr<=$r.length?gr:$r.ended?$r.length:0}mr.prototype.read=function(gr){Ht("read",gr),gr===void 0?gr=NaN:ct(gr)||(gr=ft(gr,10));let $r=this._readableState,zr=gr;if(gr>$r.highWaterMark&&($r.highWaterMark=Or(gr)),gr!==0&&($r.emittedReadable=!1),gr===0&&$r.needReadable&&(($r.highWaterMark!==0?$r.length>=$r.highWaterMark:$r.length>0)||$r.ended))return Ht("read: emitReadable",$r.length,$r.ended),$r.length===0&&$r.ended?ln(this):Nr(this),null;if(gr=wr(gr,$r),gr===0&&$r.ended)return $r.length===0&&ln(this),null;let qr=$r.needReadable;if(Ht("need readable",qr),($r.length===0||$r.length-gr<$r.highWaterMark)&&(qr=!0,Ht("length less than watermark",qr)),$r.ended||$r.reading||$r.destroyed||$r.errored||!$r.constructed)qr=!1,Ht("reading, ended or constructing",qr);else if(qr){Ht("do read"),$r.reading=!0,$r.sync=!0,$r.length===0&&($r.needReadable=!0);try{this._read($r.highWaterMark)}catch(Gr){Sr(this,Gr)}$r.sync=!1,$r.reading||(gr=wr(zr,$r))}let Wr;return gr>0?Wr=Vr(gr,$r):Wr=null,Wr===null?($r.needReadable=$r.length<=$r.highWaterMark,gr=0):($r.length-=gr,$r.multiAwaitDrain?$r.awaitDrainWriters.clear():$r.awaitDrainWriters=null),$r.length===0&&($r.ended||($r.needReadable=!0),zr!==gr&&$r.ended&&ln(this)),Wr!==null&&!$r.errorEmitted&&!$r.closeEmitted&&($r.dataEmitted=!0,this.emit("data",Wr)),Wr};function Cr(gr,$r){if(Ht("onEofChunk"),!$r.ended){if($r.decoder){let zr=$r.decoder.end();zr&&zr.length&&($r.buffer.push(zr),$r.length+=$r.objectMode?1:zr.length)}$r.ended=!0,$r.sync?Nr(gr):($r.needReadable=!1,$r.emittedReadable=!0,Rr(gr))}}function Nr(gr){let $r=gr._readableState;Ht("emitReadable",$r.needReadable,$r.emittedReadable),$r.needReadable=!1,$r.emittedReadable||(Ht("emitReadable",$r.flowing),$r.emittedReadable=!0,rt.nextTick(Rr,gr))}function Rr(gr){let $r=gr._readableState;Ht("emitReadable_",$r.destroyed,$r.length,$r.ended),!$r.destroyed&&!$r.errored&&($r.length||$r.ended)&&(gr.emit("readable"),$r.emittedReadable=!1),$r.needReadable=!$r.flowing&&!$r.ended&&$r.length<=$r.highWaterMark,Xr(gr)}function Pr(gr,$r){!$r.readingMore&&$r.constructed&&($r.readingMore=!0,rt.nextTick(jr,gr,$r))}function jr(gr,$r){for(;!$r.reading&&!$r.ended&&($r.length<$r.highWaterMark||$r.flowing&&$r.length===0);){let zr=$r.length;if(Ht("maybeReadMore read 0"),gr.read(0),zr===$r.length)break}$r.readingMore=!1}mr.prototype._read=function(gr){throw new er("_read()")},mr.prototype.pipe=function(gr,$r){let zr=this,qr=this._readableState;qr.pipes.length===1&&(qr.multiAwaitDrain||(qr.multiAwaitDrain=!0,qr.awaitDrainWriters=new wt(qr.awaitDrainWriters?[qr.awaitDrainWriters]:[]))),qr.pipes.push(gr),Ht("pipe count=%d opts=%j",qr.pipes.length,$r);let Wr=(!$r||$r.end!==!1)&&gr!==rt.stdout&&gr!==rt.stderr?dn:io;qr.endEmitted?rt.nextTick(Wr):zr.once("end",Wr),gr.on("unpipe",Gr);function Gr(pn,gn){Ht("onunpipe"),pn===zr&&gn&&gn.hasUnpiped===!1&&(gn.hasUnpiped=!0,Cn())}function dn(){Ht("onend"),gr.end()}let mn,hn=!1;function Cn(){Ht("cleanup"),gr.removeListener("close",Yn),gr.removeListener("finish",Gn),mn&&gr.removeListener("drain",mn),gr.removeListener("error",Bn),gr.removeListener("unpipe",Gr),zr.removeListener("end",dn),zr.removeListener("end",io),zr.removeListener("data",kn),hn=!0,mn&&qr.awaitDrainWriters&&(!gr._writableState||gr._writableState.needDrain)&&mn()}function Rn(){hn||(qr.pipes.length===1&&qr.pipes[0]===gr?(Ht("false write response, pause",0),qr.awaitDrainWriters=gr,qr.multiAwaitDrain=!1):qr.pipes.length>1&&qr.pipes.includes(gr)&&(Ht("false write response, pause",qr.awaitDrainWriters.size),qr.awaitDrainWriters.add(gr)),zr.pause()),mn||(mn=kr(zr,gr),gr.on("drain",mn))}zr.on("data",kn);function kn(pn){Ht("ondata");let gn=gr.write(pn);Ht("dest.write",gn),gn===!1&&Rn()}function Bn(pn){if(Ht("onerror",pn),io(),gr.removeListener("error",Bn),gr.listenerCount("error")===0){let gn=gr._writableState||gr._readableState;gn&&!gn.errorEmitted?Sr(gr,pn):gr.emit("error",pn)}}jt(gr,"error",Bn);function Yn(){gr.removeListener("finish",Gn),io()}gr.once("close",Yn);function Gn(){Ht("onfinish"),gr.removeListener("close",Yn),io()}gr.once("finish",Gn);function io(){Ht("unpipe"),zr.unpipe(gr)}return gr.emit("pipe",zr),gr.writableNeedDrain===!0?qr.flowing&&Rn():qr.flowing||(Ht("pipe resume"),zr.resume()),gr};function kr(gr,$r){return function(){let zr=gr._readableState;zr.awaitDrainWriters===$r?(Ht("pipeOnDrain",1),zr.awaitDrainWriters=null):zr.multiAwaitDrain&&(Ht("pipeOnDrain",zr.awaitDrainWriters.size),zr.awaitDrainWriters.delete($r)),(!zr.awaitDrainWriters||zr.awaitDrainWriters.size===0)&&gr.listenerCount("data")&&gr.resume()}}mr.prototype.unpipe=function(gr){let $r=this._readableState,zr={hasUnpiped:!1};if($r.pipes.length===0)return this;if(!gr){let Wr=$r.pipes;$r.pipes=[],this.pause();for(let Gr=0;Gr0,qr.flowing!==!1&&this.resume()):gr==="readable"&&!qr.endEmitted&&!qr.readableListening&&(qr.readableListening=qr.needReadable=!0,qr.flowing=!1,qr.emittedReadable=!1,Ht("on readable",qr.length,qr.reading),qr.length?Nr(this):qr.reading||rt.nextTick(_r,this)),zr},mr.prototype.addListener=mr.prototype.on,mr.prototype.removeListener=function(gr,$r){let zr=At.prototype.removeListener.call(this,gr,$r);return gr==="readable"&&rt.nextTick(Fr,this),zr},mr.prototype.off=mr.prototype.removeListener,mr.prototype.removeAllListeners=function(gr){let $r=At.prototype.removeAllListeners.apply(this,arguments);return(gr==="readable"||gr===void 0)&&rt.nextTick(Fr,this),$r};function Fr(gr){let $r=gr._readableState;$r.readableListening=gr.listenerCount("readable")>0,$r.resumeScheduled&&$r[hr]===!1?$r.flowing=!0:gr.listenerCount("data")>0?gr.resume():$r.readableListening||($r.flowing=null)}function _r(gr){Ht("readable nexttick read 0"),gr.read(0)}mr.prototype.resume=function(){let gr=this._readableState;return gr.flowing||(Ht("resume"),gr.flowing=!gr.readableListening,Br(this,gr)),gr[hr]=!1,this};function Br(gr,$r){$r.resumeScheduled||($r.resumeScheduled=!0,rt.nextTick(Dr,gr,$r))}function Dr(gr,$r){Ht("resume",$r.reading),$r.reading||gr.read(0),$r.resumeScheduled=!1,gr.emit("resume"),Xr(gr),$r.flowing&&!$r.reading&&gr.read(0)}mr.prototype.pause=function(){return Ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[hr]=!0,this};function Xr(gr){let $r=gr._readableState;for(Ht("flow",$r.flowing);$r.flowing&&gr.read()!==null;);}mr.prototype.wrap=function(gr){let $r=!1;gr.on("data",qr=>{!this.push(qr)&&gr.pause&&($r=!0,gr.pause())}),gr.on("end",()=>{this.push(null)}),gr.on("error",qr=>{Sr(this,qr)}),gr.on("close",()=>{this.destroy()}),gr.on("destroy",()=>{this.destroy()}),this._read=()=>{$r&&gr.resume&&($r=!1,gr.resume())};let zr=xt(gr);for(let qr=1;qr{Wr=dn?Gt(Wr,dn):null,zr(),zr=yr});try{for(;;){let dn=gr.destroyed?null:gr.read();if(dn!==null)yield dn;else{if(Wr)throw Wr;if(Wr===null)return;await new _t(qr)}}}catch(dn){throw Wr=Gt(Wr,dn),Wr}finally{(Wr||($r==null?void 0:$r.destroyOnReturn)!==!1)&&(Wr===void 0||gr._readableState.autoDestroy)?Vt.destroyer(gr,null):(gr.off("readable",qr),Gr())}}gt(mr.prototype,{readable:{__proto__:null,get(){let gr=this._readableState;return!!gr&&gr.readable!==!1&&!gr.destroyed&&!gr.errorEmitted&&!gr.endEmitted},set(gr){this._readableState&&(this._readableState.readable=!!gr)}},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(gr){this._readableState&&(this._readableState.flowing=gr)}},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(gr){this._readableState&&(this._readableState.destroyed=gr)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),gt(br.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[hr]!==!1},set(gr){this[hr]=!!gr}}}),mr._fromList=Vr;function Vr(gr,$r){if($r.length===0)return null;let zr;return $r.objectMode?zr=$r.buffer.shift():!gr||gr>=$r.length?($r.decoder?zr=$r.buffer.join(""):$r.buffer.length===1?zr=$r.buffer.first():zr=$r.buffer.concat($r.length),$r.buffer.clear()):zr=$r.buffer.consume(gr,$r.decoder),zr}function ln(gr){let $r=gr._readableState;Ht("endReadable",$r.endEmitted),$r.endEmitted||($r.ended=!0,rt.nextTick(Qr,$r,gr))}function Qr(gr,$r){if(Ht("endReadableNT",gr.endEmitted,gr.length),!gr.errored&&!gr.closeEmitted&&!gr.endEmitted&&gr.length===0){if(gr.endEmitted=!0,$r.emit("end"),$r.writable&&$r.allowHalfOpen===!1)rt.nextTick(Zr,$r);else if(gr.autoDestroy){let zr=$r._writableState;(!zr||zr.autoDestroy&&(zr.finished||zr.writable===!1))&&$r.destroy()}}}function Zr(gr){gr.writable&&!gr.writableEnded&&!gr.destroyed&&gr.end()}mr.from=function(gr,$r){return dr(mr,gr,$r)};var vn;function vr(){return vn===void 0&&(vn={}),vn}mr.fromWeb=function(gr,$r){return vr().newStreamReadableFromReadableStream(gr,$r)},mr.toWeb=function(gr,$r){return vr().newReadableStreamFromStreamReadable(gr,$r)},mr.wrap=function(gr,$r){var zr,qr;return new mr({objectMode:(zr=(qr=gr.readableObjectMode)!==null&&qr!==void 0?qr:gr.objectMode)!==null&&zr!==void 0?zr:!0,...$r,destroy(Wr,Gr){Vt.destroyer(gr,Wr),Gr(Wr)}}).wrap(gr)}}),lo=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayPrototypeSlice:st,Error:ct,FunctionPrototypeSymbolHasInstance:ut,ObjectDefineProperty:ft,ObjectDefineProperties:gt,ObjectSetPrototypeOf:xt,StringPrototypeToLowerCase:$t,Symbol:_t,SymbolHasInstance:wt}=ce();et.exports=pr,pr.WritableState=fr;var{EventEmitter:Tt}=(ir(),Z(rr)),Rt=Xi().Stream,{Buffer:It}=(we(),Z(ve)),At=tr(),{addAbortSignal:jt}=fi(),{getHighWaterMark:Nt,getDefaultHighWaterMark:kt}=tn(),{ERR_INVALID_ARG_TYPE:Ft,ERR_METHOD_NOT_IMPLEMENTED:Ht,ERR_MULTIPLE_CALLBACK:Wt,ERR_STREAM_CANNOT_PIPE:Vt,ERR_STREAM_DESTROYED:qt,ERR_STREAM_ALREADY_FINISHED:Xt,ERR_STREAM_NULL_VALUES:Gt,ERR_STREAM_WRITE_AFTER_END:Zt,ERR_UNKNOWN_ENCODING:er}=Se().codes,{errorOrDestroy:lr}=At;xt(pr.prototype,Rt.prototype),xt(pr,Rt);function cr(){}var ur=_t("kOnFinished");function fr(_r,Br,Dr){typeof Dr!="boolean"&&(Dr=Br instanceof nt()),this.objectMode=!!(_r&&_r.objectMode),Dr&&(this.objectMode=this.objectMode||!!(_r&&_r.writableObjectMode)),this.highWaterMark=_r?Nt(this,_r,"writableHighWaterMark",Dr):kt(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Xr=!!(_r&&_r.decodeStrings===!1);this.decodeStrings=!Xr,this.defaultEncoding=_r&&_r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=mr.bind(void 0,Br),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,hr(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!_r||_r.emitClose!==!1,this.autoDestroy=!_r||_r.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ur]=[]}function hr(_r){_r.buffered=[],_r.bufferedIndex=0,_r.allBuffers=!0,_r.allNoop=!0}fr.prototype.getBuffer=function(){return st(this.buffered,this.bufferedIndex)},ft(fr.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function pr(_r){let Br=this instanceof nt();if(!Br&&!ut(pr,this))return new pr(_r);this._writableState=new fr(_r,this,Br),_r&&(typeof _r.write=="function"&&(this._write=_r.write),typeof _r.writev=="function"&&(this._writev=_r.writev),typeof _r.destroy=="function"&&(this._destroy=_r.destroy),typeof _r.final=="function"&&(this._final=_r.final),typeof _r.construct=="function"&&(this._construct=_r.construct),_r.signal&&jt(_r.signal,this)),Rt.call(this,_r),At.construct(this,()=>{let Dr=this._writableState;Dr.writing||Or(this,Dr),Rr(this,Dr)})}ft(pr,wt,{__proto__:null,value:function(_r){return ut(this,_r)?!0:this!==pr?!1:_r&&_r._writableState instanceof fr}}),pr.prototype.pipe=function(){lr(this,new Vt)};function dr(_r,Br,Dr,Xr){let Kr=_r._writableState;if(typeof Dr=="function")Xr=Dr,Dr=Kr.defaultEncoding;else{if(!Dr)Dr=Kr.defaultEncoding;else if(Dr!=="buffer"&&!It.isEncoding(Dr))throw new er(Dr);typeof Xr!="function"&&(Xr=cr)}if(Br===null)throw new Gt;if(!Kr.objectMode)if(typeof Br=="string")Kr.decodeStrings!==!1&&(Br=It.from(Br,Dr),Dr="buffer");else if(Br instanceof It)Dr="buffer";else if(Rt._isUint8Array(Br))Br=Rt._uint8ArrayToBuffer(Br),Dr="buffer";else throw new Ft("chunk",["string","Buffer","Uint8Array"],Br);let Hr;return Kr.ending?Hr=new Zt:Kr.destroyed&&(Hr=new qt("write")),Hr?(rt.nextTick(Xr,Hr),lr(_r,Hr,!0),Hr):(Kr.pendingcb++,yr(_r,Kr,Br,Dr,Xr))}pr.prototype.write=function(_r,Br,Dr){return dr(this,_r,Br,Dr)===!0},pr.prototype.cork=function(){this._writableState.corked++},pr.prototype.uncork=function(){let _r=this._writableState;_r.corked&&(_r.corked--,_r.writing||Or(this,_r))},pr.prototype.setDefaultEncoding=function(_r){if(typeof _r=="string"&&(_r=$t(_r)),!It.isEncoding(_r))throw new er(_r);return this._writableState.defaultEncoding=_r,this};function yr(_r,Br,Dr,Xr,Kr){let Hr=Br.objectMode?1:Dr.length;Br.length+=Hr;let Vr=Br.lengthDr.bufferedIndex&&Or(_r,Dr),Xr?Dr.afterWriteTickInfo!==null&&Dr.afterWriteTickInfo.cb===Kr?Dr.afterWriteTickInfo.count++:(Dr.afterWriteTickInfo={count:1,cb:Kr,stream:_r,state:Dr},rt.nextTick(Er,Dr.afterWriteTickInfo)):Tr(_r,Dr,1,Kr))}function Er({stream:_r,state:Br,count:Dr,cb:Xr}){return Br.afterWriteTickInfo=null,Tr(_r,Br,Dr,Xr)}function Tr(_r,Br,Dr,Xr){for(!Br.ending&&!_r.destroyed&&Br.length===0&&Br.needDrain&&(Br.needDrain=!1,_r.emit("drain"));Dr-- >0;)Br.pendingcb--,Xr();Br.destroyed&&Mr(Br),Rr(_r,Br)}function Mr(_r){if(_r.writing)return;for(let Kr=_r.bufferedIndex;Kr<_r.buffered.length;++Kr){var Br;let{chunk:Hr,callback:Vr}=_r.buffered[Kr],ln=_r.objectMode?1:Hr.length;_r.length-=ln,Vr((Br=_r.errored)!==null&&Br!==void 0?Br:new qt("write"))}let Dr=_r[ur].splice(0);for(let Kr=0;Kr1&&_r._writev){Br.pendingcb-=Hr-1;let ln=Br.allNoop?cr:Zr=>{for(let vn=Vr;vn256?(Dr.splice(0,Vr),Br.bufferedIndex=0):Br.bufferedIndex=Vr}Br.bufferProcessing=!1}pr.prototype._write=function(_r,Br,Dr){if(this._writev)this._writev([{chunk:_r,encoding:Br}],Dr);else throw new Ht("_write()")},pr.prototype._writev=null,pr.prototype.end=function(_r,Br,Dr){let Xr=this._writableState;typeof _r=="function"?(Dr=_r,_r=null,Br=null):typeof Br=="function"&&(Dr=Br,Br=null);let Kr;if(_r!=null){let Hr=dr(this,_r,Br);Hr instanceof ct&&(Kr=Hr)}return Xr.corked&&(Xr.corked=1,this.uncork()),Kr||(!Xr.errored&&!Xr.ending?(Xr.ending=!0,Rr(this,Xr,!0),Xr.ended=!0):Xr.finished?Kr=new Xt("end"):Xr.destroyed&&(Kr=new qt("end"))),typeof Dr=="function"&&(Kr||Xr.finished?rt.nextTick(Dr,Kr):Xr[ur].push(Dr)),this};function wr(_r){return _r.ending&&!_r.destroyed&&_r.constructed&&_r.length===0&&!_r.errored&&_r.buffered.length===0&&!_r.finished&&!_r.writing&&!_r.errorEmitted&&!_r.closeEmitted}function Cr(_r,Br){let Dr=!1;function Xr(Kr){if(Dr){lr(_r,Kr??Wt());return}if(Dr=!0,Br.pendingcb--,Kr){let Hr=Br[ur].splice(0);for(let Vr=0;Vr{wr(Kr)?Pr(Xr,Kr):Kr.pendingcb--},_r,Br)):wr(Br)&&(Br.pendingcb++,Pr(_r,Br))))}function Pr(_r,Br){Br.pendingcb--,Br.finished=!0;let Dr=Br[ur].splice(0);for(let Xr=0;Xr{_$2(),v$1(),m$1();var rt=Ut(),st=(we(),Z(ve)),{isReadable:ct,isWritable:ut,isIterable:ft,isNodeStream:gt,isReadableNodeStream:xt,isWritableNodeStream:$t,isDuplexNodeStream:_t}=tt(),wt=mt(),{AbortError:Tt,codes:{ERR_INVALID_ARG_TYPE:Rt,ERR_INVALID_RETURN_VALUE:It}}=Se(),{destroyer:At}=tr(),jt=nt(),Nt=hi(),{createDeferredPromise:kt}=Je(),Ft=Qs(),Ht=globalThis.Blob||st.Blob,Wt=typeof Ht<"u"?function(er){return er instanceof Ht}:function(er){return!1},Vt=globalThis.AbortController||Fi().AbortController,{FunctionPrototypeCall:qt}=ce(),Xt=class extends jt{constructor(er){super(er),(er==null?void 0:er.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(er==null?void 0:er.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};et.exports=function er(lr,cr){if(_t(lr))return lr;if(xt(lr))return Zt({readable:lr});if($t(lr))return Zt({writable:lr});if(gt(lr))return Zt({writable:!1,readable:!1});if(typeof lr=="function"){let{value:fr,write:hr,final:pr,destroy:dr}=Gt(lr);if(ft(fr))return Ft(Xt,fr,{objectMode:!0,write:hr,final:pr,destroy:dr});let yr=fr==null?void 0:fr.then;if(typeof yr=="function"){let Sr,br=qt(yr,fr,mr=>{if(mr!=null)throw new It("nully","body",mr)},mr=>{At(Sr,mr)});return Sr=new Xt({objectMode:!0,readable:!1,write:hr,final(mr){pr(async()=>{try{await br,rt.nextTick(mr,null)}catch(Er){rt.nextTick(mr,Er)}})},destroy:dr})}throw new It("Iterable, AsyncIterable or AsyncFunction",cr,fr)}if(Wt(lr))return er(lr.arrayBuffer());if(ft(lr))return Ft(Xt,lr,{objectMode:!0,writable:!1});if(typeof(lr==null?void 0:lr.writable)=="object"||typeof(lr==null?void 0:lr.readable)=="object"){let fr=lr!=null&&lr.readable?xt(lr==null?void 0:lr.readable)?lr==null?void 0:lr.readable:er(lr.readable):void 0,hr=lr!=null&&lr.writable?$t(lr==null?void 0:lr.writable)?lr==null?void 0:lr.writable:er(lr.writable):void 0;return Zt({readable:fr,writable:hr})}let ur=lr==null?void 0:lr.then;if(typeof ur=="function"){let fr;return qt(ur,lr,hr=>{hr!=null&&fr.push(hr),fr.push(null)},hr=>{At(fr,hr)}),fr=new Xt({objectMode:!0,writable:!1,read(){}})}throw new Rt(cr,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],lr)};function Gt(er){let{promise:lr,resolve:cr}=kt(),ur=new Vt,fr=ur.signal;return{value:er(async function*(){for(;;){let hr=lr;lr=null;let{chunk:pr,done:dr,cb:yr}=await hr;if(rt.nextTick(yr),dr)return;if(fr.aborted)throw new Tt(void 0,{cause:fr.reason});({promise:lr,resolve:cr}=kt()),yield pr}}(),{signal:fr}),write(hr,pr,dr){let yr=cr;cr=null,yr({chunk:hr,done:!1,cb:dr})},final(hr){let pr=cr;cr=null,pr({done:!0,cb:hr})},destroy(hr,pr){ur.abort(),pr(hr)}}}function Zt(er){let lr=er.readable&&typeof er.readable.read!="function"?Nt.wrap(er.readable):er.readable,cr=er.writable,ur=!!ct(lr),fr=!!ut(cr),hr,pr,dr,yr,Sr;function br(mr){let Er=yr;yr=null,Er?Er(mr):mr&&Sr.destroy(mr)}return Sr=new Xt({readableObjectMode:!!(lr!=null&&lr.readableObjectMode),writableObjectMode:!!(cr!=null&&cr.writableObjectMode),readable:ur,writable:fr}),fr&&(wt(cr,mr=>{fr=!1,mr&&At(lr,mr),br(mr)}),Sr._write=function(mr,Er,Tr){cr.write(mr,Er)?Tr():hr=Tr},Sr._final=function(mr){cr.end(),pr=mr},cr.on("drain",function(){if(hr){let mr=hr;hr=null,mr()}}),cr.on("finish",function(){if(pr){let mr=pr;pr=null,mr()}})),ur&&(wt(lr,mr=>{ur=!1,mr&&At(lr,mr),br(mr)}),lr.on("readable",function(){if(dr){let mr=dr;dr=null,mr()}}),lr.on("end",function(){Sr.push(null)}),Sr._read=function(){for(;;){let mr=lr.read();if(mr===null){dr=Sr._read;return}if(!Sr.push(mr))return}}),Sr._destroy=function(mr,Er){!mr&&yr!==null&&(mr=new Tt),dr=null,hr=null,pr=null,yr===null?Er(mr):(yr=Er,At(cr,mr),At(lr,mr))},Sr}}),nt=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ObjectDefineProperties:rt,ObjectGetOwnPropertyDescriptor:st,ObjectKeys:ct,ObjectSetPrototypeOf:ut}=ce();et.exports=xt;var ft=hi(),gt=lo();ut(xt.prototype,ft.prototype),ut(xt,ft);{let Tt=ct(gt.prototype);for(let Rt=0;Rt{_$2(),v$1(),m$1();var{ObjectSetPrototypeOf:rt,Symbol:st}=ce();et.exports=xt;var{ERR_METHOD_NOT_IMPLEMENTED:ct}=Se().codes,ut=nt(),{getHighWaterMark:ft}=tn();rt(xt.prototype,ut.prototype),rt(xt,ut);var gt=st("kCallback");function xt(wt){if(!(this instanceof xt))return new xt(wt);let Tt=wt?ft(this,wt,"readableHighWaterMark",!0):null;Tt===0&&(wt={...wt,highWaterMark:null,readableHighWaterMark:Tt,writableHighWaterMark:wt.writableHighWaterMark||0}),ut.call(this,wt),this._readableState.sync=!1,this[gt]=null,wt&&(typeof wt.transform=="function"&&(this._transform=wt.transform),typeof wt.flush=="function"&&(this._flush=wt.flush)),this.on("prefinish",_t)}function $t(wt){typeof this._flush=="function"&&!this.destroyed?this._flush((Tt,Rt)=>{if(Tt){wt?wt(Tt):this.destroy(Tt);return}Rt!=null&&this.push(Rt),this.push(null),wt&&wt()}):(this.push(null),wt&&wt())}function _t(){this._final!==$t&&$t.call(this)}xt.prototype._final=$t,xt.prototype._transform=function(wt,Tt,Rt){throw new ct("_transform()")},xt.prototype._write=function(wt,Tt,Rt){let It=this._readableState,At=this._writableState,jt=It.length;this._transform(wt,Tt,(Nt,kt)=>{if(Nt){Rt(Nt);return}kt!=null&&this.push(kt),At.ended||jt===It.length||It.length{_$2(),v$1(),m$1();var{ObjectSetPrototypeOf:rt}=ce();et.exports=ct;var st=yo();rt(ct.prototype,st.prototype),rt(ct,st);function ct(ut){if(!(this instanceof ct))return new ct(ut);st.call(this,ut)}ct.prototype._transform=function(ut,ft,gt){gt(null,ut)}}),bn=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=Ut(),{ArrayIsArray:st,Promise:ct,SymbolAsyncIterator:ut}=ce(),ft=mt(),{once:gt}=Je(),xt=tr(),$t=nt(),{aggregateTwoErrors:_t,codes:{ERR_INVALID_ARG_TYPE:wt,ERR_INVALID_RETURN_VALUE:Tt,ERR_MISSING_ARGS:Rt,ERR_STREAM_DESTROYED:It,ERR_STREAM_PREMATURE_CLOSE:At},AbortError:jt}=Se(),{validateFunction:Nt,validateAbortSignal:kt}=ui(),{isIterable:Ft,isReadable:Ht,isReadableNodeStream:Wt,isNodeStream:Vt,isTransformStream:qt,isWebStream:Xt,isReadableStream:Gt,isReadableEnded:Zt}=tt(),er=globalThis.AbortController||Fi().AbortController,lr,cr;function ur(Er,Tr,Mr){let Or=!1;Er.on("close",()=>{Or=!0});let wr=ft(Er,{readable:Tr,writable:Mr},Cr=>{Or=!Cr});return{destroy:Cr=>{Or||(Or=!0,xt.destroyer(Er,Cr||new It("pipe")))},cleanup:wr}}function fr(Er){return Nt(Er[Er.length-1],"streams[stream.length - 1]"),Er.pop()}function hr(Er){if(Ft(Er))return Er;if(Wt(Er))return pr(Er);throw new wt("val",["Readable","Iterable","AsyncIterable"],Er)}async function*pr(Er){cr||(cr=hi()),yield*cr.prototype[ut].call(Er)}async function dr(Er,Tr,Mr,{end:Or}){let wr,Cr=null,Nr=jr=>{if(jr&&(wr=jr),Cr){let kr=Cr;Cr=null,kr()}},Rr=()=>new ct((jr,kr)=>{wr?kr(wr):Cr=()=>{wr?kr(wr):jr()}});Tr.on("drain",Nr);let Pr=ft(Tr,{readable:!1},Nr);try{Tr.writableNeedDrain&&await Rr();for await(let jr of Er)Tr.write(jr)||await Rr();Or&&Tr.end(),await Rr(),Mr()}catch(jr){Mr(wr!==jr?_t(wr,jr):jr)}finally{Pr(),Tr.off("drain",Nr)}}async function yr(Er,Tr,Mr,{end:Or}){qt(Tr)&&(Tr=Tr.writable);let wr=Tr.getWriter();try{for await(let Cr of Er)await wr.ready,wr.write(Cr).catch(()=>{});await wr.ready,Or&&await wr.close(),Mr()}catch(Cr){try{await wr.abort(Cr),Mr(Cr)}catch(Nr){Mr(Nr)}}}function Sr(...Er){return br(Er,gt(fr(Er)))}function br(Er,Tr,Mr){if(Er.length===1&&st(Er[0])&&(Er=Er[0]),Er.length<2)throw new Rt("streams");let Or=new er,wr=Or.signal,Cr=Mr==null?void 0:Mr.signal,Nr=[];kt(Cr,"options.signal");function Rr(){Br(new jt)}Cr==null||Cr.addEventListener("abort",Rr);let Pr,jr,kr=[],Fr=0;function _r(Hr){Br(Hr,--Fr===0)}function Br(Hr,Vr){if(Hr&&(!Pr||Pr.code==="ERR_STREAM_PREMATURE_CLOSE")&&(Pr=Hr),!(!Pr&&!Vr)){for(;kr.length;)kr.shift()(Pr);Cr==null||Cr.removeEventListener("abort",Rr),Or.abort(),Vr&&(Pr||Nr.forEach(ln=>ln()),rt.nextTick(Tr,Pr,jr))}}let Dr;for(let Hr=0;Hr0,Zr=ln||(Mr==null?void 0:Mr.end)!==!1,vn=Hr===Er.length-1;if(Vt(Vr)){let vr=function(gr){gr&&gr.name!=="AbortError"&&gr.code!=="ERR_STREAM_PREMATURE_CLOSE"&&_r(gr)};if(Zr){let{destroy:gr,cleanup:$r}=ur(Vr,ln,Qr);kr.push(gr),Ht(Vr)&&vn&&Nr.push($r)}Vr.on("error",vr),Ht(Vr)&&vn&&Nr.push(()=>{Vr.removeListener("error",vr)})}if(Hr===0)if(typeof Vr=="function"){if(Dr=Vr({signal:wr}),!Ft(Dr))throw new Tt("Iterable, AsyncIterable or Stream","source",Dr)}else Ft(Vr)||Wt(Vr)||qt(Vr)?Dr=Vr:Dr=$t.from(Vr);else if(typeof Vr=="function"){if(qt(Dr)){var Xr;Dr=hr((Xr=Dr)===null||Xr===void 0?void 0:Xr.readable)}else Dr=hr(Dr);if(Dr=Vr(Dr,{signal:wr}),ln){if(!Ft(Dr,!0))throw new Tt("AsyncIterable",`transform[${Hr-1}]`,Dr)}else{var Kr;lr||(lr=wo());let vr=new lr({objectMode:!0}),gr=(Kr=Dr)===null||Kr===void 0?void 0:Kr.then;if(typeof gr=="function")Fr++,gr.call(Dr,qr=>{jr=qr,qr!=null&&vr.write(qr),Zr&&vr.end(),rt.nextTick(_r)},qr=>{vr.destroy(qr),rt.nextTick(_r,qr)});else if(Ft(Dr,!0))Fr++,dr(Dr,vr,_r,{end:Zr});else if(Gt(Dr)||qt(Dr)){let qr=Dr.readable||Dr;Fr++,dr(qr,vr,_r,{end:Zr})}else throw new Tt("AsyncIterable or Promise","destination",Dr);Dr=vr;let{destroy:$r,cleanup:zr}=ur(Dr,!1,!0);kr.push($r),vn&&Nr.push(zr)}}else if(Vt(Vr)){if(Wt(Dr)){Fr+=2;let vr=mr(Dr,Vr,_r,{end:Zr});Ht(Vr)&&vn&&Nr.push(vr)}else if(qt(Dr)||Gt(Dr)){let vr=Dr.readable||Dr;Fr++,dr(vr,Vr,_r,{end:Zr})}else if(Ft(Dr))Fr++,dr(Dr,Vr,_r,{end:Zr});else throw new wt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Dr);Dr=Vr}else if(Xt(Vr)){if(Wt(Dr))Fr++,yr(hr(Dr),Vr,_r,{end:Zr});else if(Gt(Dr)||Ft(Dr))Fr++,yr(Dr,Vr,_r,{end:Zr});else if(qt(Dr))Fr++,yr(Dr.readable,Vr,_r,{end:Zr});else throw new wt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Dr);Dr=Vr}else Dr=$t.from(Vr)}return(wr!=null&&wr.aborted||Cr!=null&&Cr.aborted)&&rt.nextTick(Rr),Dr}function mr(Er,Tr,Mr,{end:Or}){let wr=!1;if(Tr.on("close",()=>{wr||Mr(new At)}),Er.pipe(Tr,{end:!1}),Or){let Cr=function(){wr=!0,Tr.end()};Zt(Er)?rt.nextTick(Cr):Er.once("end",Cr)}else Mr();return ft(Er,{readable:!0,writable:!1},Cr=>{let Nr=Er._readableState;Cr&&Cr.code==="ERR_STREAM_PREMATURE_CLOSE"&&Nr&&Nr.ended&&!Nr.errored&&!Nr.errorEmitted?Er.once("end",Mr).once("error",Mr):Mr(Cr)}),ft(Tr,{readable:!1,writable:!0},Mr)}et.exports={pipelineImpl:br,pipeline:Sr}}),Co=M$1((_e,et)=>{_$2(),v$1(),m$1();var{pipeline:rt}=bn(),st=nt(),{destroyer:ct}=tr(),{isNodeStream:ut,isReadable:ft,isWritable:gt,isWebStream:xt,isTransformStream:$t,isWritableStream:_t,isReadableStream:wt}=tt(),{AbortError:Tt,codes:{ERR_INVALID_ARG_VALUE:Rt,ERR_MISSING_ARGS:It}}=Se(),At=mt();et.exports=function(...jt){if(jt.length===0)throw new It("streams");if(jt.length===1)return st.from(jt[0]);let Nt=[...jt];if(typeof jt[0]=="function"&&(jt[0]=st.from(jt[0])),typeof jt[jt.length-1]=="function"){let lr=jt.length-1;jt[lr]=st.from(jt[lr])}for(let lr=0;lr0&&!(gt(jt[lr])||_t(jt[lr])||$t(jt[lr])))throw new Rt(`streams[${lr}]`,Nt[lr],"must be writable")}let kt,Ft,Ht,Wt,Vt;function qt(lr){let cr=Wt;Wt=null,cr?cr(lr):lr?Vt.destroy(lr):!er&&!Zt&&Vt.destroy()}let Xt=jt[0],Gt=rt(jt,qt),Zt=!!(gt(Xt)||_t(Xt)||$t(Xt)),er=!!(ft(Gt)||wt(Gt)||$t(Gt));if(Vt=new st({writableObjectMode:!!(Xt!=null&&Xt.writableObjectMode),readableObjectMode:!!(Gt!=null&&Gt.writableObjectMode),writable:Zt,readable:er}),Zt){if(ut(Xt))Vt._write=function(cr,ur,fr){Xt.write(cr,ur)?fr():kt=fr},Vt._final=function(cr){Xt.end(),Ft=cr},Xt.on("drain",function(){if(kt){let cr=kt;kt=null,cr()}});else if(xt(Xt)){let cr=($t(Xt)?Xt.writable:Xt).getWriter();Vt._write=async function(ur,fr,hr){try{await cr.ready,cr.write(ur).catch(()=>{}),hr()}catch(pr){hr(pr)}},Vt._final=async function(ur){try{await cr.ready,cr.close().catch(()=>{}),Ft=ur}catch(fr){ur(fr)}}}let lr=$t(Gt)?Gt.readable:Gt;At(lr,()=>{if(Ft){let cr=Ft;Ft=null,cr()}})}if(er){if(ut(Gt))Gt.on("readable",function(){if(Ht){let lr=Ht;Ht=null,lr()}}),Gt.on("end",function(){Vt.push(null)}),Vt._read=function(){for(;;){let lr=Gt.read();if(lr===null){Ht=Vt._read;return}if(!Vt.push(lr))return}};else if(xt(Gt)){let lr=($t(Gt)?Gt.readable:Gt).getReader();Vt._read=async function(){for(;;)try{let{value:cr,done:ur}=await lr.read();if(!Vt.push(cr))return;if(ur){Vt.push(null);return}}catch{return}}}}return Vt._destroy=function(lr,cr){!lr&&Wt!==null&&(lr=new Tt),Ht=null,kt=null,Ft=null,Wt===null?cr(lr):(Wt=cr,ut(Gt)&&ct(Gt,lr))},Vt}}),Kh=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=globalThis.AbortController||Fi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:st,ERR_INVALID_ARG_TYPE:ct,ERR_MISSING_ARGS:ut,ERR_OUT_OF_RANGE:ft},AbortError:gt}=Se(),{validateAbortSignal:xt,validateInteger:$t,validateObject:_t}=ui(),wt=ce().Symbol("kWeak"),{finished:Tt}=mt(),Rt=Co(),{addAbortSignalNoValidate:It}=fi(),{isWritable:At,isNodeStream:jt}=tt(),{ArrayPrototypePush:Nt,MathFloor:kt,Number:Ft,NumberIsNaN:Ht,Promise:Wt,PromiseReject:Vt,PromisePrototypeThen:qt,Symbol:Xt}=ce(),Gt=Xt("kEmpty"),Zt=Xt("kEof");function er(Or,wr){if(wr!=null&&_t(wr,"options"),(wr==null?void 0:wr.signal)!=null&&xt(wr.signal,"options.signal"),jt(Or)&&!At(Or))throw new st("stream",Or,"must be writable");let Cr=Rt(this,Or);return wr!=null&&wr.signal&&It(wr.signal,Cr),Cr}function lr(Or,wr){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);wr!=null&&_t(wr,"options"),(wr==null?void 0:wr.signal)!=null&&xt(wr.signal,"options.signal");let Cr=1;return(wr==null?void 0:wr.concurrency)!=null&&(Cr=kt(wr.concurrency)),$t(Cr,"concurrency",1),(async function*(){var Nr,Rr;let Pr=new rt,jr=this,kr=[],Fr=Pr.signal,_r={signal:Fr},Br=()=>Pr.abort();wr!=null&&(Nr=wr.signal)!==null&&Nr!==void 0&&Nr.aborted&&Br(),wr==null||(Rr=wr.signal)===null||Rr===void 0||Rr.addEventListener("abort",Br);let Dr,Xr,Kr=!1;function Hr(){Kr=!0}async function Vr(){try{for await(let Zr of jr){var ln;if(Kr)return;if(Fr.aborted)throw new gt;try{Zr=Or(Zr,_r)}catch(vn){Zr=Vt(vn)}Zr!==Gt&&(typeof((ln=Zr)===null||ln===void 0?void 0:ln.catch)=="function"&&Zr.catch(Hr),kr.push(Zr),Dr&&(Dr(),Dr=null),!Kr&&kr.length&&kr.length>=Cr&&await new Wt(vn=>{Xr=vn}))}kr.push(Zt)}catch(Zr){let vn=Vt(Zr);qt(vn,void 0,Hr),kr.push(vn)}finally{var Qr;Kr=!0,Dr&&(Dr(),Dr=null),wr==null||(Qr=wr.signal)===null||Qr===void 0||Qr.removeEventListener("abort",Br)}}Vr();try{for(;;){for(;kr.length>0;){let ln=await kr[0];if(ln===Zt)return;if(Fr.aborted)throw new gt;ln!==Gt&&(yield ln),kr.shift(),Xr&&(Xr(),Xr=null)}await new Wt(ln=>{Dr=ln})}}finally{Pr.abort(),Kr=!0,Xr&&(Xr(),Xr=null)}}).call(this)}function cr(Or=void 0){return Or!=null&&_t(Or,"options"),(Or==null?void 0:Or.signal)!=null&&xt(Or.signal,"options.signal"),(async function*(){let wr=0;for await(let Nr of this){var Cr;if(Or!=null&&(Cr=Or.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt({cause:Or.signal.reason});yield[wr++,Nr]}}).call(this)}async function ur(Or,wr=void 0){for await(let Cr of dr.call(this,Or,wr))return!0;return!1}async function fr(Or,wr=void 0){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);return!await ur.call(this,async(...Cr)=>!await Or(...Cr),wr)}async function hr(Or,wr){for await(let Cr of dr.call(this,Or,wr))return Cr}async function pr(Or,wr){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);async function Cr(Nr,Rr){return await Or(Nr,Rr),Gt}for await(let Nr of lr.call(this,Cr,wr));}function dr(Or,wr){if(typeof Or!="function")throw new ct("fn",["Function","AsyncFunction"],Or);async function Cr(Nr,Rr){return await Or(Nr,Rr)?Nr:Gt}return lr.call(this,Cr,wr)}var yr=class extends ut{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Sr(Or,wr,Cr){var Nr;if(typeof Or!="function")throw new ct("reducer",["Function","AsyncFunction"],Or);Cr!=null&&_t(Cr,"options"),(Cr==null?void 0:Cr.signal)!=null&&xt(Cr.signal,"options.signal");let Rr=arguments.length>1;if(Cr!=null&&(Nr=Cr.signal)!==null&&Nr!==void 0&&Nr.aborted){let _r=new gt(void 0,{cause:Cr.signal.reason});throw this.once("error",()=>{}),await Tt(this.destroy(_r)),_r}let Pr=new rt,jr=Pr.signal;if(Cr!=null&&Cr.signal){let _r={once:!0,[wt]:this};Cr.signal.addEventListener("abort",()=>Pr.abort(),_r)}let kr=!1;try{for await(let _r of this){var Fr;if(kr=!0,Cr!=null&&(Fr=Cr.signal)!==null&&Fr!==void 0&&Fr.aborted)throw new gt;Rr?wr=await Or(wr,_r,{signal:jr}):(wr=_r,Rr=!0)}if(!kr&&!Rr)throw new yr}finally{Pr.abort()}return wr}async function br(Or){Or!=null&&_t(Or,"options"),(Or==null?void 0:Or.signal)!=null&&xt(Or.signal,"options.signal");let wr=[];for await(let Nr of this){var Cr;if(Or!=null&&(Cr=Or.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt(void 0,{cause:Or.signal.reason});Nt(wr,Nr)}return wr}function mr(Or,wr){let Cr=lr.call(this,Or,wr);return(async function*(){for await(let Nr of Cr)yield*Nr}).call(this)}function Er(Or){if(Or=Ft(Or),Ht(Or))return 0;if(Or<0)throw new ft("number",">= 0",Or);return Or}function Tr(Or,wr=void 0){return wr!=null&&_t(wr,"options"),(wr==null?void 0:wr.signal)!=null&&xt(wr.signal,"options.signal"),Or=Er(Or),(async function*(){var Cr;if(wr!=null&&(Cr=wr.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt;for await(let Rr of this){var Nr;if(wr!=null&&(Nr=wr.signal)!==null&&Nr!==void 0&&Nr.aborted)throw new gt;Or--<=0&&(yield Rr)}}).call(this)}function Mr(Or,wr=void 0){return wr!=null&&_t(wr,"options"),(wr==null?void 0:wr.signal)!=null&&xt(wr.signal,"options.signal"),Or=Er(Or),(async function*(){var Cr;if(wr!=null&&(Cr=wr.signal)!==null&&Cr!==void 0&&Cr.aborted)throw new gt;for await(let Rr of this){var Nr;if(wr!=null&&(Nr=wr.signal)!==null&&Nr!==void 0&&Nr.aborted)throw new gt;if(Or-- >0)yield Rr;else return}}).call(this)}et.exports.streamReturningOperators={asIndexedPairs:cr,drop:Tr,filter:dr,flatMap:mr,map:lr,take:Mr,compose:er},et.exports.promiseReturningOperators={every:fr,forEach:pr,reduce:Sr,toArray:br,some:ur,find:hr}}),xo=M$1((_e,et)=>{_$2(),v$1(),m$1();var{ArrayPrototypePop:rt,Promise:st}=ce(),{isIterable:ct,isNodeStream:ut,isWebStream:ft}=tt(),{pipelineImpl:gt}=bn(),{finished:xt}=mt();ko();function $t(..._t){return new st((wt,Tt)=>{let Rt,It,At=_t[_t.length-1];if(At&&typeof At=="object"&&!ut(At)&&!ct(At)&&!ft(At)){let jt=rt(_t);Rt=jt.signal,It=jt.end}gt(_t,(jt,Nt)=>{jt?Tt(jt):wt(Nt)},{signal:Rt,end:It})})}et.exports={finished:xt,pipeline:$t}}),ko=M$1((_e,et)=>{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),{ObjectDefineProperty:st,ObjectKeys:ct,ReflectApply:ut}=ce(),{promisify:{custom:ft}}=Je(),{streamReturningOperators:gt,promiseReturningOperators:xt}=Kh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:$t}}=Se(),_t=Co(),{pipeline:wt}=bn(),{destroyer:Tt}=tr(),Rt=mt(),It=xo(),At=tt(),jt=et.exports=Xi().Stream;jt.isDisturbed=At.isDisturbed,jt.isErrored=At.isErrored,jt.isReadable=At.isReadable,jt.Readable=hi();for(let kt of ct(gt)){let Ft=function(...Wt){if(new.target)throw $t();return jt.Readable.from(ut(Ht,this,Wt))},Ht=gt[kt];st(Ft,"name",{__proto__:null,value:Ht.name}),st(Ft,"length",{__proto__:null,value:Ht.length}),st(jt.Readable.prototype,kt,{__proto__:null,value:Ft,enumerable:!1,configurable:!0,writable:!0})}for(let kt of ct(xt)){let Ft=function(...Wt){if(new.target)throw $t();return ut(Ht,this,Wt)},Ht=xt[kt];st(Ft,"name",{__proto__:null,value:Ht.name}),st(Ft,"length",{__proto__:null,value:Ht.length}),st(jt.Readable.prototype,kt,{__proto__:null,value:Ft,enumerable:!1,configurable:!0,writable:!0})}jt.Writable=lo(),jt.Duplex=nt(),jt.Transform=yo(),jt.PassThrough=wo(),jt.pipeline=wt;var{addAbortSignal:Nt}=fi();jt.addAbortSignal=Nt,jt.finished=Rt,jt.destroy=Tt,jt.compose=_t,st(jt,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return It}}),st(wt,ft,{__proto__:null,enumerable:!0,get(){return It.pipeline}}),st(Rt,ft,{__proto__:null,enumerable:!0,get(){return It.finished}}),jt.Stream=jt,jt._isUint8Array=function(kt){return kt instanceof Uint8Array},jt._uint8ArrayToBuffer=function(kt){return rt.from(kt.buffer,kt.byteOffset,kt.byteLength)}}),Dt=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=ko(),st=xo(),ct=rt.Readable.destroy;et.exports=rt.Readable,et.exports._uint8ArrayToBuffer=rt._uint8ArrayToBuffer,et.exports._isUint8Array=rt._isUint8Array,et.exports.isDisturbed=rt.isDisturbed,et.exports.isErrored=rt.isErrored,et.exports.isReadable=rt.isReadable,et.exports.Readable=rt.Readable,et.exports.Writable=rt.Writable,et.exports.Duplex=rt.Duplex,et.exports.Transform=rt.Transform,et.exports.PassThrough=rt.PassThrough,et.exports.addAbortSignal=rt.addAbortSignal,et.exports.finished=rt.finished,et.exports.destroy=rt.destroy,et.exports.destroy=ct,et.exports.pipeline=rt.pipeline,et.exports.compose=rt.compose,Object.defineProperty(rt,"promises",{configurable:!0,enumerable:!0,get(){return st}}),et.exports.Stream=rt.Stream,et.exports.default=et.exports}),nd=M$1((_e,et)=>{_$2(),v$1(),m$1(),typeof Object.create=="function"?et.exports=function(rt,st){st&&(rt.super_=st,rt.prototype=Object.create(st.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(rt,st){if(st){rt.super_=st;var ct=function(){};ct.prototype=st.prototype,rt.prototype=new ct,rt.prototype.constructor=rt}}}),ad=M$1((_e,et)=>{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),st=Symbol.for("BufferList");function ct(ut){if(!(this instanceof ct))return new ct(ut);ct._init.call(this,ut)}ct._init=function(ut){Object.defineProperty(this,st,{value:!0}),this._bufs=[],this.length=0,ut&&this.append(ut)},ct.prototype._new=function(ut){return new ct(ut)},ct.prototype._offset=function(ut){if(ut===0)return[0,0];let ft=0;for(let gt=0;gtthis.length||ut<0)return;let ft=this._offset(ut);return this._bufs[ft[0]][ft[1]]},ct.prototype.slice=function(ut,ft){return typeof ut=="number"&&ut<0&&(ut+=this.length),typeof ft=="number"&&ft<0&&(ft+=this.length),this.copy(null,0,ut,ft)},ct.prototype.copy=function(ut,ft,gt,xt){if((typeof gt!="number"||gt<0)&&(gt=0),(typeof xt!="number"||xt>this.length)&&(xt=this.length),gt>=this.length||xt<=0)return ut||rt.alloc(0);let $t=!!ut,_t=this._offset(gt),wt=xt-gt,Tt=wt,Rt=$t&&ft||0,It=_t[1];if(gt===0&&xt===this.length){if(!$t)return this._bufs.length===1?this._bufs[0]:rt.concat(this._bufs,this.length);for(let At=0;Atjt)this._bufs[At].copy(ut,Rt,It),Rt+=jt;else{this._bufs[At].copy(ut,Rt,It,It+Tt),Rt+=jt;break}Tt-=jt,It&&(It=0)}return ut.length>Rt?ut.slice(0,Rt):ut},ct.prototype.shallowSlice=function(ut,ft){if(ut=ut||0,ft=typeof ft!="number"?this.length:ft,ut<0&&(ut+=this.length),ft<0&&(ft+=this.length),ut===ft)return this._new();let gt=this._offset(ut),xt=this._offset(ft),$t=this._bufs.slice(gt[0],xt[0]+1);return xt[1]===0?$t.pop():$t[$t.length-1]=$t[$t.length-1].slice(0,xt[1]),gt[1]!==0&&($t[0]=$t[0].slice(gt[1])),this._new($t)},ct.prototype.toString=function(ut,ft,gt){return this.slice(ft,gt).toString(ut)},ct.prototype.consume=function(ut){if(ut=Math.trunc(ut),Number.isNaN(ut)||ut<=0)return this;for(;this._bufs.length;)if(ut>=this._bufs[0].length)ut-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(ut),this.length-=ut;break}return this},ct.prototype.duplicate=function(){let ut=this._new();for(let ft=0;ftthis.length?this.length:ft;let xt=this._offset(ft),$t=xt[0],_t=xt[1];for(;$t=ut.length){let Tt=wt.indexOf(ut,_t);if(Tt!==-1)return this._reverseOffset([$t,Tt]);_t=wt.length-ut.length+1}else{let Tt=this._reverseOffset([$t,_t]);if(this._match(Tt,ut))return Tt;_t++}_t=0}return-1},ct.prototype._match=function(ut,ft){if(this.length-ut{_$2(),v$1(),m$1();var rt=Dt().Duplex,st=nd(),ct=ad();function ut(ft){if(!(this instanceof ut))return new ut(ft);if(typeof ft=="function"){this._callback=ft;let gt=(function(xt){this._callback&&(this._callback(xt),this._callback=null)}).bind(this);this.on("pipe",function(xt){xt.on("error",gt)}),this.on("unpipe",function(xt){xt.removeListener("error",gt)}),ft=null}ct._init.call(this,ft),rt.call(this)}st(ut,rt),Object.assign(ut.prototype,ct.prototype),ut.prototype._new=function(ft){return new ut(ft)},ut.prototype._write=function(ft,gt,xt){this._appendBuffer(ft),typeof xt=="function"&&xt()},ut.prototype._read=function(ft){if(!this.length)return this.push(null);ft=Math.min(ft,this.length),this.push(this.slice(0,ft)),this.consume(ft)},ut.prototype.end=function(ft){rt.prototype.end.call(this,ft),this._callback&&(this._callback(null,this.slice()),this._callback=null)},ut.prototype._destroy=function(ft,gt){this._bufs.length=0,this.length=0,gt(ft)},ut.prototype._isBufferList=function(ft){return ft instanceof ut||ft instanceof ct||ut.isBufferList(ft)},ut.isBufferList=ct.isBufferList,et.exports=ut,et.exports.BufferListStream=ut,et.exports.BufferList=ct}),fd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};et.exports=rt}),jo=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=et.exports,{Buffer:st}=(we(),Z(ve));rt.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"},rt.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},rt.requiredHeaderFlagsErrors={};for(let ut in rt.requiredHeaderFlags){let ft=rt.requiredHeaderFlags[ut];rt.requiredHeaderFlagsErrors[ut]="Invalid header flag bits, must be 0x"+ft.toString(16)+" for "+rt.types[ut]+" packet"}rt.codes={};for(let ut in rt.types){let ft=rt.types[ut];rt.codes[ft]=ut}rt.CMD_SHIFT=4,rt.CMD_MASK=240,rt.DUP_MASK=8,rt.QOS_MASK=3,rt.QOS_SHIFT=1,rt.RETAIN_MASK=1,rt.VARBYTEINT_MASK=127,rt.VARBYTEINT_FIN_MASK=128,rt.VARBYTEINT_MAX=268435455,rt.SESSIONPRESENT_MASK=1,rt.SESSIONPRESENT_HEADER=st.from([rt.SESSIONPRESENT_MASK]),rt.CONNACK_HEADER=st.from([rt.codes.connack<[0,1].map(gt=>[0,1].map(xt=>{let $t=st.alloc(1);return $t.writeUInt8(rt.codes[ut]<st.from([ut])),rt.EMPTY={pingreq:st.from([rt.codes.pingreq<<4,0]),pingresp:st.from([rt.codes.pingresp<<4,0]),disconnect:st.from([rt.codes.disconnect<<4,0])},rt.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"},rt.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},rt.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"},rt.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"},rt.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"},rt.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),dd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=1e3,st=rt*60,ct=st*60,ut=ct*24,ft=ut*7,gt=ut*365.25;et.exports=function(Tt,Rt){Rt=Rt||{};var It=typeof Tt;if(It==="string"&&Tt.length>0)return xt(Tt);if(It==="number"&&isFinite(Tt))return Rt.long?_t(Tt):$t(Tt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(Tt))};function xt(Tt){if(Tt=String(Tt),!(Tt.length>100)){var Rt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(Tt);if(Rt){var It=parseFloat(Rt[1]),At=(Rt[2]||"ms").toLowerCase();switch(At){case"years":case"year":case"yrs":case"yr":case"y":return It*gt;case"weeks":case"week":case"w":return It*ft;case"days":case"day":case"d":return It*ut;case"hours":case"hour":case"hrs":case"hr":case"h":return It*ct;case"minutes":case"minute":case"mins":case"min":case"m":return It*st;case"seconds":case"second":case"secs":case"sec":case"s":return It*rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return It;default:return}}}}function $t(Tt){var Rt=Math.abs(Tt);return Rt>=ut?Math.round(Tt/ut)+"d":Rt>=ct?Math.round(Tt/ct)+"h":Rt>=st?Math.round(Tt/st)+"m":Rt>=rt?Math.round(Tt/rt)+"s":Tt+"ms"}function _t(Tt){var Rt=Math.abs(Tt);return Rt>=ut?wt(Tt,Rt,ut,"day"):Rt>=ct?wt(Tt,Rt,ct,"hour"):Rt>=st?wt(Tt,Rt,st,"minute"):Rt>=rt?wt(Tt,Rt,rt,"second"):Tt+" ms"}function wt(Tt,Rt,It,At){var jt=Rt>=It*1.5;return Math.round(Tt/It)+" "+At+(jt?"s":"")}}),gd=M$1((_e,et)=>{_$2(),v$1(),m$1();function rt(st){ut.debug=ut,ut.default=ut,ut.coerce=wt,ut.disable=xt,ut.enable=gt,ut.enabled=$t,ut.humanize=dd(),ut.destroy=Tt,Object.keys(st).forEach(Rt=>{ut[Rt]=st[Rt]}),ut.names=[],ut.skips=[],ut.formatters={};function ct(Rt){let It=0;for(let At=0;At{if(Xt==="%%")return"%";qt++;let Zt=ut.formatters[Gt];if(typeof Zt=="function"){let er=Ft[qt];Xt=Zt.call(Ht,er),Ft.splice(qt,1),qt--}return Xt}),ut.formatArgs.call(Ht,Ft),(Ht.log||ut.log).apply(Ht,Ft)}return kt.namespace=Rt,kt.useColors=ut.useColors(),kt.color=ut.selectColor(Rt),kt.extend=ft,kt.destroy=ut.destroy,Object.defineProperty(kt,"enabled",{enumerable:!0,configurable:!1,get:()=>At!==null?At:(jt!==ut.namespaces&&(jt=ut.namespaces,Nt=ut.enabled(Rt)),Nt),set:Ft=>{At=Ft}}),typeof ut.init=="function"&&ut.init(kt),kt}function ft(Rt,It){let At=ut(this.namespace+(typeof It>"u"?":":It)+Rt);return At.log=this.log,At}function gt(Rt){ut.save(Rt),ut.namespaces=Rt,ut.names=[],ut.skips=[];let It,At=(typeof Rt=="string"?Rt:"").split(/[\s,]+/),jt=At.length;for(It=0;It"-"+It)].join(",");return ut.enable(""),Rt}function $t(Rt){if(Rt[Rt.length-1]==="*")return!0;let It,At;for(It=0,At=ut.skips.length;It{_$2(),v$1(),m$1(),_e.formatArgs=st,_e.save=ct,_e.load=ut,_e.useColors=rt,_e.storage=ft(),_e.destroy=(()=>{let xt=!1;return()=>{xt||(xt=!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 rt(){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 st(xt){if(xt[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+xt[0]+(this.useColors?"%c ":" ")+"+"+et.exports.humanize(this.diff),!this.useColors)return;let $t="color: "+this.color;xt.splice(1,0,$t,"color: inherit");let _t=0,wt=0;xt[0].replace(/%[a-zA-Z%]/g,Tt=>{Tt!=="%%"&&(_t++,Tt==="%c"&&(wt=_t))}),xt.splice(wt,0,$t)}_e.log=console.debug||console.log||(()=>{});function ct(xt){try{xt?_e.storage.setItem("debug",xt):_e.storage.removeItem("debug")}catch{}}function ut(){let xt;try{xt=_e.storage.getItem("debug")}catch{}return!xt&&typeof B$2<"u"&&"env"in B$2&&(xt=B$2.env.DEBUG),xt}function ft(){try{return localStorage}catch{}}et.exports=gd()(_e);var{formatters:gt}=et.exports;gt.j=function(xt){try{return JSON.stringify(xt)}catch($t){return"[UnexpectedJSONParseError]: "+$t.message}}}),wd=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=ld(),{EventEmitter:st}=(ir(),Z(rr)),ct=fd(),ut=jo(),ft=ot()("mqtt-packet:parser"),gt=class tm extends st{constructor(){super(),this.parser=this.constructor.parser}static parser($t){return this instanceof tm?(this.settings=$t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new tm().parser($t)}_resetState(){ft("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new ct,this.error=null,this._list=rt(),this._stateCounter=0}parse($t){for(this.error&&this._resetState(),this._list.append($t),ft("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++,ft("parse: state complete. _stateCounter is now: %d",this._stateCounter),ft("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return ft("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let $t=this._list.readUInt8(0),_t=$t>>ut.CMD_SHIFT;this.packet.cmd=ut.types[_t];let wt=$t&15,Tt=ut.requiredHeaderFlags[_t];return Tt!=null&&wt!==Tt?this._emitError(new Error(ut.requiredHeaderFlagsErrors[_t])):(this.packet.retain=($t&ut.RETAIN_MASK)!==0,this.packet.qos=$t>>ut.QOS_SHIFT&ut.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=($t&ut.DUP_MASK)!==0,ft("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let $t=this._parseVarByteNum(!0);return $t&&(this.packet.length=$t.value,this._list.consume($t.bytes)),ft("_parseLength %d",$t.value),!!$t}_parsePayload(){ft("_parsePayload: payload %O",this._list);let $t=!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"))}$t=!0}return ft("_parsePayload complete result: %s",$t),$t}_parseConnect(){ft("_parseConnect");let $t,_t,wt,Tt,Rt={},It=this.packet,At=this._parseString();if(At===null)return this._emitError(new Error("Cannot parse protocolId"));if(At!=="MQTT"&&At!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(It.protocolId=At,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(It.protocolVersion=this._list.readUInt8(this._pos),It.protocolVersion>=128&&(It.bridgeMode=!0,It.protocolVersion=It.protocolVersion-128),It.protocolVersion!==3&&It.protocolVersion!==4&&It.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"));Rt.username=this._list.readUInt8(this._pos)&ut.USERNAME_MASK,Rt.password=this._list.readUInt8(this._pos)&ut.PASSWORD_MASK,Rt.will=this._list.readUInt8(this._pos)&ut.WILL_FLAG_MASK;let jt=!!(this._list.readUInt8(this._pos)&ut.WILL_RETAIN_MASK),Nt=(this._list.readUInt8(this._pos)&ut.WILL_QOS_MASK)>>ut.WILL_QOS_SHIFT;if(Rt.will)It.will={},It.will.retain=jt,It.will.qos=Nt;else{if(jt)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(Nt)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(It.clean=(this._list.readUInt8(this._pos)&ut.CLEAN_SESSION_MASK)!==0,this._pos++,It.keepalive=this._parseNum(),It.keepalive===-1)return this._emitError(new Error("Packet too short"));if(It.protocolVersion===5){let Ft=this._parseProperties();Object.getOwnPropertyNames(Ft).length&&(It.properties=Ft)}let kt=this._parseString();if(kt===null)return this._emitError(new Error("Packet too short"));if(It.clientId=kt,ft("_parseConnect: packet.clientId: %s",It.clientId),Rt.will){if(It.protocolVersion===5){let Ft=this._parseProperties();Object.getOwnPropertyNames(Ft).length&&(It.will.properties=Ft)}if($t=this._parseString(),$t===null)return this._emitError(new Error("Cannot parse will topic"));if(It.will.topic=$t,ft("_parseConnect: packet.will.topic: %s",It.will.topic),_t=this._parseBuffer(),_t===null)return this._emitError(new Error("Cannot parse will payload"));It.will.payload=_t,ft("_parseConnect: packet.will.paylaod: %s",It.will.payload)}if(Rt.username){if(Tt=this._parseString(),Tt===null)return this._emitError(new Error("Cannot parse username"));It.username=Tt,ft("_parseConnect: packet.username: %s",It.username)}if(Rt.password){if(wt=this._parseBuffer(),wt===null)return this._emitError(new Error("Cannot parse password"));It.password=wt}return this.settings=It,ft("_parseConnect: complete"),It}_parseConnack(){ft("_parseConnack");let $t=this.packet;if(this._list.length<1)return null;let _t=this._list.readUInt8(this._pos++);if(_t>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if($t.sessionPresent=!!(_t&ut.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?$t.reasonCode=this._list.readUInt8(this._pos++):$t.reasonCode=0;else{if(this._list.length<2)return null;$t.returnCode=this._list.readUInt8(this._pos++)}if($t.returnCode===-1||$t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let wt=this._parseProperties();Object.getOwnPropertyNames(wt).length&&($t.properties=wt)}ft("_parseConnack: complete")}_parsePublish(){ft("_parsePublish");let $t=this.packet;if($t.topic=this._parseString(),$t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!($t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}$t.payload=this._list.slice(this._pos,$t.length),ft("_parsePublish: payload from buffer list: %o",$t.payload)}}_parseSubscribe(){ft("_parseSubscribe");let $t=this.packet,_t,wt,Tt,Rt,It,At,jt;if($t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let Nt=this._parseProperties();Object.getOwnPropertyNames(Nt).length&&($t.properties=Nt)}if($t.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<$t.length;){if(_t=this._parseString(),_t===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=$t.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(wt=this._parseByte(),this.settings.protocolVersion===5){if(wt&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(wt&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(Tt=wt&ut.SUBSCRIBE_OPTIONS_QOS_MASK,Tt>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(At=(wt>>ut.SUBSCRIBE_OPTIONS_NL_SHIFT&ut.SUBSCRIBE_OPTIONS_NL_MASK)!==0,It=(wt>>ut.SUBSCRIBE_OPTIONS_RAP_SHIFT&ut.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,Rt=wt>>ut.SUBSCRIBE_OPTIONS_RH_SHIFT&ut.SUBSCRIBE_OPTIONS_RH_MASK,Rt>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));jt={topic:_t,qos:Tt},this.settings.protocolVersion===5?(jt.nl=At,jt.rap=It,jt.rh=Rt):this.settings.bridgeMode&&(jt.rh=0,jt.rap=!0,jt.nl=!0),ft("_parseSubscribe: push subscription `%s` to subscription",jt),$t.subscriptions.push(jt)}}}_parseSuback(){ft("_parseSuback");let $t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}if($t.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&_t!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(_t)}}}_parseUnsubscribe(){ft("_parseUnsubscribe");let $t=this.packet;if($t.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}if($t.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<$t.length;){let _t=this._parseString();if(_t===null)return this._emitError(new Error("Cannot parse topic"));ft("_parseUnsubscribe: push topic `%s` to unsubscriptions",_t),$t.unsubscriptions.push(_t)}}}_parseUnsuback(){ft("_parseUnsuback");let $t=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&$t.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if($t.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let _t=this._parseProperties();for(Object.getOwnPropertyNames(_t).length&&($t.properties=_t),$t.granted=[];this._pos2){switch($t.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!ut.MQTT5_PUBACK_PUBREC_CODES[$t.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!ut.MQTT5_PUBREL_PUBCOMP_CODES[$t.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}ft("_parseConfirmation: packet.reasonCode `%d`",$t.reasonCode)}else $t.reasonCode=0;if($t.length>3){let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}}return!0}_parseDisconnect(){let $t=this.packet;if(ft("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?($t.reasonCode=this._parseByte(),ut.MQTT5_DISCONNECT_CODES[$t.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):$t.reasonCode=0;let _t=this._parseProperties();Object.getOwnPropertyNames(_t).length&&($t.properties=_t)}return ft("_parseDisconnect result: true"),!0}_parseAuth(){ft("_parseAuth");let $t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if($t.reasonCode=this._parseByte(),!ut.MQTT5_AUTH_CODES[$t.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let _t=this._parseProperties();return Object.getOwnPropertyNames(_t).length&&($t.properties=_t),ft("_parseAuth: result: true"),!0}_parseMessageId(){let $t=this.packet;return $t.messageId=this._parseNum(),$t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(ft("_parseMessageId: packet.messageId %d",$t.messageId),!0)}_parseString($t){let _t=this._parseNum(),wt=_t+this._pos;if(_t===-1||wt>this._list.length||wt>this.packet.length)return null;let Tt=this._list.toString("utf8",this._pos,wt);return this._pos+=_t,ft("_parseString: result: %s",Tt),Tt}_parseStringPair(){return ft("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let $t=this._parseNum(),_t=$t+this._pos;if($t===-1||_t>this._list.length||_t>this.packet.length)return null;let wt=this._list.slice(this._pos,_t);return this._pos+=$t,ft("_parseBuffer: result: %o",wt),wt}_parseNum(){if(this._list.length-this._pos<2)return-1;let $t=this._list.readUInt16BE(this._pos);return this._pos+=2,ft("_parseNum: result: %s",$t),$t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let $t=this._list.readUInt32BE(this._pos);return this._pos+=4,ft("_parse4ByteNum: result: %s",$t),$t}_parseVarByteNum($t){ft("_parseVarByteNum");let _t=4,wt=0,Tt=1,Rt=0,It=!1,At,jt=this._pos?this._pos:0;for(;wt<_t&&jt+wt=wt&&this._emitError(new Error("Invalid variable byte integer")),jt&&(this._pos+=wt),It?$t?It={bytes:wt,value:Rt}:It=Rt:It=!1,ft("_parseVarByteNum: result: %o",It),It}_parseByte(){let $t;return this._pos{_$2(),v$1(),m$1();var{Buffer:rt}=(we(),Z(ve)),st=65536,ct={},ut=rt.isBuffer(rt.from([1,2]).subarray(0,1));function ft(_t){let wt=rt.allocUnsafe(2);return wt.writeUInt8(_t>>8,0),wt.writeUInt8(_t&255,1),wt}function gt(){for(let _t=0;_t0&&(wt=wt|128),Rt.writeUInt8(wt,Tt++);while(_t>0&&Tt<4);return _t>0&&(Tt=0),ut?Rt.subarray(0,Tt):Rt.slice(0,Tt)}function $t(_t){let wt=rt.allocUnsafe(4);return wt.writeUInt32BE(_t,0),wt}et.exports={cache:ct,generateCache:gt,generateNumber:ft,genBufVariableByteInt:xt,generate4ByteBuffer:$t}}),Sd=M$1((_e,et)=>{_$2(),v$1(),m$1(),typeof B$2>"u"||!B$2.version||B$2.version.indexOf("v0.")===0||B$2.version.indexOf("v1.")===0&&B$2.version.indexOf("v1.8.")!==0?et.exports={nextTick:rt}:et.exports=B$2;function rt(st,ct,ut,ft){if(typeof st!="function")throw new TypeError('"callback" argument must be a function');var gt=arguments.length,xt,$t;switch(gt){case 0:case 1:return B$2.nextTick(st);case 2:return B$2.nextTick(function(){st.call(null,ct)});case 3:return B$2.nextTick(function(){st.call(null,ct,ut)});case 4:return B$2.nextTick(function(){st.call(null,ct,ut,ft)});default:for(xt=new Array(gt-1),$t=0;$t{_$2(),v$1(),m$1();var rt=jo(),{Buffer:st}=(we(),Z(ve)),ct=st.allocUnsafe(0),ut=st.from([0]),ft=Ed(),gt=Sd().nextTick,xt=ot()("mqtt-packet:writeToStream"),$t=ft.cache,_t=ft.generateNumber,wt=ft.generateCache,Tt=ft.genBufVariableByteInt,Rt=ft.generate4ByteBuffer,It=pr,At=!0;function jt(wr,Cr,Nr){switch(xt("generate called"),Cr.cork&&(Cr.cork(),gt(Nt,Cr)),At&&(At=!1,wt()),xt("generate: packet.cmd: %s",wr.cmd),wr.cmd){case"connect":return kt(wr,Cr);case"connack":return Ft(wr,Cr,Nr);case"publish":return Ht(wr,Cr,Nr);case"puback":case"pubrec":case"pubrel":case"pubcomp":return Wt(wr,Cr,Nr);case"subscribe":return Vt(wr,Cr,Nr);case"suback":return qt(wr,Cr,Nr);case"unsubscribe":return Xt(wr,Cr,Nr);case"unsuback":return Gt(wr,Cr,Nr);case"pingreq":case"pingresp":return Zt(wr,Cr);case"disconnect":return er(wr,Cr,Nr);case"auth":return lr(wr,Cr,Nr);default:return Cr.destroy(new Error("Unknown command")),!1}}Object.defineProperty(jt,"cacheNumbers",{get(){return It===pr},set(wr){wr?((!$t||Object.keys($t).length===0)&&(At=!0),It=pr):(At=!1,It=dr)}});function Nt(wr){wr.uncork()}function kt(wr,Cr,Nr){let Rr=wr||{},Pr=Rr.protocolId||"MQTT",jr=Rr.protocolVersion||4,kr=Rr.will,Fr=Rr.clean,_r=Rr.keepalive||0,Br=Rr.clientId||"",Dr=Rr.username,Xr=Rr.password,Kr=Rr.properties;Fr===void 0&&(Fr=!0);let Hr=0;if(!Pr||typeof Pr!="string"&&!st.isBuffer(Pr))return Cr.destroy(new Error("Invalid protocolId")),!1;if(Hr+=Pr.length+2,jr!==3&&jr!==4&&jr!==5)return Cr.destroy(new Error("Invalid protocol version")),!1;if(Hr+=1,(typeof Br=="string"||st.isBuffer(Br))&&(Br||jr>=4)&&(Br||Fr))Hr+=st.byteLength(Br)+2;else{if(jr<4)return Cr.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(Fr*1===0)return Cr.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof _r!="number"||_r<0||_r>65535||_r%1!==0)return Cr.destroy(new Error("Invalid keepalive")),!1;Hr+=2,Hr+=1;let Vr,ln;if(jr===5){if(Vr=br(Cr,Kr),!Vr)return!1;Hr+=Vr.length}if(kr){if(typeof kr!="object")return Cr.destroy(new Error("Invalid will")),!1;if(!kr.topic||typeof kr.topic!="string")return Cr.destroy(new Error("Invalid will topic")),!1;if(Hr+=st.byteLength(kr.topic)+2,Hr+=2,kr.payload)if(kr.payload.length>=0)typeof kr.payload=="string"?Hr+=st.byteLength(kr.payload):Hr+=kr.payload.length;else return Cr.destroy(new Error("Invalid will payload")),!1;if(ln={},jr===5){if(ln=br(Cr,kr.properties),!ln)return!1;Hr+=ln.length}}let Qr=!1;if(Dr!=null)if(Or(Dr))Qr=!0,Hr+=st.byteLength(Dr)+2;else return Cr.destroy(new Error("Invalid username")),!1;if(Xr!=null){if(!Qr)return Cr.destroy(new Error("Username is required to use password")),!1;if(Or(Xr))Hr+=Mr(Xr)+2;else return Cr.destroy(new Error("Invalid password")),!1}Cr.write(rt.CONNECT_HEADER),ur(Cr,Hr),Sr(Cr,Pr),Rr.bridgeMode&&(jr+=128),Cr.write(jr===131?rt.VERSION131:jr===132?rt.VERSION132:jr===4?rt.VERSION4:jr===5?rt.VERSION5:rt.VERSION3);let Zr=0;return Zr|=Dr!=null?rt.USERNAME_MASK:0,Zr|=Xr!=null?rt.PASSWORD_MASK:0,Zr|=kr&&kr.retain?rt.WILL_RETAIN_MASK:0,Zr|=kr&&kr.qos?kr.qos<0&&It(Cr,Br),Kr==null||Kr.write(),xt("publish: payload: %o",_r),Cr.write(_r)}function Wt(wr,Cr,Nr){let Rr=Nr?Nr.protocolVersion:4,Pr=wr||{},jr=Pr.cmd||"puback",kr=Pr.messageId,Fr=Pr.dup&&jr==="pubrel"?rt.DUP_MASK:0,_r=0,Br=Pr.reasonCode,Dr=Pr.properties,Xr=Rr===5?3:2;if(jr==="pubrel"&&(_r=1),typeof kr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;let Kr=null;if(Rr===5&&typeof Dr=="object"){if(Kr=mr(Cr,Dr,Nr,Xr),!Kr)return!1;Xr+=Kr.length}return Cr.write(rt.ACKS[jr][_r][Fr][0]),Xr===3&&(Xr+=Br!==0?1:-1),ur(Cr,Xr),It(Cr,kr),Rr===5&&Xr!==2&&Cr.write(st.from([Br])),Kr!==null?Kr.write():Xr===4&&Cr.write(st.from([0])),!0}function Vt(wr,Cr,Nr){xt("subscribe: packet: ");let Rr=Nr?Nr.protocolVersion:4,Pr=wr||{},jr=Pr.dup?rt.DUP_MASK:0,kr=Pr.messageId,Fr=Pr.subscriptions,_r=Pr.properties,Br=0;if(typeof kr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;Br+=2;let Dr=null;if(Rr===5){if(Dr=br(Cr,_r),!Dr)return!1;Br+=Dr.length}if(typeof Fr=="object"&&Fr.length)for(let Kr=0;Kr2)return Cr.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}Br+=st.byteLength(Hr)+2+1}else return Cr.destroy(new Error("Invalid subscriptions")),!1;xt("subscribe: writing to stream: %o",rt.SUBSCRIBE_HEADER),Cr.write(rt.SUBSCRIBE_HEADER[1][jr?1:0][0]),ur(Cr,Br),It(Cr,kr),Dr!==null&&Dr.write();let Xr=!0;for(let Kr of Fr){let Hr=Kr.topic,Vr=Kr.qos,ln=+Kr.nl,Qr=+Kr.rap,Zr=Kr.rh,vn;fr(Cr,Hr),vn=rt.SUBSCRIBE_OPTIONS_QOS[Vr],Rr===5&&(vn|=ln?rt.SUBSCRIBE_OPTIONS_NL:0,vn|=Qr?rt.SUBSCRIBE_OPTIONS_RAP:0,vn|=Zr?rt.SUBSCRIBE_OPTIONS_RH[Zr]:0),Xr=Cr.write(st.from([vn]))}return Xr}function qt(wr,Cr,Nr){let Rr=Nr?Nr.protocolVersion:4,Pr=wr||{},jr=Pr.messageId,kr=Pr.granted,Fr=Pr.properties,_r=0;if(typeof jr!="number")return Cr.destroy(new Error("Invalid messageId")),!1;if(_r+=2,typeof kr=="object"&&kr.length)for(let Dr=0;Drrt.VARBYTEINT_MAX)return wr.destroy(new Error(`Invalid variable byte integer: ${Cr}`)),!1;let Nr=cr[Cr];return Nr||(Nr=Tt(Cr),Cr<16384&&(cr[Cr]=Nr)),xt("writeVarByteInt: writing to stream: %o",Nr),wr.write(Nr)}function fr(wr,Cr){let Nr=st.byteLength(Cr);return It(wr,Nr),xt("writeString: %s",Cr),wr.write(Cr,"utf8")}function hr(wr,Cr,Nr){fr(wr,Cr),fr(wr,Nr)}function pr(wr,Cr){return xt("writeNumberCached: number: %d",Cr),xt("writeNumberCached: %o",$t[Cr]),wr.write($t[Cr])}function dr(wr,Cr){let Nr=_t(Cr);return xt("writeNumberGenerated: %o",Nr),wr.write(Nr)}function yr(wr,Cr){let Nr=Rt(Cr);return xt("write4ByteNumber: %o",Nr),wr.write(Nr)}function Sr(wr,Cr){typeof Cr=="string"?fr(wr,Cr):Cr?(It(wr,Cr.length),wr.write(Cr)):It(wr,0)}function br(wr,Cr){if(typeof Cr!="object"||Cr.length!=null)return{length:1,write(){Tr(wr,{},0)}};let Nr=0;function Rr(Pr,jr){let kr=rt.propertiesTypes[Pr],Fr=0;switch(kr){case"byte":{if(typeof jr!="boolean")return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=2;break}case"int8":{if(typeof jr!="number"||jr<0||jr>255)return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=2;break}case"binary":{if(jr&&jr===null)return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=1+st.byteLength(jr)+2;break}case"int16":{if(typeof jr!="number"||jr<0||jr>65535)return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=3;break}case"int32":{if(typeof jr!="number"||jr<0||jr>4294967295)return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=5;break}case"var":{if(typeof jr!="number"||jr<0||jr>268435455)return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=1+st.byteLength(Tt(jr));break}case"string":{if(typeof jr!="string")return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=3+st.byteLength(jr.toString());break}case"pair":{if(typeof jr!="object")return wr.destroy(new Error(`Invalid ${Pr}: ${jr}`)),!1;Fr+=Object.getOwnPropertyNames(jr).reduce((_r,Br)=>{let Dr=jr[Br];return Array.isArray(Dr)?_r+=Dr.reduce((Xr,Kr)=>(Xr+=3+st.byteLength(Br.toString())+2+st.byteLength(Kr.toString()),Xr),0):_r+=3+st.byteLength(Br.toString())+2+st.byteLength(jr[Br].toString()),_r},0);break}default:return wr.destroy(new Error(`Invalid property ${Pr}: ${jr}`)),!1}return Fr}if(Cr)for(let Pr in Cr){let jr=0,kr=0,Fr=Cr[Pr];if(Array.isArray(Fr))for(let _r=0;_rjr;){let Fr=Pr.shift();if(Fr&&Cr[Fr])delete Cr[Fr],kr=br(wr,Cr);else return!1}return kr}function Er(wr,Cr,Nr){switch(rt.propertiesTypes[Cr]){case"byte":{wr.write(st.from([rt.properties[Cr]])),wr.write(st.from([+Nr]));break}case"int8":{wr.write(st.from([rt.properties[Cr]])),wr.write(st.from([Nr]));break}case"binary":{wr.write(st.from([rt.properties[Cr]])),Sr(wr,Nr);break}case"int16":{wr.write(st.from([rt.properties[Cr]])),It(wr,Nr);break}case"int32":{wr.write(st.from([rt.properties[Cr]])),yr(wr,Nr);break}case"var":{wr.write(st.from([rt.properties[Cr]])),ur(wr,Nr);break}case"string":{wr.write(st.from([rt.properties[Cr]])),fr(wr,Nr);break}case"pair":{Object.getOwnPropertyNames(Nr).forEach(Rr=>{let Pr=Nr[Rr];Array.isArray(Pr)?Pr.forEach(jr=>{wr.write(st.from([rt.properties[Cr]])),hr(wr,Rr.toString(),jr.toString())}):(wr.write(st.from([rt.properties[Cr]])),hr(wr,Rr.toString(),Pr.toString()))});break}default:return wr.destroy(new Error(`Invalid property ${Cr} value: ${Nr}`)),!1}}function Tr(wr,Cr,Nr){ur(wr,Nr);for(let Rr in Cr)if(Object.prototype.hasOwnProperty.call(Cr,Rr)&&Cr[Rr]!==null){let Pr=Cr[Rr];if(Array.isArray(Pr))for(let jr=0;jr{_$2(),v$1(),m$1();var rt=Vo(),{EventEmitter:st}=(ir(),Z(rr)),{Buffer:ct}=(we(),Z(ve));function ut(gt,xt){let $t=new ft;return rt(gt,$t,xt),$t.concat()}var ft=class extends st{constructor(){super(),this._array=new Array(20),this._i=0}write(gt){return this._array[this._i++]=gt,!0}concat(){let gt=0,xt=new Array(this._array.length),$t=this._array,_t=0,wt;for(wt=0;wt<$t.length&&$t[wt]!==void 0;wt++)typeof $t[wt]!="string"?xt[wt]=$t[wt].length:xt[wt]=ct.byteLength($t[wt]),gt+=xt[wt];let Tt=ct.allocUnsafe(gt);for(wt=0;wt<$t.length&&$t[wt]!==void 0;wt++)typeof $t[wt]!="string"?($t[wt].copy(Tt,_t),_t+=xt[wt]):(Tt.write($t[wt],_t),_t+=xt[wt]);return Tt}destroy(gt){gt&&this.emit("error",gt)}};et.exports=ut}),Ld=M$1(_e=>{_$2(),v$1(),m$1(),_e.parser=wd().parser,_e.generate=Md(),_e.writeToStream=Vo()}),Qo=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let rt=this.nextId++;return this.nextId===65536&&(this.nextId=1),rt}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(rt){return!0}deallocate(rt){}clear(){}};_e.default=et}),Nd=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports=st;function rt(ut){return ut instanceof x$1?x$1.from(ut):new ut.constructor(ut.buffer.slice(),ut.byteOffset,ut.length)}function st(ut){if(ut=ut||{},ut.circles)return ct(ut);return ut.proto?xt:gt;function ft($t,_t){for(var wt=Object.keys($t),Tt=new Array(wt.length),Rt=0;Rt{_$2(),v$1(),m$1(),et.exports=Nd()()}),Fd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.validateTopics=_e.validateTopic=void 0;function et(st){let ct=st.split("/");for(let ut=0;ut{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Dt(),rt={objectMode:!0},st={clean:!0},ct=class{constructor(ut){this.options=ut||{},this.options=Object.assign(Object.assign({},st),ut),this._inflights=new Map}put(ut,ft){return this._inflights.set(ut.messageId,ut),ft&&ft(),this}createStream(){let ut=new et.Readable(rt),ft=[],gt=!1,xt=0;return this._inflights.forEach(($t,_t)=>{ft.push($t)}),ut._read=()=>{!gt&&xt{if(!gt)return gt=!0,setTimeout(()=>{ut.emit("close")},0),ut},ut}del(ut,ft){let gt=this._inflights.get(ut.messageId);return gt?(this._inflights.delete(ut.messageId),ft(null,gt)):ft&&ft(new Error("missing packet")),this}get(ut,ft){let gt=this._inflights.get(ut.messageId);return gt?ft(null,gt):ft&&ft(new Error("missing packet")),this}close(ut){this.options.clean&&(this._inflights=null),ut&&ut()}};_e.default=ct}),$d=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=[0,16,128,131,135,144,145,151,153],rt=(st,ct,ut)=>{st.log("handlePublish: packet %o",ct),ut=typeof ut<"u"?ut:st.noop;let ft=ct.topic.toString(),gt=ct.payload,{qos:xt}=ct,{messageId:$t}=ct,{options:_t}=st;if(st.options.protocolVersion===5){let wt;if(ct.properties&&(wt=ct.properties.topicAlias),typeof wt<"u")if(ft.length===0)if(wt>0&&wt<=65535){let Tt=st.topicAliasRecv.getTopicByAlias(wt);if(Tt)ft=Tt,st.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",ft,wt);else{st.log("handlePublish :: unregistered topic alias. alias: %d",wt),st.emit("error",new Error("Received unregistered Topic Alias"));return}}else{st.log("handlePublish :: topic alias out of range. alias: %d",wt),st.emit("error",new Error("Received Topic Alias is out of range"));return}else if(st.topicAliasRecv.put(ft,wt))st.log("handlePublish :: registered topic: %s - alias: %d",ft,wt);else{st.log("handlePublish :: topic alias out of range. alias: %d",wt),st.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(st.log("handlePublish: qos %d",xt),xt){case 2:{_t.customHandleAcks(ft,gt,ct,(wt,Tt)=>{if(typeof wt=="number"&&(Tt=wt,wt=null),wt)return st.emit("error",wt);if(et.indexOf(Tt)===-1)return st.emit("error",new Error("Wrong reason code for pubrec"));Tt?st._sendPacket({cmd:"pubrec",messageId:$t,reasonCode:Tt},ut):st.incomingStore.put(ct,()=>{st._sendPacket({cmd:"pubrec",messageId:$t},ut)})});break}case 1:{_t.customHandleAcks(ft,gt,ct,(wt,Tt)=>{if(typeof wt=="number"&&(Tt=wt,wt=null),wt)return st.emit("error",wt);if(et.indexOf(Tt)===-1)return st.emit("error",new Error("Wrong reason code for puback"));Tt||st.emit("message",ft,gt,ct),st.handleMessage(ct,Rt=>{if(Rt)return ut&&ut(Rt);st._sendPacket({cmd:"puback",messageId:$t,reasonCode:Tt},ut)})});break}case 0:st.emit("message",ft,gt,ct),st.handleMessage(ct,ut);break;default:st.log("handlePublish: unknown QoS. Doing nothing.");break}};_e.default=rt}),Yr=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.nextTick=_e.applyMixin=_e.ErrorWithReasonCode=void 0;var et=class hm extends Error{constructor(ct,ut){super(ct),this.code=ut,Object.setPrototypeOf(this,hm.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};_e.ErrorWithReasonCode=et;function rt(st,ct,ut=!1){var ft;let gt=[ct];for(;;){let xt=gt[0],$t=Object.getPrototypeOf(xt);if($t!=null&&$t.prototype)gt.unshift($t);else break}for(let xt of gt)for(let $t of Object.getOwnPropertyNames(xt.prototype))(ut||$t!=="constructor")&&Object.defineProperty(st.prototype,$t,(ft=Object.getOwnPropertyDescriptor(xt.prototype,$t))!==null&&ft!==void 0?ft:Object.create(null))}_e.applyMixin=rt,_e.nextTick=B$2?B$2.nextTick:st=>{setTimeout(st,0)}}),Si=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReasonCodes=void 0,_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 et=(rt,st)=>{let{messageId:ct}=st,ut=st.cmd,ft=null,gt=rt.outgoing[ct]?rt.outgoing[ct].cb:null,xt;if(!gt){rt.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(rt.log("_handleAck :: packet type",ut),ut){case"pubcomp":case"puback":{let $t=st.reasonCode;$t&&$t>0&&$t!==16?(xt=new Error(`Publish error: ${_e.ReasonCodes[$t]}`),xt.code=$t,rt._removeOutgoingAndStoreMessage(ct,()=>{gt(xt,st)})):rt._removeOutgoingAndStoreMessage(ct,gt);break}case"pubrec":{ft={cmd:"pubrel",qos:2,messageId:ct};let $t=st.reasonCode;$t&&$t>0&&$t!==16?(xt=new Error(`Publish error: ${_e.ReasonCodes[$t]}`),xt.code=$t,rt._removeOutgoingAndStoreMessage(ct,()=>{gt(xt,st)})):rt._sendPacket(ft);break}case"suback":{delete rt.outgoing[ct],rt.messageIdProvider.deallocate(ct);let $t=st.granted;for(let _t=0;_t<$t.length;_t++)if($t[_t]&128){let wt=rt.messageIdToTopic[ct];wt&&wt.forEach(Tt=>{delete rt._resubscribeTopics[Tt]})}delete rt.messageIdToTopic[ct],rt._invokeStoreProcessingQueue(),gt(null,st);break}case"unsuback":{delete rt.outgoing[ct],rt.messageIdProvider.deallocate(ct),rt._invokeStoreProcessingQueue(),gt(null);break}default:rt.emit("error",new Error("unrecognized packet type"))}rt.disconnecting&&Object.keys(rt.outgoing).length===0&&rt.emit("outgoingEmpty")};_e.default=et}),Vd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Yr(),rt=Si(),st=(ct,ut)=>{let{options:ft}=ct,gt=ft.protocolVersion,xt=gt===5?ut.reasonCode:ut.returnCode;if(gt!==5){let $t=new et.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${gt}`,xt);ct.emit("error",$t);return}ct.handleAuth(ut,($t,_t)=>{if($t){ct.emit("error",$t);return}if(xt===24)ct.reconnecting=!1,ct._sendPacket(_t);else{let wt=new et.ErrorWithReasonCode(`Connection refused: ${rt.ReasonCodes[xt]}`,xt);ct.emit("error",wt)}})};_e.default=st}),Yd=M$1(_e=>{var Rt,It,At,jt,Nt,kt,Ft,Ht,Wt,Vt,qt,Xt,Gt,Zt,er,lr,cr,ur,fr,hr,pr,dr,yr,Sr,br,mr,rm,Tr,Mr,Or,wr,Cr,mm,Rr,Pr,jr,kr,As,_r,ks,Dr,nm,Kr,Mp,Vr,Ap,Qr,ba,vn,om,gr,yp,zr;_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.LRUCache=void 0;var et=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,rt=new Set,st=typeof B$2=="object"&&B$2?B$2:{},ct=(qr,Wr,Gr,dn)=>{typeof st.emitWarning=="function"?st.emitWarning(qr,Wr,Gr,dn):console.error(`[${Gr}] ${Wr}: ${qr}`)},ut=globalThis.AbortController,ft=globalThis.AbortSignal;if(typeof ut>"u"){ft=class{constructor(){Ko(this,"onabort");Ko(this,"_onabort",[]);Ko(this,"reason");Ko(this,"aborted",!1)}addEventListener(Gr,dn){this._onabort.push(dn)}},ut=class{constructor(){Ko(this,"signal",new ft);Wr()}abort(Gr){var dn,mn;if(!this.signal.aborted){this.signal.reason=Gr,this.signal.aborted=!0;for(let hn of this.signal._onabort)hn(Gr);(mn=(dn=this.signal).onabort)==null||mn.call(dn,Gr)}}};let qr=((Rt=st.env)==null?void 0:Rt.LRU_CACHE_IGNORE_AC_WARNING)!=="1",Wr=()=>{qr&&(qr=!1,ct("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",Wr))}}var gt=qr=>!rt.has(qr),xt=qr=>qr&&qr===Math.floor(qr)&&qr>0&&isFinite(qr),$t=qr=>xt(qr)?qr<=Math.pow(2,8)?Uint8Array:qr<=Math.pow(2,16)?Uint16Array:qr<=Math.pow(2,32)?Uint32Array:qr<=Number.MAX_SAFE_INTEGER?_t:null:null,_t=class extends Array{constructor(qr){super(qr),this.fill(0)}},wt=(It=class{constructor(Wr,Gr){Ko(this,"heap");Ko(this,"length");if(!Jr(It,At))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Gr(Wr),this.length=0}static create(Wr){let Gr=$t(Wr);if(!Gr)return[];no(It,At,!0);let dn=new It(Wr,Gr);return no(It,At,!1),dn}push(Wr){this.heap[this.length++]=Wr}pop(){return this.heap[--this.length]}},At=new WeakMap,ho(It,At,!1),It),Tt=(zr=class{constructor(Wr){ho(this,mr);ho(this,Cr);ho(this,kr);ho(this,_r);ho(this,Dr);ho(this,Kr);ho(this,Vr);ho(this,Qr);ho(this,vn);ho(this,gr);ho(this,jt,void 0);ho(this,Nt,void 0);ho(this,kt,void 0);ho(this,Ft,void 0);ho(this,Ht,void 0);Ko(this,"ttl");Ko(this,"ttlResolution");Ko(this,"ttlAutopurge");Ko(this,"updateAgeOnGet");Ko(this,"updateAgeOnHas");Ko(this,"allowStale");Ko(this,"noDisposeOnSet");Ko(this,"noUpdateTTL");Ko(this,"maxEntrySize");Ko(this,"sizeCalculation");Ko(this,"noDeleteOnFetchRejection");Ko(this,"noDeleteOnStaleGet");Ko(this,"allowStaleOnFetchAbort");Ko(this,"allowStaleOnFetchRejection");Ko(this,"ignoreFetchAbort");ho(this,Wt,void 0);ho(this,Vt,void 0);ho(this,qt,void 0);ho(this,Xt,void 0);ho(this,Gt,void 0);ho(this,Zt,void 0);ho(this,er,void 0);ho(this,lr,void 0);ho(this,cr,void 0);ho(this,ur,void 0);ho(this,fr,void 0);ho(this,hr,void 0);ho(this,pr,void 0);ho(this,dr,void 0);ho(this,yr,void 0);ho(this,Sr,void 0);ho(this,br,void 0);ho(this,Tr,()=>{});ho(this,Mr,()=>{});ho(this,Or,()=>{});ho(this,wr,()=>!1);ho(this,Rr,Wr=>{});ho(this,Pr,(Wr,Gr,dn)=>{});ho(this,jr,(Wr,Gr,dn,mn)=>{if(dn||mn)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Gr=0,ttl:dn,ttlResolution:mn=1,ttlAutopurge:hn,updateAgeOnGet:Cn,updateAgeOnHas:Rn,allowStale:kn,dispose:Bn,disposeAfter:Yn,noDisposeOnSet:Gn,noUpdateTTL:io,maxSize:pn=0,maxEntrySize:gn=0,sizeCalculation:yn,fetchMethod:_n,noDeleteOnFetchRejection:Tn,noDeleteOnStaleGet:Nn,allowStaleOnFetchRejection:On,allowStaleOnFetchAbort:$n,ignoreFetchAbort:Sn}=Wr;if(Gr!==0&&!xt(Gr))throw new TypeError("max option must be a nonnegative integer");let xn=Gr?$t(Gr):Array;if(!xn)throw new Error("invalid max value: "+Gr);if(no(this,jt,Gr),no(this,Nt,pn),this.maxEntrySize=gn||Jr(this,Nt),this.sizeCalculation=yn,this.sizeCalculation){if(!Jr(this,Nt)&&!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(_n!==void 0&&typeof _n!="function")throw new TypeError("fetchMethod must be a function if specified");if(no(this,Ht,_n),no(this,Sr,!!_n),no(this,qt,new Map),no(this,Xt,new Array(Gr).fill(void 0)),no(this,Gt,new Array(Gr).fill(void 0)),no(this,Zt,new xn(Gr)),no(this,er,new xn(Gr)),no(this,lr,0),no(this,cr,0),no(this,ur,wt.create(Gr)),no(this,Wt,0),no(this,Vt,0),typeof Bn=="function"&&no(this,kt,Bn),typeof Yn=="function"?(no(this,Ft,Yn),no(this,fr,[])):(no(this,Ft,void 0),no(this,fr,void 0)),no(this,yr,!!Jr(this,kt)),no(this,br,!!Jr(this,Ft)),this.noDisposeOnSet=!!Gn,this.noUpdateTTL=!!io,this.noDeleteOnFetchRejection=!!Tn,this.allowStaleOnFetchRejection=!!On,this.allowStaleOnFetchAbort=!!$n,this.ignoreFetchAbort=!!Sn,this.maxEntrySize!==0){if(Jr(this,Nt)!==0&&!xt(Jr(this,Nt)))throw new TypeError("maxSize must be a positive integer if specified");if(!xt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");mo(this,Cr,mm).call(this)}if(this.allowStale=!!kn,this.noDeleteOnStaleGet=!!Nn,this.updateAgeOnGet=!!Cn,this.updateAgeOnHas=!!Rn,this.ttlResolution=xt(mn)||mn===0?mn:1,this.ttlAutopurge=!!hn,this.ttl=dn||0,this.ttl){if(!xt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");mo(this,mr,rm).call(this)}if(Jr(this,jt)===0&&this.ttl===0&&Jr(this,Nt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Jr(this,jt)&&!Jr(this,Nt)){let In="LRU_CACHE_UNBOUNDED";gt(In)&&(rt.add(In),ct("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",In,zr))}}static unsafeExposeInternals(Wr){return{starts:Jr(Wr,pr),ttls:Jr(Wr,dr),sizes:Jr(Wr,hr),keyMap:Jr(Wr,qt),keyList:Jr(Wr,Xt),valList:Jr(Wr,Gt),next:Jr(Wr,Zt),prev:Jr(Wr,er),get head(){return Jr(Wr,lr)},get tail(){return Jr(Wr,cr)},free:Jr(Wr,ur),isBackgroundFetch:Gr=>{var dn;return mo(dn=Wr,Qr,ba).call(dn,Gr)},backgroundFetch:(Gr,dn,mn,hn)=>{var Cn;return mo(Cn=Wr,Vr,Ap).call(Cn,Gr,dn,mn,hn)},moveToTail:Gr=>{var dn;return mo(dn=Wr,gr,yp).call(dn,Gr)},indexes:Gr=>{var dn;return mo(dn=Wr,kr,As).call(dn,Gr)},rindexes:Gr=>{var dn;return mo(dn=Wr,_r,ks).call(dn,Gr)},isStale:Gr=>{var dn;return Jr(dn=Wr,wr).call(dn,Gr)}}}get max(){return Jr(this,jt)}get maxSize(){return Jr(this,Nt)}get calculatedSize(){return Jr(this,Vt)}get size(){return Jr(this,Wt)}get fetchMethod(){return Jr(this,Ht)}get dispose(){return Jr(this,kt)}get disposeAfter(){return Jr(this,Ft)}getRemainingTTL(Wr){return Jr(this,qt).has(Wr)?1/0:0}*entries(){for(let Wr of mo(this,kr,As).call(this))Jr(this,Gt)[Wr]!==void 0&&Jr(this,Xt)[Wr]!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield[Jr(this,Xt)[Wr],Jr(this,Gt)[Wr]])}*rentries(){for(let Wr of mo(this,_r,ks).call(this))Jr(this,Gt)[Wr]!==void 0&&Jr(this,Xt)[Wr]!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield[Jr(this,Xt)[Wr],Jr(this,Gt)[Wr]])}*keys(){for(let Wr of mo(this,kr,As).call(this)){let Gr=Jr(this,Xt)[Wr];Gr!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield Gr)}}*rkeys(){for(let Wr of mo(this,_r,ks).call(this)){let Gr=Jr(this,Xt)[Wr];Gr!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield Gr)}}*values(){for(let Wr of mo(this,kr,As).call(this))Jr(this,Gt)[Wr]!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield Jr(this,Gt)[Wr])}*rvalues(){for(let Wr of mo(this,_r,ks).call(this))Jr(this,Gt)[Wr]!==void 0&&!mo(this,Qr,ba).call(this,Jr(this,Gt)[Wr])&&(yield Jr(this,Gt)[Wr])}[Symbol.iterator](){return this.entries()}find(Wr,Gr={}){for(let dn of mo(this,kr,As).call(this)){let mn=Jr(this,Gt)[dn],hn=mo(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;if(hn!==void 0&&Wr(hn,Jr(this,Xt)[dn],this))return this.get(Jr(this,Xt)[dn],Gr)}}forEach(Wr,Gr=this){for(let dn of mo(this,kr,As).call(this)){let mn=Jr(this,Gt)[dn],hn=mo(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;hn!==void 0&&Wr.call(Gr,hn,Jr(this,Xt)[dn],this)}}rforEach(Wr,Gr=this){for(let dn of mo(this,_r,ks).call(this)){let mn=Jr(this,Gt)[dn],hn=mo(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;hn!==void 0&&Wr.call(Gr,hn,Jr(this,Xt)[dn],this)}}purgeStale(){let Wr=!1;for(let Gr of mo(this,_r,ks).call(this,{allowStale:!0}))Jr(this,wr).call(this,Gr)&&(this.delete(Jr(this,Xt)[Gr]),Wr=!0);return Wr}dump(){let Wr=[];for(let Gr of mo(this,kr,As).call(this,{allowStale:!0})){let dn=Jr(this,Xt)[Gr],mn=Jr(this,Gt)[Gr],hn=mo(this,Qr,ba).call(this,mn)?mn.__staleWhileFetching:mn;if(hn===void 0||dn===void 0)continue;let Cn={value:hn};if(Jr(this,dr)&&Jr(this,pr)){Cn.ttl=Jr(this,dr)[Gr];let Rn=et.now()-Jr(this,pr)[Gr];Cn.start=Math.floor(Date.now()-Rn)}Jr(this,hr)&&(Cn.size=Jr(this,hr)[Gr]),Wr.unshift([dn,Cn])}return Wr}load(Wr){this.clear();for(let[Gr,dn]of Wr){if(dn.start){let mn=Date.now()-dn.start;dn.start=et.now()-mn}this.set(Gr,dn.value,dn)}}set(Wr,Gr,dn={}){var io,pn,gn,yn,_n;if(Gr===void 0)return this.delete(Wr),this;let{ttl:mn=this.ttl,start:hn,noDisposeOnSet:Cn=this.noDisposeOnSet,sizeCalculation:Rn=this.sizeCalculation,status:kn}=dn,{noUpdateTTL:Bn=this.noUpdateTTL}=dn,Yn=Jr(this,jr).call(this,Wr,Gr,dn.size||0,Rn);if(this.maxEntrySize&&Yn>this.maxEntrySize)return kn&&(kn.set="miss",kn.maxEntrySizeExceeded=!0),this.delete(Wr),this;let Gn=Jr(this,Wt)===0?void 0:Jr(this,qt).get(Wr);if(Gn===void 0)Gn=Jr(this,Wt)===0?Jr(this,cr):Jr(this,ur).length!==0?Jr(this,ur).pop():Jr(this,Wt)===Jr(this,jt)?mo(this,Kr,Mp).call(this,!1):Jr(this,Wt),Jr(this,Xt)[Gn]=Wr,Jr(this,Gt)[Gn]=Gr,Jr(this,qt).set(Wr,Gn),Jr(this,Zt)[Jr(this,cr)]=Gn,Jr(this,er)[Gn]=Jr(this,cr),no(this,cr,Gn),Sl(this,Wt)._++,Jr(this,Pr).call(this,Gn,Yn,kn),kn&&(kn.set="add"),Bn=!1;else{mo(this,gr,yp).call(this,Gn);let Tn=Jr(this,Gt)[Gn];if(Gr!==Tn){if(Jr(this,Sr)&&mo(this,Qr,ba).call(this,Tn)){Tn.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Nn}=Tn;Nn!==void 0&&!Cn&&(Jr(this,yr)&&((io=Jr(this,kt))==null||io.call(this,Nn,Wr,"set")),Jr(this,br)&&((pn=Jr(this,fr))==null||pn.push([Nn,Wr,"set"])))}else Cn||(Jr(this,yr)&&((gn=Jr(this,kt))==null||gn.call(this,Tn,Wr,"set")),Jr(this,br)&&((yn=Jr(this,fr))==null||yn.push([Tn,Wr,"set"])));if(Jr(this,Rr).call(this,Gn),Jr(this,Pr).call(this,Gn,Yn,kn),Jr(this,Gt)[Gn]=Gr,kn){kn.set="replace";let Nn=Tn&&mo(this,Qr,ba).call(this,Tn)?Tn.__staleWhileFetching:Tn;Nn!==void 0&&(kn.oldValue=Nn)}}else kn&&(kn.set="update")}if(mn!==0&&!Jr(this,dr)&&mo(this,mr,rm).call(this),Jr(this,dr)&&(Bn||Jr(this,Or).call(this,Gn,mn,hn),kn&&Jr(this,Mr).call(this,kn,Gn)),!Cn&&Jr(this,br)&&Jr(this,fr)){let Tn=Jr(this,fr),Nn;for(;Nn=Tn==null?void 0:Tn.shift();)(_n=Jr(this,Ft))==null||_n.call(this,...Nn)}return this}pop(){var Wr;try{for(;Jr(this,Wt);){let Gr=Jr(this,Gt)[Jr(this,lr)];if(mo(this,Kr,Mp).call(this,!0),mo(this,Qr,ba).call(this,Gr)){if(Gr.__staleWhileFetching)return Gr.__staleWhileFetching}else if(Gr!==void 0)return Gr}}finally{if(Jr(this,br)&&Jr(this,fr)){let Gr=Jr(this,fr),dn;for(;dn=Gr==null?void 0:Gr.shift();)(Wr=Jr(this,Ft))==null||Wr.call(this,...dn)}}}has(Wr,Gr={}){let{updateAgeOnHas:dn=this.updateAgeOnHas,status:mn}=Gr,hn=Jr(this,qt).get(Wr);if(hn!==void 0){let Cn=Jr(this,Gt)[hn];if(mo(this,Qr,ba).call(this,Cn)&&Cn.__staleWhileFetching===void 0)return!1;if(Jr(this,wr).call(this,hn))mn&&(mn.has="stale",Jr(this,Mr).call(this,mn,hn));else return dn&&Jr(this,Tr).call(this,hn),mn&&(mn.has="hit",Jr(this,Mr).call(this,mn,hn)),!0}else mn&&(mn.has="miss");return!1}peek(Wr,Gr={}){let{allowStale:dn=this.allowStale}=Gr,mn=Jr(this,qt).get(Wr);if(mn!==void 0&&(dn||!Jr(this,wr).call(this,mn))){let hn=Jr(this,Gt)[mn];return mo(this,Qr,ba).call(this,hn)?hn.__staleWhileFetching:hn}}async fetch(Wr,Gr={}){let{allowStale:dn=this.allowStale,updateAgeOnGet:mn=this.updateAgeOnGet,noDeleteOnStaleGet:hn=this.noDeleteOnStaleGet,ttl:Cn=this.ttl,noDisposeOnSet:Rn=this.noDisposeOnSet,size:kn=0,sizeCalculation:Bn=this.sizeCalculation,noUpdateTTL:Yn=this.noUpdateTTL,noDeleteOnFetchRejection:Gn=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:io=this.allowStaleOnFetchRejection,ignoreFetchAbort:pn=this.ignoreFetchAbort,allowStaleOnFetchAbort:gn=this.allowStaleOnFetchAbort,context:yn,forceRefresh:_n=!1,status:Tn,signal:Nn}=Gr;if(!Jr(this,Sr))return Tn&&(Tn.fetch="get"),this.get(Wr,{allowStale:dn,updateAgeOnGet:mn,noDeleteOnStaleGet:hn,status:Tn});let On={allowStale:dn,updateAgeOnGet:mn,noDeleteOnStaleGet:hn,ttl:Cn,noDisposeOnSet:Rn,size:kn,sizeCalculation:Bn,noUpdateTTL:Yn,noDeleteOnFetchRejection:Gn,allowStaleOnFetchRejection:io,allowStaleOnFetchAbort:gn,ignoreFetchAbort:pn,status:Tn,signal:Nn},$n=Jr(this,qt).get(Wr);if($n===void 0){Tn&&(Tn.fetch="miss");let Sn=mo(this,Vr,Ap).call(this,Wr,$n,On,yn);return Sn.__returned=Sn}else{let Sn=Jr(this,Gt)[$n];if(mo(this,Qr,ba).call(this,Sn)){let Hn=dn&&Sn.__staleWhileFetching!==void 0;return Tn&&(Tn.fetch="inflight",Hn&&(Tn.returnedStale=!0)),Hn?Sn.__staleWhileFetching:Sn.__returned=Sn}let xn=Jr(this,wr).call(this,$n);if(!_n&&!xn)return Tn&&(Tn.fetch="hit"),mo(this,gr,yp).call(this,$n),mn&&Jr(this,Tr).call(this,$n),Tn&&Jr(this,Mr).call(this,Tn,$n),Sn;let In=mo(this,Vr,Ap).call(this,Wr,$n,On,yn),jn=In.__staleWhileFetching!==void 0&&dn;return Tn&&(Tn.fetch=xn?"stale":"refresh",jn&&xn&&(Tn.returnedStale=!0)),jn?In.__staleWhileFetching:In.__returned=In}}get(Wr,Gr={}){let{allowStale:dn=this.allowStale,updateAgeOnGet:mn=this.updateAgeOnGet,noDeleteOnStaleGet:hn=this.noDeleteOnStaleGet,status:Cn}=Gr,Rn=Jr(this,qt).get(Wr);if(Rn!==void 0){let kn=Jr(this,Gt)[Rn],Bn=mo(this,Qr,ba).call(this,kn);return Cn&&Jr(this,Mr).call(this,Cn,Rn),Jr(this,wr).call(this,Rn)?(Cn&&(Cn.get="stale"),Bn?(Cn&&dn&&kn.__staleWhileFetching!==void 0&&(Cn.returnedStale=!0),dn?kn.__staleWhileFetching:void 0):(hn||this.delete(Wr),Cn&&dn&&(Cn.returnedStale=!0),dn?kn:void 0)):(Cn&&(Cn.get="hit"),Bn?kn.__staleWhileFetching:(mo(this,gr,yp).call(this,Rn),mn&&Jr(this,Tr).call(this,Rn),kn))}else Cn&&(Cn.get="miss")}delete(Wr){var dn,mn,hn,Cn;let Gr=!1;if(Jr(this,Wt)!==0){let Rn=Jr(this,qt).get(Wr);if(Rn!==void 0)if(Gr=!0,Jr(this,Wt)===1)this.clear();else{Jr(this,Rr).call(this,Rn);let kn=Jr(this,Gt)[Rn];mo(this,Qr,ba).call(this,kn)?kn.__abortController.abort(new Error("deleted")):(Jr(this,yr)||Jr(this,br))&&(Jr(this,yr)&&((dn=Jr(this,kt))==null||dn.call(this,kn,Wr,"delete")),Jr(this,br)&&((mn=Jr(this,fr))==null||mn.push([kn,Wr,"delete"]))),Jr(this,qt).delete(Wr),Jr(this,Xt)[Rn]=void 0,Jr(this,Gt)[Rn]=void 0,Rn===Jr(this,cr)?no(this,cr,Jr(this,er)[Rn]):Rn===Jr(this,lr)?no(this,lr,Jr(this,Zt)[Rn]):(Jr(this,Zt)[Jr(this,er)[Rn]]=Jr(this,Zt)[Rn],Jr(this,er)[Jr(this,Zt)[Rn]]=Jr(this,er)[Rn]),Sl(this,Wt)._--,Jr(this,ur).push(Rn)}}if(Jr(this,br)&&((hn=Jr(this,fr))!=null&&hn.length)){let Rn=Jr(this,fr),kn;for(;kn=Rn==null?void 0:Rn.shift();)(Cn=Jr(this,Ft))==null||Cn.call(this,...kn)}return Gr}clear(){var Wr,Gr,dn;for(let mn of mo(this,_r,ks).call(this,{allowStale:!0})){let hn=Jr(this,Gt)[mn];if(mo(this,Qr,ba).call(this,hn))hn.__abortController.abort(new Error("deleted"));else{let Cn=Jr(this,Xt)[mn];Jr(this,yr)&&((Wr=Jr(this,kt))==null||Wr.call(this,hn,Cn,"delete")),Jr(this,br)&&((Gr=Jr(this,fr))==null||Gr.push([hn,Cn,"delete"]))}}if(Jr(this,qt).clear(),Jr(this,Gt).fill(void 0),Jr(this,Xt).fill(void 0),Jr(this,dr)&&Jr(this,pr)&&(Jr(this,dr).fill(0),Jr(this,pr).fill(0)),Jr(this,hr)&&Jr(this,hr).fill(0),no(this,lr,0),no(this,cr,0),Jr(this,ur).length=0,no(this,Vt,0),no(this,Wt,0),Jr(this,br)&&Jr(this,fr)){let mn=Jr(this,fr),hn;for(;hn=mn==null?void 0:mn.shift();)(dn=Jr(this,Ft))==null||dn.call(this,...hn)}}},jt=new WeakMap,Nt=new WeakMap,kt=new WeakMap,Ft=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,Vt=new WeakMap,qt=new WeakMap,Xt=new WeakMap,Gt=new WeakMap,Zt=new WeakMap,er=new WeakMap,lr=new WeakMap,cr=new WeakMap,ur=new WeakMap,fr=new WeakMap,hr=new WeakMap,pr=new WeakMap,dr=new WeakMap,yr=new WeakMap,Sr=new WeakMap,br=new WeakMap,mr=new WeakSet,rm=function(){let Wr=new _t(Jr(this,jt)),Gr=new _t(Jr(this,jt));no(this,dr,Wr),no(this,pr,Gr),no(this,Or,(hn,Cn,Rn=et.now())=>{if(Gr[hn]=Cn!==0?Rn:0,Wr[hn]=Cn,Cn!==0&&this.ttlAutopurge){let kn=setTimeout(()=>{Jr(this,wr).call(this,hn)&&this.delete(Jr(this,Xt)[hn])},Cn+1);kn.unref&&kn.unref()}}),no(this,Tr,hn=>{Gr[hn]=Wr[hn]!==0?et.now():0}),no(this,Mr,(hn,Cn)=>{if(Wr[Cn]){let Rn=Wr[Cn],kn=Gr[Cn];hn.ttl=Rn,hn.start=kn,hn.now=dn||mn();let Bn=hn.now-kn;hn.remainingTTL=Rn-Bn}});let dn=0,mn=()=>{let hn=et.now();if(this.ttlResolution>0){dn=hn;let Cn=setTimeout(()=>dn=0,this.ttlResolution);Cn.unref&&Cn.unref()}return hn};this.getRemainingTTL=hn=>{let Cn=Jr(this,qt).get(hn);if(Cn===void 0)return 0;let Rn=Wr[Cn],kn=Gr[Cn];if(Rn===0||kn===0)return 1/0;let Bn=(dn||mn())-kn;return Rn-Bn},no(this,wr,hn=>Wr[hn]!==0&&Gr[hn]!==0&&(dn||mn())-Gr[hn]>Wr[hn])},Tr=new WeakMap,Mr=new WeakMap,Or=new WeakMap,wr=new WeakMap,Cr=new WeakSet,mm=function(){let Wr=new _t(Jr(this,jt));no(this,Vt,0),no(this,hr,Wr),no(this,Rr,Gr=>{no(this,Vt,Jr(this,Vt)-Wr[Gr]),Wr[Gr]=0}),no(this,jr,(Gr,dn,mn,hn)=>{if(mo(this,Qr,ba).call(this,dn))return 0;if(!xt(mn))if(hn){if(typeof hn!="function")throw new TypeError("sizeCalculation must be a function");if(mn=hn(dn,Gr),!xt(mn))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 mn}),no(this,Pr,(Gr,dn,mn)=>{if(Wr[Gr]=dn,Jr(this,Nt)){let hn=Jr(this,Nt)-Wr[Gr];for(;Jr(this,Vt)>hn;)mo(this,Kr,Mp).call(this,!0)}no(this,Vt,Jr(this,Vt)+Wr[Gr]),mn&&(mn.entrySize=dn,mn.totalCalculatedSize=Jr(this,Vt))})},Rr=new WeakMap,Pr=new WeakMap,jr=new WeakMap,kr=new WeakSet,As=function*({allowStale:Wr=this.allowStale}={}){if(Jr(this,Wt))for(let Gr=Jr(this,cr);!(!mo(this,Dr,nm).call(this,Gr)||((Wr||!Jr(this,wr).call(this,Gr))&&(yield Gr),Gr===Jr(this,lr)));)Gr=Jr(this,er)[Gr]},_r=new WeakSet,ks=function*({allowStale:Wr=this.allowStale}={}){if(Jr(this,Wt))for(let Gr=Jr(this,lr);!(!mo(this,Dr,nm).call(this,Gr)||((Wr||!Jr(this,wr).call(this,Gr))&&(yield Gr),Gr===Jr(this,cr)));)Gr=Jr(this,Zt)[Gr]},Dr=new WeakSet,nm=function(Wr){return Wr!==void 0&&Jr(this,qt).get(Jr(this,Xt)[Wr])===Wr},Kr=new WeakSet,Mp=function(Wr){var hn,Cn;let Gr=Jr(this,lr),dn=Jr(this,Xt)[Gr],mn=Jr(this,Gt)[Gr];return Jr(this,Sr)&&mo(this,Qr,ba).call(this,mn)?mn.__abortController.abort(new Error("evicted")):(Jr(this,yr)||Jr(this,br))&&(Jr(this,yr)&&((hn=Jr(this,kt))==null||hn.call(this,mn,dn,"evict")),Jr(this,br)&&((Cn=Jr(this,fr))==null||Cn.push([mn,dn,"evict"]))),Jr(this,Rr).call(this,Gr),Wr&&(Jr(this,Xt)[Gr]=void 0,Jr(this,Gt)[Gr]=void 0,Jr(this,ur).push(Gr)),Jr(this,Wt)===1?(no(this,lr,no(this,cr,0)),Jr(this,ur).length=0):no(this,lr,Jr(this,Zt)[Gr]),Jr(this,qt).delete(dn),Sl(this,Wt)._--,Gr},Vr=new WeakSet,Ap=function(Wr,Gr,dn,mn){let hn=Gr===void 0?void 0:Jr(this,Gt)[Gr];if(mo(this,Qr,ba).call(this,hn))return hn;let Cn=new ut,{signal:Rn}=dn;Rn==null||Rn.addEventListener("abort",()=>Cn.abort(Rn.reason),{signal:Cn.signal});let kn={signal:Cn.signal,options:dn,context:mn},Bn=(yn,_n=!1)=>{let{aborted:Tn}=Cn.signal,Nn=dn.ignoreFetchAbort&&yn!==void 0;if(dn.status&&(Tn&&!_n?(dn.status.fetchAborted=!0,dn.status.fetchError=Cn.signal.reason,Nn&&(dn.status.fetchAbortIgnored=!0)):dn.status.fetchResolved=!0),Tn&&!Nn&&!_n)return Gn(Cn.signal.reason);let On=pn;return Jr(this,Gt)[Gr]===pn&&(yn===void 0?On.__staleWhileFetching?Jr(this,Gt)[Gr]=On.__staleWhileFetching:this.delete(Wr):(dn.status&&(dn.status.fetchUpdated=!0),this.set(Wr,yn,kn.options))),yn},Yn=yn=>(dn.status&&(dn.status.fetchRejected=!0,dn.status.fetchError=yn),Gn(yn)),Gn=yn=>{let{aborted:_n}=Cn.signal,Tn=_n&&dn.allowStaleOnFetchAbort,Nn=Tn||dn.allowStaleOnFetchRejection,On=Nn||dn.noDeleteOnFetchRejection,$n=pn;if(Jr(this,Gt)[Gr]===pn&&(!On||$n.__staleWhileFetching===void 0?this.delete(Wr):Tn||(Jr(this,Gt)[Gr]=$n.__staleWhileFetching)),Nn)return dn.status&&$n.__staleWhileFetching!==void 0&&(dn.status.returnedStale=!0),$n.__staleWhileFetching;if($n.__returned===$n)throw yn},io=(yn,_n)=>{var Nn;let Tn=(Nn=Jr(this,Ht))==null?void 0:Nn.call(this,Wr,hn,kn);Tn&&Tn instanceof Promise&&Tn.then(On=>yn(On===void 0?void 0:On),_n),Cn.signal.addEventListener("abort",()=>{(!dn.ignoreFetchAbort||dn.allowStaleOnFetchAbort)&&(yn(void 0),dn.allowStaleOnFetchAbort&&(yn=On=>Bn(On,!0)))})};dn.status&&(dn.status.fetchDispatched=!0);let pn=new Promise(io).then(Bn,Yn),gn=Object.assign(pn,{__abortController:Cn,__staleWhileFetching:hn,__returned:void 0});return Gr===void 0?(this.set(Wr,gn,{...kn.options,status:void 0}),Gr=Jr(this,qt).get(Wr)):Jr(this,Gt)[Gr]=gn,gn},Qr=new WeakSet,ba=function(Wr){if(!Jr(this,Sr))return!1;let Gr=Wr;return!!Gr&&Gr instanceof Promise&&Gr.hasOwnProperty("__staleWhileFetching")&&Gr.__abortController instanceof ut},vn=new WeakSet,om=function(Wr,Gr){Jr(this,er)[Gr]=Wr,Jr(this,Zt)[Wr]=Gr},gr=new WeakSet,yp=function(Wr){Wr!==Jr(this,cr)&&(Wr===Jr(this,lr)?no(this,lr,Jr(this,Zt)[Wr]):mo(this,vn,om).call(this,Jr(this,er)[Wr],Jr(this,Zt)[Wr]),mo(this,vn,om).call(this,Jr(this,cr),Wr),no(this,cr,Wr))},zr);_e.LRUCache=Tt}),at=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.ContainerIterator=_e.Container=_e.Base=void 0;var et=class{constructor(ct=0){this.iteratorType=ct}equals(ct){return this.o===ct.o}};_e.ContainerIterator=et;var rt=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};_e.Base=rt;var st=class extends rt{};_e.Container=st}),Jd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[]){super(),this.S=[];let ut=this;ct.forEach(function(ft){ut.push(ft)})}clear(){this.i=0,this.S=[]}push(ct){return this.S.push(ct),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},st=rt;_e.default=st}),Xd=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[]){super(),this.j=0,this.q=[];let ut=this;ct.forEach(function(ft){ut.push(ft)})}clear(){this.q=[],this.i=this.j=0}push(ct){let ut=this.q.length;if(this.j/ut>.5&&this.j+this.i>=ut&&ut>4096){let ft=this.i;for(let gt=0;gt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Base{constructor(ct=[],ut=function(gt,xt){return gt>xt?-1:gt>1;for(let xt=this.i-1>>1;xt>=0;--xt)this.k(xt,gt)}m(ct){let ut=this.C[ct];for(;ct>0;){let ft=ct-1>>1,gt=this.C[ft];if(this.v(gt,ut)<=0)break;this.C[ct]=gt,ct=ft}this.C[ct]=ut}k(ct,ut){let ft=this.C[ct];for(;ct0&&(gt=xt,$t=this.C[xt]),this.v($t,ft)>=0)break;this.C[ct]=$t,ct=gt}this.C[ct]=ft}clear(){this.i=0,this.C.length=0}push(ct){this.C.push(ct),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let ct=this.C[0],ut=this.C.pop();return this.i-=1,this.i&&(this.C[0]=ut,this.k(0,this.i>>1)),ct}top(){return this.C[0]}find(ct){return this.C.indexOf(ct)>=0}remove(ct){let ut=this.C.indexOf(ct);return ut<0?!1:(ut===0?this.pop():ut===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(ut,1,this.C.pop()),this.i-=1,this.m(ut),this.k(ut,this.i>>1)),!0)}updateItem(ct){let ut=this.C.indexOf(ct);return ut<0?!1:(this.m(ut),this.k(ut,this.i>>1),!0)}toArray(){return[...this.C]}},st=rt;_e.default=st}),Ln=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=class extends et.Container{},st=rt;_e.default=st}),lt=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.throwIteratorAccessError=et;function et(){throw new RangeError("Iterator access denied!")}}),da=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.RandomIterator=void 0;var et=at(),rt=lt(),st=class extends et.ContainerIterator{constructor(ct,ut){super(ut),this.o=ct,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,rt.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,rt.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,rt.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,rt.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(ct){this.container.setElementByPos(this.o,ct)}};_e.RandomIterator=st}),ep=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=st(Ln()),rt=da();function st(gt){return gt&>.t?gt:{default:gt}}var ct=class vm extends rt.RandomIterator{constructor(xt,$t,_t){super(xt,_t),this.container=$t}copy(){return new vm(this.o,this.container,this.iteratorType)}},ut=class extends et.default{constructor(gt=[],xt=!0){if(super(),Array.isArray(gt))this.J=xt?[...gt]:gt,this.i=gt.length;else{this.J=[];let $t=this;gt.forEach(function(_t){$t.pushBack(_t)})}}clear(){this.i=0,this.J.length=0}begin(){return new ct(0,this)}end(){return new ct(this.i,this)}rBegin(){return new ct(this.i-1,this,1)}rEnd(){return new ct(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;return this.J[gt]}eraseElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;return this.J.splice(gt,1),this.i-=1,this.i}eraseElementByValue(gt){let xt=0;for(let $t=0;$tthis.i-1)throw new RangeError;this.J[gt]=xt}insert(gt,xt,$t=1){if(gt<0||gt>this.i)throw new RangeError;return this.J.splice(gt,0,...new Array($t).fill(xt)),this.i+=$t,this.i}find(gt){for(let xt=0;xt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(Ln()),rt=at(),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class ym extends rt.ContainerIterator{constructor($t,_t,wt,Tt){super(Tt),this.o=$t,this.h=_t,this.container=wt,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.l}set pointer($t){this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.l=$t}copy(){return new ym(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let $t=this;xt.forEach(function(_t){$t.pushBack(_t)})}V(xt){let{L:$t,B:_t}=xt;$t.B=_t,_t.L=$t,xt===this.p&&(this.p=_t),xt===this._&&(this._=$t),this.i-=1}G(xt,$t){let _t=$t.B,wt={l:xt,L:$t,B:_t};$t.B=wt,_t.L=wt,$t===this.h&&(this.p=wt),_t===this.h&&(this._=wt),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new ut(this.p,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this._,this.h,this,1)}rEnd(){return new ut(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return $t.l}eraseElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return this.V($t),this.i}eraseElementByValue(xt){let $t=this.p;for(;$t!==this.h;)$t.l===xt&&this.V($t),$t=$t.B;return this.i}eraseElementByIterator(xt){let $t=xt.o;return $t===this.h&&(0,st.throwIteratorAccessError)(),xt=xt.next(),this.V($t),xt}pushBack(xt){return this.G(xt,this._),this.i}popBack(){if(this.i===0)return;let xt=this._.l;return this.V(this._),xt}pushFront(xt){return this.G(xt,this.h),this.i}popFront(){if(this.i===0)return;let xt=this.p.l;return this.V(this.p),xt}setElementByPos(xt,$t){if(xt<0||xt>this.i-1)throw new RangeError;let _t=this.p;for(;xt--;)_t=_t.B;_t.l=$t}insert(xt,$t,_t=1){if(xt<0||xt>this.i)throw new RangeError;if(_t<=0)return this.i;if(xt===0)for(;_t--;)this.pushFront($t);else if(xt===this.i)for(;_t--;)this.pushBack($t);else{let wt=this.p;for(let Rt=1;Rt{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=st(Ln()),rt=da();function st(gt){return gt&>.t?gt:{default:gt}}var ct=class bm extends rt.RandomIterator{constructor(xt,$t,_t){super(xt,_t),this.container=$t}copy(){return new bm(this.o,this.container,this.iteratorType)}},ut=class extends et.default{constructor(gt=[],xt=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let $t=(()=>{if(typeof gt.length=="number")return gt.length;if(typeof gt.size=="number")return gt.size;if(typeof gt.size=="function")return gt.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=xt,this.P=Math.max(Math.ceil($t/this.F),1);for(let Tt=0;Tt>1)-(_t>>1),this.D=this.N=this.F-$t%this.F>>1;let wt=this;gt.forEach(function(Tt){wt.pushBack(Tt)})}T(){let gt=[],xt=Math.max(this.P>>1,1);for(let $t=0;$t>1}begin(){return new ct(0,this)}end(){return new ct(this.i,this)}rBegin(){return new ct(this.i-1,this,1)}rEnd(){return new ct(-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(gt){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,gt}pushFront(gt){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]=gt,this.i}popFront(){if(this.i===0)return;let gt=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:xt,curNodePointerIndex:$t}=this.O(gt);return this.A[xt][$t]}setElementByPos(gt,xt){if(gt<0||gt>this.i-1)throw new RangeError;let{curNodeBucketIndex:$t,curNodePointerIndex:_t}=this.O(gt);this.A[$t][_t]=xt}insert(gt,xt,$t=1){if(gt<0||gt>this.i)throw new RangeError;if(gt===0)for(;$t--;)this.pushFront(xt);else if(gt===this.i)for(;$t--;)this.pushBack(xt);else{let _t=[];for(let wt=gt;wtthis.i-1)throw new RangeError;if(gt===0)this.popFront();else if(gt===this.i-1)this.popBack();else{let xt=[];for(let _t=gt+1;_tgt;)this.popBack();return this.i}sort(gt){let xt=[];for(let $t=0;$t{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.TreeNodeEnableIndex=_e.TreeNode=void 0;var et=class{constructor(st,ct){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=st,this.l=ct}L(){let st=this;if(st.ee===1&&st.tt.tt===st)st=st.W;else if(st.U)for(st=st.U;st.W;)st=st.W;else{let ct=st.tt;for(;ct.U===st;)st=ct,ct=st.tt;st=ct}return st}B(){let st=this;if(st.W){for(st=st.W;st.U;)st=st.U;return st}else{let ct=st.tt;for(;ct.W===st;)st=ct,ct=st.tt;return st.W!==ct?ct:st}}te(){let st=this.tt,ct=this.W,ut=ct.U;return st.tt===this?st.tt=ct:st.U===this?st.U=ct:st.W=ct,ct.tt=st,ct.U=this,this.tt=ct,this.W=ut,ut&&(ut.tt=this),ct}se(){let st=this.tt,ct=this.U,ut=ct.W;return st.tt===this?st.tt=ct:st.U===this?st.U=ct:st.W=ct,ct.tt=st,ct.W=this,this.tt=ct,this.U=ut,ut&&(ut.tt=this),ct}};_e.TreeNode=et;var rt=class extends et{constructor(){super(...arguments),this.rt=1}te(){let st=super.te();return this.ie(),st.ie(),st}se(){let st=super.se();return this.ie(),st.ie(),st}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};_e.TreeNodeEnableIndex=rt}),_a=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ip(),rt=at(),st=lt(),ct=class extends rt.Container{constructor(ft=function(xt,$t){return xt<$t?-1:xt>$t?1:0},gt=!1){super(),this.Y=void 0,this.v=ft,gt?(this.re=et.TreeNodeEnableIndex,this.M=function(xt,$t,_t){let wt=this.ne(xt,$t,_t);if(wt){let Tt=wt.tt;for(;Tt!==this.h;)Tt.rt+=1,Tt=Tt.tt;let Rt=this.he(wt);if(Rt){let{parentNode:It,grandParent:At,curNode:jt}=Rt;It.ie(),At.ie(),jt.ie()}}return this.i},this.V=function(xt){let $t=this.fe(xt);for(;$t!==this.h;)$t.rt-=1,$t=$t.tt}):(this.re=et.TreeNode,this.M=function(xt,$t,_t){let wt=this.ne(xt,$t,_t);return wt&&this.he(wt),this.i},this.V=this.fe),this.h=new this.re}X(ft,gt){let xt=this.h;for(;ft;){let $t=this.v(ft.u,gt);if($t<0)ft=ft.W;else if($t>0)xt=ft,ft=ft.U;else return ft}return xt}Z(ft,gt){let xt=this.h;for(;ft;)this.v(ft.u,gt)<=0?ft=ft.W:(xt=ft,ft=ft.U);return xt}$(ft,gt){let xt=this.h;for(;ft;){let $t=this.v(ft.u,gt);if($t<0)xt=ft,ft=ft.W;else if($t>0)ft=ft.U;else return ft}return xt}rr(ft,gt){let xt=this.h;for(;ft;)this.v(ft.u,gt)<0?(xt=ft,ft=ft.W):ft=ft.U;return xt}ue(ft){for(;;){let gt=ft.tt;if(gt===this.h)return;if(ft.ee===1){ft.ee=0;return}if(ft===gt.U){let xt=gt.W;if(xt.ee===1)xt.ee=0,gt.ee=1,gt===this.Y?this.Y=gt.te():gt.te();else if(xt.W&&xt.W.ee===1){xt.ee=gt.ee,gt.ee=0,xt.W.ee=0,gt===this.Y?this.Y=gt.te():gt.te();return}else xt.U&&xt.U.ee===1?(xt.ee=1,xt.U.ee=0,xt.se()):(xt.ee=1,ft=gt)}else{let xt=gt.U;if(xt.ee===1)xt.ee=0,gt.ee=1,gt===this.Y?this.Y=gt.se():gt.se();else if(xt.U&&xt.U.ee===1){xt.ee=gt.ee,gt.ee=0,xt.U.ee=0,gt===this.Y?this.Y=gt.se():gt.se();return}else xt.W&&xt.W.ee===1?(xt.ee=1,xt.W.ee=0,xt.te()):(xt.ee=1,ft=gt)}}}fe(ft){if(this.i===1)return this.clear(),this.h;let gt=ft;for(;gt.U||gt.W;){if(gt.W)for(gt=gt.W;gt.U;)gt=gt.U;else gt=gt.U;[ft.u,gt.u]=[gt.u,ft.u],[ft.l,gt.l]=[gt.l,ft.l],ft=gt}this.h.U===gt?this.h.U=gt.tt:this.h.W===gt&&(this.h.W=gt.tt),this.ue(gt);let xt=gt.tt;return gt===xt.U?xt.U=void 0:xt.W=void 0,this.i-=1,this.Y.ee=0,xt}oe(ft,gt){return ft===void 0?!1:this.oe(ft.U,gt)||gt(ft)?!0:this.oe(ft.W,gt)}he(ft){for(;;){let gt=ft.tt;if(gt.ee===0)return;let xt=gt.tt;if(gt===xt.U){let $t=xt.W;if($t&&$t.ee===1){if($t.ee=gt.ee=0,xt===this.Y)return;xt.ee=1,ft=xt;continue}else if(ft===gt.W){if(ft.ee=0,ft.U&&(ft.U.tt=gt),ft.W&&(ft.W.tt=xt),gt.W=ft.U,xt.U=ft.W,ft.U=gt,ft.W=xt,xt===this.Y)this.Y=ft,this.h.tt=ft;else{let _t=xt.tt;_t.U===xt?_t.U=ft:_t.W=ft}return ft.tt=xt.tt,gt.tt=ft,xt.tt=ft,xt.ee=1,{parentNode:gt,grandParent:xt,curNode:ft}}else gt.ee=0,xt===this.Y?this.Y=xt.se():xt.se(),xt.ee=1}else{let $t=xt.U;if($t&&$t.ee===1){if($t.ee=gt.ee=0,xt===this.Y)return;xt.ee=1,ft=xt;continue}else if(ft===gt.U){if(ft.ee=0,ft.U&&(ft.U.tt=xt),ft.W&&(ft.W.tt=gt),xt.W=ft.U,gt.U=ft.W,ft.U=xt,ft.W=gt,xt===this.Y)this.Y=ft,this.h.tt=ft;else{let _t=xt.tt;_t.U===xt?_t.U=ft:_t.W=ft}return ft.tt=xt.tt,gt.tt=ft,xt.tt=ft,xt.ee=1,{parentNode:gt,grandParent:xt,curNode:ft}}else gt.ee=0,xt===this.Y?this.Y=xt.te():xt.te(),xt.ee=1}return}}ne(ft,gt,xt){if(this.Y===void 0){this.i+=1,this.Y=new this.re(ft,gt),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 $t,_t=this.h.U,wt=this.v(_t.u,ft);if(wt===0){_t.l=gt;return}else if(wt>0)_t.U=new this.re(ft,gt),_t.U.tt=_t,$t=_t.U,this.h.U=$t;else{let Tt=this.h.W,Rt=this.v(Tt.u,ft);if(Rt===0){Tt.l=gt;return}else if(Rt<0)Tt.W=new this.re(ft,gt),Tt.W.tt=Tt,$t=Tt.W,this.h.W=$t;else{if(xt!==void 0){let It=xt.o;if(It!==this.h){let At=this.v(It.u,ft);if(At===0){It.l=gt;return}else if(At>0){let jt=It.L(),Nt=this.v(jt.u,ft);if(Nt===0){jt.l=gt;return}else Nt<0&&($t=new this.re(ft,gt),jt.W===void 0?(jt.W=$t,$t.tt=jt):(It.U=$t,$t.tt=It))}}}if($t===void 0)for($t=this.Y;;){let It=this.v($t.u,ft);if(It>0){if($t.U===void 0){$t.U=new this.re(ft,gt),$t.U.tt=$t,$t=$t.U;break}$t=$t.U}else if(It<0){if($t.W===void 0){$t.W=new this.re(ft,gt),$t.W.tt=$t,$t=$t.W;break}$t=$t.W}else{$t.l=gt;return}}}}return this.i+=1,$t}I(ft,gt){for(;ft;){let xt=this.v(ft.u,gt);if(xt<0)ft=ft.W;else if(xt>0)ft=ft.U;else return ft}return ft||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(ft,gt){let xt=ft.o;if(xt===this.h&&(0,st.throwIteratorAccessError)(),this.i===1)return xt.u=gt,!0;if(xt===this.h.U)return this.v(xt.B().u,gt)>0?(xt.u=gt,!0):!1;if(xt===this.h.W)return this.v(xt.L().u,gt)<0?(xt.u=gt,!0):!1;let $t=xt.L().u;if(this.v($t,gt)>=0)return!1;let _t=xt.B().u;return this.v(_t,gt)<=0?!1:(xt.u=gt,!0)}eraseElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt=0,xt=this;return this.oe(this.Y,function($t){return ft===gt?(xt.V($t),!0):(gt+=1,!1)}),this.i}eraseElementByKey(ft){if(this.i===0)return!1;let gt=this.I(this.Y,ft);return gt===this.h?!1:(this.V(gt),!0)}eraseElementByIterator(ft){let gt=ft.o;gt===this.h&&(0,st.throwIteratorAccessError)();let xt=gt.W===void 0;return ft.iteratorType===0?xt&&ft.next():(!xt||gt.U===void 0)&&ft.next(),this.V(gt),ft}forEach(ft){let gt=0;for(let xt of this)ft(xt,gt++,this)}getElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt,xt=0;for(let $t of this){if(xt===ft){gt=$t;break}xt+=1}return gt}getHeight(){if(this.i===0)return 0;let ft=function(gt){return gt?Math.max(ft(gt.U),ft(gt.W))+1:0};return ft(this.Y)}},ut=ct;_e.default=ut}),va=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=at(),rt=lt(),st=class extends et.ContainerIterator{constructor(ut,ft,gt){super(gt),this.o=ut,this.h=ft,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,rt.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,rt.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let ut=this.o,ft=this.h.tt;if(ut===this.h)return ft?ft.rt-1:0;let gt=0;for(ut.U&&(gt+=ut.U.rt);ut!==ft;){let xt=ut.tt;ut===xt.W&&(gt+=1,xt.U&&(gt+=xt.U.rt)),ut=xt}return gt}},ct=st;_e.default=ct}),ap=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(_a()),rt=ct(va()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class xm extends rt.default{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o.u}copy(){return new xm(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[],$t,_t){super($t,_t);let wt=this;xt.forEach(function(Tt){wt.insert(Tt)})}*K(xt){xt!==void 0&&(yield*this.K(xt.U),yield xt.u,yield*this.K(xt.W))}begin(){return new ut(this.h.U||this.h,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this.h.W||this.h,this.h,this,1)}rEnd(){return new ut(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(xt,$t){return this.M(xt,void 0,$t)}find(xt){let $t=this.I(this.Y,xt);return new ut($t,this.h,this)}lowerBound(xt){let $t=this.X(this.Y,xt);return new ut($t,this.h,this)}upperBound(xt){let $t=this.Z(this.Y,xt);return new ut($t,this.h,this)}reverseLowerBound(xt){let $t=this.$(this.Y,xt);return new ut($t,this.h,this)}reverseUpperBound(xt){let $t=this.rr(this.Y,xt);return new ut($t,this.h,this)}union(xt){let $t=this;return xt.forEach(function(_t){$t.insert(_t)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},gt=ft;_e.default=gt}),up=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=ct(_a()),rt=ct(va()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class $m extends rt.default{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){this.o===this.h&&(0,st.throwIteratorAccessError)();let $t=this;return new Proxy([],{get(_t,wt){if(wt==="0")return $t.o.u;if(wt==="1")return $t.o.l},set(_t,wt,Tt){if(wt!=="1")throw new TypeError("props must be 1");return $t.o.l=Tt,!0}})}copy(){return new $m(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.default{constructor(xt=[],$t,_t){super($t,_t);let wt=this;xt.forEach(function(Tt){wt.setElement(Tt[0],Tt[1])})}*K(xt){xt!==void 0&&(yield*this.K(xt.U),yield[xt.u,xt.l],yield*this.K(xt.W))}begin(){return new ut(this.h.U||this.h,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this.h.W||this.h,this.h,this,1)}rEnd(){return new ut(this.h,this.h,this,1)}front(){if(this.i===0)return;let xt=this.h.U;return[xt.u,xt.l]}back(){if(this.i===0)return;let xt=this.h.W;return[xt.u,xt.l]}lowerBound(xt){let $t=this.X(this.Y,xt);return new ut($t,this.h,this)}upperBound(xt){let $t=this.Z(this.Y,xt);return new ut($t,this.h,this)}reverseLowerBound(xt){let $t=this.$(this.Y,xt);return new ut($t,this.h,this)}reverseUpperBound(xt){let $t=this.rr(this.Y,xt);return new ut($t,this.h,this)}setElement(xt,$t,_t){return this.M(xt,$t,_t)}find(xt){let $t=this.I(this.Y,xt);return new ut($t,this.h,this)}getElementByKey(xt){return this.I(this.Y,xt).l}union(xt){let $t=this;return xt.forEach(function(_t){$t.setElement(_t[0],_t[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},gt=ft;_e.default=gt}),Ia=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=et;function et(rt){let st=typeof rt;return st==="object"&&rt!==null||st==="function"}}),Ba=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.HashContainerIterator=_e.HashContainer=void 0;var et=at(),rt=ct(Ia()),st=lt();function ct(gt){return gt&>.t?gt:{default:gt}}var ut=class extends et.ContainerIterator{constructor(gt,xt,$t){super($t),this.o=gt,this.h=xt,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,st.throwIteratorAccessError)(),this.o=this.o.L,this})}};_e.HashContainerIterator=ut;var ft=class extends et.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(gt){let{L:xt,B:$t}=gt;xt.B=$t,$t.L=xt,gt===this.p&&(this.p=$t),gt===this._&&(this._=xt),this.i-=1}M(gt,xt,$t){$t===void 0&&($t=(0,rt.default)(gt));let _t;if($t){let wt=gt[this.HASH_TAG];if(wt!==void 0)return this.H[wt].l=xt,this.i;Object.defineProperty(gt,this.HASH_TAG,{value:this.H.length,configurable:!0}),_t={u:gt,l:xt,L:this._,B:this.h},this.H.push(_t)}else{let wt=this.g[gt];if(wt)return wt.l=xt,this.i;_t={u:gt,l:xt,L:this._,B:this.h},this.g[gt]=_t}return this.i===0?(this.p=_t,this.h.B=_t):this._.B=_t,this._=_t,this.h.L=_t,++this.i}I(gt,xt){if(xt===void 0&&(xt=(0,rt.default)(gt)),xt){let $t=gt[this.HASH_TAG];return $t===void 0?this.h:this.H[$t]}else return this.g[gt]||this.h}clear(){let gt=this.HASH_TAG;this.H.forEach(function(xt){delete xt.u[gt]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(gt,xt){let $t;if(xt===void 0&&(xt=(0,rt.default)(gt)),xt){let _t=gt[this.HASH_TAG];if(_t===void 0)return!1;delete gt[this.HASH_TAG],$t=this.H[_t],delete this.H[_t]}else{if($t=this.g[gt],$t===void 0)return!1;delete this.g[gt]}return this.V($t),!0}eraseElementByIterator(gt){let xt=gt.o;return xt===this.h&&(0,st.throwIteratorAccessError)(),this.V(xt),gt.next()}eraseElementByPos(gt){if(gt<0||gt>this.i-1)throw new RangeError;let xt=this.p;for(;gt--;)xt=xt.B;return this.V(xt),this.i}};_e.HashContainer=ft}),hp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=Ba(),rt=lt(),st=class Sm extends et.HashContainerIterator{constructor(gt,xt,$t,_t){super(gt,xt,_t),this.container=$t}get pointer(){return this.o===this.h&&(0,rt.throwIteratorAccessError)(),this.o.u}copy(){return new Sm(this.o,this.h,this.container,this.iteratorType)}},ct=class extends et.HashContainer{constructor(ft=[]){super();let gt=this;ft.forEach(function(xt){gt.insert(xt)})}begin(){return new st(this.p,this.h,this)}end(){return new st(this.h,this.h,this)}rBegin(){return new st(this._,this.h,this,1)}rEnd(){return new st(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(ft,gt){return this.M(ft,void 0,gt)}getElementByPos(ft){if(ft<0||ft>this.i-1)throw new RangeError;let gt=this.p;for(;ft--;)gt=gt.B;return gt.u}find(ft,gt){let xt=this.I(ft,gt);return new st(xt,this.h,this)}forEach(ft){let gt=0,xt=this.p;for(;xt!==this.h;)ft(xt.u,gt++,this),xt=xt.B}[Symbol.iterator](){return(function*(){let ft=this.p;for(;ft!==this.h;)yield ft.u,ft=ft.B}).bind(this)()}},ut=ct;_e.default=ut}),pp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),_e.default=void 0;var et=Ba(),rt=ct(Ia()),st=lt();function ct(xt){return xt&&xt.t?xt:{default:xt}}var ut=class Em extends et.HashContainerIterator{constructor($t,_t,wt,Tt){super($t,_t,Tt),this.container=wt}get pointer(){this.o===this.h&&(0,st.throwIteratorAccessError)();let $t=this;return new Proxy([],{get(_t,wt){if(wt==="0")return $t.o.u;if(wt==="1")return $t.o.l},set(_t,wt,Tt){if(wt!=="1")throw new TypeError("props must be 1");return $t.o.l=Tt,!0}})}copy(){return new Em(this.o,this.h,this.container,this.iteratorType)}},ft=class extends et.HashContainer{constructor(xt=[]){super();let $t=this;xt.forEach(function(_t){$t.setElement(_t[0],_t[1])})}begin(){return new ut(this.p,this.h,this)}end(){return new ut(this.h,this.h,this)}rBegin(){return new ut(this._,this.h,this,1)}rEnd(){return new ut(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(xt,$t,_t){return this.M(xt,$t,_t)}getElementByKey(xt,$t){if($t===void 0&&($t=(0,rt.default)(xt)),$t){let wt=xt[this.HASH_TAG];return wt!==void 0?this.H[wt].l:void 0}let _t=this.g[xt];return _t?_t.l:void 0}getElementByPos(xt){if(xt<0||xt>this.i-1)throw new RangeError;let $t=this.p;for(;xt--;)$t=$t.B;return[$t.u,$t.l]}find(xt,$t){let _t=this.I(xt,$t);return new ut(_t,this.h,this)}forEach(xt){let $t=0,_t=this.p;for(;_t!==this.h;)xt([_t.u,_t.l],$t++,this),_t=_t.B}[Symbol.iterator](){return(function*(){let xt=this.p;for(;xt!==this.h;)yield[xt.u,xt.l],xt=xt.B}).bind(this)()}},gt=ft;_e.default=gt}),gp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"t",{value:!0}),Object.defineProperty(_e,"Deque",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(_e,"HashMap",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(_e,"HashSet",{enumerable:!0,get:function(){return $t.default}}),Object.defineProperty(_e,"LinkList",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(_e,"OrderedMap",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(_e,"OrderedSet",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(_e,"PriorityQueue",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(_e,"Queue",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(_e,"Stack",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(_e,"Vector",{enumerable:!0,get:function(){return ct.default}});var et=wt(Jd()),rt=wt(Xd()),st=wt(Zd()),ct=wt(ep()),ut=wt(tp()),ft=wt(rp()),gt=wt(ap()),xt=wt(up()),$t=wt(hp()),_t=wt(pp());function wt(Tt){return Tt&&Tt.t?Tt:{default:Tt}}}),bp=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=gp().OrderedSet,st=ot()("number-allocator:trace"),ct=ot()("number-allocator:error");function ut(gt,xt){this.low=gt,this.high=xt}ut.prototype.equals=function(gt){return this.low===gt.low&&this.high===gt.high},ut.prototype.compare=function(gt){return this.low$t.compare(_t)),st("Create"),this.clear()}ft.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},ft.prototype.alloc=function(){if(this.ss.size()===0)return st("alloc():empty"),null;let gt=this.ss.begin(),xt=gt.pointer.low,$t=gt.pointer.high,_t=xt;return _t+1<=$t?this.ss.updateKeyByIterator(gt,new ut(xt+1,$t)):this.ss.eraseElementByPos(0),st("alloc():"+_t),_t},ft.prototype.use=function(gt){let xt=new ut(gt,gt),$t=this.ss.lowerBound(xt);if(!$t.equals(this.ss.end())){let _t=$t.pointer.low,wt=$t.pointer.high;return $t.pointer.equals(xt)?(this.ss.eraseElementByIterator($t),st("use():"+gt),!0):_t>gt?!1:_t===gt?(this.ss.updateKeyByIterator($t,new ut(_t+1,wt)),st("use():"+gt),!0):wt===gt?(this.ss.updateKeyByIterator($t,new ut(_t,wt-1)),st("use():"+gt),!0):(this.ss.updateKeyByIterator($t,new ut(gt+1,wt)),this.ss.insert(new ut(_t,gt-1)),st("use():"+gt),!0)}return st("use():failed"),!1},ft.prototype.free=function(gt){if(gtthis.max){ct("free():"+gt+" is out of range");return}let xt=new ut(gt,gt),$t=this.ss.upperBound(xt);if($t.equals(this.ss.end())){if($t.equals(this.ss.begin())){this.ss.insert(xt);return}$t.pre();let _t=$t.pointer.high;$t.pointer.high+1===gt?this.ss.updateKeyByIterator($t,new ut(_t,gt)):this.ss.insert(xt)}else if($t.equals(this.ss.begin()))if(gt+1===$t.pointer.low){let _t=$t.pointer.high;this.ss.updateKeyByIterator($t,new ut(gt,_t))}else this.ss.insert(xt);else{let _t=$t.pointer.low,wt=$t.pointer.high;$t.pre();let Tt=$t.pointer.low;$t.pointer.high+1===gt?gt+1===_t?(this.ss.eraseElementByIterator($t),this.ss.updateKeyByIterator($t,new ut(Tt,wt))):this.ss.updateKeyByIterator($t,new ut(Tt,gt)):gt+1===_t?(this.ss.eraseElementByIterator($t.next()),this.ss.insert(new ut(gt,wt))):this.ss.insert(xt)}st("free():"+gt)},ft.prototype.clear=function(){st("clear()"),this.ss.clear(),this.ss.insert(new ut(this.min,this.max))},ft.prototype.intervalCount=function(){return this.ss.size()},ft.prototype.dump=function(){console.log("length:"+this.ss.size());for(let gt of this.ss)console.log(gt)},et.exports=ft}),xa=M$1((_e,et)=>{_$2(),v$1(),m$1();var rt=bp();et.exports.NumberAllocator=rt}),_p=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=Yd(),rt=xa(),st=class{constructor(ct){ct>0&&(this.aliasToTopic=new et.LRUCache({max:ct}),this.topicToAlias={},this.numberAllocator=new rt.NumberAllocator(1,ct),this.max=ct,this.length=0)}put(ct,ut){if(ut===0||ut>this.max)return!1;let ft=this.aliasToTopic.get(ut);return ft&&delete this.topicToAlias[ft],this.aliasToTopic.set(ut,ct),this.topicToAlias[ct]=ut,this.numberAllocator.use(ut),this.length=this.aliasToTopic.size,!0}getTopicByAlias(ct){return this.aliasToTopic.get(ct)}getAliasByTopic(ct){let ut=this.topicToAlias[ct];return typeof ut<"u"&&this.aliasToTopic.get(ut),ut}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=st}),mp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=Si(),st=et(_p()),ct=Yr(),ut=(ft,gt)=>{ft.log("_handleConnack");let{options:xt}=ft,$t=xt.protocolVersion===5?gt.reasonCode:gt.returnCode;if(clearTimeout(ft.connackTimer),delete ft.topicAliasSend,gt.properties){if(gt.properties.topicAliasMaximum){if(gt.properties.topicAliasMaximum>65535){ft.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}gt.properties.topicAliasMaximum>0&&(ft.topicAliasSend=new st.default(gt.properties.topicAliasMaximum))}gt.properties.serverKeepAlive&&xt.keepalive&&(xt.keepalive=gt.properties.serverKeepAlive,ft._shiftPingInterval()),gt.properties.maximumPacketSize&&(xt.properties||(xt.properties={}),xt.properties.maximumPacketSize=gt.properties.maximumPacketSize)}if($t===0)ft.reconnecting=!1,ft._onConnect(gt);else if($t>0){let _t=new ct.ErrorWithReasonCode(`Connection refused: ${rt.ReasonCodes[$t]}`,$t);ft.emit("error",_t)}};_e.default=ut}),vp=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(rt,st,ct)=>{rt.log("handling pubrel packet");let ut=typeof ct<"u"?ct:rt.noop,{messageId:ft}=st,gt={cmd:"pubcomp",messageId:ft};rt.incomingStore.get(st,(xt,$t)=>{xt?rt._sendPacket(gt,ut):(rt.emit("message",$t.topic,$t.payload,$t),rt.handleMessage($t,_t=>{if(_t)return ut(_t);rt.incomingStore.del($t,rt.noop),rt._sendPacket(gt,ut)}))})};_e.default=et}),Ep=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(xt){return xt&&xt.__esModule?xt:{default:xt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et($d()),st=et(Vd()),ct=et(mp()),ut=et(Si()),ft=et(vp()),gt=(xt,$t,_t)=>{let{options:wt}=xt;if(wt.protocolVersion===5&&wt.properties&&wt.properties.maximumPacketSize&&wt.properties.maximumPacketSize<$t.length)return xt.emit("error",new Error(`exceeding packets size ${$t.cmd}`)),xt.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),xt;switch(xt.log("_handlePacket :: emitting packetreceive"),xt.emit("packetreceive",$t),$t.cmd){case"publish":(0,rt.default)(xt,$t,_t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":(0,ut.default)(xt,$t),_t();break;case"pubrel":(0,ft.default)(xt,$t,_t);break;case"connack":(0,ct.default)(xt,$t),_t();break;case"auth":(0,st.default)(xt,$t),_t();break;case"pingresp":xt.pingResp=!0,_t();break;case"disconnect":xt.emit("disconnect",$t),_t();break;default:xt.log("_handlePacket :: unknown command"),_t();break}};_e.default=gt}),Sp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TypedEventEmitter=void 0;var rt=et((ir(),Z(rr))),st=Yr(),ct=class{};_e.TypedEventEmitter=ct,(0,st.applyMixin)(ct,rt.default)}),Ip=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e):typeof define=="function"&&define.amd?define(["exports"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.fastUniqueNumbers={}))}(_e,function(rt){var st=function(Rt){return function(It){var At=Rt(It);return It.add(At),At}},ct=function(Rt){return function(It,At){return Rt.set(It,At),At}},ut=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,ft=536870912,gt=ft*2,xt=function(Rt,It){return function(At){var jt=It.get(At),Nt=jt===void 0?At.size:jtut)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;At.has(Nt);)Nt=Math.floor(Math.random()*ut);return Rt(At,Nt)}},$t=new WeakMap,_t=ct($t),wt=xt(_t,$t),Tt=st(wt);rt.addUniqueNumber=Tt,rt.generateUniqueNumber=wt})}),Rp=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e,Ip()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.workerTimersBroker={},rt.fastUniqueNumbers))}(_e,function(rt,st){var ct=function(gt){return gt.method!==void 0&>.method==="call"},ut=function(gt){return gt.error===null&&typeof gt.id=="number"},ft=function(gt){var xt=new Map([[0,function(){}]]),$t=new Map([[0,function(){}]]),_t=new Map,wt=new Worker(gt);wt.addEventListener("message",function(jt){var Nt=jt.data;if(ct(Nt)){var kt=Nt.params,Ft=kt.timerId,Ht=kt.timerType;if(Ht==="interval"){var Wt=xt.get(Ft);if(typeof Wt=="number"){var Vt=_t.get(Wt);if(Vt===void 0||Vt.timerId!==Ft||Vt.timerType!==Ht)throw new Error("The timer is in an undefined state.")}else if(typeof Wt<"u")Wt();else throw new Error("The timer is in an undefined state.")}else if(Ht==="timeout"){var qt=$t.get(Ft);if(typeof qt=="number"){var Xt=_t.get(qt);if(Xt===void 0||Xt.timerId!==Ft||Xt.timerType!==Ht)throw new Error("The timer is in an undefined state.")}else if(typeof qt<"u")qt(),$t.delete(Ft);else throw new Error("The timer is in an undefined state.")}}else if(ut(Nt)){var Gt=Nt.id,Zt=_t.get(Gt);if(Zt===void 0)throw new Error("The timer is in an undefined state.");var er=Zt.timerId,lr=Zt.timerType;_t.delete(Gt),lr==="interval"?xt.delete(er):$t.delete(er)}else{var cr=Nt.error.message;throw new Error(cr)}});var Tt=function(jt){var Nt=st.generateUniqueNumber(_t);_t.set(Nt,{timerId:jt,timerType:"interval"}),xt.set(jt,Nt),wt.postMessage({id:Nt,method:"clear",params:{timerId:jt,timerType:"interval"}})},Rt=function(jt){var Nt=st.generateUniqueNumber(_t);_t.set(Nt,{timerId:jt,timerType:"timeout"}),$t.set(jt,Nt),wt.postMessage({id:Nt,method:"clear",params:{timerId:jt,timerType:"timeout"}})},It=function(jt,Nt){var kt=st.generateUniqueNumber(xt);return xt.set(kt,function(){jt(),typeof xt.get(kt)=="function"&&wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"interval"}})}),wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"interval"}}),kt},At=function(jt,Nt){var kt=st.generateUniqueNumber($t);return $t.set(kt,jt),wt.postMessage({id:null,method:"set",params:{delay:Nt,now:performance.now(),timerId:kt,timerType:"timeout"}}),kt};return{clearInterval:Tt,clearTimeout:Rt,setInterval:It,setTimeout:At}};rt.load=ft})}),Bp=M$1((_e,et)=>{_$2(),v$1(),m$1(),function(rt,st){typeof _e=="object"&&typeof et<"u"?st(_e,Rp()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],st):(rt=typeof globalThis<"u"?globalThis:rt||self,st(rt.workerTimers={},rt.workerTimersBroker))}(_e,function(rt,st){var ct=function(wt,Tt){var Rt=null;return function(){if(Rt!==null)return Rt;var It=new Blob([Tt],{type:"application/javascript; charset=utf-8"}),At=URL.createObjectURL(It);return Rt=wt(At),setTimeout(function(){return URL.revokeObjectURL(At)}),Rt}},ut=`(()=>{var e={67:(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(67)})()})();`,ft=ct(st.load,ut),gt=function(wt){return ft().clearInterval(wt)},xt=function(wt){return ft().clearTimeout(wt)},$t=function(wt,Tt){return ft().setInterval(wt,Tt)},_t=function(wt,Tt){return ft().setTimeout(wt,Tt)};rt.clearInterval=gt,rt.clearTimeout=xt,rt.setInterval=$t,rt.setTimeout=_t})}),Zn=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.isWebWorker=void 0;var et=()=>typeof window<"u"&&typeof window.document<"u",rt=()=>{var ut,ft;return!!(typeof self=="object"&&!((ft=(ut=self==null?void 0:self.constructor)===null||ut===void 0?void 0:ut.name)===null||ft===void 0)&&ft.includes("WorkerGlobalScope"))},st=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ct=et()||rt()||st();_e.isWebWorker=rt(),_e.default=ct}),xp=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(gt,xt,$t,_t){_t===void 0&&(_t=$t);var wt=Object.getOwnPropertyDescriptor(xt,$t);(!wt||("get"in wt?!xt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return xt[$t]}}),Object.defineProperty(gt,_t,wt)}:function(gt,xt,$t,_t){_t===void 0&&(_t=$t),gt[_t]=xt[$t]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(gt,xt){Object.defineProperty(gt,"default",{enumerable:!0,value:xt})}:function(gt,xt){gt.default=xt}),st=_e&&_e.__importStar||function(gt){if(gt&>.__esModule)return gt;var xt={};if(gt!=null)for(var $t in gt)$t!=="default"&&Object.prototype.hasOwnProperty.call(gt,$t)&&et(xt,gt,$t);return rt(xt,gt),xt};Object.defineProperty(_e,"__esModule",{value:!0});var ct=Bp(),ut=st(Zn()),ft=class{constructor(gt,xt){this._setTimeout=ut.default&&!ut.isWebWorker?ct.setTimeout:($t,_t)=>setTimeout($t,_t),this._clearTimeout=ut.default&&!ut.isWebWorker?ct.clearTimeout:$t=>clearTimeout($t),this.keepalive=gt*1e3,this.checkPing=xt,this.reschedule()}clear(){this.timer&&(this._clearTimeout(this.timer),this.timer=null)}reschedule(){this.clear(),this.timer=this._setTimeout(()=>{this.checkPing(),this.timer&&this.reschedule()},this.keepalive)}};_e.default=ft}),rs=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(Ht,Wt,Vt,qt){qt===void 0&&(qt=Vt);var Xt=Object.getOwnPropertyDescriptor(Wt,Vt);(!Xt||("get"in Xt?!Wt.__esModule:Xt.writable||Xt.configurable))&&(Xt={enumerable:!0,get:function(){return Wt[Vt]}}),Object.defineProperty(Ht,qt,Xt)}:function(Ht,Wt,Vt,qt){qt===void 0&&(qt=Vt),Ht[qt]=Wt[Vt]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(Ht,Wt){Object.defineProperty(Ht,"default",{enumerable:!0,value:Wt})}:function(Ht,Wt){Ht.default=Wt}),st=_e&&_e.__importStar||function(Ht){if(Ht&&Ht.__esModule)return Ht;var Wt={};if(Ht!=null)for(var Vt in Ht)Vt!=="default"&&Object.prototype.hasOwnProperty.call(Ht,Vt)&&et(Wt,Ht,Vt);return rt(Wt,Ht),Wt},ct=_e&&_e.__importDefault||function(Ht){return Ht&&Ht.__esModule?Ht:{default:Ht}};Object.defineProperty(_e,"__esModule",{value:!0});var ut=ct(zu()),ft=ct(Ld()),gt=ct(Qo()),xt=Dt(),$t=ct(Dd()),_t=st(Fd()),wt=ct(ot()),Tt=ct(Xo()),Rt=ct(Ep()),It=Yr(),At=Sp(),jt=ct(xp()),Nt=globalThis.setImmediate||((...Ht)=>{let Wt=Ht.shift();(0,It.nextTick)(()=>{Wt(...Ht)})}),kt={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0},Ft=class Cm extends At.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(Wt,Vt){super(),this.options=Vt||{};for(let qt in kt)typeof this.options[qt]>"u"?this.options[qt]=kt[qt]:this.options[qt]=Vt[qt];this.log=this.options.log||(0,wt.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: options.protocol",Vt.protocol),this.log("MqttClient :: options.protocolVersion",Vt.protocolVersion),this.log("MqttClient :: options.username",Vt.username),this.log("MqttClient :: options.keepalive",Vt.keepalive),this.log("MqttClient :: options.reconnectPeriod",Vt.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",Vt.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",Vt.properties?Vt.properties.topicAliasMaximum:void 0),this.options.clientId=typeof Vt.clientId=="string"?Vt.clientId:Cm.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=Vt.protocolVersion===5&&Vt.customHandleAcks?Vt.customHandleAcks:(...qt)=>{qt[3](null,0)},this.options.writeCache||(ft.default.writeToStream.cacheNumbers=!1),this.streamBuilder=Wt,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new gt.default:this.options.messageIdProvider,this.outgoingStore=Vt.outgoingStore||new Tt.default,this.incomingStore=Vt.incomingStore||new Tt.default,this.queueQoSZero=Vt.queueQoSZero===void 0?!0:Vt.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=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,Vt.properties&&Vt.properties.topicAliasMaximum>0&&(Vt.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new ut.default(Vt.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:qt}=this,Xt=()=>{let Gt=qt.shift();this.log("deliver :: entry %o",Gt);let Zt=null;if(!Gt){this._resubscribe();return}Zt=Gt.packet,this.log("deliver :: call _sendPacket for %o",Zt);let er=!0;Zt.messageId&&Zt.messageId!==0&&(this.messageIdProvider.register(Zt.messageId)||(er=!1)),er?this._sendPacket(Zt,lr=>{Gt.cb&&Gt.cb(lr),Xt()}):(this.log("messageId: %d has already used. The message is skipped and removed.",Zt.messageId),Xt())};this.log("connect :: sending queued packets"),Xt()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this.log("close :: clearing ping timer"),this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(Wt,Vt){Vt()}handleMessage(Wt,Vt){Vt()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var Wt;let Vt=new xt.Writable,qt=ft.default.parser(this.options),Xt=null,Gt=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),qt.on("packet",ur=>{this.log("parser :: on packet push to packets array."),Gt.push(ur)});let Zt=()=>{this.log("work :: getting next packet in queue");let ur=Gt.shift();if(ur)this.log("work :: packet pulled from queue"),(0,Rt.default)(this,ur,er);else{this.log("work :: no packets in queue");let fr=Xt;Xt=null,this.log("work :: done flag is %s",!!fr),fr&&fr()}},er=()=>{if(Gt.length)(0,It.nextTick)(Zt);else{let ur=Xt;Xt=null,ur()}};Vt._write=(ur,fr,hr)=>{Xt=hr,this.log("writable stream :: parsing buffer"),qt.parse(ur),Zt()};let lr=ur=>{this.log("streamErrorHandler :: error",ur.message),ur.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",ur)):this.noop(ur)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(Vt),this.stream.on("error",lr),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 cr={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&&(cr.will=Object.assign(Object.assign({},this.options.will),{payload:(Wt=this.options.will)===null||Wt===void 0?void 0:Wt.payload})),this.topicAliasRecv&&(cr.properties||(cr.properties={}),this.topicAliasRecv&&(cr.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(cr),qt.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 ur=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(ur)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this._cleanUp(!0)},this.options.connectTimeout),this}publish(Wt,Vt,qt,Xt){this.log("publish :: message `%s` to topic `%s`",Vt,Wt);let{options:Gt}=this;typeof qt=="function"&&(Xt=qt,qt=null),qt=qt||{},qt=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),qt);let{qos:Zt,retain:er,dup:lr,properties:cr,cbStorePut:ur}=qt;if(this._checkDisconnecting(Xt))return this;let fr=()=>{let hr=0;if((Zt===1||Zt===2)&&(hr=this._nextId(),hr===null))return this.log("No messageId left"),!1;let pr={cmd:"publish",topic:Wt,payload:Vt,qos:Zt,retain:er,messageId:hr,dup:lr};switch(Gt.protocolVersion===5&&(pr.properties=cr),this.log("publish :: qos",Zt),Zt){case 1:case 2:this.outgoing[pr.messageId]={volatile:!1,cb:Xt||this.noop},this.log("MqttClient:publish: packet cmd: %s",pr.cmd),this._sendPacket(pr,void 0,ur);break;default:this.log("MqttClient:publish: packet cmd: %s",pr.cmd),this._sendPacket(pr,Xt,ur);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!fr())&&this._storeProcessingQueue.push({invoke:fr,cbStorePut:qt.cbStorePut,callback:Xt}),this}publishAsync(Wt,Vt,qt){return new Promise((Xt,Gt)=>{this.publish(Wt,Vt,qt,(Zt,er)=>{Zt?Gt(Zt):Xt(er)})})}subscribe(Wt,Vt,qt){let Xt=this.options.protocolVersion;typeof Vt=="function"&&(qt=Vt),qt=qt||this.noop;let Gt=!1,Zt=[];typeof Wt=="string"?(Wt=[Wt],Zt=Wt):Array.isArray(Wt)?Zt=Wt:typeof Wt=="object"&&(Gt=Wt.resubscribe,delete Wt.resubscribe,Zt=Object.keys(Wt));let er=_t.validateTopics(Zt);if(er!==null)return Nt(qt,new Error(`Invalid topic ${er}`)),this;if(this._checkDisconnecting(qt))return this.log("subscribe: discconecting true"),this;let lr={qos:0};Xt===5&&(lr.nl=!1,lr.rap=!1,lr.rh=0),Vt=Object.assign(Object.assign({},lr),Vt);let cr=Vt.properties,ur=[],fr=(pr,dr)=>{if(dr=dr||Vt,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,pr)||this._resubscribeTopics[pr].qos{this.log("subscribe: array topic %s",pr),fr(pr)}):Object.keys(Wt).forEach(pr=>{this.log("subscribe: object topic %s, %o",pr,Wt[pr]),fr(pr,Wt[pr])}),!ur.length)return qt(null,[]),this;let hr=()=>{let pr=this._nextId();if(pr===null)return this.log("No messageId left"),!1;let dr={cmd:"subscribe",subscriptions:ur,messageId:pr};if(cr&&(dr.properties=cr),this.options.resubscribe){this.log("subscribe :: resubscribe true");let yr=[];ur.forEach(Sr=>{if(this.options.reconnectPeriod>0){let br={qos:Sr.qos};Xt===5&&(br.nl=Sr.nl||!1,br.rap=Sr.rap||!1,br.rh=Sr.rh||0,br.properties=Sr.properties),this._resubscribeTopics[Sr.topic]=br,yr.push(Sr.topic)}}),this.messageIdToTopic[dr.messageId]=yr}return this.outgoing[dr.messageId]={volatile:!0,cb(yr,Sr){if(!yr){let{granted:br}=Sr;for(let mr=0;mr0||!hr())&&this._storeProcessingQueue.push({invoke:hr,callback:qt}),this}subscribeAsync(Wt,Vt){return new Promise((qt,Xt)=>{this.subscribe(Wt,Vt,(Gt,Zt)=>{Gt?Xt(Gt):qt(Zt)})})}unsubscribe(Wt,Vt,qt){typeof Wt=="string"&&(Wt=[Wt]),typeof Vt=="function"&&(qt=Vt),qt=qt||this.noop;let Xt=_t.validateTopics(Wt);if(Xt!==null)return Nt(qt,new Error(`Invalid topic ${Xt}`)),this;if(this._checkDisconnecting(qt))return this;let Gt=()=>{let Zt=this._nextId();if(Zt===null)return this.log("No messageId left"),!1;let er={cmd:"unsubscribe",messageId:Zt,unsubscriptions:[]};return typeof Wt=="string"?er.unsubscriptions=[Wt]:Array.isArray(Wt)&&(er.unsubscriptions=Wt),this.options.resubscribe&&er.unsubscriptions.forEach(lr=>{delete this._resubscribeTopics[lr]}),typeof Vt=="object"&&Vt.properties&&(er.properties=Vt.properties),this.outgoing[er.messageId]={volatile:!0,cb:qt},this.log("unsubscribe: call _sendPacket"),this._sendPacket(er),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!Gt())&&this._storeProcessingQueue.push({invoke:Gt,callback:qt}),this}unsubscribeAsync(Wt,Vt){return new Promise((qt,Xt)=>{this.unsubscribe(Wt,Vt,(Gt,Zt)=>{Gt?Xt(Gt):qt(Zt)})})}end(Wt,Vt,qt){this.log("end :: (%s)",this.options.clientId),(Wt==null||typeof Wt!="boolean")&&(qt=qt||Vt,Vt=Wt,Wt=!1),typeof Vt!="object"&&(qt=qt||Vt,Vt=null),this.log("end :: cb? %s",!!qt),(!qt||typeof qt!="function")&&(qt=this.noop);let Xt=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(Zt=>{this.outgoingStore.close(er=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),qt){let lr=Zt||er;this.log("end :: closeStores: invoking callback with args"),qt(lr)}})}),this._deferredReconnect&&this._deferredReconnect()},Gt=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,Wt),this._cleanUp(Wt,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,It.nextTick)(Xt)},Vt)};return this.disconnecting?(qt(),this):(this._clearReconnect(),this.disconnecting=!0,!Wt&&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,Gt,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),Gt()),this)}endAsync(Wt,Vt){return new Promise((qt,Xt)=>{this.end(Wt,Vt,Gt=>{Gt?Xt(Gt):qt()})})}removeOutgoingMessage(Wt){if(this.outgoing[Wt]){let{cb:Vt}=this.outgoing[Wt];this._removeOutgoingAndStoreMessage(Wt,()=>{Vt(new Error("Message removed"))})}return this}reconnect(Wt){this.log("client reconnect");let Vt=()=>{Wt?(this.options.incomingStore=Wt.incomingStore,this.options.outgoingStore=Wt.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new Tt.default,this.outgoingStore=this.options.outgoingStore||new Tt.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=Vt:Vt(),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(Wt=>{this.outgoing[Wt].volatile&&typeof this.outgoing[Wt].cb=="function"&&(this.outgoing[Wt].cb(new Error("Connection closed")),delete this.outgoing[Wt])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(Wt=>{typeof this.outgoing[Wt].cb=="function"&&(this.outgoing[Wt].cb(new Error("Connection closed")),delete this.outgoing[Wt])}))}_removeTopicAliasAndRecoverTopicName(Wt){let Vt;Wt.properties&&(Vt=Wt.properties.topicAlias);let qt=Wt.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",Vt,qt),qt.length===0){if(typeof Vt>"u")return new Error("Unregistered Topic Alias");if(qt=this.topicAliasSend.getTopicByAlias(Vt),typeof qt>"u")return new Error("Unregistered Topic Alias");Wt.topic=qt}Vt&&delete Wt.properties.topicAlias}_checkDisconnecting(Wt){return this.disconnecting&&(Wt&&Wt!==this.noop?Wt(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(Wt,Vt,qt={}){if(Vt&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",Vt)),this.log("_cleanUp :: forced? %s",Wt),Wt)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let Xt=Object.assign({cmd:"disconnect"},qt);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Xt,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),Nt(()=>{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.pingTimer&&(this.log("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),Vt&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",Vt),Vt())}_storeAndSend(Wt,Vt,qt){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",Wt.cmd);let Xt=Wt,Gt;if(Xt.cmd==="publish"&&(Xt=(0,$t.default)(Wt),Gt=this._removeTopicAliasAndRecoverTopicName(Xt),Gt))return Vt&&Vt(Gt);this.outgoingStore.put(Xt,Zt=>{if(Zt)return Vt&&Vt(Zt);qt(),this._writePacket(Wt,Vt)})}_applyTopicAlias(Wt){if(this.options.protocolVersion===5&&Wt.cmd==="publish"){let Vt;Wt.properties&&(Vt=Wt.properties.topicAlias);let qt=Wt.topic.toString();if(this.topicAliasSend)if(Vt){if(qt.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",qt,Vt),!this.topicAliasSend.put(qt,Vt)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",qt,Vt),new Error("Sending Topic Alias out of range")}else qt.length!==0&&(this.options.autoAssignTopicAlias?(Vt=this.topicAliasSend.getAliasByTopic(qt),Vt?(Wt.topic="",Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",qt,Vt)):(Vt=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(qt,Vt),Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",qt,Vt))):this.options.autoUseTopicAlias&&(Vt=this.topicAliasSend.getAliasByTopic(qt),Vt&&(Wt.topic="",Wt.properties=Object.assign(Object.assign({},Wt.properties),{topicAlias:Vt}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",qt,Vt))));else if(Vt)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",qt,Vt),new Error("Sending Topic Alias out of range")}}_noop(Wt){this.log("noop ::",Wt)}_writePacket(Wt,Vt){this.log("_writePacket :: packet: %O",Wt),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",Wt),this._shiftPingInterval(),this.log("_writePacket :: writing to stream");let qt=ft.default.writeToStream(Wt,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",qt),!qt&&Vt&&Vt!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",Vt)):Vt&&(this.log("_writePacket :: invoking cb"),Vt())}_sendPacket(Wt,Vt,qt,Xt){this.log("_sendPacket :: (%s) :: start",this.options.clientId),qt=qt||this.noop,Vt=Vt||this.noop;let Gt=this._applyTopicAlias(Wt);if(Gt){Vt(Gt);return}if(!this.connected){if(Wt.cmd==="auth"){this._writePacket(Wt,Vt);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(Wt,Vt,qt);return}if(Xt){this._writePacket(Wt,Vt);return}switch(Wt.cmd){case"publish":break;case"pubrel":this._storeAndSend(Wt,Vt,qt);return;default:this._writePacket(Wt,Vt);return}switch(Wt.qos){case 2:case 1:this._storeAndSend(Wt,Vt,qt);break;case 0:default:this._writePacket(Wt,Vt);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(Wt,Vt,qt){this.log("_storePacket :: packet: %o",Wt),this.log("_storePacket :: cb? %s",!!Vt),qt=qt||this.noop;let Xt=Wt;if(Xt.cmd==="publish"){Xt=(0,$t.default)(Wt);let Zt=this._removeTopicAliasAndRecoverTopicName(Xt);if(Zt)return Vt&&Vt(Zt)}let Gt=Xt.qos||0;Gt===0&&this.queueQoSZero||Xt.cmd!=="publish"?this.queue.push({packet:Xt,cb:Vt}):Gt>0?(Vt=this.outgoing[Xt.messageId]?this.outgoing[Xt.messageId].cb:null,this.outgoingStore.put(Xt,Zt=>{if(Zt)return Vt&&Vt(Zt);qt()})):Vt&&Vt(new Error("No connection to broker"))}_setupPingTimer(){this.log("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive),!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=new jt.default(this.options.keepalive,()=>{this._checkPing()}))}_shiftPingInterval(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule()}_checkPing(){this.log("_checkPing :: checking ping..."),this.pingResp?(this.log("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(this.log("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))}_resubscribe(){this.log("_resubscribe");let Wt=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&Wt.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let Vt=0;Vt{let qt=this.outgoingStore.createStream(),Xt=()=>{qt.destroy(),qt=null,this._flushStoreProcessingQueue(),Gt()},Gt=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",Xt),qt.on("error",er=>{Gt(),this._flushStoreProcessingQueue(),this.removeListener("close",Xt),this.emit("error",er)});let Zt=()=>{if(!qt)return;let er=qt.read(1),lr;if(!er){qt.once("readable",Zt);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[er.messageId]){Zt();return}!this.disconnecting&&!this.reconnectTimer?(lr=this.outgoing[er.messageId]?this.outgoing[er.messageId].cb:null,this.outgoing[er.messageId]={volatile:!1,cb(cr,ur){lr&&lr(cr,ur),Zt()}},this._packetIdsDuringStoreProcessing[er.messageId]=!0,this.messageIdProvider.register(er.messageId)?this._sendPacket(er,void 0,void 0,!0):this.log("messageId: %d has already used.",er.messageId)):qt.destroy&&qt.destroy()};qt.on("end",()=>{let er=!0;for(let lr in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[lr]){er=!1;break}this.removeListener("close",Xt),er?(Gt(),this._invokeAllStoreProcessingQueue(),this.emit("connect",Wt)):Vt()}),Zt()};Vt()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let Wt=this._storeProcessingQueue[0];if(Wt&&Wt.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let Wt of this._storeProcessingQueue)Wt.cbStorePut&&Wt.cbStorePut(new Error("Connection closed")),Wt.callback&&Wt.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(Wt,Vt){delete this.outgoing[Wt],this.outgoingStore.del({messageId:Wt},(qt,Xt)=>{Vt(qt,Xt),this.messageIdProvider.deallocate(Wt),this._invokeStoreProcessingQueue()})}};_e.default=Ft}),Up=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=xa(),rt=class{constructor(){this.numberAllocator=new et.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(st){return this.numberAllocator.use(st)}deallocate(st){this.numberAllocator.free(st)}clear(){this.numberAllocator.clear()}};_e.default=rt});function Ar(_e){throw new RangeError(Gv[_e])}function Np(_e,et){let rt=_e.split("@"),st="";rt.length>1&&(st=rt[0]+"@",_e=rt[1]);let ct=function(ut,ft){let gt=[],xt=ut.length;for(;xt--;)gt[xt]=ft(ut[xt]);return gt}((_e=_e.replace(Kv,".")).split("."),et).join(".");return st+ct}function Fp(_e){let et=[],rt=0,st=_e.length;for(;rt=55296&&ct<=56319&&rt{_$2(),v$1(),m$1(),Vv=/^xn--/,zv=/[^\0-\x7E]/,Kv=/[\x2E\u3002\uFF0E\uFF61]/g,Gv={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ht=Math.floor,$a=String.fromCharCode,qp=function(_e,et){return _e+22+75*(_e<26)-((et!=0)<<5)},Wp=function(_e,et,rt){let st=0;for(_e=rt?ht(_e/700):_e>>1,_e+=ht(_e/et);_e>455;st+=36)_e=ht(_e/35);return ht(st+36*_e/(_e+38))},Dp=function(_e){let et=[],rt=_e.length,st=0,ct=128,ut=72,ft=_e.lastIndexOf("-");ft<0&&(ft=0);for(let xt=0;xt=128&&Ar("not-basic"),et.push(_e.charCodeAt(xt));for(let xt=ft>0?ft+1:0;xt=rt&&Ar("invalid-input");let Rt=(gt=_e.charCodeAt(xt++))-48<10?gt-22:gt-65<26?gt-65:gt-97<26?gt-97:36;(Rt>=36||Rt>ht((2147483647-st)/wt))&&Ar("overflow"),st+=Rt*wt;let It=Tt<=ut?1:Tt>=ut+26?26:Tt-ut;if(Rtht(2147483647/At)&&Ar("overflow"),wt*=At}let _t=et.length+1;ut=Wp(st-$t,_t,$t==0),ht(st/_t)>2147483647-ct&&Ar("overflow"),ct+=ht(st/_t),st%=_t,et.splice(st++,0,ct)}var gt;return String.fromCodePoint(...et)},jp=function(_e){let et=[],rt=(_e=Fp(_e)).length,st=128,ct=0,ut=72;for(let xt of _e)xt<128&&et.push($a(xt));let ft=et.length,gt=ft;for(ft&&et.push("-");gt=st&&_tht((2147483647-ct)/$t)&&Ar("overflow"),ct+=(xt-st)*$t,st=xt;for(let _t of _e)if(_t2147483647&&Ar("overflow"),_t==st){let wt=ct;for(let Tt=36;;Tt+=36){let Rt=Tt<=ut?1:Tt>=ut+26?26:Tt-ut;if(wtString.fromCodePoint(..._e)},decode:Dp,encode:jp,toASCII:function(_e){return Np(_e,function(et){return zv.test(et)?"xn--"+jp(et):et})},toUnicode:function(_e){return Np(_e,function(et){return Vv.test(et)?Dp(et.slice(4).toLowerCase()):et})}},zt.decode,zt.encode,zt.toASCII,zt.toUnicode,zt.ucs2,zt.version});function Qv(_e,et){return Object.prototype.hasOwnProperty.call(_e,et)}var Yv,Pi,Jv,dt,Hp=be$1(()=>{_$2(),v$1(),m$1(),Yv=function(_e,et,rt,st){et=et||"&",rt=rt||"=";var ct={};if(typeof _e!="string"||_e.length===0)return ct;var ut=/\+/g;_e=_e.split(et);var ft=1e3;st&&typeof st.maxKeys=="number"&&(ft=st.maxKeys);var gt=_e.length;ft>0&>>ft&&(gt=ft);for(var xt=0;xt=0?($t=Rt.substr(0,It),_t=Rt.substr(It+1)):($t=Rt,_t=""),wt=decodeURIComponent($t),Tt=decodeURIComponent(_t),Qv(ct,wt)?Array.isArray(ct[wt])?ct[wt].push(Tt):ct[wt]=[ct[wt],Tt]:ct[wt]=Tt}return ct},Pi=function(_e){switch(typeof _e){case"string":return _e;case"boolean":return _e?"true":"false";case"number":return isFinite(_e)?_e:"";default:return""}},Jv=function(_e,et,rt,st){return et=et||"&",rt=rt||"=",_e===null&&(_e=void 0),typeof _e=="object"?Object.keys(_e).map(function(ct){var ut=encodeURIComponent(Pi(ct))+rt;return Array.isArray(_e[ct])?_e[ct].map(function(ft){return ut+encodeURIComponent(Pi(ft))}).join(et):ut+encodeURIComponent(Pi(_e[ct]))}).join(et):st?encodeURIComponent(Pi(st))+rt+encodeURIComponent(Pi(_e)):""},dt={},dt.decode=dt.parse=Yv,dt.encode=dt.stringify=Jv,dt.decode,dt.encode,dt.parse,dt.stringify});function Ha(){throw new Error("setTimeout has not been defined")}function Va(){throw new Error("clearTimeout has not been defined")}function Kp(_e){if(Bt===setTimeout)return setTimeout(_e,0);if((Bt===Ha||!Bt)&&setTimeout)return Bt=setTimeout,setTimeout(_e,0);try{return Bt(_e,0)}catch{try{return Bt.call(null,_e,0)}catch{return Bt.call(this||ri,_e,0)}}}function Xv(){ti&&Ir&&(ti=!1,Ir.length?Ot=Ir.concat(Ot):is=-1,Ot.length&&Gp())}function Gp(){if(!ti){var _e=Kp(Xv);ti=!0;for(var et=Ot.length;et;){for(Ir=Ot,Ot=[];++is{_$2(),v$1(),m$1(),ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fe=zp={},function(){try{Bt=typeof setTimeout=="function"?setTimeout:Ha}catch{Bt=Ha}try{Pt=typeof clearTimeout=="function"?clearTimeout:Va}catch{Pt=Va}}(),Ot=[],ti=!1,is=-1,fe.nextTick=function(_e){var et=new Array(arguments.length-1);if(arguments.length>1)for(var rt=1;rt1)for(var Nt=1;Nt{_$2(),v$1(),m$1(),za={},Yp=!1,ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,re$2=Zv(),re$2.platform="browser",re$2.addListener,re$2.argv,re$2.binding,re$2.browser,re$2.chdir,re$2.cwd,re$2.emit,re$2.env,re$2.listeners,re$2.nextTick,re$2.off,re$2.on,re$2.once,re$2.prependListener,re$2.prependOnceListener,re$2.removeAllListeners,re$2.removeListener,re$2.title,re$2.umask,re$2.version,re$2.versions});function eE(){if(Jp)return Ga;Jp=!0;var _e=re$2;function et(ut){if(typeof ut!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ut))}function rt(ut,ft){for(var gt="",xt=0,$t=-1,_t=0,wt,Tt=0;Tt<=ut.length;++Tt){if(Tt2){var Rt=gt.lastIndexOf("/");if(Rt!==gt.length-1){Rt===-1?(gt="",xt=0):(gt=gt.slice(0,Rt),xt=gt.length-1-gt.lastIndexOf("/")),$t=Tt,_t=0;continue}}else if(gt.length===2||gt.length===1){gt="",xt=0,$t=Tt,_t=0;continue}}ft&&(gt.length>0?gt+="/..":gt="..",xt=2)}else gt.length>0?gt+="/"+ut.slice($t+1,Tt):gt=ut.slice($t+1,Tt),xt=Tt-$t-1;$t=Tt,_t=0}else wt===46&&_t!==-1?++_t:_t=-1}return gt}function st(ut,ft){var gt=ft.dir||ft.root,xt=ft.base||(ft.name||"")+(ft.ext||"");return gt?gt===ft.root?gt+xt:gt+ut+xt:xt}var ct={resolve:function(){for(var ut="",ft=!1,gt,xt=arguments.length-1;xt>=-1&&!ft;xt--){var $t;xt>=0?$t=arguments[xt]:(gt===void 0&&(gt=_e.cwd()),$t=gt),et($t),$t.length!==0&&(ut=$t+"/"+ut,ft=$t.charCodeAt(0)===47)}return ut=rt(ut,!ft),ft?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},normalize:function(ut){if(et(ut),ut.length===0)return".";var ft=ut.charCodeAt(0)===47,gt=ut.charCodeAt(ut.length-1)===47;return ut=rt(ut,!ft),ut.length===0&&!ft&&(ut="."),ut.length>0&>&&(ut+="/"),ft?"/"+ut:ut},isAbsolute:function(ut){return et(ut),ut.length>0&&ut.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ut,ft=0;ft0&&(ut===void 0?ut=gt:ut+="/"+gt)}return ut===void 0?".":ct.normalize(ut)},relative:function(ut,ft){if(et(ut),et(ft),ut===ft||(ut=ct.resolve(ut),ft=ct.resolve(ft),ut===ft))return"";for(var gt=1;gtRt){if(ft.charCodeAt(_t+At)===47)return ft.slice(_t+At+1);if(At===0)return ft.slice(_t+At)}else $t>Rt&&(ut.charCodeAt(gt+At)===47?It=At:At===0&&(It=0));break}var jt=ut.charCodeAt(gt+At),Nt=ft.charCodeAt(_t+At);if(jt!==Nt)break;jt===47&&(It=At)}var kt="";for(At=gt+It+1;At<=xt;++At)(At===xt||ut.charCodeAt(At)===47)&&(kt.length===0?kt+="..":kt+="/..");return kt.length>0?kt+ft.slice(_t+It):(_t+=It,ft.charCodeAt(_t)===47&&++_t,ft.slice(_t))},_makeLong:function(ut){return ut},dirname:function(ut){if(et(ut),ut.length===0)return".";for(var ft=ut.charCodeAt(0),gt=ft===47,xt=-1,$t=!0,_t=ut.length-1;_t>=1;--_t)if(ft=ut.charCodeAt(_t),ft===47){if(!$t){xt=_t;break}}else $t=!1;return xt===-1?gt?"/":".":gt&&xt===1?"//":ut.slice(0,xt)},basename:function(ut,ft){if(ft!==void 0&&typeof ft!="string")throw new TypeError('"ext" argument must be a string');et(ut);var gt=0,xt=-1,$t=!0,_t;if(ft!==void 0&&ft.length>0&&ft.length<=ut.length){if(ft.length===ut.length&&ft===ut)return"";var wt=ft.length-1,Tt=-1;for(_t=ut.length-1;_t>=0;--_t){var Rt=ut.charCodeAt(_t);if(Rt===47){if(!$t){gt=_t+1;break}}else Tt===-1&&($t=!1,Tt=_t+1),wt>=0&&(Rt===ft.charCodeAt(wt)?--wt===-1&&(xt=_t):(wt=-1,xt=Tt))}return gt===xt?xt=Tt:xt===-1&&(xt=ut.length),ut.slice(gt,xt)}else{for(_t=ut.length-1;_t>=0;--_t)if(ut.charCodeAt(_t)===47){if(!$t){gt=_t+1;break}}else xt===-1&&($t=!1,xt=_t+1);return xt===-1?"":ut.slice(gt,xt)}},extname:function(ut){et(ut);for(var ft=-1,gt=0,xt=-1,$t=!0,_t=0,wt=ut.length-1;wt>=0;--wt){var Tt=ut.charCodeAt(wt);if(Tt===47){if(!$t){gt=wt+1;break}continue}xt===-1&&($t=!1,xt=wt+1),Tt===46?ft===-1?ft=wt:_t!==1&&(_t=1):ft!==-1&&(_t=-1)}return ft===-1||xt===-1||_t===0||_t===1&&ft===xt-1&&ft===gt+1?"":ut.slice(ft,xt)},format:function(ut){if(ut===null||typeof ut!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ut);return st("/",ut)},parse:function(ut){et(ut);var ft={root:"",dir:"",base:"",ext:"",name:""};if(ut.length===0)return ft;var gt=ut.charCodeAt(0),xt=gt===47,$t;xt?(ft.root="/",$t=1):$t=0;for(var _t=-1,wt=0,Tt=-1,Rt=!0,It=ut.length-1,At=0;It>=$t;--It){if(gt=ut.charCodeAt(It),gt===47){if(!Rt){wt=It+1;break}continue}Tt===-1&&(Rt=!1,Tt=It+1),gt===46?_t===-1?_t=It:At!==1&&(At=1):_t!==-1&&(At=-1)}return _t===-1||Tt===-1||At===0||At===1&&_t===Tt-1&&_t===wt+1?Tt!==-1&&(wt===0&&xt?ft.base=ft.name=ut.slice(1,Tt):ft.base=ft.name=ut.slice(wt,Tt)):(wt===0&&xt?(ft.name=ut.slice(1,_t),ft.base=ut.slice(1,Tt)):(ft.name=ut.slice(wt,_t),ft.base=ut.slice(wt,Tt)),ft.ext=ut.slice(_t,Tt)),wt>0?ft.dir=ut.slice(0,wt-1):xt&&(ft.dir="/"),ft},sep:"/",delimiter:":",win32:null,posix:null};return ct.posix=ct,Ga=ct,Ga}var Ga,Jp,Qa,Xp=be$1(()=>{_$2(),v$1(),m$1(),Ka(),Ga={},Jp=!1,Qa=eE()}),og={};Qt(og,{URL:()=>PE,Url:()=>IE,default:()=>X,fileURLToPath:()=>ng,format:()=>TE,parse:()=>BE,pathToFileURL:()=>sg,resolve:()=>RE,resolveObject:()=>CE});function Fe$1(){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 Oi(_e,et,rt){if(_e&&pt$1.isObject(_e)&&_e instanceof Fe$1)return _e;var st=new Fe$1;return st.parse(_e,et,rt),st}function lE(){if(rg)return Xa;rg=!0;var _e=ne$1;function et(ut){if(typeof ut!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ut))}function rt(ut,ft){for(var gt="",xt=0,$t=-1,_t=0,wt,Tt=0;Tt<=ut.length;++Tt){if(Tt2){var Rt=gt.lastIndexOf("/");if(Rt!==gt.length-1){Rt===-1?(gt="",xt=0):(gt=gt.slice(0,Rt),xt=gt.length-1-gt.lastIndexOf("/")),$t=Tt,_t=0;continue}}else if(gt.length===2||gt.length===1){gt="",xt=0,$t=Tt,_t=0;continue}}ft&&(gt.length>0?gt+="/..":gt="..",xt=2)}else gt.length>0?gt+="/"+ut.slice($t+1,Tt):gt=ut.slice($t+1,Tt),xt=Tt-$t-1;$t=Tt,_t=0}else wt===46&&_t!==-1?++_t:_t=-1}return gt}function st(ut,ft){var gt=ft.dir||ft.root,xt=ft.base||(ft.name||"")+(ft.ext||"");return gt?gt===ft.root?gt+xt:gt+ut+xt:xt}var ct={resolve:function(){for(var ut="",ft=!1,gt,xt=arguments.length-1;xt>=-1&&!ft;xt--){var $t;xt>=0?$t=arguments[xt]:(gt===void 0&&(gt=_e.cwd()),$t=gt),et($t),$t.length!==0&&(ut=$t+"/"+ut,ft=$t.charCodeAt(0)===47)}return ut=rt(ut,!ft),ft?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},normalize:function(ut){if(et(ut),ut.length===0)return".";var ft=ut.charCodeAt(0)===47,gt=ut.charCodeAt(ut.length-1)===47;return ut=rt(ut,!ft),ut.length===0&&!ft&&(ut="."),ut.length>0&>&&(ut+="/"),ft?"/"+ut:ut},isAbsolute:function(ut){return et(ut),ut.length>0&&ut.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ut,ft=0;ft0&&(ut===void 0?ut=gt:ut+="/"+gt)}return ut===void 0?".":ct.normalize(ut)},relative:function(ut,ft){if(et(ut),et(ft),ut===ft||(ut=ct.resolve(ut),ft=ct.resolve(ft),ut===ft))return"";for(var gt=1;gtRt){if(ft.charCodeAt(_t+At)===47)return ft.slice(_t+At+1);if(At===0)return ft.slice(_t+At)}else $t>Rt&&(ut.charCodeAt(gt+At)===47?It=At:At===0&&(It=0));break}var jt=ut.charCodeAt(gt+At),Nt=ft.charCodeAt(_t+At);if(jt!==Nt)break;jt===47&&(It=At)}var kt="";for(At=gt+It+1;At<=xt;++At)(At===xt||ut.charCodeAt(At)===47)&&(kt.length===0?kt+="..":kt+="/..");return kt.length>0?kt+ft.slice(_t+It):(_t+=It,ft.charCodeAt(_t)===47&&++_t,ft.slice(_t))},_makeLong:function(ut){return ut},dirname:function(ut){if(et(ut),ut.length===0)return".";for(var ft=ut.charCodeAt(0),gt=ft===47,xt=-1,$t=!0,_t=ut.length-1;_t>=1;--_t)if(ft=ut.charCodeAt(_t),ft===47){if(!$t){xt=_t;break}}else $t=!1;return xt===-1?gt?"/":".":gt&&xt===1?"//":ut.slice(0,xt)},basename:function(ut,ft){if(ft!==void 0&&typeof ft!="string")throw new TypeError('"ext" argument must be a string');et(ut);var gt=0,xt=-1,$t=!0,_t;if(ft!==void 0&&ft.length>0&&ft.length<=ut.length){if(ft.length===ut.length&&ft===ut)return"";var wt=ft.length-1,Tt=-1;for(_t=ut.length-1;_t>=0;--_t){var Rt=ut.charCodeAt(_t);if(Rt===47){if(!$t){gt=_t+1;break}}else Tt===-1&&($t=!1,Tt=_t+1),wt>=0&&(Rt===ft.charCodeAt(wt)?--wt===-1&&(xt=_t):(wt=-1,xt=Tt))}return gt===xt?xt=Tt:xt===-1&&(xt=ut.length),ut.slice(gt,xt)}else{for(_t=ut.length-1;_t>=0;--_t)if(ut.charCodeAt(_t)===47){if(!$t){gt=_t+1;break}}else xt===-1&&($t=!1,xt=_t+1);return xt===-1?"":ut.slice(gt,xt)}},extname:function(ut){et(ut);for(var ft=-1,gt=0,xt=-1,$t=!0,_t=0,wt=ut.length-1;wt>=0;--wt){var Tt=ut.charCodeAt(wt);if(Tt===47){if(!$t){gt=wt+1;break}continue}xt===-1&&($t=!1,xt=wt+1),Tt===46?ft===-1?ft=wt:_t!==1&&(_t=1):ft!==-1&&(_t=-1)}return ft===-1||xt===-1||_t===0||_t===1&&ft===xt-1&&ft===gt+1?"":ut.slice(ft,xt)},format:function(ut){if(ut===null||typeof ut!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ut);return st("/",ut)},parse:function(ut){et(ut);var ft={root:"",dir:"",base:"",ext:"",name:""};if(ut.length===0)return ft;var gt=ut.charCodeAt(0),xt=gt===47,$t;xt?(ft.root="/",$t=1):$t=0;for(var _t=-1,wt=0,Tt=-1,Rt=!0,It=ut.length-1,At=0;It>=$t;--It){if(gt=ut.charCodeAt(It),gt===47){if(!Rt){wt=It+1;break}continue}Tt===-1&&(Rt=!1,Tt=It+1),gt===46?_t===-1?_t=It:At!==1&&(At=1):_t!==-1&&(At=-1)}return _t===-1||Tt===-1||At===0||At===1&&_t===Tt-1&&_t===wt+1?Tt!==-1&&(wt===0&&xt?ft.base=ft.name=ut.slice(1,Tt):ft.base=ft.name=ut.slice(wt,Tt)):(wt===0&&xt?(ft.name=ut.slice(1,_t),ft.base=ut.slice(1,Tt)):(ft.name=ut.slice(wt,_t),ft.base=ut.slice(wt,Tt)),ft.ext=ut.slice(_t,Tt)),wt>0?ft.dir=ut.slice(0,wt-1):xt&&(ft.dir="/"),ft},sep:"/",delimiter:":",win32:null,posix:null};return ct.posix=ct,Xa=ct,Xa}function mE(_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 el?vE(_e):EE(_e)}function vE(_e){let et=_e.hostname,rt=_e.pathname;for(let st=0;stdE||ct!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return rt.slice(1)}}function EE(_e){if(_e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let et=_e.pathname;for(let rt=0;rtME||ct!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return rt.slice(1)}}function WE(_e){if(_e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let et=_e.pathname;for(let rt=0;rt{_$2(),v$1(),m$1(),$p(),Hp(),Qp(),Xp(),Ka(),X={},tE=zt,pt$1={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}},X.parse=Oi,X.resolve=function(_e,et){return Oi(_e,!1,!0).resolve(et)},X.resolveObject=function(_e,et){return _e?Oi(_e,!1,!0).resolveObject(et):et},X.format=function(_e){return pt$1.isString(_e)&&(_e=Oi(_e)),_e instanceof Fe$1?_e.format():Fe$1.prototype.format.call(_e)},X.Url=Fe$1,rE=/^([a-z0-9.+-]+:)/i,iE=/:[0-9]*$/,nE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sE=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` -`," "]),Za=["'"].concat(sE),Zp=["%","/","?",";","#"].concat(Za),eg=["/","?","#"],tg=/^[+a-z0-9A-Z_-]{0,63}$/,oE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,aE={javascript:!0,"javascript:":!0},Ya={javascript:!0,"javascript:":!0},ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ja=dt,Fe$1.prototype.parse=function(_e,et,rt){if(!pt$1.isString(_e))throw new TypeError("Parameter 'url' must be a string, not "+typeof _e);var st=_e.indexOf("?"),ct=st!==-1&&st<_e.indexOf("#")?"?":"#",ut=_e.split(ct);ut[0]=ut[0].replace(/\\/g,"/");var ft=_e=ut.join(ct);if(ft=ft.trim(),!rt&&_e.split("#").length===1){var gt=nE.exec(ft);if(gt)return this.path=ft,this.href=ft,this.pathname=gt[1],gt[2]?(this.search=gt[2],this.query=et?Ja.parse(this.search.substr(1)):this.search.substr(1)):et&&(this.search="",this.query={}),this}var xt=rE.exec(ft);if(xt){var $t=(xt=xt[0]).toLowerCase();this.protocol=$t,ft=ft.substr(xt.length)}if(rt||xt||ft.match(/^\/\/[^@\/]+@[^@\/]+/)){var _t=ft.substr(0,2)==="//";!_t||xt&&Ya[xt]||(ft=ft.substr(2),this.slashes=!0)}if(!Ya[xt]&&(_t||xt&&!ni[xt])){for(var wt,Tt,Rt=-1,It=0;It127?Ht+="x":Ht+=Ft[Wt];if(!Ht.match(tg)){var qt=Nt.slice(0,It),Gt=Nt.slice(It+1),Xt=Ft.match(oE);Xt&&(qt.push(Xt[1]),Gt.unshift(Xt[2])),Gt.length&&(ft="/"+Gt.join(".")+ft),this.hostname=qt.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),jt||(this.hostname=tE.toASCII(this.hostname));var Zt=this.port?":"+this.port:"",lr=this.hostname||"";this.host=lr+Zt,this.href+=this.host,jt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ft[0]!=="/"&&(ft="/"+ft))}if(!aE[$t])for(It=0,kt=Za.length;It0)&&rt.host.split("@"))&&(rt.auth=Xt.shift(),rt.host=rt.hostname=Xt.shift())),rt.search=_e.search,rt.query=_e.query,pt$1.isNull(rt.pathname)&&pt$1.isNull(rt.search)||(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.href=rt.format(),rt;if(!Ft.length)return rt.pathname=null,rt.search?rt.path="/"+rt.search:rt.path=null,rt.href=rt.format(),rt;for(var Wt=Ft.slice(-1)[0],Vt=(rt.host||_e.host||Ft.length>1)&&(Wt==="."||Wt==="..")||Wt==="",qt=0,Gt=Ft.length;Gt>=0;Gt--)(Wt=Ft[Gt])==="."?Ft.splice(Gt,1):Wt===".."?(Ft.splice(Gt,1),qt++):qt&&(Ft.splice(Gt,1),qt--);if(!Nt&&!kt)for(;qt--;qt)Ft.unshift("..");!Nt||Ft[0]===""||Ft[0]&&Ft[0].charAt(0)==="/"||Ft.unshift(""),Vt&&Ft.join("/").substr(-1)!=="/"&&Ft.push("");var Xt,Zt=Ft[0]===""||Ft[0]&&Ft[0].charAt(0)==="/";return Ht&&(rt.hostname=rt.host=Zt?"":Ft.length?Ft.shift():"",(Xt=!!(rt.host&&rt.host.indexOf("@")>0)&&rt.host.split("@"))&&(rt.auth=Xt.shift(),rt.host=rt.hostname=Xt.shift())),(Nt=Nt||rt.host&&Ft.length)&&!Zt&&Ft.unshift(""),Ft.length?rt.pathname=Ft.join("/"):(rt.pathname=null,rt.path=null),pt$1.isNull(rt.pathname)&&pt$1.isNull(rt.search)||(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.auth=_e.auth||rt.auth,rt.slashes=rt.slashes||_e.slashes,rt.href=rt.format(),rt},Fe$1.prototype.parseHost=function(){var _e=this.host,et=iE.exec(_e);et&&((et=et[0])!==":"&&(this.port=et.substr(1)),_e=_e.substr(0,_e.length-et.length)),_e&&(this.hostname=_e)},X.Url,X.format,X.resolve,X.resolveObject,Xa={},rg=!1,ig=lE(),uE=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,X.URL=typeof URL<"u"?URL:null,X.pathToFileURL=SE,X.fileURLToPath=mE,X.Url,X.format,X.resolve,X.resolveObject,X.URL,fE=92,cE=47,hE=97,dE=122,el=uE==="win32",pE=/\//g,gE=/%/g,yE=/\\/g,bE=/\n/g,wE=/\r/g,_E=/\t/g,AE=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,X.URL=typeof URL<"u"?URL:null,X.pathToFileURL=sg,X.fileURLToPath=ng,IE=X.Url,TE=X.format,RE=X.resolve,CE=X.resolveObject,BE=X.parse,PE=X.URL,OE=92,xE=47,kE=97,ME=122,tl=AE==="win32",LE=/\//g,UE=/%/g,NE=/\\/g,qE=/\n/g,DE=/\r/g,jE=/\t/g}),rl={};Qt(rl,{Server:()=>Me,Socket:()=>Me,Stream:()=>Me,_createServerHandle:()=>Me,_normalizeArgs:()=>Me,_setSimultaneousAccepts:()=>Me,connect:()=>Me,createConnection:()=>Me,createServer:()=>Me,default:()=>$E,isIP:()=>Me,isIPv4:()=>Me,isIPv6:()=>Me});function Me(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var $E,il=be$1(()=>{_$2(),v$1(),m$1(),$E={_createServerHandle:Me,_normalizeArgs:Me,_setSimultaneousAccepts:Me,connect:Me,createConnection:Me,createServer:Me,isIP:Me,isIPv4:Me,isIPv6:Me,Server:Me,Socket:Me,Stream:Me}}),nl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et((il(),Z(rl))),st=et(ot()),ct=(0,st.default)("mqttjs:tcp"),ut=(ft,gt)=>{gt.port=gt.port||1883,gt.hostname=gt.hostname||gt.host||"localhost";let{port:xt}=gt,$t=gt.hostname;return ct("port %d and host %s",xt,$t),rt.default.createConnection(xt,$t)};_e.default=ut}),ug={};Qt(ug,{default:()=>GE});var GE,fg=be$1(()=>{_$2(),v$1(),m$1(),GE={}}),ol=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et((fg(),Z(ug))),st=et((il(),Z(rl))),ct=et(ot()),ut=(0,ct.default)("mqttjs:tls"),ft=(gt,xt)=>{xt.port=xt.port||8883,xt.host=xt.hostname||xt.host||"localhost",st.default.isIP(xt.host)===0&&(xt.servername=xt.host),xt.rejectUnauthorized=xt.rejectUnauthorized!==!1,delete xt.path,ut("port %d host %s rejectUnauthorized %b",xt.port,xt.host,xt.rejectUnauthorized);let $t=rt.default.connect(xt);$t.on("secureConnect",()=>{xt.rejectUnauthorized&&!$t.authorized?$t.emit("error",new Error("TLS not authorized")):$t.removeListener("error",_t)});function _t(wt){xt.rejectUnauthorized&>.emit("error",wt),$t.end()}return $t.on("error",_t),$t};_e.default=ft}),ns=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.BufferedDuplex=_e.writev=void 0;var et=Dt();function rt(ct,ut){let ft=new Array(ct.length);for(let gt=0;gt{this.push(gt)})}_read(ct){this.proxy.read(ct)}_write(ct,ut,ft){this.isSocketOpen?this.writeToProxy(ct,ut,ft):this.writeQueue.push({chunk:ct,encoding:ut,cb:ft})}_final(ct){this.writeQueue=[],this.proxy.end(ct)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(ct,ut,ft){this.proxy.write(ct,ut)===!1?this.proxy.once("drain",ft):ft()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:ct,encoding:ut,cb:ft}=this.writeQueue.shift();this.writeToProxy(ct,ut,ft)}}};_e.BufferedDuplex=st}),fl=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(we(),Z(ve)),rt=Dt(),st=ns(),ct,ut,ft;function gt(){let Tt=new rt.Transform;return Tt._write=(Rt,It,At)=>{ct.send({data:Rt.buffer,success(){At()},fail(jt){At(new Error(jt))}})},Tt._flush=Rt=>{ct.close({success(){Rt()}})},Tt}function xt(Tt){Tt.hostname||(Tt.hostname="localhost"),Tt.path||(Tt.path="/"),Tt.wsOptions||(Tt.wsOptions={})}function $t(Tt,Rt){let It=Tt.protocol==="wxs"?"wss":"ws",At=`${It}://${Tt.hostname}${Tt.path}`;return Tt.port&&Tt.port!==80&&Tt.port!==443&&(At=`${It}://${Tt.hostname}:${Tt.port}${Tt.path}`),typeof Tt.transformWsUrl=="function"&&(At=Tt.transformWsUrl(At,Tt,Rt)),At}function _t(){ct.onOpen(()=>{ft.socketReady()}),ct.onMessage(Tt=>{let{data:Rt}=Tt;Rt instanceof ArrayBuffer?Rt=et.Buffer.from(Rt):Rt=et.Buffer.from(Rt,"utf8"),ut.push(Rt)}),ct.onClose(()=>{ft.emit("close"),ft.end(),ft.destroy()}),ct.onError(Tt=>{let Rt=new Error(Tt.errMsg);ft.destroy(Rt)})}var wt=(Tt,Rt)=>{if(Rt.hostname=Rt.hostname||Rt.host,!Rt.hostname)throw new Error("Could not determine host. Specify host manually.");let It=Rt.protocolId==="MQIsdp"&&Rt.protocolVersion===3?"mqttv3.1":"mqtt";xt(Rt);let At=$t(Rt,Tt);ct=wx.connectSocket({url:At,protocols:[It]}),ut=gt(),ft=new st.BufferedDuplex(Rt,ut,ct),ft._destroy=(Nt,kt)=>{ct.close({success(){kt&&kt(Nt)}})};let jt=ft.destroy;return ft.destroy=(Nt,kt)=>(ft.destroy=jt,setTimeout(()=>{ct.close({fail(){ft._destroy(Nt,kt)}})},0),ft),_t(),ft};_e.default=wt}),dl=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(we(),Z(ve)),rt=Dt(),st=ns(),ct,ut,ft,gt=!1;function xt(){let Rt=new rt.Transform;return Rt._write=(It,At,jt)=>{ct.sendSocketMessage({data:It.buffer,success(){jt()},fail(){jt(new Error)}})},Rt._flush=It=>{ct.closeSocket({success(){It()}})},Rt}function $t(Rt){Rt.hostname||(Rt.hostname="localhost"),Rt.path||(Rt.path="/"),Rt.wsOptions||(Rt.wsOptions={})}function _t(Rt,It){let At=Rt.protocol==="alis"?"wss":"ws",jt=`${At}://${Rt.hostname}${Rt.path}`;return Rt.port&&Rt.port!==80&&Rt.port!==443&&(jt=`${At}://${Rt.hostname}:${Rt.port}${Rt.path}`),typeof Rt.transformWsUrl=="function"&&(jt=Rt.transformWsUrl(jt,Rt,It)),jt}function wt(){gt||(gt=!0,ct.onSocketOpen(()=>{ft.socketReady()}),ct.onSocketMessage(Rt=>{if(typeof Rt.data=="string"){let It=et.Buffer.from(Rt.data,"base64");ut.push(It)}else{let It=new FileReader;It.addEventListener("load",()=>{let At=It.result;At instanceof ArrayBuffer?At=et.Buffer.from(At):At=et.Buffer.from(At,"utf8"),ut.push(At)}),It.readAsArrayBuffer(Rt.data)}}),ct.onSocketClose(()=>{ft.end(),ft.destroy()}),ct.onSocketError(Rt=>{ft.destroy(Rt)}))}var Tt=(Rt,It)=>{if(It.hostname=It.hostname||It.host,!It.hostname)throw new Error("Could not determine host. Specify host manually.");let At=It.protocolId==="MQIsdp"&&It.protocolVersion===3?"mqttv3.1":"mqtt";$t(It);let jt=_t(It,Rt);return ct=It.my,ct.connectSocket({url:jt,protocols:At}),ut=xt(),ft=new st.BufferedDuplex(It,ut,ct),wt(),ft};_e.default=Tt}),gg=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),bl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=(we(),Z(ve)),st=et(gg()),ct=et(ot()),ut=Dt(),ft=et(Zn()),gt=ns(),xt=(0,ct.default)("mqttjs:ws"),$t=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function _t(Nt,kt){let Ft=`${Nt.protocol}://${Nt.hostname}:${Nt.port}${Nt.path}`;return typeof Nt.transformWsUrl=="function"&&(Ft=Nt.transformWsUrl(Ft,Nt,kt)),Ft}function wt(Nt){let kt=Nt;return Nt.hostname||(kt.hostname="localhost"),Nt.port||(Nt.protocol==="wss"?kt.port=443:kt.port=80),Nt.path||(kt.path="/"),Nt.wsOptions||(kt.wsOptions={}),!ft.default&&Nt.protocol==="wss"&&$t.forEach(Ft=>{Object.prototype.hasOwnProperty.call(Nt,Ft)&&!Object.prototype.hasOwnProperty.call(Nt.wsOptions,Ft)&&(kt.wsOptions[Ft]=Nt[Ft])}),kt}function Tt(Nt){let kt=wt(Nt);if(kt.hostname||(kt.hostname=kt.host),!kt.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let Ft=new URL(document.URL);kt.hostname=Ft.hostname,kt.port||(kt.port=Number(Ft.port))}return kt.objectMode===void 0&&(kt.objectMode=!(kt.binary===!0||kt.binary===void 0)),kt}function Rt(Nt,kt,Ft){xt("createWebSocket"),xt(`protocol: ${Ft.protocolId} ${Ft.protocolVersion}`);let Ht=Ft.protocolId==="MQIsdp"&&Ft.protocolVersion===3?"mqttv3.1":"mqtt";xt(`creating new Websocket for url: ${kt} and protocol: ${Ht}`);let Wt;return Ft.createWebsocket?Wt=Ft.createWebsocket(kt,[Ht],Ft):Wt=new st.default(kt,[Ht],Ft.wsOptions),Wt}function It(Nt,kt){let Ft=kt.protocolId==="MQIsdp"&&kt.protocolVersion===3?"mqttv3.1":"mqtt",Ht=_t(kt,Nt),Wt;return kt.createWebsocket?Wt=kt.createWebsocket(Ht,[Ft],kt):Wt=new WebSocket(Ht,[Ft]),Wt.binaryType="arraybuffer",Wt}var At=(Nt,kt)=>{xt("streamBuilder");let Ft=wt(kt),Ht=_t(Ft,Nt),Wt=Rt(Nt,Ht,Ft),Vt=st.default.createWebSocketStream(Wt,Ft.wsOptions);return Vt.url=Ht,Wt.on("close",()=>{Vt.destroy()}),Vt},jt=(Nt,kt)=>{xt("browserStreamBuilder");let Ft,Ht=Tt(kt).browserBufferSize||1024*512,Wt=kt.browserBufferTimeout||1e3,Vt=!kt.objectMode,qt=It(Nt,kt),Gt=Zt(kt,pr,hr);kt.objectMode||(Gt._writev=gt.writev.bind(Gt)),Gt.on("close",()=>{qt.close()});let Xt=typeof qt.addEventListener<"u";qt.readyState===qt.OPEN?(Ft=Gt,Ft.socket=qt):(Ft=new gt.BufferedDuplex(kt,Gt,qt),Xt?qt.addEventListener("open",lr):qt.onopen=lr),Xt?(qt.addEventListener("close",er),qt.addEventListener("error",cr),qt.addEventListener("message",ur)):(qt.onclose=er,qt.onerror=cr,qt.onmessage=ur);function Zt(fr,dr,yr){let $r=new ut.Transform({objectMode:fr.objectMode});return $r._write=dr,$r._flush=yr,$r}function lr(){xt("WebSocket onOpen"),Ft instanceof gt.BufferedDuplex&&Ft.socketReady()}function er(fr){xt("WebSocket onClose",fr),Ft.end(),Ft.destroy()}function cr(fr){xt("WebSocket onError",fr);let dr=new Error("WebSocket error");dr.event=fr,Ft.destroy(dr)}function ur(fr){let{data:dr}=fr;dr instanceof ArrayBuffer?dr=rt.Buffer.from(dr):dr=rt.Buffer.from(dr,"utf8"),Gt.push(dr)}function pr(fr,dr,yr){if(qt.bufferedAmount>Ht){setTimeout(pr,Wt,fr,dr,yr);return}Vt&&typeof fr=="string"&&(fr=rt.Buffer.from(fr,"utf8"));try{qt.send(fr)}catch($r){return yr($r)}yr()}function hr(fr){qt.close(),fr()}return Ft};_e.default=ft.default?jt:At}),Eg=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.connectAsync=void 0;var rt=et(ot()),st=et((ag(),Z(og))),ct=et(rs()),ut=et(Zn()),ft=(0,rt.default)("mqttjs"),gt={};ut.default?(gt.wx=fl().default,gt.wxs=fl().default,gt.ali=dl().default,gt.alis=dl().default):(gt.mqtt=nl().default,gt.tcp=nl().default,gt.ssl=ol().default,gt.tls=gt.ssl,gt.mqtts=ol().default),gt.ws=bl().default,gt.wss=bl().default;function xt(wt){let Tt;wt.auth&&(Tt=wt.auth.match(/^(.+):(.+)$/),Tt?(wt.username=Tt[1],wt.password=Tt[2]):wt.username=wt.auth)}function $t(wt,Tt){if(ft("connecting to an MQTT broker..."),typeof wt=="object"&&!Tt&&(Tt=wt,wt=""),Tt=Tt||{},wt&&typeof wt=="string"){let At=st.default.parse(wt,!0);if(At.port!=null&&(At.port=Number(At.port)),Tt=Object.assign(Object.assign({},At),Tt),Tt.protocol===null)throw new Error("Missing protocol");Tt.protocol=Tt.protocol.replace(/:$/,"")}if(xt(Tt),Tt.query&&typeof Tt.query.clientId=="string"&&(Tt.clientId=Tt.query.clientId),Tt.cert&&Tt.key)if(Tt.protocol){if(["mqtts","wss","wxs","alis"].indexOf(Tt.protocol)===-1)switch(Tt.protocol){case"mqtt":Tt.protocol="mqtts";break;case"ws":Tt.protocol="wss";break;case"wx":Tt.protocol="wxs";break;case"ali":Tt.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${Tt.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(!gt[Tt.protocol]){let At=["mqtts","wss"].indexOf(Tt.protocol)!==-1;Tt.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((jt,Nt)=>At&&Nt%2===0?!1:typeof gt[jt]=="function")[0]}if(Tt.clean===!1&&!Tt.clientId)throw new Error("Missing clientId for unclean clients");Tt.protocol&&(Tt.defaultProtocol=Tt.protocol);function Rt(At){return Tt.servers&&((!At._reconnectCount||At._reconnectCount===Tt.servers.length)&&(At._reconnectCount=0),Tt.host=Tt.servers[At._reconnectCount].host,Tt.port=Tt.servers[At._reconnectCount].port,Tt.protocol=Tt.servers[At._reconnectCount].protocol?Tt.servers[At._reconnectCount].protocol:Tt.defaultProtocol,Tt.hostname=Tt.host,At._reconnectCount++),ft("calling streambuilder for",Tt.protocol),gt[Tt.protocol](At,Tt)}let It=new ct.default(Rt,Tt);return It.on("error",()=>{}),It}function _t(wt,Tt,Rt=!0){return new Promise((It,At)=>{let jt=$t(wt,Tt),Nt={connect:Ft=>{kt(),It(jt)},end:()=>{kt(),It(jt)},error:Ft=>{kt(),jt.end(),At(Ft)}};Rt===!1&&(Nt.close=()=>{Nt.error(new Error("Couldn't connect to server"))});function kt(){Object.keys(Nt).forEach(Ft=>{jt.off(Ft,Nt[Ft])})}Object.keys(Nt).forEach(Ft=>{jt.on(Ft,Nt[Ft])})})}_e.connectAsync=_t,_e.default=$t}),wl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(Tt,Rt,It,At){At===void 0&&(At=It);var jt=Object.getOwnPropertyDescriptor(Rt,It);(!jt||("get"in jt?!Rt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Rt[It]}}),Object.defineProperty(Tt,At,jt)}:function(Tt,Rt,It,At){At===void 0&&(At=It),Tt[At]=Rt[It]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(Tt,Rt){Object.defineProperty(Tt,"default",{enumerable:!0,value:Rt})}:function(Tt,Rt){Tt.default=Rt}),st=_e&&_e.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var Rt={};if(Tt!=null)for(var It in Tt)It!=="default"&&Object.prototype.hasOwnProperty.call(Tt,It)&&et(Rt,Tt,It);return rt(Rt,Tt),Rt},ct=_e&&_e.__exportStar||function(Tt,Rt){for(var It in Tt)It!=="default"&&!Object.prototype.hasOwnProperty.call(Rt,It)&&et(Rt,Tt,It)},ut=_e&&_e.__importDefault||function(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReasonCodes=_e.UniqueMessageIdProvider=_e.DefaultMessageIdProvider=_e.Store=_e.MqttClient=_e.connectAsync=_e.connect=_e.Client=void 0;var ft=ut(rs());_e.MqttClient=ft.default;var gt=ut(Qo());_e.DefaultMessageIdProvider=gt.default;var xt=ut(Up());_e.UniqueMessageIdProvider=xt.default;var $t=ut(Xo());_e.Store=$t.default;var _t=st(Eg());_e.connect=_t.default,Object.defineProperty(_e,"connectAsync",{enumerable:!0,get:function(){return _t.connectAsync}}),_e.Client=ft.default,ct(rs(),_e),ct(Yr(),_e);var wt=Si();Object.defineProperty(_e,"ReasonCodes",{enumerable:!0,get:function(){return wt.ReasonCodes}})}),DS=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(ft,gt,xt,$t){$t===void 0&&($t=xt);var _t=Object.getOwnPropertyDescriptor(gt,xt);(!_t||("get"in _t?!gt.__esModule:_t.writable||_t.configurable))&&(_t={enumerable:!0,get:function(){return gt[xt]}}),Object.defineProperty(ft,$t,_t)}:function(ft,gt,xt,$t){$t===void 0&&($t=xt),ft[$t]=gt[xt]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(ft,gt){Object.defineProperty(ft,"default",{enumerable:!0,value:gt})}:function(ft,gt){ft.default=gt}),st=_e&&_e.__importStar||function(ft){if(ft&&ft.__esModule)return ft;var gt={};if(ft!=null)for(var xt in ft)xt!=="default"&&Object.prototype.hasOwnProperty.call(ft,xt)&&et(gt,ft,xt);return rt(gt,ft),gt},ct=_e&&_e.__exportStar||function(ft,gt){for(var xt in ft)xt!=="default"&&!Object.prototype.hasOwnProperty.call(gt,xt)&&et(gt,ft,xt)};Object.defineProperty(_e,"__esModule",{value:!0});var ut=st(wl());_e.default=ut,ct(wl(),_e)});const mqtt=DS();/*! Bundled license information: +`," "]),Za=["'"].concat(sE),Zp=["%","/","?",";","#"].concat(Za),eg=["/","?","#"],tg=/^[+a-z0-9A-Z_-]{0,63}$/,oE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,aE={javascript:!0,"javascript:":!0},Ya={javascript:!0,"javascript:":!0},ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ja=dt,Fe$1.prototype.parse=function(_e,et,rt){if(!pt$1.isString(_e))throw new TypeError("Parameter 'url' must be a string, not "+typeof _e);var st=_e.indexOf("?"),ct=st!==-1&&st<_e.indexOf("#")?"?":"#",ut=_e.split(ct);ut[0]=ut[0].replace(/\\/g,"/");var ft=_e=ut.join(ct);if(ft=ft.trim(),!rt&&_e.split("#").length===1){var gt=nE.exec(ft);if(gt)return this.path=ft,this.href=ft,this.pathname=gt[1],gt[2]?(this.search=gt[2],this.query=et?Ja.parse(this.search.substr(1)):this.search.substr(1)):et&&(this.search="",this.query={}),this}var xt=rE.exec(ft);if(xt){var $t=(xt=xt[0]).toLowerCase();this.protocol=$t,ft=ft.substr(xt.length)}if(rt||xt||ft.match(/^\/\/[^@\/]+@[^@\/]+/)){var _t=ft.substr(0,2)==="//";!_t||xt&&Ya[xt]||(ft=ft.substr(2),this.slashes=!0)}if(!Ya[xt]&&(_t||xt&&!ni[xt])){for(var wt,Tt,Rt=-1,It=0;It127?Ht+="x":Ht+=Ft[Wt];if(!Ht.match(tg)){var qt=Nt.slice(0,It),Xt=Nt.slice(It+1),Gt=Ft.match(oE);Gt&&(qt.push(Gt[1]),Xt.unshift(Gt[2])),Xt.length&&(ft="/"+Xt.join(".")+ft),this.hostname=qt.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),jt||(this.hostname=tE.toASCII(this.hostname));var Zt=this.port?":"+this.port:"",er=this.hostname||"";this.host=er+Zt,this.href+=this.host,jt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ft[0]!=="/"&&(ft="/"+ft))}if(!aE[$t])for(It=0,kt=Za.length;It0)&&rt.host.split("@"))&&(rt.auth=Gt.shift(),rt.host=rt.hostname=Gt.shift())),rt.search=_e.search,rt.query=_e.query,pt$1.isNull(rt.pathname)&&pt$1.isNull(rt.search)||(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.href=rt.format(),rt;if(!Ft.length)return rt.pathname=null,rt.search?rt.path="/"+rt.search:rt.path=null,rt.href=rt.format(),rt;for(var Wt=Ft.slice(-1)[0],Vt=(rt.host||_e.host||Ft.length>1)&&(Wt==="."||Wt==="..")||Wt==="",qt=0,Xt=Ft.length;Xt>=0;Xt--)(Wt=Ft[Xt])==="."?Ft.splice(Xt,1):Wt===".."?(Ft.splice(Xt,1),qt++):qt&&(Ft.splice(Xt,1),qt--);if(!Nt&&!kt)for(;qt--;qt)Ft.unshift("..");!Nt||Ft[0]===""||Ft[0]&&Ft[0].charAt(0)==="/"||Ft.unshift(""),Vt&&Ft.join("/").substr(-1)!=="/"&&Ft.push("");var Gt,Zt=Ft[0]===""||Ft[0]&&Ft[0].charAt(0)==="/";return Ht&&(rt.hostname=rt.host=Zt?"":Ft.length?Ft.shift():"",(Gt=!!(rt.host&&rt.host.indexOf("@")>0)&&rt.host.split("@"))&&(rt.auth=Gt.shift(),rt.host=rt.hostname=Gt.shift())),(Nt=Nt||rt.host&&Ft.length)&&!Zt&&Ft.unshift(""),Ft.length?rt.pathname=Ft.join("/"):(rt.pathname=null,rt.path=null),pt$1.isNull(rt.pathname)&&pt$1.isNull(rt.search)||(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.auth=_e.auth||rt.auth,rt.slashes=rt.slashes||_e.slashes,rt.href=rt.format(),rt},Fe$1.prototype.parseHost=function(){var _e=this.host,et=iE.exec(_e);et&&((et=et[0])!==":"&&(this.port=et.substr(1)),_e=_e.substr(0,_e.length-et.length)),_e&&(this.hostname=_e)},X.Url,X.format,X.resolve,X.resolveObject,Xa={},rg=!1,ig=lE(),uE=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,X.URL=typeof URL<"u"?URL:null,X.pathToFileURL=SE,X.fileURLToPath=mE,X.Url,X.format,X.resolve,X.resolveObject,X.URL,fE=92,cE=47,hE=97,dE=122,el=uE==="win32",pE=/\//g,gE=/%/g,yE=/\\/g,bE=/\n/g,wE=/\r/g,_E=/\t/g,AE=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,X.URL=typeof URL<"u"?URL:null,X.pathToFileURL=sg,X.fileURLToPath=ng,IE=X.Url,TE=X.format,RE=X.resolve,CE=X.resolveObject,BE=X.parse,PE=X.URL,OE=92,xE=47,kE=97,ME=122,tl=AE==="win32",LE=/\//g,UE=/%/g,NE=/\\/g,qE=/\n/g,DE=/\r/g,jE=/\t/g}),rl={};Qt(rl,{Server:()=>Me,Socket:()=>Me,Stream:()=>Me,_createServerHandle:()=>Me,_normalizeArgs:()=>Me,_setSimultaneousAccepts:()=>Me,connect:()=>Me,createConnection:()=>Me,createServer:()=>Me,default:()=>$E,isIP:()=>Me,isIPv4:()=>Me,isIPv6:()=>Me});function Me(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var $E,il=be$1(()=>{_$2(),v$1(),m$1(),$E={_createServerHandle:Me,_normalizeArgs:Me,_setSimultaneousAccepts:Me,connect:Me,createConnection:Me,createServer:Me,isIP:Me,isIPv4:Me,isIPv6:Me,Server:Me,Socket:Me,Stream:Me}}),nl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et((il(),Z(rl))),st=et(ot()),ct=(0,st.default)("mqttjs:tcp"),ut=(ft,gt)=>{gt.port=gt.port||1883,gt.hostname=gt.hostname||gt.host||"localhost";let{port:xt}=gt,$t=gt.hostname;return ct("port %d and host %s",xt,$t),rt.default.createConnection(xt,$t)};_e.default=ut}),ug={};Qt(ug,{default:()=>GE});var GE,fg=be$1(()=>{_$2(),v$1(),m$1(),GE={}}),ol=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=et((fg(),Z(ug))),st=et((il(),Z(rl))),ct=et(ot()),ut=(0,ct.default)("mqttjs:tls"),ft=(gt,xt)=>{xt.port=xt.port||8883,xt.host=xt.hostname||xt.host||"localhost",st.default.isIP(xt.host)===0&&(xt.servername=xt.host),xt.rejectUnauthorized=xt.rejectUnauthorized!==!1,delete xt.path,ut("port %d host %s rejectUnauthorized %b",xt.port,xt.host,xt.rejectUnauthorized);let $t=rt.default.connect(xt);$t.on("secureConnect",()=>{xt.rejectUnauthorized&&!$t.authorized?$t.emit("error",new Error("TLS not authorized")):$t.removeListener("error",_t)});function _t(wt){xt.rejectUnauthorized&>.emit("error",wt),$t.end()}return $t.on("error",_t),$t};_e.default=ft}),ns=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0}),_e.BufferedDuplex=_e.writev=void 0;var et=Dt();function rt(ct,ut){let ft=new Array(ct.length);for(let gt=0;gt{this.push(gt)})}_read(ct){this.proxy.read(ct)}_write(ct,ut,ft){this.isSocketOpen?this.writeToProxy(ct,ut,ft):this.writeQueue.push({chunk:ct,encoding:ut,cb:ft})}_final(ct){this.writeQueue=[],this.proxy.end(ct)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(ct,ut,ft){this.proxy.write(ct,ut)===!1?this.proxy.once("drain",ft):ft()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:ct,encoding:ut,cb:ft}=this.writeQueue.shift();this.writeToProxy(ct,ut,ft)}}};_e.BufferedDuplex=st}),fl=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(we(),Z(ve)),rt=Dt(),st=ns(),ct,ut,ft;function gt(){let Tt=new rt.Transform;return Tt._write=(Rt,It,At)=>{ct.send({data:Rt.buffer,success(){At()},fail(jt){At(new Error(jt))}})},Tt._flush=Rt=>{ct.close({success(){Rt()}})},Tt}function xt(Tt){Tt.hostname||(Tt.hostname="localhost"),Tt.path||(Tt.path="/"),Tt.wsOptions||(Tt.wsOptions={})}function $t(Tt,Rt){let It=Tt.protocol==="wxs"?"wss":"ws",At=`${It}://${Tt.hostname}${Tt.path}`;return Tt.port&&Tt.port!==80&&Tt.port!==443&&(At=`${It}://${Tt.hostname}:${Tt.port}${Tt.path}`),typeof Tt.transformWsUrl=="function"&&(At=Tt.transformWsUrl(At,Tt,Rt)),At}function _t(){ct.onOpen(()=>{ft.socketReady()}),ct.onMessage(Tt=>{let{data:Rt}=Tt;Rt instanceof ArrayBuffer?Rt=et.Buffer.from(Rt):Rt=et.Buffer.from(Rt,"utf8"),ut.push(Rt)}),ct.onClose(()=>{ft.emit("close"),ft.end(),ft.destroy()}),ct.onError(Tt=>{let Rt=new Error(Tt.errMsg);ft.destroy(Rt)})}var wt=(Tt,Rt)=>{if(Rt.hostname=Rt.hostname||Rt.host,!Rt.hostname)throw new Error("Could not determine host. Specify host manually.");let It=Rt.protocolId==="MQIsdp"&&Rt.protocolVersion===3?"mqttv3.1":"mqtt";xt(Rt);let At=$t(Rt,Tt);ct=wx.connectSocket({url:At,protocols:[It]}),ut=gt(),ft=new st.BufferedDuplex(Rt,ut,ct),ft._destroy=(Nt,kt)=>{ct.close({success(){kt&&kt(Nt)}})};let jt=ft.destroy;return ft.destroy=(Nt,kt)=>(ft.destroy=jt,setTimeout(()=>{ct.close({fail(){ft._destroy(Nt,kt)}})},0),ft),_t(),ft};_e.default=wt}),dl=M$1(_e=>{_$2(),v$1(),m$1(),Object.defineProperty(_e,"__esModule",{value:!0});var et=(we(),Z(ve)),rt=Dt(),st=ns(),ct,ut,ft,gt=!1;function xt(){let Rt=new rt.Transform;return Rt._write=(It,At,jt)=>{ct.sendSocketMessage({data:It.buffer,success(){jt()},fail(){jt(new Error)}})},Rt._flush=It=>{ct.closeSocket({success(){It()}})},Rt}function $t(Rt){Rt.hostname||(Rt.hostname="localhost"),Rt.path||(Rt.path="/"),Rt.wsOptions||(Rt.wsOptions={})}function _t(Rt,It){let At=Rt.protocol==="alis"?"wss":"ws",jt=`${At}://${Rt.hostname}${Rt.path}`;return Rt.port&&Rt.port!==80&&Rt.port!==443&&(jt=`${At}://${Rt.hostname}:${Rt.port}${Rt.path}`),typeof Rt.transformWsUrl=="function"&&(jt=Rt.transformWsUrl(jt,Rt,It)),jt}function wt(){gt||(gt=!0,ct.onSocketOpen(()=>{ft.socketReady()}),ct.onSocketMessage(Rt=>{if(typeof Rt.data=="string"){let It=et.Buffer.from(Rt.data,"base64");ut.push(It)}else{let It=new FileReader;It.addEventListener("load",()=>{let At=It.result;At instanceof ArrayBuffer?At=et.Buffer.from(At):At=et.Buffer.from(At,"utf8"),ut.push(At)}),It.readAsArrayBuffer(Rt.data)}}),ct.onSocketClose(()=>{ft.end(),ft.destroy()}),ct.onSocketError(Rt=>{ft.destroy(Rt)}))}var Tt=(Rt,It)=>{if(It.hostname=It.hostname||It.host,!It.hostname)throw new Error("Could not determine host. Specify host manually.");let At=It.protocolId==="MQIsdp"&&It.protocolVersion===3?"mqttv3.1":"mqtt";$t(It);let jt=_t(It,Rt);return ct=It.my,ct.connectSocket({url:jt,protocols:At}),ut=xt(),ft=new st.BufferedDuplex(It,ut,ct),wt(),ft};_e.default=Tt}),gg=M$1((_e,et)=>{_$2(),v$1(),m$1(),et.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),bl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}};Object.defineProperty(_e,"__esModule",{value:!0});var rt=(we(),Z(ve)),st=et(gg()),ct=et(ot()),ut=Dt(),ft=et(Zn()),gt=ns(),xt=(0,ct.default)("mqttjs:ws"),$t=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function _t(Nt,kt){let Ft=`${Nt.protocol}://${Nt.hostname}:${Nt.port}${Nt.path}`;return typeof Nt.transformWsUrl=="function"&&(Ft=Nt.transformWsUrl(Ft,Nt,kt)),Ft}function wt(Nt){let kt=Nt;return Nt.hostname||(kt.hostname="localhost"),Nt.port||(Nt.protocol==="wss"?kt.port=443:kt.port=80),Nt.path||(kt.path="/"),Nt.wsOptions||(kt.wsOptions={}),!ft.default&&Nt.protocol==="wss"&&$t.forEach(Ft=>{Object.prototype.hasOwnProperty.call(Nt,Ft)&&!Object.prototype.hasOwnProperty.call(Nt.wsOptions,Ft)&&(kt.wsOptions[Ft]=Nt[Ft])}),kt}function Tt(Nt){let kt=wt(Nt);if(kt.hostname||(kt.hostname=kt.host),!kt.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let Ft=new URL(document.URL);kt.hostname=Ft.hostname,kt.port||(kt.port=Number(Ft.port))}return kt.objectMode===void 0&&(kt.objectMode=!(kt.binary===!0||kt.binary===void 0)),kt}function Rt(Nt,kt,Ft){xt("createWebSocket"),xt(`protocol: ${Ft.protocolId} ${Ft.protocolVersion}`);let Ht=Ft.protocolId==="MQIsdp"&&Ft.protocolVersion===3?"mqttv3.1":"mqtt";xt(`creating new Websocket for url: ${kt} and protocol: ${Ht}`);let Wt;return Ft.createWebsocket?Wt=Ft.createWebsocket(kt,[Ht],Ft):Wt=new st.default(kt,[Ht],Ft.wsOptions),Wt}function It(Nt,kt){let Ft=kt.protocolId==="MQIsdp"&&kt.protocolVersion===3?"mqttv3.1":"mqtt",Ht=_t(kt,Nt),Wt;return kt.createWebsocket?Wt=kt.createWebsocket(Ht,[Ft],kt):Wt=new WebSocket(Ht,[Ft]),Wt.binaryType="arraybuffer",Wt}var At=(Nt,kt)=>{xt("streamBuilder");let Ft=wt(kt),Ht=_t(Ft,Nt),Wt=Rt(Nt,Ht,Ft),Vt=st.default.createWebSocketStream(Wt,Ft.wsOptions);return Vt.url=Ht,Wt.on("close",()=>{Vt.destroy()}),Vt},jt=(Nt,kt)=>{xt("browserStreamBuilder");let Ft,Ht=Tt(kt).browserBufferSize||1024*512,Wt=kt.browserBufferTimeout||1e3,Vt=!kt.objectMode,qt=It(Nt,kt),Xt=Zt(kt,fr,hr);kt.objectMode||(Xt._writev=gt.writev.bind(Xt)),Xt.on("close",()=>{qt.close()});let Gt=typeof qt.addEventListener<"u";qt.readyState===qt.OPEN?(Ft=Xt,Ft.socket=qt):(Ft=new gt.BufferedDuplex(kt,Xt,qt),Gt?qt.addEventListener("open",er):qt.onopen=er),Gt?(qt.addEventListener("close",lr),qt.addEventListener("error",cr),qt.addEventListener("message",ur)):(qt.onclose=lr,qt.onerror=cr,qt.onmessage=ur);function Zt(pr,dr,yr){let Sr=new ut.Transform({objectMode:pr.objectMode});return Sr._write=dr,Sr._flush=yr,Sr}function er(){xt("WebSocket onOpen"),Ft instanceof gt.BufferedDuplex&&Ft.socketReady()}function lr(pr){xt("WebSocket onClose",pr),Ft.end(),Ft.destroy()}function cr(pr){xt("WebSocket onError",pr);let dr=new Error("WebSocket error");dr.event=pr,Ft.destroy(dr)}function ur(pr){let{data:dr}=pr;dr instanceof ArrayBuffer?dr=rt.Buffer.from(dr):dr=rt.Buffer.from(dr,"utf8"),Xt.push(dr)}function fr(pr,dr,yr){if(qt.bufferedAmount>Ht){setTimeout(fr,Wt,pr,dr,yr);return}Vt&&typeof pr=="string"&&(pr=rt.Buffer.from(pr,"utf8"));try{qt.send(pr)}catch(Sr){return yr(Sr)}yr()}function hr(pr){qt.close(),pr()}return Ft};_e.default=ft.default?jt:At}),Eg=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.connectAsync=void 0;var rt=et(ot()),st=et((ag(),Z(og))),ct=et(rs()),ut=et(Zn()),ft=(0,rt.default)("mqttjs"),gt={};ut.default?(gt.wx=fl().default,gt.wxs=fl().default,gt.ali=dl().default,gt.alis=dl().default):(gt.mqtt=nl().default,gt.tcp=nl().default,gt.ssl=ol().default,gt.tls=gt.ssl,gt.mqtts=ol().default),gt.ws=bl().default,gt.wss=bl().default;function xt(wt){let Tt;wt.auth&&(Tt=wt.auth.match(/^(.+):(.+)$/),Tt?(wt.username=Tt[1],wt.password=Tt[2]):wt.username=wt.auth)}function $t(wt,Tt){if(ft("connecting to an MQTT broker..."),typeof wt=="object"&&!Tt&&(Tt=wt,wt=""),Tt=Tt||{},wt&&typeof wt=="string"){let At=st.default.parse(wt,!0);if(At.port!=null&&(At.port=Number(At.port)),Tt=Object.assign(Object.assign({},At),Tt),Tt.protocol===null)throw new Error("Missing protocol");Tt.protocol=Tt.protocol.replace(/:$/,"")}if(xt(Tt),Tt.query&&typeof Tt.query.clientId=="string"&&(Tt.clientId=Tt.query.clientId),Tt.cert&&Tt.key)if(Tt.protocol){if(["mqtts","wss","wxs","alis"].indexOf(Tt.protocol)===-1)switch(Tt.protocol){case"mqtt":Tt.protocol="mqtts";break;case"ws":Tt.protocol="wss";break;case"wx":Tt.protocol="wxs";break;case"ali":Tt.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${Tt.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(!gt[Tt.protocol]){let At=["mqtts","wss"].indexOf(Tt.protocol)!==-1;Tt.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((jt,Nt)=>At&&Nt%2===0?!1:typeof gt[jt]=="function")[0]}if(Tt.clean===!1&&!Tt.clientId)throw new Error("Missing clientId for unclean clients");Tt.protocol&&(Tt.defaultProtocol=Tt.protocol);function Rt(At){return Tt.servers&&((!At._reconnectCount||At._reconnectCount===Tt.servers.length)&&(At._reconnectCount=0),Tt.host=Tt.servers[At._reconnectCount].host,Tt.port=Tt.servers[At._reconnectCount].port,Tt.protocol=Tt.servers[At._reconnectCount].protocol?Tt.servers[At._reconnectCount].protocol:Tt.defaultProtocol,Tt.hostname=Tt.host,At._reconnectCount++),ft("calling streambuilder for",Tt.protocol),gt[Tt.protocol](At,Tt)}let It=new ct.default(Rt,Tt);return It.on("error",()=>{}),It}function _t(wt,Tt,Rt=!0){return new Promise((It,At)=>{let jt=$t(wt,Tt),Nt={connect:Ft=>{kt(),It(jt)},end:()=>{kt(),It(jt)},error:Ft=>{kt(),jt.end(),At(Ft)}};Rt===!1&&(Nt.close=()=>{Nt.error(new Error("Couldn't connect to server"))});function kt(){Object.keys(Nt).forEach(Ft=>{jt.off(Ft,Nt[Ft])})}Object.keys(Nt).forEach(Ft=>{jt.on(Ft,Nt[Ft])})})}_e.connectAsync=_t,_e.default=$t}),wl=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(Tt,Rt,It,At){At===void 0&&(At=It);var jt=Object.getOwnPropertyDescriptor(Rt,It);(!jt||("get"in jt?!Rt.__esModule:jt.writable||jt.configurable))&&(jt={enumerable:!0,get:function(){return Rt[It]}}),Object.defineProperty(Tt,At,jt)}:function(Tt,Rt,It,At){At===void 0&&(At=It),Tt[At]=Rt[It]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(Tt,Rt){Object.defineProperty(Tt,"default",{enumerable:!0,value:Rt})}:function(Tt,Rt){Tt.default=Rt}),st=_e&&_e.__importStar||function(Tt){if(Tt&&Tt.__esModule)return Tt;var Rt={};if(Tt!=null)for(var It in Tt)It!=="default"&&Object.prototype.hasOwnProperty.call(Tt,It)&&et(Rt,Tt,It);return rt(Rt,Tt),Rt},ct=_e&&_e.__exportStar||function(Tt,Rt){for(var It in Tt)It!=="default"&&!Object.prototype.hasOwnProperty.call(Rt,It)&&et(Rt,Tt,It)},ut=_e&&_e.__importDefault||function(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReasonCodes=_e.UniqueMessageIdProvider=_e.DefaultMessageIdProvider=_e.Store=_e.MqttClient=_e.connectAsync=_e.connect=_e.Client=void 0;var ft=ut(rs());_e.MqttClient=ft.default;var gt=ut(Qo());_e.DefaultMessageIdProvider=gt.default;var xt=ut(Up());_e.UniqueMessageIdProvider=xt.default;var $t=ut(Xo());_e.Store=$t.default;var _t=st(Eg());_e.connect=_t.default,Object.defineProperty(_e,"connectAsync",{enumerable:!0,get:function(){return _t.connectAsync}}),_e.Client=ft.default,ct(rs(),_e),ct(Yr(),_e);var wt=Si();Object.defineProperty(_e,"ReasonCodes",{enumerable:!0,get:function(){return wt.ReasonCodes}})}),DS=M$1(_e=>{_$2(),v$1(),m$1();var et=_e&&_e.__createBinding||(Object.create?function(ft,gt,xt,$t){$t===void 0&&($t=xt);var _t=Object.getOwnPropertyDescriptor(gt,xt);(!_t||("get"in _t?!gt.__esModule:_t.writable||_t.configurable))&&(_t={enumerable:!0,get:function(){return gt[xt]}}),Object.defineProperty(ft,$t,_t)}:function(ft,gt,xt,$t){$t===void 0&&($t=xt),ft[$t]=gt[xt]}),rt=_e&&_e.__setModuleDefault||(Object.create?function(ft,gt){Object.defineProperty(ft,"default",{enumerable:!0,value:gt})}:function(ft,gt){ft.default=gt}),st=_e&&_e.__importStar||function(ft){if(ft&&ft.__esModule)return ft;var gt={};if(ft!=null)for(var xt in ft)xt!=="default"&&Object.prototype.hasOwnProperty.call(ft,xt)&&et(gt,ft,xt);return rt(gt,ft),gt},ct=_e&&_e.__exportStar||function(ft,gt){for(var xt in ft)xt!=="default"&&!Object.prototype.hasOwnProperty.call(gt,xt)&&et(gt,ft,xt)};Object.defineProperty(_e,"__esModule",{value:!0});var ut=st(wl());_e.default=ut,ct(wl(),_e)});const mqtt=DS();/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) @@ -818,19 +833,19 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(_e){hookCallback=_e}function isArray(_e){return _e instanceof Array||Object.prototype.toString.call(_e)==="[object Array]"}function isObject$1(_e){return _e!=null&&Object.prototype.toString.call(_e)==="[object Object]"}function hasOwnProp(_e,et){return Object.prototype.hasOwnProperty.call(_e,et)}function isObjectEmpty(_e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(_e).length===0;var et;for(et in _e)if(hasOwnProp(_e,et))return!1;return!0}function isUndefined(_e){return _e===void 0}function isNumber(_e){return typeof _e=="number"||Object.prototype.toString.call(_e)==="[object Number]"}function isDate(_e){return _e instanceof Date||Object.prototype.toString.call(_e)==="[object Date]"}function map(_e,et){var rt=[],st,ct=_e.length;for(st=0;st>>0,st;for(st=0;st0)for(rt=0;rt>>0,st;for(st=0;st0)for(rt=0;rt=0;return(ut?rt?"+":"":"-")+Math.pow(10,Math.max(0,ct)).toString().substr(1)+st}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(_e,et,rt,st){var ct=st;typeof st=="string"&&(ct=function(){return this[st]()}),_e&&(formatTokenFunctions[_e]=ct),et&&(formatTokenFunctions[et[0]]=function(){return zeroFill(ct.apply(this,arguments),et[1],et[2])}),rt&&(formatTokenFunctions[rt]=function(){return this.localeData().ordinal(ct.apply(this,arguments),_e)})}function removeFormattingTokens(_e){return _e.match(/\[[\s\S]/)?_e.replace(/^\[|\]$/g,""):_e.replace(/\\/g,"")}function makeFormatFunction(_e){var et=_e.match(formattingTokens),rt,st;for(rt=0,st=et.length;rt=0&&localFormattingTokens.test(_e);)_e=_e.replace(localFormattingTokens,st),localFormattingTokens.lastIndex=0,rt-=1;return _e}var defaultLongDateFormat={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 longDateFormat(_e){var et=this._longDateFormat[_e],rt=this._longDateFormat[_e.toUpperCase()];return et||!rt?et:(this._longDateFormat[_e]=rt.match(formattingTokens).map(function(st){return st==="MMMM"||st==="MM"||st==="DD"||st==="dddd"?st.slice(1):st}).join(""),this._longDateFormat[_e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(_e){return this._ordinal.replace("%d",_e)}var defaultRelativeTime={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 relativeTime(_e,et,rt,st){var ct=this._relativeTime[rt];return isFunction(ct)?ct(_e,et,rt,st):ct.replace(/%d/i,_e)}function pastFuture(_e,et){var rt=this._relativeTime[_e>0?"future":"past"];return isFunction(rt)?rt(et):rt.replace(/%s/i,et)}var aliases={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 normalizeUnits(_e){return typeof _e=="string"?aliases[_e]||aliases[_e.toLowerCase()]:void 0}function normalizeObjectUnits(_e){var et={},rt,st;for(st in _e)hasOwnProp(_e,st)&&(rt=normalizeUnits(st),rt&&(et[rt]=_e[st]));return et}var priorities={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 getPrioritizedUnits(_e){var et=[],rt;for(rt in _e)hasOwnProp(_e,rt)&&et.push({unit:rt,priority:priorities[rt]});return et.sort(function(st,ct){return st.priority-ct.priority}),et}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[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,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(_e,et,rt){regexes[_e]=isFunction(et)?et:function(st,ct){return st&&rt?rt:et}}function getParseRegexForToken(_e,et){return hasOwnProp(regexes,_e)?regexes[_e](et._strict,et._locale):new RegExp(unescapeFormat(_e))}function unescapeFormat(_e){return regexEscape(_e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,rt,st,ct,ut){return rt||st||ct||ut}))}function regexEscape(_e){return _e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)}function toInt(_e){var et=+_e,rt=0;return et!==0&&isFinite(et)&&(rt=absFloor(et)),rt}var tokens={};function addParseToken(_e,et){var rt,st=et,ct;for(typeof _e=="string"&&(_e=[_e]),isNumber(et)&&(st=function(ut,ft){ft[et]=toInt(ut)}),ct=_e.length,rt=0;rt68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(_e,et){return function(rt){return rt!=null?(set$1$1(this,_e,rt),hooks.updateOffset(this,et),this):get$1(this,_e)}}function get$1(_e,et){if(!_e.isValid())return NaN;var rt=_e._d,st=_e._isUTC;switch(et){case"Milliseconds":return st?rt.getUTCMilliseconds():rt.getMilliseconds();case"Seconds":return st?rt.getUTCSeconds():rt.getSeconds();case"Minutes":return st?rt.getUTCMinutes():rt.getMinutes();case"Hours":return st?rt.getUTCHours():rt.getHours();case"Date":return st?rt.getUTCDate():rt.getDate();case"Day":return st?rt.getUTCDay():rt.getDay();case"Month":return st?rt.getUTCMonth():rt.getMonth();case"FullYear":return st?rt.getUTCFullYear():rt.getFullYear();default:return NaN}}function set$1$1(_e,et,rt){var st,ct,ut,ft,gt;if(!(!_e.isValid()||isNaN(rt))){switch(st=_e._d,ct=_e._isUTC,et){case"Milliseconds":return void(ct?st.setUTCMilliseconds(rt):st.setMilliseconds(rt));case"Seconds":return void(ct?st.setUTCSeconds(rt):st.setSeconds(rt));case"Minutes":return void(ct?st.setUTCMinutes(rt):st.setMinutes(rt));case"Hours":return void(ct?st.setUTCHours(rt):st.setHours(rt));case"Date":return void(ct?st.setUTCDate(rt):st.setDate(rt));case"FullYear":break;default:return}ut=rt,ft=_e.month(),gt=_e.date(),gt=gt===29&&ft===1&&!isLeapYear(ut)?28:gt,ct?st.setUTCFullYear(ut,ft,gt):st.setFullYear(ut,ft,gt)}}function stringGet(_e){return _e=normalizeUnits(_e),isFunction(this[_e])?this[_e]():this}function stringSet(_e,et){if(typeof _e=="object"){_e=normalizeObjectUnits(_e);var rt=getPrioritizedUnits(_e),st,ct=rt.length;for(st=0;st=0?(gt=new Date(_e+400,et,rt,st,ct,ut,ft),isFinite(gt.getFullYear())&>.setFullYear(_e)):gt=new Date(_e,et,rt,st,ct,ut,ft),gt}function createUTCDate(_e){var et,rt;return _e<100&&_e>=0?(rt=Array.prototype.slice.call(arguments),rt[0]=_e+400,et=new Date(Date.UTC.apply(null,rt)),isFinite(et.getUTCFullYear())&&et.setUTCFullYear(_e)):et=new Date(Date.UTC.apply(null,arguments)),et}function firstWeekOffset(_e,et,rt){var st=7+et-rt,ct=(7+createUTCDate(_e,0,st).getUTCDay()-et)%7;return-ct+st-1}function dayOfYearFromWeeks(_e,et,rt,st,ct){var ut=(7+rt-st)%7,ft=firstWeekOffset(_e,st,ct),gt=1+7*(et-1)+ut+ft,xt,$t;return gt<=0?(xt=_e-1,$t=daysInYear(xt)+gt):gt>daysInYear(_e)?(xt=_e+1,$t=gt-daysInYear(_e)):(xt=_e,$t=gt),{year:xt,dayOfYear:$t}}function weekOfYear(_e,et,rt){var st=firstWeekOffset(_e.year(),et,rt),ct=Math.floor((_e.dayOfYear()-st-1)/7)+1,ut,ft;return ct<1?(ft=_e.year()-1,ut=ct+weeksInYear(ft,et,rt)):ct>weeksInYear(_e.year(),et,rt)?(ut=ct-weeksInYear(_e.year(),et,rt),ft=_e.year()+1):(ft=_e.year(),ut=ct),{week:ut,year:ft}}function weeksInYear(_e,et,rt){var st=firstWeekOffset(_e,et,rt),ct=firstWeekOffset(_e+1,et,rt);return(daysInYear(_e)-st+ct)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(_e,et,rt,st){et[st.substr(0,1)]=toInt(_e)});function localeWeek(_e){return weekOfYear(_e,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(_e){var et=this.localeData().week(this);return _e==null?et:this.add((_e-et)*7,"d")}function getSetISOWeek(_e){var et=weekOfYear(this,1,4).week;return _e==null?et:this.add((_e-et)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(_e){return this.localeData().weekdaysMin(this,_e)});addFormatToken("ddd",0,0,function(_e){return this.localeData().weekdaysShort(this,_e)});addFormatToken("dddd",0,0,function(_e){return this.localeData().weekdays(this,_e)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(_e,et){return et.weekdaysMinRegex(_e)});addRegexToken("ddd",function(_e,et){return et.weekdaysShortRegex(_e)});addRegexToken("dddd",function(_e,et){return et.weekdaysRegex(_e)});addWeekParseToken(["dd","ddd","dddd"],function(_e,et,rt,st){var ct=rt._locale.weekdaysParse(_e,st,rt._strict);ct!=null?et.d=ct:getParsingFlags(rt).invalidWeekday=_e});addWeekParseToken(["d","e","E"],function(_e,et,rt,st){et[st]=toInt(_e)});function parseWeekday(_e,et){return typeof _e!="string"?_e:isNaN(_e)?(_e=et.weekdaysParse(_e),typeof _e=="number"?_e:null):parseInt(_e,10)}function parseIsoWeekday(_e,et){return typeof _e=="string"?et.weekdaysParse(_e)%7||7:isNaN(_e)?null:_e}function shiftWeekdays(_e,et){return _e.slice(et,7).concat(_e.slice(0,et))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(_e,et){var rt=isArray(this._weekdays)?this._weekdays:this._weekdays[_e&&_e!==!0&&this._weekdays.isFormat.test(et)?"format":"standalone"];return _e===!0?shiftWeekdays(rt,this._week.dow):_e?rt[_e.day()]:rt}function localeWeekdaysShort(_e){return _e===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):_e?this._weekdaysShort[_e.day()]:this._weekdaysShort}function localeWeekdaysMin(_e){return _e===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):_e?this._weekdaysMin[_e.day()]:this._weekdaysMin}function handleStrictParse$1(_e,et,rt){var st,ct,ut,ft=_e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],st=0;st<7;++st)ut=createUTC([2e3,1]).day(st),this._minWeekdaysParse[st]=this.weekdaysMin(ut,"").toLocaleLowerCase(),this._shortWeekdaysParse[st]=this.weekdaysShort(ut,"").toLocaleLowerCase(),this._weekdaysParse[st]=this.weekdays(ut,"").toLocaleLowerCase();return rt?et==="dddd"?(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1?ct:null):et==="ddd"?(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1?ct:null):(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null):et==="dddd"?(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null)):et==="ddd"?(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null)):(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1?ct:null))}function localeWeekdaysParse(_e,et,rt){var st,ct,ut;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,_e,et,rt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++){if(ct=createUTC([2e3,1]).day(st),rt&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(ct,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(ct,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(ct,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(ut="^"+this.weekdays(ct,"")+"|^"+this.weekdaysShort(ct,"")+"|^"+this.weekdaysMin(ct,""),this._weekdaysParse[st]=new RegExp(ut.replace(".",""),"i")),rt&&et==="dddd"&&this._fullWeekdaysParse[st].test(_e))return st;if(rt&&et==="ddd"&&this._shortWeekdaysParse[st].test(_e))return st;if(rt&&et==="dd"&&this._minWeekdaysParse[st].test(_e))return st;if(!rt&&this._weekdaysParse[st].test(_e))return st}}function getSetDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=get$1(this,"Day");return _e!=null?(_e=parseWeekday(_e,this.localeData()),this.add(_e-et,"d")):et}function getSetLocaleDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=(this.day()+7-this.localeData()._week.dow)%7;return _e==null?et:this.add(_e-et,"d")}function getSetISODayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;if(_e!=null){var et=parseIsoWeekday(_e,this.localeData());return this.day(this.day()%7?et:et-7)}else return this.day()||7}function weekdaysRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&_e?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function _e(_t,wt){return wt.length-_t.length}var et=[],rt=[],st=[],ct=[],ut,ft,gt,xt,$t;for(ut=0;ut<7;ut++)ft=createUTC([2e3,1]).day(ut),gt=regexEscape(this.weekdaysMin(ft,"")),xt=regexEscape(this.weekdaysShort(ft,"")),$t=regexEscape(this.weekdays(ft,"")),et.push(gt),rt.push(xt),st.push($t),ct.push(gt),ct.push(xt),ct.push($t);et.sort(_e),rt.sort(_e),st.sort(_e),ct.sort(_e),this._weekdaysRegex=new RegExp("^("+ct.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+st.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+et.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(_e,et){addFormatToken(_e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),et)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(_e,et){return et._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(_e,et,rt){var st=toInt(_e);et[HOUR]=st===24?0:st});addParseToken(["a","A"],function(_e,et,rt){rt._isPm=rt._locale.isPM(_e),rt._meridiem=_e});addParseToken(["h","hh"],function(_e,et,rt){et[HOUR]=toInt(_e),getParsingFlags(rt).bigHour=!0});addParseToken("hmm",function(_e,et,rt){var st=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st)),getParsingFlags(rt).bigHour=!0});addParseToken("hmmss",function(_e,et,rt){var st=_e.length-4,ct=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st,2)),et[SECOND]=toInt(_e.substr(ct)),getParsingFlags(rt).bigHour=!0});addParseToken("Hmm",function(_e,et,rt){var st=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st))});addParseToken("Hmmss",function(_e,et,rt){var st=_e.length-4,ct=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st,2)),et[SECOND]=toInt(_e.substr(ct))});function localeIsPM(_e){return(_e+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(_e,et,rt){return _e>11?rt?"pm":"PM":rt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(_e,et){var rt,st=Math.min(_e.length,et.length);for(rt=0;rt0;){if(ct=loadLocale(ut.slice(0,rt).join("-")),ct)return ct;if(st&&st.length>=rt&&commonPrefix(ut,st)>=rt-1)break;rt--}et++}return globalLocale}function isLocaleNameSane(_e){return!!(_e&&_e.match("^[^/\\\\]*$"))}function loadLocale(_e){var et=null,rt;if(locales[_e]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(_e))try{et=globalLocale._abbr,rt=require,rt("./locale/"+_e),getSetGlobalLocale(et)}catch{locales[_e]=null}return locales[_e]}function getSetGlobalLocale(_e,et){var rt;return _e&&(isUndefined(et)?rt=getLocale(_e):rt=defineLocale(_e,et),rt?globalLocale=rt:typeof console<"u"&&console.warn&&console.warn("Locale "+_e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(_e,et){if(et!==null){var rt,st=baseConfig;if(et.abbr=_e,locales[_e]!=null)deprecateSimple("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."),st=locales[_e]._config;else if(et.parentLocale!=null)if(locales[et.parentLocale]!=null)st=locales[et.parentLocale]._config;else if(rt=loadLocale(et.parentLocale),rt!=null)st=rt._config;else return localeFamilies[et.parentLocale]||(localeFamilies[et.parentLocale]=[]),localeFamilies[et.parentLocale].push({name:_e,config:et}),null;return locales[_e]=new Locale(mergeConfigs(st,et)),localeFamilies[_e]&&localeFamilies[_e].forEach(function(ct){defineLocale(ct.name,ct.config)}),getSetGlobalLocale(_e),locales[_e]}else return delete locales[_e],null}function updateLocale(_e,et){if(et!=null){var rt,st,ct=baseConfig;locales[_e]!=null&&locales[_e].parentLocale!=null?locales[_e].set(mergeConfigs(locales[_e]._config,et)):(st=loadLocale(_e),st!=null&&(ct=st._config),et=mergeConfigs(ct,et),st==null&&(et.abbr=_e),rt=new Locale(et),rt.parentLocale=locales[_e],locales[_e]=rt),getSetGlobalLocale(_e)}else locales[_e]!=null&&(locales[_e].parentLocale!=null?(locales[_e]=locales[_e].parentLocale,_e===getSetGlobalLocale()&&getSetGlobalLocale(_e)):locales[_e]!=null&&delete locales[_e]);return locales[_e]}function getLocale(_e){var et;if(_e&&_e._locale&&_e._locale._abbr&&(_e=_e._locale._abbr),!_e)return globalLocale;if(!isArray(_e)){if(et=loadLocale(_e),et)return et;_e=[_e]}return chooseLocale(_e)}function listLocales(){return keys(locales)}function checkOverflow(_e){var et,rt=_e._a;return rt&&getParsingFlags(_e).overflow===-2&&(et=rt[MONTH]<0||rt[MONTH]>11?MONTH:rt[DATE]<1||rt[DATE]>daysInMonth(rt[YEAR],rt[MONTH])?DATE:rt[HOUR]<0||rt[HOUR]>24||rt[HOUR]===24&&(rt[MINUTE]!==0||rt[SECOND]!==0||rt[MILLISECOND]!==0)?HOUR:rt[MINUTE]<0||rt[MINUTE]>59?MINUTE:rt[SECOND]<0||rt[SECOND]>59?SECOND:rt[MILLISECOND]<0||rt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(_e)._overflowDayOfYear&&(etDATE)&&(et=DATE),getParsingFlags(_e)._overflowWeeks&&et===-1&&(et=WEEK),getParsingFlags(_e)._overflowWeekday&&et===-1&&(et=WEEKDAY),getParsingFlags(_e).overflow=et),_e}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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}))$/,obsOffsets={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 configFromISO(_e){var et,rt,st=_e._i,ct=extendedIsoRegex.exec(st)||basicIsoRegex.exec(st),ut,ft,gt,xt,$t=isoDates.length,_t=isoTimes.length;if(ct){for(getParsingFlags(_e).iso=!0,et=0,rt=$t;etdaysInYear(ft)||_e._dayOfYear===0)&&(getParsingFlags(_e)._overflowDayOfYear=!0),rt=createUTCDate(ft,0,_e._dayOfYear),_e._a[MONTH]=rt.getUTCMonth(),_e._a[DATE]=rt.getUTCDate()),et=0;et<3&&_e._a[et]==null;++et)_e._a[et]=st[et]=ct[et];for(;et<7;et++)_e._a[et]=st[et]=_e._a[et]==null?et===2?1:0:_e._a[et];_e._a[HOUR]===24&&_e._a[MINUTE]===0&&_e._a[SECOND]===0&&_e._a[MILLISECOND]===0&&(_e._nextDay=!0,_e._a[HOUR]=0),_e._d=(_e._useUTC?createUTCDate:createDate).apply(null,st),ut=_e._useUTC?_e._d.getUTCDay():_e._d.getDay(),_e._tzm!=null&&_e._d.setUTCMinutes(_e._d.getUTCMinutes()-_e._tzm),_e._nextDay&&(_e._a[HOUR]=24),_e._w&&typeof _e._w.d<"u"&&_e._w.d!==ut&&(getParsingFlags(_e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(_e){var et,rt,st,ct,ut,ft,gt,xt,$t;et=_e._w,et.GG!=null||et.W!=null||et.E!=null?(ut=1,ft=4,rt=defaults$1(et.GG,_e._a[YEAR],weekOfYear(createLocal(),1,4).year),st=defaults$1(et.W,1),ct=defaults$1(et.E,1),(ct<1||ct>7)&&(xt=!0)):(ut=_e._locale._week.dow,ft=_e._locale._week.doy,$t=weekOfYear(createLocal(),ut,ft),rt=defaults$1(et.gg,_e._a[YEAR],$t.year),st=defaults$1(et.w,$t.week),et.d!=null?(ct=et.d,(ct<0||ct>6)&&(xt=!0)):et.e!=null?(ct=et.e+ut,(et.e<0||et.e>6)&&(xt=!0)):ct=ut),st<1||st>weeksInYear(rt,ut,ft)?getParsingFlags(_e)._overflowWeeks=!0:xt!=null?getParsingFlags(_e)._overflowWeekday=!0:(gt=dayOfYearFromWeeks(rt,st,ct,ut,ft),_e._a[YEAR]=gt.year,_e._dayOfYear=gt.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(_e){if(_e._f===hooks.ISO_8601){configFromISO(_e);return}if(_e._f===hooks.RFC_2822){configFromRFC2822(_e);return}_e._a=[],getParsingFlags(_e).empty=!0;var et=""+_e._i,rt,st,ct,ut,ft,gt=et.length,xt=0,$t,_t;for(ct=expandFormat(_e._f,_e._locale).match(formattingTokens)||[],_t=ct.length,rt=0;rt<_t;rt++)ut=ct[rt],st=(et.match(getParseRegexForToken(ut,_e))||[])[0],st&&(ft=et.substr(0,et.indexOf(st)),ft.length>0&&getParsingFlags(_e).unusedInput.push(ft),et=et.slice(et.indexOf(st)+st.length),xt+=st.length),formatTokenFunctions[ut]?(st?getParsingFlags(_e).empty=!1:getParsingFlags(_e).unusedTokens.push(ut),addTimeToArrayFromToken(ut,st,_e)):_e._strict&&!st&&getParsingFlags(_e).unusedTokens.push(ut);getParsingFlags(_e).charsLeftOver=gt-xt,et.length>0&&getParsingFlags(_e).unusedInput.push(et),_e._a[HOUR]<=12&&getParsingFlags(_e).bigHour===!0&&_e._a[HOUR]>0&&(getParsingFlags(_e).bigHour=void 0),getParsingFlags(_e).parsedDateParts=_e._a.slice(0),getParsingFlags(_e).meridiem=_e._meridiem,_e._a[HOUR]=meridiemFixWrap(_e._locale,_e._a[HOUR],_e._meridiem),$t=getParsingFlags(_e).era,$t!==null&&(_e._a[YEAR]=_e._locale.erasConvertYear($t,_e._a[YEAR])),configFromArray(_e),checkOverflow(_e)}function meridiemFixWrap(_e,et,rt){var st;return rt==null?et:_e.meridiemHour!=null?_e.meridiemHour(et,rt):(_e.isPM!=null&&(st=_e.isPM(rt),st&&et<12&&(et+=12),!st&&et===12&&(et=0)),et)}function configFromStringAndArray(_e){var et,rt,st,ct,ut,ft,gt=!1,xt=_e._f.length;if(xt===0){getParsingFlags(_e).invalidFormat=!0,_e._d=new Date(NaN);return}for(ct=0;ctthis?this:_e:createInvalid()});function pickBy(_e,et){var rt,st;if(et.length===1&&isArray(et[0])&&(et=et[0]),!et.length)return createLocal();for(rt=et[0],st=1;stthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var _e={},et;return copyConfig(_e,this),_e=prepareConfig(_e),_e._a?(et=_e._isUTC?createUTC(_e._a):createLocal(_e._a),this._isDSTShifted=this.isValid()&&compareArrays(_e._a,et.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(_e,et){var rt=_e,st=null,ct,ut,ft;return isDuration(_e)?rt={ms:_e._milliseconds,d:_e._days,M:_e._months}:isNumber(_e)||!isNaN(+_e)?(rt={},et?rt[et]=+_e:rt.milliseconds=+_e):(st=aspNetRegex.exec(_e))?(ct=st[1]==="-"?-1:1,rt={y:0,d:toInt(st[DATE])*ct,h:toInt(st[HOUR])*ct,m:toInt(st[MINUTE])*ct,s:toInt(st[SECOND])*ct,ms:toInt(absRound(st[MILLISECOND]*1e3))*ct}):(st=isoRegex.exec(_e))?(ct=st[1]==="-"?-1:1,rt={y:parseIso(st[2],ct),M:parseIso(st[3],ct),w:parseIso(st[4],ct),d:parseIso(st[5],ct),h:parseIso(st[6],ct),m:parseIso(st[7],ct),s:parseIso(st[8],ct)}):rt==null?rt={}:typeof rt=="object"&&("from"in rt||"to"in rt)&&(ft=momentsDifference(createLocal(rt.from),createLocal(rt.to)),rt={},rt.ms=ft.milliseconds,rt.M=ft.months),ut=new Duration(rt),isDuration(_e)&&hasOwnProp(_e,"_locale")&&(ut._locale=_e._locale),isDuration(_e)&&hasOwnProp(_e,"_isValid")&&(ut._isValid=_e._isValid),ut}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(_e,et){var rt=_e&&parseFloat(_e.replace(",","."));return(isNaN(rt)?0:rt)*et}function positiveMomentsDifference(_e,et){var rt={};return rt.months=et.month()-_e.month()+(et.year()-_e.year())*12,_e.clone().add(rt.months,"M").isAfter(et)&&--rt.months,rt.milliseconds=+et-+_e.clone().add(rt.months,"M"),rt}function momentsDifference(_e,et){var rt;return _e.isValid()&&et.isValid()?(et=cloneWithOffset(et,_e),_e.isBefore(et)?rt=positiveMomentsDifference(_e,et):(rt=positiveMomentsDifference(et,_e),rt.milliseconds=-rt.milliseconds,rt.months=-rt.months),rt):{milliseconds:0,months:0}}function createAdder(_e,et){return function(rt,st){var ct,ut;return st!==null&&!isNaN(+st)&&(deprecateSimple(et,"moment()."+et+"(period, number) is deprecated. Please use moment()."+et+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ut=rt,rt=st,st=ut),ct=createDuration(rt,st),addSubtract(this,ct,_e),this}}function addSubtract(_e,et,rt,st){var ct=et._milliseconds,ut=absRound(et._days),ft=absRound(et._months);_e.isValid()&&(st=st??!0,ft&&setMonth(_e,get$1(_e,"Month")+ft*rt),ut&&set$1$1(_e,"Date",get$1(_e,"Date")+ut*rt),ct&&_e._d.setTime(_e._d.valueOf()+ct*rt),st&&hooks.updateOffset(_e,ut||ft))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(_e){return typeof _e=="string"||_e instanceof String}function isMomentInput(_e){return isMoment(_e)||isDate(_e)||isString(_e)||isNumber(_e)||isNumberOrStringArray(_e)||isMomentInputObject(_e)||_e===null||_e===void 0}function isMomentInputObject(_e){var et=isObject$1(_e)&&!isObjectEmpty(_e),rt=!1,st=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ct,ut,ft=st.length;for(ct=0;ctrt.valueOf():rt.valueOf()9999?formatMoment(rt,et?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?et?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(rt,"Z")):formatMoment(rt,et?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var _e="moment",et="",rt,st,ct,ut;return this.isLocal()||(_e=this.utcOffset()===0?"moment.utc":"moment.parseZone",et="Z"),rt="["+_e+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ct="-MM-DD[T]HH:mm:ss.SSS",ut=et+'[")]',this.format(rt+st+ct+ut)}function format(_e){_e||(_e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var et=formatMoment(this,_e);return this.localeData().postformat(et)}function from(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({to:this,from:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function fromNow(_e){return this.from(createLocal(),_e)}function to(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({from:this,to:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function toNow(_e){return this.to(createLocal(),_e)}function locale$2(_e){var et;return _e===void 0?this._locale._abbr:(et=getLocale(_e),et!=null&&(this._locale=et),this)}var lang=deprecate("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 localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(_e,et){return(_e%et+et)%et}function localStartOfDate(_e,et,rt){return _e<100&&_e>=0?new Date(_e+400,et,rt)-MS_PER_400_YEARS:new Date(_e,et,rt).valueOf()}function utcStartOfDate(_e,et,rt){return _e<100&&_e>=0?Date.UTC(_e+400,et,rt)-MS_PER_400_YEARS:Date.UTC(_e,et,rt)}function startOf(_e){var et,rt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=rt(this.year(),0,1);break;case"quarter":et=rt(this.year(),this.month()-this.month()%3,1);break;case"month":et=rt(this.year(),this.month(),1);break;case"week":et=rt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":et=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":et=rt(this.year(),this.month(),this.date());break;case"hour":et=this._d.valueOf(),et-=mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":et=this._d.valueOf(),et-=mod$1(et,MS_PER_MINUTE);break;case"second":et=this._d.valueOf(),et-=mod$1(et,MS_PER_SECOND);break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function endOf(_e){var et,rt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=rt(this.year()+1,0,1)-1;break;case"quarter":et=rt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":et=rt(this.year(),this.month()+1,1)-1;break;case"week":et=rt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":et=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":et=rt(this.year(),this.month(),this.date()+1)-1;break;case"hour":et=this._d.valueOf(),et+=MS_PER_HOUR-mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":et=this._d.valueOf(),et+=MS_PER_MINUTE-mod$1(et,MS_PER_MINUTE)-1;break;case"second":et=this._d.valueOf(),et+=MS_PER_SECOND-mod$1(et,MS_PER_SECOND)-1;break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$2(){var _e=this;return[_e.year(),_e.month(),_e.date(),_e.hour(),_e.minute(),_e.second(),_e.millisecond()]}function toObject(){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 toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(_e,et,rt,st){var ct=rt._locale.erasParse(_e,st,rt._strict);ct?getParsingFlags(rt).era=ct:getParsingFlags(rt).invalidEra=_e});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(_e,et,rt,st){var ct;rt._locale._eraYearOrdinalRegex&&(ct=_e.match(rt._locale._eraYearOrdinalRegex)),rt._locale.eraYearOrdinalParse?et[YEAR]=rt._locale.eraYearOrdinalParse(_e,ct):et[YEAR]=parseInt(_e,10)});function localeEras(_e,et){var rt,st,ct,ut=this._eras||getLocale("en")._eras;for(rt=0,st=ut.length;rt=0)return ut[st]}function localeErasConvertYear(_e,et){var rt=_e.since<=_e.until?1:-1;return et===void 0?hooks(_e.since).year():hooks(_e.since).year()+(et-_e.offset)*rt}function getEraName(){var _e,et,rt,st=this.localeData().eras();for(_e=0,et=st.length;_eut&&(et=ut),setWeekAll.call(this,_e,et,rt,st,ct))}function setWeekAll(_e,et,rt,st,ct){var ut=dayOfYearFromWeeks(_e,et,rt,st,ct),ft=createUTCDate(ut.year,0,ut.dayOfYear);return this.year(ft.getUTCFullYear()),this.month(ft.getUTCMonth()),this.date(ft.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(_e,et){et[MONTH]=(toInt(_e)-1)*3});function getSetQuarter(_e){return _e==null?Math.ceil((this.month()+1)/3):this.month((_e-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(_e,et){return _e?et._dayOfMonthOrdinalParse||et._ordinalParse:et._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(_e,et){et[DATE]=toInt(_e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(_e,et,rt){rt._dayOfYear=toInt(_e)});function getSetDayOfYear(_e){var et=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return _e==null?et:this.add(_e-et,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(_e,et){et[MILLISECOND]=toInt(("0."+_e)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add;proto$1.calendar=calendar$1;proto$1.clone=clone;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format;proto$1.from=from;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale$2;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray$2;proto$1.toObject=toObject;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(_e){return createLocal(_e*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(_e){return _e}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$1;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(_e,et,rt,st){var ct=getLocale(),ut=createUTC().set(st,et);return ct[rt](ut,_e)}function listMonthsImpl(_e,et,rt){if(isNumber(_e)&&(et=_e,_e=void 0),_e=_e||"",et!=null)return get$1$1(_e,et,rt,"month");var st,ct=[];for(st=0;st<12;st++)ct[st]=get$1$1(_e,st,rt,"month");return ct}function listWeekdaysImpl(_e,et,rt,st){typeof _e=="boolean"?(isNumber(et)&&(rt=et,et=void 0),et=et||""):(et=_e,rt=et,_e=!1,isNumber(et)&&(rt=et,et=void 0),et=et||"");var ct=getLocale(),ut=_e?ct._week.dow:0,ft,gt=[];if(rt!=null)return get$1$1(et,(rt+ut)%7,st,"day");for(ft=0;ft<7;ft++)gt[ft]=get$1$1(et,(ft+ut)%7,st,"day");return gt}function listMonths(_e,et){return listMonthsImpl(_e,et,"months")}function listMonthsShort(_e,et){return listMonthsImpl(_e,et,"monthsShort")}function listWeekdays(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdays")}function listWeekdaysShort(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdaysShort")}function listWeekdaysMin(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdaysMin")}getSetGlobalLocale("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 et=_e%10,rt=toInt(_e%100/10)===1?"th":et===1?"st":et===2?"nd":et===3?"rd":"th";return _e+rt}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var _e=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),_e.milliseconds=mathAbs(_e.milliseconds),_e.seconds=mathAbs(_e.seconds),_e.minutes=mathAbs(_e.minutes),_e.hours=mathAbs(_e.hours),_e.months=mathAbs(_e.months),_e.years=mathAbs(_e.years),this}function addSubtract$1(_e,et,rt,st){var ct=createDuration(et,rt);return _e._milliseconds+=st*ct._milliseconds,_e._days+=st*ct._days,_e._months+=st*ct._months,_e._bubble()}function add$1(_e,et){return addSubtract$1(this,_e,et,1)}function subtract$1(_e,et){return addSubtract$1(this,_e,et,-1)}function absCeil(_e){return _e<0?Math.floor(_e):Math.ceil(_e)}function bubble(){var _e=this._milliseconds,et=this._days,rt=this._months,st=this._data,ct,ut,ft,gt,xt;return _e>=0&&et>=0&&rt>=0||_e<=0&&et<=0&&rt<=0||(_e+=absCeil(monthsToDays(rt)+et)*864e5,et=0,rt=0),st.milliseconds=_e%1e3,ct=absFloor(_e/1e3),st.seconds=ct%60,ut=absFloor(ct/60),st.minutes=ut%60,ft=absFloor(ut/60),st.hours=ft%24,et+=absFloor(ft/24),xt=absFloor(daysToMonths(et)),rt+=xt,et-=absCeil(monthsToDays(xt)),gt=absFloor(rt/12),rt%=12,st.days=et,st.months=rt,st.years=gt,this}function daysToMonths(_e){return _e*4800/146097}function monthsToDays(_e){return _e*146097/4800}function as(_e){if(!this.isValid())return NaN;var et,rt,st=this._milliseconds;if(_e=normalizeUnits(_e),_e==="month"||_e==="quarter"||_e==="year")switch(et=this._days+st/864e5,rt=this._months+daysToMonths(et),_e){case"month":return rt;case"quarter":return rt/3;case"year":return rt/12}else switch(et=this._days+Math.round(monthsToDays(this._months)),_e){case"week":return et/7+st/6048e5;case"day":return et+st/864e5;case"hour":return et*24+st/36e5;case"minute":return et*1440+st/6e4;case"second":return et*86400+st/1e3;case"millisecond":return Math.floor(et*864e5)+st;default:throw new Error("Unknown unit "+_e)}}function makeAs(_e){return function(){return this.as(_e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1(){return createDuration(this)}function get$2(_e){return _e=normalizeUnits(_e),this.isValid()?this[_e+"s"]():NaN}function makeGetter(_e){return function(){return this.isValid()?this._data[_e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(_e,et,rt,st,ct){return ct.relativeTime(et||1,!!rt,_e,st)}function relativeTime$1(_e,et,rt,st){var ct=createDuration(_e).abs(),ut=round(ct.as("s")),ft=round(ct.as("m")),gt=round(ct.as("h")),xt=round(ct.as("d")),$t=round(ct.as("M")),_t=round(ct.as("w")),wt=round(ct.as("y")),Tt=ut<=rt.ss&&["s",ut]||ut0,Tt[4]=st,substituteTimeAgo.apply(null,Tt)}function getSetRelativeTimeRounding(_e){return _e===void 0?round:typeof _e=="function"?(round=_e,!0):!1}function getSetRelativeTimeThreshold(_e,et){return thresholds[_e]===void 0?!1:et===void 0?thresholds[_e]:(thresholds[_e]=et,_e==="s"&&(thresholds.ss=et-1),!0)}function humanize(_e,et){if(!this.isValid())return this.localeData().invalidDate();var rt=!1,st=thresholds,ct,ut;return typeof _e=="object"&&(et=_e,_e=!1),typeof _e=="boolean"&&(rt=_e),typeof et=="object"&&(st=Object.assign({},thresholds,et),et.s!=null&&et.ss==null&&(st.ss=et.s-1)),ct=this.localeData(),ut=relativeTime$1(this,!rt,st,ct),rt&&(ut=ct.pastFuture(+this,ut)),ct.postformat(ut)}var abs$1=Math.abs;function sign(_e){return(_e>0)-(_e<0)||+_e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var _e=abs$1(this._milliseconds)/1e3,et=abs$1(this._days),rt=abs$1(this._months),st,ct,ut,ft,gt=this.asSeconds(),xt,$t,_t,wt;return gt?(st=absFloor(_e/60),ct=absFloor(st/60),_e%=60,st%=60,ut=absFloor(rt/12),rt%=12,ft=_e?_e.toFixed(3).replace(/\.?0+$/,""):"",xt=gt<0?"-":"",$t=sign(this._months)!==sign(gt)?"-":"",_t=sign(this._days)!==sign(gt)?"-":"",wt=sign(this._milliseconds)!==sign(gt)?"-":"",xt+"P"+(ut?$t+ut+"Y":"")+(rt?$t+rt+"M":"")+(et?_t+et+"D":"")+(ct||st||_e?"T":"")+(ct?wt+ct+"H":"")+(st?wt+st+"M":"")+(_e?wt+ft+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale$2;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(_e,et,rt){rt._d=new Date(parseFloat(_e)*1e3)});addParseToken("x",function(_e,et,rt){rt._d=new Date(toInt(_e))});//! moment.js -hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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 getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let _e=0;_e<256;++_e)byteToHex.push((_e+256).toString(16).slice(1));function unsafeStringify(_e,et=0){return byteToHex[_e[et+0]]+byteToHex[_e[et+1]]+byteToHex[_e[et+2]]+byteToHex[_e[et+3]]+"-"+byteToHex[_e[et+4]]+byteToHex[_e[et+5]]+"-"+byteToHex[_e[et+6]]+byteToHex[_e[et+7]]+"-"+byteToHex[_e[et+8]]+byteToHex[_e[et+9]]+"-"+byteToHex[_e[et+10]]+byteToHex[_e[et+11]]+byteToHex[_e[et+12]]+byteToHex[_e[et+13]]+byteToHex[_e[et+14]]+byteToHex[_e[et+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(_e,et,rt){if(native.randomUUID&&!et&&!_e)return native.randomUUID();_e=_e||{};const st=_e.random||(_e.rng||rng)();if(st[6]=st[6]&15|64,st[8]=st[8]&63|128,et){rt=rt||0;for(let ct=0;ct<16;++ct)et[rt+ct]=st[ct];return et}return unsafeStringify(st)}function currentTimestamp(){return hooks().format("YYYY-MM-DD HH:mm:ss")}function getUUid(){return v4().replaceAll(/-/g,"")}const useMessageStore=create$4()(devtools(persist(immer((_e,et)=>({messageList:[],addMessage(rt){et().messageList.some(ct=>ct.uid===rt.uid)||_e({messageList:[...et().messageList,rt]})},addMessageList(rt,st){let ct=[];for(let ut=0;utxt.uid===ft.uid)||(ft.thread=st,ct.unshift(ft))}_e({messageList:[...ct,...et().messageList]})},currentMessage:{uid:"",createdAt:""},setCurrentMessage(rt){_e({currentMessage:rt})},resetMessageList(){_e({messageList:[],currentMessage:{uid:"",createdAt:""}})}})),{name:MESSAGE_STORE})));async function sendRestMessage(_e){return request("/api/v1/message/rest/send",{method:"POST",data:{json:_e,client:HTTP_CLIENT}})}async function queryMessages(_e){return request("/api/v1/message/query",{method:"GET",params:{..._e}})}let mqttClient,userState;const mqttConnect=({uid:_e,username:et,accessToken:rt})=>{if(rt===""||rt==null){console.log("accessToken is empty, dont connect mqtt");return}if(userState=useUserStore.getState().userInfo,mqttClient&&mqttClient.connected){console.log("mqtt already connected");return}let st=_e+"/"+HTTP_CLIENT;{const ct={port:MQTT_PORT,host:MQTT_HOST,keepalive:1e4,clientId:st,username:et,password:rt,clean:!0,path:"/websocket",reconnectPeriod:1e3,connectTimeout:3e4,reschedulePings:!0,rejectUnauthorized:!1};console.log("start debug connect:",ct),mqttClient=mqtt.connect(ct)}mqttClient.on("connect",()=>{console.log("mqtt event connected"),useAuthStore.setState({isMqttConnected:!0})}),mqttClient.on("message",function(ct,ut,ft){let gt=messageProto.Message.deserializeBinary(ut),xt={uid:gt.getUid(),createdAt:gt.getCreatedat(),client:gt.getClient(),type:gt.getType(),user:{uid:gt.getUser().getUid(),nickname:gt.getUser().getNickname(),avatar:gt.getUser().getAvatar()},content:gt.getContent(),thread:{uid:gt.getThread().getUid(),type:gt.getThread().getType(),topic:gt.getThread().getTopic()}};console.log("mqtt message received",ct,xt),useMessageStore.getState().addMessage(xt);let $t={uid:gt.getThread().getUid(),type:gt.getThread().getType(),topic:gt.getThread().getTopic(),content:gt.getContent(),createdAt:gt.getCreatedat(),user:{uid:gt.getUser().getUid(),nickname:gt.getUser().getNickname(),avatar:gt.getUser().getAvatar()}};useThreadStore.getState().addThread($t)}),mqttClient.on("packetsend",ct=>{console.log("mqtt event packetsend",ct)}),mqttClient.on("packetreceive",ct=>{console.log("mqtt event packetreceive",ct)}),mqttClient.on("reconnect",()=>{console.log("mqtt event reconnect")}),mqttClient.on("close",()=>{console.log("mqtt event close"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("disconnect",()=>{console.error("mqtt event disconnected"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("offline",()=>{console.log("mqtt event offline"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("error",()=>{console.log("mqtt event error")}),mqttClient.on("end",()=>{console.log("mqtt event end"),useAuthStore.setState({isMqttConnected:!1})})},mqttSendTextMessage=(_e,et)=>{console.log("mqttSendTextMessage",et),mqttSendMessage(_e,MESSAGE_TYPE_TEXT,et)},mqttSendMessage=(_e,et,rt)=>{console.log("mqttSendMessage",rt);let st=currentTimestamp(),ct=useThreadStore.getState().currentThread;if(mqttClient&&mqttClient.connected){let ut=new threadProto.Thread;ut.setUid(ct.uid),ut.setType(ct.type),ut.setTopic(ct.topic);let ft=new userProto.User;ft.setUid(userState.uid),ft.setNickname(userState.nickname),ft.setAvatar(userState.avatar);let gt=new messageProto.Message;gt.setUid(_e),gt.setType(et),gt.setCreatedat(st),gt.setClient(HTTP_CLIENT),gt.setContent(rt),gt.setUser(ft),gt.setThread(ut);let xt=gt.serializeBinary();mqttClient.publish(ct.topic,xt)}else{console.log("mqttClient is disconnect, use http rest api");let ut={uid:ct.uid,type:ct.type,topic:ct.topic},ft={uid:userState.uid,nickname:userState.nickname,avatar:userState.avatar};const xt=JSON.stringify({uid:_e,type:et,createdAt:st,client:HTTP_CLIENT,content:rt,user:ft,thread:ut});console.log("mqttSendMessage",xt),sendRestMessage(xt)}},mqttDisconnect=()=>{mqttClient&&mqttClient.connected?mqttClient.end():console.log("mqttClient is null"),useAuthStore.setState({isMqttConnected:!1})};function getNetworkType(){const _e=navigator.userAgent,et=navigator.connection;let rt=et?et.type?et.type.toLowerCase():et.effectiveType.toLowerCase():null;if(rt)switch(rt){case"cellular":case"wimax":rt=et&&et.effectiveType?et.effectiveType.toLowerCase():null;break;case"wifi":break;case"ethernet":rt="wired";break;case"none":case"other":case"unknown":rt=null;break}let st=rt||(_e.match(/NetType\/\w+/)?_e.match(/NetType\/\w+/)[0]:"unknown");return st=st.toLowerCase().replace("nettype/",""),st?st==="3gnet"?"3g":st:"unknown"}function useNetworkStatus(){const[_e,et]=reactExports.useState(!0);return reactExports.useEffect(()=>{function rt(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&et(!0)}function st(){console.log("networkStatus offline:",!navigator.onLine),et(!1)}return window.addEventListener("online",rt),window.addEventListener("offline",st),()=>{window.removeEventListener("online",rt),window.removeEventListener("offline",st)}},[]),_e}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function _e(st,ct,ut,ft,gt,xt){if(xt!==ReactPropTypesSecret){var $t=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 $t.name="Invariant Violation",$t}}_e.isRequired=_e;function et(){return _e}var rt={array:_e,bigint:_e,bool:_e,func:_e,number:_e,object:_e,string:_e,symbol:_e,any:_e,arrayOf:et,element:_e,elementType:_e,instanceOf:et,node:_e,objectOf:et,oneOf:et,oneOfType:et,shape:et,exact:et,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return rt.PropTypes=rt,rt};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var COMMON_MIME_TYPES=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(_e,et){var rt=withMimeType(_e);if(typeof rt.path!="string"){var st=_e.webkitRelativePath;Object.defineProperty(rt,"path",{value:typeof et=="string"?et:typeof st=="string"&&st.length>0?st:_e.name,writable:!1,configurable:!1,enumerable:!0})}return rt}function withMimeType(_e){var et=_e.name,rt=et&&et.lastIndexOf(".")!==-1;if(rt&&!_e.type){var st=et.split(".").pop().toLowerCase(),ct=COMMON_MIME_TYPES.get(st);ct&&Object.defineProperty(_e,"type",{value:ct,writable:!1,configurable:!1,enumerable:!0})}return _e}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return isObject(_e)&&isDataTransfer(_e.dataTransfer)?[2,getDataTransferFiles(_e.dataTransfer,_e.type)]:isChangeEvt(_e)?[2,getInputFiles(_e)]:Array.isArray(_e)&&_e.every(function(rt){return"getFile"in rt&&typeof rt.getFile=="function"})?[2,getFsHandleFiles(_e)]:[2,[]]})})}function isDataTransfer(_e){return isObject(_e)}function isChangeEvt(_e){return isObject(_e)&&isObject(_e.target)}function isObject(_e){return typeof _e=="object"&&_e!==null}function getInputFiles(_e){return fromList(_e.target.files).map(function(et){return toFileWithPath(et)})}function getFsHandleFiles(_e){return __awaiter(this,void 0,void 0,function(){var et;return __generator(this,function(rt){switch(rt.label){case 0:return[4,Promise.all(_e.map(function(st){return st.getFile()}))];case 1:return et=rt.sent(),[2,et.map(function(st){return toFileWithPath(st)})]}})})}function getDataTransferFiles(_e,et){return __awaiter(this,void 0,void 0,function(){var rt,st;return __generator(this,function(ct){switch(ct.label){case 0:return _e.items?(rt=fromList(_e.items).filter(function(ut){return ut.kind==="file"}),et!=="drop"?[2,rt]:[4,Promise.all(rt.map(toFilePromises))]):[3,2];case 1:return st=ct.sent(),[2,noIgnoredFiles(flatten(st))];case 2:return[2,noIgnoredFiles(fromList(_e.files).map(function(ut){return toFileWithPath(ut)}))]}})})}function noIgnoredFiles(_e){return _e.filter(function(et){return FILES_TO_IGNORE.indexOf(et.name)===-1})}function fromList(_e){if(_e===null)return[];for(var et=[],rt=0;rt<_e.length;rt++){var st=_e[rt];et.push(st)}return et}function toFilePromises(_e){if(typeof _e.webkitGetAsEntry!="function")return fromDataTransferItem(_e);var et=_e.webkitGetAsEntry();return et&&et.isDirectory?fromDirEntry(et):fromDataTransferItem(_e)}function flatten(_e){return _e.reduce(function(et,rt){return __spreadArray(__spreadArray([],__read(et),!1),__read(Array.isArray(rt)?flatten(rt):[rt]),!1)},[])}function fromDataTransferItem(_e){var et=_e.getAsFile();if(!et)return Promise.reject("".concat(_e," is not a File"));var rt=toFileWithPath(et);return Promise.resolve(rt)}function fromEntry(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return[2,_e.isDirectory?fromDirEntry(_e):fromFileEntry(_e)]})})}function fromDirEntry(_e){var et=_e.createReader();return new Promise(function(rt,st){var ct=[];function ut(){var ft=this;et.readEntries(function(gt){return __awaiter(ft,void 0,void 0,function(){var xt,$t,_t;return __generator(this,function(wt){switch(wt.label){case 0:if(gt.length)return[3,5];wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,Promise.all(ct)];case 2:return xt=wt.sent(),rt(xt),[3,4];case 3:return $t=wt.sent(),st($t),[3,4];case 4:return[3,6];case 5:_t=Promise.all(gt.map(fromEntry)),ct.push(_t),ut(),wt.label=6;case 6:return[2]}})})},function(gt){st(gt)})}ut()})}function fromFileEntry(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return[2,new Promise(function(rt,st){_e.file(function(ct){var ut=toFileWithPath(ct,_e.fullPath);rt(ut)},function(ct){st(ct)})})]})})}var _default$1=function(_e,et){if(_e&&et){var rt=Array.isArray(et)?et:et.split(","),st=_e.name||"",ct=(_e.type||"").toLowerCase(),ut=ct.replace(/\/.*$/,"");return rt.some(function(ft){var gt=ft.trim().toLowerCase();return gt.charAt(0)==="."?st.toLowerCase().endsWith(gt):gt.endsWith("/*")?ut===gt.replace(/\/.*$/,""):ct===gt})}return!0};function _toConsumableArray$1(_e){return _arrayWithoutHoles$1(_e)||_iterableToArray$1(_e)||_unsupportedIterableToArray$1(_e)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`+new Error().stack),rt=!1}return et.apply(this,arguments)},et)}var deprecations={};function deprecateSimple(_e,et){hooks.deprecationHandler!=null&&hooks.deprecationHandler(_e,et),deprecations[_e]||(warn$1(et),deprecations[_e]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction(_e){return typeof Function<"u"&&_e instanceof Function||Object.prototype.toString.call(_e)==="[object Function]"}function set$1(_e){var et,rt;for(rt in _e)hasOwnProp(_e,rt)&&(et=_e[rt],isFunction(et)?this[rt]=et:this["_"+rt]=et);this._config=_e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(_e,et){var rt=extend({},_e),st;for(st in et)hasOwnProp(et,st)&&(isObject$2(_e[st])&&isObject$2(et[st])?(rt[st]={},extend(rt[st],_e[st]),extend(rt[st],et[st])):et[st]!=null?rt[st]=et[st]:delete rt[st]);for(st in _e)hasOwnProp(_e,st)&&!hasOwnProp(et,st)&&isObject$2(_e[st])&&(rt[st]=extend({},rt[st]));return rt}function Locale(_e){_e!=null&&this.set(_e)}var keys;Object.keys?keys=Object.keys:keys=function(_e){var et,rt=[];for(et in _e)hasOwnProp(_e,et)&&rt.push(et);return rt};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(_e,et,rt){var st=this._calendar[_e]||this._calendar.sameElse;return isFunction(st)?st.call(et,rt):st}function zeroFill(_e,et,rt){var st=""+Math.abs(_e),ct=et-st.length,ut=_e>=0;return(ut?rt?"+":"":"-")+Math.pow(10,Math.max(0,ct)).toString().substr(1)+st}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(_e,et,rt,st){var ct=st;typeof st=="string"&&(ct=function(){return this[st]()}),_e&&(formatTokenFunctions[_e]=ct),et&&(formatTokenFunctions[et[0]]=function(){return zeroFill(ct.apply(this,arguments),et[1],et[2])}),rt&&(formatTokenFunctions[rt]=function(){return this.localeData().ordinal(ct.apply(this,arguments),_e)})}function removeFormattingTokens(_e){return _e.match(/\[[\s\S]/)?_e.replace(/^\[|\]$/g,""):_e.replace(/\\/g,"")}function makeFormatFunction(_e){var et=_e.match(formattingTokens),rt,st;for(rt=0,st=et.length;rt=0&&localFormattingTokens.test(_e);)_e=_e.replace(localFormattingTokens,st),localFormattingTokens.lastIndex=0,rt-=1;return _e}var defaultLongDateFormat={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 longDateFormat(_e){var et=this._longDateFormat[_e],rt=this._longDateFormat[_e.toUpperCase()];return et||!rt?et:(this._longDateFormat[_e]=rt.match(formattingTokens).map(function(st){return st==="MMMM"||st==="MM"||st==="DD"||st==="dddd"?st.slice(1):st}).join(""),this._longDateFormat[_e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(_e){return this._ordinal.replace("%d",_e)}var defaultRelativeTime={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 relativeTime(_e,et,rt,st){var ct=this._relativeTime[rt];return isFunction(ct)?ct(_e,et,rt,st):ct.replace(/%d/i,_e)}function pastFuture(_e,et){var rt=this._relativeTime[_e>0?"future":"past"];return isFunction(rt)?rt(et):rt.replace(/%s/i,et)}var aliases={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 normalizeUnits(_e){return typeof _e=="string"?aliases[_e]||aliases[_e.toLowerCase()]:void 0}function normalizeObjectUnits(_e){var et={},rt,st;for(st in _e)hasOwnProp(_e,st)&&(rt=normalizeUnits(st),rt&&(et[rt]=_e[st]));return et}var priorities={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 getPrioritizedUnits(_e){var et=[],rt;for(rt in _e)hasOwnProp(_e,rt)&&et.push({unit:rt,priority:priorities[rt]});return et.sort(function(st,ct){return st.priority-ct.priority}),et}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[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,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(_e,et,rt){regexes[_e]=isFunction(et)?et:function(st,ct){return st&&rt?rt:et}}function getParseRegexForToken(_e,et){return hasOwnProp(regexes,_e)?regexes[_e](et._strict,et._locale):new RegExp(unescapeFormat(_e))}function unescapeFormat(_e){return regexEscape(_e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,rt,st,ct,ut){return rt||st||ct||ut}))}function regexEscape(_e){return _e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)}function toInt(_e){var et=+_e,rt=0;return et!==0&&isFinite(et)&&(rt=absFloor(et)),rt}var tokens={};function addParseToken(_e,et){var rt,st=et,ct;for(typeof _e=="string"&&(_e=[_e]),isNumber(et)&&(st=function(ut,ft){ft[et]=toInt(ut)}),ct=_e.length,rt=0;rt68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(_e,et){return function(rt){return rt!=null?(set$1$1(this,_e,rt),hooks.updateOffset(this,et),this):get$1(this,_e)}}function get$1(_e,et){if(!_e.isValid())return NaN;var rt=_e._d,st=_e._isUTC;switch(et){case"Milliseconds":return st?rt.getUTCMilliseconds():rt.getMilliseconds();case"Seconds":return st?rt.getUTCSeconds():rt.getSeconds();case"Minutes":return st?rt.getUTCMinutes():rt.getMinutes();case"Hours":return st?rt.getUTCHours():rt.getHours();case"Date":return st?rt.getUTCDate():rt.getDate();case"Day":return st?rt.getUTCDay():rt.getDay();case"Month":return st?rt.getUTCMonth():rt.getMonth();case"FullYear":return st?rt.getUTCFullYear():rt.getFullYear();default:return NaN}}function set$1$1(_e,et,rt){var st,ct,ut,ft,gt;if(!(!_e.isValid()||isNaN(rt))){switch(st=_e._d,ct=_e._isUTC,et){case"Milliseconds":return void(ct?st.setUTCMilliseconds(rt):st.setMilliseconds(rt));case"Seconds":return void(ct?st.setUTCSeconds(rt):st.setSeconds(rt));case"Minutes":return void(ct?st.setUTCMinutes(rt):st.setMinutes(rt));case"Hours":return void(ct?st.setUTCHours(rt):st.setHours(rt));case"Date":return void(ct?st.setUTCDate(rt):st.setDate(rt));case"FullYear":break;default:return}ut=rt,ft=_e.month(),gt=_e.date(),gt=gt===29&&ft===1&&!isLeapYear(ut)?28:gt,ct?st.setUTCFullYear(ut,ft,gt):st.setFullYear(ut,ft,gt)}}function stringGet(_e){return _e=normalizeUnits(_e),isFunction(this[_e])?this[_e]():this}function stringSet(_e,et){if(typeof _e=="object"){_e=normalizeObjectUnits(_e);var rt=getPrioritizedUnits(_e),st,ct=rt.length;for(st=0;st=0?(gt=new Date(_e+400,et,rt,st,ct,ut,ft),isFinite(gt.getFullYear())&>.setFullYear(_e)):gt=new Date(_e,et,rt,st,ct,ut,ft),gt}function createUTCDate(_e){var et,rt;return _e<100&&_e>=0?(rt=Array.prototype.slice.call(arguments),rt[0]=_e+400,et=new Date(Date.UTC.apply(null,rt)),isFinite(et.getUTCFullYear())&&et.setUTCFullYear(_e)):et=new Date(Date.UTC.apply(null,arguments)),et}function firstWeekOffset(_e,et,rt){var st=7+et-rt,ct=(7+createUTCDate(_e,0,st).getUTCDay()-et)%7;return-ct+st-1}function dayOfYearFromWeeks(_e,et,rt,st,ct){var ut=(7+rt-st)%7,ft=firstWeekOffset(_e,st,ct),gt=1+7*(et-1)+ut+ft,xt,$t;return gt<=0?(xt=_e-1,$t=daysInYear(xt)+gt):gt>daysInYear(_e)?(xt=_e+1,$t=gt-daysInYear(_e)):(xt=_e,$t=gt),{year:xt,dayOfYear:$t}}function weekOfYear(_e,et,rt){var st=firstWeekOffset(_e.year(),et,rt),ct=Math.floor((_e.dayOfYear()-st-1)/7)+1,ut,ft;return ct<1?(ft=_e.year()-1,ut=ct+weeksInYear(ft,et,rt)):ct>weeksInYear(_e.year(),et,rt)?(ut=ct-weeksInYear(_e.year(),et,rt),ft=_e.year()+1):(ft=_e.year(),ut=ct),{week:ut,year:ft}}function weeksInYear(_e,et,rt){var st=firstWeekOffset(_e,et,rt),ct=firstWeekOffset(_e+1,et,rt);return(daysInYear(_e)-st+ct)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(_e,et,rt,st){et[st.substr(0,1)]=toInt(_e)});function localeWeek(_e){return weekOfYear(_e,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(_e){var et=this.localeData().week(this);return _e==null?et:this.add((_e-et)*7,"d")}function getSetISOWeek(_e){var et=weekOfYear(this,1,4).week;return _e==null?et:this.add((_e-et)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(_e){return this.localeData().weekdaysMin(this,_e)});addFormatToken("ddd",0,0,function(_e){return this.localeData().weekdaysShort(this,_e)});addFormatToken("dddd",0,0,function(_e){return this.localeData().weekdays(this,_e)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(_e,et){return et.weekdaysMinRegex(_e)});addRegexToken("ddd",function(_e,et){return et.weekdaysShortRegex(_e)});addRegexToken("dddd",function(_e,et){return et.weekdaysRegex(_e)});addWeekParseToken(["dd","ddd","dddd"],function(_e,et,rt,st){var ct=rt._locale.weekdaysParse(_e,st,rt._strict);ct!=null?et.d=ct:getParsingFlags(rt).invalidWeekday=_e});addWeekParseToken(["d","e","E"],function(_e,et,rt,st){et[st]=toInt(_e)});function parseWeekday(_e,et){return typeof _e!="string"?_e:isNaN(_e)?(_e=et.weekdaysParse(_e),typeof _e=="number"?_e:null):parseInt(_e,10)}function parseIsoWeekday(_e,et){return typeof _e=="string"?et.weekdaysParse(_e)%7||7:isNaN(_e)?null:_e}function shiftWeekdays(_e,et){return _e.slice(et,7).concat(_e.slice(0,et))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(_e,et){var rt=isArray(this._weekdays)?this._weekdays:this._weekdays[_e&&_e!==!0&&this._weekdays.isFormat.test(et)?"format":"standalone"];return _e===!0?shiftWeekdays(rt,this._week.dow):_e?rt[_e.day()]:rt}function localeWeekdaysShort(_e){return _e===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):_e?this._weekdaysShort[_e.day()]:this._weekdaysShort}function localeWeekdaysMin(_e){return _e===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):_e?this._weekdaysMin[_e.day()]:this._weekdaysMin}function handleStrictParse$1(_e,et,rt){var st,ct,ut,ft=_e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],st=0;st<7;++st)ut=createUTC([2e3,1]).day(st),this._minWeekdaysParse[st]=this.weekdaysMin(ut,"").toLocaleLowerCase(),this._shortWeekdaysParse[st]=this.weekdaysShort(ut,"").toLocaleLowerCase(),this._weekdaysParse[st]=this.weekdays(ut,"").toLocaleLowerCase();return rt?et==="dddd"?(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1?ct:null):et==="ddd"?(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1?ct:null):(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null):et==="dddd"?(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null)):et==="ddd"?(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1?ct:null)):(ct=indexOf.call(this._minWeekdaysParse,ft),ct!==-1||(ct=indexOf.call(this._weekdaysParse,ft),ct!==-1)?ct:(ct=indexOf.call(this._shortWeekdaysParse,ft),ct!==-1?ct:null))}function localeWeekdaysParse(_e,et,rt){var st,ct,ut;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,_e,et,rt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++){if(ct=createUTC([2e3,1]).day(st),rt&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(ct,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(ct,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(ct,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(ut="^"+this.weekdays(ct,"")+"|^"+this.weekdaysShort(ct,"")+"|^"+this.weekdaysMin(ct,""),this._weekdaysParse[st]=new RegExp(ut.replace(".",""),"i")),rt&&et==="dddd"&&this._fullWeekdaysParse[st].test(_e))return st;if(rt&&et==="ddd"&&this._shortWeekdaysParse[st].test(_e))return st;if(rt&&et==="dd"&&this._minWeekdaysParse[st].test(_e))return st;if(!rt&&this._weekdaysParse[st].test(_e))return st}}function getSetDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=get$1(this,"Day");return _e!=null?(_e=parseWeekday(_e,this.localeData()),this.add(_e-et,"d")):et}function getSetLocaleDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=(this.day()+7-this.localeData()._week.dow)%7;return _e==null?et:this.add(_e-et,"d")}function getSetISODayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;if(_e!=null){var et=parseIsoWeekday(_e,this.localeData());return this.day(this.day()%7?et:et-7)}else return this.day()||7}function weekdaysRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&_e?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function _e(_t,wt){return wt.length-_t.length}var et=[],rt=[],st=[],ct=[],ut,ft,gt,xt,$t;for(ut=0;ut<7;ut++)ft=createUTC([2e3,1]).day(ut),gt=regexEscape(this.weekdaysMin(ft,"")),xt=regexEscape(this.weekdaysShort(ft,"")),$t=regexEscape(this.weekdays(ft,"")),et.push(gt),rt.push(xt),st.push($t),ct.push(gt),ct.push(xt),ct.push($t);et.sort(_e),rt.sort(_e),st.sort(_e),ct.sort(_e),this._weekdaysRegex=new RegExp("^("+ct.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+st.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+et.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(_e,et){addFormatToken(_e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),et)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(_e,et){return et._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(_e,et,rt){var st=toInt(_e);et[HOUR]=st===24?0:st});addParseToken(["a","A"],function(_e,et,rt){rt._isPm=rt._locale.isPM(_e),rt._meridiem=_e});addParseToken(["h","hh"],function(_e,et,rt){et[HOUR]=toInt(_e),getParsingFlags(rt).bigHour=!0});addParseToken("hmm",function(_e,et,rt){var st=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st)),getParsingFlags(rt).bigHour=!0});addParseToken("hmmss",function(_e,et,rt){var st=_e.length-4,ct=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st,2)),et[SECOND]=toInt(_e.substr(ct)),getParsingFlags(rt).bigHour=!0});addParseToken("Hmm",function(_e,et,rt){var st=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st))});addParseToken("Hmmss",function(_e,et,rt){var st=_e.length-4,ct=_e.length-2;et[HOUR]=toInt(_e.substr(0,st)),et[MINUTE]=toInt(_e.substr(st,2)),et[SECOND]=toInt(_e.substr(ct))});function localeIsPM(_e){return(_e+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(_e,et,rt){return _e>11?rt?"pm":"PM":rt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(_e,et){var rt,st=Math.min(_e.length,et.length);for(rt=0;rt0;){if(ct=loadLocale(ut.slice(0,rt).join("-")),ct)return ct;if(st&&st.length>=rt&&commonPrefix(ut,st)>=rt-1)break;rt--}et++}return globalLocale}function isLocaleNameSane(_e){return!!(_e&&_e.match("^[^/\\\\]*$"))}function loadLocale(_e){var et=null,rt;if(locales[_e]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(_e))try{et=globalLocale._abbr,rt=require,rt("./locale/"+_e),getSetGlobalLocale(et)}catch{locales[_e]=null}return locales[_e]}function getSetGlobalLocale(_e,et){var rt;return _e&&(isUndefined(et)?rt=getLocale(_e):rt=defineLocale(_e,et),rt?globalLocale=rt:typeof console<"u"&&console.warn&&console.warn("Locale "+_e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(_e,et){if(et!==null){var rt,st=baseConfig;if(et.abbr=_e,locales[_e]!=null)deprecateSimple("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."),st=locales[_e]._config;else if(et.parentLocale!=null)if(locales[et.parentLocale]!=null)st=locales[et.parentLocale]._config;else if(rt=loadLocale(et.parentLocale),rt!=null)st=rt._config;else return localeFamilies[et.parentLocale]||(localeFamilies[et.parentLocale]=[]),localeFamilies[et.parentLocale].push({name:_e,config:et}),null;return locales[_e]=new Locale(mergeConfigs(st,et)),localeFamilies[_e]&&localeFamilies[_e].forEach(function(ct){defineLocale(ct.name,ct.config)}),getSetGlobalLocale(_e),locales[_e]}else return delete locales[_e],null}function updateLocale(_e,et){if(et!=null){var rt,st,ct=baseConfig;locales[_e]!=null&&locales[_e].parentLocale!=null?locales[_e].set(mergeConfigs(locales[_e]._config,et)):(st=loadLocale(_e),st!=null&&(ct=st._config),et=mergeConfigs(ct,et),st==null&&(et.abbr=_e),rt=new Locale(et),rt.parentLocale=locales[_e],locales[_e]=rt),getSetGlobalLocale(_e)}else locales[_e]!=null&&(locales[_e].parentLocale!=null?(locales[_e]=locales[_e].parentLocale,_e===getSetGlobalLocale()&&getSetGlobalLocale(_e)):locales[_e]!=null&&delete locales[_e]);return locales[_e]}function getLocale(_e){var et;if(_e&&_e._locale&&_e._locale._abbr&&(_e=_e._locale._abbr),!_e)return globalLocale;if(!isArray(_e)){if(et=loadLocale(_e),et)return et;_e=[_e]}return chooseLocale(_e)}function listLocales(){return keys(locales)}function checkOverflow(_e){var et,rt=_e._a;return rt&&getParsingFlags(_e).overflow===-2&&(et=rt[MONTH]<0||rt[MONTH]>11?MONTH:rt[DATE]<1||rt[DATE]>daysInMonth(rt[YEAR],rt[MONTH])?DATE:rt[HOUR]<0||rt[HOUR]>24||rt[HOUR]===24&&(rt[MINUTE]!==0||rt[SECOND]!==0||rt[MILLISECOND]!==0)?HOUR:rt[MINUTE]<0||rt[MINUTE]>59?MINUTE:rt[SECOND]<0||rt[SECOND]>59?SECOND:rt[MILLISECOND]<0||rt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(_e)._overflowDayOfYear&&(etDATE)&&(et=DATE),getParsingFlags(_e)._overflowWeeks&&et===-1&&(et=WEEK),getParsingFlags(_e)._overflowWeekday&&et===-1&&(et=WEEKDAY),getParsingFlags(_e).overflow=et),_e}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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}))$/,obsOffsets={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 configFromISO(_e){var et,rt,st=_e._i,ct=extendedIsoRegex.exec(st)||basicIsoRegex.exec(st),ut,ft,gt,xt,$t=isoDates.length,_t=isoTimes.length;if(ct){for(getParsingFlags(_e).iso=!0,et=0,rt=$t;etdaysInYear(ft)||_e._dayOfYear===0)&&(getParsingFlags(_e)._overflowDayOfYear=!0),rt=createUTCDate(ft,0,_e._dayOfYear),_e._a[MONTH]=rt.getUTCMonth(),_e._a[DATE]=rt.getUTCDate()),et=0;et<3&&_e._a[et]==null;++et)_e._a[et]=st[et]=ct[et];for(;et<7;et++)_e._a[et]=st[et]=_e._a[et]==null?et===2?1:0:_e._a[et];_e._a[HOUR]===24&&_e._a[MINUTE]===0&&_e._a[SECOND]===0&&_e._a[MILLISECOND]===0&&(_e._nextDay=!0,_e._a[HOUR]=0),_e._d=(_e._useUTC?createUTCDate:createDate).apply(null,st),ut=_e._useUTC?_e._d.getUTCDay():_e._d.getDay(),_e._tzm!=null&&_e._d.setUTCMinutes(_e._d.getUTCMinutes()-_e._tzm),_e._nextDay&&(_e._a[HOUR]=24),_e._w&&typeof _e._w.d<"u"&&_e._w.d!==ut&&(getParsingFlags(_e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(_e){var et,rt,st,ct,ut,ft,gt,xt,$t;et=_e._w,et.GG!=null||et.W!=null||et.E!=null?(ut=1,ft=4,rt=defaults$1(et.GG,_e._a[YEAR],weekOfYear(createLocal(),1,4).year),st=defaults$1(et.W,1),ct=defaults$1(et.E,1),(ct<1||ct>7)&&(xt=!0)):(ut=_e._locale._week.dow,ft=_e._locale._week.doy,$t=weekOfYear(createLocal(),ut,ft),rt=defaults$1(et.gg,_e._a[YEAR],$t.year),st=defaults$1(et.w,$t.week),et.d!=null?(ct=et.d,(ct<0||ct>6)&&(xt=!0)):et.e!=null?(ct=et.e+ut,(et.e<0||et.e>6)&&(xt=!0)):ct=ut),st<1||st>weeksInYear(rt,ut,ft)?getParsingFlags(_e)._overflowWeeks=!0:xt!=null?getParsingFlags(_e)._overflowWeekday=!0:(gt=dayOfYearFromWeeks(rt,st,ct,ut,ft),_e._a[YEAR]=gt.year,_e._dayOfYear=gt.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(_e){if(_e._f===hooks.ISO_8601){configFromISO(_e);return}if(_e._f===hooks.RFC_2822){configFromRFC2822(_e);return}_e._a=[],getParsingFlags(_e).empty=!0;var et=""+_e._i,rt,st,ct,ut,ft,gt=et.length,xt=0,$t,_t;for(ct=expandFormat(_e._f,_e._locale).match(formattingTokens)||[],_t=ct.length,rt=0;rt<_t;rt++)ut=ct[rt],st=(et.match(getParseRegexForToken(ut,_e))||[])[0],st&&(ft=et.substr(0,et.indexOf(st)),ft.length>0&&getParsingFlags(_e).unusedInput.push(ft),et=et.slice(et.indexOf(st)+st.length),xt+=st.length),formatTokenFunctions[ut]?(st?getParsingFlags(_e).empty=!1:getParsingFlags(_e).unusedTokens.push(ut),addTimeToArrayFromToken(ut,st,_e)):_e._strict&&!st&&getParsingFlags(_e).unusedTokens.push(ut);getParsingFlags(_e).charsLeftOver=gt-xt,et.length>0&&getParsingFlags(_e).unusedInput.push(et),_e._a[HOUR]<=12&&getParsingFlags(_e).bigHour===!0&&_e._a[HOUR]>0&&(getParsingFlags(_e).bigHour=void 0),getParsingFlags(_e).parsedDateParts=_e._a.slice(0),getParsingFlags(_e).meridiem=_e._meridiem,_e._a[HOUR]=meridiemFixWrap(_e._locale,_e._a[HOUR],_e._meridiem),$t=getParsingFlags(_e).era,$t!==null&&(_e._a[YEAR]=_e._locale.erasConvertYear($t,_e._a[YEAR])),configFromArray(_e),checkOverflow(_e)}function meridiemFixWrap(_e,et,rt){var st;return rt==null?et:_e.meridiemHour!=null?_e.meridiemHour(et,rt):(_e.isPM!=null&&(st=_e.isPM(rt),st&&et<12&&(et+=12),!st&&et===12&&(et=0)),et)}function configFromStringAndArray(_e){var et,rt,st,ct,ut,ft,gt=!1,xt=_e._f.length;if(xt===0){getParsingFlags(_e).invalidFormat=!0,_e._d=new Date(NaN);return}for(ct=0;ctthis?this:_e:createInvalid()});function pickBy(_e,et){var rt,st;if(et.length===1&&isArray(et[0])&&(et=et[0]),!et.length)return createLocal();for(rt=et[0],st=1;stthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var _e={},et;return copyConfig(_e,this),_e=prepareConfig(_e),_e._a?(et=_e._isUTC?createUTC(_e._a):createLocal(_e._a),this._isDSTShifted=this.isValid()&&compareArrays(_e._a,et.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(_e,et){var rt=_e,st=null,ct,ut,ft;return isDuration(_e)?rt={ms:_e._milliseconds,d:_e._days,M:_e._months}:isNumber(_e)||!isNaN(+_e)?(rt={},et?rt[et]=+_e:rt.milliseconds=+_e):(st=aspNetRegex.exec(_e))?(ct=st[1]==="-"?-1:1,rt={y:0,d:toInt(st[DATE])*ct,h:toInt(st[HOUR])*ct,m:toInt(st[MINUTE])*ct,s:toInt(st[SECOND])*ct,ms:toInt(absRound(st[MILLISECOND]*1e3))*ct}):(st=isoRegex.exec(_e))?(ct=st[1]==="-"?-1:1,rt={y:parseIso(st[2],ct),M:parseIso(st[3],ct),w:parseIso(st[4],ct),d:parseIso(st[5],ct),h:parseIso(st[6],ct),m:parseIso(st[7],ct),s:parseIso(st[8],ct)}):rt==null?rt={}:typeof rt=="object"&&("from"in rt||"to"in rt)&&(ft=momentsDifference(createLocal(rt.from),createLocal(rt.to)),rt={},rt.ms=ft.milliseconds,rt.M=ft.months),ut=new Duration(rt),isDuration(_e)&&hasOwnProp(_e,"_locale")&&(ut._locale=_e._locale),isDuration(_e)&&hasOwnProp(_e,"_isValid")&&(ut._isValid=_e._isValid),ut}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(_e,et){var rt=_e&&parseFloat(_e.replace(",","."));return(isNaN(rt)?0:rt)*et}function positiveMomentsDifference(_e,et){var rt={};return rt.months=et.month()-_e.month()+(et.year()-_e.year())*12,_e.clone().add(rt.months,"M").isAfter(et)&&--rt.months,rt.milliseconds=+et-+_e.clone().add(rt.months,"M"),rt}function momentsDifference(_e,et){var rt;return _e.isValid()&&et.isValid()?(et=cloneWithOffset(et,_e),_e.isBefore(et)?rt=positiveMomentsDifference(_e,et):(rt=positiveMomentsDifference(et,_e),rt.milliseconds=-rt.milliseconds,rt.months=-rt.months),rt):{milliseconds:0,months:0}}function createAdder(_e,et){return function(rt,st){var ct,ut;return st!==null&&!isNaN(+st)&&(deprecateSimple(et,"moment()."+et+"(period, number) is deprecated. Please use moment()."+et+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ut=rt,rt=st,st=ut),ct=createDuration(rt,st),addSubtract(this,ct,_e),this}}function addSubtract(_e,et,rt,st){var ct=et._milliseconds,ut=absRound(et._days),ft=absRound(et._months);_e.isValid()&&(st=st??!0,ft&&setMonth(_e,get$1(_e,"Month")+ft*rt),ut&&set$1$1(_e,"Date",get$1(_e,"Date")+ut*rt),ct&&_e._d.setTime(_e._d.valueOf()+ct*rt),st&&hooks.updateOffset(_e,ut||ft))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(_e){return typeof _e=="string"||_e instanceof String}function isMomentInput(_e){return isMoment(_e)||isDate(_e)||isString(_e)||isNumber(_e)||isNumberOrStringArray(_e)||isMomentInputObject(_e)||_e===null||_e===void 0}function isMomentInputObject(_e){var et=isObject$2(_e)&&!isObjectEmpty(_e),rt=!1,st=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ct,ut,ft=st.length;for(ct=0;ctrt.valueOf():rt.valueOf()9999?formatMoment(rt,et?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?et?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(rt,"Z")):formatMoment(rt,et?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var _e="moment",et="",rt,st,ct,ut;return this.isLocal()||(_e=this.utcOffset()===0?"moment.utc":"moment.parseZone",et="Z"),rt="["+_e+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ct="-MM-DD[T]HH:mm:ss.SSS",ut=et+'[")]',this.format(rt+st+ct+ut)}function format(_e){_e||(_e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var et=formatMoment(this,_e);return this.localeData().postformat(et)}function from(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({to:this,from:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function fromNow(_e){return this.from(createLocal(),_e)}function to(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({from:this,to:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function toNow(_e){return this.to(createLocal(),_e)}function locale$2(_e){var et;return _e===void 0?this._locale._abbr:(et=getLocale(_e),et!=null&&(this._locale=et),this)}var lang=deprecate("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 localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(_e,et){return(_e%et+et)%et}function localStartOfDate(_e,et,rt){return _e<100&&_e>=0?new Date(_e+400,et,rt)-MS_PER_400_YEARS:new Date(_e,et,rt).valueOf()}function utcStartOfDate(_e,et,rt){return _e<100&&_e>=0?Date.UTC(_e+400,et,rt)-MS_PER_400_YEARS:Date.UTC(_e,et,rt)}function startOf(_e){var et,rt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=rt(this.year(),0,1);break;case"quarter":et=rt(this.year(),this.month()-this.month()%3,1);break;case"month":et=rt(this.year(),this.month(),1);break;case"week":et=rt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":et=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":et=rt(this.year(),this.month(),this.date());break;case"hour":et=this._d.valueOf(),et-=mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":et=this._d.valueOf(),et-=mod$1(et,MS_PER_MINUTE);break;case"second":et=this._d.valueOf(),et-=mod$1(et,MS_PER_SECOND);break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function endOf(_e){var et,rt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=rt(this.year()+1,0,1)-1;break;case"quarter":et=rt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":et=rt(this.year(),this.month()+1,1)-1;break;case"week":et=rt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":et=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":et=rt(this.year(),this.month(),this.date()+1)-1;break;case"hour":et=this._d.valueOf(),et+=MS_PER_HOUR-mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":et=this._d.valueOf(),et+=MS_PER_MINUTE-mod$1(et,MS_PER_MINUTE)-1;break;case"second":et=this._d.valueOf(),et+=MS_PER_SECOND-mod$1(et,MS_PER_SECOND)-1;break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$3(){var _e=this;return[_e.year(),_e.month(),_e.date(),_e.hour(),_e.minute(),_e.second(),_e.millisecond()]}function toObject(){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 toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(_e,et,rt,st){var ct=rt._locale.erasParse(_e,st,rt._strict);ct?getParsingFlags(rt).era=ct:getParsingFlags(rt).invalidEra=_e});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(_e,et,rt,st){var ct;rt._locale._eraYearOrdinalRegex&&(ct=_e.match(rt._locale._eraYearOrdinalRegex)),rt._locale.eraYearOrdinalParse?et[YEAR]=rt._locale.eraYearOrdinalParse(_e,ct):et[YEAR]=parseInt(_e,10)});function localeEras(_e,et){var rt,st,ct,ut=this._eras||getLocale("en")._eras;for(rt=0,st=ut.length;rt=0)return ut[st]}function localeErasConvertYear(_e,et){var rt=_e.since<=_e.until?1:-1;return et===void 0?hooks(_e.since).year():hooks(_e.since).year()+(et-_e.offset)*rt}function getEraName(){var _e,et,rt,st=this.localeData().eras();for(_e=0,et=st.length;_eut&&(et=ut),setWeekAll.call(this,_e,et,rt,st,ct))}function setWeekAll(_e,et,rt,st,ct){var ut=dayOfYearFromWeeks(_e,et,rt,st,ct),ft=createUTCDate(ut.year,0,ut.dayOfYear);return this.year(ft.getUTCFullYear()),this.month(ft.getUTCMonth()),this.date(ft.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(_e,et){et[MONTH]=(toInt(_e)-1)*3});function getSetQuarter(_e){return _e==null?Math.ceil((this.month()+1)/3):this.month((_e-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(_e,et){return _e?et._dayOfMonthOrdinalParse||et._ordinalParse:et._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(_e,et){et[DATE]=toInt(_e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(_e,et,rt){rt._dayOfYear=toInt(_e)});function getSetDayOfYear(_e){var et=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return _e==null?et:this.add(_e-et,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(_e,et){et[MILLISECOND]=toInt(("0."+_e)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add;proto$1.calendar=calendar$1;proto$1.clone=clone;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format;proto$1.from=from;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale$2;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray$3;proto$1.toObject=toObject;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$1;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(_e){return createLocal(_e*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(_e){return _e}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$1;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(_e,et,rt,st){var ct=getLocale(),ut=createUTC().set(st,et);return ct[rt](ut,_e)}function listMonthsImpl(_e,et,rt){if(isNumber(_e)&&(et=_e,_e=void 0),_e=_e||"",et!=null)return get$1$1(_e,et,rt,"month");var st,ct=[];for(st=0;st<12;st++)ct[st]=get$1$1(_e,st,rt,"month");return ct}function listWeekdaysImpl(_e,et,rt,st){typeof _e=="boolean"?(isNumber(et)&&(rt=et,et=void 0),et=et||""):(et=_e,rt=et,_e=!1,isNumber(et)&&(rt=et,et=void 0),et=et||"");var ct=getLocale(),ut=_e?ct._week.dow:0,ft,gt=[];if(rt!=null)return get$1$1(et,(rt+ut)%7,st,"day");for(ft=0;ft<7;ft++)gt[ft]=get$1$1(et,(ft+ut)%7,st,"day");return gt}function listMonths(_e,et){return listMonthsImpl(_e,et,"months")}function listMonthsShort(_e,et){return listMonthsImpl(_e,et,"monthsShort")}function listWeekdays(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdays")}function listWeekdaysShort(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdaysShort")}function listWeekdaysMin(_e,et,rt){return listWeekdaysImpl(_e,et,rt,"weekdaysMin")}getSetGlobalLocale("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 et=_e%10,rt=toInt(_e%100/10)===1?"th":et===1?"st":et===2?"nd":et===3?"rd":"th";return _e+rt}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var _e=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),_e.milliseconds=mathAbs(_e.milliseconds),_e.seconds=mathAbs(_e.seconds),_e.minutes=mathAbs(_e.minutes),_e.hours=mathAbs(_e.hours),_e.months=mathAbs(_e.months),_e.years=mathAbs(_e.years),this}function addSubtract$1(_e,et,rt,st){var ct=createDuration(et,rt);return _e._milliseconds+=st*ct._milliseconds,_e._days+=st*ct._days,_e._months+=st*ct._months,_e._bubble()}function add$1(_e,et){return addSubtract$1(this,_e,et,1)}function subtract$1(_e,et){return addSubtract$1(this,_e,et,-1)}function absCeil(_e){return _e<0?Math.floor(_e):Math.ceil(_e)}function bubble(){var _e=this._milliseconds,et=this._days,rt=this._months,st=this._data,ct,ut,ft,gt,xt;return _e>=0&&et>=0&&rt>=0||_e<=0&&et<=0&&rt<=0||(_e+=absCeil(monthsToDays(rt)+et)*864e5,et=0,rt=0),st.milliseconds=_e%1e3,ct=absFloor(_e/1e3),st.seconds=ct%60,ut=absFloor(ct/60),st.minutes=ut%60,ft=absFloor(ut/60),st.hours=ft%24,et+=absFloor(ft/24),xt=absFloor(daysToMonths(et)),rt+=xt,et-=absCeil(monthsToDays(xt)),gt=absFloor(rt/12),rt%=12,st.days=et,st.months=rt,st.years=gt,this}function daysToMonths(_e){return _e*4800/146097}function monthsToDays(_e){return _e*146097/4800}function as(_e){if(!this.isValid())return NaN;var et,rt,st=this._milliseconds;if(_e=normalizeUnits(_e),_e==="month"||_e==="quarter"||_e==="year")switch(et=this._days+st/864e5,rt=this._months+daysToMonths(et),_e){case"month":return rt;case"quarter":return rt/3;case"year":return rt/12}else switch(et=this._days+Math.round(monthsToDays(this._months)),_e){case"week":return et/7+st/6048e5;case"day":return et+st/864e5;case"hour":return et*24+st/36e5;case"minute":return et*1440+st/6e4;case"second":return et*86400+st/1e3;case"millisecond":return Math.floor(et*864e5)+st;default:throw new Error("Unknown unit "+_e)}}function makeAs(_e){return function(){return this.as(_e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1(){return createDuration(this)}function get$2(_e){return _e=normalizeUnits(_e),this.isValid()?this[_e+"s"]():NaN}function makeGetter(_e){return function(){return this.isValid()?this._data[_e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(_e,et,rt,st,ct){return ct.relativeTime(et||1,!!rt,_e,st)}function relativeTime$1(_e,et,rt,st){var ct=createDuration(_e).abs(),ut=round(ct.as("s")),ft=round(ct.as("m")),gt=round(ct.as("h")),xt=round(ct.as("d")),$t=round(ct.as("M")),_t=round(ct.as("w")),wt=round(ct.as("y")),Tt=ut<=rt.ss&&["s",ut]||ut0,Tt[4]=st,substituteTimeAgo.apply(null,Tt)}function getSetRelativeTimeRounding(_e){return _e===void 0?round:typeof _e=="function"?(round=_e,!0):!1}function getSetRelativeTimeThreshold(_e,et){return thresholds[_e]===void 0?!1:et===void 0?thresholds[_e]:(thresholds[_e]=et,_e==="s"&&(thresholds.ss=et-1),!0)}function humanize(_e,et){if(!this.isValid())return this.localeData().invalidDate();var rt=!1,st=thresholds,ct,ut;return typeof _e=="object"&&(et=_e,_e=!1),typeof _e=="boolean"&&(rt=_e),typeof et=="object"&&(st=Object.assign({},thresholds,et),et.s!=null&&et.ss==null&&(st.ss=et.s-1)),ct=this.localeData(),ut=relativeTime$1(this,!rt,st,ct),rt&&(ut=ct.pastFuture(+this,ut)),ct.postformat(ut)}var abs$1=Math.abs;function sign(_e){return(_e>0)-(_e<0)||+_e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var _e=abs$1(this._milliseconds)/1e3,et=abs$1(this._days),rt=abs$1(this._months),st,ct,ut,ft,gt=this.asSeconds(),xt,$t,_t,wt;return gt?(st=absFloor(_e/60),ct=absFloor(st/60),_e%=60,st%=60,ut=absFloor(rt/12),rt%=12,ft=_e?_e.toFixed(3).replace(/\.?0+$/,""):"",xt=gt<0?"-":"",$t=sign(this._months)!==sign(gt)?"-":"",_t=sign(this._days)!==sign(gt)?"-":"",wt=sign(this._milliseconds)!==sign(gt)?"-":"",xt+"P"+(ut?$t+ut+"Y":"")+(rt?$t+rt+"M":"")+(et?_t+et+"D":"")+(ct||st||_e?"T":"")+(ct?wt+ct+"H":"")+(st?wt+st+"M":"")+(_e?wt+ft+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale$2;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(_e,et,rt){rt._d=new Date(parseFloat(_e)*1e3)});addParseToken("x",function(_e,et,rt){rt._d=new Date(toInt(_e))});//! moment.js +hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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 getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let _e=0;_e<256;++_e)byteToHex.push((_e+256).toString(16).slice(1));function unsafeStringify(_e,et=0){return byteToHex[_e[et+0]]+byteToHex[_e[et+1]]+byteToHex[_e[et+2]]+byteToHex[_e[et+3]]+"-"+byteToHex[_e[et+4]]+byteToHex[_e[et+5]]+"-"+byteToHex[_e[et+6]]+byteToHex[_e[et+7]]+"-"+byteToHex[_e[et+8]]+byteToHex[_e[et+9]]+"-"+byteToHex[_e[et+10]]+byteToHex[_e[et+11]]+byteToHex[_e[et+12]]+byteToHex[_e[et+13]]+byteToHex[_e[et+14]]+byteToHex[_e[et+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(_e,et,rt){if(native.randomUUID&&!et&&!_e)return native.randomUUID();_e=_e||{};const st=_e.random||(_e.rng||rng)();if(st[6]=st[6]&15|64,st[8]=st[8]&63|128,et){rt=rt||0;for(let ct=0;ct<16;++ct)et[rt+ct]=st[ct];return et}return unsafeStringify(st)}const version$2="0.1.1";function xml$1(_e){return _e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function xml(_e){var et,rt,st,ct,ut,ft,gt;const xt=(et=_e.meta)===null||et===void 0?void 0:et.title,$t=(rt=_e.meta)===null||rt===void 0?void 0:rt.creator,_t=(st=_e.meta)===null||st===void 0?void 0:st.source,wt=(ut=(ct=_e.meta)===null||ct===void 0?void 0:ct.license)===null||ut===void 0?void 0:ut.url,Tt=text(_e);return!xt&&!$t&&!_t&&!wt&&!Tt?"":''+(xt?`${xml$1(xt)}`:"")+($t?`${xml$1($t)}`:"")+(_t?`${xml$1((gt=(ft=_e.meta)===null||ft===void 0?void 0:ft.source)!==null&>!==void 0?gt:"")}`:"")+(wt?`${xml$1(wt)}`:"")+(Tt?`${xml$1(Tt)}`:"")+""}function text(_e){var et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At;let jt=!((et=_e.meta)===null||et===void 0)&&et.title?`„${(rt=_e.meta)===null||rt===void 0?void 0:rt.title}”`:"Design",Nt=`„${(ct=(st=_e.meta)===null||st===void 0?void 0:st.creator)!==null&&ct!==void 0?ct:"Unknown"}”`;!((ut=_e.meta)===null||ut===void 0)&&ut.source&&(jt+=` (${_e.meta.source})`);let kt="";return((gt=(ft=_e.meta)===null||ft===void 0?void 0:ft.license)===null||gt===void 0?void 0:gt.name)!=="MIT"&&((xt=_e.meta)===null||xt===void 0?void 0:xt.creator)!=="DiceBear"&&(!(($t=_e.meta)===null||$t===void 0)&&$t.title)&&(kt+="Remix of "),kt+=`${jt} by ${Nt}`,!((wt=(_t=_e.meta)===null||_t===void 0?void 0:_t.license)===null||wt===void 0)&&wt.name&&(kt+=`, licensed under „${(Rt=(Tt=_e.meta)===null||Tt===void 0?void 0:Tt.license)===null||Rt===void 0?void 0:Rt.name}”`,!((At=(It=_e.meta)===null||It===void 0?void 0:It.license)===null||At===void 0)&&At.url&&(kt+=` (${_e.meta.license.url})`)),kt}function exif(_e){var et,rt,st,ct,ut,ft,gt,xt,$t;const _t=text(_e);return{"IPTC:ObjectName":(et=_e.meta)===null||et===void 0?void 0:et.title,"XMP-dc:Title":(rt=_e.meta)===null||rt===void 0?void 0:rt.title,"IPTC:CopyrightNotice":_t,"XMP-dc:Rights":_t,"IPTC:By-line":(st=_e.meta)===null||st===void 0?void 0:st.creator,"XMP-dc:Creator":(ct=_e.meta)===null||ct===void 0?void 0:ct.creator,"IPTC:Credit":(ut=_e.meta)===null||ut===void 0?void 0:ut.creator,"XMP-photoshop:Credit":(ft=_e.meta)===null||ft===void 0?void 0:ft.creator,"XMP-plus:LicensorURL":(gt=_e.meta)===null||gt===void 0?void 0:gt.source,"XMP-xmpRights:WebStatement":($t=(xt=_e.meta)===null||xt===void 0?void 0:xt.license)===null||$t===void 0?void 0:$t.url}}const MIN=-2147483648,MAX=2147483647;function xorshift(_e){return _e^=_e<<13,_e^=_e>>17,_e^=_e<<5,_e}function hashSeed(_e){let et=0;for(let rt=0;rt<_e.length;rt++)et=(et<<5)-et+_e.charCodeAt(rt)|0,et=xorshift(et);return et}function create$1(_e=""){_e=_e.toString();let et=hashSeed(_e)||1;const rt=()=>et=xorshift(et),st=(ct,ut)=>Math.floor((rt()-MIN)/(MAX-MIN)*(ut+1-ct)+ct);return{seed:_e,next:rt,bool(ct=50){return st(1,100)<=ct},integer(ct,ut){return st(ct,ut)},pick(ct,ut){var ft;return ct.length===0?(rt(),ut):(ft=ct[st(0,ct.length-1)])!==null&&ft!==void 0?ft:ut},shuffle(ct){const ut=create$1(rt().toString()),ft=[...ct];for(let gt=ft.length-1;gt>0;gt--){const xt=ut.integer(0,gt);[ft[gt],ft[xt]]=[ft[xt],ft[gt]]}return ft},string(ct,ut="abcdefghijklmnopqrstuvwxyz1234567890"){const ft=create$1(rt().toString());let gt="";for(let xt=0;xt`;switch(st){case"solid":return $t+_e.body;case"gradientLinear":return``+_e.body}}function addScale(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e),ft=et?(et-100)/100:0,gt=(rt/2+ct)*ft*-1,xt=(st/2+ut)*ft*-1;return`${_e.body}`}function addTranslate(_e,et,rt){let st=getViewBox(_e),ct=(st.width+st.x*2)*((et??0)/100),ut=(st.height+st.y*2)*((rt??0)/100);return`${_e.body}`}function addRotate(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e);return`${_e.body}`}function addFlip(_e){let{width:et,x:rt}=getViewBox(_e);return`${_e.body}`}function addViewboxMask(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e),ft=et?rt*et/100:0,gt=et?st*et/100:0;return`${_e.body}`}function createAttrString(_e){const et={xmlns:"http://www.w3.org/2000/svg",..._e.attributes};return Object.keys(et).map(rt=>`${xml$1(rt)}="${xml$1(et[rt])}"`).join(" ")}function randomizeIds(_e){const et=create$1(Math.random().toString()),rt={};return _e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(st,ct,ut,ft)=>(rt[ut]=rt[ut]||et.string(8),`${ct}${rt[ut]}${ft}`))}const schema$1={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 defaults(_e){var et;let rt={},st=(et=_e.properties)!==null&&et!==void 0?et:{};return Object.keys(st).forEach(ct=>{let ut=st[ct];typeof ut=="object"&&ut.default!==void 0&&(Array.isArray(ut.default)?rt[ct]=[...ut.default]:typeof ut.default=="object"?rt[ct]={...ut.default}:rt[ct]=ut.default)}),rt}function merge(_e,et){var rt;let st={...defaults(schema$1),...defaults((rt=_e.schema)!==null&&rt!==void 0?rt:{}),...et};return JSON.parse(JSON.stringify(st))}function getMimeType(_e){switch(_e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${_e}`;default:throw new Error(`Unsupported format: ${_e}`)}}function ensureSize(_e,et=512){let rt=et;return _e=_e.replace(/]*)/,(st,ct)=>{const ut=ct.match(/width="([^"]+)"/);return ut&&(rt=parseInt(ut[1])),ct.match(/width="([^"]+)"/)?ct=ct.replace(/width="([^"]+)"/,`width="${rt}"`):ct+=` width="${rt}"`,ct.match(/height="([^"]+)"/)?ct=ct.replace(/height="([^"]+)"/,`height="${rt}"`):ct+=` height="${rt}"`,`toDataUri(_e,et,rt),toFile:st=>toFile(st,_e,et,rt),toArrayBuffer:()=>toArrayBuffer(_e,et,rt)}};async function toDataUri(_e,et,rt){return et==="svg"?`data:${getMimeType(et)};utf8,${encodeURIComponent(_e)}`:(await toCanvas(_e,et,rt)).toDataURL(getMimeType(et))}async function toArrayBuffer(_e,et,rt){if(et==="svg")return getEncoder().encode(_e);const st=await toCanvas(_e,et,rt);return await new Promise((ct,ut)=>{st.toBlob(ft=>{ft?ct(ft.arrayBuffer()):ut(new Error("Could not create blob"))},getMimeType(et))})}async function toFile(_e,et,rt,st){const ct=document.createElement("a");ct.href=await toDataUri(et,rt,st),ct.download=_e,ct.click(),ct.remove()}async function toCanvas(_e,et,rt){rt&&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:st,size:ct}=ensureSize(_e);const ut=document.createElement("canvas");ut.width=ct,ut.height=ct;const ft=ut.getContext("2d");if(ft===null)throw new Error("Could not get canvas context");et==="jpeg"&&(ft.fillStyle="white",ft.fillRect(0,0,ct,ct));var gt=document.createElement("img");return gt.width=ct,gt.height=ct,gt.setAttribute("src",await toDataUri(st,"svg")),new Promise((xt,$t)=>{gt.onload=()=>{ft.drawImage(gt,0,0,ct,ct),xt(ut)},gt.onerror=_t=>$t(_t)})}function convertColor$1(_e){return _e==="transparent"?_e:`#${_e}`}function getBackgroundColors(_e,et,rt){var st;let ct=_e.shuffle(et);ct.length<=1||et.length==2&&rt=="gradientLinear"?(ct=et,_e.next()):ct=_e.shuffle(et),ct.length===0&&(ct=["transparent"]);const ut=ct[0],ft=(st=ct[1])!==null&&st!==void 0?st:ct[0];return{primary:convertColor$1(ut),secondary:convertColor$1(ft)}}function createAvatar(_e,et={}){var rt,st,ct,ut,ft;et=merge(_e,et);const gt=create$1(et.seed),xt=_e.create({prng:gt,options:et}),$t=gt.pick((rt=et.backgroundType)!==null&&rt!==void 0?rt:[],"solid"),{primary:_t,secondary:wt}=getBackgroundColors(gt,(st=et.backgroundColor)!==null&&st!==void 0?st:[],$t),Tt=gt.integer(!((ct=et.backgroundRotation)===null||ct===void 0)&&ct.length?Math.min(...et.backgroundRotation):0,!((ut=et.backgroundRotation)===null||ut===void 0)&&ut.length?Math.max(...et.backgroundRotation):0);et.size&&(xt.attributes.width=et.size.toString(),xt.attributes.height=et.size.toString()),et.scale!==void 0&&et.scale!==100&&(xt.body=addScale(xt,et.scale)),et.flip&&(xt.body=addFlip(xt)),et.rotate&&(xt.body=addRotate(xt,et.rotate)),(et.translateX||et.translateY)&&(xt.body=addTranslate(xt,et.translateX,et.translateY)),_t!=="transparent"&&wt!=="transparent"&&(xt.body=addBackground(xt,_t,wt,$t,Tt)),(et.radius||et.clip)&&(xt.body=addViewboxMask(xt,(ft=et.radius)!==null&&ft!==void 0?ft:0)),et.randomizeIds&&(xt.body=randomizeIds(xt));const Rt=createAttrString(xt),It=xml(_e),At=exif(_e),jt=`${It}${xt.body}`;return{toString:()=>jt,toJson:()=>{var Nt;return{svg:jt,extra:{primaryBackgroundColor:_t,secondaryBackgroundColor:wt,backgroundType:$t,backgroundRotation:Tt,...(Nt=xt.extra)===null||Nt===void 0?void 0:Nt.call(xt)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(jt)}`,...toFormat(jt,"svg"),png:({includeExif:Nt=!1}={})=>toFormat(jt,"png",Nt?At:void 0),jpeg:({includeExif:Nt=!1}={})=>toFormat(jt,"jpeg",Nt?At:void 0)}}const hair={variant48:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant47:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant46:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant45:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant44:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant43:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant42:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant41:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant40:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant39:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant38:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant37:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant36:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant35:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant34:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant33:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant32:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant31:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant30:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant29:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant28:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant27:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant26:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant25:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant24:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant23:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant22:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant21:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant20:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant19:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant18:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant17:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant16:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant15:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant14:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant13:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant12:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant11:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant10:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant09:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant08:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant07:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant06:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant05:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant04:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant03:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant02:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant01:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`}},hairAccessories={flowers:(_e,et)=>``},head={variant04:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant03:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant02:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant01:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`}},eyes={variant24:(_e,et)=>``,variant23:(_e,et)=>``,variant22:(_e,et)=>``,variant21:(_e,et)=>``,variant20:(_e,et)=>``,variant19:(_e,et)=>``,variant18:(_e,et)=>``,variant17:(_e,et)=>``,variant16:(_e,et)=>``,variant15:(_e,et)=>``,variant14:(_e,et)=>``,variant13:(_e,et)=>``,variant12:(_e,et)=>``,variant11:(_e,et)=>``,variant10:(_e,et)=>``,variant09:(_e,et)=>``,variant08:(_e,et)=>``,variant07:(_e,et)=>``,variant06:(_e,et)=>``,variant05:(_e,et)=>``,variant04:(_e,et)=>``,variant03:(_e,et)=>``,variant02:(_e,et)=>``,variant01:(_e,et)=>``},eyebrows={variant13:(_e,et)=>``,variant12:(_e,et)=>``,variant11:(_e,et)=>``,variant10:(_e,et)=>``,variant09:(_e,et)=>``,variant08:(_e,et)=>``,variant07:(_e,et)=>``,variant06:(_e,et)=>``,variant05:(_e,et)=>``,variant04:(_e,et)=>``,variant03:(_e,et)=>``,variant02:(_e,et)=>``,variant01:(_e,et)=>``},earrings={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``},freckles={variant01:(_e,et)=>``},nose={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``,variant04:(_e,et)=>``,variant05:(_e,et)=>``,variant06:(_e,et)=>``},beard={variant01:(_e,et)=>``,variant02:(_e,et)=>``},mouth={happy01:(_e,et)=>``,happy02:(_e,et)=>``,happy03:(_e,et)=>``,happy04:(_e,et)=>``,happy05:(_e,et)=>``,happy06:(_e,et)=>``,happy07:(_e,et)=>``,happy08:(_e,et)=>``,happy18:(_e,et)=>``,happy09:(_e,et)=>``,happy10:(_e,et)=>``,happy11:(_e,et)=>``,happy12:(_e,et)=>``,happy13:(_e,et)=>``,happy14:(_e,et)=>``,happy17:(_e,et)=>``,happy15:(_e,et)=>``,happy16:(_e,et)=>``,sad01:(_e,et)=>``,sad02:(_e,et)=>``,sad03:(_e,et)=>``,sad04:(_e,et)=>``,sad05:(_e,et)=>``,sad06:(_e,et)=>``,sad07:(_e,et)=>``,sad08:(_e,et)=>``,sad09:(_e,et)=>``},glasses={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``,variant04:(_e,et)=>``,variant05:(_e,et)=>``},components=Object.defineProperty({__proto__:null,beard,earrings,eyebrows,eyes,freckles,glasses,hair,hairAccessories,head,mouth,nose},Symbol.toStringTag,{value:"Module"});function pickComponent({prng:_e,group:et,values:rt=[]}){const st=components,ct=_e.pick(rt);if(ct&&st[et][ct])return{name:ct,value:st[et][ct]}}function getComponents({prng:_e,options:et}){const rt=pickComponent({prng:_e,group:"hair",values:et.hair}),st=pickComponent({prng:_e,group:"hairAccessories",values:et.hairAccessories}),ct=pickComponent({prng:_e,group:"head",values:et.head}),ut=pickComponent({prng:_e,group:"eyes",values:et.eyes}),ft=pickComponent({prng:_e,group:"eyebrows",values:et.eyebrows}),gt=pickComponent({prng:_e,group:"earrings",values:et.earrings}),xt=pickComponent({prng:_e,group:"freckles",values:et.freckles}),$t=pickComponent({prng:_e,group:"nose",values:et.nose}),_t=pickComponent({prng:_e,group:"beard",values:et.beard}),wt=pickComponent({prng:_e,group:"mouth",values:et.mouth}),Tt=pickComponent({prng:_e,group:"glasses",values:et.glasses});return{hair:rt,hairAccessories:_e.bool(et.hairAccessoriesProbability)?st:void 0,head:ct,eyes:ut,eyebrows:ft,earrings:_e.bool(et.earringsProbability)?gt:void 0,freckles:_e.bool(et.frecklesProbability)?xt:void 0,nose:$t,beard:_e.bool(et.beardProbability)?_t:void 0,mouth:wt,glasses:_e.bool(et.glassesProbability)?Tt:void 0}}function convertColor(_e){return _e==="transparent"?_e:`#${_e}`}function getColors({prng:_e,options:et}){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt;return{hair:convertColor(_e.pick((rt=et.hairColor)!==null&&rt!==void 0?rt:[],"transparent")),skin:convertColor(_e.pick((st=et.skinColor)!==null&&st!==void 0?st:[],"transparent")),earrings:convertColor(_e.pick((ct=et.earringsColor)!==null&&ct!==void 0?ct:[],"transparent")),eyebrows:convertColor(_e.pick((ut=et.eyebrowsColor)!==null&&ut!==void 0?ut:[],"transparent")),eyes:convertColor(_e.pick((ft=et.eyesColor)!==null&&ft!==void 0?ft:[],"transparent")),freckles:convertColor(_e.pick((gt=et.frecklesColor)!==null&>!==void 0?gt:[],"transparent")),glasses:convertColor(_e.pick((xt=et.glassesColor)!==null&&xt!==void 0?xt:[],"transparent")),mouth:convertColor(_e.pick(($t=et.mouthColor)!==null&&$t!==void 0?$t:[],"transparent")),nose:convertColor(_e.pick((_t=et.noseColor)!==null&&_t!==void 0?_t:[],"transparent")),hairAccessories:convertColor(_e.pick((wt=et.hairAccessoriesColor)!==null&&wt!==void 0?wt:[],"transparent"))}}function onPostCreate({prng:_e,options:et,components:rt,colors:st}){rt.beard&&st.hair===st.mouth&&(st.mouth="#ffffff")}const schema={$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"]}}},meta={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/"}},create=({prng:_e,options:et})=>{var rt,st,ct,ut;const ft=getComponents({prng:_e,options:et}),gt=getColors({prng:_e,options:et});return onPostCreate({prng:_e,options:et,components:ft,colors:gt}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(st=(rt=ft.hair)===null||rt===void 0?void 0:rt.value(ft,gt))!==null&&st!==void 0?st:""}${(ut=(ct=ft.hairAccessories)===null||ct===void 0?void 0:ct.value(ft,gt))!==null&&ut!==void 0?ut:""}`,extra:()=>({...Object.entries(ft).reduce((xt,[$t,_t])=>(xt[$t]=_t==null?void 0:_t.name,xt),{}),...Object.entries(gt).reduce((xt,[$t,_t])=>(xt[`${$t}Color`]=_t,xt),{})})}},lorelei=Object.defineProperty({__proto__:null,create,meta,schema},Symbol.toStringTag,{value:"Module"});function getVersion(){return version$2}function currentTimestamp(){return hooks().format("YYYY-MM-DD HH:mm:ss")}function getUUid(){return v4().replaceAll(/-/g,"")}function generateAvatar(_e){return createAvatar(lorelei,{seed:_e,size:40}).toDataUriSync()}const useMessageStore=create$4()(devtools(persist(immer((_e,et)=>({messageList:[],addMessage(rt){et().messageList.some(ct=>ct.uid===rt.uid)||_e({messageList:[...et().messageList,rt]})},addMessageList(rt,st){let ct=[];for(let ut=0;utxt.uid===ft.uid)||(ft.thread=st,ct.unshift(ft))}_e({messageList:[...ct,...et().messageList]})},currentMessage:{uid:"",createdAt:""},setCurrentMessage(rt){_e({currentMessage:rt})},resetMessageList(){_e({messageList:[],currentMessage:{uid:"",createdAt:""}})}})),{name:MESSAGE_STORE})));async function sendRestMessage(_e){return request("/api/v1/message/rest/send",{method:"POST",data:{json:_e,client:HTTP_CLIENT}})}async function queryMessages(_e){return request("/api/v1/message/query",{method:"GET",params:{..._e}})}let mqttClient,userState;const mqttConnect=({uid:_e,username:et,accessToken:rt})=>{if(rt===""||rt==null){console.log("accessToken is empty, dont connect mqtt");return}if(userState=useUserStore.getState().userInfo,mqttClient&&mqttClient.connected){console.log("mqtt already connected");return}let st=_e+"/"+HTTP_CLIENT;{const ct={port:MQTT_PORT,host:MQTT_HOST,keepalive:1e4,clientId:st,username:et,password:rt,clean:!0,path:"/websocket",reconnectPeriod:1e3,connectTimeout:3e4,reschedulePings:!0,rejectUnauthorized:!1};console.log("start debug connect:",ct),mqttClient=mqtt.connect(ct)}mqttClient.on("connect",()=>{console.log("mqtt event connected"),useAuthStore.setState({isMqttConnected:!0})}),mqttClient.on("message",function(ct,ut,ft){let gt=messageProto.Message.deserializeBinary(ut),xt={uid:gt.getUid(),createdAt:gt.getCreatedat(),client:gt.getClient(),type:gt.getType(),user:{uid:gt.getUser().getUid(),nickname:gt.getUser().getNickname(),avatar:gt.getUser().getAvatar()},content:gt.getContent(),thread:{uid:gt.getThread().getUid(),type:gt.getThread().getType(),topic:gt.getThread().getTopic()}};console.log("mqtt message received",ct,xt),useMessageStore.getState().addMessage(xt);let $t={uid:gt.getThread().getUid(),type:gt.getThread().getType(),topic:gt.getThread().getTopic(),content:gt.getContent(),createdAt:gt.getCreatedat(),user:{uid:gt.getUser().getUid(),nickname:gt.getUser().getNickname(),avatar:gt.getUser().getAvatar()}};useThreadStore.getState().addThread($t)}),mqttClient.on("packetsend",ct=>{console.log("mqtt event packetsend",ct)}),mqttClient.on("packetreceive",ct=>{console.log("mqtt event packetreceive",ct)}),mqttClient.on("reconnect",()=>{console.log("mqtt event reconnect")}),mqttClient.on("close",()=>{console.log("mqtt event close"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("disconnect",()=>{console.error("mqtt event disconnected"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("offline",()=>{console.log("mqtt event offline"),useAuthStore.setState({isMqttConnected:!1})}),mqttClient.on("error",()=>{console.log("mqtt event error")}),mqttClient.on("end",()=>{console.log("mqtt event end"),useAuthStore.setState({isMqttConnected:!1})})},mqttSendTextMessage=(_e,et)=>{console.log("mqttSendTextMessage",et),mqttSendMessage(_e,MESSAGE_TYPE_TEXT,et)},mqttSendMessage=(_e,et,rt)=>{console.log("mqttSendMessage",rt);let st=currentTimestamp(),ct=useThreadStore.getState().currentThread;if(mqttClient&&mqttClient.connected){let ut=new threadProto.Thread;ut.setUid(ct.uid),ut.setType(ct.type),ut.setTopic(ct.topic);let ft=new userProto.User;ft.setUid(userState.uid),ft.setNickname(userState.nickname),ft.setAvatar(userState.avatar);let gt=new messageProto.Message;gt.setUid(_e),gt.setType(et),gt.setCreatedat(st),gt.setClient(HTTP_CLIENT),gt.setContent(rt),gt.setUser(ft),gt.setThread(ut);let xt=gt.serializeBinary();mqttClient.publish(ct.topic,xt)}else{console.log("mqttClient is disconnect, use http rest api");let ut={uid:ct.uid,type:ct.type,topic:ct.topic},ft={uid:userState.uid,nickname:userState.nickname,avatar:userState.avatar};const xt=JSON.stringify({uid:_e,type:et,createdAt:st,client:HTTP_CLIENT,content:rt,user:ft,thread:ut});console.log("mqttSendMessage",xt),sendRestMessage(xt)}},mqttDisconnect=()=>{mqttClient&&mqttClient.connected?mqttClient.end():console.log("mqttClient is null"),useAuthStore.setState({isMqttConnected:!1})};function getNetworkType(){const _e=navigator.userAgent,et=navigator.connection;let rt=et?et.type?et.type.toLowerCase():et.effectiveType.toLowerCase():null;if(rt)switch(rt){case"cellular":case"wimax":rt=et&&et.effectiveType?et.effectiveType.toLowerCase():null;break;case"wifi":break;case"ethernet":rt="wired";break;case"none":case"other":case"unknown":rt=null;break}let st=rt||(_e.match(/NetType\/\w+/)?_e.match(/NetType\/\w+/)[0]:"unknown");return st=st.toLowerCase().replace("nettype/",""),st?st==="3gnet"?"3g":st:"unknown"}function useNetworkStatus(){const[_e,et]=reactExports.useState(!0);return reactExports.useEffect(()=>{function rt(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&et(!0)}function st(){console.log("networkStatus offline:",!navigator.onLine),et(!1)}return window.addEventListener("online",rt),window.addEventListener("offline",st),()=>{window.removeEventListener("online",rt),window.removeEventListener("offline",st)}},[]),_e}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function _e(st,ct,ut,ft,gt,xt){if(xt!==ReactPropTypesSecret){var $t=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 $t.name="Invariant Violation",$t}}_e.isRequired=_e;function et(){return _e}var rt={array:_e,bigint:_e,bool:_e,func:_e,number:_e,object:_e,string:_e,symbol:_e,any:_e,arrayOf:et,element:_e,elementType:_e,instanceOf:et,node:_e,objectOf:et,oneOf:et,oneOfType:et,shape:et,exact:et,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return rt.PropTypes=rt,rt};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var COMMON_MIME_TYPES=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(_e,et){var rt=withMimeType(_e);if(typeof rt.path!="string"){var st=_e.webkitRelativePath;Object.defineProperty(rt,"path",{value:typeof et=="string"?et:typeof st=="string"&&st.length>0?st:_e.name,writable:!1,configurable:!1,enumerable:!0})}return rt}function withMimeType(_e){var et=_e.name,rt=et&&et.lastIndexOf(".")!==-1;if(rt&&!_e.type){var st=et.split(".").pop().toLowerCase(),ct=COMMON_MIME_TYPES.get(st);ct&&Object.defineProperty(_e,"type",{value:ct,writable:!1,configurable:!1,enumerable:!0})}return _e}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return isObject$1(_e)&&isDataTransfer(_e.dataTransfer)?[2,getDataTransferFiles(_e.dataTransfer,_e.type)]:isChangeEvt(_e)?[2,getInputFiles(_e)]:Array.isArray(_e)&&_e.every(function(rt){return"getFile"in rt&&typeof rt.getFile=="function"})?[2,getFsHandleFiles(_e)]:[2,[]]})})}function isDataTransfer(_e){return isObject$1(_e)}function isChangeEvt(_e){return isObject$1(_e)&&isObject$1(_e.target)}function isObject$1(_e){return typeof _e=="object"&&_e!==null}function getInputFiles(_e){return fromList(_e.target.files).map(function(et){return toFileWithPath(et)})}function getFsHandleFiles(_e){return __awaiter(this,void 0,void 0,function(){var et;return __generator(this,function(rt){switch(rt.label){case 0:return[4,Promise.all(_e.map(function(st){return st.getFile()}))];case 1:return et=rt.sent(),[2,et.map(function(st){return toFileWithPath(st)})]}})})}function getDataTransferFiles(_e,et){return __awaiter(this,void 0,void 0,function(){var rt,st;return __generator(this,function(ct){switch(ct.label){case 0:return _e.items?(rt=fromList(_e.items).filter(function(ut){return ut.kind==="file"}),et!=="drop"?[2,rt]:[4,Promise.all(rt.map(toFilePromises))]):[3,2];case 1:return st=ct.sent(),[2,noIgnoredFiles(flatten(st))];case 2:return[2,noIgnoredFiles(fromList(_e.files).map(function(ut){return toFileWithPath(ut)}))]}})})}function noIgnoredFiles(_e){return _e.filter(function(et){return FILES_TO_IGNORE.indexOf(et.name)===-1})}function fromList(_e){if(_e===null)return[];for(var et=[],rt=0;rt<_e.length;rt++){var st=_e[rt];et.push(st)}return et}function toFilePromises(_e){if(typeof _e.webkitGetAsEntry!="function")return fromDataTransferItem(_e);var et=_e.webkitGetAsEntry();return et&&et.isDirectory?fromDirEntry(et):fromDataTransferItem(_e)}function flatten(_e){return _e.reduce(function(et,rt){return __spreadArray(__spreadArray([],__read(et),!1),__read(Array.isArray(rt)?flatten(rt):[rt]),!1)},[])}function fromDataTransferItem(_e){var et=_e.getAsFile();if(!et)return Promise.reject("".concat(_e," is not a File"));var rt=toFileWithPath(et);return Promise.resolve(rt)}function fromEntry(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return[2,_e.isDirectory?fromDirEntry(_e):fromFileEntry(_e)]})})}function fromDirEntry(_e){var et=_e.createReader();return new Promise(function(rt,st){var ct=[];function ut(){var ft=this;et.readEntries(function(gt){return __awaiter(ft,void 0,void 0,function(){var xt,$t,_t;return __generator(this,function(wt){switch(wt.label){case 0:if(gt.length)return[3,5];wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,Promise.all(ct)];case 2:return xt=wt.sent(),rt(xt),[3,4];case 3:return $t=wt.sent(),st($t),[3,4];case 4:return[3,6];case 5:_t=Promise.all(gt.map(fromEntry)),ct.push(_t),ut(),wt.label=6;case 6:return[2]}})})},function(gt){st(gt)})}ut()})}function fromFileEntry(_e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(et){return[2,new Promise(function(rt,st){_e.file(function(ct){var ut=toFileWithPath(ct,_e.fullPath);rt(ut)},function(ct){st(ct)})})]})})}var _default$1=function(_e,et){if(_e&&et){var rt=Array.isArray(et)?et:et.split(","),st=_e.name||"",ct=(_e.type||"").toLowerCase(),ut=ct.replace(/\/.*$/,"");return rt.some(function(ft){var gt=ft.trim().toLowerCase();return gt.charAt(0)==="."?st.toLowerCase().endsWith(gt):gt.endsWith("/*")?ut===gt.replace(/\/.*$/,""):ct===gt})}return!0};function _toConsumableArray$1(_e){return _arrayWithoutHoles$1(_e)||_iterableToArray$1(_e)||_unsupportedIterableToArray$1(_e)||_nonIterableSpread$1()}function _nonIterableSpread$1(){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 _iterableToArray$1(_e){if(typeof Symbol<"u"&&_e[Symbol.iterator]!=null||_e["@@iterator"]!=null)return Array.from(_e)}function _arrayWithoutHoles$1(_e){if(Array.isArray(_e))return _arrayLikeToArray$1(_e)}function ownKeys$1(_e,et){var rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var st=Object.getOwnPropertySymbols(_e);et&&(st=st.filter(function(ct){return Object.getOwnPropertyDescriptor(_e,ct).enumerable})),rt.push.apply(rt,st)}return rt}function _objectSpread$1(_e){for(var et=1;et_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rtrt)return[!1,getTooLargeRejectionErr(rt)];if(_e.sizert)return[!1,getTooLargeRejectionErr(rt)]}return[!0,null]}function isDefined(_e){return _e!=null}function allFilesAccepted(_e){var et=_e.files,rt=_e.accept,st=_e.minSize,ct=_e.maxSize,ut=_e.multiple,ft=_e.maxFiles,gt=_e.validator;return!ut&&et.length>1||ut&&ft>=1&&et.length>ft?!1:et.every(function(xt){var $t=fileAccepted(xt,rt),_t=_slicedToArray$1($t,1),wt=_t[0],Tt=fileMatchSize(xt,st,ct),Rt=_slicedToArray$1(Tt,1),It=Rt[0],At=gt?gt(xt):null;return wt&&It&&!At})}function isPropagationStopped(_e){return typeof _e.isPropagationStopped=="function"?_e.isPropagationStopped():typeof _e.cancelBubble<"u"?_e.cancelBubble:!1}function isEvtWithFiles(_e){return _e.dataTransfer?Array.prototype.some.call(_e.dataTransfer.types,function(et){return et==="Files"||et==="application/x-moz-file"}):!!_e.target&&!!_e.target.files}function onDocumentDragOver(_e){_e.preventDefault()}function isIe(_e){return _e.indexOf("MSIE")!==-1||_e.indexOf("Trident/")!==-1}function isEdge(_e){return _e.indexOf("Edge/")!==-1}function isIeOrEdge(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(_e)||isEdge(_e)}function composeEventHandlers(){for(var _e=arguments.length,et=new Array(_e),rt=0;rt<_e;rt++)et[rt]=arguments[rt];return function(st){for(var ct=arguments.length,ut=new Array(ct>1?ct-1:0),ft=1;ft_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function _objectWithoutPropertiesLoose(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}var Dropzone=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_objectWithoutProperties(_e,_excluded),ct=useDropzone(st),ut=ct.open,ft=_objectWithoutProperties(ct,_excluded2);return reactExports.useImperativeHandle(et,function(){return{open:ut}},[ut]),React$1.createElement(reactExports.Fragment,null,rt(_objectSpread(_objectSpread({},ft),{},{open:ut})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Dropzone.defaultProps=defaultProps;Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=_objectSpread(_objectSpread({},defaultProps),_e),rt=et.accept,st=et.disabled,ct=et.getFilesFromEvent,ut=et.maxSize,ft=et.minSize,gt=et.multiple,xt=et.maxFiles,$t=et.onDragEnter,_t=et.onDragLeave,wt=et.onDragOver,Tt=et.onDrop,Rt=et.onDropAccepted,It=et.onDropRejected,At=et.onFileDialogCancel,jt=et.onFileDialogOpen,Nt=et.useFsAccessApi,kt=et.autoFocus,Ft=et.preventDropOnDocument,Ht=et.noClick,Wt=et.noKeyboard,Vt=et.noDrag,qt=et.noDragEventsBubbling,Gt=et.onError,Xt=et.validator,Zt=reactExports.useMemo(function(){return acceptPropAsAcceptAttr(rt)},[rt]),lr=reactExports.useMemo(function(){return pickerOptionsFromAccept(rt)},[rt]),er=reactExports.useMemo(function(){return typeof jt=="function"?jt:noop},[jt]),cr=reactExports.useMemo(function(){return typeof At=="function"?At:noop},[At]),ur=reactExports.useRef(null),pr=reactExports.useRef(null),hr=reactExports.useReducer(reducer,initialState),fr=_slicedToArray(hr,2),dr=fr[0],yr=fr[1],$r=dr.isFocused,Er=dr.isFileDialogActive,mr=reactExports.useRef(typeof window<"u"&&window.isSecureContext&&Nt&&canUseFileSystemAccessAPI()),Sr=function(){!mr.current&&Er&&setTimeout(function(){if(pr.current){var vn=pr.current.files;vn.length||(yr({type:"closeDialog"}),cr())}},300)};reactExports.useEffect(function(){return window.addEventListener("focus",Sr,!1),function(){window.removeEventListener("focus",Sr,!1)}},[pr,Er,cr,mr]);var Tr=reactExports.useRef([]),jr=function(vn){ur.current&&ur.current.contains(vn.target)||(vn.preventDefault(),Tr.current=[])};reactExports.useEffect(function(){return Ft&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",jr,!1)),function(){Ft&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",jr))}},[ur,Ft]),reactExports.useEffect(function(){return!st&&kt&&ur.current&&ur.current.focus(),function(){}},[ur,kt,st]);var Or=reactExports.useCallback(function(Zr){Gt?Gt(Zr):console.error(Zr)},[Gt]),_r=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),zr(Zr),Tr.current=[].concat(_toConsumableArray(Tr.current),[Zr.target]),isEvtWithFiles(Zr)&&Promise.resolve(ct(Zr)).then(function(vn){if(!(isPropagationStopped(Zr)&&!qt)){var vr=vn.length,gr=vr>0&&allFilesAccepted({files:vn,accept:Zt,minSize:ft,maxSize:ut,multiple:gt,maxFiles:xt,validator:Xt}),br=vr>0&&!gr;yr({isDragAccept:gr,isDragReject:br,isDragActive:!0,type:"setDraggedFiles"}),$t&&$t(Zr)}}).catch(function(vn){return Or(vn)})},[ct,$t,Or,qt,Zt,ft,ut,gt,xt,Xt]),Cr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),zr(Zr);var vn=isEvtWithFiles(Zr);if(vn&&Zr.dataTransfer)try{Zr.dataTransfer.dropEffect="copy"}catch{}return vn&&wt&&wt(Zr),!1},[wt,qt]),Nr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),zr(Zr);var vn=Tr.current.filter(function(gr){return ur.current&&ur.current.contains(gr)}),vr=vn.indexOf(Zr.target);vr!==-1&&vn.splice(vr,1),Tr.current=vn,!(vn.length>0)&&(yr({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(Zr)&&_t&&_t(Zr))},[ur,_t,qt]),Rr=reactExports.useCallback(function(Zr,vn){var vr=[],gr=[];Zr.forEach(function(br){var Hr=fileAccepted(br,Zt),Vr=_slicedToArray(Hr,2),Wr=Vr[0],Gr=Vr[1],cn=fileMatchSize(br,ft,ut),mn=_slicedToArray(cn,2),hn=mn[0],En=mn[1],Rn=Xt?Xt(br):null;if(Wr&&hn&&!Rn)vr.push(br);else{var Dn=[Gr,En];Rn&&(Dn=Dn.concat(Rn)),gr.push({file:br,errors:Dn.filter(function(Bn){return Bn})})}}),(!gt&&vr.length>1||gt&&xt>=1&&vr.length>xt)&&(vr.forEach(function(br){gr.push({file:br,errors:[TOO_MANY_FILES_REJECTION]})}),vr.splice(0)),yr({acceptedFiles:vr,fileRejections:gr,type:"setFiles"}),Tt&&Tt(vr,gr,vn),gr.length>0&&It&&It(gr,vn),vr.length>0&&Rt&&Rt(vr,vn)},[yr,gt,Zt,ft,ut,xt,Tt,Rt,It,Xt]),Pr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),zr(Zr),Tr.current=[],isEvtWithFiles(Zr)&&Promise.resolve(ct(Zr)).then(function(vn){isPropagationStopped(Zr)&&!qt||Rr(vn,Zr)}).catch(function(vn){return Or(vn)}),yr({type:"reset"})},[ct,Rr,Or,qt]),Mr=reactExports.useCallback(function(){if(mr.current){yr({type:"openDialog"}),er();var Zr={multiple:gt,types:lr};window.showOpenFilePicker(Zr).then(function(vn){return ct(vn)}).then(function(vn){Rr(vn,null),yr({type:"closeDialog"})}).catch(function(vn){isAbort(vn)?(cr(vn),yr({type:"closeDialog"})):isSecurityError(vn)?(mr.current=!1,pr.current?(pr.current.value=null,pr.current.click()):Or(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."))):Or(vn)});return}pr.current&&(yr({type:"openDialog"}),er(),pr.current.value=null,pr.current.click())},[yr,er,cr,Nt,Rr,Or,lr,gt]),kr=reactExports.useCallback(function(Zr){!ur.current||!ur.current.isEqualNode(Zr.target)||(Zr.key===" "||Zr.key==="Enter"||Zr.keyCode===32||Zr.keyCode===13)&&(Zr.preventDefault(),Mr())},[ur,Mr]),Fr=reactExports.useCallback(function(){yr({type:"focus"})},[]),wr=reactExports.useCallback(function(){yr({type:"blur"})},[]),Br=reactExports.useCallback(function(){Ht||(isIeOrEdge()?setTimeout(Mr,0):Mr())},[Ht,Mr]),Dr=function(vn){return st?null:vn},Xr=function(vn){return Wt?null:Dr(vn)},Kr=function(vn){return Vt?null:Dr(vn)},zr=function(vn){qt&&vn.stopPropagation()},qr=reactExports.useMemo(function(){return function(){var Zr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=Zr.refKey,vr=vn===void 0?"ref":vn,gr=Zr.role,br=Zr.onKeyDown,Hr=Zr.onFocus,Vr=Zr.onBlur,Wr=Zr.onClick,Gr=Zr.onDragEnter,cn=Zr.onDragOver,mn=Zr.onDragLeave,hn=Zr.onDrop,En=_objectWithoutProperties(Zr,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:Xr(composeEventHandlers(br,kr)),onFocus:Xr(composeEventHandlers(Hr,Fr)),onBlur:Xr(composeEventHandlers(Vr,wr)),onClick:Dr(composeEventHandlers(Wr,Br)),onDragEnter:Kr(composeEventHandlers(Gr,_r)),onDragOver:Kr(composeEventHandlers(cn,Cr)),onDragLeave:Kr(composeEventHandlers(mn,Nr)),onDrop:Kr(composeEventHandlers(hn,Pr)),role:typeof gr=="string"&&gr!==""?gr:"presentation"},vr,ur),!st&&!Wt?{tabIndex:0}:{}),En)}},[ur,kr,Fr,wr,Br,_r,Cr,Nr,Pr,Wt,Vt,st]),pn=reactExports.useCallback(function(Zr){Zr.stopPropagation()},[]),Qr=reactExports.useMemo(function(){return function(){var Zr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=Zr.refKey,vr=vn===void 0?"ref":vn,gr=Zr.onChange,br=Zr.onClick,Hr=_objectWithoutProperties(Zr,_excluded4),Vr=_defineProperty({accept:Zt,multiple:gt,type:"file",style:{display:"none"},onChange:Dr(composeEventHandlers(gr,Pr)),onClick:Dr(composeEventHandlers(br,pn)),tabIndex:-1},vr,pr);return _objectSpread(_objectSpread({},Vr),Hr)}},[pr,rt,gt,Pr,st]);return _objectSpread(_objectSpread({},dr),{},{isFocused:$r&&!st,getRootProps:qr,getInputProps:Qr,rootRef:ur,inputRef:pr,open:Dr(Mr)})}function reducer(_e,et){switch(et.type){case"focus":return _objectSpread(_objectSpread({},_e),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},_e),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},_e),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},_e),{},{isDragActive:et.isDragActive,isDragAccept:et.isDragAccept,isDragReject:et.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},_e),{},{acceptedFiles:et.acceptedFiles,fileRejections:et.fileRejections});case"reset":return _objectSpread({},initialState);default:return _e}}function noop(){}const DropUpload=({children:_e})=>{const[et,rt]=reactExports.useState(null),st=useAuthStore(wt=>wt.accessToken),ct=reactExports.useCallback(()=>{console.log("handleImageCancel"),rt(null)},[]),ut=reactExports.useCallback(()=>{console.log("handleImageSend"),ft(et)},[et]),ft=wt=>{let Tt=hooks(new Date).format("YYYYMMDDHHmmss")+"_"+wt.name;const Rt=`${BASE_URL}/api/v1/upload/`,It=new FormData;It.append("file",wt),It.append("file_name",Tt),It.append("file_type","image"),fetch(Rt,{method:"POST",headers:{Authorization:"Bearer "+st},body:It}).then(At=>(console.log("upload response:",At),At.json())).then(At=>{console.log("upload data:",At),rt(null)})},gt=reactExports.useCallback(wt=>{console.log("DropUpload acceptedFiles",wt),wt.map(Tt=>{console.log(Tt),rt(Tt)})},[]),{getRootProps:xt,getInputProps:$t,isDragActive:_t}=useDropzone({maxFiles:1,onDrop:gt,noClick:!0});return jsxRuntimeExports.jsxs("div",{...xt(),style:{height:"100%"},children:[jsxRuntimeExports.jsx("input",{...$t()}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e}),et&&jsxRuntimeExports.jsx(SendConfirm,{file:et,onCancel:ct,onSend:ut})]})};var layout$1={},toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(_e){function et(rt,st){(st==null||st>rt.length)&&(st=rt.length);for(var ct=0,ut=new Array(st);ct3&&arguments[3]!==void 0?arguments[3]:!1;return Rt.length&&At&&It===void 0&&!(0,ut.default)(Tt,Rt.slice(0,-1))?Tt:ft(Tt,Rt,It,At)}function xt(Tt){return(0,et.default)(Tt)==="object"&&Tt!==null&&Object.getPrototypeOf(Tt)===Object.prototype}function $t(Tt){return Array.isArray(Tt)?[]:{}}var _t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wt(){for(var Tt=arguments.length,Rt=new Array(Tt),It=0;It{const gt=()=>{};return gt.deprecated=ct,gt},warning.default=ft,warning}var validateMessagesContext={},hasRequiredValidateMessagesContext;function requireValidateMessagesContext(){if(hasRequiredValidateMessagesContext)return validateMessagesContext;hasRequiredValidateMessagesContext=1,Object.defineProperty(validateMessagesContext,"__esModule",{value:!0}),validateMessagesContext.default=void 0;var _e=reactExports;return validateMessagesContext.default=(0,_e.createContext)(void 0),validateMessagesContext}var locale$1={},locale={},hasRequiredLocale$1;function requireLocale$1(){if(hasRequiredLocale$1)return locale;hasRequiredLocale$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(locale,"__esModule",{value:!0}),locale.changeConfirmLocale=ut,locale.getConfirmLocale=ft;var et=_e(en_US$6);let rt=Object.assign({},et.default.Modal),st=[];const ct=()=>st.reduce((gt,xt)=>Object.assign(Object.assign({},gt),xt),et.default.Modal);function ut(gt){if(gt){const xt=Object.assign({},gt);return st.push(xt),rt=ct(),()=>{st=st.filter($t=>$t!==xt),rt=ct()}}rt=Object.assign({},et.default.Modal)}function ft(){return rt}return locale}var context$3={},hasRequiredContext$3;function requireContext$3(){if(hasRequiredContext$3)return context$3;hasRequiredContext$3=1,Object.defineProperty(context$3,"__esModule",{value:!0}),context$3.default=void 0;var _e=reactExports;const et=(0,_e.createContext)(void 0);return context$3.default=et,context$3}var useLocale={},hasRequiredUseLocale;function requireUseLocale(){if(hasRequiredUseLocale)return useLocale;hasRequiredUseLocale=1;var _e=interopRequireDefaultExports;Object.defineProperty(useLocale,"__esModule",{value:!0}),useLocale.default=void 0;var et=ut(reactExports),rt=_e(requireContext$3()),st=_e(en_US$6);function ct(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(ct=function(_t){return _t?$t:xt})(gt)}function ut(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=ct(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const ft=(gt,xt)=>{const $t=et.useContext(rt.default),_t=et.useMemo(()=>{var Tt;const Rt=xt||st.default[gt],It=(Tt=$t==null?void 0:$t[gt])!==null&&Tt!==void 0?Tt:{};return Object.assign(Object.assign({},typeof Rt=="function"?Rt():Rt),It||{})},[gt,xt,$t]),wt=et.useMemo(()=>{const Tt=$t==null?void 0:$t.locale;return $t!=null&&$t.exist&&!Tt?st.default.locale:Tt},[$t]);return[_t,wt]};return useLocale.default=ft,useLocale}var hasRequiredLocale;function requireLocale(){return hasRequiredLocale||(hasRequiredLocale=1,function(_e){"use client";var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.ANT_MARK=void 0,Object.defineProperty(_e,"useLocale",{enumerable:!0,get:function(){return ut.default}});var rt=gt(reactExports);requireWarning();var st=requireLocale$1(),ct=et(requireContext$3()),ut=et(requireUseLocale());function ft($t){if(typeof WeakMap!="function")return null;var _t=new WeakMap,wt=new WeakMap;return(ft=function(Tt){return Tt?wt:_t})($t)}function gt($t,_t){if(!_t&&$t&&$t.__esModule)return $t;if($t===null||typeof $t!="object"&&typeof $t!="function")return{default:$t};var wt=ft(_t);if(wt&&wt.has($t))return wt.get($t);var Tt={__proto__:null},Rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var It in $t)if(It!=="default"&&Object.prototype.hasOwnProperty.call($t,It)){var At=Rt?Object.getOwnPropertyDescriptor($t,It):null;At&&(At.get||At.set)?Object.defineProperty(Tt,It,At):Tt[It]=$t[It]}return Tt.default=$t,wt&&wt.set($t,Tt),Tt}_e.ANT_MARK="internalMark";const xt=$t=>{const{locale:_t={},children:wt,_ANT_MARK__:Tt}=$t;rt.useEffect(()=>(0,st.changeConfirmLocale)(_t&&_t.Modal),[_t]);const Rt=rt.useMemo(()=>Object.assign(Object.assign({},_t),{exist:!0}),[_t]);return rt.createElement(ct.default.Provider,{value:Rt},wt)};_e.default=xt}(locale$1)),locale$1}var context$2={},_default={};const require$$2=getAugmentedNamespace(es$1);var genControlHeight={},hasRequiredGenControlHeight;function requireGenControlHeight(){if(hasRequiredGenControlHeight)return genControlHeight;hasRequiredGenControlHeight=1,Object.defineProperty(genControlHeight,"__esModule",{value:!0}),genControlHeight.default=void 0;const _e=et=>{const{controlHeight:rt}=et;return{controlHeightSM:rt*.75,controlHeightXS:rt*.5,controlHeightLG:rt*1.25}};return genControlHeight.default=_e,genControlHeight}var genSizeMapToken={},hasRequiredGenSizeMapToken;function requireGenSizeMapToken(){if(hasRequiredGenSizeMapToken)return genSizeMapToken;hasRequiredGenSizeMapToken=1,Object.defineProperty(genSizeMapToken,"__esModule",{value:!0}),genSizeMapToken.default=_e;function _e(et){const{sizeUnit:rt,sizeStep:st}=et;return{sizeXXL:rt*(st+8),sizeXL:rt*(st+4),sizeLG:rt*(st+2),sizeMD:rt*(st+1),sizeMS:rt*st,size:rt*st,sizeSM:rt*(st-1),sizeXS:rt*(st-2),sizeXXS:rt*(st-3)}}return genSizeMapToken}var seed={},hasRequiredSeed;function requireSeed(){if(hasRequiredSeed)return seed;hasRequiredSeed=1,Object.defineProperty(seed,"__esModule",{value:!0}),seed.defaultPresetColors=seed.default=void 0;const _e=seed.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"},et=Object.assign(Object.assign({},_e),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,et);var rt=Object.prototype.toString.call(_e).slice(8,-1);if(rt==="Object"&&_e.constructor&&(rt=_e.constructor.name),rt==="Map"||rt==="Set")return Array.from(_e);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray(_e,et)}}function _arrayLikeToArray(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var rt=0,st=new Array(et);rt=0)&&Object.prototype.propertyIsEnumerable.call(_e,st)&&(rt[st]=_e[st])}return rt}function _objectWithoutPropertiesLoose(_e,et){if(_e==null)return{};var rt={},st=Object.keys(_e),ct,ut;for(ut=0;ut=0)&&(rt[ct]=_e[ct]);return rt}var Dropzone=reactExports.forwardRef(function(_e,et){var rt=_e.children,st=_objectWithoutProperties(_e,_excluded),ct=useDropzone(st),ut=ct.open,ft=_objectWithoutProperties(ct,_excluded2);return reactExports.useImperativeHandle(et,function(){return{open:ut}},[ut]),React$1.createElement(reactExports.Fragment,null,rt(_objectSpread(_objectSpread({},ft),{},{open:ut})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Dropzone.defaultProps=defaultProps;Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=_objectSpread(_objectSpread({},defaultProps),_e),rt=et.accept,st=et.disabled,ct=et.getFilesFromEvent,ut=et.maxSize,ft=et.minSize,gt=et.multiple,xt=et.maxFiles,$t=et.onDragEnter,_t=et.onDragLeave,wt=et.onDragOver,Tt=et.onDrop,Rt=et.onDropAccepted,It=et.onDropRejected,At=et.onFileDialogCancel,jt=et.onFileDialogOpen,Nt=et.useFsAccessApi,kt=et.autoFocus,Ft=et.preventDropOnDocument,Ht=et.noClick,Wt=et.noKeyboard,Vt=et.noDrag,qt=et.noDragEventsBubbling,Xt=et.onError,Gt=et.validator,Zt=reactExports.useMemo(function(){return acceptPropAsAcceptAttr(rt)},[rt]),er=reactExports.useMemo(function(){return pickerOptionsFromAccept(rt)},[rt]),lr=reactExports.useMemo(function(){return typeof jt=="function"?jt:noop},[jt]),cr=reactExports.useMemo(function(){return typeof At=="function"?At:noop},[At]),ur=reactExports.useRef(null),fr=reactExports.useRef(null),hr=reactExports.useReducer(reducer,initialState),pr=_slicedToArray(hr,2),dr=pr[0],yr=pr[1],Sr=dr.isFocused,br=dr.isFileDialogActive,mr=reactExports.useRef(typeof window<"u"&&window.isSecureContext&&Nt&&canUseFileSystemAccessAPI()),Er=function(){!mr.current&&br&&setTimeout(function(){if(fr.current){var vn=fr.current.files;vn.length||(yr({type:"closeDialog"}),cr())}},300)};reactExports.useEffect(function(){return window.addEventListener("focus",Er,!1),function(){window.removeEventListener("focus",Er,!1)}},[fr,br,cr,mr]);var Tr=reactExports.useRef([]),Mr=function(vn){ur.current&&ur.current.contains(vn.target)||(vn.preventDefault(),Tr.current=[])};reactExports.useEffect(function(){return Ft&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",Mr,!1)),function(){Ft&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",Mr))}},[ur,Ft]),reactExports.useEffect(function(){return!st&&kt&&ur.current&&ur.current.focus(),function(){}},[ur,kt,st]);var Or=reactExports.useCallback(function(Zr){Xt?Xt(Zr):console.error(Zr)},[Xt]),wr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),Hr(Zr),Tr.current=[].concat(_toConsumableArray(Tr.current),[Zr.target]),isEvtWithFiles(Zr)&&Promise.resolve(ct(Zr)).then(function(vn){if(!(isPropagationStopped(Zr)&&!qt)){var vr=vn.length,gr=vr>0&&allFilesAccepted({files:vn,accept:Zt,minSize:ft,maxSize:ut,multiple:gt,maxFiles:xt,validator:Gt}),$r=vr>0&&!gr;yr({isDragAccept:gr,isDragReject:$r,isDragActive:!0,type:"setDraggedFiles"}),$t&&$t(Zr)}}).catch(function(vn){return Or(vn)})},[ct,$t,Or,qt,Zt,ft,ut,gt,xt,Gt]),Cr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),Hr(Zr);var vn=isEvtWithFiles(Zr);if(vn&&Zr.dataTransfer)try{Zr.dataTransfer.dropEffect="copy"}catch{}return vn&&wt&&wt(Zr),!1},[wt,qt]),Nr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),Hr(Zr);var vn=Tr.current.filter(function(gr){return ur.current&&ur.current.contains(gr)}),vr=vn.indexOf(Zr.target);vr!==-1&&vn.splice(vr,1),Tr.current=vn,!(vn.length>0)&&(yr({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(Zr)&&_t&&_t(Zr))},[ur,_t,qt]),Rr=reactExports.useCallback(function(Zr,vn){var vr=[],gr=[];Zr.forEach(function($r){var zr=fileAccepted($r,Zt),qr=_slicedToArray(zr,2),Wr=qr[0],Gr=qr[1],dn=fileMatchSize($r,ft,ut),mn=_slicedToArray(dn,2),hn=mn[0],Cn=mn[1],Rn=Gt?Gt($r):null;if(Wr&&hn&&!Rn)vr.push($r);else{var kn=[Gr,Cn];Rn&&(kn=kn.concat(Rn)),gr.push({file:$r,errors:kn.filter(function(Bn){return Bn})})}}),(!gt&&vr.length>1||gt&&xt>=1&&vr.length>xt)&&(vr.forEach(function($r){gr.push({file:$r,errors:[TOO_MANY_FILES_REJECTION]})}),vr.splice(0)),yr({acceptedFiles:vr,fileRejections:gr,type:"setFiles"}),Tt&&Tt(vr,gr,vn),gr.length>0&&It&&It(gr,vn),vr.length>0&&Rt&&Rt(vr,vn)},[yr,gt,Zt,ft,ut,xt,Tt,Rt,It,Gt]),Pr=reactExports.useCallback(function(Zr){Zr.preventDefault(),Zr.persist(),Hr(Zr),Tr.current=[],isEvtWithFiles(Zr)&&Promise.resolve(ct(Zr)).then(function(vn){isPropagationStopped(Zr)&&!qt||Rr(vn,Zr)}).catch(function(vn){return Or(vn)}),yr({type:"reset"})},[ct,Rr,Or,qt]),jr=reactExports.useCallback(function(){if(mr.current){yr({type:"openDialog"}),lr();var Zr={multiple:gt,types:er};window.showOpenFilePicker(Zr).then(function(vn){return ct(vn)}).then(function(vn){Rr(vn,null),yr({type:"closeDialog"})}).catch(function(vn){isAbort(vn)?(cr(vn),yr({type:"closeDialog"})):isSecurityError(vn)?(mr.current=!1,fr.current?(fr.current.value=null,fr.current.click()):Or(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."))):Or(vn)});return}fr.current&&(yr({type:"openDialog"}),lr(),fr.current.value=null,fr.current.click())},[yr,lr,cr,Nt,Rr,Or,er,gt]),kr=reactExports.useCallback(function(Zr){!ur.current||!ur.current.isEqualNode(Zr.target)||(Zr.key===" "||Zr.key==="Enter"||Zr.keyCode===32||Zr.keyCode===13)&&(Zr.preventDefault(),jr())},[ur,jr]),Fr=reactExports.useCallback(function(){yr({type:"focus"})},[]),_r=reactExports.useCallback(function(){yr({type:"blur"})},[]),Br=reactExports.useCallback(function(){Ht||(isIeOrEdge()?setTimeout(jr,0):jr())},[Ht,jr]),Dr=function(vn){return st?null:vn},Xr=function(vn){return Wt?null:Dr(vn)},Kr=function(vn){return Vt?null:Dr(vn)},Hr=function(vn){qt&&vn.stopPropagation()},Vr=reactExports.useMemo(function(){return function(){var Zr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=Zr.refKey,vr=vn===void 0?"ref":vn,gr=Zr.role,$r=Zr.onKeyDown,zr=Zr.onFocus,qr=Zr.onBlur,Wr=Zr.onClick,Gr=Zr.onDragEnter,dn=Zr.onDragOver,mn=Zr.onDragLeave,hn=Zr.onDrop,Cn=_objectWithoutProperties(Zr,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:Xr(composeEventHandlers($r,kr)),onFocus:Xr(composeEventHandlers(zr,Fr)),onBlur:Xr(composeEventHandlers(qr,_r)),onClick:Dr(composeEventHandlers(Wr,Br)),onDragEnter:Kr(composeEventHandlers(Gr,wr)),onDragOver:Kr(composeEventHandlers(dn,Cr)),onDragLeave:Kr(composeEventHandlers(mn,Nr)),onDrop:Kr(composeEventHandlers(hn,Pr)),role:typeof gr=="string"&&gr!==""?gr:"presentation"},vr,ur),!st&&!Wt?{tabIndex:0}:{}),Cn)}},[ur,kr,Fr,_r,Br,wr,Cr,Nr,Pr,Wt,Vt,st]),ln=reactExports.useCallback(function(Zr){Zr.stopPropagation()},[]),Qr=reactExports.useMemo(function(){return function(){var Zr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=Zr.refKey,vr=vn===void 0?"ref":vn,gr=Zr.onChange,$r=Zr.onClick,zr=_objectWithoutProperties(Zr,_excluded4),qr=_defineProperty({accept:Zt,multiple:gt,type:"file",style:{display:"none"},onChange:Dr(composeEventHandlers(gr,Pr)),onClick:Dr(composeEventHandlers($r,ln)),tabIndex:-1},vr,fr);return _objectSpread(_objectSpread({},qr),zr)}},[fr,rt,gt,Pr,st]);return _objectSpread(_objectSpread({},dr),{},{isFocused:Sr&&!st,getRootProps:Vr,getInputProps:Qr,rootRef:ur,inputRef:fr,open:Dr(jr)})}function reducer(_e,et){switch(et.type){case"focus":return _objectSpread(_objectSpread({},_e),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},_e),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},_e),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},_e),{},{isDragActive:et.isDragActive,isDragAccept:et.isDragAccept,isDragReject:et.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},_e),{},{acceptedFiles:et.acceptedFiles,fileRejections:et.fileRejections});case"reset":return _objectSpread({},initialState);default:return _e}}function noop(){}const DropUpload=({children:_e})=>{const[et,rt]=reactExports.useState(null),st=useAuthStore(wt=>wt.accessToken),ct=reactExports.useCallback(()=>{console.log("handleImageCancel"),rt(null)},[]),ut=reactExports.useCallback(()=>{console.log("handleImageSend"),ft(et)},[et]),ft=wt=>{let Tt=hooks(new Date).format("YYYYMMDDHHmmss")+"_"+wt.name;const Rt=`${BASE_URL}/api/v1/upload/`,It=new FormData;It.append("file",wt),It.append("file_name",Tt),It.append("file_type","image"),fetch(Rt,{method:"POST",headers:{Authorization:"Bearer "+st},body:It}).then(At=>(console.log("upload response:",At),At.json())).then(At=>{console.log("upload data:",At),rt(null)})},gt=reactExports.useCallback(wt=>{console.log("DropUpload acceptedFiles",wt),wt.map(Tt=>{console.log(Tt),rt(Tt)})},[]),{getRootProps:xt,getInputProps:$t,isDragActive:_t}=useDropzone({maxFiles:1,onDrop:gt,noClick:!0});return jsxRuntimeExports.jsxs("div",{...xt(),style:{height:"100%"},children:[jsxRuntimeExports.jsx("input",{...$t()}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e}),et&&jsxRuntimeExports.jsx(SendConfirm,{file:et,onCancel:ct,onSend:ut})]})};var layout$1={},toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(_e){function et(rt,st){(st==null||st>rt.length)&&(st=rt.length);for(var ct=0,ut=new Array(st);ct3&&arguments[3]!==void 0?arguments[3]:!1;return Rt.length&&At&&It===void 0&&!(0,ut.default)(Tt,Rt.slice(0,-1))?Tt:ft(Tt,Rt,It,At)}function xt(Tt){return(0,et.default)(Tt)==="object"&&Tt!==null&&Object.getPrototypeOf(Tt)===Object.prototype}function $t(Tt){return Array.isArray(Tt)?[]:{}}var _t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wt(){for(var Tt=arguments.length,Rt=new Array(Tt),It=0;It{const gt=()=>{};return gt.deprecated=ct,gt},warning.default=ft,warning}var validateMessagesContext={},hasRequiredValidateMessagesContext;function requireValidateMessagesContext(){if(hasRequiredValidateMessagesContext)return validateMessagesContext;hasRequiredValidateMessagesContext=1,Object.defineProperty(validateMessagesContext,"__esModule",{value:!0}),validateMessagesContext.default=void 0;var _e=reactExports;return validateMessagesContext.default=(0,_e.createContext)(void 0),validateMessagesContext}var locale$1={},locale={},hasRequiredLocale$1;function requireLocale$1(){if(hasRequiredLocale$1)return locale;hasRequiredLocale$1=1;var _e=interopRequireDefaultExports;Object.defineProperty(locale,"__esModule",{value:!0}),locale.changeConfirmLocale=ut,locale.getConfirmLocale=ft;var et=_e(en_US$6);let rt=Object.assign({},et.default.Modal),st=[];const ct=()=>st.reduce((gt,xt)=>Object.assign(Object.assign({},gt),xt),et.default.Modal);function ut(gt){if(gt){const xt=Object.assign({},gt);return st.push(xt),rt=ct(),()=>{st=st.filter($t=>$t!==xt),rt=ct()}}rt=Object.assign({},et.default.Modal)}function ft(){return rt}return locale}var context$3={},hasRequiredContext$3;function requireContext$3(){if(hasRequiredContext$3)return context$3;hasRequiredContext$3=1,Object.defineProperty(context$3,"__esModule",{value:!0}),context$3.default=void 0;var _e=reactExports;const et=(0,_e.createContext)(void 0);return context$3.default=et,context$3}var useLocale={},hasRequiredUseLocale;function requireUseLocale(){if(hasRequiredUseLocale)return useLocale;hasRequiredUseLocale=1;var _e=interopRequireDefaultExports;Object.defineProperty(useLocale,"__esModule",{value:!0}),useLocale.default=void 0;var et=ut(reactExports),rt=_e(requireContext$3()),st=_e(en_US$6);function ct(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(ct=function(_t){return _t?$t:xt})(gt)}function ut(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=ct(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const ft=(gt,xt)=>{const $t=et.useContext(rt.default),_t=et.useMemo(()=>{var Tt;const Rt=xt||st.default[gt],It=(Tt=$t==null?void 0:$t[gt])!==null&&Tt!==void 0?Tt:{};return Object.assign(Object.assign({},typeof Rt=="function"?Rt():Rt),It||{})},[gt,xt,$t]),wt=et.useMemo(()=>{const Tt=$t==null?void 0:$t.locale;return $t!=null&&$t.exist&&!Tt?st.default.locale:Tt},[$t]);return[_t,wt]};return useLocale.default=ft,useLocale}var hasRequiredLocale;function requireLocale(){return hasRequiredLocale||(hasRequiredLocale=1,function(_e){"use client";var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.ANT_MARK=void 0,Object.defineProperty(_e,"useLocale",{enumerable:!0,get:function(){return ut.default}});var rt=gt(reactExports);requireWarning();var st=requireLocale$1(),ct=et(requireContext$3()),ut=et(requireUseLocale());function ft($t){if(typeof WeakMap!="function")return null;var _t=new WeakMap,wt=new WeakMap;return(ft=function(Tt){return Tt?wt:_t})($t)}function gt($t,_t){if(!_t&&$t&&$t.__esModule)return $t;if($t===null||typeof $t!="object"&&typeof $t!="function")return{default:$t};var wt=ft(_t);if(wt&&wt.has($t))return wt.get($t);var Tt={__proto__:null},Rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var It in $t)if(It!=="default"&&Object.prototype.hasOwnProperty.call($t,It)){var At=Rt?Object.getOwnPropertyDescriptor($t,It):null;At&&(At.get||At.set)?Object.defineProperty(Tt,It,At):Tt[It]=$t[It]}return Tt.default=$t,wt&&wt.set($t,Tt),Tt}_e.ANT_MARK="internalMark";const xt=$t=>{const{locale:_t={},children:wt,_ANT_MARK__:Tt}=$t;rt.useEffect(()=>(0,st.changeConfirmLocale)(_t&&_t.Modal),[_t]);const Rt=rt.useMemo(()=>Object.assign(Object.assign({},_t),{exist:!0}),[_t]);return rt.createElement(ct.default.Provider,{value:Rt},wt)};_e.default=xt}(locale$1)),locale$1}var context$2={},_default={};const require$$2=getAugmentedNamespace(es$1);var genControlHeight={},hasRequiredGenControlHeight;function requireGenControlHeight(){if(hasRequiredGenControlHeight)return genControlHeight;hasRequiredGenControlHeight=1,Object.defineProperty(genControlHeight,"__esModule",{value:!0}),genControlHeight.default=void 0;const _e=et=>{const{controlHeight:rt}=et;return{controlHeightSM:rt*.75,controlHeightXS:rt*.5,controlHeightLG:rt*1.25}};return genControlHeight.default=_e,genControlHeight}var genSizeMapToken={},hasRequiredGenSizeMapToken;function requireGenSizeMapToken(){if(hasRequiredGenSizeMapToken)return genSizeMapToken;hasRequiredGenSizeMapToken=1,Object.defineProperty(genSizeMapToken,"__esModule",{value:!0}),genSizeMapToken.default=_e;function _e(et){const{sizeUnit:rt,sizeStep:st}=et;return{sizeXXL:rt*(st+8),sizeXL:rt*(st+4),sizeLG:rt*(st+2),sizeMD:rt*(st+1),sizeMS:rt*st,size:rt*st,sizeSM:rt*(st-1),sizeXS:rt*(st-2),sizeXXS:rt*(st-3)}}return genSizeMapToken}var seed$1={},hasRequiredSeed;function requireSeed(){if(hasRequiredSeed)return seed$1;hasRequiredSeed=1,Object.defineProperty(seed$1,"__esModule",{value:!0}),seed$1.defaultPresetColors=seed$1.default=void 0;const _e=seed$1.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"},et=Object.assign(Object.assign({},_e),{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});return seed.default=et,seed}var genColorMapToken={};const require$$1=getAugmentedNamespace(public_api);var hasRequiredGenColorMapToken;function requireGenColorMapToken(){if(hasRequiredGenColorMapToken)return genColorMapToken;hasRequiredGenColorMapToken=1,Object.defineProperty(genColorMapToken,"__esModule",{value:!0}),genColorMapToken.default=et;var _e=require$$1;function et(rt,st){let{generateColorPalettes:ct,generateNeutralColorPalettes:ut}=st;const{colorSuccess:ft,colorWarning:gt,colorError:xt,colorInfo:$t,colorPrimary:_t,colorBgBase:wt,colorTextBase:Tt}=rt,Rt=ct(_t),It=ct(ft),At=ct(gt),jt=ct(xt),Nt=ct($t),kt=ut(wt,Tt),Ft=rt.colorLink||rt.colorInfo,Ht=ct(Ft);return Object.assign(Object.assign({},kt),{colorPrimaryBg:Rt[1],colorPrimaryBgHover:Rt[2],colorPrimaryBorder:Rt[3],colorPrimaryBorderHover:Rt[4],colorPrimaryHover:Rt[5],colorPrimary:Rt[6],colorPrimaryActive:Rt[7],colorPrimaryTextHover:Rt[8],colorPrimaryText:Rt[9],colorPrimaryTextActive:Rt[10],colorSuccessBg:It[1],colorSuccessBgHover:It[2],colorSuccessBorder:It[3],colorSuccessBorderHover:It[4],colorSuccessHover:It[4],colorSuccess:It[6],colorSuccessActive:It[7],colorSuccessTextHover:It[8],colorSuccessText:It[9],colorSuccessTextActive:It[10],colorErrorBg:jt[1],colorErrorBgHover:jt[2],colorErrorBorder:jt[3],colorErrorBorderHover:jt[4],colorErrorHover:jt[5],colorError:jt[6],colorErrorActive:jt[7],colorErrorTextHover:jt[8],colorErrorText:jt[9],colorErrorTextActive:jt[10],colorWarningBg:At[1],colorWarningBgHover:At[2],colorWarningBorder:At[3],colorWarningBorderHover:At[4],colorWarningHover:At[4],colorWarning:At[6],colorWarningActive:At[7],colorWarningTextHover:At[8],colorWarningText:At[9],colorWarningTextActive:At[10],colorInfoBg:Nt[1],colorInfoBgHover:Nt[2],colorInfoBorder:Nt[3],colorInfoBorderHover:Nt[4],colorInfoHover:Nt[4],colorInfo:Nt[6],colorInfoActive:Nt[7],colorInfoTextHover:Nt[8],colorInfoText:Nt[9],colorInfoTextActive:Nt[10],colorLinkHover:Ht[4],colorLink:Ht[6],colorLinkActive:Ht[7],colorBgMask:new _e.TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}return genColorMapToken}var genCommonMapToken={},genRadius={},hasRequiredGenRadius;function requireGenRadius(){if(hasRequiredGenRadius)return genRadius;hasRequiredGenRadius=1,Object.defineProperty(genRadius,"__esModule",{value:!0}),genRadius.default=void 0;const _e=et=>{let rt=et,st=et,ct=et,ut=et;return et<6&&et>=5?rt=et+1:et<16&&et>=6?rt=et+2:et>=16&&(rt=16),et<7&&et>=5?st=4:et<8&&et>=7?st=5:et<14&&et>=8?st=6:et<16&&et>=14?st=7:et>=16&&(st=8),et<6&&et>=2?ct=1:et>=6&&(ct=2),et>4&&et<8?ut=4:et>=8&&(ut=6),{borderRadius:et,borderRadiusXS:ct,borderRadiusSM:st,borderRadiusLG:rt,borderRadiusOuter:ut}};return genRadius.default=_e,genRadius}var hasRequiredGenCommonMapToken;function requireGenCommonMapToken(){if(hasRequiredGenCommonMapToken)return genCommonMapToken;hasRequiredGenCommonMapToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(genCommonMapToken,"__esModule",{value:!0}),genCommonMapToken.default=rt;var et=_e(requireGenRadius());function rt(st){const{motionUnit:ct,motionBase:ut,borderRadius:ft,lineWidth:gt}=st;return Object.assign({motionDurationFast:`${(ut+ct).toFixed(1)}s`,motionDurationMid:`${(ut+ct*2).toFixed(1)}s`,motionDurationSlow:`${(ut+ct*3).toFixed(1)}s`,lineWidthBold:gt+1},(0,et.default)(ft))}return genCommonMapToken}var colors={},colorAlgorithm={},hasRequiredColorAlgorithm;function requireColorAlgorithm(){if(hasRequiredColorAlgorithm)return colorAlgorithm;hasRequiredColorAlgorithm=1,Object.defineProperty(colorAlgorithm,"__esModule",{value:!0}),colorAlgorithm.getSolidColor=colorAlgorithm.getAlphaColor=void 0;var _e=require$$1;const et=(st,ct)=>new _e.TinyColor(st).setAlpha(ct).toRgbString();colorAlgorithm.getAlphaColor=et;const rt=(st,ct)=>new _e.TinyColor(st).darken(ct).toHexString();return colorAlgorithm.getSolidColor=rt,colorAlgorithm}var hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.generateNeutralColorPalettes=colors.generateColorPalettes=void 0;var _e=require$$2,et=requireColorAlgorithm();const rt=ct=>{const ut=(0,_e.generate)(ct);return{1:ut[0],2:ut[1],3:ut[2],4:ut[3],5:ut[4],6:ut[5],7:ut[6],8:ut[4],9:ut[5],10:ut[6]}};colors.generateColorPalettes=rt;const st=(ct,ut)=>{const ft=ct||"#fff",gt=ut||"#000";return{colorBgBase:ft,colorTextBase:gt,colorText:(0,et.getAlphaColor)(gt,.88),colorTextSecondary:(0,et.getAlphaColor)(gt,.65),colorTextTertiary:(0,et.getAlphaColor)(gt,.45),colorTextQuaternary:(0,et.getAlphaColor)(gt,.25),colorFill:(0,et.getAlphaColor)(gt,.15),colorFillSecondary:(0,et.getAlphaColor)(gt,.06),colorFillTertiary:(0,et.getAlphaColor)(gt,.04),colorFillQuaternary:(0,et.getAlphaColor)(gt,.02),colorBgLayout:(0,et.getSolidColor)(ft,4),colorBgContainer:(0,et.getSolidColor)(ft,0),colorBgElevated:(0,et.getSolidColor)(ft,0),colorBgSpotlight:(0,et.getAlphaColor)(gt,.85),colorBgBlur:"transparent",colorBorder:(0,et.getSolidColor)(ft,15),colorBorderSecondary:(0,et.getSolidColor)(ft,6)}};return colors.generateNeutralColorPalettes=st,colors}var genFontMapToken={},genFontSizes={},hasRequiredGenFontSizes;function requireGenFontSizes(){if(hasRequiredGenFontSizes)return genFontSizes;hasRequiredGenFontSizes=1,Object.defineProperty(genFontSizes,"__esModule",{value:!0}),genFontSizes.default=et,genFontSizes.getLineHeight=_e;function _e(rt){return(rt+8)/rt}function et(rt){const st=new Array(10).fill(null).map((ct,ut)=>{const ft=ut-1,gt=rt*Math.pow(2.71828,ft/5),xt=ut>1?Math.floor(gt):Math.ceil(gt);return Math.floor(xt/2)*2});return st[1]=rt,st.map(ct=>({size:ct,lineHeight:_e(ct)}))}return genFontSizes}var hasRequiredGenFontMapToken;function requireGenFontMapToken(){if(hasRequiredGenFontMapToken)return genFontMapToken;hasRequiredGenFontMapToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(genFontMapToken,"__esModule",{value:!0}),genFontMapToken.default=void 0;var et=_e(requireGenFontSizes());const rt=st=>{const ct=(0,et.default)(st),ut=ct.map(Rt=>Rt.size),ft=ct.map(Rt=>Rt.lineHeight),gt=ut[1],xt=ut[0],$t=ut[2],_t=ft[1],wt=ft[0],Tt=ft[2];return{fontSizeSM:xt,fontSize:gt,fontSizeLG:$t,fontSizeXL:ut[3],fontSizeHeading1:ut[6],fontSizeHeading2:ut[5],fontSizeHeading3:ut[4],fontSizeHeading4:ut[3],fontSizeHeading5:ut[2],lineHeight:_t,lineHeightLG:Tt,lineHeightSM:wt,fontHeight:Math.round(_t*gt),fontHeightLG:Math.round(Tt*$t),fontHeightSM:Math.round(wt*xt),lineHeightHeading1:ft[6],lineHeightHeading2:ft[5],lineHeightHeading3:ft[4],lineHeightHeading4:ft[3],lineHeightHeading5:ft[2]}};return genFontMapToken.default=rt,genFontMapToken}var hasRequired_default;function require_default(){if(hasRequired_default)return _default;hasRequired_default=1;var _e=interopRequireDefaultExports;Object.defineProperty(_default,"__esModule",{value:!0}),_default.default=$t;var et=require$$2,rt=_e(requireGenControlHeight()),st=_e(requireGenSizeMapToken()),ct=requireSeed(),ut=_e(requireGenColorMapToken()),ft=_e(requireGenCommonMapToken()),gt=requireColors(),xt=_e(requireGenFontMapToken());function $t(_t){const wt=Object.keys(ct.defaultPresetColors).map(Tt=>{const Rt=(0,et.generate)(_t[Tt]);return new Array(10).fill(1).reduce((It,At,jt)=>(It[`${Tt}-${jt+1}`]=Rt[jt],It[`${Tt}${jt+1}`]=Rt[jt],It),{})}).reduce((Tt,Rt)=>(Tt=Object.assign(Object.assign({},Tt),Rt),Tt),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_t),wt),(0,ut.default)(_t,{generateColorPalettes:gt.generateColorPalettes,generateNeutralColorPalettes:gt.generateNeutralColorPalettes})),(0,xt.default)(_t.fontSize)),(0,st.default)(_t)),(0,rt.default)(_t)),(0,ft.default)(_t))}return _default}var hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return context$2;hasRequiredContext$2=1;var _e=interopRequireDefaultExports;Object.defineProperty(context$2,"__esModule",{value:!0}),context$2.defaultTheme=context$2.defaultConfig=context$2.DesignTokenContext=void 0;var et=_e(reactExports),rt=require$$1$1,st=_e(require_default()),ct=_e(requireSeed());context$2.defaultTheme=(0,rt.createTheme)(st.default);const ut=context$2.defaultConfig={token:ct.default,override:{override:ct.default},hashed:!0};return context$2.DesignTokenContext=et.default.createContext(ut),context$2}var context$1={},hasRequiredContext$1;function requireContext$1(){if(hasRequiredContext$1)return context$1;hasRequiredContext$1=1,Object.defineProperty(context$1,"__esModule",{value:!0}),context$1.defaultIconPrefixCls=context$1.ConfigContext=context$1.ConfigConsumer=void 0;var _e=rt(reactExports);function et(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(et=function(_t){return _t?$t:xt})(gt)}function rt(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=et(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const st=context$1.defaultIconPrefixCls="anticon",ct=(gt,xt)=>xt||(gt?`ant-${gt}`:"ant"),ut=context$1.ConfigContext=_e.createContext({getPrefixCls:ct,iconPrefixCls:st}),{Consumer:ft}=ut;return context$1.ConfigConsumer=ft,context$1}var cssVariables={},hasRequiredCssVariables;function requireCssVariables(){if(hasRequiredCssVariables)return cssVariables;hasRequiredCssVariables=1;var _e=interopRequireDefaultExports;Object.defineProperty(cssVariables,"__esModule",{value:!0}),cssVariables.getStyle=ft,cssVariables.registerTheme=gt;var et=require$$2,rt=require$$1,st=_e(requireCanUseDom()),ct=requireDynamicCSS();_e(requireWarning());const ut=`-ant-${Date.now()}-${Math.random()}`;function ft(xt,$t){const _t={},wt=(It,At)=>{let jt=It.clone();return jt=(At==null?void 0:At(jt))||jt,jt.toRgbString()},Tt=(It,At)=>{const jt=new rt.TinyColor(It),Nt=(0,et.generate)(jt.toRgbString());_t[`${At}-color`]=wt(jt),_t[`${At}-color-disabled`]=Nt[1],_t[`${At}-color-hover`]=Nt[4],_t[`${At}-color-active`]=Nt[6],_t[`${At}-color-outline`]=jt.clone().setAlpha(.2).toRgbString(),_t[`${At}-color-deprecated-bg`]=Nt[0],_t[`${At}-color-deprecated-border`]=Nt[2]};if($t.primaryColor){Tt($t.primaryColor,"primary");const It=new rt.TinyColor($t.primaryColor),At=(0,et.generate)(It.toRgbString());At.forEach((Nt,kt)=>{_t[`primary-${kt+1}`]=Nt}),_t["primary-color-deprecated-l-35"]=wt(It,Nt=>Nt.lighten(35)),_t["primary-color-deprecated-l-20"]=wt(It,Nt=>Nt.lighten(20)),_t["primary-color-deprecated-t-20"]=wt(It,Nt=>Nt.tint(20)),_t["primary-color-deprecated-t-50"]=wt(It,Nt=>Nt.tint(50)),_t["primary-color-deprecated-f-12"]=wt(It,Nt=>Nt.setAlpha(Nt.getAlpha()*.12));const jt=new rt.TinyColor(At[0]);_t["primary-color-active-deprecated-f-30"]=wt(jt,Nt=>Nt.setAlpha(Nt.getAlpha()*.3)),_t["primary-color-active-deprecated-d-02"]=wt(jt,Nt=>Nt.darken(2))}return $t.successColor&&Tt($t.successColor,"success"),$t.warningColor&&Tt($t.warningColor,"warning"),$t.errorColor&&Tt($t.errorColor,"error"),$t.infoColor&&Tt($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});return seed$1.default=et,seed$1}var genColorMapToken={};const require$$1=getAugmentedNamespace(public_api);var hasRequiredGenColorMapToken;function requireGenColorMapToken(){if(hasRequiredGenColorMapToken)return genColorMapToken;hasRequiredGenColorMapToken=1,Object.defineProperty(genColorMapToken,"__esModule",{value:!0}),genColorMapToken.default=et;var _e=require$$1;function et(rt,st){let{generateColorPalettes:ct,generateNeutralColorPalettes:ut}=st;const{colorSuccess:ft,colorWarning:gt,colorError:xt,colorInfo:$t,colorPrimary:_t,colorBgBase:wt,colorTextBase:Tt}=rt,Rt=ct(_t),It=ct(ft),At=ct(gt),jt=ct(xt),Nt=ct($t),kt=ut(wt,Tt),Ft=rt.colorLink||rt.colorInfo,Ht=ct(Ft);return Object.assign(Object.assign({},kt),{colorPrimaryBg:Rt[1],colorPrimaryBgHover:Rt[2],colorPrimaryBorder:Rt[3],colorPrimaryBorderHover:Rt[4],colorPrimaryHover:Rt[5],colorPrimary:Rt[6],colorPrimaryActive:Rt[7],colorPrimaryTextHover:Rt[8],colorPrimaryText:Rt[9],colorPrimaryTextActive:Rt[10],colorSuccessBg:It[1],colorSuccessBgHover:It[2],colorSuccessBorder:It[3],colorSuccessBorderHover:It[4],colorSuccessHover:It[4],colorSuccess:It[6],colorSuccessActive:It[7],colorSuccessTextHover:It[8],colorSuccessText:It[9],colorSuccessTextActive:It[10],colorErrorBg:jt[1],colorErrorBgHover:jt[2],colorErrorBorder:jt[3],colorErrorBorderHover:jt[4],colorErrorHover:jt[5],colorError:jt[6],colorErrorActive:jt[7],colorErrorTextHover:jt[8],colorErrorText:jt[9],colorErrorTextActive:jt[10],colorWarningBg:At[1],colorWarningBgHover:At[2],colorWarningBorder:At[3],colorWarningBorderHover:At[4],colorWarningHover:At[4],colorWarning:At[6],colorWarningActive:At[7],colorWarningTextHover:At[8],colorWarningText:At[9],colorWarningTextActive:At[10],colorInfoBg:Nt[1],colorInfoBgHover:Nt[2],colorInfoBorder:Nt[3],colorInfoBorderHover:Nt[4],colorInfoHover:Nt[4],colorInfo:Nt[6],colorInfoActive:Nt[7],colorInfoTextHover:Nt[8],colorInfoText:Nt[9],colorInfoTextActive:Nt[10],colorLinkHover:Ht[4],colorLink:Ht[6],colorLinkActive:Ht[7],colorBgMask:new _e.TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}return genColorMapToken}var genCommonMapToken={},genRadius={},hasRequiredGenRadius;function requireGenRadius(){if(hasRequiredGenRadius)return genRadius;hasRequiredGenRadius=1,Object.defineProperty(genRadius,"__esModule",{value:!0}),genRadius.default=void 0;const _e=et=>{let rt=et,st=et,ct=et,ut=et;return et<6&&et>=5?rt=et+1:et<16&&et>=6?rt=et+2:et>=16&&(rt=16),et<7&&et>=5?st=4:et<8&&et>=7?st=5:et<14&&et>=8?st=6:et<16&&et>=14?st=7:et>=16&&(st=8),et<6&&et>=2?ct=1:et>=6&&(ct=2),et>4&&et<8?ut=4:et>=8&&(ut=6),{borderRadius:et,borderRadiusXS:ct,borderRadiusSM:st,borderRadiusLG:rt,borderRadiusOuter:ut}};return genRadius.default=_e,genRadius}var hasRequiredGenCommonMapToken;function requireGenCommonMapToken(){if(hasRequiredGenCommonMapToken)return genCommonMapToken;hasRequiredGenCommonMapToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(genCommonMapToken,"__esModule",{value:!0}),genCommonMapToken.default=rt;var et=_e(requireGenRadius());function rt(st){const{motionUnit:ct,motionBase:ut,borderRadius:ft,lineWidth:gt}=st;return Object.assign({motionDurationFast:`${(ut+ct).toFixed(1)}s`,motionDurationMid:`${(ut+ct*2).toFixed(1)}s`,motionDurationSlow:`${(ut+ct*3).toFixed(1)}s`,lineWidthBold:gt+1},(0,et.default)(ft))}return genCommonMapToken}var colors={},colorAlgorithm={},hasRequiredColorAlgorithm;function requireColorAlgorithm(){if(hasRequiredColorAlgorithm)return colorAlgorithm;hasRequiredColorAlgorithm=1,Object.defineProperty(colorAlgorithm,"__esModule",{value:!0}),colorAlgorithm.getSolidColor=colorAlgorithm.getAlphaColor=void 0;var _e=require$$1;const et=(st,ct)=>new _e.TinyColor(st).setAlpha(ct).toRgbString();colorAlgorithm.getAlphaColor=et;const rt=(st,ct)=>new _e.TinyColor(st).darken(ct).toHexString();return colorAlgorithm.getSolidColor=rt,colorAlgorithm}var hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.generateNeutralColorPalettes=colors.generateColorPalettes=void 0;var _e=require$$2,et=requireColorAlgorithm();const rt=ct=>{const ut=(0,_e.generate)(ct);return{1:ut[0],2:ut[1],3:ut[2],4:ut[3],5:ut[4],6:ut[5],7:ut[6],8:ut[4],9:ut[5],10:ut[6]}};colors.generateColorPalettes=rt;const st=(ct,ut)=>{const ft=ct||"#fff",gt=ut||"#000";return{colorBgBase:ft,colorTextBase:gt,colorText:(0,et.getAlphaColor)(gt,.88),colorTextSecondary:(0,et.getAlphaColor)(gt,.65),colorTextTertiary:(0,et.getAlphaColor)(gt,.45),colorTextQuaternary:(0,et.getAlphaColor)(gt,.25),colorFill:(0,et.getAlphaColor)(gt,.15),colorFillSecondary:(0,et.getAlphaColor)(gt,.06),colorFillTertiary:(0,et.getAlphaColor)(gt,.04),colorFillQuaternary:(0,et.getAlphaColor)(gt,.02),colorBgLayout:(0,et.getSolidColor)(ft,4),colorBgContainer:(0,et.getSolidColor)(ft,0),colorBgElevated:(0,et.getSolidColor)(ft,0),colorBgSpotlight:(0,et.getAlphaColor)(gt,.85),colorBgBlur:"transparent",colorBorder:(0,et.getSolidColor)(ft,15),colorBorderSecondary:(0,et.getSolidColor)(ft,6)}};return colors.generateNeutralColorPalettes=st,colors}var genFontMapToken={},genFontSizes={},hasRequiredGenFontSizes;function requireGenFontSizes(){if(hasRequiredGenFontSizes)return genFontSizes;hasRequiredGenFontSizes=1,Object.defineProperty(genFontSizes,"__esModule",{value:!0}),genFontSizes.default=et,genFontSizes.getLineHeight=_e;function _e(rt){return(rt+8)/rt}function et(rt){const st=new Array(10).fill(null).map((ct,ut)=>{const ft=ut-1,gt=rt*Math.pow(2.71828,ft/5),xt=ut>1?Math.floor(gt):Math.ceil(gt);return Math.floor(xt/2)*2});return st[1]=rt,st.map(ct=>({size:ct,lineHeight:_e(ct)}))}return genFontSizes}var hasRequiredGenFontMapToken;function requireGenFontMapToken(){if(hasRequiredGenFontMapToken)return genFontMapToken;hasRequiredGenFontMapToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(genFontMapToken,"__esModule",{value:!0}),genFontMapToken.default=void 0;var et=_e(requireGenFontSizes());const rt=st=>{const ct=(0,et.default)(st),ut=ct.map(Rt=>Rt.size),ft=ct.map(Rt=>Rt.lineHeight),gt=ut[1],xt=ut[0],$t=ut[2],_t=ft[1],wt=ft[0],Tt=ft[2];return{fontSizeSM:xt,fontSize:gt,fontSizeLG:$t,fontSizeXL:ut[3],fontSizeHeading1:ut[6],fontSizeHeading2:ut[5],fontSizeHeading3:ut[4],fontSizeHeading4:ut[3],fontSizeHeading5:ut[2],lineHeight:_t,lineHeightLG:Tt,lineHeightSM:wt,fontHeight:Math.round(_t*gt),fontHeightLG:Math.round(Tt*$t),fontHeightSM:Math.round(wt*xt),lineHeightHeading1:ft[6],lineHeightHeading2:ft[5],lineHeightHeading3:ft[4],lineHeightHeading4:ft[3],lineHeightHeading5:ft[2]}};return genFontMapToken.default=rt,genFontMapToken}var hasRequired_default;function require_default(){if(hasRequired_default)return _default;hasRequired_default=1;var _e=interopRequireDefaultExports;Object.defineProperty(_default,"__esModule",{value:!0}),_default.default=$t;var et=require$$2,rt=_e(requireGenControlHeight()),st=_e(requireGenSizeMapToken()),ct=requireSeed(),ut=_e(requireGenColorMapToken()),ft=_e(requireGenCommonMapToken()),gt=requireColors(),xt=_e(requireGenFontMapToken());function $t(_t){const wt=Object.keys(ct.defaultPresetColors).map(Tt=>{const Rt=(0,et.generate)(_t[Tt]);return new Array(10).fill(1).reduce((It,At,jt)=>(It[`${Tt}-${jt+1}`]=Rt[jt],It[`${Tt}${jt+1}`]=Rt[jt],It),{})}).reduce((Tt,Rt)=>(Tt=Object.assign(Object.assign({},Tt),Rt),Tt),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_t),wt),(0,ut.default)(_t,{generateColorPalettes:gt.generateColorPalettes,generateNeutralColorPalettes:gt.generateNeutralColorPalettes})),(0,xt.default)(_t.fontSize)),(0,st.default)(_t)),(0,rt.default)(_t)),(0,ft.default)(_t))}return _default}var hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return context$2;hasRequiredContext$2=1;var _e=interopRequireDefaultExports;Object.defineProperty(context$2,"__esModule",{value:!0}),context$2.defaultTheme=context$2.defaultConfig=context$2.DesignTokenContext=void 0;var et=_e(reactExports),rt=require$$1$1,st=_e(require_default()),ct=_e(requireSeed());context$2.defaultTheme=(0,rt.createTheme)(st.default);const ut=context$2.defaultConfig={token:ct.default,override:{override:ct.default},hashed:!0};return context$2.DesignTokenContext=et.default.createContext(ut),context$2}var context$1={},hasRequiredContext$1;function requireContext$1(){if(hasRequiredContext$1)return context$1;hasRequiredContext$1=1,Object.defineProperty(context$1,"__esModule",{value:!0}),context$1.defaultIconPrefixCls=context$1.ConfigContext=context$1.ConfigConsumer=void 0;var _e=rt(reactExports);function et(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(et=function(_t){return _t?$t:xt})(gt)}function rt(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=et(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const st=context$1.defaultIconPrefixCls="anticon",ct=(gt,xt)=>xt||(gt?`ant-${gt}`:"ant"),ut=context$1.ConfigContext=_e.createContext({getPrefixCls:ct,iconPrefixCls:st}),{Consumer:ft}=ut;return context$1.ConfigConsumer=ft,context$1}var cssVariables={},hasRequiredCssVariables;function requireCssVariables(){if(hasRequiredCssVariables)return cssVariables;hasRequiredCssVariables=1;var _e=interopRequireDefaultExports;Object.defineProperty(cssVariables,"__esModule",{value:!0}),cssVariables.getStyle=ft,cssVariables.registerTheme=gt;var et=require$$2,rt=require$$1,st=_e(requireCanUseDom()),ct=requireDynamicCSS();_e(requireWarning());const ut=`-ant-${Date.now()}-${Math.random()}`;function ft(xt,$t){const _t={},wt=(It,At)=>{let jt=It.clone();return jt=(At==null?void 0:At(jt))||jt,jt.toRgbString()},Tt=(It,At)=>{const jt=new rt.TinyColor(It),Nt=(0,et.generate)(jt.toRgbString());_t[`${At}-color`]=wt(jt),_t[`${At}-color-disabled`]=Nt[1],_t[`${At}-color-hover`]=Nt[4],_t[`${At}-color-active`]=Nt[6],_t[`${At}-color-outline`]=jt.clone().setAlpha(.2).toRgbString(),_t[`${At}-color-deprecated-bg`]=Nt[0],_t[`${At}-color-deprecated-border`]=Nt[2]};if($t.primaryColor){Tt($t.primaryColor,"primary");const It=new rt.TinyColor($t.primaryColor),At=(0,et.generate)(It.toRgbString());At.forEach((Nt,kt)=>{_t[`primary-${kt+1}`]=Nt}),_t["primary-color-deprecated-l-35"]=wt(It,Nt=>Nt.lighten(35)),_t["primary-color-deprecated-l-20"]=wt(It,Nt=>Nt.lighten(20)),_t["primary-color-deprecated-t-20"]=wt(It,Nt=>Nt.tint(20)),_t["primary-color-deprecated-t-50"]=wt(It,Nt=>Nt.tint(50)),_t["primary-color-deprecated-f-12"]=wt(It,Nt=>Nt.setAlpha(Nt.getAlpha()*.12));const jt=new rt.TinyColor(At[0]);_t["primary-color-active-deprecated-f-30"]=wt(jt,Nt=>Nt.setAlpha(Nt.getAlpha()*.3)),_t["primary-color-active-deprecated-d-02"]=wt(jt,Nt=>Nt.darken(2))}return $t.successColor&&Tt($t.successColor,"success"),$t.warningColor&&Tt($t.warningColor,"warning"),$t.errorColor&&Tt($t.errorColor,"error"),$t.infoColor&&Tt($t.infoColor,"info"),` :root { ${Object.keys(_t).map(It=>`--${xt}-${It}: ${_t[It]};`).join(` `)} @@ -867,7 +882,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)"}),$t)}return alias}var hasRequiredUseToken;function requireUseToken(){if(hasRequiredUseToken)return useToken;hasRequiredUseToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(useToken,"__esModule",{value:!0}),useToken.default=Tt,useToken.unitless=useToken.ignore=useToken.getComputedToken=void 0;var et=_e(reactExports),rt=require$$1$1,st=_e(requireVersion()),ct=requireContext$2(),ut=_e(requireSeed()),ft=_e(requireAlias()),gt=function(Rt,It){var At={};for(var jt in Rt)Object.prototype.hasOwnProperty.call(Rt,jt)&&It.indexOf(jt)<0&&(At[jt]=Rt[jt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,jt=Object.getOwnPropertySymbols(Rt);Nt{const jt=At.getDerivativeToken(Rt),{override:Nt}=It,kt=gt(It,["override"]);let Ft=Object.assign(Object.assign({},jt),{override:Nt});return Ft=(0,ft.default)(Ft),kt&&Object.entries(kt).forEach(Ht=>{let[Wt,Vt]=Ht;const{theme:qt}=Vt,Gt=gt(Vt,["theme"]);let Xt=Gt;qt&&(Xt=wt(Object.assign(Object.assign({},Ft),Gt),{override:Gt},qt)),Ft[Wt]=Xt}),Ft};useToken.getComputedToken=wt;function Tt(){const{token:Rt,hashed:It,theme:At,override:jt,cssVar:Nt}=et.default.useContext(ct.DesignTokenContext),kt=`${st.default}-${It||""}`,Ft=At||ct.defaultTheme,[Ht,Wt,Vt]=(0,rt.useCacheToken)(Ft,[ut.default,Rt],{salt:kt,override:jt,getComputedToken:wt,formatToken:ft.default,cssVar:Nt&&{prefix:Nt.prefix,key:Nt.key,unitless:xt,ignore:$t,preserve:_t}});return[Ft,Vt,It?Wt:"",Ht,Nt]}return useToken}var genComponentStyleHook={},style$2={},operationUnit={},hasRequiredOperationUnit;function requireOperationUnit(){if(hasRequiredOperationUnit)return operationUnit;hasRequiredOperationUnit=1,Object.defineProperty(operationUnit,"__esModule",{value:!0}),operationUnit.operationUnit=void 0;const _e=et=>({color:et.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${et.motionDurationSlow}`,"&:focus, &:hover":{color:et.colorLinkHover},"&:active":{color:et.colorLinkActive}});return operationUnit.operationUnit=_e,operationUnit}var hasRequiredStyle$2;function requireStyle$2(){return hasRequiredStyle$2||(hasRequiredStyle$2=1,function(_e){"use client";Object.defineProperty(_e,"__esModule",{value:!0}),_e.genLinkStyle=_e.genFocusStyle=_e.genFocusOutline=_e.genCommonStyle=_e.clearFix=void 0,Object.defineProperty(_e,"operationUnit",{enumerable:!0,get:function(){return rt.operationUnit}}),_e.textEllipsis=_e.resetIcon=_e.resetComponent=void 0;var et=require$$1$1,rt=requireOperationUnit();_e.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const st=function(_t){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:_t.colorText,fontSize:_t.fontSize,lineHeight:_t.lineHeight,listStyle:"none",fontFamily:wt?"inherit":_t.fontFamily}};_e.resetComponent=st;const ct=()=>({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"}});_e.resetIcon=ct;const ut=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});_e.clearFix=ut;const ft=_t=>({a:{color:_t.colorLink,textDecoration:_t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${_t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:_t.colorLinkHover},"&:active":{color:_t.colorLinkActive},"&:active,\n &:hover":{textDecoration:_t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:_t.linkFocusDecoration,outline:0},"&[disabled]":{color:_t.colorTextDisabled,cursor:"not-allowed"}}});_e.genLinkStyle=ft;const gt=(_t,wt,Tt)=>{const{fontFamily:Rt,fontSize:It}=_t,At=`[class^="${wt}"], [class*=" ${wt}"]`;return{[Tt?`.${Tt}`:At]:{fontFamily:Rt,fontSize:It,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[At]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};_e.genCommonStyle=gt;const xt=_t=>({outline:`${(0,et.unit)(_t.lineWidthFocus)} solid ${_t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"});_e.genFocusOutline=xt;const $t=_t=>({"&:focus-visible":Object.assign({},xt(_t))});_e.genFocusStyle=$t}(style$2)),style$2}var calc={},NumCalculator={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(_e){function et(rt,st){if(!(rt instanceof st))throw new TypeError("Cannot call a class as a function")}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(_e){var et=requireToPropertyKey();function rt(ct,ut){for(var ft=0;ft{const ut=ct==="css"?rt.default:et.default;return ft=>new ut(ft)};return calc.default=st,calc}var maxmin={},hasRequiredMaxmin;function requireMaxmin(){if(hasRequiredMaxmin)return maxmin;hasRequiredMaxmin=1,Object.defineProperty(maxmin,"__esModule",{value:!0}),maxmin.default=et;var _e=require$$1$1;function et(rt){return rt==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var st=arguments.length,ct=new Array(st),ut=0;ut(0,_e.unit)(ft)).join(",")})`},min:function(){for(var st=arguments.length,ct=new Array(st),ut=0;ut(0,_e.unit)(ft)).join(",")})`}}}return maxmin}var statistic={},hasRequiredStatistic;function requireStatistic(){if(hasRequiredStatistic)return statistic;hasRequiredStatistic=1,Object.defineProperty(statistic,"__esModule",{value:!0}),statistic.default=statistic._statistic_build_=void 0,statistic.merge=rt,statistic.statistic=void 0;const _e=typeof CSSINJS_STATISTIC<"u";let et=!0;function rt(){for(var ft=arguments.length,gt=new Array(ft),xt=0;xt{Object.keys(_t).forEach(Tt=>{Object.defineProperty($t,Tt,{configurable:!0,enumerable:!0,get:()=>_t[Tt]})})}),et=!0,$t}const st=statistic.statistic={};statistic._statistic_build_={};function ct(){}const ut=ft=>{let gt,xt=ft,$t=ct;return _e&&typeof Proxy<"u"&&(gt=new Set,xt=new Proxy(ft,{get(_t,wt){return et&>.add(wt),_t[wt]}}),$t=(_t,wt)=>{var Tt;st[_t]={global:Array.from(gt),component:Object.assign(Object.assign({},(Tt=st[_t])===null||Tt===void 0?void 0:Tt.component),wt)}}),{token:xt,keys:gt,flush:$t}};return statistic.default=ut,statistic}var useResetIconStyle={},hasRequiredUseResetIconStyle;function requireUseResetIconStyle(){if(hasRequiredUseResetIconStyle)return useResetIconStyle;hasRequiredUseResetIconStyle=1;var _e=interopRequireDefaultExports;Object.defineProperty(useResetIconStyle,"__esModule",{value:!0}),useResetIconStyle.default=void 0;var et=require$$1$1,rt=requireStyle$2(),st=_e(requireUseToken());const ct=(ut,ft)=>{const[gt,xt]=(0,st.default)();return(0,et.useStyleRegister)({theme:gt,token:xt,hashId:"",path:["ant-design-icons",ut],nonce:()=>ft==null?void 0:ft.nonce},()=>[{[`.${ut}`]:Object.assign(Object.assign({},(0,rt.resetIcon)()),{[`.${ut} .${ut}-icon`]:{display:"block"}})}])};return useResetIconStyle.default=ct,useResetIconStyle}var hasRequiredGenComponentStyleHook;function requireGenComponentStyleHook(){if(hasRequiredGenComponentStyleHook)return genComponentStyleHook;hasRequiredGenComponentStyleHook=1;var _e=interopRequireDefaultExports;Object.defineProperty(genComponentStyleHook,"__esModule",{value:!0}),genComponentStyleHook.default=At,genComponentStyleHook.genSubStyleComponent=genComponentStyleHook.genStyleHooks=void 0;var et=wt(reactExports),rt=require$$1$1,st=requireContext$1(),ct=requireStyle$2(),ut=wt(requireUseToken()),ft=_e(requireCalc()),gt=_e(requireMaxmin()),xt=wt(requireStatistic()),$t=_e(requireUseResetIconStyle());function _t(Ft){if(typeof WeakMap!="function")return null;var Ht=new WeakMap,Wt=new WeakMap;return(_t=function(Vt){return Vt?Wt:Ht})(Ft)}function wt(Ft,Ht){if(!Ht&&Ft&&Ft.__esModule)return Ft;if(Ft===null||typeof Ft!="object"&&typeof Ft!="function")return{default:Ft};var Wt=_t(Ht);if(Wt&&Wt.has(Ft))return Wt.get(Ft);var Vt={__proto__:null},qt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Gt in Ft)if(Gt!=="default"&&Object.prototype.hasOwnProperty.call(Ft,Gt)){var Xt=qt?Object.getOwnPropertyDescriptor(Ft,Gt):null;Xt&&(Xt.get||Xt.set)?Object.defineProperty(Vt,Gt,Xt):Vt[Gt]=Ft[Gt]}return Vt.default=Ft,Wt&&Wt.set(Ft,Vt),Vt}const Tt=(Ft,Ht,Wt)=>{var Vt;return typeof Wt=="function"?Wt((0,xt.merge)(Ht,(Vt=Ht[Ft])!==null&&Vt!==void 0?Vt:{})):Wt??{}},Rt=(Ft,Ht,Wt,Vt)=>{const qt=Object.assign({},Ht[Ft]);if(Vt!=null&&Vt.deprecatedTokens){const{deprecatedTokens:Xt}=Vt;Xt.forEach(Zt=>{let[lr,er]=Zt;var cr;(qt!=null&&qt[lr]||qt!=null&&qt[er])&&((cr=qt[er])!==null&&cr!==void 0||(qt[er]=qt==null?void 0:qt[lr]))})}const Gt=Object.assign(Object.assign({},Wt),qt);return Object.keys(Gt).forEach(Xt=>{Gt[Xt]===Ht[Xt]&&delete Gt[Xt]}),Gt},It=(Ft,Ht)=>`${[Ht,Ft.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function At(Ft,Ht,Wt){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const qt=Array.isArray(Ft)?Ft:[Ft,Ft],[Gt]=qt,Xt=qt.join("-");return function(Zt){let lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt;const[er,cr,ur,pr,hr]=(0,ut.default)(),{getPrefixCls:fr,iconPrefixCls:dr,csp:yr}=(0,et.useContext)(st.ConfigContext),$r=fr(),Er=hr?"css":"js",mr=(0,ft.default)(Er),{max:Sr,min:Tr}=(0,gt.default)(Er),jr={theme:er,token:pr,hashId:ur,nonce:()=>yr==null?void 0:yr.nonce,clientOnly:Vt.clientOnly,order:Vt.order||-999};return(0,rt.useStyleRegister)(Object.assign(Object.assign({},jr),{clientOnly:!1,path:["Shared",$r]}),()=>[{"&":(0,ct.genLinkStyle)(pr)}]),(0,$t.default)(dr,yr),[(0,rt.useStyleRegister)(Object.assign(Object.assign({},jr),{path:[Xt,Zt,dr]}),()=>{if(Vt.injectStyle===!1)return[];const{token:_r,flush:Cr}=(0,xt.default)(pr),Nr=Tt(Gt,cr,Wt),Rr=`.${Zt}`,Pr=Rt(Gt,cr,Nr,{deprecatedTokens:Vt.deprecatedTokens});hr&&Object.keys(Nr).forEach(Fr=>{Nr[Fr]=`var(${(0,rt.token2CSSVar)(Fr,It(Gt,hr.prefix))})`});const Mr=(0,xt.merge)(_r,{componentCls:Rr,prefixCls:Zt,iconCls:`.${dr}`,antCls:`.${$r}`,calc:mr,max:Sr,min:Tr},hr?Nr:Pr),kr=Ht(Mr,{hashId:ur,prefixCls:Zt,rootPrefixCls:$r,iconPrefixCls:dr});return Cr(Gt,Pr),[Vt.resetStyle===!1?null:(0,ct.genCommonStyle)(Mr,Zt,lr),kr]}),ur]}}const jt=(Ft,Ht,Wt,Vt)=>{const qt=At(Ft,Ht,Wt,Object.assign({resetStyle:!1,order:-998},Vt));return Xt=>{let{prefixCls:Zt,rootCls:lr=Zt}=Xt;return qt(Zt,lr),null}};genComponentStyleHook.genSubStyleComponent=jt;const Nt=(Ft,Ht,Wt)=>{function Vt(er){return`${Ft}${er.slice(0,1).toUpperCase()}${er.slice(1)}`}const{unitless:qt={},injectStyle:Gt=!0}=Wt??{},Xt={[Vt("zIndexPopup")]:!0};Object.keys(qt).forEach(er=>{Xt[Vt(er)]=qt[er]});const Zt=er=>{let{rootCls:cr,cssVar:ur}=er;const[,pr]=(0,ut.default)();return(0,rt.useCSSVarRegister)({path:[Ft],prefix:ur.prefix,key:ur==null?void 0:ur.key,unitless:Object.assign(Object.assign({},ut.unitless),Xt),ignore:ut.ignore,token:pr,scope:cr},()=>{const hr=Tt(Ft,pr,Ht),fr=Rt(Ft,pr,hr,{deprecatedTokens:Wt==null?void 0:Wt.deprecatedTokens});return Object.keys(hr).forEach(dr=>{fr[Vt(dr)]=fr[dr],delete fr[dr]}),fr}),null};return er=>{const[,,,,cr]=(0,ut.default)();return[ur=>Gt&&cr?et.default.createElement(et.default.Fragment,null,et.default.createElement(Zt,{rootCls:er,cssVar:cr,component:Ft}),ur):ur,cr==null?void 0:cr.key]}},kt=(Ft,Ht,Wt,Vt)=>{const qt=At(Ft,Ht,Wt,Vt),Gt=Nt(Array.isArray(Ft)?Ft[0]:Ft,Wt,Vt);return function(Xt){let Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt;const[,lr]=qt(Xt,Zt),[er,cr]=Gt(Zt);return[er,lr,cr]}};return genComponentStyleHook.genStyleHooks=kt,genComponentStyleHook}var genPresetColor={},hasRequiredGenPresetColor;function requireGenPresetColor(){if(hasRequiredGenPresetColor)return genPresetColor;hasRequiredGenPresetColor=1,Object.defineProperty(genPresetColor,"__esModule",{value:!0}),genPresetColor.default=et;var _e=require_interface();function et(rt,st){return _e.PresetColors.reduce((ct,ut)=>{const ft=rt[`${ut}1`],gt=rt[`${ut}3`],xt=rt[`${ut}6`],$t=rt[`${ut}7`];return Object.assign(Object.assign({},ct),st(ut,{lightColor:ft,lightBorderColor:gt,darkColor:xt,textColor:$t}))},{})}return genPresetColor}var hasRequiredInternal;function requireInternal(){return hasRequiredInternal||(hasRequiredInternal=1,function(_e){var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"DesignTokenContext",{enumerable:!0,get:function(){return wt.DesignTokenContext}}),Object.defineProperty(_e,"PresetColors",{enumerable:!0,get:function(){return st.PresetColors}}),Object.defineProperty(_e,"calc",{enumerable:!0,get:function(){return $t.default}}),Object.defineProperty(_e,"defaultConfig",{enumerable:!0,get:function(){return wt.defaultConfig}}),Object.defineProperty(_e,"genComponentStyleHook",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(_e,"genPresetColor",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(_e,"genStyleHooks",{enumerable:!0,get:function(){return ut.genStyleHooks}}),Object.defineProperty(_e,"genSubStyleComponent",{enumerable:!0,get:function(){return ut.genSubStyleComponent}}),Object.defineProperty(_e,"getLineHeight",{enumerable:!0,get:function(){return _t.getLineHeight}}),Object.defineProperty(_e,"mergeToken",{enumerable:!0,get:function(){return gt.merge}}),Object.defineProperty(_e,"statisticToken",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(_e,"useResetIconStyle",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(_e,"useStyleRegister",{enumerable:!0,get:function(){return rt.useStyleRegister}}),Object.defineProperty(_e,"useToken",{enumerable:!0,get:function(){return ct.default}});var rt=require$$1$1,st=require_interface(),ct=et(requireUseToken()),ut=Rt(requireGenComponentStyleHook()),ft=et(requireGenPresetColor()),gt=Rt(requireStatistic()),xt=et(requireUseResetIconStyle()),$t=et(requireCalc()),_t=requireGenFontSizes(),wt=requireContext$2();function Tt(It){if(typeof WeakMap!="function")return null;var At=new WeakMap,jt=new WeakMap;return(Tt=function(Nt){return Nt?jt:At})(It)}function Rt(It,At){if(!At&&It&&It.__esModule)return It;if(It===null||typeof It!="object"&&typeof It!="function")return{default:It};var jt=Tt(At);if(jt&&jt.has(It))return jt.get(It);var Nt={__proto__:null},kt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ft in It)if(Ft!=="default"&&Object.prototype.hasOwnProperty.call(It,Ft)){var Ht=kt?Object.getOwnPropertyDescriptor(It,Ft):null;Ht&&(Ht.get||Ht.set)?Object.defineProperty(Nt,Ft,Ht):Nt[Ft]=It[Ft]}return Nt.default=It,jt&&jt.set(It,Nt),Nt}}(internal)),internal}var useThemeKey={},hasRequiredUseThemeKey;function requireUseThemeKey(){if(hasRequiredUseThemeKey)return useThemeKey;hasRequiredUseThemeKey=1,Object.defineProperty(useThemeKey,"__esModule",{value:!0}),useThemeKey.default=void 0;var _e=rt(reactExports);function et(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(et=function(_t){return _t?$t:xt})(gt)}function rt(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=et(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const st=Object.assign({},_e),{useId:ct}=st,ft=typeof ct>"u"?()=>"":ct;return useThemeKey.default=ft,useThemeKey}var hasRequiredUseTheme;function requireUseTheme(){if(hasRequiredUseTheme)return useTheme;hasRequiredUseTheme=1;var _e=interopRequireDefaultExports;Object.defineProperty(useTheme,"__esModule",{value:!0}),useTheme.default=ft;var et=_e(requireUseMemo()),rt=_e(requireIsEqual()),st=requireInternal(),ct=_e(requireUseThemeKey()),ut=requireWarning();function ft(gt,xt){var $t;(0,ut.devUseWarning)("ConfigProvider");const _t=gt||{},wt=_t.inherit===!1||!xt?Object.assign(Object.assign({},st.defaultConfig),{hashed:($t=xt==null?void 0:xt.hashed)!==null&&$t!==void 0?$t:st.defaultConfig.hashed,cssVar:xt==null?void 0:xt.cssVar}):xt,Tt=(0,ct.default)();return(0,et.default)(()=>{var Rt,It;if(!gt)return xt;const At=Object.assign({},wt.components);Object.keys(gt.components||{}).forEach(kt=>{At[kt]=Object.assign(Object.assign({},At[kt]),gt.components[kt])});const jt=`css-var-${Tt.replace(/:/g,"")}`,Nt=((Rt=_t.cssVar)!==null&&Rt!==void 0?Rt:wt.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof wt.cssVar=="object"?wt.cssVar:{}),typeof _t.cssVar=="object"?_t.cssVar:{}),{key:typeof _t.cssVar=="object"&&((It=_t.cssVar)===null||It===void 0?void 0:It.key)||jt});return Object.assign(Object.assign(Object.assign({},wt),_t),{token:Object.assign(Object.assign({},wt.token),_t.token),components:At,cssVar:Nt})},[_t,wt],(Rt,It)=>Rt.some((At,jt)=>{const Nt=It[jt];return!(0,rt.default)(At,Nt,!0)}))}return useTheme}var MotionWrapper={};const require$$0=getAugmentedNamespace(es);var hasRequiredMotionWrapper;function requireMotionWrapper(){if(hasRequiredMotionWrapper)return MotionWrapper;hasRequiredMotionWrapper=1,Object.defineProperty(MotionWrapper,"__esModule",{value:!0}),MotionWrapper.default=ut;var _e=require$$0,et=ct(reactExports),rt=requireInternal();function st(ft){if(typeof WeakMap!="function")return null;var gt=new WeakMap,xt=new WeakMap;return(st=function($t){return $t?xt:gt})(ft)}function ct(ft,gt){if(!gt&&ft&&ft.__esModule)return ft;if(ft===null||typeof ft!="object"&&typeof ft!="function")return{default:ft};var xt=st(gt);if(xt&&xt.has(ft))return xt.get(ft);var $t={__proto__:null},_t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var wt in ft)if(wt!=="default"&&Object.prototype.hasOwnProperty.call(ft,wt)){var Tt=_t?Object.getOwnPropertyDescriptor(ft,wt):null;Tt&&(Tt.get||Tt.set)?Object.defineProperty($t,wt,Tt):$t[wt]=ft[wt]}return $t.default=ft,xt&&xt.set(ft,$t),$t}function ut(ft){const{children:gt}=ft,[,xt]=(0,rt.useToken)(),{motion:$t}=xt,_t=et.useRef(!1);return _t.current=_t.current||$t===!1,_t.current?et.createElement(_e.Provider,{motion:$t},gt):gt}return MotionWrapper}var PropWarning={},hasRequiredPropWarning;function requirePropWarning(){if(hasRequiredPropWarning)return PropWarning;hasRequiredPropWarning=1,Object.defineProperty(PropWarning,"__esModule",{value:!0}),PropWarning.default=void 0,et(reactExports),requireWarning();function _e(rt){if(typeof WeakMap!="function")return null;var st=new WeakMap,ct=new WeakMap;return(_e=function(ut){return ut?ct:st})(rt)}function et(rt,st){if(!st&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var ct=_e(st);if(ct&&ct.has(rt))return ct.get(rt);var ut={__proto__:null},ft=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var gt in rt)if(gt!=="default"&&Object.prototype.hasOwnProperty.call(rt,gt)){var xt=ft?Object.getOwnPropertyDescriptor(rt,gt):null;xt&&(xt.get||xt.set)?Object.defineProperty(ut,gt,xt):ut[gt]=rt[gt]}return ut.default=rt,ct&&ct.set(rt,ut),ut}return PropWarning.default=()=>null,PropWarning}var style$1={},hasRequiredStyle$1;function requireStyle$1(){return hasRequiredStyle$1||(hasRequiredStyle$1=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return et.useResetIconStyle}});var et=requireInternal()}(style$1)),style$1}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(_e){"use client";var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"ConfigConsumer",{enumerable:!0,get:function(){return It.ConfigConsumer}}),Object.defineProperty(_e,"ConfigContext",{enumerable:!0,get:function(){return It.ConfigContext}}),_e.default=_e.configConsumerProps=void 0,Object.defineProperty(_e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return It.defaultIconPrefixCls}}),_e.warnContext=_e.globalConfig=_e.defaultPrefixCls=void 0;var rt=Gt(reactExports),st=require$$1$1,ct=et(requireContext$4()),ut=et(requireUseMemo()),ft=requireSet(),gt=Gt(requireWarning()),xt=et(requireValidateMessagesContext()),$t=Gt(requireLocale()),_t=et(requireContext$3()),wt=et(en_US$6),Tt=requireContext$2(),Rt=et(requireSeed()),It=requireContext$1(),At=requireCssVariables(),jt=requireDisabledContext(),Nt=et(requireUseConfig()),kt=et(requireUseTheme()),Ft=et(requireMotionWrapper()),Ht=et(requirePropWarning()),Wt=Gt(requireSizeContext()),Vt=et(requireStyle$1());function qt(Sr){if(typeof WeakMap!="function")return null;var Tr=new WeakMap,jr=new WeakMap;return(qt=function(Or){return Or?jr:Tr})(Sr)}function Gt(Sr,Tr){if(!Tr&&Sr&&Sr.__esModule)return Sr;if(Sr===null||typeof Sr!="object"&&typeof Sr!="function")return{default:Sr};var jr=qt(Tr);if(jr&&jr.has(Sr))return jr.get(Sr);var Or={__proto__:null},_r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Cr in Sr)if(Cr!=="default"&&Object.prototype.hasOwnProperty.call(Sr,Cr)){var Nr=_r?Object.getOwnPropertyDescriptor(Sr,Cr):null;Nr&&(Nr.get||Nr.set)?Object.defineProperty(Or,Cr,Nr):Or[Cr]=Sr[Cr]}return Or.default=Sr,jr&&jr.set(Sr,Or),Or}var Xt=function(Sr,Tr){var jr={};for(var Or in Sr)Object.prototype.hasOwnProperty.call(Sr,Or)&&Tr.indexOf(Or)<0&&(jr[Or]=Sr[Or]);if(Sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _r=0,Or=Object.getOwnPropertySymbols(Sr);_rTr.endsWith("Color"))}const yr=Sr=>{const{prefixCls:Tr,iconPrefixCls:jr,theme:Or,holderRender:_r}=Sr;Tr!==void 0&&(er=Tr),jr!==void 0&&(cr=jr),"holderRender"in Sr&&(pr=_r),Or&&(dr(Or)?(0,At.registerTheme)(hr(),Or):ur=Or)},$r=()=>({getPrefixCls:(Sr,Tr)=>Tr||(Sr?`${hr()}-${Sr}`:hr()),getIconPrefixCls:fr,getRootPrefixCls:()=>er||hr(),getTheme:()=>ur,holderRender:pr});_e.globalConfig=$r;const Er=Sr=>{const{children:Tr,csp:jr,autoInsertSpaceInButton:Or,alert:_r,anchor:Cr,form:Nr,locale:Rr,componentSize:Pr,direction:Mr,space:kr,virtual:Fr,dropdownMatchSelectWidth:wr,popupMatchSelectWidth:Br,popupOverflow:Dr,legacyLocale:Xr,parentContext:Kr,iconPrefixCls:zr,theme:qr,componentDisabled:pn,segmented:Qr,statistic:Zr,spin:vn,calendar:vr,carousel:gr,cascader:br,collapse:Hr,typography:Vr,checkbox:Wr,descriptions:Gr,divider:cn,drawer:mn,skeleton:hn,steps:En,image:Rn,layout:Dn,list:Bn,mentions:Yn,modal:qn,progress:ao,result:dn,slider:gn,breadcrumb:yn,menu:wn,pagination:Tn,input:Nn,empty:On,badge:xn,radio:Cn,rate:Sn,switch:Mn,transfer:jn,avatar:Un,message:Gn,tag:eo,table:io,card:Kn,tabs:Wn,timeline:zn,timePicker:_n,upload:ln,notification:Pn,tree:An,colorPicker:Qn,datePicker:ro,rangePicker:oo,flex:Vn,wave:uo,dropdown:po,warning:_o,tour:Uo}=Sr,Bo=rt.useCallback((vo,mo)=>{const{prefixCls:Fn}=Sr;if(mo)return mo;const kn=Fn||Kr.getPrefixCls("");return vo?`${kn}-${vo}`:kn},[Kr.getPrefixCls,Sr.prefixCls]),Oo=zr||Kr.iconPrefixCls||It.defaultIconPrefixCls,Ko=jr||Kr.csp;(0,Vt.default)(Oo,Ko);const Ao=(0,kt.default)(qr,Kr.theme),No={csp:Ko,autoInsertSpaceInButton:Or,alert:_r,anchor:Cr,locale:Rr||Xr,direction:Mr,space:kr,virtual:Fr,popupMatchSelectWidth:Br??wr,popupOverflow:Dr,getPrefixCls:Bo,iconPrefixCls:Oo,theme:Ao,segmented:Qr,statistic:Zr,spin:vn,calendar:vr,carousel:gr,cascader:br,collapse:Hr,typography:Vr,checkbox:Wr,descriptions:Gr,divider:cn,drawer:mn,skeleton:hn,steps:En,image:Rn,input:Nn,layout:Dn,list:Bn,mentions:Yn,modal:qn,progress:ao,result:dn,slider:gn,breadcrumb:yn,menu:wn,pagination:Tn,empty:On,badge:xn,radio:Cn,rate:Sn,switch:Mn,transfer:jn,avatar:Un,message:Gn,tag:eo,table:io,card:Kn,tabs:Wn,timeline:zn,timePicker:_n,upload:ln,notification:Pn,tree:An,colorPicker:Qn,datePicker:ro,rangePicker:oo,flex:Vn,wave:uo,dropdown:po,warning:_o,tour:Uo},qo=Object.assign({},Kr);Object.keys(No).forEach(vo=>{No[vo]!==void 0&&(qo[vo]=No[vo])}),Zt.forEach(vo=>{const mo=Sr[vo];mo&&(qo[vo]=mo)});const Wo=(0,ut.default)(()=>qo,qo,(vo,mo)=>{const Fn=Object.keys(vo),kn=Object.keys(mo);return Fn.length!==kn.length||Fn.some(co=>vo[co]!==mo[co])}),os=rt.useMemo(()=>({prefixCls:Oo,csp:Ko}),[Oo,Ko]);let Io=rt.createElement(rt.Fragment,null,rt.createElement(Ht.default,{dropdownMatchSelectWidth:wr}),Tr);const ss=rt.useMemo(()=>{var vo,mo,Fn,kn;return(0,ft.merge)(((vo=wt.default.Form)===null||vo===void 0?void 0:vo.defaultValidateMessages)||{},((Fn=(mo=Wo.locale)===null||mo===void 0?void 0:mo.Form)===null||Fn===void 0?void 0:Fn.defaultValidateMessages)||{},((kn=Wo.form)===null||kn===void 0?void 0:kn.validateMessages)||{},(Nr==null?void 0:Nr.validateMessages)||{})},[Wo,Nr==null?void 0:Nr.validateMessages]);Object.keys(ss).length>0&&(Io=rt.createElement(xt.default.Provider,{value:ss},Io)),Rr&&(Io=rt.createElement($t.default,{locale:Rr,_ANT_MARK__:$t.ANT_MARK},Io)),(Oo||Ko)&&(Io=rt.createElement(ct.default.Provider,{value:os},Io)),Pr&&(Io=rt.createElement(Wt.SizeContextProvider,{size:Pr},Io)),Io=rt.createElement(Ft.default,null,Io);const _i=rt.useMemo(()=>{const vo=Ao||{},{algorithm:mo,token:Fn,components:kn,cssVar:co}=vo,Eo=Xt(vo,["algorithm","token","components","cssVar"]),so=mo&&(!Array.isArray(mo)||mo.length>0)?(0,st.createTheme)(mo):Tt.defaultTheme,Xn={};Object.entries(kn||{}).forEach(To=>{let[Po,Fo]=To;const fo=Object.assign({},Fo);"algorithm"in fo&&(fo.algorithm===!0?fo.theme=so:(Array.isArray(fo.algorithm)||typeof fo.algorithm=="function")&&(fo.theme=(0,st.createTheme)(fo.algorithm)),delete fo.algorithm),Xn[Po]=fo});const no=Object.assign(Object.assign({},Rt.default),Fn);return Object.assign(Object.assign({},Eo),{theme:so,token:no,components:Xn,override:Object.assign({override:no},Xn),cssVar:co})},[Ao]);return qr&&(Io=rt.createElement(Tt.DesignTokenContext.Provider,{value:_i},Io)),Wo.warning&&(Io=rt.createElement(gt.WarningContext.Provider,{value:Wo.warning},Io)),pn!==void 0&&(Io=rt.createElement(jt.DisabledContextProvider,{disabled:pn},Io)),rt.createElement(It.ConfigContext.Provider,{value:Wo},Io)},mr=Sr=>{const Tr=rt.useContext(It.ConfigContext),jr=rt.useContext(_t.default);return rt.createElement(Er,Object.assign({parentContext:Tr,legacyLocale:jr},Sr))};mr.ConfigContext=It.ConfigContext,mr.SizeContext=Wt.default,mr.config=yr,mr.useConfig=Nt.default,Object.defineProperty(mr,"SizeContext",{get:()=>Wt.default}),_e.default=mr}(configProvider)),configProvider}var context={},hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1,Object.defineProperty(context,"__esModule",{value:!0}),context.LayoutContext=void 0;var _e=rt(reactExports);function et(st){if(typeof WeakMap!="function")return null;var ct=new WeakMap,ut=new WeakMap;return(et=function(ft){return ft?ut:ct})(st)}function rt(st,ct){if(!ct&&st&&st.__esModule)return st;if(st===null||typeof st!="object"&&typeof st!="function")return{default:st};var ut=et(ct);if(ut&&ut.has(st))return ut.get(st);var ft={__proto__:null},gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xt in st)if(xt!=="default"&&Object.prototype.hasOwnProperty.call(st,xt)){var $t=gt?Object.getOwnPropertyDescriptor(st,xt):null;$t&&($t.get||$t.set)?Object.defineProperty(ft,xt,$t):ft[xt]=st[xt]}return ft.default=st,ut&&ut.set(st,ft),ft}return context.LayoutContext=_e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),context}var useHasSider={},toArray={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray;hasRequiredToArray=1;var _e=interopRequireDefaultExports.default;Object.defineProperty(toArray,"__esModule",{value:!0}),toArray.default=st;var et=_e(reactExports),rt=reactIsExports$1;function st(ct){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=[];return et.default.Children.forEach(ct,function(gt){gt==null&&!ut.keepEmpty||(Array.isArray(gt)?ft=ft.concat(st(gt)):(0,rt.isFragment)(gt)&>.props?ft=ft.concat(st(gt.props.children,ut)):ft.push(gt))}),ft}return toArray}var Sider$5={},BarsOutlined$2={exports:{}},BarsOutlined$1={},BarsOutlined={},hasRequiredBarsOutlined$2;function requireBarsOutlined$2(){if(hasRequiredBarsOutlined$2)return BarsOutlined;hasRequiredBarsOutlined$2=1,Object.defineProperty(BarsOutlined,"__esModule",{value:!0});var _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"};return BarsOutlined.default=_e,BarsOutlined}var AntdIcon={},IconBase={},utils={},hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0});function et(qt,Gt){for(var Xt in Gt)Object.defineProperty(qt,Xt,{enumerable:!0,get:Gt[Xt]})}et(_e,{generate:function(){return Nt},getSecondaryColor:function(){return kt},iconStyles:function(){return Wt},isIconDefinition:function(){return At},normalizeAttrs:function(){return jt},normalizeTwoToneColors:function(){return Ft},svgBaseProps:function(){return Ht},useInsertStyles:function(){return Vt},warning:function(){return It}});var rt=require$$2,st=requireDynamicCSS(),ct=shadow,ut=$t(requireWarning$1()),ft=wt(reactExports),gt=$t(requireContext$4());function xt(qt,Gt,Xt){return Gt in qt?Object.defineProperty(qt,Gt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):qt[Gt]=Xt,qt}function $t(qt){return qt&&qt.__esModule?qt:{default:qt}}function _t(qt){if(typeof WeakMap!="function")return null;var Gt=new WeakMap,Xt=new WeakMap;return(_t=function(Zt){return Zt?Xt:Gt})(qt)}function wt(qt,Gt){if(!Gt&&qt&&qt.__esModule)return qt;if(qt===null||typeof qt!="object"&&typeof qt!="function")return{default:qt};var Xt=_t(Gt);if(Xt&&Xt.has(qt))return Xt.get(qt);var Zt={__proto__:null},lr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var er in qt)if(er!=="default"&&Object.prototype.hasOwnProperty.call(qt,er)){var cr=lr?Object.getOwnPropertyDescriptor(qt,er):null;cr&&(cr.get||cr.set)?Object.defineProperty(Zt,er,cr):Zt[er]=qt[er]}return Zt.default=qt,Xt&&Xt.set(qt,Zt),Zt}function Tt(qt){for(var Gt=1;Gt0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(qt).reduce(function(Gt,Xt){var Zt=qt[Xt];switch(Xt){case"class":Gt.className=Zt,delete Gt.class;break;default:delete Gt[Xt],Gt[Rt(Xt)]=Zt}return Gt},{})}function Nt(qt,Gt,Xt){return Xt?ft.default.createElement(qt.tag,Tt({key:Gt},jt(qt.attrs),Xt),(qt.children||[]).map(function(Zt,lr){return Nt(Zt,"".concat(Gt,"-").concat(qt.tag,"-").concat(lr))})):ft.default.createElement(qt.tag,Tt({key:Gt},jt(qt.attrs)),(qt.children||[]).map(function(Zt,lr){return Nt(Zt,"".concat(Gt,"-").concat(qt.tag,"-").concat(lr))}))}function kt(qt){return(0,rt.generate)(qt)[0]}function Ft(qt){return qt?Array.isArray(qt)?qt:[qt]:[]}var Ht={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Wt=` + `,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)"}),$t)}return alias}var hasRequiredUseToken;function requireUseToken(){if(hasRequiredUseToken)return useToken;hasRequiredUseToken=1;var _e=interopRequireDefaultExports;Object.defineProperty(useToken,"__esModule",{value:!0}),useToken.default=Tt,useToken.unitless=useToken.ignore=useToken.getComputedToken=void 0;var et=_e(reactExports),rt=require$$1$1,st=_e(requireVersion()),ct=requireContext$2(),ut=_e(requireSeed()),ft=_e(requireAlias()),gt=function(Rt,It){var At={};for(var jt in Rt)Object.prototype.hasOwnProperty.call(Rt,jt)&&It.indexOf(jt)<0&&(At[jt]=Rt[jt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,jt=Object.getOwnPropertySymbols(Rt);Nt{const jt=At.getDerivativeToken(Rt),{override:Nt}=It,kt=gt(It,["override"]);let Ft=Object.assign(Object.assign({},jt),{override:Nt});return Ft=(0,ft.default)(Ft),kt&&Object.entries(kt).forEach(Ht=>{let[Wt,Vt]=Ht;const{theme:qt}=Vt,Xt=gt(Vt,["theme"]);let Gt=Xt;qt&&(Gt=wt(Object.assign(Object.assign({},Ft),Xt),{override:Xt},qt)),Ft[Wt]=Gt}),Ft};useToken.getComputedToken=wt;function Tt(){const{token:Rt,hashed:It,theme:At,override:jt,cssVar:Nt}=et.default.useContext(ct.DesignTokenContext),kt=`${st.default}-${It||""}`,Ft=At||ct.defaultTheme,[Ht,Wt,Vt]=(0,rt.useCacheToken)(Ft,[ut.default,Rt],{salt:kt,override:jt,getComputedToken:wt,formatToken:ft.default,cssVar:Nt&&{prefix:Nt.prefix,key:Nt.key,unitless:xt,ignore:$t,preserve:_t}});return[Ft,Vt,It?Wt:"",Ht,Nt]}return useToken}var genComponentStyleHook={},style$2={},operationUnit={},hasRequiredOperationUnit;function requireOperationUnit(){if(hasRequiredOperationUnit)return operationUnit;hasRequiredOperationUnit=1,Object.defineProperty(operationUnit,"__esModule",{value:!0}),operationUnit.operationUnit=void 0;const _e=et=>({color:et.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${et.motionDurationSlow}`,"&:focus, &:hover":{color:et.colorLinkHover},"&:active":{color:et.colorLinkActive}});return operationUnit.operationUnit=_e,operationUnit}var hasRequiredStyle$2;function requireStyle$2(){return hasRequiredStyle$2||(hasRequiredStyle$2=1,function(_e){"use client";Object.defineProperty(_e,"__esModule",{value:!0}),_e.genLinkStyle=_e.genFocusStyle=_e.genFocusOutline=_e.genCommonStyle=_e.clearFix=void 0,Object.defineProperty(_e,"operationUnit",{enumerable:!0,get:function(){return rt.operationUnit}}),_e.textEllipsis=_e.resetIcon=_e.resetComponent=void 0;var et=require$$1$1,rt=requireOperationUnit();_e.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const st=function(_t){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:_t.colorText,fontSize:_t.fontSize,lineHeight:_t.lineHeight,listStyle:"none",fontFamily:wt?"inherit":_t.fontFamily}};_e.resetComponent=st;const ct=()=>({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"}});_e.resetIcon=ct;const ut=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});_e.clearFix=ut;const ft=_t=>({a:{color:_t.colorLink,textDecoration:_t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${_t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:_t.colorLinkHover},"&:active":{color:_t.colorLinkActive},"&:active,\n &:hover":{textDecoration:_t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:_t.linkFocusDecoration,outline:0},"&[disabled]":{color:_t.colorTextDisabled,cursor:"not-allowed"}}});_e.genLinkStyle=ft;const gt=(_t,wt,Tt)=>{const{fontFamily:Rt,fontSize:It}=_t,At=`[class^="${wt}"], [class*=" ${wt}"]`;return{[Tt?`.${Tt}`:At]:{fontFamily:Rt,fontSize:It,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[At]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};_e.genCommonStyle=gt;const xt=_t=>({outline:`${(0,et.unit)(_t.lineWidthFocus)} solid ${_t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"});_e.genFocusOutline=xt;const $t=_t=>({"&:focus-visible":Object.assign({},xt(_t))});_e.genFocusStyle=$t}(style$2)),style$2}var calc={},NumCalculator={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(_e){function et(rt,st){if(!(rt instanceof st))throw new TypeError("Cannot call a class as a function")}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(_e){var et=requireToPropertyKey();function rt(ct,ut){for(var ft=0;ft{const ut=ct==="css"?rt.default:et.default;return ft=>new ut(ft)};return calc.default=st,calc}var maxmin={},hasRequiredMaxmin;function requireMaxmin(){if(hasRequiredMaxmin)return maxmin;hasRequiredMaxmin=1,Object.defineProperty(maxmin,"__esModule",{value:!0}),maxmin.default=et;var _e=require$$1$1;function et(rt){return rt==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var st=arguments.length,ct=new Array(st),ut=0;ut(0,_e.unit)(ft)).join(",")})`},min:function(){for(var st=arguments.length,ct=new Array(st),ut=0;ut(0,_e.unit)(ft)).join(",")})`}}}return maxmin}var statistic={},hasRequiredStatistic;function requireStatistic(){if(hasRequiredStatistic)return statistic;hasRequiredStatistic=1,Object.defineProperty(statistic,"__esModule",{value:!0}),statistic.default=statistic._statistic_build_=void 0,statistic.merge=rt,statistic.statistic=void 0;const _e=typeof CSSINJS_STATISTIC<"u";let et=!0;function rt(){for(var ft=arguments.length,gt=new Array(ft),xt=0;xt{Object.keys(_t).forEach(Tt=>{Object.defineProperty($t,Tt,{configurable:!0,enumerable:!0,get:()=>_t[Tt]})})}),et=!0,$t}const st=statistic.statistic={};statistic._statistic_build_={};function ct(){}const ut=ft=>{let gt,xt=ft,$t=ct;return _e&&typeof Proxy<"u"&&(gt=new Set,xt=new Proxy(ft,{get(_t,wt){return et&>.add(wt),_t[wt]}}),$t=(_t,wt)=>{var Tt;st[_t]={global:Array.from(gt),component:Object.assign(Object.assign({},(Tt=st[_t])===null||Tt===void 0?void 0:Tt.component),wt)}}),{token:xt,keys:gt,flush:$t}};return statistic.default=ut,statistic}var useResetIconStyle={},hasRequiredUseResetIconStyle;function requireUseResetIconStyle(){if(hasRequiredUseResetIconStyle)return useResetIconStyle;hasRequiredUseResetIconStyle=1;var _e=interopRequireDefaultExports;Object.defineProperty(useResetIconStyle,"__esModule",{value:!0}),useResetIconStyle.default=void 0;var et=require$$1$1,rt=requireStyle$2(),st=_e(requireUseToken());const ct=(ut,ft)=>{const[gt,xt]=(0,st.default)();return(0,et.useStyleRegister)({theme:gt,token:xt,hashId:"",path:["ant-design-icons",ut],nonce:()=>ft==null?void 0:ft.nonce},()=>[{[`.${ut}`]:Object.assign(Object.assign({},(0,rt.resetIcon)()),{[`.${ut} .${ut}-icon`]:{display:"block"}})}])};return useResetIconStyle.default=ct,useResetIconStyle}var hasRequiredGenComponentStyleHook;function requireGenComponentStyleHook(){if(hasRequiredGenComponentStyleHook)return genComponentStyleHook;hasRequiredGenComponentStyleHook=1;var _e=interopRequireDefaultExports;Object.defineProperty(genComponentStyleHook,"__esModule",{value:!0}),genComponentStyleHook.default=At,genComponentStyleHook.genSubStyleComponent=genComponentStyleHook.genStyleHooks=void 0;var et=wt(reactExports),rt=require$$1$1,st=requireContext$1(),ct=requireStyle$2(),ut=wt(requireUseToken()),ft=_e(requireCalc()),gt=_e(requireMaxmin()),xt=wt(requireStatistic()),$t=_e(requireUseResetIconStyle());function _t(Ft){if(typeof WeakMap!="function")return null;var Ht=new WeakMap,Wt=new WeakMap;return(_t=function(Vt){return Vt?Wt:Ht})(Ft)}function wt(Ft,Ht){if(!Ht&&Ft&&Ft.__esModule)return Ft;if(Ft===null||typeof Ft!="object"&&typeof Ft!="function")return{default:Ft};var Wt=_t(Ht);if(Wt&&Wt.has(Ft))return Wt.get(Ft);var Vt={__proto__:null},qt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Xt in Ft)if(Xt!=="default"&&Object.prototype.hasOwnProperty.call(Ft,Xt)){var Gt=qt?Object.getOwnPropertyDescriptor(Ft,Xt):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(Vt,Xt,Gt):Vt[Xt]=Ft[Xt]}return Vt.default=Ft,Wt&&Wt.set(Ft,Vt),Vt}const Tt=(Ft,Ht,Wt)=>{var Vt;return typeof Wt=="function"?Wt((0,xt.merge)(Ht,(Vt=Ht[Ft])!==null&&Vt!==void 0?Vt:{})):Wt??{}},Rt=(Ft,Ht,Wt,Vt)=>{const qt=Object.assign({},Ht[Ft]);if(Vt!=null&&Vt.deprecatedTokens){const{deprecatedTokens:Gt}=Vt;Gt.forEach(Zt=>{let[er,lr]=Zt;var cr;(qt!=null&&qt[er]||qt!=null&&qt[lr])&&((cr=qt[lr])!==null&&cr!==void 0||(qt[lr]=qt==null?void 0:qt[er]))})}const Xt=Object.assign(Object.assign({},Wt),qt);return Object.keys(Xt).forEach(Gt=>{Xt[Gt]===Ht[Gt]&&delete Xt[Gt]}),Xt},It=(Ft,Ht)=>`${[Ht,Ft.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function At(Ft,Ht,Wt){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const qt=Array.isArray(Ft)?Ft:[Ft,Ft],[Xt]=qt,Gt=qt.join("-");return function(Zt){let er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt;const[lr,cr,ur,fr,hr]=(0,ut.default)(),{getPrefixCls:pr,iconPrefixCls:dr,csp:yr}=(0,et.useContext)(st.ConfigContext),Sr=pr(),br=hr?"css":"js",mr=(0,ft.default)(br),{max:Er,min:Tr}=(0,gt.default)(br),Mr={theme:lr,token:fr,hashId:ur,nonce:()=>yr==null?void 0:yr.nonce,clientOnly:Vt.clientOnly,order:Vt.order||-999};return(0,rt.useStyleRegister)(Object.assign(Object.assign({},Mr),{clientOnly:!1,path:["Shared",Sr]}),()=>[{"&":(0,ct.genLinkStyle)(fr)}]),(0,$t.default)(dr,yr),[(0,rt.useStyleRegister)(Object.assign(Object.assign({},Mr),{path:[Gt,Zt,dr]}),()=>{if(Vt.injectStyle===!1)return[];const{token:wr,flush:Cr}=(0,xt.default)(fr),Nr=Tt(Xt,cr,Wt),Rr=`.${Zt}`,Pr=Rt(Xt,cr,Nr,{deprecatedTokens:Vt.deprecatedTokens});hr&&Object.keys(Nr).forEach(Fr=>{Nr[Fr]=`var(${(0,rt.token2CSSVar)(Fr,It(Xt,hr.prefix))})`});const jr=(0,xt.merge)(wr,{componentCls:Rr,prefixCls:Zt,iconCls:`.${dr}`,antCls:`.${Sr}`,calc:mr,max:Er,min:Tr},hr?Nr:Pr),kr=Ht(jr,{hashId:ur,prefixCls:Zt,rootPrefixCls:Sr,iconPrefixCls:dr});return Cr(Xt,Pr),[Vt.resetStyle===!1?null:(0,ct.genCommonStyle)(jr,Zt,er),kr]}),ur]}}const jt=(Ft,Ht,Wt,Vt)=>{const qt=At(Ft,Ht,Wt,Object.assign({resetStyle:!1,order:-998},Vt));return Gt=>{let{prefixCls:Zt,rootCls:er=Zt}=Gt;return qt(Zt,er),null}};genComponentStyleHook.genSubStyleComponent=jt;const Nt=(Ft,Ht,Wt)=>{function Vt(lr){return`${Ft}${lr.slice(0,1).toUpperCase()}${lr.slice(1)}`}const{unitless:qt={},injectStyle:Xt=!0}=Wt??{},Gt={[Vt("zIndexPopup")]:!0};Object.keys(qt).forEach(lr=>{Gt[Vt(lr)]=qt[lr]});const Zt=lr=>{let{rootCls:cr,cssVar:ur}=lr;const[,fr]=(0,ut.default)();return(0,rt.useCSSVarRegister)({path:[Ft],prefix:ur.prefix,key:ur==null?void 0:ur.key,unitless:Object.assign(Object.assign({},ut.unitless),Gt),ignore:ut.ignore,token:fr,scope:cr},()=>{const hr=Tt(Ft,fr,Ht),pr=Rt(Ft,fr,hr,{deprecatedTokens:Wt==null?void 0:Wt.deprecatedTokens});return Object.keys(hr).forEach(dr=>{pr[Vt(dr)]=pr[dr],delete pr[dr]}),pr}),null};return lr=>{const[,,,,cr]=(0,ut.default)();return[ur=>Xt&&cr?et.default.createElement(et.default.Fragment,null,et.default.createElement(Zt,{rootCls:lr,cssVar:cr,component:Ft}),ur):ur,cr==null?void 0:cr.key]}},kt=(Ft,Ht,Wt,Vt)=>{const qt=At(Ft,Ht,Wt,Vt),Xt=Nt(Array.isArray(Ft)?Ft[0]:Ft,Wt,Vt);return function(Gt){let Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gt;const[,er]=qt(Gt,Zt),[lr,cr]=Xt(Zt);return[lr,er,cr]}};return genComponentStyleHook.genStyleHooks=kt,genComponentStyleHook}var genPresetColor={},hasRequiredGenPresetColor;function requireGenPresetColor(){if(hasRequiredGenPresetColor)return genPresetColor;hasRequiredGenPresetColor=1,Object.defineProperty(genPresetColor,"__esModule",{value:!0}),genPresetColor.default=et;var _e=require_interface();function et(rt,st){return _e.PresetColors.reduce((ct,ut)=>{const ft=rt[`${ut}1`],gt=rt[`${ut}3`],xt=rt[`${ut}6`],$t=rt[`${ut}7`];return Object.assign(Object.assign({},ct),st(ut,{lightColor:ft,lightBorderColor:gt,darkColor:xt,textColor:$t}))},{})}return genPresetColor}var hasRequiredInternal;function requireInternal(){return hasRequiredInternal||(hasRequiredInternal=1,function(_e){var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"DesignTokenContext",{enumerable:!0,get:function(){return wt.DesignTokenContext}}),Object.defineProperty(_e,"PresetColors",{enumerable:!0,get:function(){return st.PresetColors}}),Object.defineProperty(_e,"calc",{enumerable:!0,get:function(){return $t.default}}),Object.defineProperty(_e,"defaultConfig",{enumerable:!0,get:function(){return wt.defaultConfig}}),Object.defineProperty(_e,"genComponentStyleHook",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(_e,"genPresetColor",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(_e,"genStyleHooks",{enumerable:!0,get:function(){return ut.genStyleHooks}}),Object.defineProperty(_e,"genSubStyleComponent",{enumerable:!0,get:function(){return ut.genSubStyleComponent}}),Object.defineProperty(_e,"getLineHeight",{enumerable:!0,get:function(){return _t.getLineHeight}}),Object.defineProperty(_e,"mergeToken",{enumerable:!0,get:function(){return gt.merge}}),Object.defineProperty(_e,"statisticToken",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(_e,"useResetIconStyle",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(_e,"useStyleRegister",{enumerable:!0,get:function(){return rt.useStyleRegister}}),Object.defineProperty(_e,"useToken",{enumerable:!0,get:function(){return ct.default}});var rt=require$$1$1,st=require_interface(),ct=et(requireUseToken()),ut=Rt(requireGenComponentStyleHook()),ft=et(requireGenPresetColor()),gt=Rt(requireStatistic()),xt=et(requireUseResetIconStyle()),$t=et(requireCalc()),_t=requireGenFontSizes(),wt=requireContext$2();function Tt(It){if(typeof WeakMap!="function")return null;var At=new WeakMap,jt=new WeakMap;return(Tt=function(Nt){return Nt?jt:At})(It)}function Rt(It,At){if(!At&&It&&It.__esModule)return It;if(It===null||typeof It!="object"&&typeof It!="function")return{default:It};var jt=Tt(At);if(jt&&jt.has(It))return jt.get(It);var Nt={__proto__:null},kt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ft in It)if(Ft!=="default"&&Object.prototype.hasOwnProperty.call(It,Ft)){var Ht=kt?Object.getOwnPropertyDescriptor(It,Ft):null;Ht&&(Ht.get||Ht.set)?Object.defineProperty(Nt,Ft,Ht):Nt[Ft]=It[Ft]}return Nt.default=It,jt&&jt.set(It,Nt),Nt}}(internal)),internal}var useThemeKey={},hasRequiredUseThemeKey;function requireUseThemeKey(){if(hasRequiredUseThemeKey)return useThemeKey;hasRequiredUseThemeKey=1,Object.defineProperty(useThemeKey,"__esModule",{value:!0}),useThemeKey.default=void 0;var _e=rt(reactExports);function et(gt){if(typeof WeakMap!="function")return null;var xt=new WeakMap,$t=new WeakMap;return(et=function(_t){return _t?$t:xt})(gt)}function rt(gt,xt){if(!xt&>&>.__esModule)return gt;if(gt===null||typeof gt!="object"&&typeof gt!="function")return{default:gt};var $t=et(xt);if($t&&$t.has(gt))return $t.get(gt);var _t={__proto__:null},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in gt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(gt,Tt)){var Rt=wt?Object.getOwnPropertyDescriptor(gt,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(_t,Tt,Rt):_t[Tt]=gt[Tt]}return _t.default=gt,$t&&$t.set(gt,_t),_t}const st=Object.assign({},_e),{useId:ct}=st,ft=typeof ct>"u"?()=>"":ct;return useThemeKey.default=ft,useThemeKey}var hasRequiredUseTheme;function requireUseTheme(){if(hasRequiredUseTheme)return useTheme;hasRequiredUseTheme=1;var _e=interopRequireDefaultExports;Object.defineProperty(useTheme,"__esModule",{value:!0}),useTheme.default=ft;var et=_e(requireUseMemo()),rt=_e(requireIsEqual()),st=requireInternal(),ct=_e(requireUseThemeKey()),ut=requireWarning();function ft(gt,xt){var $t;(0,ut.devUseWarning)("ConfigProvider");const _t=gt||{},wt=_t.inherit===!1||!xt?Object.assign(Object.assign({},st.defaultConfig),{hashed:($t=xt==null?void 0:xt.hashed)!==null&&$t!==void 0?$t:st.defaultConfig.hashed,cssVar:xt==null?void 0:xt.cssVar}):xt,Tt=(0,ct.default)();return(0,et.default)(()=>{var Rt,It;if(!gt)return xt;const At=Object.assign({},wt.components);Object.keys(gt.components||{}).forEach(kt=>{At[kt]=Object.assign(Object.assign({},At[kt]),gt.components[kt])});const jt=`css-var-${Tt.replace(/:/g,"")}`,Nt=((Rt=_t.cssVar)!==null&&Rt!==void 0?Rt:wt.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof wt.cssVar=="object"?wt.cssVar:{}),typeof _t.cssVar=="object"?_t.cssVar:{}),{key:typeof _t.cssVar=="object"&&((It=_t.cssVar)===null||It===void 0?void 0:It.key)||jt});return Object.assign(Object.assign(Object.assign({},wt),_t),{token:Object.assign(Object.assign({},wt.token),_t.token),components:At,cssVar:Nt})},[_t,wt],(Rt,It)=>Rt.some((At,jt)=>{const Nt=It[jt];return!(0,rt.default)(At,Nt,!0)}))}return useTheme}var MotionWrapper={};const require$$0=getAugmentedNamespace(es);var hasRequiredMotionWrapper;function requireMotionWrapper(){if(hasRequiredMotionWrapper)return MotionWrapper;hasRequiredMotionWrapper=1,Object.defineProperty(MotionWrapper,"__esModule",{value:!0}),MotionWrapper.default=ut;var _e=require$$0,et=ct(reactExports),rt=requireInternal();function st(ft){if(typeof WeakMap!="function")return null;var gt=new WeakMap,xt=new WeakMap;return(st=function($t){return $t?xt:gt})(ft)}function ct(ft,gt){if(!gt&&ft&&ft.__esModule)return ft;if(ft===null||typeof ft!="object"&&typeof ft!="function")return{default:ft};var xt=st(gt);if(xt&&xt.has(ft))return xt.get(ft);var $t={__proto__:null},_t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var wt in ft)if(wt!=="default"&&Object.prototype.hasOwnProperty.call(ft,wt)){var Tt=_t?Object.getOwnPropertyDescriptor(ft,wt):null;Tt&&(Tt.get||Tt.set)?Object.defineProperty($t,wt,Tt):$t[wt]=ft[wt]}return $t.default=ft,xt&&xt.set(ft,$t),$t}function ut(ft){const{children:gt}=ft,[,xt]=(0,rt.useToken)(),{motion:$t}=xt,_t=et.useRef(!1);return _t.current=_t.current||$t===!1,_t.current?et.createElement(_e.Provider,{motion:$t},gt):gt}return MotionWrapper}var PropWarning={},hasRequiredPropWarning;function requirePropWarning(){if(hasRequiredPropWarning)return PropWarning;hasRequiredPropWarning=1,Object.defineProperty(PropWarning,"__esModule",{value:!0}),PropWarning.default=void 0,et(reactExports),requireWarning();function _e(rt){if(typeof WeakMap!="function")return null;var st=new WeakMap,ct=new WeakMap;return(_e=function(ut){return ut?ct:st})(rt)}function et(rt,st){if(!st&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var ct=_e(st);if(ct&&ct.has(rt))return ct.get(rt);var ut={__proto__:null},ft=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var gt in rt)if(gt!=="default"&&Object.prototype.hasOwnProperty.call(rt,gt)){var xt=ft?Object.getOwnPropertyDescriptor(rt,gt):null;xt&&(xt.get||xt.set)?Object.defineProperty(ut,gt,xt):ut[gt]=rt[gt]}return ut.default=rt,ct&&ct.set(rt,ut),ut}return PropWarning.default=()=>null,PropWarning}var style$1={},hasRequiredStyle$1;function requireStyle$1(){return hasRequiredStyle$1||(hasRequiredStyle$1=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return et.useResetIconStyle}});var et=requireInternal()}(style$1)),style$1}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(_e){"use client";var et=interopRequireDefaultExports;Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"ConfigConsumer",{enumerable:!0,get:function(){return It.ConfigConsumer}}),Object.defineProperty(_e,"ConfigContext",{enumerable:!0,get:function(){return It.ConfigContext}}),_e.default=_e.configConsumerProps=void 0,Object.defineProperty(_e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return It.defaultIconPrefixCls}}),_e.warnContext=_e.globalConfig=_e.defaultPrefixCls=void 0;var rt=Xt(reactExports),st=require$$1$1,ct=et(requireContext$4()),ut=et(requireUseMemo()),ft=requireSet(),gt=Xt(requireWarning()),xt=et(requireValidateMessagesContext()),$t=Xt(requireLocale()),_t=et(requireContext$3()),wt=et(en_US$6),Tt=requireContext$2(),Rt=et(requireSeed()),It=requireContext$1(),At=requireCssVariables(),jt=requireDisabledContext(),Nt=et(requireUseConfig()),kt=et(requireUseTheme()),Ft=et(requireMotionWrapper()),Ht=et(requirePropWarning()),Wt=Xt(requireSizeContext()),Vt=et(requireStyle$1());function qt(Er){if(typeof WeakMap!="function")return null;var Tr=new WeakMap,Mr=new WeakMap;return(qt=function(Or){return Or?Mr:Tr})(Er)}function Xt(Er,Tr){if(!Tr&&Er&&Er.__esModule)return Er;if(Er===null||typeof Er!="object"&&typeof Er!="function")return{default:Er};var Mr=qt(Tr);if(Mr&&Mr.has(Er))return Mr.get(Er);var Or={__proto__:null},wr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Cr in Er)if(Cr!=="default"&&Object.prototype.hasOwnProperty.call(Er,Cr)){var Nr=wr?Object.getOwnPropertyDescriptor(Er,Cr):null;Nr&&(Nr.get||Nr.set)?Object.defineProperty(Or,Cr,Nr):Or[Cr]=Er[Cr]}return Or.default=Er,Mr&&Mr.set(Er,Or),Or}var Gt=function(Er,Tr){var Mr={};for(var Or in Er)Object.prototype.hasOwnProperty.call(Er,Or)&&Tr.indexOf(Or)<0&&(Mr[Or]=Er[Or]);if(Er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wr=0,Or=Object.getOwnPropertySymbols(Er);wrTr.endsWith("Color"))}const yr=Er=>{const{prefixCls:Tr,iconPrefixCls:Mr,theme:Or,holderRender:wr}=Er;Tr!==void 0&&(lr=Tr),Mr!==void 0&&(cr=Mr),"holderRender"in Er&&(fr=wr),Or&&(dr(Or)?(0,At.registerTheme)(hr(),Or):ur=Or)},Sr=()=>({getPrefixCls:(Er,Tr)=>Tr||(Er?`${hr()}-${Er}`:hr()),getIconPrefixCls:pr,getRootPrefixCls:()=>lr||hr(),getTheme:()=>ur,holderRender:fr});_e.globalConfig=Sr;const br=Er=>{const{children:Tr,csp:Mr,autoInsertSpaceInButton:Or,alert:wr,anchor:Cr,form:Nr,locale:Rr,componentSize:Pr,direction:jr,space:kr,virtual:Fr,dropdownMatchSelectWidth:_r,popupMatchSelectWidth:Br,popupOverflow:Dr,legacyLocale:Xr,parentContext:Kr,iconPrefixCls:Hr,theme:Vr,componentDisabled:ln,segmented:Qr,statistic:Zr,spin:vn,calendar:vr,carousel:gr,cascader:$r,collapse:zr,typography:qr,checkbox:Wr,descriptions:Gr,divider:dn,drawer:mn,skeleton:hn,steps:Cn,image:Rn,layout:kn,list:Bn,mentions:Yn,modal:Gn,progress:io,result:pn,slider:gn,breadcrumb:yn,menu:_n,pagination:Tn,input:Nn,empty:On,badge:$n,radio:Sn,rate:xn,switch:In,transfer:jn,avatar:Hn,message:qn,tag:Jn,table:ao,card:Vn,tabs:Wn,timeline:zn,timePicker:wn,upload:cn,notification:Pn,tree:An,colorPicker:Xn,datePicker:eo,rangePicker:ro,flex:Kn,wave:co,dropdown:uo,warning:vo,tour:Bo}=Er,Ho=rt.useCallback(($o,bo)=>{const{prefixCls:Fn}=Er;if(bo)return bo;const Dn=Fn||Kr.getPrefixCls("");return $o?`${Dn}-${$o}`:Dn},[Kr.getPrefixCls,Er.prefixCls]),so=Hr||Kr.iconPrefixCls||It.defaultIconPrefixCls,Ro=Mr||Kr.csp;(0,Vt.default)(so,Ro);const Po=(0,kt.default)(Vr,Kr.theme),Ao={csp:Ro,autoInsertSpaceInButton:Or,alert:wr,anchor:Cr,locale:Rr||Xr,direction:jr,space:kr,virtual:Fr,popupMatchSelectWidth:Br??_r,popupOverflow:Dr,getPrefixCls:Ho,iconPrefixCls:so,theme:Po,segmented:Qr,statistic:Zr,spin:vn,calendar:vr,carousel:gr,cascader:$r,collapse:zr,typography:qr,checkbox:Wr,descriptions:Gr,divider:dn,drawer:mn,skeleton:hn,steps:Cn,image:Rn,input:Nn,layout:kn,list:Bn,mentions:Yn,modal:Gn,progress:io,result:pn,slider:gn,breadcrumb:yn,menu:_n,pagination:Tn,empty:On,badge:$n,radio:Sn,rate:xn,switch:In,transfer:jn,avatar:Hn,message:qn,tag:Jn,table:ao,card:Vn,tabs:Wn,timeline:zn,timePicker:wn,upload:cn,notification:Pn,tree:An,colorPicker:Xn,datePicker:eo,rangePicker:ro,flex:Kn,wave:co,dropdown:uo,warning:vo,tour:Bo},Wo=Object.assign({},Kr);Object.keys(Ao).forEach($o=>{Ao[$o]!==void 0&&(Wo[$o]=Ao[$o])}),Zt.forEach($o=>{const bo=Er[$o];bo&&(Wo[$o]=bo)});const qo=(0,ut.default)(()=>Wo,Wo,($o,bo)=>{const Fn=Object.keys($o),Dn=Object.keys(bo);return Fn.length!==Dn.length||Fn.some(po=>$o[po]!==bo[po])}),os=rt.useMemo(()=>({prefixCls:so,csp:Ro}),[so,Ro]);let No=rt.createElement(rt.Fragment,null,rt.createElement(Ht.default,{dropdownMatchSelectWidth:_r}),Tr);const ss=rt.useMemo(()=>{var $o,bo,Fn,Dn;return(0,ft.merge)((($o=wt.default.Form)===null||$o===void 0?void 0:$o.defaultValidateMessages)||{},((Fn=(bo=qo.locale)===null||bo===void 0?void 0:bo.Form)===null||Fn===void 0?void 0:Fn.defaultValidateMessages)||{},((Dn=qo.form)===null||Dn===void 0?void 0:Dn.validateMessages)||{},(Nr==null?void 0:Nr.validateMessages)||{})},[qo,Nr==null?void 0:Nr.validateMessages]);Object.keys(ss).length>0&&(No=rt.createElement(xt.default.Provider,{value:ss},No)),Rr&&(No=rt.createElement($t.default,{locale:Rr,_ANT_MARK__:$t.ANT_MARK},No)),(so||Ro)&&(No=rt.createElement(ct.default.Provider,{value:os},No)),Pr&&(No=rt.createElement(Wt.SizeContextProvider,{size:Pr},No)),No=rt.createElement(Ft.default,null,No);const _i=rt.useMemo(()=>{const $o=Po||{},{algorithm:bo,token:Fn,components:Dn,cssVar:po}=$o,To=Gt($o,["algorithm","token","components","cssVar"]),fo=bo&&(!Array.isArray(bo)||bo.length>0)?(0,st.createTheme)(bo):Tt.defaultTheme,Qn={};Object.entries(Dn||{}).forEach(Oo=>{let[Mo,Lo]=Oo;const go=Object.assign({},Lo);"algorithm"in go&&(go.algorithm===!0?go.theme=fo:(Array.isArray(go.algorithm)||typeof go.algorithm=="function")&&(go.theme=(0,st.createTheme)(go.algorithm)),delete go.algorithm),Qn[Mo]=go});const oo=Object.assign(Object.assign({},Rt.default),Fn);return Object.assign(Object.assign({},To),{theme:fo,token:oo,components:Qn,override:Object.assign({override:oo},Qn),cssVar:po})},[Po]);return Vr&&(No=rt.createElement(Tt.DesignTokenContext.Provider,{value:_i},No)),qo.warning&&(No=rt.createElement(gt.WarningContext.Provider,{value:qo.warning},No)),ln!==void 0&&(No=rt.createElement(jt.DisabledContextProvider,{disabled:ln},No)),rt.createElement(It.ConfigContext.Provider,{value:qo},No)},mr=Er=>{const Tr=rt.useContext(It.ConfigContext),Mr=rt.useContext(_t.default);return rt.createElement(br,Object.assign({parentContext:Tr,legacyLocale:Mr},Er))};mr.ConfigContext=It.ConfigContext,mr.SizeContext=Wt.default,mr.config=yr,mr.useConfig=Nt.default,Object.defineProperty(mr,"SizeContext",{get:()=>Wt.default}),_e.default=mr}(configProvider)),configProvider}var context={},hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1,Object.defineProperty(context,"__esModule",{value:!0}),context.LayoutContext=void 0;var _e=rt(reactExports);function et(st){if(typeof WeakMap!="function")return null;var ct=new WeakMap,ut=new WeakMap;return(et=function(ft){return ft?ut:ct})(st)}function rt(st,ct){if(!ct&&st&&st.__esModule)return st;if(st===null||typeof st!="object"&&typeof st!="function")return{default:st};var ut=et(ct);if(ut&&ut.has(st))return ut.get(st);var ft={__proto__:null},gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xt in st)if(xt!=="default"&&Object.prototype.hasOwnProperty.call(st,xt)){var $t=gt?Object.getOwnPropertyDescriptor(st,xt):null;$t&&($t.get||$t.set)?Object.defineProperty(ft,xt,$t):ft[xt]=st[xt]}return ft.default=st,ut&&ut.set(st,ft),ft}return context.LayoutContext=_e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),context}var useHasSider={},toArray$1={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray$1;hasRequiredToArray=1;var _e=interopRequireDefaultExports.default;Object.defineProperty(toArray$1,"__esModule",{value:!0}),toArray$1.default=st;var et=_e(reactExports),rt=reactIsExports$1;function st(ct){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=[];return et.default.Children.forEach(ct,function(gt){gt==null&&!ut.keepEmpty||(Array.isArray(gt)?ft=ft.concat(st(gt)):(0,rt.isFragment)(gt)&>.props?ft=ft.concat(st(gt.props.children,ut)):ft.push(gt))}),ft}return toArray$1}var Sider$5={},BarsOutlined$2={exports:{}},BarsOutlined$1={},BarsOutlined={},hasRequiredBarsOutlined$2;function requireBarsOutlined$2(){if(hasRequiredBarsOutlined$2)return BarsOutlined;hasRequiredBarsOutlined$2=1,Object.defineProperty(BarsOutlined,"__esModule",{value:!0});var _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"};return BarsOutlined.default=_e,BarsOutlined}var AntdIcon={},IconBase={},utils={},hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0});function et(qt,Xt){for(var Gt in Xt)Object.defineProperty(qt,Gt,{enumerable:!0,get:Xt[Gt]})}et(_e,{generate:function(){return Nt},getSecondaryColor:function(){return kt},iconStyles:function(){return Wt},isIconDefinition:function(){return At},normalizeAttrs:function(){return jt},normalizeTwoToneColors:function(){return Ft},svgBaseProps:function(){return Ht},useInsertStyles:function(){return Vt},warning:function(){return It}});var rt=require$$2,st=requireDynamicCSS(),ct=shadow,ut=$t(requireWarning$1()),ft=wt(reactExports),gt=$t(requireContext$4());function xt(qt,Xt,Gt){return Xt in qt?Object.defineProperty(qt,Xt,{value:Gt,enumerable:!0,configurable:!0,writable:!0}):qt[Xt]=Gt,qt}function $t(qt){return qt&&qt.__esModule?qt:{default:qt}}function _t(qt){if(typeof WeakMap!="function")return null;var Xt=new WeakMap,Gt=new WeakMap;return(_t=function(Zt){return Zt?Gt:Xt})(qt)}function wt(qt,Xt){if(!Xt&&qt&&qt.__esModule)return qt;if(qt===null||typeof qt!="object"&&typeof qt!="function")return{default:qt};var Gt=_t(Xt);if(Gt&&Gt.has(qt))return Gt.get(qt);var Zt={__proto__:null},er=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var lr in qt)if(lr!=="default"&&Object.prototype.hasOwnProperty.call(qt,lr)){var cr=er?Object.getOwnPropertyDescriptor(qt,lr):null;cr&&(cr.get||cr.set)?Object.defineProperty(Zt,lr,cr):Zt[lr]=qt[lr]}return Zt.default=qt,Gt&&Gt.set(qt,Zt),Zt}function Tt(qt){for(var Xt=1;Xt0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(qt).reduce(function(Xt,Gt){var Zt=qt[Gt];switch(Gt){case"class":Xt.className=Zt,delete Xt.class;break;default:delete Xt[Gt],Xt[Rt(Gt)]=Zt}return Xt},{})}function Nt(qt,Xt,Gt){return Gt?ft.default.createElement(qt.tag,Tt({key:Xt},jt(qt.attrs),Gt),(qt.children||[]).map(function(Zt,er){return Nt(Zt,"".concat(Xt,"-").concat(qt.tag,"-").concat(er))})):ft.default.createElement(qt.tag,Tt({key:Xt},jt(qt.attrs)),(qt.children||[]).map(function(Zt,er){return Nt(Zt,"".concat(Xt,"-").concat(qt.tag,"-").concat(er))}))}function kt(qt){return(0,rt.generate)(qt)[0]}function Ft(qt){return qt?Array.isArray(qt)?qt:[qt]:[]}var Ht={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Wt=` .anticon { display: inline-block; color: inherit; @@ -921,10 +936,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,Vt=function(qt){var Gt=(0,ft.useContext)(gt.default),Xt=Gt.csp,Zt=Gt.prefixCls,lr=Wt;Zt&&(lr=lr.replace(/anticon/g,Zt)),(0,ft.useEffect)(function(){var er=qt.current,cr=(0,ct.getShadowRoot)(er);(0,st.updateCSS)(lr,"@ant-design-icons",{prepend:!0,csp:Xt,attachTo:cr})},[])}}(utils)),utils}var hasRequiredIconBase;function requireIconBase(){return hasRequiredIconBase||(hasRequiredIconBase=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return At}});var et=ut(reactExports),rt=requireUtils();function st(jt,Nt,kt){return Nt in jt?Object.defineProperty(jt,Nt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):jt[Nt]=kt,jt}function ct(jt){if(typeof WeakMap!="function")return null;var Nt=new WeakMap,kt=new WeakMap;return(ct=function(Ft){return Ft?kt:Nt})(jt)}function ut(jt,Nt){if(!Nt&&jt&&jt.__esModule)return jt;if(jt===null||typeof jt!="object"&&typeof jt!="function")return{default:jt};var kt=ct(Nt);if(kt&&kt.has(jt))return kt.get(jt);var Ft={__proto__:null},Ht=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Wt in jt)if(Wt!=="default"&&Object.prototype.hasOwnProperty.call(jt,Wt)){var Vt=Ht?Object.getOwnPropertyDescriptor(jt,Wt):null;Vt&&(Vt.get||Vt.set)?Object.defineProperty(Ft,Wt,Vt):Ft[Wt]=jt[Wt]}return Ft.default=jt,kt&&kt.set(jt,Ft),Ft}function ft(jt){for(var Nt=1;Nt=0)&&Object.prototype.propertyIsEnumerable.call(jt,Ft)&&(kt[Ft]=jt[Ft])}return kt}function _t(jt,Nt){if(jt==null)return{};var kt={},Ft=Object.keys(jt),Ht,Wt;for(Wt=0;Wt=0)&&(kt[Ht]=jt[Ht]);return kt}var wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Tt(jt){var Nt=jt.primaryColor,kt=jt.secondaryColor;wt.primaryColor=Nt,wt.secondaryColor=kt||(0,rt.getSecondaryColor)(Nt),wt.calculated=!!kt}function Rt(){return ft({},wt)}var It=function(jt){var Nt=jt.icon,kt=jt.className,Ft=jt.onClick,Ht=jt.style,Wt=jt.primaryColor,Vt=jt.secondaryColor,qt=$t(jt,["icon","className","onClick","style","primaryColor","secondaryColor"]),Gt=et.useRef(),Xt=wt;if(Wt&&(Xt={primaryColor:Wt,secondaryColor:Vt||(0,rt.getSecondaryColor)(Wt)}),(0,rt.useInsertStyles)(Gt),(0,rt.warning)((0,rt.isIconDefinition)(Nt),"icon should be icon definiton, but got ".concat(Nt)),!(0,rt.isIconDefinition)(Nt))return null;var Zt=Nt;return Zt&&typeof Zt.icon=="function"&&(Zt=xt(ft({},Zt),{icon:Zt.icon(Xt.primaryColor,Xt.secondaryColor)})),(0,rt.generate)(Zt.icon,"svg-".concat(Zt.name),xt(ft({className:kt,onClick:Ft,style:Ht,"data-icon":Zt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},qt),{ref:Gt}))};It.displayName="IconReact",It.getTwoToneColors=Rt,It.setTwoToneColors=Tt;var At=It}(IconBase)),IconBase}var twoTonePrimaryColor={},hasRequiredTwoTonePrimaryColor;function requireTwoTonePrimaryColor(){return hasRequiredTwoTonePrimaryColor||(hasRequiredTwoTonePrimaryColor=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0});function et(Rt,It){for(var At in It)Object.defineProperty(Rt,At,{enumerable:!0,get:It[At]})}et(_e,{getTwoToneColor:function(){return Tt},setTwoToneColor:function(){return wt}});var rt=ft(requireIconBase()),st=requireUtils();function ct(Rt,It){(It==null||It>Rt.length)&&(It=Rt.length);for(var At=0,jt=new Array(It);AtXt.length)&&(Zt=Xt.length);for(var lr=0,er=new Array(Zt);lr=0)&&Object.prototype.propertyIsEnumerable.call(Xt,er)&&(lr[er]=Xt[er])}return lr}function Ht(Xt,Zt){if(Xt==null)return{};var lr={},er=Object.keys(Xt),cr,ur;for(ur=0;ur=0)&&(lr[cr]=Xt[cr]);return lr}function Wt(Xt,Zt){return $t(Xt)||It(Xt,Zt)||Vt(Xt,Zt)||At()}function Vt(Xt,Zt){if(Xt){if(typeof Xt=="string")return xt(Xt,Zt);var lr=Object.prototype.toString.call(Xt).slice(8,-1);if(lr==="Object"&&Xt.constructor&&(lr=Xt.constructor.name),lr==="Map"||lr==="Set")return Array.from(lr);if(lr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(lr))return xt(Xt,Zt)}}(0,ft.setTwoToneColor)(st.blue.primary);var qt=et.forwardRef(function(Xt,Zt){var lr=Xt.className,er=Xt.icon,cr=Xt.spin,ur=Xt.rotate,pr=Xt.tabIndex,hr=Xt.onClick,fr=Xt.twoToneColor,dr=Ft(Xt,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),yr=et.useContext(ct.default),$r=yr.prefixCls,Er=$r===void 0?"anticon":$r,mr=yr.rootClassName,Sr,Tr=(0,rt.default)(mr,Er,(Sr={},_t(Sr,"".concat(Er,"-").concat(er.name),!!er.name),_t(Sr,"".concat(Er,"-spin"),!!cr||er.name==="loading"),Sr),lr),jr=pr;jr===void 0&&hr&&(jr=-1);var Or=ur?{msTransform:"rotate(".concat(ur,"deg)"),transform:"rotate(".concat(ur,"deg)")}:void 0,_r=Wt((0,gt.normalizeTwoToneColors)(fr),2),Cr=_r[0],Nr=_r[1];return et.createElement("span",kt(jt({role:"img","aria-label":er.name},dr),{ref:Zt,tabIndex:jr,onClick:hr,className:Tr}),et.createElement(ut.default,{icon:er,primaryColor:Cr,secondaryColor:Nr,style:Or}))});qt.displayName="AntdIcon",qt.getTwoToneColor=ft.getTwoToneColor,qt.setTwoToneColor=ft.setTwoToneColor;var Gt=qt}(AntdIcon)),AntdIcon}var hasRequiredBarsOutlined$1;function requireBarsOutlined$1(){return hasRequiredBarsOutlined$1||(hasRequiredBarsOutlined$1=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return Tt}});var et=gt(reactExports),rt=ut(requireBarsOutlined$2()),st=ut(requireAntdIcon());function ct(Rt,It,At){return It in Rt?Object.defineProperty(Rt,It,{value:At,enumerable:!0,configurable:!0,writable:!0}):Rt[It]=At,Rt}function ut(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}}function ft(Rt){if(typeof WeakMap!="function")return null;var It=new WeakMap,At=new WeakMap;return(ft=function(jt){return jt?At:It})(Rt)}function gt(Rt,It){if(!It&&Rt&&Rt.__esModule)return Rt;if(Rt===null||typeof Rt!="object"&&typeof Rt!="function")return{default:Rt};var At=ft(It);if(At&&At.has(Rt))return At.get(Rt);var jt={__proto__:null},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var kt in Rt)if(kt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,kt)){var Ft=Nt?Object.getOwnPropertyDescriptor(Rt,kt):null;Ft&&(Ft.get||Ft.set)?Object.defineProperty(jt,kt,Ft):jt[kt]=Rt[kt]}return jt.default=Rt,At&&At.set(Rt,jt),jt}function xt(Rt){for(var It=1;It!isNaN(parseFloat(et))&&isFinite(et);return isNumeric.default=_e,isNumeric}var hasRequiredSider;function requireSider(){if(hasRequiredSider)return Sider$5;hasRequiredSider=1;var _e=interopRequireDefaultExports;Object.defineProperty(Sider$5,"__esModule",{value:!0}),Sider$5.default=Sider$5.SiderContext=void 0;var et=Tt(reactExports),rt=et,st=_e(requireBarsOutlined()),ct=_e(requireLeftOutlined()),ut=_e(requireRightOutlined()),ft=_e(classnamesExports),gt=_e(requireOmit()),xt=_e(requireIsNumeric()),$t=requireConfigProvider(),_t=requireContext();function wt(kt){if(typeof WeakMap!="function")return null;var Ft=new WeakMap,Ht=new WeakMap;return(wt=function(Wt){return Wt?Ht:Ft})(kt)}function Tt(kt,Ft){if(!Ft&&kt&&kt.__esModule)return kt;if(kt===null||typeof kt!="object"&&typeof kt!="function")return{default:kt};var Ht=wt(Ft);if(Ht&&Ht.has(kt))return Ht.get(kt);var Wt={__proto__:null},Vt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in kt)if(qt!=="default"&&Object.prototype.hasOwnProperty.call(kt,qt)){var Gt=Vt?Object.getOwnPropertyDescriptor(kt,qt):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(Wt,qt,Gt):Wt[qt]=kt[qt]}return Wt.default=kt,Ht&&Ht.set(kt,Wt),Wt}var Rt=function(kt,Ft){var Ht={};for(var Wt in kt)Object.prototype.hasOwnProperty.call(kt,Wt)&&Ft.indexOf(Wt)<0&&(Ht[Wt]=kt[Wt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Wt=Object.getOwnPropertySymbols(kt);Vt{let kt=0;return function(){let Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return kt+=1,`${Ft}${kt}`}})(),Nt=rt.forwardRef((kt,Ft)=>{const{prefixCls:Ht,className:Wt,trigger:Vt,children:qt,defaultCollapsed:Gt=!1,theme:Xt="dark",style:Zt={},collapsible:lr=!1,reverseArrow:er=!1,width:cr=200,collapsedWidth:ur=80,zeroWidthTriggerStyle:pr,breakpoint:hr,onCollapse:fr,onBreakpoint:dr}=kt,yr=Rt(kt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$r}=(0,et.useContext)(_t.LayoutContext),[Er,mr]=(0,et.useState)("collapsed"in kt?kt.collapsed:Gt),[Sr,Tr]=(0,et.useState)(!1);(0,et.useEffect)(()=>{"collapsed"in kt&&mr(kt.collapsed)},[kt.collapsed]);const jr=(Pr,Mr)=>{"collapsed"in kt||mr(Pr),fr==null||fr(Pr,Mr)},Or=(0,et.useRef)();Or.current=Pr=>{Tr(Pr.matches),dr==null||dr(Pr.matches),Er!==Pr.matches&&jr(Pr.matches,"responsive")},(0,et.useEffect)(()=>{function Pr(kr){return Or.current(kr)}let Mr;if(typeof window<"u"){const{matchMedia:kr}=window;if(kr&&hr&&hr in It){Mr=kr(`screen and (max-width: ${It[hr]})`);try{Mr.addEventListener("change",Pr)}catch{Mr.addListener(Pr)}Pr(Mr)}}return()=>{try{Mr==null||Mr.removeEventListener("change",Pr)}catch{Mr==null||Mr.removeListener(Pr)}}},[hr]),(0,et.useEffect)(()=>{const Pr=jt("ant-sider-");return $r.addSider(Pr),()=>$r.removeSider(Pr)},[]);const _r=()=>{jr(!Er,"clickTrigger")},{getPrefixCls:Cr}=(0,et.useContext)($t.ConfigContext),Nr=()=>{const Pr=Cr("layout-sider",Ht),Mr=(0,gt.default)(yr,["collapsed"]),kr=Er?ur:cr,Fr=(0,xt.default)(kr)?`${kr}px`:String(kr),wr=parseFloat(String(ur||0))===0?rt.createElement("span",{onClick:_r,className:(0,ft.default)(`${Pr}-zero-width-trigger`,`${Pr}-zero-width-trigger-${er?"right":"left"}`),style:pr},Vt||rt.createElement(st.default,null)):null,Xr={expanded:er?rt.createElement(ut.default,null):rt.createElement(ct.default,null),collapsed:er?rt.createElement(ct.default,null):rt.createElement(ut.default,null)}[Er?"collapsed":"expanded"],Kr=Vt!==null?wr||rt.createElement("div",{className:`${Pr}-trigger`,onClick:_r,style:{width:Fr}},Vt||Xr):null,zr=Object.assign(Object.assign({},Zt),{flex:`0 0 ${Fr}`,maxWidth:Fr,minWidth:Fr,width:Fr}),qr=(0,ft.default)(Pr,`${Pr}-${Xt}`,{[`${Pr}-collapsed`]:!!Er,[`${Pr}-has-trigger`]:lr&&Vt!==null&&!wr,[`${Pr}-below`]:!!Sr,[`${Pr}-zero-width`]:parseFloat(Fr)===0},Wt);return rt.createElement("aside",Object.assign({className:qr},Mr,{style:zr,ref:Ft}),rt.createElement("div",{className:`${Pr}-children`},qt),lr||Sr&&wr?Kr:null)},Rr=rt.useMemo(()=>({siderCollapsed:Er}),[Er]);return rt.createElement(At.Provider,{value:Rr},Nr())});return Sider$5.default=Nt,Sider$5}var hasRequiredUseHasSider;function requireUseHasSider(){if(hasRequiredUseHasSider)return useHasSider;hasRequiredUseHasSider=1;var _e=interopRequireDefaultExports;Object.defineProperty(useHasSider,"__esModule",{value:!0}),useHasSider.default=st;var et=_e(requireToArray()),rt=_e(requireSider());function st(ct,ut,ft){return typeof ft=="boolean"?ft:ct.length?!0:(0,et.default)(ut).some(xt=>xt.type===rt.default)}return useHasSider}var style={},light={},hasRequiredLight;function requireLight(){if(hasRequiredLight)return light;hasRequiredLight=1,Object.defineProperty(light,"__esModule",{value:!0}),light.default=void 0;const _e=et=>{const{componentCls:rt,bodyBg:st,lightSiderBg:ct,lightTriggerBg:ut,lightTriggerColor:ft}=et;return{[`${rt}-sider-light`]:{background:ct,[`${rt}-sider-trigger`]:{color:ft,background:ut},[`${rt}-sider-zero-width-trigger`]:{color:ft,background:ut,border:`1px solid ${st}`,borderInlineStart:0}}}};return light.default=_e,light}var hasRequiredStyle;function requireStyle(){if(hasRequiredStyle)return style;hasRequiredStyle=1;var _e=interopRequireDefaultExports;Object.defineProperty(style,"__esModule",{value:!0}),style.prepareComponentToken=style.default=void 0;var et=require$$1$1,rt=requireInternal(),st=_e(requireLight());const ct=ft=>{const{antCls:gt,componentCls:xt,colorText:$t,triggerColor:_t,footerBg:wt,triggerBg:Tt,headerHeight:Rt,headerPadding:It,headerColor:At,footerPadding:jt,triggerHeight:Nt,zeroTriggerHeight:kt,zeroTriggerWidth:Ft,motionDurationMid:Ht,motionDurationSlow:Wt,fontSize:Vt,borderRadius:qt,bodyBg:Gt,headerBg:Xt,siderBg:Zt}=ft;return{[xt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Gt,"&, *":{boxSizing:"border-box"},[`&${xt}-has-sider`]:{flexDirection:"row",[`> ${xt}, > ${xt}-content`]:{width:0}},[`${xt}-header, &${xt}-footer`]:{flex:"0 0 auto"},[`${xt}-sider`]:{position:"relative",minWidth:0,background:Zt,transition:`all ${Ht}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${gt}-menu${gt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Nt,color:_t,lineHeight:(0,et.unit)(Nt),textAlign:"center",background:Tt,cursor:"pointer",transition:`all ${Ht}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Rt,insetInlineEnd:ft.calc(Ft).mul(-1).equal(),zIndex:1,width:Ft,height:kt,color:_t,fontSize:ft.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Zt,borderStartStartRadius:0,borderStartEndRadius:qt,borderEndEndRadius:qt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Wt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Wt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ft.calc(Ft).mul(-1).equal(),borderStartStartRadius:qt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:qt}}}}},(0,st.default)(ft)),{"&-rtl":{direction:"rtl"}}),[`${xt}-header`]:{height:Rt,padding:It,color:At,lineHeight:(0,et.unit)(Rt),background:Xt,[`${gt}-menu`]:{lineHeight:"inherit"}},[`${xt}-footer`]:{padding:jt,color:$t,fontSize:Vt,background:wt},[`${xt}-content`]:{flex:"auto",minHeight:0}}},ut=ft=>{const{colorBgLayout:gt,controlHeight:xt,controlHeightLG:$t,colorText:_t,controlHeightSM:wt,marginXXS:Tt,colorTextLightSolid:Rt,colorBgContainer:It}=ft,At=$t*1.25;return{colorBgHeader:"#001529",colorBgBody:gt,colorBgTrigger:"#002140",bodyBg:gt,headerBg:"#001529",headerHeight:xt*2,headerPadding:`0 ${At}px`,headerColor:_t,footerPadding:`${wt}px ${At}px`,footerBg:gt,siderBg:"#001529",triggerHeight:$t+Tt*2,triggerBg:"#002140",triggerColor:Rt,zeroTriggerWidth:$t,zeroTriggerHeight:$t,lightSiderBg:It,lightTriggerBg:It,lightTriggerColor:_t}};return style.prepareComponentToken=ut,style.default=(0,rt.genStyleHooks)("Layout",ft=>[ct(ft)],ut,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),style}var Content_1,Footer_1,Header_1,_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(layout$1,"__esModule",{value:!0});layout$1.default=Header_1=layout$1.Header=Footer_1=layout$1.Footer=Content_1=layout$1.Content=void 0;var _toConsumableArray2=_interopRequireDefault(requireToConsumableArray()),React=_interopRequireWildcard(reactExports),_classnames=_interopRequireDefault(classnamesExports),_omit=_interopRequireDefault(requireOmit()),_configProvider=requireConfigProvider(),_context=requireContext(),_useHasSider=_interopRequireDefault(requireUseHasSider()),_style=_interopRequireDefault(requireStyle());function _getRequireWildcardCache(_e){if(typeof WeakMap!="function")return null;var et=new WeakMap,rt=new WeakMap;return(_getRequireWildcardCache=function(st){return st?rt:et})(_e)}function _interopRequireWildcard(_e,et){if(!et&&_e&&_e.__esModule)return _e;if(_e===null||typeof _e!="object"&&typeof _e!="function")return{default:_e};var rt=_getRequireWildcardCache(et);if(rt&&rt.has(_e))return rt.get(_e);var st={__proto__:null},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ut in _e)if(ut!=="default"&&Object.prototype.hasOwnProperty.call(_e,ut)){var ft=ct?Object.getOwnPropertyDescriptor(_e,ut):null;ft&&(ft.get||ft.set)?Object.defineProperty(st,ut,ft):st[ut]=_e[ut]}return st.default=_e,rt&&rt.set(_e,st),st}var __rest=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctReact.forwardRef((ft,gt)=>React.createElement(ct,Object.assign({ref:gt,suffixCls:et,tagName:rt},ft)))}const Basic$1=React.forwardRef((_e,et)=>{const{prefixCls:rt,suffixCls:st,className:ct,tagName:ut}=_e,ft=__rest(_e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:gt}=React.useContext(_configProvider.ConfigContext),xt=gt("layout",rt),[$t,_t,wt]=(0,_style.default)(xt),Tt=st?`${xt}-${st}`:xt;return $t(React.createElement(ut,Object.assign({className:(0,_classnames.default)(rt||Tt,ct,_t,wt),ref:et},ft)))}),BasicLayout=React.forwardRef((_e,et)=>{const{direction:rt}=React.useContext(_configProvider.ConfigContext),[st,ct]=React.useState([]),{prefixCls:ut,className:ft,rootClassName:gt,children:xt,hasSider:$t,tagName:_t,style:wt}=_e,Tt=__rest(_e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Rt=(0,_omit.default)(Tt,["suffixCls"]),{getPrefixCls:It,layout:At}=React.useContext(_configProvider.ConfigContext),jt=It("layout",ut),Nt=(0,_useHasSider.default)(st,xt,$t),[kt,Ft,Ht]=(0,_style.default)(jt),Wt=(0,_classnames.default)(jt,{[`${jt}-has-sider`]:Nt,[`${jt}-rtl`]:rt==="rtl"},At==null?void 0:At.className,ft,gt,Ft,Ht),Vt=React.useMemo(()=>({siderHook:{addSider:qt=>{ct(Gt=>[].concat((0,_toConsumableArray2.default)(Gt),[qt]))},removeSider:qt=>{ct(Gt=>Gt.filter(Xt=>Xt!==qt))}}}),[]);return kt(React.createElement(_context.LayoutContext.Provider,{value:Vt},React.createElement(_t,Object.assign({ref:et,className:Wt,style:Object.assign(Object.assign({},At==null?void 0:At.style),wt)},Rt),xt)))}),Layout=generator({tagName:"div",displayName:"Layout"})(BasicLayout);Header_1=layout$1.Header=generator({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic$1);Footer_1=layout$1.Footer=generator({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic$1);Content_1=layout$1.Content=generator({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic$1);layout$1.default=Layout;var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(_e,et){if(_e===et)return!0;if(_e&&et&&typeof _e=="object"&&typeof et=="object"){if(_e.constructor!==et.constructor)return!1;var rt,st,ct;if(Array.isArray(_e)){if(rt=_e.length,rt!=et.length)return!1;for(st=rt;st--!==0;)if(!equal(_e[st],et[st]))return!1;return!0}var ut;if(hasMap&&_e instanceof Map&&et instanceof Map){if(_e.size!==et.size)return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!et.has(st.value[0]))return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!equal(st.value[1],et.get(st.value[0])))return!1;return!0}if(hasSet&&_e instanceof Set&&et instanceof Set){if(_e.size!==et.size)return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!et.has(st.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(_e)&&ArrayBuffer.isView(et)){if(rt=_e.length,rt!=et.length)return!1;for(st=rt;st--!==0;)if(_e[st]!==et[st])return!1;return!0}if(_e.constructor===RegExp)return _e.source===et.source&&_e.flags===et.flags;if(_e.valueOf!==Object.prototype.valueOf&&typeof _e.valueOf=="function"&&typeof et.valueOf=="function")return _e.valueOf()===et.valueOf();if(_e.toString!==Object.prototype.toString&&typeof _e.toString=="function"&&typeof et.toString=="function")return _e.toString()===et.toString();if(ct=Object.keys(_e),rt=ct.length,rt!==Object.keys(et).length)return!1;for(st=rt;st--!==0;)if(!Object.prototype.hasOwnProperty.call(et,ct[st]))return!1;if(hasElementType&&_e instanceof Element)return!1;for(st=rt;st--!==0;)if(!((ct[st]==="_owner"||ct[st]==="__v"||ct[st]==="__o")&&_e.$$typeof)&&!equal(_e[ct[st]],et[ct[st]]))return!1;return!0}return _e!==_e&&et!==et}var reactFastCompare=function _e(et,rt){try{return equal(et,rt)}catch(st){if((st.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw st}};const fastCompare=getDefaultExportFromCjs(reactFastCompare);var invariant=function(_e,et,rt,st,ct,ut,ft,gt){if(!_e){var xt;if(et===void 0)xt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var $t=[rt,st,ct,ut,ft,gt],_t=0;xt=new Error(et.replace(/%s/g,function(){return $t[_t++]})),xt.name="Invariant Violation"}throw xt.framesToPop=1,xt}},browser=invariant;const invariant$1=getDefaultExportFromCjs(browser);var shallowequal=function _e(et,rt,st,ct){var ut=st?st.call(ct,et,rt):void 0;if(ut!==void 0)return!!ut;if(et===rt)return!0;if(typeof et!="object"||!et||typeof rt!="object"||!rt)return!1;var ft=Object.keys(et),gt=Object.keys(rt);if(ft.length!==gt.length)return!1;for(var xt=Object.prototype.hasOwnProperty.bind(rt),$t=0;$t(_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))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={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"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((_e,[et,rt])=>(_e[rt]=et,_e),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(_e,et)=>{for(let rt=_e.length-1;rt>=0;rt-=1){const st=_e[rt];if(Object.prototype.hasOwnProperty.call(st,et))return st[et]}return null},getTitleFromPropsList=_e=>{let et=getInnermostProperty(_e,"title");const rt=getInnermostProperty(_e,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(et)&&(et=et.join("")),rt&&et)return rt.replace(/%s/g,()=>et);const st=getInnermostProperty(_e,HELMET_PROPS.DEFAULT_TITLE);return et||st||void 0},getOnChangeClientState=_e=>getInnermostProperty(_e,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(_e,et)=>et.filter(rt=>typeof rt[_e]<"u").map(rt=>rt[_e]).reduce((rt,st)=>({...rt,...st}),{}),getBaseTagFromPropsList=(_e,et)=>et.filter(rt=>typeof rt.base<"u").map(rt=>rt.base).reverse().reduce((rt,st)=>{if(!rt.length){const ct=Object.keys(st);for(let ut=0;utconsole&&typeof console.warn=="function"&&console.warn(_e),getTagsFromPropsList=(_e,et,rt)=>{const st={};return rt.filter(ct=>Array.isArray(ct[_e])?!0:(typeof ct[_e]<"u"&&warn(`Helmet: ${_e} should be of type "Array". Instead found type "${typeof ct[_e]}"`),!1)).map(ct=>ct[_e]).reverse().reduce((ct,ut)=>{const ft={};ut.filter(xt=>{let $t;const _t=Object.keys(xt);for(let Tt=0;Tt<_t.length;Tt+=1){const Rt=_t[Tt],It=Rt.toLowerCase();et.indexOf(It)!==-1&&!($t==="rel"&&xt[$t].toLowerCase()==="canonical")&&!(It==="rel"&&xt[It].toLowerCase()==="stylesheet")&&($t=It),et.indexOf(Rt)!==-1&&(Rt==="innerHTML"||Rt==="cssText"||Rt==="itemprop")&&($t=Rt)}if(!$t||!xt[$t])return!1;const wt=xt[$t].toLowerCase();return st[$t]||(st[$t]={}),ft[$t]||(ft[$t]={}),st[$t][wt]?!1:(ft[$t][wt]=!0,!0)}).reverse().forEach(xt=>ct.push(xt));const gt=Object.keys(ft);for(let xt=0;xt{if(Array.isArray(_e)&&_e.length){for(let rt=0;rt<_e.length;rt+=1)if(_e[rt][et])return!0}return!1},reducePropsToState=_e=>({baseTag:getBaseTagFromPropsList(["href"],_e),bodyAttributes:getAttributesFromPropsList("bodyAttributes",_e),defer:getInnermostProperty(_e,HELMET_PROPS.DEFER),encode:getInnermostProperty(_e,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",_e),linkTags:getTagsFromPropsList("link",["rel","href"],_e),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],_e),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],_e),onChangeClientState:getOnChangeClientState(_e),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],_e),styleTags:getTagsFromPropsList("style",["cssText"],_e),title:getTitleFromPropsList(_e),titleAttributes:getAttributesFromPropsList("titleAttributes",_e),prioritizeSeoTags:getAnyTrueFromPropsList(_e,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=_e=>Array.isArray(_e)?_e.join(""):_e,checkIfPropsMatch=(_e,et)=>{const rt=Object.keys(_e);for(let st=0;stArray.isArray(_e)?_e.reduce((rt,st)=>(checkIfPropsMatch(st,et)?rt.priority.push(st):rt.default.push(st),rt),{priority:[],default:[]}):{default:_e,priority:[]},without=(_e,et)=>({..._e,[et]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(_e,et=!0)=>et===!1?String(_e):String(_e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),generateElementAttributesAsString=_e=>Object.keys(_e).reduce((et,rt)=>{const st=typeof _e[rt]<"u"?`${rt}="${_e[rt]}"`:`${rt}`;return et?`${et} ${st}`:st},""),generateTitleAsString=(_e,et,rt,st)=>{const ct=generateElementAttributesAsString(rt),ut=flattenArray(et);return ct?`<${_e} ${HELMET_ATTRIBUTE}="true" ${ct}>${encodeSpecialCharacters(ut,st)}`:`<${_e} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(ut,st)}`},generateTagsAsString=(_e,et,rt=!0)=>et.reduce((st,ct)=>{const ut=ct,ft=Object.keys(ut).filter($t=>!($t==="innerHTML"||$t==="cssText")).reduce(($t,_t)=>{const wt=typeof ut[_t]>"u"?_t:`${_t}="${encodeSpecialCharacters(ut[_t],rt)}"`;return $t?`${$t} ${wt}`:wt},""),gt=ut.innerHTML||ut.cssText||"",xt=SELF_CLOSING_TAGS.indexOf(_e)===-1;return`${st}<${_e} ${HELMET_ATTRIBUTE}="true" ${ft}${xt?"/>":`>${gt}`}`},""),convertElementAttributesToReactProps=(_e,et={})=>Object.keys(_e).reduce((rt,st)=>{const ct=REACT_TAG_MAP[st];return rt[ct||st]=_e[st],rt},et),generateTitleAsReactComponent=(_e,et,rt)=>{const st={key:et,[HELMET_ATTRIBUTE]:!0},ct=convertElementAttributesToReactProps(rt,st);return[React$1.createElement("title",ct,et)]},generateTagsAsReactComponent=(_e,et)=>et.map((rt,st)=>{const ct={key:st,[HELMET_ATTRIBUTE]:!0};return Object.keys(rt).forEach(ut=>{const gt=REACT_TAG_MAP[ut]||ut;if(gt==="innerHTML"||gt==="cssText"){const xt=rt.innerHTML||rt.cssText;ct.dangerouslySetInnerHTML={__html:xt}}else ct[gt]=rt[ut]}),React$1.createElement(_e,ct)}),getMethodsForTag=(_e,et,rt=!0)=>{switch(_e){case"title":return{toComponent:()=>generateTitleAsReactComponent(_e,et.title,et.titleAttributes),toString:()=>generateTitleAsString(_e,et.title,et.titleAttributes,rt)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(et),toString:()=>generateElementAttributesAsString(et)};default:return{toComponent:()=>generateTagsAsReactComponent(_e,et),toString:()=>generateTagsAsString(_e,et,rt)}}},getPriorityMethods=({metaTags:_e,linkTags:et,scriptTags:rt,encode:st})=>{const ct=prioritizer(_e,SEO_PRIORITY_TAGS.meta),ut=prioritizer(et,SEO_PRIORITY_TAGS.link),ft=prioritizer(rt,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",ct.priority),...generateTagsAsReactComponent("link",ut.priority),...generateTagsAsReactComponent("script",ft.priority)],toString:()=>`${getMethodsForTag("meta",ct.priority,st)} ${getMethodsForTag("link",ut.priority,st)} ${getMethodsForTag("script",ft.priority,st)}`},metaTags:ct.default,linkTags:ut.default,scriptTags:ft.default}},mapStateOnServer=_e=>{const{baseTag:et,bodyAttributes:rt,encode:st=!0,htmlAttributes:ct,noscriptTags:ut,styleTags:ft,title:gt="",titleAttributes:xt,prioritizeSeoTags:$t}=_e;let{linkTags:_t,metaTags:wt,scriptTags:Tt}=_e,Rt={toComponent:()=>{},toString:()=>""};return $t&&({priorityMethods:Rt,linkTags:_t,metaTags:wt,scriptTags:Tt}=getPriorityMethods(_e)),{priority:Rt,base:getMethodsForTag("base",et,st),bodyAttributes:getMethodsForTag("bodyAttributes",rt,st),htmlAttributes:getMethodsForTag("htmlAttributes",ct,st),link:getMethodsForTag("link",_t,st),meta:getMethodsForTag("meta",wt,st),noscript:getMethodsForTag("noscript",ut,st),script:getMethodsForTag("script",Tt,st),style:getMethodsForTag("style",ft,st),title:getMethodsForTag("title",{title:gt,titleAttributes:xt},st)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{constructor(_e,et){zo(this,"instances",[]);zo(this,"canUseDOM",isDocument);zo(this,"context");zo(this,"value",{setHelmet:_e=>{this.context.helmet=_e},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:_e=>{(this.canUseDOM?instances:this.instances).push(_e)},remove:_e=>{const et=(this.canUseDOM?instances:this.instances).indexOf(_e);(this.canUseDOM?instances:this.instances).splice(et,1)}}});this.context=_e,this.canUseDOM=et||!1,et||(_e.helmet=server_default({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React$1.createContext(defaultValue),lp,HelmetProvider=(lp=class extends reactExports.Component{constructor(rt){super(rt);zo(this,"helmetData");this.helmetData=new HelmetData(this.props.context||{},lp.canUseDOM)}render(){return React$1.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},zo(lp,"canUseDOM",isDocument),lp),updateTags=(_e,et)=>{const rt=document.head||document.querySelector("head"),st=rt.querySelectorAll(`${_e}[${HELMET_ATTRIBUTE}]`),ct=[].slice.call(st),ut=[];let ft;return et&&et.length&&et.forEach(gt=>{const xt=document.createElement(_e);for(const $t in gt)if(Object.prototype.hasOwnProperty.call(gt,$t))if($t==="innerHTML")xt.innerHTML=gt.innerHTML;else if($t==="cssText")xt.styleSheet?xt.styleSheet.cssText=gt.cssText:xt.appendChild(document.createTextNode(gt.cssText));else{const _t=$t,wt=typeof gt[_t]>"u"?"":gt[_t];xt.setAttribute($t,wt)}xt.setAttribute(HELMET_ATTRIBUTE,"true"),ct.some(($t,_t)=>(ft=_t,xt.isEqualNode($t)))?ct.splice(ft,1):ut.push(xt)}),ct.forEach(gt=>{var xt;return(xt=gt.parentNode)==null?void 0:xt.removeChild(gt)}),ut.forEach(gt=>rt.appendChild(gt)),{oldTags:ct,newTags:ut}},updateAttributes=(_e,et)=>{const rt=document.getElementsByTagName(_e)[0];if(!rt)return;const st=rt.getAttribute(HELMET_ATTRIBUTE),ct=st?st.split(","):[],ut=[...ct],ft=Object.keys(et);for(const gt of ft){const xt=et[gt]||"";rt.getAttribute(gt)!==xt&&rt.setAttribute(gt,xt),ct.indexOf(gt)===-1&&ct.push(gt);const $t=ut.indexOf(gt);$t!==-1&&ut.splice($t,1)}for(let gt=ut.length-1;gt>=0;gt-=1)rt.removeAttribute(ut[gt]);ct.length===ut.length?rt.removeAttribute(HELMET_ATTRIBUTE):rt.getAttribute(HELMET_ATTRIBUTE)!==ft.join(",")&&rt.setAttribute(HELMET_ATTRIBUTE,ft.join(","))},updateTitle=(_e,et)=>{typeof _e<"u"&&document.title!==_e&&(document.title=flattenArray(_e)),updateAttributes("title",et)},commitTagChanges=(_e,et)=>{const{baseTag:rt,bodyAttributes:st,htmlAttributes:ct,linkTags:ut,metaTags:ft,noscriptTags:gt,onChangeClientState:xt,scriptTags:$t,styleTags:_t,title:wt,titleAttributes:Tt}=_e;updateAttributes("body",st),updateAttributes("html",ct),updateTitle(wt,Tt);const Rt={baseTag:updateTags("base",rt),linkTags:updateTags("link",ut),metaTags:updateTags("meta",ft),noscriptTags:updateTags("noscript",gt),scriptTags:updateTags("script",$t),styleTags:updateTags("style",_t)},It={},At={};Object.keys(Rt).forEach(jt=>{const{newTags:Nt,oldTags:kt}=Rt[jt];Nt.length&&(It[jt]=Nt),kt.length&&(At[jt]=Rt[jt].oldTags)}),et&&et(),xt(_e,It,At)},_helmetCallback=null,handleStateChangeOnClient=_e=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),_e.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(_e,()=>{_helmetCallback=null})}):(commitTagChanges(_e),_helmetCallback=null)},client_default=handleStateChangeOnClient,HelmetDispatcher=class extends reactExports.Component{constructor(){super(...arguments);zo(this,"rendered",!1)}shouldComponentUpdate(et){return!shallowEqual(et,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:et}=this.props.context;et.remove(this),this.emitChange()}emitChange(){const{helmetInstances:et,setHelmet:rt}=this.props.context;let st=null;const ct=reducePropsToState(et.get().map(ut=>{const ft={...ut.props};return delete ft.context,ft}));HelmetProvider.canUseDOM?client_default(ct):server_default&&(st=server_default(ct)),rt(st)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:et}=this.props.context;et.add(this),this.emitChange()}render(){return this.init(),null}},_g,Helmet=(_g=class extends reactExports.Component{shouldComponentUpdate(_e){return!fastCompare(without(this.props,"helmetData"),without(_e,"helmetData"))}mapNestedChildrenToProps(_e,et){if(!et)return null;switch(_e.type){case"script":case"noscript":return{innerHTML:et};case"style":return{cssText:et};default:throw new Error(`<${_e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(_e,et,rt,st){return{...et,[_e.type]:[...et[_e.type]||[],{...rt,...this.mapNestedChildrenToProps(_e,st)}]}}mapObjectTypeChildren(_e,et,rt,st){switch(_e.type){case"title":return{...et,[_e.type]:st,titleAttributes:{...rt}};case"body":return{...et,bodyAttributes:{...rt}};case"html":return{...et,htmlAttributes:{...rt}};default:return{...et,[_e.type]:{...rt}}}}mapArrayTypeChildrenToProps(_e,et){let rt={...et};return Object.keys(_e).forEach(st=>{rt={...rt,[st]:_e[st]}}),rt}warnOnInvalidChildren(_e,et){return invariant$1(VALID_TAG_NAMES.some(rt=>_e.type===rt),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 ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${_e.type}> elements. Refer to our API for more information.`),invariant$1(!et||typeof et=="string"||Array.isArray(et)&&!et.some(rt=>typeof rt!="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,et){let rt={};return React$1.Children.forEach(_e,st=>{if(!st||!st.props)return;const{children:ct,...ut}=st.props,ft=Object.keys(ut).reduce((xt,$t)=>(xt[HTML_TAG_MAP[$t]||$t]=ut[$t],xt),{});let{type:gt}=st;switch(typeof gt=="symbol"?gt=gt.toString():this.warnOnInvalidChildren(st,ct),gt){case"Symbol(react.fragment)":et=this.mapChildrenToProps(ct,et);break;case"link":case"meta":case"noscript":case"script":case"style":rt=this.flattenArrayTypeChildren(st,rt,ft,ct);break;default:et=this.mapObjectTypeChildren(st,et,ft,ct);break}}),this.mapArrayTypeChildrenToProps(rt,et)}render(){const{children:_e,...et}=this.props;let rt={...et},{helmetData:st}=et;if(_e&&(rt=this.mapChildrenToProps(_e,rt)),st&&!(st instanceof HelmetData)){const ct=st;st=new HelmetData(ct.context,!0),delete rt.helmetData}return st?React$1.createElement(HelmetDispatcher,{...rt,context:st.value}):React$1.createElement(Context.Consumer,null,ct=>React$1.createElement(HelmetDispatcher,{...rt,context:ct}))}},zo(_g,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),_g);function useStyle(){const{isDarkMode:_e}=useTheme$2(),{token:et}=theme.useToken(),rt={borderRight:_e?"1px solid #333":"1px solid #ccc",background:_e?"#141414":"#eee"},st=260,ct={background:_e?"#141414":"#fff"},ut={borderLeft:_e?"1px solid #333":"1px solid #ccc",background:_e?"#141414":"#eee"},ft={minHeight:120},gt={height:20,fontSize:12,backgroundColor:et.colorBgContainer,color:et.colorText};return{leftSiderStyle:rt,leftSiderWidth:st,headerStyle:ct,rightSiderStyle:ut,contentStyle:ft,footerStyle:gt}}const ChatPage=()=>{const _e=useIntl(),et=useNetworkStatus(),[rt,st]=reactExports.useState(!1);useAuthStore(hr=>hr.isMqttConnected);const ct=useUserStore(hr=>hr.userInfo),[ut,ft]=reactExports.useState(!1),[gt,xt]=reactExports.useState(0),{messageList:$t,addMessageList:_t}=useMessageStore(hr=>({messageList:hr.messageList,addMessageList:hr.addMessageList})),{messages:wt,appendMsg:Tt,updateMsg:Rt,resetList:It}=useMessages([]),At=useThreadStore(hr=>hr.currentThread),[jt,Nt]=reactExports.useState(!1),kt=React$1.useRef(null),{isDarkMode:Ft}=reactExports.useContext(AppContext$2),{headerStyle:Ht}=useStyle(),Vt={align:"left",title:(()=>{if(At.user)return At.user.nickname.startsWith(I18_PREFIX)?_e.formatMessage({id:At.user.nickname,defaultMessage:At.user.nickname}):At.user.nickname})(),rightContent:[{icon:rt?"chevron-right":"ellipsis-h",onClick(hr){console.log("navbar right onClick",hr),st(fr=>!fr),emitter.emit(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL,!rt),IS_ELECTRON?window.electronAPI.showRightPanel(!rt):console.log("not electron")}}]},qt=[{name:"图片",type:"upload",code:"image",icon:"image",isHighlight:!1},{name:"文件",type:"upload",code:"file",icon:"file",isHighlight:!1},{name:"截图",code:"screenshot",icon:"camera",isHighlight:!1}],Gt=async()=>{const hr=await queryMessages({threads:[At.uid],pageNumber:gt,pageSize:10});console.log("queryMessages: ",hr),hr.data.code===200?(_t(hr.data.data.content,At),xt(gt+1),ft(!1),hr.data.data.empty):hr.data.code===601||message.error(hr.data.message)};reactExports.useEffect(()=>{It(),console.log("useEffect 1: ",At.user.nickname,wt.length),Gt(),kt.current&&(kt.current.scrollToEnd(),console.log("scrollToEnd:",kt))},[At]);const Xt=hr=>{switch(hr){case NOTIFICATION_THREAD:return"text";default:return"text"}};reactExports.useEffect(()=>{console.log("useEffect 2:",At.user.nickname,wt.length),$t.forEach(hr=>{!wt.some(dr=>dr._id===hr.uid)&&hr.thread.uid===At.uid&&Tt({_id:hr.uid,type:Xt(hr.type),hasTime:!0,createdAt:hooks(hr.createdAt).toDate().getTime(),content:{text:hr.content},position:hr.user.uid===ct.uid?"right":"left",user:{avatar:hr.user.avatar}})})},[$t,At]);const Zt=async()=>{console.log("onRefresh"),ft(!0),Gt()},lr=(hr,fr)=>{if(!et){message.error("网络连接失败,请检查网络");return}if(hr==="text"&&fr.trim()){let dr=getUUid();mqttSendTextMessage(dr,fr),kt.current.scrollToEnd(),console.log("scrollToEnd:",kt)}},er=hr=>{console.log("handleInputChange",hr)},cr=hr=>(console.log("handleImageSend",hr),null),ur=(hr,fr)=>{console.log("QuickReply:",hr,fr),hr.type!=="upload"&&hr.code==="screenshot"&&(IS_ELECTRON?window.electronAPI.screenshotCapture(hr.name):console.log("not electron"))},pr=hr=>{const{type:fr,content:dr}=hr;switch(fr){case"text":return jsxRuntimeExports.jsx(Bubble,{content:dr.text});case"image":return jsxRuntimeExports.jsx(Bubble,{type:"image",children:jsxRuntimeExports.jsx("img",{src:dr.picUrl,alt:""})});default:return null}};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ft&&jsxRuntimeExports.jsx(Helmet,{children:jsxRuntimeExports.jsx("link",{rel:"stylesheet",type:"text/css",href:"./assets/css/chatui/chatui-theme-dark.css"})}),jsxRuntimeExports.jsx(DropUpload,{children:At.uid===""?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header_1,{style:Ht,children:jsxRuntimeExports.jsx("div",{className:"header-right"})}),jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:!1})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Chat,{navbar:Vt,messages:wt,isTyping:jt,loadMoreText:"加载更多",onRefresh:Zt,messagesRef:kt,renderMessageContent:pr,inputOptions:{showCount:!1},quickReplies:qt,onQuickReplyClick:ur,onSend:lr,onInputChange:er,onImageSend:cr})})})]})},Cuw=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Cuw"}),AI=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"AI"}),CustomerInfo=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"CustomerInfo"}),onChange=_e=>{console.log(_e)},items=[{key:"1",label:"AI助手",children:jsxRuntimeExports.jsx(AI,{})},{key:"2",label:"常用语",children:jsxRuntimeExports.jsx(Cuw,{})},{key:"3",label:"用户信息",children:jsxRuntimeExports.jsx(CustomerInfo,{})}],RightPanel=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Tabs$1,{centered:!0,defaultActiveKey:"1",items,onChange})});async function queryThreads(_e){return request("/api/v1/thread/query",{method:"GET",params:{..._e}})}async function startThread(_e){return request("/api/v1/thread/create",{method:"POST",data:{..._e}})}var Y=reactExports.createContext({}),F=()=>reactExports.useContext(Y),$$1=_e=>React$1.createElement(Y.Provider,{..._e});function le(){let _e=new Map;return{on(et,rt){return _e.has(et)?_e.get(et).add(rt):_e.set(et,new Set([rt])),this},off(et,rt){return _e.has(et)&&_e.get(et).delete(rt),this},emit(et,rt){return _e.has(et)&&_e.get(et).forEach(st=>{st(rt)}),this}}}var R$1=le(),B$1=()=>reactExports.useRef(new Map).current,z$1=()=>{},U=["resize","contextmenu","click","scroll","blur"],A$1={show({event:_e,id:et,props:rt,position:st}){_e.preventDefault&&_e.preventDefault(),R$1.emit(0).emit(et,{event:_e.nativeEvent||_e,props:rt,position:st})},hideAll(){R$1.emit(0)}};function Fe(_e){return{show(et){A$1.show({..._e,...et})},hideAll(){A$1.hideAll()}}}function G(){let _e=new Map,et,rt,st,ct,ut=!1;function ft(jt){ct=Array.from(jt.values()),et=-1,st=!0}function gt(){ct[et].node.focus()}let xt=()=>et>=0&&ct[et].isSubmenu,$t=()=>Array.from(ct[et].submenuRefTracker.values());function _t(){return et===-1?(wt(),!1):!0}function wt(){et+10?(et=0,ct=jt):ut=!0,st=!1,gt(),!0}return!1}function It(){if(_t()&&!st){let jt=_e.get(rt);rt.classList.remove("contexify_submenu-isOpen"),ct=jt.items,rt=jt.parentNode,jt.isRoot&&(st=!0,_e.clear()),ut||(et=jt.focusedIndex,gt())}}function At(jt){function Nt(kt){for(let Ft of kt)Ft.isSubmenu&&Ft.submenuRefTracker&&Nt(Array.from(Ft.submenuRefTracker.values())),Ft.keyMatcher&&Ft.keyMatcher(jt)}Nt(ct)}return{init:ft,moveDown:wt,moveUp:Tt,openSubmenu:Rt,closeSubmenu:It,matchKeys:At}}function I$1(_e){return typeof _e=="function"}function V(_e){return typeof _e=="string"}function _$1(_e,et){return reactExports.Children.map(reactExports.Children.toArray(_e).filter(Boolean),rt=>reactExports.cloneElement(rt,et))}function J(_e){let et={x:_e.clientX,y:_e.clientY},rt=_e.changedTouches;return rt&&(et.x=rt[0].clientX,et.y=rt[0].clientY),(!et.x||et.x<0)&&(et.x=0),(!et.y||et.y<0)&&(et.y=0),et}function k$1(_e,et){return I$1(_e)?_e(et):_e}function be(_e,et){return{..._e,...I$1(et)?et(_e):et}}var it=({id:_e,theme:et,style:rt,className:st,children:ct,animation:ut="fade",preventDefaultOnKeydown:ft=!0,disableBoundariesCheck:gt=!1,onVisibilityChange:xt,...$t})=>{let[_t,wt]=reactExports.useReducer(be,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),Tt=reactExports.useRef(null),Rt=B$1(),[It]=reactExports.useState(()=>G()),At=reactExports.useRef(),jt=reactExports.useRef();reactExports.useEffect(()=>(R$1.on(_e,kt).on(0,Ft),()=>{R$1.off(_e,kt).off(0,Ft)}),[_e,ut,gt]),reactExports.useEffect(()=>{_t.visible?It.init(Rt):Rt.clear()},[_t.visible,It,Rt]);function Nt(cr,ur){if(Tt.current&&!gt){let{innerWidth:pr,innerHeight:hr}=window,{offsetWidth:fr,offsetHeight:dr}=Tt.current;cr+fr>pr&&(cr-=cr+fr-pr),ur+dr>hr&&(ur-=ur+dr-hr)}return{x:cr,y:ur}}reactExports.useEffect(()=>{_t.visible&&wt(Nt(_t.x,_t.y))},[_t.visible]),reactExports.useEffect(()=>{function cr(pr){ft&&pr.preventDefault()}function ur(pr){switch(pr.key){case"Enter":case" ":It.openSubmenu()||Ft();break;case"Escape":Ft();break;case"ArrowUp":cr(pr),It.moveUp();break;case"ArrowDown":cr(pr),It.moveDown();break;case"ArrowRight":cr(pr),It.openSubmenu();break;case"ArrowLeft":cr(pr),It.closeSubmenu();break;default:It.matchKeys(pr);break}}if(_t.visible){window.addEventListener("keydown",ur);for(let pr of U)window.addEventListener(pr,Ft)}return()=>{window.removeEventListener("keydown",ur);for(let pr of U)window.removeEventListener(pr,Ft)}},[_t.visible,It,ft]);function kt({event:cr,props:ur,position:pr}){cr.stopPropagation();let hr=pr||J(cr),{x:fr,y:dr}=Nt(hr.x,hr.y);reactDomExports.flushSync(()=>{wt({visible:!0,willLeave:!1,x:fr,y:dr,triggerEvent:cr,propsFromTrigger:ur})}),clearTimeout(jt.current),!At.current&&I$1(xt)&&(xt(!0),At.current=!0)}function Ft(cr){cr!=null&&(cr.button===2||cr.ctrlKey)&&cr.type!=="contextmenu"||(ut&&(V(ut)||"exit"in ut&&ut.exit)?wt(ur=>({willLeave:ur.visible})):wt(ur=>({visible:ur.visible?!1:ur.visible})),jt.current=setTimeout(()=>{I$1(xt)&&xt(!1),At.current=!1}))}function Ht(){_t.willLeave&&_t.visible&&reactDomExports.flushSync(()=>wt({visible:!1,willLeave:!1}))}function Wt(){return V(ut)?clsx$1({[`contexify_willEnter-${ut}`]:Vt&&!lr,[`contexify_willLeave-${ut} contexify_willLeave-'disabled'`]:Vt&&lr}):ut&&"enter"in ut&&"exit"in ut?clsx$1({[`contexify_willEnter-${ut.enter}`]:ut.enter&&Vt&&!lr,[`contexify_willLeave-${ut.exit} contexify_willLeave-'disabled'`]:ut.exit&&Vt&&lr}):null}let{visible:Vt,triggerEvent:qt,propsFromTrigger:Gt,x:Xt,y:Zt,willLeave:lr}=_t,er=clsx$1("contexify",st,{[`contexify_theme-${et}`]:et},Wt());return React$1.createElement($$1,{value:Rt},Vt&&React$1.createElement("div",{...$t,className:er,onAnimationEnd:Ht,style:{...rt,left:Xt,top:Zt,opacity:1},ref:Tt,role:"menu"},_$1(ct,{propsFromTrigger:Gt,triggerEvent:qt})))},pt=({id:_e,children:et,className:rt,style:st,triggerEvent:ct,data:ut,propsFromTrigger:ft,keyMatcher:gt,onClick:xt=z$1,disabled:$t=!1,hidden:_t=!1,closeOnClick:wt=!0,handlerEvent:Tt="onClick",...Rt})=>{let It=reactExports.useRef(),At=F(),jt={id:_e,data:ut,triggerEvent:ct,props:ft},Nt=k$1($t,jt),kt=k$1(_t,jt);function Ft(qt){jt.event=qt,qt.stopPropagation(),Nt||(wt?Ht():xt(jt))}function Ht(){let qt=It.current;qt.focus(),qt.addEventListener("animationend",()=>setTimeout(A$1.hideAll),{once:!0}),qt.classList.add("contexify_item-feedback"),xt(jt)}function Wt(qt){qt&&!Nt&&(It.current=qt,At.set(qt,{node:qt,isSubmenu:!1,keyMatcher:!Nt&&I$1(gt)&&(Gt=>{gt(Gt)&&(Gt.stopPropagation(),Gt.preventDefault(),jt.event=Gt,Ht())})}))}function Vt(qt){(qt.key==="Enter"||qt.key===" ")&&(qt.stopPropagation(),jt.event=qt,Ht())}return kt?null:React$1.createElement("div",{...Rt,[Tt]:Ft,className:clsx$1("contexify_item",rt,{"contexify_item-disabled":Nt}),style:st,onKeyDown:Vt,ref:Wt,tabIndex:-1,role:"menuitem","aria-disabled":Nt},React$1.createElement("div",{className:"contexify_itemContent"},et))},Et=({triggerEvent:_e,data:et,propsFromTrigger:rt,hidden:st=!1})=>k$1(st,{data:et,triggerEvent:_e,props:rt})?null:React$1.createElement("div",{className:"contexify_separator"}),re=()=>React$1.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"},React$1.createElement("polyline",{points:"9 18 15 12 9 6"})),ne=({className:_e,...et})=>React$1.createElement("div",{className:clsx$1("contexify_rightSlot",_e),...et}),Kt=({arrow:_e,children:et,disabled:rt=!1,hidden:st=!1,label:ct,className:ut,triggerEvent:ft,propsFromTrigger:gt,style:xt,...$t})=>{let _t=F(),wt=B$1(),Tt=reactExports.useRef(null),Rt={triggerEvent:ft,props:gt},It=k$1(rt,Rt),At=k$1(st,Rt);function jt(){let Ft=Tt.current;if(Ft){let Ht="contexify_submenu-bottom",Wt="contexify_submenu-right";Ft.classList.remove(Ht,Wt);let Vt=Ft.getBoundingClientRect();Vt.right>window.innerWidth&&Ft.classList.add(Wt),Vt.bottom>window.innerHeight&&Ft.classList.add(Ht)}}function Nt(Ft){Ft&&!It&&_t.set(Ft,{node:Ft,isSubmenu:!0,submenuRefTracker:wt,setSubmenuPosition:jt})}if(At)return null;let kt=clsx$1("contexify_item",ut,{"contexify_item-disabled":It});return React$1.createElement($$1,{value:wt},React$1.createElement("div",{...$t,className:kt,ref:Nt,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":It,onMouseEnter:jt,onTouchStart:jt},React$1.createElement("div",{className:"contexify_itemContent",onClick:Ft=>Ft.stopPropagation()},ct,React$1.createElement(ne,null,_e||React$1.createElement(re,null))),React$1.createElement("div",{className:"contexify contexify_submenu",ref:Tt,style:xt},_$1(et,{propsFromTrigger:gt,triggerEvent:ft}))))};function xml$1(_e){return _e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function xml(_e){var et,rt,st,ct,ut,ft,gt;const xt=(et=_e.meta)===null||et===void 0?void 0:et.title,$t=(rt=_e.meta)===null||rt===void 0?void 0:rt.creator,_t=(st=_e.meta)===null||st===void 0?void 0:st.source,wt=(ut=(ct=_e.meta)===null||ct===void 0?void 0:ct.license)===null||ut===void 0?void 0:ut.url,Tt=text(_e);return!xt&&!$t&&!_t&&!wt&&!Tt?"":''+(xt?`${xml$1(xt)}`:"")+($t?`${xml$1($t)}`:"")+(_t?`${xml$1((gt=(ft=_e.meta)===null||ft===void 0?void 0:ft.source)!==null&>!==void 0?gt:"")}`:"")+(wt?`${xml$1(wt)}`:"")+(Tt?`${xml$1(Tt)}`:"")+""}function text(_e){var et,rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At;let jt=!((et=_e.meta)===null||et===void 0)&&et.title?`„${(rt=_e.meta)===null||rt===void 0?void 0:rt.title}”`:"Design",Nt=`„${(ct=(st=_e.meta)===null||st===void 0?void 0:st.creator)!==null&&ct!==void 0?ct:"Unknown"}”`;!((ut=_e.meta)===null||ut===void 0)&&ut.source&&(jt+=` (${_e.meta.source})`);let kt="";return((gt=(ft=_e.meta)===null||ft===void 0?void 0:ft.license)===null||gt===void 0?void 0:gt.name)!=="MIT"&&((xt=_e.meta)===null||xt===void 0?void 0:xt.creator)!=="DiceBear"&&(!(($t=_e.meta)===null||$t===void 0)&&$t.title)&&(kt+="Remix of "),kt+=`${jt} by ${Nt}`,!((wt=(_t=_e.meta)===null||_t===void 0?void 0:_t.license)===null||wt===void 0)&&wt.name&&(kt+=`, licensed under „${(Rt=(Tt=_e.meta)===null||Tt===void 0?void 0:Tt.license)===null||Rt===void 0?void 0:Rt.name}”`,!((At=(It=_e.meta)===null||It===void 0?void 0:It.license)===null||At===void 0)&&At.url&&(kt+=` (${_e.meta.license.url})`)),kt}function exif(_e){var et,rt,st,ct,ut,ft,gt,xt,$t;const _t=text(_e);return{"IPTC:ObjectName":(et=_e.meta)===null||et===void 0?void 0:et.title,"XMP-dc:Title":(rt=_e.meta)===null||rt===void 0?void 0:rt.title,"IPTC:CopyrightNotice":_t,"XMP-dc:Rights":_t,"IPTC:By-line":(st=_e.meta)===null||st===void 0?void 0:st.creator,"XMP-dc:Creator":(ct=_e.meta)===null||ct===void 0?void 0:ct.creator,"IPTC:Credit":(ut=_e.meta)===null||ut===void 0?void 0:ut.creator,"XMP-photoshop:Credit":(ft=_e.meta)===null||ft===void 0?void 0:ft.creator,"XMP-plus:LicensorURL":(gt=_e.meta)===null||gt===void 0?void 0:gt.source,"XMP-xmpRights:WebStatement":($t=(xt=_e.meta)===null||xt===void 0?void 0:xt.license)===null||$t===void 0?void 0:$t.url}}const MIN=-2147483648,MAX=2147483647;function xorshift(_e){return _e^=_e<<13,_e^=_e>>17,_e^=_e<<5,_e}function hashSeed(_e){let et=0;for(let rt=0;rt<_e.length;rt++)et=(et<<5)-et+_e.charCodeAt(rt)|0,et=xorshift(et);return et}function create$1(_e=""){_e=_e.toString();let et=hashSeed(_e)||1;const rt=()=>et=xorshift(et),st=(ct,ut)=>Math.floor((rt()-MIN)/(MAX-MIN)*(ut+1-ct)+ct);return{seed:_e,next:rt,bool(ct=50){return st(1,100)<=ct},integer(ct,ut){return st(ct,ut)},pick(ct,ut){var ft;return ct.length===0?(rt(),ut):(ft=ct[st(0,ct.length-1)])!==null&&ft!==void 0?ft:ut},shuffle(ct){const ut=create$1(rt().toString()),ft=[...ct];for(let gt=ft.length-1;gt>0;gt--){const xt=ut.integer(0,gt);[ft[gt],ft[xt]]=[ft[xt],ft[gt]]}return ft},string(ct,ut="abcdefghijklmnopqrstuvwxyz1234567890"){const ft=create$1(rt().toString());let gt="";for(let xt=0;xt`;switch(st){case"solid":return $t+_e.body;case"gradientLinear":return``+_e.body}}function addScale(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e),ft=et?(et-100)/100:0,gt=(rt/2+ct)*ft*-1,xt=(st/2+ut)*ft*-1;return`${_e.body}`}function addTranslate(_e,et,rt){let st=getViewBox(_e),ct=(st.width+st.x*2)*((et??0)/100),ut=(st.height+st.y*2)*((rt??0)/100);return`${_e.body}`}function addRotate(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e);return`${_e.body}`}function addFlip(_e){let{width:et,x:rt}=getViewBox(_e);return`${_e.body}`}function addViewboxMask(_e,et){let{width:rt,height:st,x:ct,y:ut}=getViewBox(_e),ft=et?rt*et/100:0,gt=et?st*et/100:0;return`${_e.body}`}function createAttrString(_e){const et={xmlns:"http://www.w3.org/2000/svg",..._e.attributes};return Object.keys(et).map(rt=>`${xml$1(rt)}="${xml$1(et[rt])}"`).join(" ")}function randomizeIds(_e){const et=create$1(Math.random().toString()),rt={};return _e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(st,ct,ut,ft)=>(rt[ut]=rt[ut]||et.string(8),`${ct}${rt[ut]}${ft}`))}const schema$1={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 defaults(_e){var et;let rt={},st=(et=_e.properties)!==null&&et!==void 0?et:{};return Object.keys(st).forEach(ct=>{let ut=st[ct];typeof ut=="object"&&ut.default!==void 0&&(Array.isArray(ut.default)?rt[ct]=[...ut.default]:typeof ut.default=="object"?rt[ct]={...ut.default}:rt[ct]=ut.default)}),rt}function merge(_e,et){var rt;let st={...defaults(schema$1),...defaults((rt=_e.schema)!==null&&rt!==void 0?rt:{}),...et};return JSON.parse(JSON.stringify(st))}function getMimeType(_e){switch(_e){case"svg":return"image/svg+xml";case"png":case"jpeg":return`image/${_e}`;default:throw new Error(`Unsupported format: ${_e}`)}}function ensureSize(_e,et=512){let rt=et;return _e=_e.replace(/]*)/,(st,ct)=>{const ut=ct.match(/width="([^"]+)"/);return ut&&(rt=parseInt(ut[1])),ct.match(/width="([^"]+)"/)?ct=ct.replace(/width="([^"]+)"/,`width="${rt}"`):ct+=` width="${rt}"`,ct.match(/height="([^"]+)"/)?ct=ct.replace(/height="([^"]+)"/,`height="${rt}"`):ct+=` height="${rt}"`,`toDataUri(_e,et,rt),toFile:st=>toFile(st,_e,et,rt),toArrayBuffer:()=>toArrayBuffer(_e,et,rt)}};async function toDataUri(_e,et,rt){return et==="svg"?`data:${getMimeType(et)};utf8,${encodeURIComponent(_e)}`:(await toCanvas(_e,et,rt)).toDataURL(getMimeType(et))}async function toArrayBuffer(_e,et,rt){if(et==="svg")return getEncoder().encode(_e);const st=await toCanvas(_e,et,rt);return await new Promise((ct,ut)=>{st.toBlob(ft=>{ft?ct(ft.arrayBuffer()):ut(new Error("Could not create blob"))},getMimeType(et))})}async function toFile(_e,et,rt,st){const ct=document.createElement("a");ct.href=await toDataUri(et,rt,st),ct.download=_e,ct.click(),ct.remove()}async function toCanvas(_e,et,rt){rt&&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:st,size:ct}=ensureSize(_e);const ut=document.createElement("canvas");ut.width=ct,ut.height=ct;const ft=ut.getContext("2d");if(ft===null)throw new Error("Could not get canvas context");et==="jpeg"&&(ft.fillStyle="white",ft.fillRect(0,0,ct,ct));var gt=document.createElement("img");return gt.width=ct,gt.height=ct,gt.setAttribute("src",await toDataUri(st,"svg")),new Promise((xt,$t)=>{gt.onload=()=>{ft.drawImage(gt,0,0,ct,ct),xt(ut)},gt.onerror=_t=>$t(_t)})}function convertColor$1(_e){return _e==="transparent"?_e:`#${_e}`}function getBackgroundColors(_e,et,rt){var st;let ct=_e.shuffle(et);ct.length<=1||et.length==2&&rt=="gradientLinear"?(ct=et,_e.next()):ct=_e.shuffle(et),ct.length===0&&(ct=["transparent"]);const ut=ct[0],ft=(st=ct[1])!==null&&st!==void 0?st:ct[0];return{primary:convertColor$1(ut),secondary:convertColor$1(ft)}}function createAvatar(_e,et={}){var rt,st,ct,ut,ft;et=merge(_e,et);const gt=create$1(et.seed),xt=_e.create({prng:gt,options:et}),$t=gt.pick((rt=et.backgroundType)!==null&&rt!==void 0?rt:[],"solid"),{primary:_t,secondary:wt}=getBackgroundColors(gt,(st=et.backgroundColor)!==null&&st!==void 0?st:[],$t),Tt=gt.integer(!((ct=et.backgroundRotation)===null||ct===void 0)&&ct.length?Math.min(...et.backgroundRotation):0,!((ut=et.backgroundRotation)===null||ut===void 0)&&ut.length?Math.max(...et.backgroundRotation):0);et.size&&(xt.attributes.width=et.size.toString(),xt.attributes.height=et.size.toString()),et.scale!==void 0&&et.scale!==100&&(xt.body=addScale(xt,et.scale)),et.flip&&(xt.body=addFlip(xt)),et.rotate&&(xt.body=addRotate(xt,et.rotate)),(et.translateX||et.translateY)&&(xt.body=addTranslate(xt,et.translateX,et.translateY)),_t!=="transparent"&&wt!=="transparent"&&(xt.body=addBackground(xt,_t,wt,$t,Tt)),(et.radius||et.clip)&&(xt.body=addViewboxMask(xt,(ft=et.radius)!==null&&ft!==void 0?ft:0)),et.randomizeIds&&(xt.body=randomizeIds(xt));const Rt=createAttrString(xt),It=xml(_e),At=exif(_e),jt=`${It}${xt.body}`;return{toString:()=>jt,toJson:()=>{var Nt;return{svg:jt,extra:{primaryBackgroundColor:_t,secondaryBackgroundColor:wt,backgroundType:$t,backgroundRotation:Tt,...(Nt=xt.extra)===null||Nt===void 0?void 0:Nt.call(xt)}}},toDataUriSync:()=>`data:image/svg+xml;utf8,${encodeURIComponent(jt)}`,...toFormat(jt,"svg"),png:({includeExif:Nt=!1}={})=>toFormat(jt,"png",Nt?At:void 0),jpeg:({includeExif:Nt=!1}={})=>toFormat(jt,"jpeg",Nt?At:void 0)}}const hair={variant48:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant47:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant46:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant45:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant44:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant43:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant42:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant41:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant40:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant39:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant38:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant37:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant36:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant35:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant34:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant33:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant32:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant31:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant30:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant29:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant28:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant27:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant26:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant25:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant24:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant23:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant22:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant21:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant20:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant19:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant18:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant17:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant16:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant15:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant14:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant13:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant12:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant11:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant10:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant09:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant08:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant07:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant06:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant05:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant04:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant03:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant02:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`},variant01:(_e,et)=>{var rt,st;return`${(st=(rt=_e.head)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}`}},hairAccessories={flowers:(_e,et)=>``},head={variant04:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant03:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant02:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`},variant01:(_e,et)=>{var rt,st,ct,ut,ft,gt,xt,$t,_t,wt,Tt,Rt,It,At,jt,Nt;return`${(st=(rt=_e.eyes)===null||rt===void 0?void 0:rt.value(_e,et))!==null&&st!==void 0?st:""}${(ut=(ct=_e.eyebrows)===null||ct===void 0?void 0:ct.value(_e,et))!==null&&ut!==void 0?ut:""}${(gt=(ft=_e.earrings)===null||ft===void 0?void 0:ft.value(_e,et))!==null&>!==void 0?gt:""}${($t=(xt=_e.freckles)===null||xt===void 0?void 0:xt.value(_e,et))!==null&&$t!==void 0?$t:""}${(wt=(_t=_e.nose)===null||_t===void 0?void 0:_t.value(_e,et))!==null&&wt!==void 0?wt:""}${(Rt=(Tt=_e.beard)===null||Tt===void 0?void 0:Tt.value(_e,et))!==null&&Rt!==void 0?Rt:""}${(At=(It=_e.mouth)===null||It===void 0?void 0:It.value(_e,et))!==null&&At!==void 0?At:""}${(Nt=(jt=_e.glasses)===null||jt===void 0?void 0:jt.value(_e,et))!==null&&Nt!==void 0?Nt:""}`}},eyes={variant24:(_e,et)=>``,variant23:(_e,et)=>``,variant22:(_e,et)=>``,variant21:(_e,et)=>``,variant20:(_e,et)=>``,variant19:(_e,et)=>``,variant18:(_e,et)=>``,variant17:(_e,et)=>``,variant16:(_e,et)=>``,variant15:(_e,et)=>``,variant14:(_e,et)=>``,variant13:(_e,et)=>``,variant12:(_e,et)=>``,variant11:(_e,et)=>``,variant10:(_e,et)=>``,variant09:(_e,et)=>``,variant08:(_e,et)=>``,variant07:(_e,et)=>``,variant06:(_e,et)=>``,variant05:(_e,et)=>``,variant04:(_e,et)=>``,variant03:(_e,et)=>``,variant02:(_e,et)=>``,variant01:(_e,et)=>``},eyebrows={variant13:(_e,et)=>``,variant12:(_e,et)=>``,variant11:(_e,et)=>``,variant10:(_e,et)=>``,variant09:(_e,et)=>``,variant08:(_e,et)=>``,variant07:(_e,et)=>``,variant06:(_e,et)=>``,variant05:(_e,et)=>``,variant04:(_e,et)=>``,variant03:(_e,et)=>``,variant02:(_e,et)=>``,variant01:(_e,et)=>``},earrings={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``},freckles={variant01:(_e,et)=>``},nose={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``,variant04:(_e,et)=>``,variant05:(_e,et)=>``,variant06:(_e,et)=>``},beard={variant01:(_e,et)=>``,variant02:(_e,et)=>``},mouth={happy01:(_e,et)=>``,happy02:(_e,et)=>``,happy03:(_e,et)=>``,happy04:(_e,et)=>``,happy05:(_e,et)=>``,happy06:(_e,et)=>``,happy07:(_e,et)=>``,happy08:(_e,et)=>``,happy18:(_e,et)=>``,happy09:(_e,et)=>``,happy10:(_e,et)=>``,happy11:(_e,et)=>``,happy12:(_e,et)=>``,happy13:(_e,et)=>``,happy14:(_e,et)=>``,happy17:(_e,et)=>``,happy15:(_e,et)=>``,happy16:(_e,et)=>``,sad01:(_e,et)=>``,sad02:(_e,et)=>``,sad03:(_e,et)=>``,sad04:(_e,et)=>``,sad05:(_e,et)=>``,sad06:(_e,et)=>``,sad07:(_e,et)=>``,sad08:(_e,et)=>``,sad09:(_e,et)=>``},glasses={variant01:(_e,et)=>``,variant02:(_e,et)=>``,variant03:(_e,et)=>``,variant04:(_e,et)=>``,variant05:(_e,et)=>``},components=Object.defineProperty({__proto__:null,beard,earrings,eyebrows,eyes,freckles,glasses,hair,hairAccessories,head,mouth,nose},Symbol.toStringTag,{value:"Module"});function pickComponent({prng:_e,group:et,values:rt=[]}){const st=components,ct=_e.pick(rt);if(ct&&st[et][ct])return{name:ct,value:st[et][ct]}}function getComponents({prng:_e,options:et}){const rt=pickComponent({prng:_e,group:"hair",values:et.hair}),st=pickComponent({prng:_e,group:"hairAccessories",values:et.hairAccessories}),ct=pickComponent({prng:_e,group:"head",values:et.head}),ut=pickComponent({prng:_e,group:"eyes",values:et.eyes}),ft=pickComponent({prng:_e,group:"eyebrows",values:et.eyebrows}),gt=pickComponent({prng:_e,group:"earrings",values:et.earrings}),xt=pickComponent({prng:_e,group:"freckles",values:et.freckles}),$t=pickComponent({prng:_e,group:"nose",values:et.nose}),_t=pickComponent({prng:_e,group:"beard",values:et.beard}),wt=pickComponent({prng:_e,group:"mouth",values:et.mouth}),Tt=pickComponent({prng:_e,group:"glasses",values:et.glasses});return{hair:rt,hairAccessories:_e.bool(et.hairAccessoriesProbability)?st:void 0,head:ct,eyes:ut,eyebrows:ft,earrings:_e.bool(et.earringsProbability)?gt:void 0,freckles:_e.bool(et.frecklesProbability)?xt:void 0,nose:$t,beard:_e.bool(et.beardProbability)?_t:void 0,mouth:wt,glasses:_e.bool(et.glassesProbability)?Tt:void 0}}function convertColor(_e){return _e==="transparent"?_e:`#${_e}`}function getColors({prng:_e,options:et}){var rt,st,ct,ut,ft,gt,xt,$t,_t,wt;return{hair:convertColor(_e.pick((rt=et.hairColor)!==null&&rt!==void 0?rt:[],"transparent")),skin:convertColor(_e.pick((st=et.skinColor)!==null&&st!==void 0?st:[],"transparent")),earrings:convertColor(_e.pick((ct=et.earringsColor)!==null&&ct!==void 0?ct:[],"transparent")),eyebrows:convertColor(_e.pick((ut=et.eyebrowsColor)!==null&&ut!==void 0?ut:[],"transparent")),eyes:convertColor(_e.pick((ft=et.eyesColor)!==null&&ft!==void 0?ft:[],"transparent")),freckles:convertColor(_e.pick((gt=et.frecklesColor)!==null&>!==void 0?gt:[],"transparent")),glasses:convertColor(_e.pick((xt=et.glassesColor)!==null&&xt!==void 0?xt:[],"transparent")),mouth:convertColor(_e.pick(($t=et.mouthColor)!==null&&$t!==void 0?$t:[],"transparent")),nose:convertColor(_e.pick((_t=et.noseColor)!==null&&_t!==void 0?_t:[],"transparent")),hairAccessories:convertColor(_e.pick((wt=et.hairAccessoriesColor)!==null&&wt!==void 0?wt:[],"transparent"))}}function onPostCreate({prng:_e,options:et,components:rt,colors:st}){rt.beard&&st.hair===st.mouth&&(st.mouth="#ffffff")}const schema={$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"]}}},meta={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/"}},create=({prng:_e,options:et})=>{var rt,st,ct,ut;const ft=getComponents({prng:_e,options:et}),gt=getColors({prng:_e,options:et});return onPostCreate({prng:_e,options:et,components:ft,colors:gt}),{attributes:{viewBox:"0 0 980 980",fill:"none","shape-rendering":"auto"},body:`${(st=(rt=ft.hair)===null||rt===void 0?void 0:rt.value(ft,gt))!==null&&st!==void 0?st:""}${(ut=(ct=ft.hairAccessories)===null||ct===void 0?void 0:ct.value(ft,gt))!==null&&ut!==void 0?ut:""}`,extra:()=>({...Object.entries(ft).reduce((xt,[$t,_t])=>(xt[$t]=_t==null?void 0:_t.name,xt),{}),...Object.entries(gt).reduce((xt,[$t,_t])=>(xt[`${$t}Color`]=_t,xt),{})})}},lorelei=Object.defineProperty({__proto__:null,create,meta,schema},Symbol.toStringTag,{value:"Module"}),ThreadList=()=>{const{isDarkMode:_e}=reactExports.useContext(AppContext$2),et=useNetworkStatus(),{threads:rt,currentThread:st,addThreads:ct,setCurrentThread:ut}=useThreadStore(At=>({threads:At.threads,currentThread:At.currentThread,addThreads:At.addThreads,setCurrentThread:At.setCurrentThread})),ft=async()=>{const At=await queryThreads({pageNumber:0,pageSize:10});console.log("queryThreads: ",At),At.data.code===200?(ct(At.data.data.content),At.data.data.empty):At.data.code===601||message.error(At.data.message)};reactExports.useEffect(()=>{ft()},[]),reactExports.useEffect(()=>{et&&console.log("TODO: ✅网络正常,需要重新拉取聊天记录")},[et]);const gt=At=>{console.log("handleSelectThreadClick",At.uid),ut(At)},xt=At=>typeof At=="string"?hooks(At).format("MM-DD HH:mm"):At,$t="thread_list_item",{show:_t}=Fe({id:$t});function wt(At,jt){console.log("handleContextMenu:",At," item:",jt),ut(jt),_t({event:At,props:{key:jt.uid}})}const Tt=({id:At,event:jt,props:Nt})=>{switch(At){case"copy":console.log(jt,Nt);break;case"cut":console.log(jt,Nt);break;case"reload":console.log(jt,Nt);break}},Rt=At=>createAvatar(lorelei,{seed:At,size:40}).toDataUriSync(),It=At=>At.user.avatar===null||At.user.avatar===void 0?jsxRuntimeExports.jsx("img",{src:Rt(At.user.uid),alt:"Avatar"}):At.user.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:Rt(At.user.uid),alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:At.user.avatar});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{padding:10}}),et?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(Alert$1,{message:"网络断开",banner:!0}),rt.length>0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:rt.map(At=>jsxRuntimeExports.jsxs("li",{className:st.uid===At.uid?_e?"list-item-dark dark-active":"list-item active":_e?"list-item-dark":"list-item",onClick:()=>gt(At),onContextMenu:()=>wt(event,At),children:[jsxRuntimeExports.jsx("div",{className:"list-left",children:jsxRuntimeExports.jsx(Badge$1,{count:st.uid===At.uid?0:At.unreadCount,children:It(At)})}),jsxRuntimeExports.jsxs("div",{className:"list-right",children:[jsxRuntimeExports.jsxs("div",{className:"top",children:[jsxRuntimeExports.jsx("span",{className:"nickname",children:At.user.nickname.startsWith(I18_PREFIX)?jsxRuntimeExports.jsx(FormattedMessage$1,{id:At.user.nickname,defaultMessage:At.user.nickname}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",At.user.nickname]})}),jsxRuntimeExports.jsx("span",{className:"timestamp",children:xt(At.createdAt)})]}),jsxRuntimeExports.jsx("div",{className:"bottom",children:jsxRuntimeExports.jsx("span",{className:"content",children:At.content})})]})]},At.uid))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:"暂无会话"})}),jsxRuntimeExports.jsxs(it,{id:$t,children:[jsxRuntimeExports.jsx(pt,{id:"copy",onClick:Tt,children:"Copy"}),jsxRuntimeExports.jsx(pt,{id:"cut",onClick:Tt,children:"Cut"}),jsxRuntimeExports.jsx(Et,{}),jsxRuntimeExports.jsx(Kt,{label:"Foobar",children:jsxRuntimeExports.jsx(pt,{id:"reload",onClick:Tt,children:"Reload"})})]})]})},{Sider:Sider$4,Content:Content$4}=Layout$2,Home=()=>{const{leftSiderStyle:_e,leftSiderWidth:et,rightSiderStyle:rt}=useStyle(),[st,ct]=reactExports.useState(!1);return reactExports.useEffect(()=>(console.log("thread home useEffect"),emitter.on(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL,ut=>{console.log("SWITCH_CHAT_RIGHT_PANEL",ut),ct(ut)}),()=>{console.log("thread home useEffect return"),emitter.off(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL)}),[]),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$4,{style:_e,width:et,children:jsxRuntimeExports.jsx(ThreadList,{})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Content$4,{children:jsxRuntimeExports.jsx(ChatPage,{})}),st&&jsxRuntimeExports.jsx(Sider$4,{width:"35%",style:rt,children:jsxRuntimeExports.jsx(RightPanel,{})})]})]})};function useWebNotification(){const[_e,et]=reactExports.useState(!1);return reactExports.useEffect(()=>{window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(rt){rt==="granted"?(console.log("Notification permission granted."),et(!0)):(console.log("notification denied"),et(!1))}):(console.log("已经授权或浏览器不支持通知"),et(!0))},[]),{isNotificationGranted:_e}}const useOrgStore=create$4()(devtools(persist(immer((_e,et)=>({orgTree:[],orgCurrent:{uid:"",name:"",avatar:"",description:""},setOrgCurrent(rt){_e({orgCurrent:rt})},resetOrg:()=>_e({orgCurrent:{uid:"",name:"",avatar:"",description:""}})})),{name:ORGANIZTION_STORE})));function r$1(_e){var et,rt,st="";if(typeof _e=="string"||typeof _e=="number")st+=_e;else if(typeof _e=="object")if(Array.isArray(_e)){var ct=_e.length;for(et=0;ettypeof _e=="number"&&!isNaN(_e),d=_e=>typeof _e=="string",u=_e=>typeof _e=="function",p=_e=>d(_e)||u(_e)?_e:null,m=_e=>reactExports.isValidElement(_e)||d(_e)||u(_e)||c(_e);function f(_e,et,rt){rt===void 0&&(rt=300);const{scrollHeight:st,style:ct}=_e;requestAnimationFrame(()=>{ct.minHeight="initial",ct.height=st+"px",ct.transition=`all ${rt}ms`,requestAnimationFrame(()=>{ct.height="0",ct.padding="0",ct.margin="0",setTimeout(et,rt)})})}function g(_e){let{enter:et,exit:rt,appendPosition:st=!1,collapse:ct=!0,collapseDuration:ut=300}=_e;return function(ft){let{children:gt,position:xt,preventExitTransition:$t,done:_t,nodeRef:wt,isIn:Tt,playToast:Rt}=ft;const It=st?`${et}--${xt}`:et,At=st?`${rt}--${xt}`:rt,jt=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const Nt=wt.current,kt=It.split(" "),Ft=Ht=>{Ht.target===wt.current&&(Rt(),Nt.removeEventListener("animationend",Ft),Nt.removeEventListener("animationcancel",Ft),jt.current===0&&Ht.type!=="animationcancel"&&Nt.classList.remove(...kt))};Nt.classList.add(...kt),Nt.addEventListener("animationend",Ft),Nt.addEventListener("animationcancel",Ft)},[]),reactExports.useEffect(()=>{const Nt=wt.current,kt=()=>{Nt.removeEventListener("animationend",kt),ct?f(Nt,_t,ut):_t()};Tt||($t?kt():(jt.current=1,Nt.className+=` ${At}`,Nt.addEventListener("animationend",kt)))},[Tt]),React$1.createElement(React$1.Fragment,null,gt)}}function y(_e,et){return _e!=null?{content:_e.content,containerId:_e.props.containerId,id:_e.props.toastId,theme:_e.props.theme,type:_e.props.type,data:_e.props.data||{},isLoading:_e.props.isLoading,icon:_e.props.icon,status:et}:{}}const v=new Map;let h=[];const T=new Set,E=_e=>T.forEach(et=>et(_e)),b=()=>v.size>0;function I(_e,et){var rt;if(et)return!((rt=v.get(et))==null||!rt.isToastActive(_e));let st=!1;return v.forEach(ct=>{ct.isToastActive(_e)&&(st=!0)}),st}function _(_e,et){m(_e)&&(b()||h.push({content:_e,options:et}),v.forEach(rt=>{rt.buildToast(_e,et)}))}function C(_e,et){v.forEach(rt=>{et!=null&&et!=null&&et.containerId?(et==null?void 0:et.containerId)===rt.id&&rt.toggle(_e,et==null?void 0:et.id):rt.toggle(_e,et==null?void 0:et.id)})}function L(_e){const{subscribe:et,getSnapshot:rt,setProps:st}=reactExports.useRef(function(ut){const ft=ut.containerId||1;return{subscribe(gt){const xt=function(_t,wt,Tt){let Rt=1,It=0,At=[],jt=[],Nt=[],kt=wt;const Ft=new Map,Ht=new Set,Wt=()=>{Nt=Array.from(Ft.values()),Ht.forEach(Gt=>Gt())},Vt=Gt=>{jt=Gt==null?[]:jt.filter(Xt=>Xt!==Gt),Wt()},qt=Gt=>{const{toastId:Xt,onOpen:Zt,updateId:lr,children:er}=Gt.props,cr=lr==null;Gt.staleId&&Ft.delete(Gt.staleId),Ft.set(Xt,Gt),jt=[...jt,Gt.props.toastId].filter(ur=>ur!==Gt.staleId),Wt(),Tt(y(Gt,cr?"added":"updated")),cr&&u(Zt)&&Zt(reactExports.isValidElement(er)&&er.props)};return{id:_t,props:kt,observe:Gt=>(Ht.add(Gt),()=>Ht.delete(Gt)),toggle:(Gt,Xt)=>{Ft.forEach(Zt=>{Xt!=null&&Xt!==Zt.props.toastId||u(Zt.toggle)&&Zt.toggle(Gt)})},removeToast:Vt,toasts:Ft,clearQueue:()=>{It-=At.length,At=[]},buildToast:(Gt,Xt)=>{if((mr=>{let{containerId:Sr,toastId:Tr,updateId:jr}=mr;const Or=Sr?Sr!==_t:_t!==1,_r=Ft.has(Tr)&&jr==null;return Or||_r})(Xt))return;const{toastId:Zt,updateId:lr,data:er,staleId:cr,delay:ur}=Xt,pr=()=>{Vt(Zt)},hr=lr==null;hr&&It++;const fr={...kt,style:kt.toastStyle,key:Rt++,...Object.fromEntries(Object.entries(Xt).filter(mr=>{let[Sr,Tr]=mr;return Tr!=null})),toastId:Zt,updateId:lr,data:er,closeToast:pr,isIn:!1,className:p(Xt.className||kt.toastClassName),bodyClassName:p(Xt.bodyClassName||kt.bodyClassName),progressClassName:p(Xt.progressClassName||kt.progressClassName),autoClose:!Xt.isLoading&&(dr=Xt.autoClose,yr=kt.autoClose,dr===!1||c(dr)&&dr>0?dr:yr),deleteToast(){const mr=Ft.get(Zt),{onClose:Sr,children:Tr}=mr.props;u(Sr)&&Sr(reactExports.isValidElement(Tr)&&Tr.props),Tt(y(mr,"removed")),Ft.delete(Zt),It--,It<0&&(It=0),At.length>0?qt(At.shift()):Wt()}};var dr,yr;fr.closeButton=kt.closeButton,Xt.closeButton===!1||m(Xt.closeButton)?fr.closeButton=Xt.closeButton:Xt.closeButton===!0&&(fr.closeButton=!m(kt.closeButton)||kt.closeButton);let $r=Gt;reactExports.isValidElement(Gt)&&!d(Gt.type)?$r=reactExports.cloneElement(Gt,{closeToast:pr,toastProps:fr,data:er}):u(Gt)&&($r=Gt({closeToast:pr,toastProps:fr,data:er}));const Er={content:$r,props:fr,staleId:cr};kt.limit&&kt.limit>0&&It>kt.limit&&hr?At.push(Er):c(ur)?setTimeout(()=>{qt(Er)},ur):qt(Er)},setProps(Gt){kt=Gt},setToggle:(Gt,Xt)=>{Ft.get(Gt).toggle=Xt},isToastActive:Gt=>jt.some(Xt=>Xt===Gt),getSnapshot:()=>kt.newestOnTop?Nt.reverse():Nt}}(ft,ut,E);v.set(ft,xt);const $t=xt.observe(gt);return h.forEach(_t=>_(_t.content,_t.options)),h=[],()=>{$t(),v.delete(ft)}},setProps(gt){var xt;(xt=v.get(ft))==null||xt.setProps(gt)},getSnapshot(){var gt;return(gt=v.get(ft))==null?void 0:gt.getSnapshot()}}}(_e)).current;st(_e);const ct=reactExports.useSyncExternalStore(et,rt,rt);return{getToastToRender:function(ut){if(!ct)return[];const ft=new Map;return ct.forEach(gt=>{const{position:xt}=gt.props;ft.has(xt)||ft.set(xt,[]),ft.get(xt).push(gt)}),Array.from(ft,gt=>ut(gt[0],gt[1]))},isToastActive:I,count:ct==null?void 0:ct.length}}function N(_e){const[et,rt]=reactExports.useState(!1),[st,ct]=reactExports.useState(!1),ut=reactExports.useRef(null),ft=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:gt,pauseOnHover:xt,closeToast:$t,onClick:_t,closeOnClick:wt}=_e;var Tt,Rt;function It(){rt(!0)}function At(){rt(!1)}function jt(Ft){const Ht=ut.current;ft.canDrag&&Ht&&(ft.didMove=!0,et&&At(),ft.delta=_e.draggableDirection==="x"?Ft.clientX-ft.start:Ft.clientY-ft.start,ft.start!==Ft.clientX&&(ft.canCloseOnClick=!1),Ht.style.transform=`translate3d(${_e.draggableDirection==="x"?`${ft.delta}px, var(--y)`:`0, calc(${ft.delta}px + var(--y))`},0)`,Ht.style.opacity=""+(1-Math.abs(ft.delta/ft.removalDistance)))}function Nt(){document.removeEventListener("pointermove",jt),document.removeEventListener("pointerup",Nt);const Ft=ut.current;if(ft.canDrag&&ft.didMove&&Ft){if(ft.canDrag=!1,Math.abs(ft.delta)>ft.removalDistance)return ct(!0),_e.closeToast(),void _e.collapseAll();Ft.style.transition="transform 0.2s, opacity 0.2s",Ft.style.removeProperty("transform"),Ft.style.removeProperty("opacity")}}(Rt=v.get((Tt={id:_e.toastId,containerId:_e.containerId,fn:rt}).containerId||1))==null||Rt.setToggle(Tt.id,Tt.fn),reactExports.useEffect(()=>{if(_e.pauseOnFocusLoss)return document.hasFocus()||At(),window.addEventListener("focus",It),window.addEventListener("blur",At),()=>{window.removeEventListener("focus",It),window.removeEventListener("blur",At)}},[_e.pauseOnFocusLoss]);const kt={onPointerDown:function(Ft){if(_e.draggable===!0||_e.draggable===Ft.pointerType){ft.didMove=!1,document.addEventListener("pointermove",jt),document.addEventListener("pointerup",Nt);const Ht=ut.current;ft.canCloseOnClick=!0,ft.canDrag=!0,Ht.style.transition="none",_e.draggableDirection==="x"?(ft.start=Ft.clientX,ft.removalDistance=Ht.offsetWidth*(_e.draggablePercent/100)):(ft.start=Ft.clientY,ft.removalDistance=Ht.offsetHeight*(_e.draggablePercent===80?1.5*_e.draggablePercent:_e.draggablePercent)/100)}},onPointerUp:function(Ft){const{top:Ht,bottom:Wt,left:Vt,right:qt}=ut.current.getBoundingClientRect();Ft.nativeEvent.type!=="touchend"&&_e.pauseOnHover&&Ft.clientX>=Vt&&Ft.clientX<=qt&&Ft.clientY>=Ht&&Ft.clientY<=Wt?At():It()}};return gt&&xt&&(kt.onMouseEnter=At,_e.stacked||(kt.onMouseLeave=It)),wt&&(kt.onClick=Ft=>{_t&&_t(Ft),ft.canCloseOnClick&&$t()}),{playToast:It,pauseToast:At,isRunning:et,preventExitTransition:st,toastRef:ut,eventHandlers:kt}}function $(_e){let{delay:et,isRunning:rt,closeToast:st,type:ct="default",hide:ut,className:ft,style:gt,controlledProgress:xt,progress:$t,rtl:_t,isIn:wt,theme:Tt}=_e;const Rt=ut||xt&&$t===0,It={...gt,animationDuration:`${et}ms`,animationPlayState:rt?"running":"paused"};xt&&(It.transform=`scaleX(${$t})`);const At=clsx("Toastify__progress-bar",xt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Tt}`,`Toastify__progress-bar--${ct}`,{"Toastify__progress-bar--rtl":_t}),jt=u(ft)?ft({rtl:_t,type:ct,defaultClassName:At}):clsx(At,ft),Nt={[xt&&$t>=1?"onTransitionEnd":"onAnimationEnd"]:xt&&$t<1?null:()=>{wt&&st()}};return React$1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Rt},React$1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Tt} Toastify__progress-bar--${ct}`}),React$1.createElement("div",{role:"progressbar","aria-hidden":Rt?"true":"false","aria-label":"notification timer",className:jt,style:It,...Nt}))}let w=1;const k=()=>""+w++;function P(_e){return _e&&(d(_e.toastId)||c(_e.toastId))?_e.toastId:k()}function M(_e,et){return _(_e,et),et.toastId}function x(_e,et){return{...et,type:et&&et.type||_e,toastId:P(et)}}function A(_e){return(et,rt)=>M(et,x(_e,rt))}function B(_e,et){return M(_e,x("default",et))}B.loading=(_e,et)=>M(_e,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...et})),B.promise=function(_e,et,rt){let st,{pending:ct,error:ut,success:ft}=et;ct&&(st=d(ct)?B.loading(ct,rt):B.loading(ct.render,{...rt,...ct}));const gt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},xt=(_t,wt,Tt)=>{if(wt==null)return void B.dismiss(st);const Rt={type:_t,...gt,...rt,data:Tt},It=d(wt)?{render:wt}:wt;return st?B.update(st,{...Rt,...It}):B(It.render,{...Rt,...It}),Tt},$t=u(_e)?_e():_e;return $t.then(_t=>xt("success",ft,_t)).catch(_t=>xt("error",ut,_t)),$t},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(_e,et)=>M(_e,x("default",{theme:"dark",...et})),B.dismiss=function(_e){(function(et){var rt;if(b()){if(et==null||d(rt=et)||c(rt))v.forEach(ct=>{ct.removeToast(et)});else if(et&&("containerId"in et||"id"in et)){var st;(st=v.get(et.containerId))!=null&&st.removeToast(et.id)||v.forEach(ct=>{ct.removeToast(et.id)})}}else h=h.filter(ct=>et!=null&&ct.options.toastId!==et)})(_e)},B.clearWaitingQueue=function(_e){_e===void 0&&(_e={}),v.forEach(et=>{!et.props.limit||_e.containerId&&et.id!==_e.containerId||et.clearQueue()})},B.isActive=I,B.update=function(_e,et){et===void 0&&(et={});const rt=((st,ct)=>{var ut;let{containerId:ft}=ct;return(ut=v.get(ft||1))==null?void 0:ut.toasts.get(st)})(_e,et);if(rt){const{props:st,content:ct}=rt,ut={delay:100,...st,...et,toastId:et.toastId||_e,updateId:k()};ut.toastId!==_e&&(ut.staleId=_e);const ft=ut.render||ct;delete ut.render,M(ft,ut)}},B.done=_e=>{B.update(_e,{progress:1})},B.onChange=function(_e){return T.add(_e),()=>{T.delete(_e)}},B.play=_e=>C(!0,_e),B.pause=_e=>C(!1,_e);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=_e=>{let{theme:et,type:rt,isLoading:st,...ct}=_e;return React$1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:et==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...ct})},z={info:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React$1.createElement("div",{className:"Toastify__spinner"})}},R=_e=>{const{isRunning:et,preventExitTransition:rt,toastRef:st,eventHandlers:ct,playToast:ut}=N(_e),{closeButton:ft,children:gt,autoClose:xt,onClick:$t,type:_t,hideProgressBar:wt,closeToast:Tt,transition:Rt,position:It,className:At,style:jt,bodyClassName:Nt,bodyStyle:kt,progressClassName:Ft,progressStyle:Ht,updateId:Wt,role:Vt,progress:qt,rtl:Gt,toastId:Xt,deleteToast:Zt,isIn:lr,isLoading:er,closeOnClick:cr,theme:ur}=_e,pr=clsx("Toastify__toast",`Toastify__toast-theme--${ur}`,`Toastify__toast--${_t}`,{"Toastify__toast--rtl":Gt},{"Toastify__toast--close-on-click":cr}),hr=u(At)?At({rtl:Gt,position:It,type:_t,defaultClassName:pr}):clsx(pr,At),fr=function(Er){let{theme:mr,type:Sr,isLoading:Tr,icon:jr}=Er,Or=null;const _r={theme:mr,type:Sr};return jr===!1||(u(jr)?Or=jr({..._r,isLoading:Tr}):reactExports.isValidElement(jr)?Or=reactExports.cloneElement(jr,_r):Tr?Or=z.spinner():(Cr=>Cr in z)(Sr)&&(Or=z[Sr](_r))),Or}(_e),dr=!!qt||!xt,yr={closeToast:Tt,type:_t,theme:ur};let $r=null;return ft===!1||($r=u(ft)?ft(yr):reactExports.isValidElement(ft)?reactExports.cloneElement(ft,yr):function(Er){let{closeToast:mr,theme:Sr,ariaLabel:Tr="close"}=Er;return React$1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Sr}`,type:"button",onClick:jr=>{jr.stopPropagation(),mr(jr)},"aria-label":Tr},React$1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(yr)),React$1.createElement(Rt,{isIn:lr,done:Zt,position:It,preventExitTransition:rt,nodeRef:st,playToast:ut},React$1.createElement("div",{id:Xt,onClick:$t,"data-in":lr,className:hr,...ct,style:jt,ref:st},React$1.createElement("div",{...lr&&{role:Vt},className:u(Nt)?Nt({type:_t}):clsx("Toastify__toast-body",Nt),style:kt},fr!=null&&React$1.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!er})},fr),React$1.createElement("div",null,gt)),$r,React$1.createElement($,{...Wt&&!dr?{key:`pb-${Wt}`}:{},rtl:Gt,theme:ur,delay:xt,isRunning:et,isIn:lr,closeToast:Tt,hide:wt,type:_t,style:Ht,className:Ft,controlledProgress:dr,progress:qt||0})))},S=function(_e,et){return et===void 0&&(et=!1),{enter:`Toastify--animate Toastify__${_e}-enter`,exit:`Toastify--animate Toastify__${_e}-exit`,appendPosition:et}},H=g(S("bounce",!0));g(S("slide",!0));g(S("zoom"));g(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(_e){let et={...q,..._e};const rt=_e.stacked,[st,ct]=reactExports.useState(!0),ut=reactExports.useRef(null),{getToastToRender:ft,isToastActive:gt,count:xt}=L(et),{className:$t,style:_t,rtl:wt,containerId:Tt}=et;function Rt(At){const jt=clsx("Toastify__toast-container",`Toastify__toast-container--${At}`,{"Toastify__toast-container--rtl":wt});return u($t)?$t({position:At,rtl:wt,defaultClassName:jt}):clsx(jt,p($t))}function It(){rt&&(ct(!0),B.play())}return O(()=>{if(rt){var At;const jt=ut.current.querySelectorAll('[data-in="true"]'),Nt=12,kt=(At=et.position)==null?void 0:At.includes("top");let Ft=0,Ht=0;Array.from(jt).reverse().forEach((Wt,Vt)=>{const qt=Wt;qt.classList.add("Toastify__toast--stacked"),Vt>0&&(qt.dataset.collapsed=`${st}`),qt.dataset.pos||(qt.dataset.pos=kt?"top":"bot");const Gt=Ft*(st?.2:1)+(st?0:Nt*Vt);qt.style.setProperty("--y",`${kt?Gt:-1*Gt}px`),qt.style.setProperty("--g",`${Nt}`),qt.style.setProperty("--s",""+(1-(st?Ht:0))),Ft+=qt.offsetHeight,Ht+=.025})}},[st,xt,rt]),React$1.createElement("div",{ref:ut,className:"Toastify",id:Tt,onMouseEnter:()=>{rt&&(ct(!1),B.pause())},onMouseLeave:It},ft((At,jt)=>{const Nt=jt.length?{..._t}:{..._t,pointerEvents:"none"};return React$1.createElement("div",{className:Rt(At),style:Nt,key:`container-${At}`},jt.map(kt=>{let{content:Ft,props:Ht}=kt;return React$1.createElement(R,{...Ht,stacked:rt,collapseAll:It,isIn:gt(Ht.toastId,Ht.containerId),style:Ht.style,key:`toast-${Ht.key}`},Ft)}))}))}const useContactStore=create$4()(devtools(persist(immer((_e,et)=>({devices:[],currentContact:{uid:"",nickname:"",avatar:"",type:"device"},setCurrentContact:rt=>{_e({currentContact:rt})},resetContactInfo(){_e({currentContact:{uid:""}})}})),{name:CONTACT_STORE}))),useMemberStore=create$4()(devtools(persist(immer((_e,et)=>({members:[],currentMember:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},addMembers:rt=>{const st=new Set(et().members.map(ut=>ut.uid)),ct=rt.filter(ut=>!st.has(ut.uid));_e({members:[...et().members,...ct]})},setCurrentMember(rt){_e({currentMember:rt})},setMemberResult:rt=>{et().addMembers(rt.data.content),_e({memberResult:rt})},resetMembers:()=>_e({members:[],currentMember:{nickname:"",user:{uid:"",avatar:""}}})})),{name:MEMBER_STORE}))),ContactDetail=()=>{const _e=useNavigate(),et=useContactStore(wt=>wt.currentContact),rt=useMemberStore(wt=>wt.currentMember),st=useThreadStore(wt=>wt.addThread),ct=useThreadStore(wt=>wt.setCurrentThread),ut=useSettingsStore(wt=>wt.setCurrentMenu),ft=[{key:"1",label:"nickname",children:et.nickname}],gt=[{key:"1",label:"nickname",children:rt.nickname},{key:"2",label:"email",children:rt.email},{key:"3",label:"jobNo",children:rt.jobNo},{key:"4",label:"seatNo",children:rt.seatNo},{key:"5",label:"telephone",children:rt.telephone}],xt=async()=>{if(console.log("startChat"),et.type==="device"){console.log("startChat device");const wt={uid:et.uid,topic:et.uid,content:"",type:THREAD_LOCAL,user:{uid:et.uid,nickname:et.nickname,avatar:et.avatar}};st(wt),ct(wt),ut("chat"),_e("/chat")}else{const wt=await startThread({user:{uid:rt.user.uid,nickname:rt.nickname,avatar:rt.user.avatar},topic:rt.user.uid,content:"",type:THREAD_MEMBER,extra:""});console.log("thread",wt.data),wt.data.code===200?(st(wt.data.data),ct(wt.data.data),ut("chat"),_e("/chat")):message.error(wt.data.message)}},$t=wt=>createAvatar(lorelei,{seed:wt,size:40}).toDataUriSync(),_t=()=>et.avatar===null||et.avatar===void 0?jsxRuntimeExports.jsx("img",{src:$t(et.uid),alt:"Avatar"}):et.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:$t(et.uid),alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:et.avatar});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",marginTop:"20px"},children:[et.type==="device"?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_t()}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Avatar$2,{size:50,src:rt.user.avatar})}),jsxRuntimeExports.jsx(Descriptions$1,{style:{width:400,height:350,marginLeft:"20%",marginTop:"20px"},bordered:!0,column:1,items:et.type==="device"?ft:gt}),jsxRuntimeExports.jsx(Button$3,{onClick:xt,children:"Start Chat"})]})})};async function queryAllMembers(_e){return request("/api/v1/mem/all",{method:"GET",params:{..._e,client:HTTP_CLIENT}})}const useDeviceStore=create$4()(devtools(persist(immer((_e,et)=>({devices:[],currentDevice:{uid:"",nickname:"",avatar:""},addDevice(rt){et().devices.find(ct=>ct.uid===rt.uid)||(console.log("addDevice",rt),_e(ct=>{ct.devices=[rt,...ct.devices]}))},setCurrentDevice:rt=>{_e({currentDevice:rt})},resetDeviceInfo(){_e({currentDevice:{uid:""}})}})),{name:DEVICE_STORE}))),MemberList=()=>{const{isDarkMode:_e}=reactExports.useContext(AppContext$2),et=useUserStore(It=>It.userInfo),{devices:rt,setCurrentDevice:st}=useDeviceStore(It=>({devices:It.devices,setCurrentDevice:It.setCurrentDevice})),{members:ct,setCurrentMember:ut,setMemberResult:ft}=useMemberStore(It=>({members:It.members,setCurrentMember:It.setCurrentMember,setMemberResult:It.setMemberResult})),{currentContact:gt,setCurrentContact:xt}=useContactStore(It=>({currentContact:It.currentContact,setCurrentContact:It.setCurrentContact})),$t=async()=>{if(et.organizations===void 0||et.organizations.length==0)return;let At={pageNumber:0,pageSize:20,orgOid:et.organizations[0]};const jt=await queryAllMembers(At);console.log("queryAllMembers:",At,jt.data),jt.data.code===200?ft(jt.data):jt.data.code===601||message.error(jt.data.message)};reactExports.useEffect(()=>{$t()},[]);const _t=It=>{console.log("handleSelectDeviceClick",It),st(It);let At={uid:It.uid,nickname:It.nickname,avatar:It.avatar,type:"device"};xt(At)},wt=It=>{console.log("handleSelectMemberClick",It.nickname),ut(It);let At={uid:It.user.uid,nickname:It.nickname,avatar:It.user.avatar,type:"member"};xt(At)},Tt=It=>createAvatar(lorelei,{seed:It,size:40}).toDataUriSync(),Rt=It=>It.avatar===null||It.avatar===void 0?jsxRuntimeExports.jsx("img",{src:Tt(It.uid),alt:"Avatar"}):It.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:Tt(It.uid),alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:It.avatar});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{padding:10}}),rt.length>0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:rt.map(It=>jsxRuntimeExports.jsxs("li",{className:gt.uid===It.uid?_e?"list-item-dark dark-active":"list-item active":_e?"list-item-dark":"list-item",onClick:()=>_t(It),children:[jsxRuntimeExports.jsx("div",{className:"list-left",children:Rt(It)}),jsxRuntimeExports.jsxs("div",{className:"list-right",children:[jsxRuntimeExports.jsxs("div",{className:"top",children:[jsxRuntimeExports.jsx("span",{className:"nickname",children:It.nickname}),jsxRuntimeExports.jsx("span",{className:"timestamp"})]}),jsxRuntimeExports.jsx("div",{className:"bottom"})]})]},It.uid))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" no devices "}),ct.length>0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ct.map(It=>jsxRuntimeExports.jsxs("li",{className:gt.uid===It.uid?_e?"list-item-dark dark-active":"list-item active":_e?"list-item-dark":"list-item",onClick:()=>wt(It),children:[jsxRuntimeExports.jsx("div",{className:"list-left",children:jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:It.user.avatar})}),jsxRuntimeExports.jsxs("div",{className:"list-right",children:[jsxRuntimeExports.jsxs("div",{className:"top",children:[jsxRuntimeExports.jsx("span",{className:"nickname",children:It.user.nickname}),jsxRuntimeExports.jsx("span",{className:"timestamp"})]}),jsxRuntimeExports.jsx("div",{className:"bottom",children:jsxRuntimeExports.jsx("span",{className:"content",children:It.user.description})})]})]},It.uid))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})]})},{Sider:Sider$3,Header:Header$3,Content:Content$3}=Layout$2,Contact=()=>{const{headerStyle:_e,leftSiderStyle:et,leftSiderWidth:rt,contentStyle:st}=useStyle();return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$3,{style:et,width:rt,children:jsxRuntimeExports.jsx(MemberList,{})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$3,{style:_e,children:"通讯录"}),jsxRuntimeExports.jsx(Content$3,{style:st,children:jsxRuntimeExports.jsx(ContactDetail,{})})]})]})},{Header:Header$2,Sider:Sider$2,Content:Content$2}=Layout$2,leftMenuItems$2=[{label:"公共",key:"server",children:[{label:"机器人1",key:"xinxixitongxiangmuguanlishi"}]},{label:"我的",key:"mine",children:[{label:"机器人2",key:"xitongjichengxiangmuguanligongchengshi"}]}],contentStyle={minHeight:120},Robot=()=>{const{headerStyle:_e,leftSiderStyle:et,leftSiderWidth:rt}=useStyle();reactExports.useEffect(()=>{},[]);const st=ct=>{console.log("menu click ",ct)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$2,{style:et,width:rt,children:leftMenuItems$2.length>0?jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:st,defaultSelectedKeys:["xinxixitongxiangmuguanlishi"],defaultOpenKeys:["server","mine"],items:leftMenuItems$2}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:"empty"})})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$2,{style:_e,children:"AI助手"}),jsxRuntimeExports.jsx(Content$2,{style:contentStyle,children:"Robot"})]})]})},{Header:Header$1,Sider:Sider$1,Content:Content$1}=Layout$2,leftMenuItems$1=[{label:"发现",key:"plugins",children:[{label:"剪贴板",key:"copyboard"},{label:"收藏",key:"collect"},{label:"任务",key:"task"},{label:"笔记",key:"note"},{label:"右键菜单",key:"rightmenu"}]}],Plugins=()=>{const _e=useNavigate(),{headerStyle:et,leftSiderStyle:rt,leftSiderWidth:st,contentStyle:ct}=useStyle(),ut=ft=>{console.log("menu click ",ft),_e("/plugins/"+ft.key)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsxs(Sider$1,{style:rt,width:st,children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{padding:10}}),jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:ut,defaultSelectedKeys:["copyboard"],defaultOpenKeys:["plugins"],items:leftMenuItems$1})]}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$1,{style:et,children:"发现"}),jsxRuntimeExports.jsx(Content$1,{style:ct,children:jsxRuntimeExports.jsx(Outlet,{})})]})]})},{Header,Footer,Sider,Content}=Layout$2,leftMenuItems=[{label:"设置",key:"setting",children:[{label:"个人信息",key:"profile"},{label:"基本设置",key:"basic"},{label:"二维码",key:"qrcode"},{label:"快捷键",key:"shortcut"}]}],Setting=()=>{const _e=useNavigate(),{headerStyle:et,leftSiderStyle:rt,leftSiderWidth:st,contentStyle:ct}=useStyle();reactExports.useEffect(()=>{},[]);const ut=ft=>{console.log("menu click ",ft),_e("/setting/"+ft.key)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider,{style:rt,width:st,children:jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:ut,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:leftMenuItems})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header,{style:et,children:"我的"}),jsxRuntimeExports.jsx(Content,{style:ct,children:jsxRuntimeExports.jsx(Outlet,{})})]})]})};async function getOrg(_e){return request("/api/v1/org/uid",{method:"GET",params:{uid:_e,client:"web"}})}const Footbar=()=>{const{isLoggedIn:_e}=reactExports.useContext(AppContext$2),[et,rt]=reactExports.useState("✅"),[st,ct]=reactExports.useState("网络正常"),ut=useNetworkStatus();reactExports.useEffect(()=>{ut?(rt("✅"),ct("网络正常")):(rt("❌"),ct("网络断开"))},[ut]);const ft=jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("p",{children:"无需登录,即可支持同一个局域网内设备之间收发消息"})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{marginLeft:"10px"},children:jsxRuntimeExports.jsx(Popover$2,{content:ft,title:"匿名状态",children:_e?"已登录":"匿名"})}),jsxRuntimeExports.jsx("div",{style:{float:"right",paddingRight:"30px"},children:jsxRuntimeExports.jsx(Tooltip$1,{title:st,children:jsxRuntimeExports.jsx("span",{children:et})})})]})},useStorage=()=>{const _e=useOrgStore(ut=>ut.resetOrg),et=useThreadStore(ut=>ut.resetThreads),rt=useMessageStore(ut=>ut.resetMessageList),st=useAuthStore(ut=>ut.removeAccessToken);return{clearStorage:()=>{_e(),et(),rt(),st()}}},a=_e=>{_e=1831565813+(_e|=0)|0;let et=Math.imul(_e^_e>>>15,1|_e);return et=et+Math.imul(et^et>>>7,61|et)^et,((et^et>>>14)>>>0)/4294967296};class e{constructor(et){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:rt,separator:st,dictionaries:ct,style:ut,seed:ft}=et;this.dictionaries=ct,this.separator=st,this.length=rt,this.style=ut,this.seed=ft}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries. -Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let et=this.seed;return this.dictionaries.slice(0,this.length).reduce((rt,st)=>{let ct;et?(ct=(ft=>{if(typeof ft=="string"){const gt=ft.split("").map($t=>$t.charCodeAt(0)).reduce(($t,_t)=>$t+_t,1),xt=Math.floor(Number(gt));return a(xt)}return a(ft)})(et),et=4294967296*ct):ct=Math.random();let ut=st[Math.floor(ct*st.length)]||"";if(this.style==="lowerCase")ut=ut.toLowerCase();else if(this.style==="capital"){const[ft,...gt]=ut.split("");ut=ft.toUpperCase()+gt.join("")}else this.style==="upperCase"&&(ut=ut.toUpperCase());return rt?`${rt}${this.separator}${ut}`:`${ut}`},"")}}const i={separator:"_",dictionaries:[]},n=_e=>{const et=[..._e&&_e.dictionaries||i.dictionaries],rt={...i,..._e,length:_e&&_e.length||et.length,dictionaries:et};if(!_e||!_e.dictionaries||!_e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new e(rt).generate()};var r=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const sendMulticastMessage=_e=>{_e===null||_e===""||(IS_ELECTRON?window.electronAPI.sendMulticastMessage(_e):console.log("not electron"))},getSystemInfo=async()=>{if(IS_ELECTRON){let _e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",_e)}else console.log("not electron")},getIpAddress=async()=>{if(IS_ELECTRON){let _e=await window.electronAPI.getIpAddress();return console.log("ipAddress:",_e),_e}else console.log("not electron")},setThemeModeElectron=_e=>{IS_ELECTRON?window.electronAPI.setThemeMode(_e):console.log("not electron")},BROWSER_ALIASES_MAP={"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"},BROWSER_MAP={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"},PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},OS_MAP={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"},ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Utils{static getFirstMatch(et,rt){const st=rt.match(et);return st&&st.length>0&&st[1]||""}static getSecondMatch(et,rt){const st=rt.match(et);return st&&st.length>1&&st[2]||""}static matchAndReturnConst(et,rt,st){if(et.test(rt))return st}static getWindowsVersionName(et){switch(et){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(et){const rt=et.split(".").splice(0,2).map(st=>parseInt(st,10)||0);if(rt.push(0),rt[0]===10)switch(rt[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(et){const rt=et.split(".").splice(0,2).map(st=>parseInt(st,10)||0);if(rt.push(0),!(rt[0]===1&&rt[1]<5)){if(rt[0]===1&&rt[1]<6)return"Cupcake";if(rt[0]===1&&rt[1]>=6)return"Donut";if(rt[0]===2&&rt[1]<2)return"Eclair";if(rt[0]===2&&rt[1]===2)return"Froyo";if(rt[0]===2&&rt[1]>2)return"Gingerbread";if(rt[0]===3)return"Honeycomb";if(rt[0]===4&&rt[1]<1)return"Ice Cream Sandwich";if(rt[0]===4&&rt[1]<4)return"Jelly Bean";if(rt[0]===4&&rt[1]>=4)return"KitKat";if(rt[0]===5)return"Lollipop";if(rt[0]===6)return"Marshmallow";if(rt[0]===7)return"Nougat";if(rt[0]===8)return"Oreo";if(rt[0]===9)return"Pie"}}static getVersionPrecision(et){return et.split(".").length}static compareVersions(et,rt,st=!1){const ct=Utils.getVersionPrecision(et),ut=Utils.getVersionPrecision(rt);let ft=Math.max(ct,ut),gt=0;const xt=Utils.map([et,rt],$t=>{const _t=ft-Utils.getVersionPrecision($t),wt=$t+new Array(_t+1).join(".0");return Utils.map(wt.split("."),Tt=>new Array(20-Tt.length).join("0")+Tt).reverse()});for(st&&(gt=ft-Math.min(ct,ut)),ft-=1;ft>=gt;){if(xt[0][ft]>xt[1][ft])return 1;if(xt[0][ft]===xt[1][ft]){if(ft===gt)return 0;ft-=1}else if(xt[0][ft]{st[xt]=ft[xt]})}return et}static getBrowserAlias(et){return BROWSER_ALIASES_MAP[et]}static getBrowserTypeByAlias(et){return BROWSER_MAP[et]||""}}const commonVersionIdentifier=/version\/(\d+(\.?_?\d+)+)/i,browsersList=[{test:[/googlebot/i],describe(_e){const et={name:"Googlebot"},rt=Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/opera/i],describe(_e){const et={name:"Opera"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/opr\/|opios/i],describe(_e){const et={name:"Opera"},rt=Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/SamsungBrowser/i],describe(_e){const et={name:"Samsung Internet for Android"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/Whale/i],describe(_e){const et={name:"NAVER Whale Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/MZBrowser/i],describe(_e){const et={name:"MZ Browser"},rt=Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/focus/i],describe(_e){const et={name:"Focus"},rt=Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/swing/i],describe(_e){const et={name:"Swing"},rt=Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/coast/i],describe(_e){const et={name:"Opera Coast"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(_e){const et={name:"Opera Touch"},rt=Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/yabrowser/i],describe(_e){const et={name:"Yandex Browser"},rt=Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/ucbrowser/i],describe(_e){const et={name:"UC Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/Maxthon|mxios/i],describe(_e){const et={name:"Maxthon"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/epiphany/i],describe(_e){const et={name:"Epiphany"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/puffin/i],describe(_e){const et={name:"Puffin"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/sleipnir/i],describe(_e){const et={name:"Sleipnir"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/k-meleon/i],describe(_e){const et={name:"K-Meleon"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/micromessenger/i],describe(_e){const et={name:"WeChat"},rt=Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/qqbrowser/i],describe(_e){const et={name:/qqbrowserlite/i.test(_e)?"QQ Browser Lite":"QQ Browser"},rt=Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/msie|trident/i],describe(_e){const et={name:"Internet Explorer"},rt=Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/\sedg\//i],describe(_e){const et={name:"Microsoft Edge"},rt=Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/edg([ea]|ios)/i],describe(_e){const et={name:"Microsoft Edge"},rt=Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/vivaldi/i],describe(_e){const et={name:"Vivaldi"},rt=Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/seamonkey/i],describe(_e){const et={name:"SeaMonkey"},rt=Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/sailfish/i],describe(_e){const et={name:"Sailfish"},rt=Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,_e);return rt&&(et.version=rt),et}},{test:[/silk/i],describe(_e){const et={name:"Amazon Silk"},rt=Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/phantom/i],describe(_e){const et={name:"PhantomJS"},rt=Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/slimerjs/i],describe(_e){const et={name:"SlimerJS"},rt=Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(_e){const et={name:"BlackBerry"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/(web|hpw)[o0]s/i],describe(_e){const et={name:"WebOS Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/bada/i],describe(_e){const et={name:"Bada"},rt=Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/tizen/i],describe(_e){const et={name:"Tizen"},rt=Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/qupzilla/i],describe(_e){const et={name:"QupZilla"},rt=Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/firefox|iceweasel|fxios/i],describe(_e){const et={name:"Firefox"},rt=Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/electron/i],describe(_e){const et={name:"Electron"},rt=Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/MiuiBrowser/i],describe(_e){const et={name:"Miui"},rt=Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/chromium/i],describe(_e){const et={name:"Chromium"},rt=Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/chrome|crios|crmo/i],describe(_e){const et={name:"Chrome"},rt=Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/GSA/i],describe(_e){const et={name:"Google Search"},rt=Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){const et=!_e.test(/like android/i),rt=_e.test(/android/i);return et&&rt},describe(_e){const et={name:"Android Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/playstation 4/i],describe(_e){const et={name:"PlayStation 4"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/safari|applewebkit/i],describe(_e){const et={name:"Safari"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/.*/i],describe(_e){const et=/^(.*)\/(.*) /,rt=/^(.*)\/(.*)[ \t]\((.*)/,ct=_e.search("\\(")!==-1?rt:et;return{name:Utils.getFirstMatch(ct,_e),version:Utils.getSecondMatch(ct,_e)}}}],osParsersList=[{test:[/Roku\/DVP/],describe(_e){const et=Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,_e);return{name:OS_MAP.Roku,version:et}}},{test:[/windows phone/i],describe(_e){const et=Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,_e);return{name:OS_MAP.WindowsPhone,version:et}}},{test:[/windows /i],describe(_e){const et=Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,_e),rt=Utils.getWindowsVersionName(et);return{name:OS_MAP.Windows,version:et,versionName:rt}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(_e){const et={name:OS_MAP.iOS},rt=Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/,_e);return rt&&(et.version=rt),et}},{test:[/macintosh/i],describe(_e){const et=Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,_e).replace(/[_\s]/g,"."),rt=Utils.getMacOSVersionName(et),st={name:OS_MAP.MacOS,version:et};return rt&&(st.versionName=rt),st}},{test:[/(ipod|iphone|ipad)/i],describe(_e){const et=Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,_e).replace(/[_\s]/g,".");return{name:OS_MAP.iOS,version:et}}},{test(_e){const et=!_e.test(/like android/i),rt=_e.test(/android/i);return et&&rt},describe(_e){const et=Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,_e),rt=Utils.getAndroidVersionName(et),st={name:OS_MAP.Android,version:et};return rt&&(st.versionName=rt),st}},{test:[/(web|hpw)[o0]s/i],describe(_e){const et=Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,_e),rt={name:OS_MAP.WebOS};return et&&et.length&&(rt.version=et),rt}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(_e){const et=Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,_e)||Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,_e)||Utils.getFirstMatch(/\bbb(\d+)/i,_e);return{name:OS_MAP.BlackBerry,version:et}}},{test:[/bada/i],describe(_e){const et=Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,_e);return{name:OS_MAP.Bada,version:et}}},{test:[/tizen/i],describe(_e){const et=Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,_e);return{name:OS_MAP.Tizen,version:et}}},{test:[/linux/i],describe(){return{name:OS_MAP.Linux}}},{test:[/CrOS/],describe(){return{name:OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe(_e){const et=Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,_e);return{name:OS_MAP.PlayStation4,version:et}}}],platformParsersList=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(_e){const et=Utils.getFirstMatch(/(can-l01)/i,_e)&&"Nova",rt={type:PLATFORMS_MAP.mobile,vendor:"Huawei"};return et&&(rt.model=et),rt}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:PLATFORMS_MAP.tablet}}},{test(_e){const et=_e.test(/ipod|iphone/i),rt=_e.test(/like (ipod|iphone)/i);return et&&!rt},describe(_e){const et=Utils.getFirstMatch(/(ipod|iphone)/i,_e);return{type:PLATFORMS_MAP.mobile,vendor:"Apple",model:et}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getBrowserName(!0)==="blackberry"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test(_e){return _e.getBrowserName(!0)==="bada"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getBrowserName()==="windows phone"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test(_e){const et=Number(String(_e.getOSVersion()).split(".")[0]);return _e.getOSName(!0)==="android"&&et>=3},describe(){return{type:PLATFORMS_MAP.tablet}}},{test(_e){return _e.getOSName(!0)==="android"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getOSName(!0)==="macos"},describe(){return{type:PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test(_e){return _e.getOSName(!0)==="windows"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(_e){return _e.getOSName(!0)==="linux"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(_e){return _e.getOSName(!0)==="playstation 4"},describe(){return{type:PLATFORMS_MAP.tv}}},{test(_e){return _e.getOSName(!0)==="roku"},describe(){return{type:PLATFORMS_MAP.tv}}}],enginesParsersList=[{test(_e){return _e.getBrowserName(!0)==="microsoft edge"},describe(_e){if(/\sedg\//i.test(_e))return{name:ENGINE_MAP.Blink};const rt=Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,_e);return{name:ENGINE_MAP.EdgeHTML,version:rt}}},{test:[/trident/i],describe(_e){const et={name:ENGINE_MAP.Trident},rt=Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){return _e.test(/presto/i)},describe(_e){const et={name:ENGINE_MAP.Presto},rt=Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){const et=_e.test(/gecko/i),rt=_e.test(/like gecko/i);return et&&!rt},describe(_e){const et={name:ENGINE_MAP.Gecko},rt=Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe(_e){const et={name:ENGINE_MAP.WebKit},rt=Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}}];class Parser{constructor(et,rt=!1){if(et==null||et==="")throw new Error("UserAgent parameter can't be empty");this._ua=et,this.parsedResult={},rt!==!0&&this.parse()}getUA(){return this._ua}test(et){return et.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const et=Utils.find(browsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.browser=et.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(et){return et?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 et=Utils.find(osParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.os=et.describe(this.getUA())),this.parsedResult.os}getOSName(et){const{name:rt}=this.getOS();return et?String(rt).toLowerCase()||"":rt||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(et=!1){const{type:rt}=this.getPlatform();return et?String(rt).toLowerCase()||"":rt||""}parsePlatform(){this.parsedResult.platform={};const et=Utils.find(platformParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.platform=et.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(et){return et?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const et=Utils.find(enginesParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.engine=et.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Utils.assign({},this.parsedResult)}satisfies(et){const rt={};let st=0;const ct={};let ut=0;if(Object.keys(et).forEach(gt=>{const xt=et[gt];typeof xt=="string"?(ct[gt]=xt,ut+=1):typeof xt=="object"&&(rt[gt]=xt,st+=1)}),st>0){const gt=Object.keys(rt),xt=Utils.find(gt,_t=>this.isOS(_t));if(xt){const _t=this.satisfies(rt[xt]);if(_t!==void 0)return _t}const $t=Utils.find(gt,_t=>this.isPlatform(_t));if($t){const _t=this.satisfies(rt[$t]);if(_t!==void 0)return _t}}if(ut>0){const gt=Object.keys(ct),xt=Utils.find(gt,$t=>this.isBrowser($t,!0));if(xt!==void 0)return this.compareVersion(ct[xt])}}isBrowser(et,rt=!1){const st=this.getBrowserName().toLowerCase();let ct=et.toLowerCase();const ut=Utils.getBrowserTypeByAlias(ct);return rt&&ut&&(ct=ut.toLowerCase()),ct===st}compareVersion(et){let rt=[0],st=et,ct=!1;const ut=this.getBrowserVersion();if(typeof ut=="string")return et[0]===">"||et[0]==="<"?(st=et.substr(1),et[1]==="="?(ct=!0,st=et.substr(2)):rt=[],et[0]===">"?rt.push(1):rt.push(-1)):et[0]==="="?st=et.substr(1):et[0]==="~"&&(ct=!0,st=et.substr(1)),rt.indexOf(Utils.compareVersions(ut,st,ct))>-1}isOS(et){return this.getOSName(!0)===String(et).toLowerCase()}isPlatform(et){return this.getPlatformType(!0)===String(et).toLowerCase()}isEngine(et){return this.getEngineName(!0)===String(et).toLowerCase()}is(et,rt=!1){return this.isBrowser(et,rt)||this.isOS(et)||this.isPlatform(et)}some(et=[]){return et.some(rt=>this.is(rt))}}/*! +`,Vt=function(qt){var Xt=(0,ft.useContext)(gt.default),Gt=Xt.csp,Zt=Xt.prefixCls,er=Wt;Zt&&(er=er.replace(/anticon/g,Zt)),(0,ft.useEffect)(function(){var lr=qt.current,cr=(0,ct.getShadowRoot)(lr);(0,st.updateCSS)(er,"@ant-design-icons",{prepend:!0,csp:Gt,attachTo:cr})},[])}}(utils)),utils}var hasRequiredIconBase;function requireIconBase(){return hasRequiredIconBase||(hasRequiredIconBase=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return At}});var et=ut(reactExports),rt=requireUtils();function st(jt,Nt,kt){return Nt in jt?Object.defineProperty(jt,Nt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):jt[Nt]=kt,jt}function ct(jt){if(typeof WeakMap!="function")return null;var Nt=new WeakMap,kt=new WeakMap;return(ct=function(Ft){return Ft?kt:Nt})(jt)}function ut(jt,Nt){if(!Nt&&jt&&jt.__esModule)return jt;if(jt===null||typeof jt!="object"&&typeof jt!="function")return{default:jt};var kt=ct(Nt);if(kt&&kt.has(jt))return kt.get(jt);var Ft={__proto__:null},Ht=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Wt in jt)if(Wt!=="default"&&Object.prototype.hasOwnProperty.call(jt,Wt)){var Vt=Ht?Object.getOwnPropertyDescriptor(jt,Wt):null;Vt&&(Vt.get||Vt.set)?Object.defineProperty(Ft,Wt,Vt):Ft[Wt]=jt[Wt]}return Ft.default=jt,kt&&kt.set(jt,Ft),Ft}function ft(jt){for(var Nt=1;Nt=0)&&Object.prototype.propertyIsEnumerable.call(jt,Ft)&&(kt[Ft]=jt[Ft])}return kt}function _t(jt,Nt){if(jt==null)return{};var kt={},Ft=Object.keys(jt),Ht,Wt;for(Wt=0;Wt=0)&&(kt[Ht]=jt[Ht]);return kt}var wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Tt(jt){var Nt=jt.primaryColor,kt=jt.secondaryColor;wt.primaryColor=Nt,wt.secondaryColor=kt||(0,rt.getSecondaryColor)(Nt),wt.calculated=!!kt}function Rt(){return ft({},wt)}var It=function(jt){var Nt=jt.icon,kt=jt.className,Ft=jt.onClick,Ht=jt.style,Wt=jt.primaryColor,Vt=jt.secondaryColor,qt=$t(jt,["icon","className","onClick","style","primaryColor","secondaryColor"]),Xt=et.useRef(),Gt=wt;if(Wt&&(Gt={primaryColor:Wt,secondaryColor:Vt||(0,rt.getSecondaryColor)(Wt)}),(0,rt.useInsertStyles)(Xt),(0,rt.warning)((0,rt.isIconDefinition)(Nt),"icon should be icon definiton, but got ".concat(Nt)),!(0,rt.isIconDefinition)(Nt))return null;var Zt=Nt;return Zt&&typeof Zt.icon=="function"&&(Zt=xt(ft({},Zt),{icon:Zt.icon(Gt.primaryColor,Gt.secondaryColor)})),(0,rt.generate)(Zt.icon,"svg-".concat(Zt.name),xt(ft({className:kt,onClick:Ft,style:Ht,"data-icon":Zt.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},qt),{ref:Xt}))};It.displayName="IconReact",It.getTwoToneColors=Rt,It.setTwoToneColors=Tt;var At=It}(IconBase)),IconBase}var twoTonePrimaryColor={},hasRequiredTwoTonePrimaryColor;function requireTwoTonePrimaryColor(){return hasRequiredTwoTonePrimaryColor||(hasRequiredTwoTonePrimaryColor=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0});function et(Rt,It){for(var At in It)Object.defineProperty(Rt,At,{enumerable:!0,get:It[At]})}et(_e,{getTwoToneColor:function(){return Tt},setTwoToneColor:function(){return wt}});var rt=ft(requireIconBase()),st=requireUtils();function ct(Rt,It){(It==null||It>Rt.length)&&(It=Rt.length);for(var At=0,jt=new Array(It);AtGt.length)&&(Zt=Gt.length);for(var er=0,lr=new Array(Zt);er=0)&&Object.prototype.propertyIsEnumerable.call(Gt,lr)&&(er[lr]=Gt[lr])}return er}function Ht(Gt,Zt){if(Gt==null)return{};var er={},lr=Object.keys(Gt),cr,ur;for(ur=0;ur=0)&&(er[cr]=Gt[cr]);return er}function Wt(Gt,Zt){return $t(Gt)||It(Gt,Zt)||Vt(Gt,Zt)||At()}function Vt(Gt,Zt){if(Gt){if(typeof Gt=="string")return xt(Gt,Zt);var er=Object.prototype.toString.call(Gt).slice(8,-1);if(er==="Object"&&Gt.constructor&&(er=Gt.constructor.name),er==="Map"||er==="Set")return Array.from(er);if(er==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(er))return xt(Gt,Zt)}}(0,ft.setTwoToneColor)(st.blue.primary);var qt=et.forwardRef(function(Gt,Zt){var er=Gt.className,lr=Gt.icon,cr=Gt.spin,ur=Gt.rotate,fr=Gt.tabIndex,hr=Gt.onClick,pr=Gt.twoToneColor,dr=Ft(Gt,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),yr=et.useContext(ct.default),Sr=yr.prefixCls,br=Sr===void 0?"anticon":Sr,mr=yr.rootClassName,Er,Tr=(0,rt.default)(mr,br,(Er={},_t(Er,"".concat(br,"-").concat(lr.name),!!lr.name),_t(Er,"".concat(br,"-spin"),!!cr||lr.name==="loading"),Er),er),Mr=fr;Mr===void 0&&hr&&(Mr=-1);var Or=ur?{msTransform:"rotate(".concat(ur,"deg)"),transform:"rotate(".concat(ur,"deg)")}:void 0,wr=Wt((0,gt.normalizeTwoToneColors)(pr),2),Cr=wr[0],Nr=wr[1];return et.createElement("span",kt(jt({role:"img","aria-label":lr.name},dr),{ref:Zt,tabIndex:Mr,onClick:hr,className:Tr}),et.createElement(ut.default,{icon:lr,primaryColor:Cr,secondaryColor:Nr,style:Or}))});qt.displayName="AntdIcon",qt.getTwoToneColor=ft.getTwoToneColor,qt.setTwoToneColor=ft.setTwoToneColor;var Xt=qt}(AntdIcon)),AntdIcon}var hasRequiredBarsOutlined$1;function requireBarsOutlined$1(){return hasRequiredBarsOutlined$1||(hasRequiredBarsOutlined$1=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return Tt}});var et=gt(reactExports),rt=ut(requireBarsOutlined$2()),st=ut(requireAntdIcon());function ct(Rt,It,At){return It in Rt?Object.defineProperty(Rt,It,{value:At,enumerable:!0,configurable:!0,writable:!0}):Rt[It]=At,Rt}function ut(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}}function ft(Rt){if(typeof WeakMap!="function")return null;var It=new WeakMap,At=new WeakMap;return(ft=function(jt){return jt?At:It})(Rt)}function gt(Rt,It){if(!It&&Rt&&Rt.__esModule)return Rt;if(Rt===null||typeof Rt!="object"&&typeof Rt!="function")return{default:Rt};var At=ft(It);if(At&&At.has(Rt))return At.get(Rt);var jt={__proto__:null},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var kt in Rt)if(kt!=="default"&&Object.prototype.hasOwnProperty.call(Rt,kt)){var Ft=Nt?Object.getOwnPropertyDescriptor(Rt,kt):null;Ft&&(Ft.get||Ft.set)?Object.defineProperty(jt,kt,Ft):jt[kt]=Rt[kt]}return jt.default=Rt,At&&At.set(Rt,jt),jt}function xt(Rt){for(var It=1;It!isNaN(parseFloat(et))&&isFinite(et);return isNumeric.default=_e,isNumeric}var hasRequiredSider;function requireSider(){if(hasRequiredSider)return Sider$5;hasRequiredSider=1;var _e=interopRequireDefaultExports;Object.defineProperty(Sider$5,"__esModule",{value:!0}),Sider$5.default=Sider$5.SiderContext=void 0;var et=Tt(reactExports),rt=et,st=_e(requireBarsOutlined()),ct=_e(requireLeftOutlined()),ut=_e(requireRightOutlined()),ft=_e(classnamesExports),gt=_e(requireOmit()),xt=_e(requireIsNumeric()),$t=requireConfigProvider(),_t=requireContext();function wt(kt){if(typeof WeakMap!="function")return null;var Ft=new WeakMap,Ht=new WeakMap;return(wt=function(Wt){return Wt?Ht:Ft})(kt)}function Tt(kt,Ft){if(!Ft&&kt&&kt.__esModule)return kt;if(kt===null||typeof kt!="object"&&typeof kt!="function")return{default:kt};var Ht=wt(Ft);if(Ht&&Ht.has(kt))return Ht.get(kt);var Wt={__proto__:null},Vt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in kt)if(qt!=="default"&&Object.prototype.hasOwnProperty.call(kt,qt)){var Xt=Vt?Object.getOwnPropertyDescriptor(kt,qt):null;Xt&&(Xt.get||Xt.set)?Object.defineProperty(Wt,qt,Xt):Wt[qt]=kt[qt]}return Wt.default=kt,Ht&&Ht.set(kt,Wt),Wt}var Rt=function(kt,Ft){var Ht={};for(var Wt in kt)Object.prototype.hasOwnProperty.call(kt,Wt)&&Ft.indexOf(Wt)<0&&(Ht[Wt]=kt[Wt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Wt=Object.getOwnPropertySymbols(kt);Vt{let kt=0;return function(){let Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return kt+=1,`${Ft}${kt}`}})(),Nt=rt.forwardRef((kt,Ft)=>{const{prefixCls:Ht,className:Wt,trigger:Vt,children:qt,defaultCollapsed:Xt=!1,theme:Gt="dark",style:Zt={},collapsible:er=!1,reverseArrow:lr=!1,width:cr=200,collapsedWidth:ur=80,zeroWidthTriggerStyle:fr,breakpoint:hr,onCollapse:pr,onBreakpoint:dr}=kt,yr=Rt(kt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Sr}=(0,et.useContext)(_t.LayoutContext),[br,mr]=(0,et.useState)("collapsed"in kt?kt.collapsed:Xt),[Er,Tr]=(0,et.useState)(!1);(0,et.useEffect)(()=>{"collapsed"in kt&&mr(kt.collapsed)},[kt.collapsed]);const Mr=(Pr,jr)=>{"collapsed"in kt||mr(Pr),pr==null||pr(Pr,jr)},Or=(0,et.useRef)();Or.current=Pr=>{Tr(Pr.matches),dr==null||dr(Pr.matches),br!==Pr.matches&&Mr(Pr.matches,"responsive")},(0,et.useEffect)(()=>{function Pr(kr){return Or.current(kr)}let jr;if(typeof window<"u"){const{matchMedia:kr}=window;if(kr&&hr&&hr in It){jr=kr(`screen and (max-width: ${It[hr]})`);try{jr.addEventListener("change",Pr)}catch{jr.addListener(Pr)}Pr(jr)}}return()=>{try{jr==null||jr.removeEventListener("change",Pr)}catch{jr==null||jr.removeListener(Pr)}}},[hr]),(0,et.useEffect)(()=>{const Pr=jt("ant-sider-");return Sr.addSider(Pr),()=>Sr.removeSider(Pr)},[]);const wr=()=>{Mr(!br,"clickTrigger")},{getPrefixCls:Cr}=(0,et.useContext)($t.ConfigContext),Nr=()=>{const Pr=Cr("layout-sider",Ht),jr=(0,gt.default)(yr,["collapsed"]),kr=br?ur:cr,Fr=(0,xt.default)(kr)?`${kr}px`:String(kr),_r=parseFloat(String(ur||0))===0?rt.createElement("span",{onClick:wr,className:(0,ft.default)(`${Pr}-zero-width-trigger`,`${Pr}-zero-width-trigger-${lr?"right":"left"}`),style:fr},Vt||rt.createElement(st.default,null)):null,Xr={expanded:lr?rt.createElement(ut.default,null):rt.createElement(ct.default,null),collapsed:lr?rt.createElement(ct.default,null):rt.createElement(ut.default,null)}[br?"collapsed":"expanded"],Kr=Vt!==null?_r||rt.createElement("div",{className:`${Pr}-trigger`,onClick:wr,style:{width:Fr}},Vt||Xr):null,Hr=Object.assign(Object.assign({},Zt),{flex:`0 0 ${Fr}`,maxWidth:Fr,minWidth:Fr,width:Fr}),Vr=(0,ft.default)(Pr,`${Pr}-${Gt}`,{[`${Pr}-collapsed`]:!!br,[`${Pr}-has-trigger`]:er&&Vt!==null&&!_r,[`${Pr}-below`]:!!Er,[`${Pr}-zero-width`]:parseFloat(Fr)===0},Wt);return rt.createElement("aside",Object.assign({className:Vr},jr,{style:Hr,ref:Ft}),rt.createElement("div",{className:`${Pr}-children`},qt),er||Er&&_r?Kr:null)},Rr=rt.useMemo(()=>({siderCollapsed:br}),[br]);return rt.createElement(At.Provider,{value:Rr},Nr())});return Sider$5.default=Nt,Sider$5}var hasRequiredUseHasSider;function requireUseHasSider(){if(hasRequiredUseHasSider)return useHasSider;hasRequiredUseHasSider=1;var _e=interopRequireDefaultExports;Object.defineProperty(useHasSider,"__esModule",{value:!0}),useHasSider.default=st;var et=_e(requireToArray()),rt=_e(requireSider());function st(ct,ut,ft){return typeof ft=="boolean"?ft:ct.length?!0:(0,et.default)(ut).some(xt=>xt.type===rt.default)}return useHasSider}var style={},light={},hasRequiredLight;function requireLight(){if(hasRequiredLight)return light;hasRequiredLight=1,Object.defineProperty(light,"__esModule",{value:!0}),light.default=void 0;const _e=et=>{const{componentCls:rt,bodyBg:st,lightSiderBg:ct,lightTriggerBg:ut,lightTriggerColor:ft}=et;return{[`${rt}-sider-light`]:{background:ct,[`${rt}-sider-trigger`]:{color:ft,background:ut},[`${rt}-sider-zero-width-trigger`]:{color:ft,background:ut,border:`1px solid ${st}`,borderInlineStart:0}}}};return light.default=_e,light}var hasRequiredStyle;function requireStyle(){if(hasRequiredStyle)return style;hasRequiredStyle=1;var _e=interopRequireDefaultExports;Object.defineProperty(style,"__esModule",{value:!0}),style.prepareComponentToken=style.default=void 0;var et=require$$1$1,rt=requireInternal(),st=_e(requireLight());const ct=ft=>{const{antCls:gt,componentCls:xt,colorText:$t,triggerColor:_t,footerBg:wt,triggerBg:Tt,headerHeight:Rt,headerPadding:It,headerColor:At,footerPadding:jt,triggerHeight:Nt,zeroTriggerHeight:kt,zeroTriggerWidth:Ft,motionDurationMid:Ht,motionDurationSlow:Wt,fontSize:Vt,borderRadius:qt,bodyBg:Xt,headerBg:Gt,siderBg:Zt}=ft;return{[xt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xt,"&, *":{boxSizing:"border-box"},[`&${xt}-has-sider`]:{flexDirection:"row",[`> ${xt}, > ${xt}-content`]:{width:0}},[`${xt}-header, &${xt}-footer`]:{flex:"0 0 auto"},[`${xt}-sider`]:{position:"relative",minWidth:0,background:Zt,transition:`all ${Ht}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${gt}-menu${gt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Nt,color:_t,lineHeight:(0,et.unit)(Nt),textAlign:"center",background:Tt,cursor:"pointer",transition:`all ${Ht}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Rt,insetInlineEnd:ft.calc(Ft).mul(-1).equal(),zIndex:1,width:Ft,height:kt,color:_t,fontSize:ft.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Zt,borderStartStartRadius:0,borderStartEndRadius:qt,borderEndEndRadius:qt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Wt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Wt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ft.calc(Ft).mul(-1).equal(),borderStartStartRadius:qt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:qt}}}}},(0,st.default)(ft)),{"&-rtl":{direction:"rtl"}}),[`${xt}-header`]:{height:Rt,padding:It,color:At,lineHeight:(0,et.unit)(Rt),background:Gt,[`${gt}-menu`]:{lineHeight:"inherit"}},[`${xt}-footer`]:{padding:jt,color:$t,fontSize:Vt,background:wt},[`${xt}-content`]:{flex:"auto",minHeight:0}}},ut=ft=>{const{colorBgLayout:gt,controlHeight:xt,controlHeightLG:$t,colorText:_t,controlHeightSM:wt,marginXXS:Tt,colorTextLightSolid:Rt,colorBgContainer:It}=ft,At=$t*1.25;return{colorBgHeader:"#001529",colorBgBody:gt,colorBgTrigger:"#002140",bodyBg:gt,headerBg:"#001529",headerHeight:xt*2,headerPadding:`0 ${At}px`,headerColor:_t,footerPadding:`${wt}px ${At}px`,footerBg:gt,siderBg:"#001529",triggerHeight:$t+Tt*2,triggerBg:"#002140",triggerColor:Rt,zeroTriggerWidth:$t,zeroTriggerHeight:$t,lightSiderBg:It,lightTriggerBg:It,lightTriggerColor:_t}};return style.prepareComponentToken=ut,style.default=(0,rt.genStyleHooks)("Layout",ft=>[ct(ft)],ut,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),style}var Content_1,Footer_1,Header_1,_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(layout$1,"__esModule",{value:!0});layout$1.default=Header_1=layout$1.Header=Footer_1=layout$1.Footer=Content_1=layout$1.Content=void 0;var _toConsumableArray2=_interopRequireDefault(requireToConsumableArray()),React=_interopRequireWildcard(reactExports),_classnames=_interopRequireDefault(classnamesExports),_omit=_interopRequireDefault(requireOmit()),_configProvider=requireConfigProvider(),_context=requireContext(),_useHasSider=_interopRequireDefault(requireUseHasSider()),_style=_interopRequireDefault(requireStyle());function _getRequireWildcardCache(_e){if(typeof WeakMap!="function")return null;var et=new WeakMap,rt=new WeakMap;return(_getRequireWildcardCache=function(st){return st?rt:et})(_e)}function _interopRequireWildcard(_e,et){if(!et&&_e&&_e.__esModule)return _e;if(_e===null||typeof _e!="object"&&typeof _e!="function")return{default:_e};var rt=_getRequireWildcardCache(et);if(rt&&rt.has(_e))return rt.get(_e);var st={__proto__:null},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ut in _e)if(ut!=="default"&&Object.prototype.hasOwnProperty.call(_e,ut)){var ft=ct?Object.getOwnPropertyDescriptor(_e,ut):null;ft&&(ft.get||ft.set)?Object.defineProperty(st,ut,ft):st[ut]=_e[ut]}return st.default=_e,rt&&rt.set(_e,st),st}var __rest=function(_e,et){var rt={};for(var st in _e)Object.prototype.hasOwnProperty.call(_e,st)&&et.indexOf(st)<0&&(rt[st]=_e[st]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,st=Object.getOwnPropertySymbols(_e);ctReact.forwardRef((ft,gt)=>React.createElement(ct,Object.assign({ref:gt,suffixCls:et,tagName:rt},ft)))}const Basic$1=React.forwardRef((_e,et)=>{const{prefixCls:rt,suffixCls:st,className:ct,tagName:ut}=_e,ft=__rest(_e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:gt}=React.useContext(_configProvider.ConfigContext),xt=gt("layout",rt),[$t,_t,wt]=(0,_style.default)(xt),Tt=st?`${xt}-${st}`:xt;return $t(React.createElement(ut,Object.assign({className:(0,_classnames.default)(rt||Tt,ct,_t,wt),ref:et},ft)))}),BasicLayout=React.forwardRef((_e,et)=>{const{direction:rt}=React.useContext(_configProvider.ConfigContext),[st,ct]=React.useState([]),{prefixCls:ut,className:ft,rootClassName:gt,children:xt,hasSider:$t,tagName:_t,style:wt}=_e,Tt=__rest(_e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Rt=(0,_omit.default)(Tt,["suffixCls"]),{getPrefixCls:It,layout:At}=React.useContext(_configProvider.ConfigContext),jt=It("layout",ut),Nt=(0,_useHasSider.default)(st,xt,$t),[kt,Ft,Ht]=(0,_style.default)(jt),Wt=(0,_classnames.default)(jt,{[`${jt}-has-sider`]:Nt,[`${jt}-rtl`]:rt==="rtl"},At==null?void 0:At.className,ft,gt,Ft,Ht),Vt=React.useMemo(()=>({siderHook:{addSider:qt=>{ct(Xt=>[].concat((0,_toConsumableArray2.default)(Xt),[qt]))},removeSider:qt=>{ct(Xt=>Xt.filter(Gt=>Gt!==qt))}}}),[]);return kt(React.createElement(_context.LayoutContext.Provider,{value:Vt},React.createElement(_t,Object.assign({ref:et,className:Wt,style:Object.assign(Object.assign({},At==null?void 0:At.style),wt)},Rt),xt)))}),Layout=generator({tagName:"div",displayName:"Layout"})(BasicLayout);Header_1=layout$1.Header=generator({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic$1);Footer_1=layout$1.Footer=generator({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic$1);Content_1=layout$1.Content=generator({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic$1);layout$1.default=Layout;var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(_e,et){if(_e===et)return!0;if(_e&&et&&typeof _e=="object"&&typeof et=="object"){if(_e.constructor!==et.constructor)return!1;var rt,st,ct;if(Array.isArray(_e)){if(rt=_e.length,rt!=et.length)return!1;for(st=rt;st--!==0;)if(!equal(_e[st],et[st]))return!1;return!0}var ut;if(hasMap&&_e instanceof Map&&et instanceof Map){if(_e.size!==et.size)return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!et.has(st.value[0]))return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!equal(st.value[1],et.get(st.value[0])))return!1;return!0}if(hasSet&&_e instanceof Set&&et instanceof Set){if(_e.size!==et.size)return!1;for(ut=_e.entries();!(st=ut.next()).done;)if(!et.has(st.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(_e)&&ArrayBuffer.isView(et)){if(rt=_e.length,rt!=et.length)return!1;for(st=rt;st--!==0;)if(_e[st]!==et[st])return!1;return!0}if(_e.constructor===RegExp)return _e.source===et.source&&_e.flags===et.flags;if(_e.valueOf!==Object.prototype.valueOf&&typeof _e.valueOf=="function"&&typeof et.valueOf=="function")return _e.valueOf()===et.valueOf();if(_e.toString!==Object.prototype.toString&&typeof _e.toString=="function"&&typeof et.toString=="function")return _e.toString()===et.toString();if(ct=Object.keys(_e),rt=ct.length,rt!==Object.keys(et).length)return!1;for(st=rt;st--!==0;)if(!Object.prototype.hasOwnProperty.call(et,ct[st]))return!1;if(hasElementType&&_e instanceof Element)return!1;for(st=rt;st--!==0;)if(!((ct[st]==="_owner"||ct[st]==="__v"||ct[st]==="__o")&&_e.$$typeof)&&!equal(_e[ct[st]],et[ct[st]]))return!1;return!0}return _e!==_e&&et!==et}var reactFastCompare=function _e(et,rt){try{return equal(et,rt)}catch(st){if((st.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw st}};const fastCompare=getDefaultExportFromCjs(reactFastCompare);var invariant=function(_e,et,rt,st,ct,ut,ft,gt){if(!_e){var xt;if(et===void 0)xt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var $t=[rt,st,ct,ut,ft,gt],_t=0;xt=new Error(et.replace(/%s/g,function(){return $t[_t++]})),xt.name="Invariant Violation"}throw xt.framesToPop=1,xt}},browser=invariant;const invariant$1=getDefaultExportFromCjs(browser);var shallowequal=function _e(et,rt,st,ct){var ut=st?st.call(ct,et,rt):void 0;if(ut!==void 0)return!!ut;if(et===rt)return!0;if(typeof et!="object"||!et||typeof rt!="object"||!rt)return!1;var ft=Object.keys(et),gt=Object.keys(rt);if(ft.length!==gt.length)return!1;for(var xt=Object.prototype.hasOwnProperty.bind(rt),$t=0;$t(_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))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={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"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((_e,[et,rt])=>(_e[rt]=et,_e),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(_e,et)=>{for(let rt=_e.length-1;rt>=0;rt-=1){const st=_e[rt];if(Object.prototype.hasOwnProperty.call(st,et))return st[et]}return null},getTitleFromPropsList=_e=>{let et=getInnermostProperty(_e,"title");const rt=getInnermostProperty(_e,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(et)&&(et=et.join("")),rt&&et)return rt.replace(/%s/g,()=>et);const st=getInnermostProperty(_e,HELMET_PROPS.DEFAULT_TITLE);return et||st||void 0},getOnChangeClientState=_e=>getInnermostProperty(_e,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(_e,et)=>et.filter(rt=>typeof rt[_e]<"u").map(rt=>rt[_e]).reduce((rt,st)=>({...rt,...st}),{}),getBaseTagFromPropsList=(_e,et)=>et.filter(rt=>typeof rt.base<"u").map(rt=>rt.base).reverse().reduce((rt,st)=>{if(!rt.length){const ct=Object.keys(st);for(let ut=0;utconsole&&typeof console.warn=="function"&&console.warn(_e),getTagsFromPropsList=(_e,et,rt)=>{const st={};return rt.filter(ct=>Array.isArray(ct[_e])?!0:(typeof ct[_e]<"u"&&warn(`Helmet: ${_e} should be of type "Array". Instead found type "${typeof ct[_e]}"`),!1)).map(ct=>ct[_e]).reverse().reduce((ct,ut)=>{const ft={};ut.filter(xt=>{let $t;const _t=Object.keys(xt);for(let Tt=0;Tt<_t.length;Tt+=1){const Rt=_t[Tt],It=Rt.toLowerCase();et.indexOf(It)!==-1&&!($t==="rel"&&xt[$t].toLowerCase()==="canonical")&&!(It==="rel"&&xt[It].toLowerCase()==="stylesheet")&&($t=It),et.indexOf(Rt)!==-1&&(Rt==="innerHTML"||Rt==="cssText"||Rt==="itemprop")&&($t=Rt)}if(!$t||!xt[$t])return!1;const wt=xt[$t].toLowerCase();return st[$t]||(st[$t]={}),ft[$t]||(ft[$t]={}),st[$t][wt]?!1:(ft[$t][wt]=!0,!0)}).reverse().forEach(xt=>ct.push(xt));const gt=Object.keys(ft);for(let xt=0;xt{if(Array.isArray(_e)&&_e.length){for(let rt=0;rt<_e.length;rt+=1)if(_e[rt][et])return!0}return!1},reducePropsToState=_e=>({baseTag:getBaseTagFromPropsList(["href"],_e),bodyAttributes:getAttributesFromPropsList("bodyAttributes",_e),defer:getInnermostProperty(_e,HELMET_PROPS.DEFER),encode:getInnermostProperty(_e,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",_e),linkTags:getTagsFromPropsList("link",["rel","href"],_e),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],_e),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],_e),onChangeClientState:getOnChangeClientState(_e),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],_e),styleTags:getTagsFromPropsList("style",["cssText"],_e),title:getTitleFromPropsList(_e),titleAttributes:getAttributesFromPropsList("titleAttributes",_e),prioritizeSeoTags:getAnyTrueFromPropsList(_e,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=_e=>Array.isArray(_e)?_e.join(""):_e,checkIfPropsMatch=(_e,et)=>{const rt=Object.keys(_e);for(let st=0;stArray.isArray(_e)?_e.reduce((rt,st)=>(checkIfPropsMatch(st,et)?rt.priority.push(st):rt.default.push(st),rt),{priority:[],default:[]}):{default:_e,priority:[]},without=(_e,et)=>({..._e,[et]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(_e,et=!0)=>et===!1?String(_e):String(_e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),generateElementAttributesAsString=_e=>Object.keys(_e).reduce((et,rt)=>{const st=typeof _e[rt]<"u"?`${rt}="${_e[rt]}"`:`${rt}`;return et?`${et} ${st}`:st},""),generateTitleAsString=(_e,et,rt,st)=>{const ct=generateElementAttributesAsString(rt),ut=flattenArray(et);return ct?`<${_e} ${HELMET_ATTRIBUTE}="true" ${ct}>${encodeSpecialCharacters(ut,st)}`:`<${_e} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(ut,st)}`},generateTagsAsString=(_e,et,rt=!0)=>et.reduce((st,ct)=>{const ut=ct,ft=Object.keys(ut).filter($t=>!($t==="innerHTML"||$t==="cssText")).reduce(($t,_t)=>{const wt=typeof ut[_t]>"u"?_t:`${_t}="${encodeSpecialCharacters(ut[_t],rt)}"`;return $t?`${$t} ${wt}`:wt},""),gt=ut.innerHTML||ut.cssText||"",xt=SELF_CLOSING_TAGS.indexOf(_e)===-1;return`${st}<${_e} ${HELMET_ATTRIBUTE}="true" ${ft}${xt?"/>":`>${gt}`}`},""),convertElementAttributesToReactProps=(_e,et={})=>Object.keys(_e).reduce((rt,st)=>{const ct=REACT_TAG_MAP[st];return rt[ct||st]=_e[st],rt},et),generateTitleAsReactComponent=(_e,et,rt)=>{const st={key:et,[HELMET_ATTRIBUTE]:!0},ct=convertElementAttributesToReactProps(rt,st);return[React$1.createElement("title",ct,et)]},generateTagsAsReactComponent=(_e,et)=>et.map((rt,st)=>{const ct={key:st,[HELMET_ATTRIBUTE]:!0};return Object.keys(rt).forEach(ut=>{const gt=REACT_TAG_MAP[ut]||ut;if(gt==="innerHTML"||gt==="cssText"){const xt=rt.innerHTML||rt.cssText;ct.dangerouslySetInnerHTML={__html:xt}}else ct[gt]=rt[ut]}),React$1.createElement(_e,ct)}),getMethodsForTag=(_e,et,rt=!0)=>{switch(_e){case"title":return{toComponent:()=>generateTitleAsReactComponent(_e,et.title,et.titleAttributes),toString:()=>generateTitleAsString(_e,et.title,et.titleAttributes,rt)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(et),toString:()=>generateElementAttributesAsString(et)};default:return{toComponent:()=>generateTagsAsReactComponent(_e,et),toString:()=>generateTagsAsString(_e,et,rt)}}},getPriorityMethods=({metaTags:_e,linkTags:et,scriptTags:rt,encode:st})=>{const ct=prioritizer(_e,SEO_PRIORITY_TAGS.meta),ut=prioritizer(et,SEO_PRIORITY_TAGS.link),ft=prioritizer(rt,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",ct.priority),...generateTagsAsReactComponent("link",ut.priority),...generateTagsAsReactComponent("script",ft.priority)],toString:()=>`${getMethodsForTag("meta",ct.priority,st)} ${getMethodsForTag("link",ut.priority,st)} ${getMethodsForTag("script",ft.priority,st)}`},metaTags:ct.default,linkTags:ut.default,scriptTags:ft.default}},mapStateOnServer=_e=>{const{baseTag:et,bodyAttributes:rt,encode:st=!0,htmlAttributes:ct,noscriptTags:ut,styleTags:ft,title:gt="",titleAttributes:xt,prioritizeSeoTags:$t}=_e;let{linkTags:_t,metaTags:wt,scriptTags:Tt}=_e,Rt={toComponent:()=>{},toString:()=>""};return $t&&({priorityMethods:Rt,linkTags:_t,metaTags:wt,scriptTags:Tt}=getPriorityMethods(_e)),{priority:Rt,base:getMethodsForTag("base",et,st),bodyAttributes:getMethodsForTag("bodyAttributes",rt,st),htmlAttributes:getMethodsForTag("htmlAttributes",ct,st),link:getMethodsForTag("link",_t,st),meta:getMethodsForTag("meta",wt,st),noscript:getMethodsForTag("noscript",ut,st),script:getMethodsForTag("script",Tt,st),style:getMethodsForTag("style",ft,st),title:getMethodsForTag("title",{title:gt,titleAttributes:xt},st)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{constructor(_e,et){Ko(this,"instances",[]);Ko(this,"canUseDOM",isDocument);Ko(this,"context");Ko(this,"value",{setHelmet:_e=>{this.context.helmet=_e},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:_e=>{(this.canUseDOM?instances:this.instances).push(_e)},remove:_e=>{const et=(this.canUseDOM?instances:this.instances).indexOf(_e);(this.canUseDOM?instances:this.instances).splice(et,1)}}});this.context=_e,this.canUseDOM=et||!1,et||(_e.helmet=server_default({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React$1.createContext(defaultValue),cp,HelmetProvider=(cp=class extends reactExports.Component{constructor(rt){super(rt);Ko(this,"helmetData");this.helmetData=new HelmetData(this.props.context||{},cp.canUseDOM)}render(){return React$1.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},Ko(cp,"canUseDOM",isDocument),cp),updateTags=(_e,et)=>{const rt=document.head||document.querySelector("head"),st=rt.querySelectorAll(`${_e}[${HELMET_ATTRIBUTE}]`),ct=[].slice.call(st),ut=[];let ft;return et&&et.length&&et.forEach(gt=>{const xt=document.createElement(_e);for(const $t in gt)if(Object.prototype.hasOwnProperty.call(gt,$t))if($t==="innerHTML")xt.innerHTML=gt.innerHTML;else if($t==="cssText")xt.styleSheet?xt.styleSheet.cssText=gt.cssText:xt.appendChild(document.createTextNode(gt.cssText));else{const _t=$t,wt=typeof gt[_t]>"u"?"":gt[_t];xt.setAttribute($t,wt)}xt.setAttribute(HELMET_ATTRIBUTE,"true"),ct.some(($t,_t)=>(ft=_t,xt.isEqualNode($t)))?ct.splice(ft,1):ut.push(xt)}),ct.forEach(gt=>{var xt;return(xt=gt.parentNode)==null?void 0:xt.removeChild(gt)}),ut.forEach(gt=>rt.appendChild(gt)),{oldTags:ct,newTags:ut}},updateAttributes=(_e,et)=>{const rt=document.getElementsByTagName(_e)[0];if(!rt)return;const st=rt.getAttribute(HELMET_ATTRIBUTE),ct=st?st.split(","):[],ut=[...ct],ft=Object.keys(et);for(const gt of ft){const xt=et[gt]||"";rt.getAttribute(gt)!==xt&&rt.setAttribute(gt,xt),ct.indexOf(gt)===-1&&ct.push(gt);const $t=ut.indexOf(gt);$t!==-1&&ut.splice($t,1)}for(let gt=ut.length-1;gt>=0;gt-=1)rt.removeAttribute(ut[gt]);ct.length===ut.length?rt.removeAttribute(HELMET_ATTRIBUTE):rt.getAttribute(HELMET_ATTRIBUTE)!==ft.join(",")&&rt.setAttribute(HELMET_ATTRIBUTE,ft.join(","))},updateTitle=(_e,et)=>{typeof _e<"u"&&document.title!==_e&&(document.title=flattenArray(_e)),updateAttributes("title",et)},commitTagChanges=(_e,et)=>{const{baseTag:rt,bodyAttributes:st,htmlAttributes:ct,linkTags:ut,metaTags:ft,noscriptTags:gt,onChangeClientState:xt,scriptTags:$t,styleTags:_t,title:wt,titleAttributes:Tt}=_e;updateAttributes("body",st),updateAttributes("html",ct),updateTitle(wt,Tt);const Rt={baseTag:updateTags("base",rt),linkTags:updateTags("link",ut),metaTags:updateTags("meta",ft),noscriptTags:updateTags("noscript",gt),scriptTags:updateTags("script",$t),styleTags:updateTags("style",_t)},It={},At={};Object.keys(Rt).forEach(jt=>{const{newTags:Nt,oldTags:kt}=Rt[jt];Nt.length&&(It[jt]=Nt),kt.length&&(At[jt]=Rt[jt].oldTags)}),et&&et(),xt(_e,It,At)},_helmetCallback=null,handleStateChangeOnClient=_e=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),_e.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(_e,()=>{_helmetCallback=null})}):(commitTagChanges(_e),_helmetCallback=null)},client_default=handleStateChangeOnClient,HelmetDispatcher=class extends reactExports.Component{constructor(){super(...arguments);Ko(this,"rendered",!1)}shouldComponentUpdate(et){return!shallowEqual(et,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:et}=this.props.context;et.remove(this),this.emitChange()}emitChange(){const{helmetInstances:et,setHelmet:rt}=this.props.context;let st=null;const ct=reducePropsToState(et.get().map(ut=>{const ft={...ut.props};return delete ft.context,ft}));HelmetProvider.canUseDOM?client_default(ct):server_default&&(st=server_default(ct)),rt(st)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:et}=this.props.context;et.add(this),this.emitChange()}render(){return this.init(),null}},em,Helmet=(em=class extends reactExports.Component{shouldComponentUpdate(_e){return!fastCompare(without(this.props,"helmetData"),without(_e,"helmetData"))}mapNestedChildrenToProps(_e,et){if(!et)return null;switch(_e.type){case"script":case"noscript":return{innerHTML:et};case"style":return{cssText:et};default:throw new Error(`<${_e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(_e,et,rt,st){return{...et,[_e.type]:[...et[_e.type]||[],{...rt,...this.mapNestedChildrenToProps(_e,st)}]}}mapObjectTypeChildren(_e,et,rt,st){switch(_e.type){case"title":return{...et,[_e.type]:st,titleAttributes:{...rt}};case"body":return{...et,bodyAttributes:{...rt}};case"html":return{...et,htmlAttributes:{...rt}};default:return{...et,[_e.type]:{...rt}}}}mapArrayTypeChildrenToProps(_e,et){let rt={...et};return Object.keys(_e).forEach(st=>{rt={...rt,[st]:_e[st]}}),rt}warnOnInvalidChildren(_e,et){return invariant$1(VALID_TAG_NAMES.some(rt=>_e.type===rt),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 ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${_e.type}> elements. Refer to our API for more information.`),invariant$1(!et||typeof et=="string"||Array.isArray(et)&&!et.some(rt=>typeof rt!="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,et){let rt={};return React$1.Children.forEach(_e,st=>{if(!st||!st.props)return;const{children:ct,...ut}=st.props,ft=Object.keys(ut).reduce((xt,$t)=>(xt[HTML_TAG_MAP[$t]||$t]=ut[$t],xt),{});let{type:gt}=st;switch(typeof gt=="symbol"?gt=gt.toString():this.warnOnInvalidChildren(st,ct),gt){case"Symbol(react.fragment)":et=this.mapChildrenToProps(ct,et);break;case"link":case"meta":case"noscript":case"script":case"style":rt=this.flattenArrayTypeChildren(st,rt,ft,ct);break;default:et=this.mapObjectTypeChildren(st,et,ft,ct);break}}),this.mapArrayTypeChildrenToProps(rt,et)}render(){const{children:_e,...et}=this.props;let rt={...et},{helmetData:st}=et;if(_e&&(rt=this.mapChildrenToProps(_e,rt)),st&&!(st instanceof HelmetData)){const ct=st;st=new HelmetData(ct.context,!0),delete rt.helmetData}return st?React$1.createElement(HelmetDispatcher,{...rt,context:st.value}):React$1.createElement(Context.Consumer,null,ct=>React$1.createElement(HelmetDispatcher,{...rt,context:ct}))}},Ko(em,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),em);function useStyle(){const{isDarkMode:_e}=useTheme$2(),{token:et}=theme.useToken(),rt={borderRight:_e?"1px solid #333":"1px solid #ccc",background:_e?"#141414":"#eee"},st=260,ct={background:_e?"#141414":"#fff"},ut={borderLeft:_e?"1px solid #333":"1px solid #ccc",background:_e?"#141414":"#eee"},ft={minHeight:120},gt={height:20,fontSize:12,backgroundColor:et.colorBgContainer,color:et.colorText};return{leftSiderStyle:rt,leftSiderWidth:st,headerStyle:ct,rightSiderStyle:ut,contentStyle:ft,footerStyle:gt}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:et},rt,st)=>withNativeBlob$1&&et instanceof Blob?rt?st(et):encodeBlobAsBase64(et,st):withNativeArrayBuffer$2&&(et instanceof ArrayBuffer||isView$1(et))?rt?st(et):encodeBlobAsBase64(new Blob([et]),st):st(PACKET_TYPES[_e]+(et||"")),encodeBlobAsBase64=(_e,et)=>{const rt=new FileReader;return rt.onload=function(){const st=rt.result.split(",")[1];et("b"+(st||""))},rt.readAsDataURL(_e)};function toArray(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,et){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray).then(et);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return et(toArray(_e.data));encodePacket(_e,!1,rt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),et(TEXT_ENCODER.encode(rt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e{let et=_e.length*.75,rt=_e.length,st,ct=0,ut,ft,gt,xt;_e[_e.length-1]==="="&&(et--,_e[_e.length-2]==="="&&et--);const $t=new ArrayBuffer(et),_t=new Uint8Array($t);for(st=0;st>4,_t[ct++]=(ft&15)<<4|gt>>2,_t[ct++]=(gt&3)<<6|xt&63;return $t},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,et)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,et)};const rt=_e.charAt(0);return rt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),et)}:PACKET_TYPES_REVERSE[rt]?_e.length>1?{type:PACKET_TYPES_REVERSE[rt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[rt]}:ERROR_PACKET},decodeBase64Packet=(_e,et)=>{if(withNativeArrayBuffer$1){const rt=decode$1(_e);return mapBinary(rt,et)}else return{base64:!0,data:_e}},mapBinary=(_e,et)=>{switch(et){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR="",encodePayload=(_e,et)=>{const rt=_e.length,st=new Array(rt);let ct=0;_e.forEach((ut,ft)=>{encodePacket(ut,!1,gt=>{st[ft]=gt,++ct===rt&&et(st.join(SEPARATOR))})})},decodePayload=(_e,et)=>{const rt=_e.split(SEPARATOR),st=[];for(let ct=0;ct{const st=rt.length;let ct;if(st<126)ct=new Uint8Array(1),new DataView(ct.buffer).setUint8(0,st);else if(st<65536){ct=new Uint8Array(3);const ut=new DataView(ct.buffer);ut.setUint8(0,126),ut.setUint16(1,st)}else{ct=new Uint8Array(9);const ut=new DataView(ct.buffer);ut.setUint8(0,127),ut.setBigUint64(1,BigInt(st))}_e.data&&typeof _e.data!="string"&&(ct[0]|=128),et.enqueue(ct),et.enqueue(rt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((et,rt)=>et+rt.length,0)}function concatChunks(_e,et){if(_e[0].length===et)return _e.shift();const rt=new Uint8Array(et);let st=0;for(let ct=0;ctMath.pow(2,21)-1){gt.enqueue(ERROR_PACKET);break}ct=_t*Math.pow(2,32)+$t.getUint32(4),st=3}else{if(totalLength(rt)_e){gt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin(_e)}function mixin(_e){for(var et in Emitter.prototype)_e[et]=Emitter.prototype[et];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,et){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(et),this};Emitter.prototype.once=function(_e,et){function rt(){this.off(_e,rt),et.apply(this,arguments)}return rt.fn=et,this.on(_e,rt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,et){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var rt=this._callbacks["$"+_e];if(!rt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var st,ct=0;ct(_e.hasOwnProperty(st)&&(rt[st]=_e[st]),rt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,et){et.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let et=0,rt=0;for(let st=0,ct=_e.length;st=57344?rt+=3:(st++,rt+=4);return rt}function encode$1(_e){let et="";for(let rt in _e)_e.hasOwnProperty(rt)&&(et.length&&(et+="&"),et+=encodeURIComponent(rt)+"="+encodeURIComponent(_e[rt]));return et}function decode(_e){let et={},rt=_e.split("&");for(let st=0,ct=rt.length;st0);return et}function yeast(){const _e=encode(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode(seed++)}for(;i$1{this.readyState="paused",et()};if(this.polling||!this.writable){let st=0;this.polling&&(st++,this.once("pollComplete",function(){--st||rt()})),this.writable||(st++,this.once("drain",function(){--st||rt()}))}else rt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(et){const rt=st=>{if(this.readyState==="opening"&&st.type==="open"&&this.onOpen(),st.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(st)};decodePayload(et,this.socket.binaryType).forEach(rt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const et=()=>{this.write([{type:"close"}])};this.readyState==="open"?et():this.once("open",et)}write(et){this.writable=!1,encodePayload(et,rt=>{this.doWrite(rt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const et=this.opts.secure?"https":"http",rt=this.query||{};return this.opts.timestampRequests!==!1&&(rt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!rt.sid&&(rt.b64=1),this.createUri(et,rt)}request(et={}){return Object.assign(et,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),et)}doWrite(et,rt){const st=this.request({method:"POST",data:et});st.on("success",rt),st.on("error",(ct,ut)=>{this.onError("xhr post error",ct,ut)})}doPoll(){const et=this.request();et.on("data",this.onData.bind(this)),et.on("error",(rt,st)=>{this.onError("xhr poll error",rt,st)}),this.pollXhr=et}}let Request$1=class kp extends Emitter{constructor(et,rt){super(),installTimerFunctions(this,rt),this.opts=rt,this.method=rt.method||"GET",this.uri=et,this.data=rt.data!==void 0?rt.data:null,this.create()}create(){var et;const rt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");rt.xdomain=!!this.opts.xd;const st=this.xhr=new XHR(rt);try{st.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){st.setDisableHeaderCheck&&st.setDisableHeaderCheck(!0);for(let ct in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(ct)&&st.setRequestHeader(ct,this.opts.extraHeaders[ct])}}catch{}if(this.method==="POST")try{st.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{st.setRequestHeader("Accept","*/*")}catch{}(et=this.opts.cookieJar)===null||et===void 0||et.addCookies(st),"withCredentials"in st&&(st.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(st.timeout=this.opts.requestTimeout),st.onreadystatechange=()=>{var ct;st.readyState===3&&((ct=this.opts.cookieJar)===null||ct===void 0||ct.parseCookies(st)),st.readyState===4&&(st.status===200||st.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof st.status=="number"?st.status:0)},0))},st.send(this.data)}catch(ct){this.setTimeoutFn(()=>{this.onError(ct)},0);return}typeof document<"u"&&(this.index=kp.requestsCount++,kp.requests[this.index]=this)}onError(et){this.emitReserved("error",et,this.xhr),this.cleanup(!0)}cleanup(et){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,et)try{this.xhr.abort()}catch{}typeof document<"u"&&delete kp.requests[this.index],this.xhr=null}}onLoad(){const et=this.xhr.responseText;et!==null&&(this.emitReserved("data",et),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Request$1.requestsCount=0;Request$1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request$1.requests)Request$1.requests.hasOwnProperty(_e)&&Request$1.requests[_e].abort()}const nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?et=>Promise.resolve().then(et):(et,rt)=>rt(et,0),WebSocket$1=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(et){super(et),this.supportsBinary=!et.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const et=this.uri(),rt=this.opts.protocols,st=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(st.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?rt?new WebSocket$1(et,rt):new WebSocket$1(et):new WebSocket$1(et,rt,st)}catch(ct){return this.emitReserved("error",ct)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=et=>this.onClose({description:"websocket connection closed",context:et}),this.ws.onmessage=et=>this.onData(et.data),this.ws.onerror=et=>this.onError("websocket error",et)}write(et){this.writable=!1;for(let rt=0;rt{const ft={};try{usingBrowserWebSocket&&this.ws.send(ut)}catch{}ct&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const et=this.opts.secure?"wss":"ws",rt=this.query||{};return this.opts.timestampRequests&&(rt[this.opts.timestampParam]=yeast()),this.supportsBinary||(rt.b64=1),this.createUri(et,rt)}check(){return!!WebSocket$1}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(et=>{this.onError("webtransport error",et)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(et=>{const rt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),st=et.readable.pipeThrough(rt).getReader(),ct=createPacketEncoderStream();ct.readable.pipeTo(et.writable),this.writer=ct.writable.getWriter();const ut=()=>{st.read().then(({done:gt,value:xt})=>{gt||(this.onPacket(xt),ut())}).catch(gt=>{})};ut();const ft={type:"open"};this.query.sid&&(ft.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ft).then(()=>this.onOpen())})}))}write(et){this.writable=!1;for(let rt=0;rt{ct&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var et;(et=this.transport)===null||et===void 0||et.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(_e){if(_e.length>2e3)throw"URI too long";const et=_e,rt=_e.indexOf("["),st=_e.indexOf("]");rt!=-1&&st!=-1&&(_e=_e.substring(0,rt)+_e.substring(rt,st).replace(/:/g,";")+_e.substring(st,_e.length));let ct=re$1.exec(_e||""),ut={},ft=14;for(;ft--;)ut[parts[ft]]=ct[ft]||"";return rt!=-1&&st!=-1&&(ut.source=et,ut.host=ut.host.substring(1,ut.host.length-1).replace(/;/g,":"),ut.authority=ut.authority.replace("[","").replace("]","").replace(/;/g,":"),ut.ipv6uri=!0),ut.pathNames=pathNames(ut,ut.path),ut.queryKey=queryKey(ut,ut.query),ut}function pathNames(_e,et){const rt=/\/{2,9}/g,st=et.replace(rt,"/").split("/");return(et.slice(0,1)=="/"||et.length===0)&&st.splice(0,1),et.slice(-1)=="/"&&st.splice(st.length-1,1),st}function queryKey(_e,et){const rt={};return et.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(st,ct,ut){ct&&(rt[ct]=ut)}),rt}let Socket$1=class Gu extends Emitter{constructor(et,rt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],et&&typeof et=="object"&&(rt=et,et=null),et?(et=parse(et),rt.hostname=et.host,rt.secure=et.protocol==="https"||et.protocol==="wss",rt.port=et.port,et.query&&(rt.query=et.query)):rt.host&&(rt.hostname=parse(rt.host).host),installTimerFunctions(this,rt),this.secure=rt.secure!=null?rt.secure:typeof location<"u"&&location.protocol==="https:",rt.hostname&&!rt.port&&(rt.port=this.secure?"443":"80"),this.hostname=rt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=rt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=rt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},rt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(et){const rt=Object.assign({},this.opts.query);rt.EIO=protocol$1,rt.transport=et,this.id&&(rt.sid=this.id);const st=Object.assign({},this.opts,{query:rt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[et]);return new transports[et](st)}open(){let et;if(this.opts.rememberUpgrade&&Gu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)et="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else et=this.transports[0];this.readyState="opening";try{et=this.createTransport(et)}catch{this.transports.shift(),this.open();return}et.open(),this.setTransport(et)}setTransport(et){this.transport&&this.transport.removeAllListeners(),this.transport=et,et.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",rt=>this.onClose("transport close",rt))}probe(et){let rt=this.createTransport(et),st=!1;Gu.priorWebsocketSuccess=!1;const ct=()=>{st||(rt.send([{type:"ping",data:"probe"}]),rt.once("packet",wt=>{if(!st)if(wt.type==="pong"&&wt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",rt),!rt)return;Gu.priorWebsocketSuccess=rt.name==="websocket",this.transport.pause(()=>{st||this.readyState!=="closed"&&(_t(),this.setTransport(rt),rt.send([{type:"upgrade"}]),this.emitReserved("upgrade",rt),rt=null,this.upgrading=!1,this.flush())})}else{const Tt=new Error("probe error");Tt.transport=rt.name,this.emitReserved("upgradeError",Tt)}}))};function ut(){st||(st=!0,_t(),rt.close(),rt=null)}const ft=wt=>{const Tt=new Error("probe error: "+wt);Tt.transport=rt.name,ut(),this.emitReserved("upgradeError",Tt)};function gt(){ft("transport closed")}function xt(){ft("socket closed")}function $t(wt){rt&&wt.name!==rt.name&&ut()}const _t=()=>{rt.removeListener("open",ct),rt.removeListener("error",ft),rt.removeListener("close",gt),this.off("close",xt),this.off("upgrading",$t)};rt.once("open",ct),rt.once("error",ft),rt.once("close",gt),this.once("close",xt),this.once("upgrading",$t),this.upgrades.indexOf("webtransport")!==-1&&et!=="webtransport"?this.setTimeoutFn(()=>{st||rt.open()},200):rt.open()}onOpen(){if(this.readyState="open",Gu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let et=0;const rt=this.upgrades.length;for(;et{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const et=this.getWritablePackets();this.transport.send(et),this.prevBufferLen=et.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let rt=1;for(let st=0;st0&&rt>this.maxPayload)return this.writeBuffer.slice(0,st);rt+=2}return this.writeBuffer}write(et,rt,st){return this.sendPacket("message",et,rt,st),this}send(et,rt,st){return this.sendPacket("message",et,rt,st),this}sendPacket(et,rt,st,ct){if(typeof rt=="function"&&(ct=rt,rt=void 0),typeof st=="function"&&(ct=st,st=null),this.readyState==="closing"||this.readyState==="closed")return;st=st||{},st.compress=st.compress!==!1;const ut={type:et,data:rt,options:st};this.emitReserved("packetCreate",ut),this.writeBuffer.push(ut),ct&&this.once("flush",ct),this.flush()}close(){const et=()=>{this.onClose("forced close"),this.transport.close()},rt=()=>{this.off("upgrade",rt),this.off("upgradeError",rt),et()},st=()=>{this.once("upgrade",rt),this.once("upgradeError",rt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?st():et()}):this.upgrading?st():et()),this}onError(et){Gu.priorWebsocketSuccess=!1,this.emitReserved("error",et),this.onClose("transport error",et)}onClose(et,rt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",et,rt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(et){const rt=[];let st=0;const ct=et.length;for(;sttypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,et){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let rt=0,st=_e.length;rt=0&&_e.num{delete this.acks[et];for(let gt=0;gt{this.io.clearTimeoutFn(ut),rt.apply(this,gt)};ft.withError=!0,this.acks[et]=ft}emitWithAck(et,...rt){return new Promise((st,ct)=>{const ut=(ft,gt)=>ft?ct(ft):st(gt);ut.withError=!0,rt.push(ut),this.emit(et,...rt)})}_addToQueue(et){let rt;typeof et[et.length-1]=="function"&&(rt=et.pop());const st={id:this._queueSeq++,tryCount:0,pending:!1,args:et,flags:Object.assign({fromQueue:!0},this.flags)};et.push((ct,...ut)=>st!==this._queue[0]?void 0:(ct!==null?st.tryCount>this._opts.retries&&(this._queue.shift(),rt&&rt(ct)):(this._queue.shift(),rt&&rt(null,...ut)),st.pending=!1,this._drainQueue())),this._queue.push(st),this._drainQueue()}_drainQueue(et=!1){if(!this.connected||this._queue.length===0)return;const rt=this._queue[0];rt.pending&&!et||(rt.pending=!0,rt.tryCount++,this.flags=rt.flags,this.emit.apply(this,rt.args))}packet(et){et.nsp=this.nsp,this.io._packet(et)}onopen(){typeof this.auth=="function"?this.auth(et=>{this._sendConnectPacket(et)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(et){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},et):et})}onerror(et){this.connected||this.emitReserved("connect_error",et)}onclose(et,rt){this.connected=!1,delete this.id,this.emitReserved("disconnect",et,rt),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(et=>{if(!this.sendBuffer.some(st=>String(st.id)===et)){const st=this.acks[et];delete this.acks[et],st.withError&&st.call(this,new Error("socket has been disconnected"))}})}onpacket(et){if(et.nsp===this.nsp)switch(et.type){case PacketType.CONNECT:et.data&&et.data.sid?this.onconnect(et.data.sid,et.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(et);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(et);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const st=new Error(et.data.message);st.data=et.data.data,this.emitReserved("connect_error",st);break}}onevent(et){const rt=et.data||[];et.id!=null&&rt.push(this.ack(et.id)),this.connected?this.emitEvent(rt):this.receiveBuffer.push(Object.freeze(rt))}emitEvent(et){if(this._anyListeners&&this._anyListeners.length){const rt=this._anyListeners.slice();for(const st of rt)st.apply(this,et)}super.emit.apply(this,et),this._pid&&et.length&&typeof et[et.length-1]=="string"&&(this._lastOffset=et[et.length-1])}ack(et){const rt=this;let st=!1;return function(...ct){st||(st=!0,rt.packet({type:PacketType.ACK,id:et,data:ct}))}}onack(et){const rt=this.acks[et.id];typeof rt=="function"&&(delete this.acks[et.id],rt.withError&&et.data.unshift(null),rt.apply(this,et.data))}onconnect(et,rt){this.id=et,this.recovered=rt&&this._pid===rt,this._pid=rt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(et=>this.emitEvent(et)),this.receiveBuffer=[],this.sendBuffer.forEach(et=>{this.notifyOutgoingListeners(et),this.packet(et)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(et=>et()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(et){return this.flags.compress=et,this}get volatile(){return this.flags.volatile=!0,this}timeout(et){return this.flags.timeout=et,this}onAny(et){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(et),this}prependAny(et){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(et),this}offAny(et){if(!this._anyListeners)return this;if(et){const rt=this._anyListeners;for(let st=0;st0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var et=Math.random(),rt=Math.floor(et*this.jitter*_e);_e=Math.floor(et*10)&1?_e+rt:_e-rt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};class Manager extends Emitter{constructor(et,rt){var st;super(),this.nsps={},this.subs=[],et&&typeof et=="object"&&(rt=et,et=void 0),rt=rt||{},rt.path=rt.path||"/socket.io",this.opts=rt,installTimerFunctions(this,rt),this.reconnection(rt.reconnection!==!1),this.reconnectionAttempts(rt.reconnectionAttempts||1/0),this.reconnectionDelay(rt.reconnectionDelay||1e3),this.reconnectionDelayMax(rt.reconnectionDelayMax||5e3),this.randomizationFactor((st=rt.randomizationFactor)!==null&&st!==void 0?st:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(rt.timeout==null?2e4:rt.timeout),this._readyState="closed",this.uri=et;const ct=rt.parser||parser;this.encoder=new ct.Encoder,this.decoder=new ct.Decoder,this._autoConnect=rt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(et){return arguments.length?(this._reconnection=!!et,this):this._reconnection}reconnectionAttempts(et){return et===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=et,this)}reconnectionDelay(et){var rt;return et===void 0?this._reconnectionDelay:(this._reconnectionDelay=et,(rt=this.backoff)===null||rt===void 0||rt.setMin(et),this)}randomizationFactor(et){var rt;return et===void 0?this._randomizationFactor:(this._randomizationFactor=et,(rt=this.backoff)===null||rt===void 0||rt.setJitter(et),this)}reconnectionDelayMax(et){var rt;return et===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=et,(rt=this.backoff)===null||rt===void 0||rt.setMax(et),this)}timeout(et){return arguments.length?(this._timeout=et,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(et){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const rt=this.engine,st=this;this._readyState="opening",this.skipReconnect=!1;const ct=on(rt,"open",function(){st.onopen(),et&&et()}),ut=gt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",gt),et?et(gt):this.maybeReconnectOnOpen()},ft=on(rt,"error",ut);if(this._timeout!==!1){const gt=this._timeout,xt=this.setTimeoutFn(()=>{ct(),ut(new Error("timeout")),rt.close()},gt);this.opts.autoUnref&&xt.unref(),this.subs.push(()=>{this.clearTimeoutFn(xt)})}return this.subs.push(ct),this.subs.push(ft),this}connect(et){return this.open(et)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const et=this.engine;this.subs.push(on(et,"ping",this.onping.bind(this)),on(et,"data",this.ondata.bind(this)),on(et,"error",this.onerror.bind(this)),on(et,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(et){try{this.decoder.add(et)}catch(rt){this.onclose("parse error",rt)}}ondecoded(et){nextTick(()=>{this.emitReserved("packet",et)},this.setTimeoutFn)}onerror(et){this.emitReserved("error",et)}socket(et,rt){let st=this.nsps[et];return st?this._autoConnect&&!st.active&&st.connect():(st=new Socket(this,et,rt),this.nsps[et]=st),st}_destroy(et){const rt=Object.keys(this.nsps);for(const st of rt)if(this.nsps[st].active)return;this._close()}_packet(et){const rt=this.encoder.encode(et);for(let st=0;stet()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(et,rt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",et,rt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const et=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const rt=this.backoff.duration();this._reconnecting=!0;const st=this.setTimeoutFn(()=>{et.skipReconnect||(this.emitReserved("reconnect_attempt",et.backoff.attempts),!et.skipReconnect&&et.open(ct=>{ct?(et._reconnecting=!1,et.reconnect(),this.emitReserved("reconnect_error",ct)):et.onreconnect()}))},rt);this.opts.autoUnref&&st.unref(),this.subs.push(()=>{this.clearTimeoutFn(st)})}}onreconnect(){const et=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",et)}}const cache={};function lookup(_e,et){typeof _e=="object"&&(et=_e,_e=void 0),et=et||{};const rt=url(_e,et.path||"/socket.io"),st=rt.source,ct=rt.id,ut=rt.path,ft=cache[ct]&&ut in cache[ct].nsps,gt=et.forceNew||et["force new connection"]||et.multiplex===!1||ft;let xt;return gt?xt=new Manager(st,et):(cache[ct]||(cache[ct]=new Manager(st,et)),xt=cache[ct]),rt.query&&!et.query&&(et.query=rt.queryKey),xt.socket(rt.path,et)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const port=9014,socketIo=lookup(`http://localhost:${port}`,{}),openDocs=()=>{openUrl("https://www.weiyuai.cn/docs/")},openUrl=_e=>{IS_ELECTRON?window.electronAPI.openUrl(_e):window.open(_e,"_blank")},sendMulticastMessage=_e=>{_e===null||_e===""||(IS_ELECTRON?window.electronAPI.sendMulticastMessage(_e):console.log("not electron"))},getSystemInfo=async()=>{if(IS_ELECTRON){let _e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",_e)}else return console.log("not electron"),{platform:"web"}},getIpAddress=async()=>IS_ELECTRON?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),setThemeModeElectron=_e=>{IS_ELECTRON?window.electronAPI.setThemeMode(_e):console.log("not electron")},requestMicrophoneAccess=async()=>{if(IS_ELECTRON){const _e=await window.electronAPI.requestMediaAccess("microphone");console.log("requestMicrophoneAccess:",_e)}else console.log("not electron")},requestCameraAccess=async()=>{if(IS_ELECTRON){const _e=await window.electronAPI.requestMediaAccess("camera");console.log("requestCameraAccess:",_e)}else console.log("not electron")},VideoChat=()=>{const _e=reactExports.useRef(null),et=reactExports.useRef(null);let rt=null,st=null;const ct=async()=>{requestMicrophoneAccess(),requestCameraAccess(),console.log("getMedia"),navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then($t=>{ut($t)}).catch($t=>{console.error("Error capturing media:",$t,$t.name)})},ut=$t=>{rt!==$t&&(rt=$t,_e.current&&(_e.current.srcObject=rt),st&&rt&&rt.getTracks().forEach(_t=>{st.addTrack(_t,rt)}))};reactExports.useEffect(()=>(st=new RTCPeerConnection,st.ontrack=$t=>{const[_t]=$t.streams;et.current&&(et.current.srcObject=_t)},st.oniceconnectionstatechange=()=>{(st==null?void 0:st.iceConnectionState)==="failed"&&console.error("Connection failed")},()=>{st&&(st.close(),st=null)}),[]);const ft=async $t=>{let _t=new RTCSessionDescription($t.offer);await st.setRemoteDescription(_t);let wt=await st.createAnswer();await st.setLocalDescription(wt)},gt=async $t=>{let _t=new RTCSessionDescription($t.answer);await st.setRemoteDescription(_t)},xt=$t=>{let _t=new RTCIceCandidate($t.candid);st.addIceCandidate(_t),st.onicecandidate=wt=>{wt.candidate}};return reactExports.useEffect(()=>{socketIo.connect();function $t(){console.log("socketIo connected")}function _t(){console.log("socketIo disconnected")}return socketIo.on("connect",$t),socketIo.on("disconnect",_t),socketIo.on("offersdp",ft),socketIo.on("answersdp",gt),socketIo.on("ice",xt),()=>{socketIo.off("connect",$t),socketIo.off("disconnect",_t),socketIo.off("offersdp",ft),socketIo.off("answersdp",gt),socketIo.off("ice",xt),socketIo.disconnect()}},[]),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("video",{ref:_e,autoPlay:!0,muted:!0}),jsxRuntimeExports.jsx("video",{ref:et,autoPlay:!0,muted:!0}),jsxRuntimeExports.jsx(Button$3,{onClick:ct,children:"呼叫"})]})},ChatPage=()=>{const _e=useIntl(),et=useNetworkStatus(),[rt,st]=reactExports.useState(!1);useAuthStore(br=>br.isMqttConnected);const ct=useUserStore(br=>br.userInfo),[ut,ft]=reactExports.useState(!1),[gt,xt]=reactExports.useState(0),{messageList:$t,addMessageList:_t}=useMessageStore(br=>({messageList:br.messageList,addMessageList:br.addMessageList})),{messages:wt,appendMsg:Tt,updateMsg:Rt,resetList:It}=useMessages([]),At=useThreadStore(br=>br.currentThread),[jt,Nt]=reactExports.useState(!1),kt=React$1.useRef(null),{isDarkMode:Ft}=reactExports.useContext(AppContext$2),{headerStyle:Ht}=useStyle(),Vt={align:"left",title:(()=>{if(At.user)return At.user.nickname.startsWith(I18_PREFIX)?_e.formatMessage({id:At.user.nickname,defaultMessage:At.user.nickname}):At.user.nickname})(),rightContent:[{icon:rt?"chevron-right":"ellipsis-h",onClick(br){console.log("navbar right onClick",br),st(mr=>!mr),emitter.emit(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL,!rt),IS_ELECTRON?window.electronAPI.showRightPanel(!rt):console.log("not electron")}}]},qt=[{name:"图片",type:"upload",code:"image",icon:"image",isHighlight:!1},{name:"文件",type:"upload",code:"file",icon:"file",isHighlight:!1},{name:"截图",code:"screenshot",icon:"camera",isHighlight:!1},{name:"视频",code:"webrtc",icon:"mic",isHighlight:!1}],Xt=async()=>{const br=await queryMessages({threads:[At.uid],pageNumber:gt,pageSize:10});console.log("queryMessages: ",br),br.data.code===200?(_t(br.data.data.content,At),xt(gt+1),ft(!1),br.data.data.empty):br.data.code===601||message.error(br.data.message)};reactExports.useEffect(()=>{It(),console.log("useEffect 1: ",At.user.nickname,wt.length),Xt(),kt.current&&(kt.current.scrollToEnd(),console.log("scrollToEnd:",kt))},[At]);const Gt=br=>{switch(br){case NOTIFICATION_THREAD:return"text";default:return"text"}};reactExports.useEffect(()=>{console.log("useEffect 2:",At.user.nickname,wt.length),$t.forEach(br=>{!wt.some(Er=>Er._id===br.uid)&&br.thread.uid===At.uid&&Tt({_id:br.uid,type:Gt(br.type),hasTime:!0,createdAt:hooks(br.createdAt).toDate().getTime(),content:{text:br.content},position:br.user.uid===ct.uid?"right":"left",user:{avatar:br.user.avatar}})})},[$t,At]);const Zt=async()=>{console.log("onRefresh"),ft(!0),Xt()},er=(br,mr)=>{if(!et){message.error("网络连接失败,请检查网络");return}if(br==="text"&&mr.trim()){let Er=getUUid();mqttSendTextMessage(Er,mr),kt.current.scrollToEnd(),console.log("scrollToEnd:",kt)}},lr=br=>{console.log("handleInputChange",br)},cr=br=>(console.log("handleImageSend",br),null),ur=(br,mr)=>{console.log("QuickReply:",br,mr),br.type!=="upload"&&(br.code==="screenshot"?IS_ELECTRON?window.electronAPI.screenshotCapture(br.name):console.log("not electron"):br.code==="webrtc"&&(console.log("webrtc"),dr()))},fr=br=>{const{type:mr,content:Er}=br;switch(mr){case"text":return jsxRuntimeExports.jsx(Bubble,{content:Er.text});case"image":return jsxRuntimeExports.jsx(Bubble,{type:"image",children:jsxRuntimeExports.jsx("img",{src:Er.picUrl,alt:""})});default:return null}},[hr,pr]=reactExports.useState(!1),dr=()=>{pr(!0)},yr=()=>{pr(!1)},Sr=()=>{pr(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ft&&jsxRuntimeExports.jsx(Helmet,{children:jsxRuntimeExports.jsx("link",{rel:"stylesheet",type:"text/css",href:"./assets/css/chatui/chatui-theme-dark.css"})}),jsxRuntimeExports.jsx(DropUpload,{children:At.uid===""?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header_1,{style:Ht,children:jsxRuntimeExports.jsx("div",{className:"header-right"})}),jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:!1})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Chat,{navbar:Vt,messages:wt,isTyping:jt,loadMoreText:"加载更多",onRefresh:Zt,messagesRef:kt,renderMessageContent:fr,inputOptions:{showCount:!1},quickReplies:qt,onQuickReplyClick:ur,onSend:er,onInputChange:lr,onImageSend:cr}),jsxRuntimeExports.jsx(Modal$2,{title:"Basic Modal",open:hr,onOk:yr,onCancel:Sr,children:jsxRuntimeExports.jsx(VideoChat,{})})]})})]})},Cuw=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Cuw"}),AI=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"AI"}),CustomerInfo=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"CustomerInfo"}),onChange=_e=>{console.log(_e)},items=[{key:"1",label:"AI助手",children:jsxRuntimeExports.jsx(AI,{})},{key:"2",label:"常用语",children:jsxRuntimeExports.jsx(Cuw,{})},{key:"3",label:"用户信息",children:jsxRuntimeExports.jsx(CustomerInfo,{})}],RightPanel=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Tabs$1,{centered:!0,defaultActiveKey:"1",items,onChange})});async function queryThreads(_e){return request("/api/v1/thread/query",{method:"GET",params:{..._e}})}async function startThread(_e){return request("/api/v1/thread/create",{method:"POST",data:{..._e}})}var Y=reactExports.createContext({}),F=()=>reactExports.useContext(Y),$$1=_e=>React$1.createElement(Y.Provider,{..._e});function le(){let _e=new Map;return{on(et,rt){return _e.has(et)?_e.get(et).add(rt):_e.set(et,new Set([rt])),this},off(et,rt){return _e.has(et)&&_e.get(et).delete(rt),this},emit(et,rt){return _e.has(et)&&_e.get(et).forEach(st=>{st(rt)}),this}}}var R$1=le(),B$1=()=>reactExports.useRef(new Map).current,z$1=()=>{},U=["resize","contextmenu","click","scroll","blur"],A$1={show({event:_e,id:et,props:rt,position:st}){_e.preventDefault&&_e.preventDefault(),R$1.emit(0).emit(et,{event:_e.nativeEvent||_e,props:rt,position:st})},hideAll(){R$1.emit(0)}};function Fe(_e){return{show(et){A$1.show({..._e,...et})},hideAll(){A$1.hideAll()}}}function G(){let _e=new Map,et,rt,st,ct,ut=!1;function ft(jt){ct=Array.from(jt.values()),et=-1,st=!0}function gt(){ct[et].node.focus()}let xt=()=>et>=0&&ct[et].isSubmenu,$t=()=>Array.from(ct[et].submenuRefTracker.values());function _t(){return et===-1?(wt(),!1):!0}function wt(){et+10?(et=0,ct=jt):ut=!0,st=!1,gt(),!0}return!1}function It(){if(_t()&&!st){let jt=_e.get(rt);rt.classList.remove("contexify_submenu-isOpen"),ct=jt.items,rt=jt.parentNode,jt.isRoot&&(st=!0,_e.clear()),ut||(et=jt.focusedIndex,gt())}}function At(jt){function Nt(kt){for(let Ft of kt)Ft.isSubmenu&&Ft.submenuRefTracker&&Nt(Array.from(Ft.submenuRefTracker.values())),Ft.keyMatcher&&Ft.keyMatcher(jt)}Nt(ct)}return{init:ft,moveDown:wt,moveUp:Tt,openSubmenu:Rt,closeSubmenu:It,matchKeys:At}}function I$1(_e){return typeof _e=="function"}function V(_e){return typeof _e=="string"}function _$1(_e,et){return reactExports.Children.map(reactExports.Children.toArray(_e).filter(Boolean),rt=>reactExports.cloneElement(rt,et))}function J(_e){let et={x:_e.clientX,y:_e.clientY},rt=_e.changedTouches;return rt&&(et.x=rt[0].clientX,et.y=rt[0].clientY),(!et.x||et.x<0)&&(et.x=0),(!et.y||et.y<0)&&(et.y=0),et}function k$1(_e,et){return I$1(_e)?_e(et):_e}function be(_e,et){return{..._e,...I$1(et)?et(_e):et}}var it=({id:_e,theme:et,style:rt,className:st,children:ct,animation:ut="fade",preventDefaultOnKeydown:ft=!0,disableBoundariesCheck:gt=!1,onVisibilityChange:xt,...$t})=>{let[_t,wt]=reactExports.useReducer(be,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),Tt=reactExports.useRef(null),Rt=B$1(),[It]=reactExports.useState(()=>G()),At=reactExports.useRef(),jt=reactExports.useRef();reactExports.useEffect(()=>(R$1.on(_e,kt).on(0,Ft),()=>{R$1.off(_e,kt).off(0,Ft)}),[_e,ut,gt]),reactExports.useEffect(()=>{_t.visible?It.init(Rt):Rt.clear()},[_t.visible,It,Rt]);function Nt(cr,ur){if(Tt.current&&!gt){let{innerWidth:fr,innerHeight:hr}=window,{offsetWidth:pr,offsetHeight:dr}=Tt.current;cr+pr>fr&&(cr-=cr+pr-fr),ur+dr>hr&&(ur-=ur+dr-hr)}return{x:cr,y:ur}}reactExports.useEffect(()=>{_t.visible&&wt(Nt(_t.x,_t.y))},[_t.visible]),reactExports.useEffect(()=>{function cr(fr){ft&&fr.preventDefault()}function ur(fr){switch(fr.key){case"Enter":case" ":It.openSubmenu()||Ft();break;case"Escape":Ft();break;case"ArrowUp":cr(fr),It.moveUp();break;case"ArrowDown":cr(fr),It.moveDown();break;case"ArrowRight":cr(fr),It.openSubmenu();break;case"ArrowLeft":cr(fr),It.closeSubmenu();break;default:It.matchKeys(fr);break}}if(_t.visible){window.addEventListener("keydown",ur);for(let fr of U)window.addEventListener(fr,Ft)}return()=>{window.removeEventListener("keydown",ur);for(let fr of U)window.removeEventListener(fr,Ft)}},[_t.visible,It,ft]);function kt({event:cr,props:ur,position:fr}){cr.stopPropagation();let hr=fr||J(cr),{x:pr,y:dr}=Nt(hr.x,hr.y);reactDomExports.flushSync(()=>{wt({visible:!0,willLeave:!1,x:pr,y:dr,triggerEvent:cr,propsFromTrigger:ur})}),clearTimeout(jt.current),!At.current&&I$1(xt)&&(xt(!0),At.current=!0)}function Ft(cr){cr!=null&&(cr.button===2||cr.ctrlKey)&&cr.type!=="contextmenu"||(ut&&(V(ut)||"exit"in ut&&ut.exit)?wt(ur=>({willLeave:ur.visible})):wt(ur=>({visible:ur.visible?!1:ur.visible})),jt.current=setTimeout(()=>{I$1(xt)&&xt(!1),At.current=!1}))}function Ht(){_t.willLeave&&_t.visible&&reactDomExports.flushSync(()=>wt({visible:!1,willLeave:!1}))}function Wt(){return V(ut)?clsx$1({[`contexify_willEnter-${ut}`]:Vt&&!er,[`contexify_willLeave-${ut} contexify_willLeave-'disabled'`]:Vt&&er}):ut&&"enter"in ut&&"exit"in ut?clsx$1({[`contexify_willEnter-${ut.enter}`]:ut.enter&&Vt&&!er,[`contexify_willLeave-${ut.exit} contexify_willLeave-'disabled'`]:ut.exit&&Vt&&er}):null}let{visible:Vt,triggerEvent:qt,propsFromTrigger:Xt,x:Gt,y:Zt,willLeave:er}=_t,lr=clsx$1("contexify",st,{[`contexify_theme-${et}`]:et},Wt());return React$1.createElement($$1,{value:Rt},Vt&&React$1.createElement("div",{...$t,className:lr,onAnimationEnd:Ht,style:{...rt,left:Gt,top:Zt,opacity:1},ref:Tt,role:"menu"},_$1(ct,{propsFromTrigger:Xt,triggerEvent:qt})))},pt=({id:_e,children:et,className:rt,style:st,triggerEvent:ct,data:ut,propsFromTrigger:ft,keyMatcher:gt,onClick:xt=z$1,disabled:$t=!1,hidden:_t=!1,closeOnClick:wt=!0,handlerEvent:Tt="onClick",...Rt})=>{let It=reactExports.useRef(),At=F(),jt={id:_e,data:ut,triggerEvent:ct,props:ft},Nt=k$1($t,jt),kt=k$1(_t,jt);function Ft(qt){jt.event=qt,qt.stopPropagation(),Nt||(wt?Ht():xt(jt))}function Ht(){let qt=It.current;qt.focus(),qt.addEventListener("animationend",()=>setTimeout(A$1.hideAll),{once:!0}),qt.classList.add("contexify_item-feedback"),xt(jt)}function Wt(qt){qt&&!Nt&&(It.current=qt,At.set(qt,{node:qt,isSubmenu:!1,keyMatcher:!Nt&&I$1(gt)&&(Xt=>{gt(Xt)&&(Xt.stopPropagation(),Xt.preventDefault(),jt.event=Xt,Ht())})}))}function Vt(qt){(qt.key==="Enter"||qt.key===" ")&&(qt.stopPropagation(),jt.event=qt,Ht())}return kt?null:React$1.createElement("div",{...Rt,[Tt]:Ft,className:clsx$1("contexify_item",rt,{"contexify_item-disabled":Nt}),style:st,onKeyDown:Vt,ref:Wt,tabIndex:-1,role:"menuitem","aria-disabled":Nt},React$1.createElement("div",{className:"contexify_itemContent"},et))},Et=({triggerEvent:_e,data:et,propsFromTrigger:rt,hidden:st=!1})=>k$1(st,{data:et,triggerEvent:_e,props:rt})?null:React$1.createElement("div",{className:"contexify_separator"}),re=()=>React$1.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"},React$1.createElement("polyline",{points:"9 18 15 12 9 6"})),ne=({className:_e,...et})=>React$1.createElement("div",{className:clsx$1("contexify_rightSlot",_e),...et}),Kt=({arrow:_e,children:et,disabled:rt=!1,hidden:st=!1,label:ct,className:ut,triggerEvent:ft,propsFromTrigger:gt,style:xt,...$t})=>{let _t=F(),wt=B$1(),Tt=reactExports.useRef(null),Rt={triggerEvent:ft,props:gt},It=k$1(rt,Rt),At=k$1(st,Rt);function jt(){let Ft=Tt.current;if(Ft){let Ht="contexify_submenu-bottom",Wt="contexify_submenu-right";Ft.classList.remove(Ht,Wt);let Vt=Ft.getBoundingClientRect();Vt.right>window.innerWidth&&Ft.classList.add(Wt),Vt.bottom>window.innerHeight&&Ft.classList.add(Ht)}}function Nt(Ft){Ft&&!It&&_t.set(Ft,{node:Ft,isSubmenu:!0,submenuRefTracker:wt,setSubmenuPosition:jt})}if(At)return null;let kt=clsx$1("contexify_item",ut,{"contexify_item-disabled":It});return React$1.createElement($$1,{value:wt},React$1.createElement("div",{...$t,className:kt,ref:Nt,tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":It,onMouseEnter:jt,onTouchStart:jt},React$1.createElement("div",{className:"contexify_itemContent",onClick:Ft=>Ft.stopPropagation()},ct,React$1.createElement(ne,null,_e||React$1.createElement(re,null))),React$1.createElement("div",{className:"contexify contexify_submenu",ref:Tt,style:xt},_$1(et,{propsFromTrigger:gt,triggerEvent:ft}))))};const ThreadList=()=>{const{isDarkMode:_e}=reactExports.useContext(AppContext$2),et=useNetworkStatus(),{threads:rt,currentThread:st,addThreads:ct,setCurrentThread:ut}=useThreadStore(At=>({threads:At.threads,currentThread:At.currentThread,addThreads:At.addThreads,setCurrentThread:At.setCurrentThread})),ft=async()=>{const At=await queryThreads({pageNumber:0,pageSize:10});console.log("queryThreads: ",At),At.data.code===200?(ct(At.data.data.content),At.data.data.empty):At.data.code===601||message.error(At.data.message)};reactExports.useEffect(()=>{ft()},[]),reactExports.useEffect(()=>{et&&console.log("TODO: ✅网络正常,需要重新拉取聊天记录")},[et]);const gt=At=>{console.log("handleSelectThreadClick",At.uid),ut(At)},xt=At=>typeof At=="string"?hooks(At).format("MM-DD HH:mm"):At,$t="thread_list_item",{show:_t}=Fe({id:$t});function wt(At,jt){console.log("handleContextMenu:",At," item:",jt),ut(jt),_t({event:At,props:{key:jt.uid}})}const Tt=({id:At,event:jt,props:Nt})=>{switch(At){case"copy":message.warning("TODO:复制"),console.log(jt,Nt);break;case"cut":console.log(jt,Nt);break;case"reload":console.log(jt,Nt);break}},Rt=At=>createAvatar(lorelei,{seed:At,size:40}).toDataUriSync(),It=At=>At.user.avatar===null||At.user.avatar===void 0?jsxRuntimeExports.jsx("img",{src:Rt(At.user.uid),alt:"Avatar"}):At.user.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:Rt(At.user.uid),alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:At.user.avatar});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{padding:10}}),et?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(Alert$1,{message:"网络断开",banner:!0}),rt.length>0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:rt.map(At=>jsxRuntimeExports.jsxs("li",{className:st.uid===At.uid?_e?"list-item-dark dark-active":"list-item active":_e?"list-item-dark":"list-item",onClick:()=>gt(At),onContextMenu:()=>wt(event,At),children:[jsxRuntimeExports.jsx("div",{className:"list-left",children:jsxRuntimeExports.jsx(Badge$1,{count:st.uid===At.uid?0:At.unreadCount,children:It(At)})}),jsxRuntimeExports.jsxs("div",{className:"list-right",children:[jsxRuntimeExports.jsxs("div",{className:"top",children:[jsxRuntimeExports.jsx("span",{className:"nickname",children:At.user.nickname&&At.user.nickname.startsWith(I18_PREFIX)?jsxRuntimeExports.jsx(FormattedMessage$1,{id:At.user.nickname,defaultMessage:At.user.nickname}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",At.user.nickname]})}),jsxRuntimeExports.jsx("span",{className:"timestamp",children:xt(At.createdAt)})]}),jsxRuntimeExports.jsx("div",{className:"bottom",children:jsxRuntimeExports.jsx("span",{className:"content",children:At.content})})]})]},At.uid))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:"暂无会话"})}),jsxRuntimeExports.jsxs(it,{id:$t,children:[jsxRuntimeExports.jsx(pt,{id:"copy",onClick:Tt,children:"Copy"}),jsxRuntimeExports.jsx(pt,{id:"cut",onClick:Tt,children:"Cut"}),jsxRuntimeExports.jsx(Et,{}),jsxRuntimeExports.jsx(Kt,{label:"Foobar",children:jsxRuntimeExports.jsx(pt,{id:"reload",onClick:Tt,children:"Reload"})})]})]})},{Sider:Sider$4,Content:Content$4}=Layout$2,Home=()=>{const{leftSiderStyle:_e,leftSiderWidth:et,rightSiderStyle:rt}=useStyle(),[st,ct]=reactExports.useState(!1);return reactExports.useEffect(()=>(console.log("thread home useEffect"),emitter.on(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL,ut=>{console.log("SWITCH_CHAT_RIGHT_PANEL",ut),ct(ut)}),()=>{console.log("thread home useEffect return"),emitter.off(EVENT_BUS_SWITCH_CHAT_RIGHT_PANEL)}),[]),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$4,{style:_e,width:et,children:jsxRuntimeExports.jsx(ThreadList,{})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Content$4,{children:jsxRuntimeExports.jsx(ChatPage,{})}),st&&jsxRuntimeExports.jsx(Sider$4,{width:"35%",style:rt,children:jsxRuntimeExports.jsx(RightPanel,{})})]})]})};function useWebNotification(){const[_e,et]=reactExports.useState(!1);return reactExports.useEffect(()=>{window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(rt){rt==="granted"?(console.log("Notification permission granted."),et(!0)):(console.log("notification denied"),et(!1))}):(console.log("已经授权或浏览器不支持通知"),et(!0))},[]),{isNotificationGranted:_e}}const useOrgStore=create$4()(devtools(persist(immer((_e,et)=>({orgTree:[],orgCurrent:{uid:"",name:"",avatar:"",description:""},setOrgCurrent(rt){_e({orgCurrent:rt})},resetOrg:()=>_e({orgCurrent:{uid:"",name:"",avatar:"",description:""}})})),{name:ORGANIZTION_STORE})));function r$1(_e){var et,rt,st="";if(typeof _e=="string"||typeof _e=="number")st+=_e;else if(typeof _e=="object")if(Array.isArray(_e)){var ct=_e.length;for(et=0;ettypeof _e=="number"&&!isNaN(_e),d=_e=>typeof _e=="string",u=_e=>typeof _e=="function",p=_e=>d(_e)||u(_e)?_e:null,m=_e=>reactExports.isValidElement(_e)||d(_e)||u(_e)||c(_e);function f(_e,et,rt){rt===void 0&&(rt=300);const{scrollHeight:st,style:ct}=_e;requestAnimationFrame(()=>{ct.minHeight="initial",ct.height=st+"px",ct.transition=`all ${rt}ms`,requestAnimationFrame(()=>{ct.height="0",ct.padding="0",ct.margin="0",setTimeout(et,rt)})})}function g(_e){let{enter:et,exit:rt,appendPosition:st=!1,collapse:ct=!0,collapseDuration:ut=300}=_e;return function(ft){let{children:gt,position:xt,preventExitTransition:$t,done:_t,nodeRef:wt,isIn:Tt,playToast:Rt}=ft;const It=st?`${et}--${xt}`:et,At=st?`${rt}--${xt}`:rt,jt=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const Nt=wt.current,kt=It.split(" "),Ft=Ht=>{Ht.target===wt.current&&(Rt(),Nt.removeEventListener("animationend",Ft),Nt.removeEventListener("animationcancel",Ft),jt.current===0&&Ht.type!=="animationcancel"&&Nt.classList.remove(...kt))};Nt.classList.add(...kt),Nt.addEventListener("animationend",Ft),Nt.addEventListener("animationcancel",Ft)},[]),reactExports.useEffect(()=>{const Nt=wt.current,kt=()=>{Nt.removeEventListener("animationend",kt),ct?f(Nt,_t,ut):_t()};Tt||($t?kt():(jt.current=1,Nt.className+=` ${At}`,Nt.addEventListener("animationend",kt)))},[Tt]),React$1.createElement(React$1.Fragment,null,gt)}}function y(_e,et){return _e!=null?{content:_e.content,containerId:_e.props.containerId,id:_e.props.toastId,theme:_e.props.theme,type:_e.props.type,data:_e.props.data||{},isLoading:_e.props.isLoading,icon:_e.props.icon,status:et}:{}}const v=new Map;let h=[];const T=new Set,E=_e=>T.forEach(et=>et(_e)),b=()=>v.size>0;function I(_e,et){var rt;if(et)return!((rt=v.get(et))==null||!rt.isToastActive(_e));let st=!1;return v.forEach(ct=>{ct.isToastActive(_e)&&(st=!0)}),st}function _(_e,et){m(_e)&&(b()||h.push({content:_e,options:et}),v.forEach(rt=>{rt.buildToast(_e,et)}))}function C(_e,et){v.forEach(rt=>{et!=null&&et!=null&&et.containerId?(et==null?void 0:et.containerId)===rt.id&&rt.toggle(_e,et==null?void 0:et.id):rt.toggle(_e,et==null?void 0:et.id)})}function L(_e){const{subscribe:et,getSnapshot:rt,setProps:st}=reactExports.useRef(function(ut){const ft=ut.containerId||1;return{subscribe(gt){const xt=function(_t,wt,Tt){let Rt=1,It=0,At=[],jt=[],Nt=[],kt=wt;const Ft=new Map,Ht=new Set,Wt=()=>{Nt=Array.from(Ft.values()),Ht.forEach(Xt=>Xt())},Vt=Xt=>{jt=Xt==null?[]:jt.filter(Gt=>Gt!==Xt),Wt()},qt=Xt=>{const{toastId:Gt,onOpen:Zt,updateId:er,children:lr}=Xt.props,cr=er==null;Xt.staleId&&Ft.delete(Xt.staleId),Ft.set(Gt,Xt),jt=[...jt,Xt.props.toastId].filter(ur=>ur!==Xt.staleId),Wt(),Tt(y(Xt,cr?"added":"updated")),cr&&u(Zt)&&Zt(reactExports.isValidElement(lr)&&lr.props)};return{id:_t,props:kt,observe:Xt=>(Ht.add(Xt),()=>Ht.delete(Xt)),toggle:(Xt,Gt)=>{Ft.forEach(Zt=>{Gt!=null&&Gt!==Zt.props.toastId||u(Zt.toggle)&&Zt.toggle(Xt)})},removeToast:Vt,toasts:Ft,clearQueue:()=>{It-=At.length,At=[]},buildToast:(Xt,Gt)=>{if((mr=>{let{containerId:Er,toastId:Tr,updateId:Mr}=mr;const Or=Er?Er!==_t:_t!==1,wr=Ft.has(Tr)&&Mr==null;return Or||wr})(Gt))return;const{toastId:Zt,updateId:er,data:lr,staleId:cr,delay:ur}=Gt,fr=()=>{Vt(Zt)},hr=er==null;hr&&It++;const pr={...kt,style:kt.toastStyle,key:Rt++,...Object.fromEntries(Object.entries(Gt).filter(mr=>{let[Er,Tr]=mr;return Tr!=null})),toastId:Zt,updateId:er,data:lr,closeToast:fr,isIn:!1,className:p(Gt.className||kt.toastClassName),bodyClassName:p(Gt.bodyClassName||kt.bodyClassName),progressClassName:p(Gt.progressClassName||kt.progressClassName),autoClose:!Gt.isLoading&&(dr=Gt.autoClose,yr=kt.autoClose,dr===!1||c(dr)&&dr>0?dr:yr),deleteToast(){const mr=Ft.get(Zt),{onClose:Er,children:Tr}=mr.props;u(Er)&&Er(reactExports.isValidElement(Tr)&&Tr.props),Tt(y(mr,"removed")),Ft.delete(Zt),It--,It<0&&(It=0),At.length>0?qt(At.shift()):Wt()}};var dr,yr;pr.closeButton=kt.closeButton,Gt.closeButton===!1||m(Gt.closeButton)?pr.closeButton=Gt.closeButton:Gt.closeButton===!0&&(pr.closeButton=!m(kt.closeButton)||kt.closeButton);let Sr=Xt;reactExports.isValidElement(Xt)&&!d(Xt.type)?Sr=reactExports.cloneElement(Xt,{closeToast:fr,toastProps:pr,data:lr}):u(Xt)&&(Sr=Xt({closeToast:fr,toastProps:pr,data:lr}));const br={content:Sr,props:pr,staleId:cr};kt.limit&&kt.limit>0&&It>kt.limit&&hr?At.push(br):c(ur)?setTimeout(()=>{qt(br)},ur):qt(br)},setProps(Xt){kt=Xt},setToggle:(Xt,Gt)=>{Ft.get(Xt).toggle=Gt},isToastActive:Xt=>jt.some(Gt=>Gt===Xt),getSnapshot:()=>kt.newestOnTop?Nt.reverse():Nt}}(ft,ut,E);v.set(ft,xt);const $t=xt.observe(gt);return h.forEach(_t=>_(_t.content,_t.options)),h=[],()=>{$t(),v.delete(ft)}},setProps(gt){var xt;(xt=v.get(ft))==null||xt.setProps(gt)},getSnapshot(){var gt;return(gt=v.get(ft))==null?void 0:gt.getSnapshot()}}}(_e)).current;st(_e);const ct=reactExports.useSyncExternalStore(et,rt,rt);return{getToastToRender:function(ut){if(!ct)return[];const ft=new Map;return ct.forEach(gt=>{const{position:xt}=gt.props;ft.has(xt)||ft.set(xt,[]),ft.get(xt).push(gt)}),Array.from(ft,gt=>ut(gt[0],gt[1]))},isToastActive:I,count:ct==null?void 0:ct.length}}function N(_e){const[et,rt]=reactExports.useState(!1),[st,ct]=reactExports.useState(!1),ut=reactExports.useRef(null),ft=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:gt,pauseOnHover:xt,closeToast:$t,onClick:_t,closeOnClick:wt}=_e;var Tt,Rt;function It(){rt(!0)}function At(){rt(!1)}function jt(Ft){const Ht=ut.current;ft.canDrag&&Ht&&(ft.didMove=!0,et&&At(),ft.delta=_e.draggableDirection==="x"?Ft.clientX-ft.start:Ft.clientY-ft.start,ft.start!==Ft.clientX&&(ft.canCloseOnClick=!1),Ht.style.transform=`translate3d(${_e.draggableDirection==="x"?`${ft.delta}px, var(--y)`:`0, calc(${ft.delta}px + var(--y))`},0)`,Ht.style.opacity=""+(1-Math.abs(ft.delta/ft.removalDistance)))}function Nt(){document.removeEventListener("pointermove",jt),document.removeEventListener("pointerup",Nt);const Ft=ut.current;if(ft.canDrag&&ft.didMove&&Ft){if(ft.canDrag=!1,Math.abs(ft.delta)>ft.removalDistance)return ct(!0),_e.closeToast(),void _e.collapseAll();Ft.style.transition="transform 0.2s, opacity 0.2s",Ft.style.removeProperty("transform"),Ft.style.removeProperty("opacity")}}(Rt=v.get((Tt={id:_e.toastId,containerId:_e.containerId,fn:rt}).containerId||1))==null||Rt.setToggle(Tt.id,Tt.fn),reactExports.useEffect(()=>{if(_e.pauseOnFocusLoss)return document.hasFocus()||At(),window.addEventListener("focus",It),window.addEventListener("blur",At),()=>{window.removeEventListener("focus",It),window.removeEventListener("blur",At)}},[_e.pauseOnFocusLoss]);const kt={onPointerDown:function(Ft){if(_e.draggable===!0||_e.draggable===Ft.pointerType){ft.didMove=!1,document.addEventListener("pointermove",jt),document.addEventListener("pointerup",Nt);const Ht=ut.current;ft.canCloseOnClick=!0,ft.canDrag=!0,Ht.style.transition="none",_e.draggableDirection==="x"?(ft.start=Ft.clientX,ft.removalDistance=Ht.offsetWidth*(_e.draggablePercent/100)):(ft.start=Ft.clientY,ft.removalDistance=Ht.offsetHeight*(_e.draggablePercent===80?1.5*_e.draggablePercent:_e.draggablePercent)/100)}},onPointerUp:function(Ft){const{top:Ht,bottom:Wt,left:Vt,right:qt}=ut.current.getBoundingClientRect();Ft.nativeEvent.type!=="touchend"&&_e.pauseOnHover&&Ft.clientX>=Vt&&Ft.clientX<=qt&&Ft.clientY>=Ht&&Ft.clientY<=Wt?At():It()}};return gt&&xt&&(kt.onMouseEnter=At,_e.stacked||(kt.onMouseLeave=It)),wt&&(kt.onClick=Ft=>{_t&&_t(Ft),ft.canCloseOnClick&&$t()}),{playToast:It,pauseToast:At,isRunning:et,preventExitTransition:st,toastRef:ut,eventHandlers:kt}}function $(_e){let{delay:et,isRunning:rt,closeToast:st,type:ct="default",hide:ut,className:ft,style:gt,controlledProgress:xt,progress:$t,rtl:_t,isIn:wt,theme:Tt}=_e;const Rt=ut||xt&&$t===0,It={...gt,animationDuration:`${et}ms`,animationPlayState:rt?"running":"paused"};xt&&(It.transform=`scaleX(${$t})`);const At=clsx("Toastify__progress-bar",xt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Tt}`,`Toastify__progress-bar--${ct}`,{"Toastify__progress-bar--rtl":_t}),jt=u(ft)?ft({rtl:_t,type:ct,defaultClassName:At}):clsx(At,ft),Nt={[xt&&$t>=1?"onTransitionEnd":"onAnimationEnd"]:xt&&$t<1?null:()=>{wt&&st()}};return React$1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Rt},React$1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Tt} Toastify__progress-bar--${ct}`}),React$1.createElement("div",{role:"progressbar","aria-hidden":Rt?"true":"false","aria-label":"notification timer",className:jt,style:It,...Nt}))}let w=1;const k=()=>""+w++;function P(_e){return _e&&(d(_e.toastId)||c(_e.toastId))?_e.toastId:k()}function M(_e,et){return _(_e,et),et.toastId}function x(_e,et){return{...et,type:et&&et.type||_e,toastId:P(et)}}function A(_e){return(et,rt)=>M(et,x(_e,rt))}function B(_e,et){return M(_e,x("default",et))}B.loading=(_e,et)=>M(_e,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...et})),B.promise=function(_e,et,rt){let st,{pending:ct,error:ut,success:ft}=et;ct&&(st=d(ct)?B.loading(ct,rt):B.loading(ct.render,{...rt,...ct}));const gt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},xt=(_t,wt,Tt)=>{if(wt==null)return void B.dismiss(st);const Rt={type:_t,...gt,...rt,data:Tt},It=d(wt)?{render:wt}:wt;return st?B.update(st,{...Rt,...It}):B(It.render,{...Rt,...It}),Tt},$t=u(_e)?_e():_e;return $t.then(_t=>xt("success",ft,_t)).catch(_t=>xt("error",ut,_t)),$t},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(_e,et)=>M(_e,x("default",{theme:"dark",...et})),B.dismiss=function(_e){(function(et){var rt;if(b()){if(et==null||d(rt=et)||c(rt))v.forEach(ct=>{ct.removeToast(et)});else if(et&&("containerId"in et||"id"in et)){var st;(st=v.get(et.containerId))!=null&&st.removeToast(et.id)||v.forEach(ct=>{ct.removeToast(et.id)})}}else h=h.filter(ct=>et!=null&&ct.options.toastId!==et)})(_e)},B.clearWaitingQueue=function(_e){_e===void 0&&(_e={}),v.forEach(et=>{!et.props.limit||_e.containerId&&et.id!==_e.containerId||et.clearQueue()})},B.isActive=I,B.update=function(_e,et){et===void 0&&(et={});const rt=((st,ct)=>{var ut;let{containerId:ft}=ct;return(ut=v.get(ft||1))==null?void 0:ut.toasts.get(st)})(_e,et);if(rt){const{props:st,content:ct}=rt,ut={delay:100,...st,...et,toastId:et.toastId||_e,updateId:k()};ut.toastId!==_e&&(ut.staleId=_e);const ft=ut.render||ct;delete ut.render,M(ft,ut)}},B.done=_e=>{B.update(_e,{progress:1})},B.onChange=function(_e){return T.add(_e),()=>{T.delete(_e)}},B.play=_e=>C(!0,_e),B.pause=_e=>C(!1,_e);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=_e=>{let{theme:et,type:rt,isLoading:st,...ct}=_e;return React$1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:et==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...ct})},z={info:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(_e){return React$1.createElement(D,{..._e},React$1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React$1.createElement("div",{className:"Toastify__spinner"})}},R=_e=>{const{isRunning:et,preventExitTransition:rt,toastRef:st,eventHandlers:ct,playToast:ut}=N(_e),{closeButton:ft,children:gt,autoClose:xt,onClick:$t,type:_t,hideProgressBar:wt,closeToast:Tt,transition:Rt,position:It,className:At,style:jt,bodyClassName:Nt,bodyStyle:kt,progressClassName:Ft,progressStyle:Ht,updateId:Wt,role:Vt,progress:qt,rtl:Xt,toastId:Gt,deleteToast:Zt,isIn:er,isLoading:lr,closeOnClick:cr,theme:ur}=_e,fr=clsx("Toastify__toast",`Toastify__toast-theme--${ur}`,`Toastify__toast--${_t}`,{"Toastify__toast--rtl":Xt},{"Toastify__toast--close-on-click":cr}),hr=u(At)?At({rtl:Xt,position:It,type:_t,defaultClassName:fr}):clsx(fr,At),pr=function(br){let{theme:mr,type:Er,isLoading:Tr,icon:Mr}=br,Or=null;const wr={theme:mr,type:Er};return Mr===!1||(u(Mr)?Or=Mr({...wr,isLoading:Tr}):reactExports.isValidElement(Mr)?Or=reactExports.cloneElement(Mr,wr):Tr?Or=z.spinner():(Cr=>Cr in z)(Er)&&(Or=z[Er](wr))),Or}(_e),dr=!!qt||!xt,yr={closeToast:Tt,type:_t,theme:ur};let Sr=null;return ft===!1||(Sr=u(ft)?ft(yr):reactExports.isValidElement(ft)?reactExports.cloneElement(ft,yr):function(br){let{closeToast:mr,theme:Er,ariaLabel:Tr="close"}=br;return React$1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Er}`,type:"button",onClick:Mr=>{Mr.stopPropagation(),mr(Mr)},"aria-label":Tr},React$1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(yr)),React$1.createElement(Rt,{isIn:er,done:Zt,position:It,preventExitTransition:rt,nodeRef:st,playToast:ut},React$1.createElement("div",{id:Gt,onClick:$t,"data-in":er,className:hr,...ct,style:jt,ref:st},React$1.createElement("div",{...er&&{role:Vt},className:u(Nt)?Nt({type:_t}):clsx("Toastify__toast-body",Nt),style:kt},pr!=null&&React$1.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!lr})},pr),React$1.createElement("div",null,gt)),Sr,React$1.createElement($,{...Wt&&!dr?{key:`pb-${Wt}`}:{},rtl:Xt,theme:ur,delay:xt,isRunning:et,isIn:er,closeToast:Tt,hide:wt,type:_t,style:Ht,className:Ft,controlledProgress:dr,progress:qt||0})))},S=function(_e,et){return et===void 0&&(et=!1),{enter:`Toastify--animate Toastify__${_e}-enter`,exit:`Toastify--animate Toastify__${_e}-exit`,appendPosition:et}},H=g(S("bounce",!0));g(S("slide",!0));g(S("zoom"));g(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(_e){let et={...q,..._e};const rt=_e.stacked,[st,ct]=reactExports.useState(!0),ut=reactExports.useRef(null),{getToastToRender:ft,isToastActive:gt,count:xt}=L(et),{className:$t,style:_t,rtl:wt,containerId:Tt}=et;function Rt(At){const jt=clsx("Toastify__toast-container",`Toastify__toast-container--${At}`,{"Toastify__toast-container--rtl":wt});return u($t)?$t({position:At,rtl:wt,defaultClassName:jt}):clsx(jt,p($t))}function It(){rt&&(ct(!0),B.play())}return O(()=>{if(rt){var At;const jt=ut.current.querySelectorAll('[data-in="true"]'),Nt=12,kt=(At=et.position)==null?void 0:At.includes("top");let Ft=0,Ht=0;Array.from(jt).reverse().forEach((Wt,Vt)=>{const qt=Wt;qt.classList.add("Toastify__toast--stacked"),Vt>0&&(qt.dataset.collapsed=`${st}`),qt.dataset.pos||(qt.dataset.pos=kt?"top":"bot");const Xt=Ft*(st?.2:1)+(st?0:Nt*Vt);qt.style.setProperty("--y",`${kt?Xt:-1*Xt}px`),qt.style.setProperty("--g",`${Nt}`),qt.style.setProperty("--s",""+(1-(st?Ht:0))),Ft+=qt.offsetHeight,Ht+=.025})}},[st,xt,rt]),React$1.createElement("div",{ref:ut,className:"Toastify",id:Tt,onMouseEnter:()=>{rt&&(ct(!1),B.pause())},onMouseLeave:It},ft((At,jt)=>{const Nt=jt.length?{..._t}:{..._t,pointerEvents:"none"};return React$1.createElement("div",{className:Rt(At),style:Nt,key:`container-${At}`},jt.map(kt=>{let{content:Ft,props:Ht}=kt;return React$1.createElement(R,{...Ht,stacked:rt,collapseAll:It,isIn:gt(Ht.toastId,Ht.containerId),style:Ht.style,key:`toast-${Ht.key}`},Ft)}))}))}const NewFriendList=()=>{const _e=[];return jsxRuntimeExports.jsx("div",{children:_e.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:_e,renderItem:(et,rt)=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{avatar:jsxRuntimeExports.jsx(Avatar$2,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${rt}`}),title:jsxRuntimeExports.jsx("a",{children:et.title}),description:"Ant Design"})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{})})})},useContactStore=create$4()(devtools(persist(immer((_e,et)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},addNewfriend(rt){},addDevice(rt){if(rt.type===CONTACT_TYPE_DEVICE){let st=et().devices.some(ct=>ct.device.uid===rt.device.uid);_e(st?{devices:[rt,...et().devices.filter(ct=>ct.device.uid!==rt.device.uid)]}:{devices:[rt,...et().devices]}),et().currentContact.device.uid===rt.device.uid&&_e({currentContact:rt})}},addGroup(rt){},addChannel(rt){},addMember(rt){if(rt.type===CONTACT_TYPE_MEMBER){let st=et().members.some(ct=>ct.member.uid===rt.member.uid);_e(st?{members:[rt,...et().members.filter(ct=>ct.member.uid!==rt.member.uid)]}:{members:[...et().members,rt]})}},addFriend(rt){},setCurrentContact:rt=>{_e({currentContact:rt})},resetContactInfo(){_e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}}})}})),{name:CONTACT_STORE}))),ContactDeviceAvatar=_e=>{const et=rt=>{var st,ct,ut,ft,gt,xt,$t;return((st=rt==null?void 0:rt.user)==null?void 0:st.avatar)===null||((ct=rt==null?void 0:rt.user)==null?void 0:ct.avatar)===void 0||((ut=rt==null?void 0:rt.user)==null?void 0:ut.avatar)===""?jsxRuntimeExports.jsx("img",{src:generateAvatar((ft=rt==null?void 0:rt.user)==null?void 0:ft.uid),alt:"Avatar"}):((gt=rt==null?void 0:rt.user)==null?void 0:gt.avatar.indexOf("local"))>-1?jsxRuntimeExports.jsx("img",{src:generateAvatar((xt=rt==null?void 0:rt.user)==null?void 0:xt.uid),alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{shape:"square",size:"large",src:($t=rt==null?void 0:rt.user)==null?void 0:$t.avatar})};return jsxRuntimeExports.jsx("div",{children:et(_e)})},DeviceList=()=>{const{devices:_e,currentContact:et,setCurrentContact:rt}=useContactStore(ct=>({devices:ct.devices,currentContact:ct.currentContact,setCurrentContact:ct.setCurrentContact})),st=ct=>{console.log("handleContactClick",ct),rt(ct)};return jsxRuntimeExports.jsx("div",{children:_e.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:_e,renderItem:(ct,ut)=>{var ft,gt,xt;return jsxRuntimeExports.jsx(List.Item,{onClick:()=>st(ct),children:jsxRuntimeExports.jsx(List.Item.Meta,{style:((ft=et==null?void 0:et.device)==null?void 0:ft.uid)===((gt=ct==null?void 0:ct.device)==null?void 0:gt.uid)?{backgroundColor:"#f0f2f5"}:{},avatar:ContactDeviceAvatar(ct),title:(xt=ct==null?void 0:ct.user)==null?void 0:xt.nickname,description:ct==null?void 0:ct.createdAt})})}}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{description:"暂无设备"})})})},GroupList=()=>{const _e=[];return jsxRuntimeExports.jsx("div",{children:_e.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:_e,renderItem:(et,rt)=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{avatar:jsxRuntimeExports.jsx(Avatar$2,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${rt}`}),title:jsxRuntimeExports.jsx("a",{children:et.title}),description:"Ant Design"})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{})})})},ChannelList=()=>{const _e=[];return jsxRuntimeExports.jsx("div",{children:_e.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:_e,renderItem:(et,rt)=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{avatar:jsxRuntimeExports.jsx(Avatar$2,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${rt}`}),title:jsxRuntimeExports.jsx("a",{children:et.title}),description:"Ant Design"})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{})})})};async function queryAllMembers(_e){return request("/api/v1/mem/all",{method:"GET",params:{..._e,client:HTTP_CLIENT}})}const useMemberStore=create$4()(devtools(persist(immer((_e,et)=>({members:[],currentMember:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},addMembers:rt=>{const st=new Set(et().members.map(ut=>ut.uid)),ct=rt.filter(ut=>!st.has(ut.uid));_e({members:[...et().members,...ct]})},setCurrentMember(rt){_e({currentMember:rt})},setMemberResult:rt=>{et().addMembers(rt.data.content),_e({memberResult:rt})},resetMembers:()=>_e({members:[],currentMember:{nickname:"",user:{uid:"",avatar:""}}})})),{name:MEMBER_STORE}))),MemberList=()=>{console.log("MemberList");const _e=useUserStore(xt=>xt.userInfo),{members:et,addMember:rt,currentContact:st,setCurrentContact:ct}=useContactStore(xt=>({members:xt.members,addMember:xt.addMember,currentContact:xt.currentContact,setCurrentContact:xt.setCurrentContact})),ut=useMemberStore(xt=>xt.setMemberResult),ft=async()=>{if(console.log("getAllMembers"),_e.organizations===void 0||_e.organizations.length==0){console.log("userInfo.organizations is empty");return}let $t={pageNumber:0,pageSize:20,orgUid:_e.organizations[0]};const _t=await queryAllMembers($t);if(console.log("queryAllMembers:",$t,_t.data),_t.data.code===200){for(let wt=0;wt<_t.data.data.content.length;wt++){const Tt=_t.data.data.content[wt];rt({type:CONTACT_TYPE_MEMBER,member:Tt})}ut(_t.data)}else _t.data.code===601||message.error(_t.data.message)};reactExports.useEffect(()=>{ft()},[]);const gt=xt=>{console.log("handleContactClick",xt),ct(xt)};return jsxRuntimeExports.jsx("div",{children:et.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:et,renderItem:(xt,$t)=>jsxRuntimeExports.jsx(List.Item,{onClick:()=>gt(xt),children:jsxRuntimeExports.jsx(List.Item.Meta,{avatar:jsxRuntimeExports.jsx(Avatar$2,{src:xt.member.user.avatar}),title:jsxRuntimeExports.jsx("a",{children:xt.member.nickname}),description:xt.member.user.description})})}):jsxRuntimeExports.jsx("div",{onClick:ft,children:jsxRuntimeExports.jsx(Empty$1,{description:"暂无成员"})})})},FriendList=()=>{const _e=[];return jsxRuntimeExports.jsx("div",{children:_e.length>0?jsxRuntimeExports.jsx(List,{itemLayout:"horizontal",dataSource:_e,renderItem:(et,rt)=>jsxRuntimeExports.jsx(List.Item,{children:jsxRuntimeExports.jsx(List.Item.Meta,{avatar:jsxRuntimeExports.jsx(Avatar$2,{src:`https://api.dicebear.com/7.x/miniavs/svg?seed=${rt}`}),title:jsxRuntimeExports.jsx("a",{children:et.title}),description:"Ant Design"})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{})})})},ContactList=()=>{const _e=[{key:"new",label:"新朋友",children:jsxRuntimeExports.jsx(NewFriendList,{})},{key:"device",label:"内网设备",children:jsxRuntimeExports.jsx(DeviceList,{})},{key:"group",label:"群聊",children:jsxRuntimeExports.jsx(GroupList,{})},{key:"channel",label:"公众号",children:jsxRuntimeExports.jsx(ChannelList,{})},{key:"company",label:"企业联系人",children:jsxRuntimeExports.jsx(MemberList,{})},{key:"friend",label:"联系人",children:jsxRuntimeExports.jsx(FriendList,{})}],et=()=>{console.log("handleContactManager"),message.warning("敬请期待")};return jsxRuntimeExports.jsxs("div",{style:{padding:10},children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{paddingBottom:10}}),jsxRuntimeExports.jsx(Button$3,{icon:jsxRuntimeExports.jsx(ApartmentOutlined$1,{}),block:!0,onClick:et,children:"通讯录管理"}),jsxRuntimeExports.jsx(Collapse$1,{items:_e,bordered:!1,defaultActiveKey:["1"]})]})},DeviceDetail=()=>{var gt,xt,$t,_t,wt,Tt,Rt;const _e=useNavigate(),et=useContactStore(It=>It.currentContact),rt=useThreadStore(It=>It.addThread),st=useThreadStore(It=>It.setCurrentThread),ct=useSettingsStore(It=>It.setCurrentMenu),ut=[{key:"nickname",label:"昵称",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(gt=et==null?void 0:et.user)==null?void 0:gt.nickname})},{key:"uid",label:"uid",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(xt=et==null?void 0:et.device)==null?void 0:xt.uid})},{key:"model",label:"model",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:($t=et==null?void 0:et.device)==null?void 0:$t.model})},{key:"systemName",label:"system",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(_t=et==null?void 0:et.device)==null?void 0:_t.systemName})},{key:"version",label:"version",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(wt=et==null?void 0:et.device)==null?void 0:wt.version})},{key:"platform",label:"platform",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(Tt=et==null?void 0:et.device)==null?void 0:Tt.platform})},{key:"ip",label:"ip",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(Rt=et==null?void 0:et.device)==null?void 0:Rt.ip})},{key:"createdAt",label:"最近活跃时间",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et==null?void 0:et.createdAt})}],ft=()=>{console.log("startChat");const It={uid:et.user.uid,topic:et.user.uid,content:"",type:THREAD_LOCAL,user:{uid:et.user.uid,nickname:et.user.nickname,avatar:et.user.avatar}};rt(It),st(It),ct("chat"),_e("/chat")};return jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[ContactDeviceAvatar(et),jsxRuntimeExports.jsx(Descriptions$1,{style:{width:450,marginLeft:"20%",marginTop:"20px"},bordered:!0,column:1,title:"内网设备详情",items:ut}),jsxRuntimeExports.jsx(Button$3,{style:{marginTop:"20px"},onClick:ft,children:"传文件"})]})},MemberDetail=()=>{var gt,xt,$t,_t,wt,Tt,Rt;const _e=useNavigate(),et=useContactStore(It=>It.currentContact),rt=useThreadStore(It=>It.addThread),st=useThreadStore(It=>It.setCurrentThread),ct=useSettingsStore(It=>It.setCurrentMenu),ut=[{key:"1",label:"昵称",children:(gt=et==null?void 0:et.member)==null?void 0:gt.nickname},{key:"2",label:"email",children:(xt=et==null?void 0:et.member)==null?void 0:xt.email},{key:"3",label:"jobNo",children:($t=et==null?void 0:et.member)==null?void 0:$t.jobNo},{key:"4",label:"seatNo",children:(_t=et==null?void 0:et.member)==null?void 0:_t.seatNo},{key:"5",label:"telephone",children:(wt=et==null?void 0:et.member)==null?void 0:wt.telephone}],ft=async()=>{var At,jt,Nt,kt;console.log("startChat");const It=await startThread({user:{uid:(At=et==null?void 0:et.member)==null?void 0:At.user.uid,nickname:(jt=et==null?void 0:et.member)==null?void 0:jt.nickname,avatar:(Nt=et==null?void 0:et.member)==null?void 0:Nt.user.avatar},topic:(kt=et==null?void 0:et.member)==null?void 0:kt.user.uid,content:"",type:THREAD_MEMBER,extra:""});console.log("thread",It.data),It.data.code===200?(rt(It.data.data),st(It.data.data),ct("chat"),_e("/chat")):message.error(It.data.message)};return jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Avatar$2,{size:50,src:(Rt=(Tt=et==null?void 0:et.member)==null?void 0:Tt.user)==null?void 0:Rt.avatar}),jsxRuntimeExports.jsx(Descriptions$1,{style:{width:400,height:350,marginLeft:"20%",marginTop:"20px"},bordered:!0,column:1,title:"企业联系人详情",items:ut}),jsxRuntimeExports.jsx(Button$3,{style:{marginTop:"20px"},onClick:ft,children:"开始聊天"})]})},ContactDetail=()=>{const _e=useContactStore(et=>et.currentContact);return jsxRuntimeExports.jsxs("div",{children:[_e.type===CONTACT_TYPE_DEVICE&&jsxRuntimeExports.jsx(DeviceDetail,{}),_e.type===CONTACT_TYPE_MEMBER&&jsxRuntimeExports.jsx(MemberDetail,{}),_e.type===""&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{description:""})})]})},{Sider:Sider$3,Header:Header$3,Content:Content$3}=Layout$2,Contact=()=>{const{headerStyle:_e,leftSiderStyle:et,leftSiderWidth:rt,contentStyle:st}=useStyle();return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$3,{style:et,width:rt,children:jsxRuntimeExports.jsx(ContactList,{})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$3,{style:_e,children:"通讯录"}),jsxRuntimeExports.jsx(Content$3,{style:st,children:jsxRuntimeExports.jsx(ContactDetail,{})})]})]})},{Header:Header$2,Sider:Sider$2,Content:Content$2}=Layout$2,leftMenuItems$2=[{label:"公共",key:"server",children:[{label:"机器人1",key:"xinxixitongxiangmuguanlishi"}]},{label:"我的",key:"mine",children:[{label:"机器人2",key:"xitongjichengxiangmuguanligongchengshi"}]}],contentStyle={minHeight:120},Robot=()=>{const{headerStyle:_e,leftSiderStyle:et,leftSiderWidth:rt}=useStyle();reactExports.useEffect(()=>{},[]);const st=ct=>{console.log("menu click ",ct)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider$2,{style:et,width:rt,children:leftMenuItems$2.length>0?jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:st,defaultSelectedKeys:["xinxixitongxiangmuguanlishi"],defaultOpenKeys:["server","mine"],items:leftMenuItems$2}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Empty$1,{style:{marginTop:200},description:"empty"})})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$2,{style:_e,children:"AI助手"}),jsxRuntimeExports.jsx(Content$2,{style:contentStyle,children:"Robot"})]})]})},{Header:Header$1,Sider:Sider$1,Content:Content$1}=Layout$2,leftMenuItems$1=[{label:"发现",key:"plugins",children:[{label:"剪贴板",key:"copyboard"},{label:"收藏",key:"collect"},{label:"任务",key:"task"},{label:"笔记",key:"note"},{label:"右键菜单",key:"rightmenu"}]}],Plugins=()=>{const _e=useNavigate(),{headerStyle:et,leftSiderStyle:rt,leftSiderWidth:st,contentStyle:ct}=useStyle(),ut=ft=>{console.log("menu click ",ft),_e("/plugins/"+ft.key)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsxs(Sider$1,{style:rt,width:st,children:[jsxRuntimeExports.jsx(Input$3.Search,{style:{padding:10}}),jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:ut,defaultSelectedKeys:["copyboard"],defaultOpenKeys:["plugins"],items:leftMenuItems$1})]}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header$1,{style:et,children:"发现"}),jsxRuntimeExports.jsx(Content$1,{style:ct,children:jsxRuntimeExports.jsx(Outlet,{})})]})]})},{Header,Footer,Sider,Content}=Layout$2,leftMenuItems=[{label:"设置",key:"setting",children:[{label:"个人信息",key:"profile"},{label:"基本设置",key:"basic"},{label:"二维码",key:"qrcode"},{label:"快捷键",key:"shortcut"}]}],Setting=()=>{const _e=useNavigate(),{headerStyle:et,leftSiderStyle:rt,leftSiderWidth:st,contentStyle:ct}=useStyle();reactExports.useEffect(()=>{},[]);const ut=ft=>{console.log("menu click ",ft),_e("/setting/"+ft.key)};return jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Sider,{style:rt,width:st,children:jsxRuntimeExports.jsx(Menu$1,{mode:"inline",onClick:ut,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:leftMenuItems})}),jsxRuntimeExports.jsxs(Layout$2,{children:[jsxRuntimeExports.jsx(Header,{style:et,children:"我的"}),jsxRuntimeExports.jsx(Content,{style:ct,children:jsxRuntimeExports.jsx(Outlet,{})})]})]})};async function getOrg(_e){return request("/api/v1/org/uid",{method:"GET",params:{uid:_e,client:"web"}})}const Footbar=()=>{const{isLoggedIn:_e}=reactExports.useContext(AppContext$2),[et,rt]=reactExports.useState("✅"),[st,ct]=reactExports.useState("网络正常"),ut=useNetworkStatus();reactExports.useEffect(()=>{ut?(rt("✅"),ct("网络正常")):(rt("❌"),ct("网络断开"))},[ut]);const ft=jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("p",{children:"无需登录,即可支持同一个局域网内设备之间收发消息"})}),[gt,xt]=reactExports.useState(!1),$t=()=>{xt(!0)},_t=()=>{xt(!1)},wt=()=>{console.log("handleShowLoginModel"),$t()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Modal$2,{open:gt&&!_e,onOk:_t,onCancel:_t,footer:null,children:jsxRuntimeExports.jsx(Login,{isModel:!0})}),jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx(Popover$2,{content:ft,title:"匿名状态",children:jsxRuntimeExports.jsx("span",{className:"footerLeftButton",children:_e?"已登录":"匿名"})}),_e?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(Popover$2,{content:"点我登录",children:jsxRuntimeExports.jsx("span",{className:"footerLeftButton",onClick:wt,children:"登录"})})]}),jsxRuntimeExports.jsxs("span",{className:"footerRightButton",children:[jsxRuntimeExports.jsx(Tooltip$1,{title:st,children:jsxRuntimeExports.jsx("span",{children:et})}),jsxRuntimeExports.jsxs("span",{style:{marginLeft:"10px"},children:["v",getVersion()]})]})]})},useDeviceStore=create$4()(devtools(persist(immer((_e,et)=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(rt){console.log("addDevice",rt)},setCurrentDevice:rt=>{_e({currentDevice:rt})},setMyDevice(rt){_e({myDevice:rt})},resetDeviceInfo(){}})),{name:DEVICE_STORE}))),BROWSER_ALIASES_MAP={"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"},BROWSER_MAP={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"},PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},OS_MAP={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"},ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Utils{static getFirstMatch(et,rt){const st=rt.match(et);return st&&st.length>0&&st[1]||""}static getSecondMatch(et,rt){const st=rt.match(et);return st&&st.length>1&&st[2]||""}static matchAndReturnConst(et,rt,st){if(et.test(rt))return st}static getWindowsVersionName(et){switch(et){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(et){const rt=et.split(".").splice(0,2).map(st=>parseInt(st,10)||0);if(rt.push(0),rt[0]===10)switch(rt[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(et){const rt=et.split(".").splice(0,2).map(st=>parseInt(st,10)||0);if(rt.push(0),!(rt[0]===1&&rt[1]<5)){if(rt[0]===1&&rt[1]<6)return"Cupcake";if(rt[0]===1&&rt[1]>=6)return"Donut";if(rt[0]===2&&rt[1]<2)return"Eclair";if(rt[0]===2&&rt[1]===2)return"Froyo";if(rt[0]===2&&rt[1]>2)return"Gingerbread";if(rt[0]===3)return"Honeycomb";if(rt[0]===4&&rt[1]<1)return"Ice Cream Sandwich";if(rt[0]===4&&rt[1]<4)return"Jelly Bean";if(rt[0]===4&&rt[1]>=4)return"KitKat";if(rt[0]===5)return"Lollipop";if(rt[0]===6)return"Marshmallow";if(rt[0]===7)return"Nougat";if(rt[0]===8)return"Oreo";if(rt[0]===9)return"Pie"}}static getVersionPrecision(et){return et.split(".").length}static compareVersions(et,rt,st=!1){const ct=Utils.getVersionPrecision(et),ut=Utils.getVersionPrecision(rt);let ft=Math.max(ct,ut),gt=0;const xt=Utils.map([et,rt],$t=>{const _t=ft-Utils.getVersionPrecision($t),wt=$t+new Array(_t+1).join(".0");return Utils.map(wt.split("."),Tt=>new Array(20-Tt.length).join("0")+Tt).reverse()});for(st&&(gt=ft-Math.min(ct,ut)),ft-=1;ft>=gt;){if(xt[0][ft]>xt[1][ft])return 1;if(xt[0][ft]===xt[1][ft]){if(ft===gt)return 0;ft-=1}else if(xt[0][ft]{st[xt]=ft[xt]})}return et}static getBrowserAlias(et){return BROWSER_ALIASES_MAP[et]}static getBrowserTypeByAlias(et){return BROWSER_MAP[et]||""}}const commonVersionIdentifier=/version\/(\d+(\.?_?\d+)+)/i,browsersList=[{test:[/googlebot/i],describe(_e){const et={name:"Googlebot"},rt=Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/opera/i],describe(_e){const et={name:"Opera"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/opr\/|opios/i],describe(_e){const et={name:"Opera"},rt=Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/SamsungBrowser/i],describe(_e){const et={name:"Samsung Internet for Android"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/Whale/i],describe(_e){const et={name:"NAVER Whale Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/MZBrowser/i],describe(_e){const et={name:"MZ Browser"},rt=Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/focus/i],describe(_e){const et={name:"Focus"},rt=Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/swing/i],describe(_e){const et={name:"Swing"},rt=Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/coast/i],describe(_e){const et={name:"Opera Coast"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(_e){const et={name:"Opera Touch"},rt=Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/yabrowser/i],describe(_e){const et={name:"Yandex Browser"},rt=Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/ucbrowser/i],describe(_e){const et={name:"UC Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/Maxthon|mxios/i],describe(_e){const et={name:"Maxthon"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/epiphany/i],describe(_e){const et={name:"Epiphany"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/puffin/i],describe(_e){const et={name:"Puffin"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/sleipnir/i],describe(_e){const et={name:"Sleipnir"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/k-meleon/i],describe(_e){const et={name:"K-Meleon"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/micromessenger/i],describe(_e){const et={name:"WeChat"},rt=Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/qqbrowser/i],describe(_e){const et={name:/qqbrowserlite/i.test(_e)?"QQ Browser Lite":"QQ Browser"},rt=Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/msie|trident/i],describe(_e){const et={name:"Internet Explorer"},rt=Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/\sedg\//i],describe(_e){const et={name:"Microsoft Edge"},rt=Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/edg([ea]|ios)/i],describe(_e){const et={name:"Microsoft Edge"},rt=Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/vivaldi/i],describe(_e){const et={name:"Vivaldi"},rt=Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/seamonkey/i],describe(_e){const et={name:"SeaMonkey"},rt=Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/sailfish/i],describe(_e){const et={name:"Sailfish"},rt=Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,_e);return rt&&(et.version=rt),et}},{test:[/silk/i],describe(_e){const et={name:"Amazon Silk"},rt=Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/phantom/i],describe(_e){const et={name:"PhantomJS"},rt=Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/slimerjs/i],describe(_e){const et={name:"SlimerJS"},rt=Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(_e){const et={name:"BlackBerry"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/(web|hpw)[o0]s/i],describe(_e){const et={name:"WebOS Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e)||Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/bada/i],describe(_e){const et={name:"Bada"},rt=Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/tizen/i],describe(_e){const et={name:"Tizen"},rt=Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/qupzilla/i],describe(_e){const et={name:"QupZilla"},rt=Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/firefox|iceweasel|fxios/i],describe(_e){const et={name:"Firefox"},rt=Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/electron/i],describe(_e){const et={name:"Electron"},rt=Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/MiuiBrowser/i],describe(_e){const et={name:"Miui"},rt=Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/chromium/i],describe(_e){const et={name:"Chromium"},rt=Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,_e)||Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/chrome|crios|crmo/i],describe(_e){const et={name:"Chrome"},rt=Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/GSA/i],describe(_e){const et={name:"Google Search"},rt=Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){const et=!_e.test(/like android/i),rt=_e.test(/android/i);return et&&rt},describe(_e){const et={name:"Android Browser"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/playstation 4/i],describe(_e){const et={name:"PlayStation 4"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/safari|applewebkit/i],describe(_e){const et={name:"Safari"},rt=Utils.getFirstMatch(commonVersionIdentifier,_e);return rt&&(et.version=rt),et}},{test:[/.*/i],describe(_e){const et=/^(.*)\/(.*) /,rt=/^(.*)\/(.*)[ \t]\((.*)/,ct=_e.search("\\(")!==-1?rt:et;return{name:Utils.getFirstMatch(ct,_e),version:Utils.getSecondMatch(ct,_e)}}}],osParsersList=[{test:[/Roku\/DVP/],describe(_e){const et=Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,_e);return{name:OS_MAP.Roku,version:et}}},{test:[/windows phone/i],describe(_e){const et=Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,_e);return{name:OS_MAP.WindowsPhone,version:et}}},{test:[/windows /i],describe(_e){const et=Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,_e),rt=Utils.getWindowsVersionName(et);return{name:OS_MAP.Windows,version:et,versionName:rt}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(_e){const et={name:OS_MAP.iOS},rt=Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/,_e);return rt&&(et.version=rt),et}},{test:[/macintosh/i],describe(_e){const et=Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,_e).replace(/[_\s]/g,"."),rt=Utils.getMacOSVersionName(et),st={name:OS_MAP.MacOS,version:et};return rt&&(st.versionName=rt),st}},{test:[/(ipod|iphone|ipad)/i],describe(_e){const et=Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,_e).replace(/[_\s]/g,".");return{name:OS_MAP.iOS,version:et}}},{test(_e){const et=!_e.test(/like android/i),rt=_e.test(/android/i);return et&&rt},describe(_e){const et=Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,_e),rt=Utils.getAndroidVersionName(et),st={name:OS_MAP.Android,version:et};return rt&&(st.versionName=rt),st}},{test:[/(web|hpw)[o0]s/i],describe(_e){const et=Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,_e),rt={name:OS_MAP.WebOS};return et&&et.length&&(rt.version=et),rt}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(_e){const et=Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,_e)||Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,_e)||Utils.getFirstMatch(/\bbb(\d+)/i,_e);return{name:OS_MAP.BlackBerry,version:et}}},{test:[/bada/i],describe(_e){const et=Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,_e);return{name:OS_MAP.Bada,version:et}}},{test:[/tizen/i],describe(_e){const et=Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,_e);return{name:OS_MAP.Tizen,version:et}}},{test:[/linux/i],describe(){return{name:OS_MAP.Linux}}},{test:[/CrOS/],describe(){return{name:OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe(_e){const et=Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,_e);return{name:OS_MAP.PlayStation4,version:et}}}],platformParsersList=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(_e){const et=Utils.getFirstMatch(/(can-l01)/i,_e)&&"Nova",rt={type:PLATFORMS_MAP.mobile,vendor:"Huawei"};return et&&(rt.model=et),rt}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:PLATFORMS_MAP.tablet}}},{test(_e){const et=_e.test(/ipod|iphone/i),rt=_e.test(/like (ipod|iphone)/i);return et&&!rt},describe(_e){const et=Utils.getFirstMatch(/(ipod|iphone)/i,_e);return{type:PLATFORMS_MAP.mobile,vendor:"Apple",model:et}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getBrowserName(!0)==="blackberry"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test(_e){return _e.getBrowserName(!0)==="bada"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getBrowserName()==="windows phone"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test(_e){const et=Number(String(_e.getOSVersion()).split(".")[0]);return _e.getOSName(!0)==="android"&&et>=3},describe(){return{type:PLATFORMS_MAP.tablet}}},{test(_e){return _e.getOSName(!0)==="android"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(_e){return _e.getOSName(!0)==="macos"},describe(){return{type:PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test(_e){return _e.getOSName(!0)==="windows"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(_e){return _e.getOSName(!0)==="linux"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(_e){return _e.getOSName(!0)==="playstation 4"},describe(){return{type:PLATFORMS_MAP.tv}}},{test(_e){return _e.getOSName(!0)==="roku"},describe(){return{type:PLATFORMS_MAP.tv}}}],enginesParsersList=[{test(_e){return _e.getBrowserName(!0)==="microsoft edge"},describe(_e){if(/\sedg\//i.test(_e))return{name:ENGINE_MAP.Blink};const rt=Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,_e);return{name:ENGINE_MAP.EdgeHTML,version:rt}}},{test:[/trident/i],describe(_e){const et={name:ENGINE_MAP.Trident},rt=Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){return _e.test(/presto/i)},describe(_e){const et={name:ENGINE_MAP.Presto},rt=Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test(_e){const et=_e.test(/gecko/i),rt=_e.test(/like gecko/i);return et&&!rt},describe(_e){const et={name:ENGINE_MAP.Gecko},rt=Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe(_e){const et={name:ENGINE_MAP.WebKit},rt=Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,_e);return rt&&(et.version=rt),et}}];class Parser{constructor(et,rt=!1){if(et==null||et==="")throw new Error("UserAgent parameter can't be empty");this._ua=et,this.parsedResult={},rt!==!0&&this.parse()}getUA(){return this._ua}test(et){return et.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const et=Utils.find(browsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.browser=et.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(et){return et?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 et=Utils.find(osParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.os=et.describe(this.getUA())),this.parsedResult.os}getOSName(et){const{name:rt}=this.getOS();return et?String(rt).toLowerCase()||"":rt||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(et=!1){const{type:rt}=this.getPlatform();return et?String(rt).toLowerCase()||"":rt||""}parsePlatform(){this.parsedResult.platform={};const et=Utils.find(platformParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.platform=et.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(et){return et?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const et=Utils.find(enginesParsersList,rt=>{if(typeof rt.test=="function")return rt.test(this);if(rt.test instanceof Array)return rt.test.some(st=>this.test(st));throw new Error("Browser's test function is not valid")});return et&&(this.parsedResult.engine=et.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Utils.assign({},this.parsedResult)}satisfies(et){const rt={};let st=0;const ct={};let ut=0;if(Object.keys(et).forEach(gt=>{const xt=et[gt];typeof xt=="string"?(ct[gt]=xt,ut+=1):typeof xt=="object"&&(rt[gt]=xt,st+=1)}),st>0){const gt=Object.keys(rt),xt=Utils.find(gt,_t=>this.isOS(_t));if(xt){const _t=this.satisfies(rt[xt]);if(_t!==void 0)return _t}const $t=Utils.find(gt,_t=>this.isPlatform(_t));if($t){const _t=this.satisfies(rt[$t]);if(_t!==void 0)return _t}}if(ut>0){const gt=Object.keys(ct),xt=Utils.find(gt,$t=>this.isBrowser($t,!0));if(xt!==void 0)return this.compareVersion(ct[xt])}}isBrowser(et,rt=!1){const st=this.getBrowserName().toLowerCase();let ct=et.toLowerCase();const ut=Utils.getBrowserTypeByAlias(ct);return rt&&ut&&(ct=ut.toLowerCase()),ct===st}compareVersion(et){let rt=[0],st=et,ct=!1;const ut=this.getBrowserVersion();if(typeof ut=="string")return et[0]===">"||et[0]==="<"?(st=et.substr(1),et[1]==="="?(ct=!0,st=et.substr(2)):rt=[],et[0]===">"?rt.push(1):rt.push(-1)):et[0]==="="?st=et.substr(1):et[0]==="~"&&(ct=!0,st=et.substr(1)),rt.indexOf(Utils.compareVersions(ut,st,ct))>-1}isOS(et){return this.getOSName(!0)===String(et).toLowerCase()}isPlatform(et){return this.getPlatformType(!0)===String(et).toLowerCase()}isEngine(et){return this.getEngineName(!0)===String(et).toLowerCase()}is(et,rt=!1){return this.isBrowser(et,rt)||this.isOS(et)||this.isPlatform(et)}some(et=[]){return et.some(rt=>this.is(rt))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class Bowser{static getParser(et,rt=!1){if(typeof et!="string")throw new Error("UserAgent should be a string");return new Parser(et,rt)}static parse(et){return new Parser(et).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const Dashboard=()=>{const[_e,et]=reactExports.useState("/chat"),rt=useNavigate(),{clearStorage:st}=useStorage(),{isLoggedIn:ct}=reactExports.useContext(AppContext$2),{userInfo:ut,setUserInfo:ft}=useUserStore(er=>({userInfo:er.userInfo,setUserInfo:er.setUserInfo})),gt=useDeviceStore(er=>er.addDevice),{footerStyle:xt}=useStyle(),$t=useAuthStore(er=>er.accessToken),_t=useOrgStore(er=>er.setOrgCurrent),wt=async()=>{if(ut.organizations===void 0||ut.organizations.length==0)return;let er=ut.organizations[0];const cr=await getOrg(er);console.log("org",cr.data),cr.data.code===200?_t(cr.data.data):cr.data.code===601||(console.log("get org error",cr),message.error(cr.data.message))},Tt=useNetworkStatus();reactExports.useEffect(()=>{Tt?mqttConnect({uid:ut.uid,username:ut.username,accessToken:$t}):mqttDisconnect()},[Tt]);const Rt=()=>{rt("/setting")},It=reactExports.useCallback(async()=>{try{const er=await logout();console.log("logout result:",er),st()}catch(er){console.log("logout error:",er)}},[]),At=reactExports.useCallback(()=>{const{isNotificationGranted:er}=useWebNotification();console.log(er?"isNotificationGranted":"isNotification not Granted")},[]);IS_ELECTRON||At();const jt=()=>{let er="https://www.weiyuai.cn/docs/";IS_ELECTRON?window.electronAPI.openUrl(er):window.open(er,"_blank")},Nt=er=>{console.log(er),It()},kt=er=>{console.log(er)},Ft=()=>{const er=Bowser.getParser(window.navigator.userAgent);return console.log("browser:",er),IS_ELECTRON?(console.log("OsName:",er.getOSName()),er.getOSName()):(console.log("BrowserName:",er.getBrowserName()),er.getBrowserName())},Ht=reactExports.useMemo(()=>{const er=n({length:1,dictionaries:[r],style:"capital",seed:ut.uid});return Ft()+" "+er},[ut]),Wt=()=>{(ut.uid===void 0||ut.uid==="")&&(ut.uid=getUUid(),ft(ut)),(ut.nickname===void 0||ut.nickname==="")&&(console.log("generateUser:",Ht),ut.nickname=Ht,ft(ut))},Vt=()=>setInterval(()=>{let er={uid:ut.uid,nickname:ut.nickname,avatar:"local://avatar.png"};sendMulticastMessage(JSON.stringify(er))},5e3);reactExports.useEffect(()=>{var er=function(cr){console.log("token过期,强制刷新登录",cr),emitter.off(EVENT_BUS_TOKEN_INVALID,er),It()};return emitter.on(EVENT_BUS_TOKEN_INVALID,er),()=>{console.log("un - useEffect mqttDisconnect"),emitter.off(EVENT_BUS_TOKEN_INVALID,er)}},[]),reactExports.useEffect(()=>(IS_ELECTRON?(window.electronAPI.loginSuccess(),window.electronAPI.onMulticastMessage(er=>{let cr=JSON.parse(er);if(cr.user.uid!==ut.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",er);let ur={uid:cr.user.uid,nickname:cr.user.nickname,avatar:cr.user.avatar};gt(ur)}}),window.electronAPI.onWebSocketMessage(er=>{console.log("Dashboard onWebSocketMessage content:",er)}),window.electronAPI.onHttpMessage(er=>{console.log("Dashboard onHttpMessage content:",er)})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),IS_ELECTRON?(window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll()):console.log("not electron")}),[]),reactExports.useEffect(()=>{wt(),Wt();const er=Vt();return()=>{console.log("un - useEffect"),clearInterval(er)}},[ut]),reactExports.useEffect(()=>(mqttConnect({uid:ut.uid,username:ut.username,accessToken:$t}),()=>{mqttDisconnect()}),[$t]);const[qt,Gt]=reactExports.useState("");reactExports.useEffect(()=>{(async()=>{const cr=await getIpAddress();console.log("ipAddress",cr),Gt(cr)})()},[]);const Xt=()=>ct?[jsxRuntimeExports.jsx(Popconfirm$1,{title:"退出登录",description:"确定要退出登录?",onConfirm:Nt,onCancel:kt,okText:"确定",cancelText:"取消",children:jsxRuntimeExports.jsx(LogoutOutlined$1,{},"LogoutOutlined")}),jsxRuntimeExports.jsx(QuestionCircleFilled$1,{onClick:jt},"QuestionCircleFilled")]:[jsxRuntimeExports.jsx(QuestionCircleFilled$1,{onClick:jt},"QuestionCircleFilled")],Zt=reactExports.useMemo(()=>createAvatar(lorelei,{seed:ut.uid,size:40}).toDataUriSync(),[ut.uid]),lr=()=>ut.avatar===null||ut.avatar===void 0?jsxRuntimeExports.jsx("img",{style:{marginTop:30,cursor:"pointer"},src:Zt,alt:"Avatar",onClick:Rt}):ut.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{style:{marginTop:30,cursor:"pointer"},src:Zt,alt:"Avatar",onClick:Rt}):jsxRuntimeExports.jsx(Avatar$2,{style:{marginTop:30,cursor:"pointer"},size:40,src:ut.avatar,onClick:Rt});return jsxRuntimeExports.jsxs(ProLayout,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:[{path:"/chat",name:"对话",icon:jsxRuntimeExports.jsx(MessageOutlined$1,{}),component:jsxRuntimeExports.jsx(Home,{})},{path:"/contact",name:"通讯录",icon:jsxRuntimeExports.jsx(UserOutlined$1,{}),component:jsxRuntimeExports.jsx(Contact,{})},{path:"/robot",name:"AI助手",icon:jsxRuntimeExports.jsx(RobotOutlined$1,{}),component:jsxRuntimeExports.jsx(Robot,{})},{path:"/plugins",name:"插件",icon:jsxRuntimeExports.jsx(PlusOutlined$1,{}),component:jsxRuntimeExports.jsx(Plugins,{})},{path:"/setting",name:"我的",icon:jsxRuntimeExports.jsx(SettingOutlined$1,{}),component:jsxRuntimeExports.jsx(Setting,{})}]},location:{pathname:_e},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:er=>Xt(),menuHeaderRender:er=>lr(),menuFooterRender:er=>{er!=null&&er.collapsed},onMenuHeaderClick:er=>{console.log("onMenuHeaderClick",er)},menuItemRender:(er,cr)=>jsxRuntimeExports.jsx("a",{onClick:()=>{et(er.path),rt(er.path)},children:cr}),children:[jsxRuntimeExports.jsxs(Content_1,{children:[jsxRuntimeExports.jsx(Outlet,{}),jsxRuntimeExports.jsx(Q,{})]}),jsxRuntimeExports.jsx(Footer_1,{style:xt,children:jsxRuntimeExports.jsx(Footbar,{})})]})},Auth=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Outlet,{})}),layout={labelCol:{span:8},wrapperCol:{span:8}},validateMessages={required:"${label} is required!",types:{email:"${label} is not a valid email!",number:"${label} is not a valid number!"},number:{range:"${label} must be between ${min} and ${max}"}},Profile=()=>{const[_e]=Form.useForm(),et=useUserStore(gt=>gt.userInfo);let rt={file_name:"test.png",username:"",type:"",kbname:"",client:"web"};const st={name:"file",action:UPLOAD_AVATAR_URL,headers:{authorization:"authorization-text"},showUploadList:!1,data:rt,beforeUpload(gt){console.log("file:",gt," uploadData:",rt);let xt=hooks(new Date).format("YYYYMMDDHHmmss");return rt.file_name=xt+gt.name,!0},onChange(gt){if(gt.file.status!=="uploading"&&console.log(gt.file,gt.fileList),gt.file.status==="done"){let xt=gt.file.response.data;console.log("url: ",xt)}else gt.file.status}},ct=reactExports.useMemo(()=>createAvatar(lorelei,{seed:et.uid,size:100}).toDataUriSync(),[et.uid]),ut=async gt=>{console.log(et,gt)},ft=()=>et.avatar===null||et.avatar===void 0?jsxRuntimeExports.jsx("img",{src:ct,alt:"Avatar"}):et.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:ct,alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{src:et.avatar});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{style:{textAlign:"center",marginLeft:"20px",marginTop:"20px"},children:jsxRuntimeExports.jsxs(ProForm,{...layout,form:_e,onFinish:ut,initialValues:{nickname:et.nickname,email:et.email,mobile:et.mobile,description:et.description},validateMessages,children:[jsxRuntimeExports.jsx(Form.Item,{name:"avatar",valuePropName:"fileList",label:"头像",children:jsxRuntimeExports.jsxs(Upload$1,{...st,children:[ft(),jsxRuntimeExports.jsx(Button$3,{icon:jsxRuntimeExports.jsx(UploadOutlined$1,{}),children:"上传"})]},"avatar")}),jsxRuntimeExports.jsx(ProFormText$1,{name:"nickname",label:"昵称",rules:[{required:!0}],children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormText$1,{name:"email",label:"邮箱",rules:[{type:"email"}],children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormText$1,{name:"mobile",label:"手机号",children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormTextArea$1,{name:"description",label:"描述",children:jsxRuntimeExports.jsx(Input$3.TextArea,{})})]})})})},TasksContext=reactExports.createContext(null),TasksDispatchContext=reactExports.createContext(null);function TasksProvider({children:_e}){const[et,rt]=reactExports.useReducer(tasksReducer,initialTasks);return jsxRuntimeExports.jsx(TasksContext.Provider,{value:et,children:jsxRuntimeExports.jsx(TasksDispatchContext.Provider,{value:rt,children:_e})})}function useTasks(){return reactExports.useContext(TasksContext)}function useTasksDispatch(){return reactExports.useContext(TasksDispatchContext)}function tasksReducer(_e,et){switch(et.type){case"added":return[..._e,{id:et.id,text:et.text,done:!1}];case"changed":return _e.map(rt=>rt.id===et.task.id?et.task:rt);case"deleted":return _e.filter(rt=>rt.id!==et.id);default:throw Error("Unknown action: "+et.type)}}const initialTasks=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let nextId=3;function AddTask(){const[_e,et]=reactExports.useState(""),rt=useTasksDispatch();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{placeholder:"添加任务",value:_e,onChange:st=>et(st.target.value)}),jsxRuntimeExports.jsx("button",{onClick:()=>{et(""),rt({type:"added",id:nextId++,text:_e})},children:"添加"})]})}function TaskList(){const _e=useTasks();return jsxRuntimeExports.jsx("ul",{children:_e.map(et=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Task,{task:et})},et.id))})}function Task({task:_e}){const[et,rt]=reactExports.useState(!1),st=reactExports.useContext(TasksDispatchContext);let ct;return et?ct=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{value:_e.text,onChange:ut=>{st({type:"changed",task:{..._e,text:ut.target.value}})}}),jsxRuntimeExports.jsx("button",{onClick:()=>rt(!1),children:"保存"})]}):ct=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_e.text,jsxRuntimeExports.jsx("button",{onClick:()=>rt(!0),children:"编辑"})]}),jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:_e.done,onChange:ut=>{st({type:"changed",task:{..._e,done:ut.target.value}})}}),ct,jsxRuntimeExports.jsx("button",{onClick:()=>{st({type:"deleted",id:_e.id})},children:"删除"})]})}function TaskApp(){return jsxRuntimeExports.jsxs(TasksProvider,{children:[jsxRuntimeExports.jsx("h1",{children:"任务列表"}),jsxRuntimeExports.jsx(AddTask,{}),jsxRuntimeExports.jsx(TaskList,{})]})}const Note=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Note"}),Rightmenu=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Rightmenu"}),Copyboard=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Copyboard"}),Collect=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Collect"}),Basic=()=>{const _e=useNetworkStatus(),et=useAuthStore(kt=>kt.isMqttConnected),{userInfo:rt,setUserInfo:st}=useUserStore(kt=>({userInfo:kt.userInfo,setUserInfo:kt.setUserInfo})),[ct,ut]=reactExports.useState(!1),ft=kt=>{console.log("radio checked",kt.target.value),ut(kt.target.value),IS_ELECTRON?window.electronAPI.setOpenAtLogin(kt.target.value):console.log("not electron")},gt=async()=>{if(IS_ELECTRON){const kt=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",kt),ut(kt)}},xt=()=>{const kt=Bowser.getParser(window.navigator.userAgent);console.log("browser:",kt),IS_ELECTRON?console.log("OsName:",kt.getOSName()):console.log("BrowserName:",kt.getBrowserName())},$t=reactExports.useMemo(()=>createAvatar(lorelei,{seed:rt.uid,size:100}).toDataUriSync(),[]);reactExports.useEffect(()=>{gt(),xt(),getSystemInfo(),getIpAddress(),console.log("isNetworkOnline:",_e);let kt=getNetworkType();console.log("networkType:",kt)},[]);const{themeMode:_t,setThemeMode:wt}=reactExports.useContext(AppContext$2),Tt=kt=>{console.log("radio checked",kt.target.value),wt(kt.target.value),setThemeModeElectron(kt.target.value)},{locale:Rt,changeLocale:It}=reactExports.useContext(AppContext$2);async function At(){const kt=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});document.getElementById("device-name").innerHTML=kt.name||`ID: ${kt.id}`}function jt(){IS_ELECTRON&&window.electronAPI.cancelBluetoothRequest()}reactExports.useEffect(()=>(IS_ELECTRON?(document.getElementById("drag1").ondragstart=kt=>{kt.preventDefault(),window.electronAPI.startDrag("drag-and-drop-1.md")},document.getElementById("drag2").ondragstart=kt=>{kt.preventDefault(),window.electronAPI.startDrag("drag-and-drop-2.md")},window.electronAPI.bluetoothPairingRequest((kt,Ft)=>{let Ht;switch(Ft.pairingKind){case"confirm":{Ht.confirmed=window.confirm(`Do you want to connect to device ${Ft.deviceId}?`);break}case"confirmPin":{Ht.confirmed=window.confirm(`Does the pin ${Ft.pin} match the pin displayed on device ${Ft.deviceId}?`);break}case"providePin":{const Wt=window.prompt(`Please provide a pin for ${Ft.deviceId}.`);Wt?(Ht.pin=Wt,Ht.confirmed=!0):Ht.confirmed=!1}}window.electronAPI.bluetoothPairingResponse(Ht)})):console.log("not electron"),()=>{}),[]);const Nt=()=>{IS_ELECTRON?window.electronAPI.openUrl("https://www.weiyuai.cn"):console.log("not electron")};return jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",marginTop:"50px"},children:[jsxRuntimeExports.jsx("img",{src:$t,alt:"Avatar"}),jsxRuntimeExports.jsx("p",{children:rt.nickname}),jsxRuntimeExports.jsx("p",{children:et?"✅连接正常":"❌连接断开"}),jsxRuntimeExports.jsxs(Radio$2.Group,{onChange:ft,value:ct,children:[jsxRuntimeExports.jsx(Radio$2,{value:!0,children:"开机启动"}),jsxRuntimeExports.jsx(Radio$2,{value:!1,children:"开机不启动"})]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs(Radio$2.Group,{onChange:Tt,value:_t,children:[jsxRuntimeExports.jsx(Radio$2,{value:"light",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.light"})}),jsxRuntimeExports.jsx(Radio$2,{value:"dark",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.dark"})}),jsxRuntimeExports.jsx(Radio$2,{value:"system",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.system"})})]}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"app.title"})}),jsxRuntimeExports.jsxs(Radio$2.Group,{value:Rt,onChange:It,children:[jsxRuntimeExports.jsx(Radio$2.Button,{value:enUS$3,children:"English"},"en"),jsxRuntimeExports.jsx(Radio$2.Button,{value:zhCN$2,children:"中文"},"zh")]}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Button$3,{onClick:Nt,children:"openUrl"})}),jsxRuntimeExports.jsx("div",{style:{border:"2px solid black",padding:"5px",display:"inline-block"},draggable:"true",id:"drag1",children:"Drag me1"}),jsxRuntimeExports.jsx("div",{style:{border:"2px solid black",padding:"5px",display:"inline-block"},draggable:"true",id:"drag2",children:"Drag me2"}),jsxRuntimeExports.jsx("h1",{children:"Web Bluetooth API"}),jsxRuntimeExports.jsx(Button$3,{onClick:At,children:"Test Bluetooth"}),jsxRuntimeExports.jsx(Button$3,{onClick:jt,children:"Cancel Bluetooth Request"}),jsxRuntimeExports.jsxs("p",{children:["Currently selected bluetooth device: ",jsxRuntimeExports.jsx("strong",{id:"device-name"})]}),jsxRuntimeExports.jsxs("p",{children:["This feature will only work on macOS when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the macOS"," ",jsxRuntimeExports.jsx("code",{children:"plist"}),"for the app is updated to include the new protocol handler."," "]}),jsxRuntimeExports.jsxs("p",{children:["Then: Launch the app from a web link!",jsxRuntimeExports.jsx("a",{href:`${DEEP_LINK_WEIYUIM}://open`,children:"Click here to launch the app"})]})]})},ServerSwitch=()=>{const{token:_e}=theme.useToken(),{isDarkMode:et}=reactExports.useContext(AppContext$2),rt={background:et?"#141414":"#fff"},st=()=>{window.history.back()};return jsxRuntimeExports.jsxs("div",{id:"myserver",style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100%"},children:[jsxRuntimeExports.jsx(Header_1,{style:rt,children:"切换企业"}),jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto",marginTop:"50px",marginBottom:"50px"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:st,children:"返回"})]})},Qrcode=()=>{const _e=()=>{var rt;console.log("downloadQRCode");const et=(rt=document.getElementById("myqrcode"))==null?void 0:rt.querySelector("canvas");if(et){const st=et.toDataURL(),ct=document.createElement("a");ct.download="QRCode.png",ct.href=st,document.body.appendChild(ct),ct.click(),document.body.removeChild(ct)}else console.log("canvas is null")};return jsxRuntimeExports.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:_e,style:{marginTop:"20px"},children:"FIXME:Download"})]})},ShortcutAdmin=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{children:"ShortcutAdmin"})}),Drop=()=>{const{token:_e}=theme.useToken(),et=()=>{window.history.back()};return jsxRuntimeExports.jsxs("div",{id:"myserver",style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100%"},children:["AirDrop",jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:et,children:"返回"})]})},NoFoundPage=()=>{const _e=useNavigate();return jsxRuntimeExports.jsx(Result$1,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:()=>_e("/"),children:"返回主页"})})},router=createHashRouter([{path:"/",element:jsxRuntimeExports.jsx(Dashboard,{}),children:[{path:"/",element:jsxRuntimeExports.jsx(Home,{})},{path:"/chat",element:jsxRuntimeExports.jsx(Home,{})},{path:"/contact",element:jsxRuntimeExports.jsx(Contact,{})},{path:"/robot",element:jsxRuntimeExports.jsx(Robot,{})},{path:"/plugins",element:jsxRuntimeExports.jsx(Plugins,{}),children:[{path:"/plugins",element:jsxRuntimeExports.jsx(Collect,{})},{path:"/plugins/collect",element:jsxRuntimeExports.jsx(Collect,{})},{path:"/plugins/task",element:jsxRuntimeExports.jsx(TaskApp,{})},{path:"/plugins/note",element:jsxRuntimeExports.jsx(Note,{})},{path:"/plugins/copyboard",element:jsxRuntimeExports.jsx(Copyboard,{})},{path:"/plugins/rightmenu",element:jsxRuntimeExports.jsx(Rightmenu,{})}]},{path:"/setting",element:jsxRuntimeExports.jsx(Setting,{}),children:[{path:"/setting",element:jsxRuntimeExports.jsx(Profile,{})},{path:"/setting/profile",element:jsxRuntimeExports.jsx(Profile,{})},{path:"/setting/basic",element:jsxRuntimeExports.jsx(Basic,{})},{path:"/setting/qrcode",element:jsxRuntimeExports.jsx(Qrcode,{})},{path:"/setting/shortcut",element:jsxRuntimeExports.jsx(ShortcutAdmin,{})}]}]},{path:"/auth",element:jsxRuntimeExports.jsx(Auth,{}),children:[{path:"/auth",element:jsxRuntimeExports.jsx(Login,{})},{path:"/auth/login",element:jsxRuntimeExports.jsx(Login,{})},{path:"/auth/register",element:jsxRuntimeExports.jsx(Register,{})},{path:"/auth/server",element:jsxRuntimeExports.jsx(ServerSwitch,{})}]},{path:"/airdrop",element:jsxRuntimeExports.jsx(Drop,{})},{path:"*",element:jsxRuntimeExports.jsx(NoFoundPage,{})}]),menu$1={"menu.welcome":"欢迎","menu.choose":"综合知识","menu.compute":"论述题","menu.paper":"论文","menu.more-blocks":"更多区块","menu.home":"首页","menu.member":"成员","menu.organiztion":"组织","menu.organiztion.organiztion":"组织","menu.organiztion.member":"成员","menu.organiztion.role":"角色","menu.organiztion.group":"群组","menu.organiztion.column":"字段","menu.organiztion.message":"消息","menu.message":"消息","menu.service":"客服","menu.service.agent":"成员","menu.service.group":"技能组","menu.service.thread":"会话","menu.service.message":"消息","menu.service.column":"字段","menu.setting.profile":"个人信息","menu.setting.basic":"基本设置","menu.setting.qrcode":"二维码","menu.admin":"管理页","menu.admin.sub-page":"二级管理页","menu.login":"登录","menu.register":"注册","menu.register-result":"注册结果","menu.dashboard":"Dashboard","menu.dashboard.analysis":"分析页","menu.dashboard.monitor":"监控页","menu.dashboard.workplace":"工作台","menu.exception.403":"403","menu.exception.404":"404","menu.exception.500":"500","menu.form":"表单页","menu.form.basic-form":"基础表单","menu.form.step-form":"分步表单","menu.form.step-form.info":"分步表单(填写转账信息)","menu.form.step-form.confirm":"分步表单(确认转账信息)","menu.form.step-form.result":"分步表单(完成)","menu.form.advanced-form":"高级表单","menu.list":"列表页","menu.list.table-list":"查询表格","menu.list.basic-list":"标准列表","menu.list.card-list":"卡片列表","menu.list.search-list":"搜索列表","menu.list.search-list.articles":"搜索列表(文章)","menu.list.search-list.projects":"搜索列表(项目)","menu.list.search-list.applications":"搜索列表(应用)","menu.profile":"详情页","menu.profile.basic":"基础详情页","menu.profile.advanced":"高级详情页","menu.result":"结果页","menu.result.success":"成功页","menu.result.fail":"失败页","menu.exception":"异常页","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"触发错误","menu.account":"个人页","menu.account.center":"个人中心","menu.account.settings":"个人设置","menu.account.trigger":"触发报错","menu.account.logout":"退出登录","menu.editor":"图形编辑器","menu.editor.flow":"流程编辑器","menu.editor.mind":"脑图编辑器","menu.editor.koni":"拓扑编辑器","menu.robot":"AI助手","menu.knowledge":"知识库","menu.setting":"设置","menu.docs":"帮助"},pages$1={"pages.login.title":"微语","pages.layouts.userLayout.title":"企业即时通讯 & 在线客服系统 & 大模型AI助手","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.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.welcome.alertMessage":"更快更强的重型组件,已经发布。","pages.admin.subPage.title":" 这个页面只有 超级管理员 权限才能查看","pages.admin.subPage.alertMessage":"umi ui 现已发布,欢迎使用 npm run ui 启动体验。","pages.robot.new":"新建","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.searchTable.createForm.newRule":"新建规则","pages.searchTable.updateForm.ruleConfig":"规则配置","pages.searchTable.updateForm.basicConfig":"基本信息","pages.searchTable.updateForm.ruleName.nameLabel":"规则名称","pages.searchTable.updateForm.ruleName.nameRules":"请输入规则名称!","pages.searchTable.updateForm.ruleDesc.descLabel":"规则描述","pages.searchTable.updateForm.ruleDesc.descPlaceholder":"请输入至少五个字符","pages.searchTable.updateForm.ruleDesc.descRules":"请输入至少五个字符的规则描述!","pages.searchTable.updateForm.ruleProps.title":"配置规则属性","pages.searchTable.updateForm.object":"监控对象","pages.searchTable.updateForm.ruleProps.templateLabel":"规则模板","pages.searchTable.updateForm.ruleProps.typeLabel":"规则类型","pages.searchTable.updateForm.schedulingPeriod.title":"设定调度周期","pages.searchTable.updateForm.schedulingPeriod.timeLabel":"开始时间","pages.searchTable.updateForm.schedulingPeriod.timeRules":"请选择开始时间!","pages.searchTable.titleDesc":"描述","pages.searchTable.ruleName":"规则名称为必填项","pages.searchTable.titleCallNo":"服务调用次数","pages.searchTable.titleStatus":"状态","pages.searchTable.nameStatus.default":"关闭","pages.searchTable.nameStatus.running":"运行中","pages.searchTable.nameStatus.online":"已上线","pages.searchTable.nameStatus.abnormal":"异常","pages.searchTable.titleUpdatedAt":"上次调度时间","pages.searchTable.exception":"请输入异常原因!","pages.searchTable.titleOption":"操作","pages.searchTable.config":"配置","pages.searchTable.subscribeAlert":"订阅警报","pages.searchTable.title":"查询表格","pages.searchTable.new":"新建","pages.searchTable.chosen":"已选择","pages.searchTable.item":"项","pages.searchTable.totalServiceCalls":"服务调用次数总计","pages.searchTable.tenThousand":"万","pages.searchTable.batchDeletion":"批量删除","pages.searchTable.batchApproval":"批量审批","pages.footer.website":"微语官网","pages.footer.helpdoc":"帮助文档"},settings$1={"app.settings.menuMap.basic":"基本设置","app.settings.menuMap.security":"安全设置","app.settings.menuMap.binding":"账号绑定","app.settings.menuMap.notification":"新消息通知","app.settings.basic.avatar":"头像","app.settings.basic.change-avatar":"更换头像","app.settings.basic.email":"邮箱","app.settings.basic.email-message":"请输入您的邮箱!","app.settings.basic.nickname":"昵称","app.settings.basic.nickname-message":"请输入您的昵称!","app.settings.basic.profile":"个人简介","app.settings.basic.profile-message":"请输入个人简介!","app.settings.basic.profile-placeholder":"个人简介","app.settings.basic.country":"国家/地区","app.settings.basic.country-message":"请输入您的国家或地区!","app.settings.basic.geographic":"所在省市","app.settings.basic.geographic-message":"请输入您的所在省市!","app.settings.basic.address":"街道地址","app.settings.basic.address-message":"请输入您的街道地址!","app.settings.basic.phone":"联系电话","app.settings.basic.phone-message":"请输入您的联系电话!","app.settings.basic.update":"更新基本信息","app.settings.security.strong":"强","app.settings.security.medium":"中","app.settings.security.weak":"弱","app.settings.security.password":"账户密码","app.settings.security.password-description":"当前密码强度","app.settings.security.phone":"密保手机","app.settings.security.phone-description":"已绑定手机","app.settings.security.question":"密保问题","app.settings.security.question-description":"未设置密保问题,密保问题可有效保护账户安全","app.settings.security.email":"备用邮箱","app.settings.security.email-description":"已绑定邮箱","app.settings.security.mfa":"MFA 设备","app.settings.security.mfa-description":"未绑定 MFA 设备,绑定后,可以进行二次确认","app.settings.security.modify":"修改","app.settings.security.set":"设置","app.settings.security.bind":"绑定","app.settings.binding.taobao":"绑定淘宝","app.settings.binding.taobao-description":"当前未绑定淘宝账号","app.settings.binding.alipay":"绑定支付宝","app.settings.binding.alipay-description":"当前未绑定支付宝账号","app.settings.binding.dingding":"绑定钉钉","app.settings.binding.dingding-description":"当前未绑定钉钉账号","app.settings.binding.bind":"绑定","app.settings.notification.password":"账户密码","app.settings.notification.password-description":"其他用户的消息将以站内信的形式通知","app.settings.notification.messages":"系统消息","app.settings.notification.messages-description":"系统消息将以站内信的形式通知","app.settings.notification.todo":"待办任务","app.settings.notification.todo-description":"待办任务将以站内信的形式通知","app.settings.open":"开","app.settings.close":"关"},desktop$1={i18_file_asistant:"文件助手"},zh={"app.title":"微语","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":"主题",...pages$1,...menu$1,...settings$1,...desktop$1},menu={"menu.welcome":"Welcome","menu.more-blocks":"More Blocks","menu.home":"Home","menu.member":"Member","menu.organiztion":"Org","menu.organiztion.organiztion":"Organization","menu.organiztion.member":"Member","menu.organiztion.role":"Role","menu.organiztion.group":"Group","menu.organiztion.column":"Column","menu.organiztion.message":"Message","menu.message":"Message","menu.service":"CustomerService","menu.service.agent":"Agent","menu.service.group":"Group","menu.service.thread":"Thread","menu.service.message":"Message","menu.service.column":"Column","menu.setting.profile":"Profile","menu.setting.basic":"Basic","menu.setting.qrcode":"Qrcode","menu.admin":"Admin","menu.admin.sub-page":"Sub-Page","menu.login":"Login","menu.register":"Register","menu.register-result":"Register Result","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","menu.exception.403":"403","menu.exception.404":"404","menu.exception.500":"500","menu.form":"Form","menu.form.basic-form":"Basic Form","menu.form.step-form":"Step Form","menu.form.step-form.info":"Step Form(write transfer information)","menu.form.step-form.confirm":"Step Form(confirm transfer information)","menu.form.step-form.result":"Step Form(finished)","menu.form.advanced-form":"Advanced Form","menu.list":"List","menu.list.table-list":"Search Table","menu.list.basic-list":"Basic List","menu.list.card-list":"Card List","menu.list.search-list":"Search List","menu.list.search-list.articles":"Search List(articles)","menu.list.search-list.projects":"Search List(projects)","menu.list.search-list.applications":"Search List(applications)","menu.profile":"Profile","menu.profile.basic":"Basic Profile","menu.profile.advanced":"Advanced Profile","menu.result":"Result","menu.result.success":"Success","menu.result.fail":"Fail","menu.exception":"Exception","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"Trigger","menu.account":"Account","menu.account.center":"Account Center","menu.account.settings":"Account Settings","menu.account.trigger":"Trigger Error","menu.account.logout":"Logout","menu.editor":"Graphic Editor","menu.editor.flow":"Flow Editor","menu.editor.mind":"Mind Editor","menu.editor.koni":"Koni Editor","menu.robot":"Robot","menu.knowledge":"Knowledge","menu.setting":"Setting","menu.docs":"Help"},pages={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Team IM && Customer Service && AI ChatBot","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.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.welcome.alertMessage":"Faster and stronger heavy-duty components have been released.","pages.404.subTitle":"Sorry, the page you visited does not exist.","pages.404.buttonText":"Back Home","pages.admin.subPage.title":"This page can only be viewed by SuperAdmin","pages.admin.subPage.alertMessage":"Umi ui is now released, welcome to use npm run ui to start the experience.","pages.robot.new":"New","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.helpdoc":"help"},settings={"app.settings.menuMap.basic":"Basic Settings","app.settings.menuMap.security":"Security Settings","app.settings.menuMap.binding":"Account Binding","app.settings.menuMap.notification":"New Message Notification","app.settings.basic.avatar":"Avatar","app.settings.basic.change-avatar":"Change avatar","app.settings.basic.email":"Email","app.settings.basic.email-message":"Please input your email!","app.settings.basic.nickname":"Nickname","app.settings.basic.nickname-message":"Please input your Nickname!","app.settings.basic.profile":"Personal profile","app.settings.basic.profile-message":"Please input your personal profile!","app.settings.basic.profile-placeholder":"Brief introduction to yourself","app.settings.basic.country":"Country/Region","app.settings.basic.country-message":"Please input your country!","app.settings.basic.geographic":"Province or city","app.settings.basic.geographic-message":"Please input your geographic info!","app.settings.basic.address":"Street Address","app.settings.basic.address-message":"Please input your address!","app.settings.basic.phone":"Phone Number","app.settings.basic.phone-message":"Please input your phone!","app.settings.basic.update":"Update Information","app.settings.security.strong":"Strong","app.settings.security.medium":"Medium","app.settings.security.weak":"Weak","app.settings.security.password":"Account Password","app.settings.security.password-description":"Current password strength","app.settings.security.phone":"Security Phone","app.settings.security.phone-description":"Bound phone","app.settings.security.question":"Security Question","app.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","app.settings.security.email":"Backup Email","app.settings.security.email-description":"Bound Email","app.settings.security.mfa":"MFA Device","app.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","app.settings.security.modify":"Modify","app.settings.security.set":"Set","app.settings.security.bind":"Bind","app.settings.binding.taobao":"Binding Taobao","app.settings.binding.taobao-description":"Currently unbound Taobao account","app.settings.binding.alipay":"Binding Alipay","app.settings.binding.alipay-description":"Currently unbound Alipay account","app.settings.binding.dingding":"Binding DingTalk","app.settings.binding.dingding-description":"Currently unbound DingTalk account","app.settings.binding.bind":"Bind","app.settings.notification.password":"Account Password","app.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","app.settings.notification.messages":"System Messages","app.settings.notification.messages-description":"System messages will be notified in the form of a station letter","app.settings.notification.todo":"To-do Notification","app.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","app.settings.open":"Open","app.settings.close":"Close"},desktop={i18_file_asistant:"File Assistant"},en={"app.title":"Bytedesk","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",...menu,...settings,...pages,...desktop},{defaultAlgorithm,darkAlgorithm}=theme,messageMap={"zh-cn":zh,en},AppWrapper=()=>{const{isDarkMode:_e,locale:et}=reactExports.useContext(AppContext$2),rt=new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});return jsxRuntimeExports.jsx(ConfigProvider$1,{locale:et,theme:{algorithm:_e?darkAlgorithm:defaultAlgorithm},children:jsxRuntimeExports.jsx(QueryClientProvider,{client:rt,children:jsxRuntimeExports.jsx(HelmetProvider,{children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"loading..."}),children:jsxRuntimeExports.jsx(IntlProvider$1,{messages:messageMap[et.locale],locale:et.locale,defaultLocale:"zh",children:jsxRuntimeExports.jsxs(AntdApp,{children:[jsxRuntimeExports.jsx(AntdGlobalComp,{}),jsxRuntimeExports.jsx(RouterProvider,{router})]})})})})})})},App=()=>jsxRuntimeExports.jsx("div",{className:"App",children:jsxRuntimeExports.jsx(AppProvider,{children:jsxRuntimeExports.jsx(AppWrapper,{})})});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$1.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));postMessage({payload:"removeLoading"},"*")});export default Pm(); + */class Bowser{static getParser(et,rt=!1){if(typeof et!="string")throw new Error("UserAgent should be a string");return new Parser(et,rt)}static parse(et){return new Parser(et).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const a=_e=>{_e=1831565813+(_e|=0)|0;let et=Math.imul(_e^_e>>>15,1|_e);return et=et+Math.imul(et^et>>>7,61|et)^et,((et^et>>>14)>>>0)/4294967296};class e{constructor(et){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:rt,separator:st,dictionaries:ct,style:ut,seed:ft}=et;this.dictionaries=ct,this.separator=st,this.length=rt,this.style=ut,this.seed=ft}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries. +Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let et=this.seed;return this.dictionaries.slice(0,this.length).reduce((rt,st)=>{let ct;et?(ct=(ft=>{if(typeof ft=="string"){const gt=ft.split("").map($t=>$t.charCodeAt(0)).reduce(($t,_t)=>$t+_t,1),xt=Math.floor(Number(gt));return a(xt)}return a(ft)})(et),et=4294967296*ct):ct=Math.random();let ut=st[Math.floor(ct*st.length)]||"";if(this.style==="lowerCase")ut=ut.toLowerCase();else if(this.style==="capital"){const[ft,...gt]=ut.split("");ut=ft.toUpperCase()+gt.join("")}else this.style==="upperCase"&&(ut=ut.toUpperCase());return rt?`${rt}${this.separator}${ut}`:`${ut}`},"")}}const i={separator:"_",dictionaries:[]},n=_e=>{const et=[..._e&&_e.dictionaries||i.dictionaries],rt={...i,..._e,length:_e&&_e.length||et.length,dictionaries:et};if(!_e||!_e.dictionaries||!_e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new e(rt).generate()};var r=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];function useUserInfo(){console.debug("useUserInfo");const[_e,et]=reactExports.useState(""),{myDevice:rt,setMyDevice:st}=useDeviceStore(_t=>({myDevice:_t.myDevice,setMyDevice:_t.setMyDevice})),{userInfo:ct,setUserInfo:ut}=useUserStore(_t=>({userInfo:_t.userInfo,setUserInfo:_t.setUserInfo})),ft=()=>{const _t=Bowser.getParser(window.navigator.userAgent);console.debug("browser:",_t);let wt={uid:getUUid(),model:_t.getBrowserName(),systemName:_t.getOSName(),version:_t.getOSVersion(),platform:_t.getPlatformType(),ip:_e};return st(wt),IS_ELECTRON?(console.log("OsName:",_t.getOSName()),_t.getOSName()):(console.log("BrowserName:",_t.getBrowserName()),_t.getBrowserName())},gt=reactExports.useMemo(()=>{const _t=n({length:1,dictionaries:[r],style:"capital",seed:ct.uid});return ft()+" "+_t},[ct.uid]),xt=()=>{(ct.uid===void 0||ct.uid==="")&&(ct.uid=getUUid(),ut(ct)),(ct.nickname===void 0||ct.nickname==="")&&(console.log("generateUser:",gt),ct.nickname=gt,ut(ct)),console.log("generateUser:",ct)},$t=reactExports.useMemo(()=>(console.log("avatar",ct),createAvatar(lorelei,{seed:ct.uid,size:40}).toDataUriSync()),[ct.uid]);return reactExports.useEffect(()=>{console.log("useUserInfo useEffect"),xt()},[]),reactExports.useEffect(()=>{(async()=>{const wt=await getIpAddress();console.log("ipAddress",wt),wt.length>0&&(et(wt[0]),rt.ip=wt[0],st(rt))})()},[]),{userInfo:ct,setUserInfo:ut,avatar:$t}}const LeftNavAvatar=()=>{const _e=useNavigate(),{userInfo:et,avatar:rt}=useUserInfo(),st=()=>et.avatar===null||et.avatar===void 0||et.avatar===""?jsxRuntimeExports.jsx("img",{style:{marginTop:30,cursor:"pointer"},src:rt,alt:"Avatar",onClick:ct}):et.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{style:{marginTop:30,cursor:"pointer"},src:rt,alt:"Avatar",onClick:ct}):jsxRuntimeExports.jsx(Avatar$2,{style:{marginTop:30,cursor:"pointer"},size:40,src:et.avatar,onClick:ct}),ct=()=>{_e("/setting")};return jsxRuntimeExports.jsx("div",{children:st()})};function useMqtt(){console.log("useMqtt");const _e=useAuthStore(ct=>ct.accessToken),et=useUserStore(ct=>ct.userInfo),rt=useAuthStore(ct=>ct.isMqttConnected);reactExports.useEffect(()=>{console.log("isMqttConnected:",rt)},[rt]);const st=useNetworkStatus();return reactExports.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",st),st?mqttConnect({uid:et.uid,username:et.username,accessToken:_e}):mqttDisconnect()},[st]),reactExports.useEffect(()=>(console.log("useMqtt useEffect accessToken",_e),mqttConnect({uid:et.uid,username:et.username,accessToken:_e}),()=>{mqttDisconnect()}),[_e]),{isMqttConnected:rt}}const useStorage=()=>{const _e=useOrgStore(xt=>xt.resetOrg),et=useThreadStore(xt=>xt.resetThreads),rt=useMessageStore(xt=>xt.resetMessageList),st=useMemberStore(xt=>xt.resetMembers),ct=useAuthStore(xt=>xt.removeAccessToken),ut=useUserStore(xt=>xt.resetUserInfo),ft=useContactStore(xt=>xt.resetContactInfo);return{clearStorage:()=>{_e(),et(),rt(),st(),ct(),ut(),ft()}}};function useEventBus(){console.log("useEventBus");const{clearStorage:_e}=useStorage(),et=reactExports.useCallback(async()=>{try{const rt=await logout();console.log("logout result:",rt),_e()}catch(rt){console.log("logout error:",rt)}},[]);return reactExports.useEffect(()=>{console.log("useEventBus useEffect");var rt=function(st){console.log("token过期,强制刷新登录",st),emitter.off(EVENT_BUS_TOKEN_INVALID,rt),et()};return emitter.on(EVENT_BUS_TOKEN_INVALID,rt),()=>{console.log("un - useEffect mqttDisconnect"),emitter.off(EVENT_BUS_TOKEN_INVALID,rt)}},[]),{doLogout:et}}function useElectronApi(){console.log("useElectronApi");const _e=useUserStore(rt=>rt.userInfo),et=useContactStore(rt=>rt.addDevice);reactExports.useEffect(()=>(console.log("useElectronApi useEffect"),IS_ELECTRON?(window.electronAPI.loginSuccess(),window.electronAPI.onMulticastMessage(rt=>{let st=JSON.parse(rt);if(st.user.uid!==_e.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",rt);let ct={type:CONTACT_TYPE_DEVICE,device:st.device,user:st.user,createdAt:st.createdAt};et(ct)}}),window.electronAPI.onWebSocketMessage(rt=>{console.log("Dashboard onWebSocketMessage content:",rt)}),window.electronAPI.onHttpMessage(rt=>{console.log("Dashboard onHttpMessage content:",rt)})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),IS_ELECTRON?(window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll()):console.log("not electron")}),[])}const useMulticast=()=>{console.log("useMulticast");const _e=useUserStore(st=>st.userInfo),et=useDeviceStore(st=>st.myDevice),rt=()=>setInterval(()=>{let st={uid:_e.uid,nickname:_e.nickname,avatar:"local://avatar.png"},ct={type:"device",device:et,user:st,createdAt:currentTimestamp()};sendMulticastMessage(JSON.stringify(ct))},5e3);reactExports.useEffect(()=>{console.log("useMulticast useEffect");const st=rt();return()=>{console.log("un - useEffect"),clearInterval(st)}},[])},Dashboard=()=>{const[_e,et]=reactExports.useState("/chat"),rt=useNavigate(),{doLogout:st}=useEventBus(),{isLoggedIn:ct}=reactExports.useContext(AppContext$2),{footerStyle:ut}=useStyle(),ft=useOrgStore(Rt=>Rt.setOrgCurrent),{userInfo:gt}=useUserInfo();useMqtt(),useElectronApi(),useMulticast();const xt=async()=>{if(!ct||gt.organizations===void 0||gt.organizations.length==0)return;let Rt=gt.organizations[0];const It=await getOrg(Rt);console.log("org",It.data),It.data.code===200?ft(It.data.data):It.data.code===601||(console.log("get org error",It),message.error(It.data.message))},$t=reactExports.useCallback(()=>{const{isNotificationGranted:Rt}=useWebNotification();console.log(Rt?"isNotificationGranted":"isNotification not Granted")},[]);IS_ELECTRON||$t();const _t=Rt=>{console.log(Rt),st()},wt=Rt=>{console.log(Rt)};reactExports.useEffect(()=>(xt(),!IS_ELECTRON&&!ct&&console.log("web browser, TODO: 弹窗登录"),()=>{console.log("un - useEffect")}),[]);const Tt=()=>ct?[jsxRuntimeExports.jsx(Popconfirm$1,{title:"退出登录",description:"确定要退出登录?",onConfirm:_t,onCancel:wt,okText:"确定",cancelText:"取消",children:jsxRuntimeExports.jsx(LogoutOutlined$1,{},"LogoutOutlined")}),jsxRuntimeExports.jsx(QuestionCircleFilled$1,{onClick:openDocs},"QuestionCircleFilled")]:[jsxRuntimeExports.jsx(QuestionCircleFilled$1,{onClick:openDocs},"QuestionCircleFilled")];return reactExports.useEffect(()=>{socketIo.connect();function Rt(){console.log("socketIo connected")}function It(){console.log("socketIo disconnected")}return socketIo.on("connect",Rt),socketIo.on("disconnect",It),()=>{socketIo.off("connect",Rt),socketIo.off("disconnect",It),socketIo.disconnect()}},[]),jsxRuntimeExports.jsxs(ProLayout,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:[{path:"/chat",name:"对话",icon:jsxRuntimeExports.jsx(MessageOutlined$1,{}),component:jsxRuntimeExports.jsx(Home,{})},{path:"/contact",name:"通讯录",icon:jsxRuntimeExports.jsx(UserOutlined$1,{}),component:jsxRuntimeExports.jsx(Contact,{})},{path:"/robot",name:"AI助手",icon:jsxRuntimeExports.jsx(RobotOutlined$1,{}),component:jsxRuntimeExports.jsx(Robot,{})},{path:"/plugins",name:"插件",icon:jsxRuntimeExports.jsx(PlusOutlined$1,{}),component:jsxRuntimeExports.jsx(Plugins,{})},{path:"/setting",name:"我的",icon:jsxRuntimeExports.jsx(SettingOutlined$1,{}),component:jsxRuntimeExports.jsx(Setting,{})}]},location:{pathname:_e},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:Rt=>Tt(),menuHeaderRender:Rt=>jsxRuntimeExports.jsx(LeftNavAvatar,{}),menuFooterRender:Rt=>{Rt!=null&&Rt.collapsed},onMenuHeaderClick:Rt=>{console.log("onMenuHeaderClick",Rt)},menuItemRender:(Rt,It)=>jsxRuntimeExports.jsx("a",{onClick:()=>{et(Rt.path),rt(Rt.path)},children:It}),children:[jsxRuntimeExports.jsxs(Content_1,{children:[jsxRuntimeExports.jsx(Outlet,{}),jsxRuntimeExports.jsx(Q,{})]}),jsxRuntimeExports.jsx(Footer_1,{style:ut,children:jsxRuntimeExports.jsx(Footbar,{})})]})},Auth=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Outlet,{})}),layout={labelCol:{span:8},wrapperCol:{span:8}},validateMessages={required:"${label} is required!",types:{email:"${label} is not a valid email!",number:"${label} is not a valid number!"},number:{range:"${label} must be between ${min} and ${max}"}},Profile=()=>{const[_e]=Form.useForm(),{userInfo:et,avatar:rt}=useUserInfo();let st={file_name:"test.png",username:"",type:"",kbname:"",client:"web"};const ct={name:"file",action:UPLOAD_AVATAR_URL,headers:{authorization:"authorization-text"},showUploadList:!1,data:st,beforeUpload(gt){console.log("file:",gt," uploadData:",st);let xt=hooks(new Date).format("YYYYMMDDHHmmss");return st.file_name=xt+gt.name,!0},onChange(gt){if(gt.file.status!=="uploading"&&console.log(gt.file,gt.fileList),gt.file.status==="done"){let xt=gt.file.response.data;console.log("url: ",xt)}else gt.file.status}},ut=async gt=>{console.log(et,gt)},ft=()=>et.avatar===null||et.avatar===void 0||et.avatar===""?jsxRuntimeExports.jsx("img",{src:rt,alt:"Avatar"}):et.avatar.indexOf("local")>-1?jsxRuntimeExports.jsx("img",{src:rt,alt:"Avatar"}):jsxRuntimeExports.jsx(Avatar$2,{src:et.avatar});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{style:{textAlign:"center",marginLeft:"20px",marginTop:"20px"},children:jsxRuntimeExports.jsxs(ProForm,{...layout,form:_e,onFinish:ut,initialValues:{nickname:et.nickname,email:et.email,mobile:et.mobile,description:et.description},validateMessages,children:[jsxRuntimeExports.jsx(Form.Item,{name:"avatar",valuePropName:"fileList",label:"头像",children:jsxRuntimeExports.jsxs(Upload$1,{...ct,children:[ft(),jsxRuntimeExports.jsx(Button$3,{icon:jsxRuntimeExports.jsx(UploadOutlined$1,{}),children:"上传"})]},"avatar")}),jsxRuntimeExports.jsx(ProFormText$1,{name:"nickname",label:"昵称",rules:[{required:!0}],children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormText$1,{name:"email",label:"邮箱",rules:[{type:"email"}],children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormText$1,{name:"mobile",label:"手机号",children:jsxRuntimeExports.jsx(Input$3,{})}),jsxRuntimeExports.jsx(ProFormTextArea$1,{name:"description",label:"描述",children:jsxRuntimeExports.jsx(Input$3.TextArea,{})})]})})})},TasksContext=reactExports.createContext(null),TasksDispatchContext=reactExports.createContext(null);function TasksProvider({children:_e}){const[et,rt]=reactExports.useReducer(tasksReducer,initialTasks);return jsxRuntimeExports.jsx(TasksContext.Provider,{value:et,children:jsxRuntimeExports.jsx(TasksDispatchContext.Provider,{value:rt,children:_e})})}function useTasks(){return reactExports.useContext(TasksContext)}function useTasksDispatch(){return reactExports.useContext(TasksDispatchContext)}function tasksReducer(_e,et){switch(et.type){case"added":return[..._e,{id:et.id,text:et.text,done:!1}];case"changed":return _e.map(rt=>rt.id===et.task.id?et.task:rt);case"deleted":return _e.filter(rt=>rt.id!==et.id);default:throw Error("Unknown action: "+et.type)}}const initialTasks=[{id:0,text:"Philosopher’s Path",done:!0},{id:1,text:"Visit the temple",done:!1},{id:2,text:"Drink matcha",done:!1}];let nextId=3;function AddTask(){const[_e,et]=reactExports.useState(""),rt=useTasksDispatch();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{placeholder:"添加任务",value:_e,onChange:st=>et(st.target.value)}),jsxRuntimeExports.jsx("button",{onClick:()=>{et(""),rt({type:"added",id:nextId++,text:_e})},children:"添加"})]})}function TaskList(){const _e=useTasks();return jsxRuntimeExports.jsx("ul",{children:_e.map(et=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(Task,{task:et})},et.id))})}function Task({task:_e}){const[et,rt]=reactExports.useState(!1),st=reactExports.useContext(TasksDispatchContext);let ct;return et?ct=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{value:_e.text,onChange:ut=>{st({type:"changed",task:{..._e,text:ut.target.value}})}}),jsxRuntimeExports.jsx("button",{onClick:()=>rt(!1),children:"保存"})]}):ct=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_e.text,jsxRuntimeExports.jsx("button",{onClick:()=>rt(!0),children:"编辑"})]}),jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:_e.done,onChange:ut=>{st({type:"changed",task:{..._e,done:ut.target.value}})}}),ct,jsxRuntimeExports.jsx("button",{onClick:()=>{st({type:"deleted",id:_e.id})},children:"删除"})]})}function TaskApp(){return jsxRuntimeExports.jsxs(TasksProvider,{children:[jsxRuntimeExports.jsx("h1",{children:"任务列表"}),jsxRuntimeExports.jsx(AddTask,{}),jsxRuntimeExports.jsx(TaskList,{})]})}const Note=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Note"}),Rightmenu=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Rightmenu"}),Copyboard=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Copyboard"}),Collect=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Collect"}),Basic=()=>{const _e=useNetworkStatus(),et=useAuthStore(kt=>kt.isMqttConnected),{userInfo:rt,setUserInfo:st}=useUserStore(kt=>({userInfo:kt.userInfo,setUserInfo:kt.setUserInfo})),[ct,ut]=reactExports.useState(!1),ft=kt=>{console.log("radio checked",kt.target.value),ut(kt.target.value),IS_ELECTRON?window.electronAPI.setOpenAtLogin(kt.target.value):console.log("not electron")},gt=async()=>{if(IS_ELECTRON){const kt=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",kt),ut(kt)}},xt=()=>{const kt=Bowser.getParser(window.navigator.userAgent);console.log("browser:",kt),IS_ELECTRON?console.log("OsName:",kt.getOSName()):console.log("BrowserName:",kt.getBrowserName())},$t=reactExports.useMemo(()=>createAvatar(lorelei,{seed:rt.uid,size:100}).toDataUriSync(),[]);reactExports.useEffect(()=>{gt(),xt(),getSystemInfo(),getIpAddress(),console.log("isNetworkOnline:",_e);let kt=getNetworkType();console.log("networkType:",kt)},[]);const{themeMode:_t,setThemeMode:wt}=reactExports.useContext(AppContext$2),Tt=kt=>{console.log("radio checked",kt.target.value),wt(kt.target.value),setThemeModeElectron(kt.target.value)},{locale:Rt,changeLocale:It}=reactExports.useContext(AppContext$2);async function At(){const kt=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});document.getElementById("device-name").innerHTML=kt.name||`ID: ${kt.id}`}function jt(){IS_ELECTRON&&window.electronAPI.cancelBluetoothRequest()}reactExports.useEffect(()=>(IS_ELECTRON?(document.getElementById("drag1").ondragstart=kt=>{kt.preventDefault(),window.electronAPI.startDrag("drag-and-drop-1.md")},document.getElementById("drag2").ondragstart=kt=>{kt.preventDefault(),window.electronAPI.startDrag("drag-and-drop-2.md")},window.electronAPI.bluetoothPairingRequest((kt,Ft)=>{let Ht;switch(Ft.pairingKind){case"confirm":{Ht.confirmed=window.confirm(`Do you want to connect to device ${Ft.deviceId}?`);break}case"confirmPin":{Ht.confirmed=window.confirm(`Does the pin ${Ft.pin} match the pin displayed on device ${Ft.deviceId}?`);break}case"providePin":{const Wt=window.prompt(`Please provide a pin for ${Ft.deviceId}.`);Wt?(Ht.pin=Wt,Ht.confirmed=!0):Ht.confirmed=!1}}window.electronAPI.bluetoothPairingResponse(Ht)})):console.log("not electron"),()=>{}),[]);const Nt=()=>{IS_ELECTRON?window.electronAPI.openUrl("https://www.weiyuai.cn"):console.log("not electron")};return jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",marginTop:"50px"},children:[jsxRuntimeExports.jsx("img",{src:$t,alt:"Avatar"}),jsxRuntimeExports.jsx("p",{children:rt.nickname}),jsxRuntimeExports.jsx("p",{children:et?"✅连接正常":"❌连接断开"}),jsxRuntimeExports.jsx("p",{children:getVersion()}),jsxRuntimeExports.jsxs(Radio$2.Group,{onChange:ft,value:ct,children:[jsxRuntimeExports.jsx(Radio$2,{value:!0,children:"开机启动"}),jsxRuntimeExports.jsx(Radio$2,{value:!1,children:"开机不启动"})]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs(Radio$2.Group,{onChange:Tt,value:_t,children:[jsxRuntimeExports.jsx(Radio$2,{value:"light",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.light"})}),jsxRuntimeExports.jsx(Radio$2,{value:"dark",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.dark"})}),jsxRuntimeExports.jsx(Radio$2,{value:"system",children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"theme.system"})})]}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(FormattedMessage$1,{id:"app.title"})}),jsxRuntimeExports.jsxs(Radio$2.Group,{value:Rt,onChange:It,children:[jsxRuntimeExports.jsx(Radio$2.Button,{value:enUS$3,children:"English"},"en"),jsxRuntimeExports.jsx(Radio$2.Button,{value:zhCN$2,children:"中文"},"zh")]}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Button$3,{onClick:Nt,children:"openUrl"})}),jsxRuntimeExports.jsx("div",{style:{border:"2px solid black",padding:"5px",display:"inline-block"},draggable:"true",id:"drag1",children:"Drag me1"}),jsxRuntimeExports.jsx("div",{style:{border:"2px solid black",padding:"5px",display:"inline-block"},draggable:"true",id:"drag2",children:"Drag me2"}),jsxRuntimeExports.jsx("h1",{children:"Web Bluetooth API"}),jsxRuntimeExports.jsx(Button$3,{onClick:At,children:"Test Bluetooth"}),jsxRuntimeExports.jsx(Button$3,{onClick:jt,children:"Cancel Bluetooth Request"}),jsxRuntimeExports.jsxs("p",{children:["Currently selected bluetooth device: ",jsxRuntimeExports.jsx("strong",{id:"device-name"})]}),jsxRuntimeExports.jsxs("p",{children:["This feature will only work on macOS when your app is packaged. It will not work when you're launching it in development from the command-line. When you package your app you'll need to make sure the macOS"," ",jsxRuntimeExports.jsx("code",{children:"plist"}),"for the app is updated to include the new protocol handler."," "]}),jsxRuntimeExports.jsxs("p",{children:["Then: Launch the app from a web link!",jsxRuntimeExports.jsx("a",{href:`${DEEP_LINK_WEIYUIM}://open`,children:"Click here to launch the app"})]})]})},ServerSwitch=()=>{const{token:_e}=theme.useToken(),{isDarkMode:et}=reactExports.useContext(AppContext$2),rt={background:et?"#141414":"#fff"},st=()=>{window.history.back()};return jsxRuntimeExports.jsxs("div",{id:"myserver",style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100%"},children:[jsxRuntimeExports.jsx(Header_1,{style:rt,children:"切换企业"}),jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto",marginTop:"50px",marginBottom:"50px"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:st,children:"返回"})]})},Qrcode=()=>{const _e=()=>{var rt;console.log("downloadQRCode");const et=(rt=document.getElementById("myqrcode"))==null?void 0:rt.querySelector("canvas");if(et){const st=et.toDataURL(),ct=document.createElement("a");ct.download="QRCode.png",ct.href=st,document.body.appendChild(ct),ct.click(),document.body.removeChild(ct)}else console.log("canvas is null")};return jsxRuntimeExports.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(QRCode$1,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"https://cdn.bytedesk.com/admin/img/logo.e5991d62.png"}),jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:_e,style:{marginTop:"20px"},children:"FIXME:Download"})]})},ShortcutAdmin=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{children:"ShortcutAdmin"})}),Drop=()=>{const{token:_e}=theme.useToken(),et=()=>{window.history.back()};return jsxRuntimeExports.jsxs("div",{id:"myserver",style:{backgroundColor:_e.colorBgContainer,textAlign:"center",height:"100%"},children:["AirDrop",jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:et,children:"返回"})]})},NoFoundPage=()=>{const _e=useNavigate();return jsxRuntimeExports.jsx(Result$1,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:jsxRuntimeExports.jsx(Button$3,{type:"primary",onClick:()=>_e("/"),children:"返回主页"})})},router=createHashRouter([{path:"/",element:jsxRuntimeExports.jsx(Dashboard,{}),children:[{path:"/",element:jsxRuntimeExports.jsx(Home,{})},{path:"/chat",element:jsxRuntimeExports.jsx(Home,{})},{path:"/contact",element:jsxRuntimeExports.jsx(Contact,{})},{path:"/robot",element:jsxRuntimeExports.jsx(Robot,{})},{path:"/plugins",element:jsxRuntimeExports.jsx(Plugins,{}),children:[{path:"/plugins",element:jsxRuntimeExports.jsx(Collect,{})},{path:"/plugins/collect",element:jsxRuntimeExports.jsx(Collect,{})},{path:"/plugins/task",element:jsxRuntimeExports.jsx(TaskApp,{})},{path:"/plugins/note",element:jsxRuntimeExports.jsx(Note,{})},{path:"/plugins/copyboard",element:jsxRuntimeExports.jsx(Copyboard,{})},{path:"/plugins/rightmenu",element:jsxRuntimeExports.jsx(Rightmenu,{})}]},{path:"/setting",element:jsxRuntimeExports.jsx(Setting,{}),children:[{path:"/setting",element:jsxRuntimeExports.jsx(Profile,{})},{path:"/setting/profile",element:jsxRuntimeExports.jsx(Profile,{})},{path:"/setting/basic",element:jsxRuntimeExports.jsx(Basic,{})},{path:"/setting/qrcode",element:jsxRuntimeExports.jsx(Qrcode,{})},{path:"/setting/shortcut",element:jsxRuntimeExports.jsx(ShortcutAdmin,{})}]}]},{path:"/auth",element:jsxRuntimeExports.jsx(Auth,{}),children:[{path:"/auth",element:jsxRuntimeExports.jsx(Login,{})},{path:"/auth/login",element:jsxRuntimeExports.jsx(Login,{})},{path:"/auth/register",element:jsxRuntimeExports.jsx(Register,{})},{path:"/auth/server",element:jsxRuntimeExports.jsx(ServerSwitch,{})}]},{path:"/airdrop",element:jsxRuntimeExports.jsx(Drop,{})},{path:"*",element:jsxRuntimeExports.jsx(NoFoundPage,{})}]),menu$1={"menu.welcome":"欢迎","menu.choose":"综合知识","menu.compute":"论述题","menu.paper":"论文","menu.more-blocks":"更多区块","menu.home":"首页","menu.member":"成员","menu.organiztion":"组织","menu.organiztion.organiztion":"组织","menu.organiztion.member":"成员","menu.organiztion.role":"角色","menu.organiztion.group":"群组","menu.organiztion.column":"字段","menu.organiztion.message":"消息","menu.message":"消息","menu.service":"客服","menu.service.agent":"成员","menu.service.group":"技能组","menu.service.thread":"会话","menu.service.message":"消息","menu.service.column":"字段","menu.setting.profile":"个人信息","menu.setting.basic":"基本设置","menu.setting.qrcode":"二维码","menu.admin":"管理页","menu.admin.sub-page":"二级管理页","menu.login":"登录","menu.register":"注册","menu.register-result":"注册结果","menu.dashboard":"Dashboard","menu.dashboard.analysis":"分析页","menu.dashboard.monitor":"监控页","menu.dashboard.workplace":"工作台","menu.exception.403":"403","menu.exception.404":"404","menu.exception.500":"500","menu.form":"表单页","menu.form.basic-form":"基础表单","menu.form.step-form":"分步表单","menu.form.step-form.info":"分步表单(填写转账信息)","menu.form.step-form.confirm":"分步表单(确认转账信息)","menu.form.step-form.result":"分步表单(完成)","menu.form.advanced-form":"高级表单","menu.list":"列表页","menu.list.table-list":"查询表格","menu.list.basic-list":"标准列表","menu.list.card-list":"卡片列表","menu.list.search-list":"搜索列表","menu.list.search-list.articles":"搜索列表(文章)","menu.list.search-list.projects":"搜索列表(项目)","menu.list.search-list.applications":"搜索列表(应用)","menu.profile":"详情页","menu.profile.basic":"基础详情页","menu.profile.advanced":"高级详情页","menu.result":"结果页","menu.result.success":"成功页","menu.result.fail":"失败页","menu.exception":"异常页","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"触发错误","menu.account":"个人页","menu.account.center":"个人中心","menu.account.settings":"个人设置","menu.account.trigger":"触发报错","menu.account.logout":"退出登录","menu.editor":"图形编辑器","menu.editor.flow":"流程编辑器","menu.editor.mind":"脑图编辑器","menu.editor.koni":"拓扑编辑器","menu.robot":"AI助手","menu.knowledge":"知识库","menu.setting":"设置","menu.docs":"帮助"},pages$1={"pages.login.title":"微语","pages.layouts.userLayout.title":"企业即时通讯 & 在线客服系统 & 大模型AI助手","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.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.welcome.alertMessage":"更快更强的重型组件,已经发布。","pages.admin.subPage.title":" 这个页面只有 超级管理员 权限才能查看","pages.admin.subPage.alertMessage":"umi ui 现已发布,欢迎使用 npm run ui 启动体验。","pages.robot.new":"新建","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.searchTable.createForm.newRule":"新建规则","pages.searchTable.updateForm.ruleConfig":"规则配置","pages.searchTable.updateForm.basicConfig":"基本信息","pages.searchTable.updateForm.ruleName.nameLabel":"规则名称","pages.searchTable.updateForm.ruleName.nameRules":"请输入规则名称!","pages.searchTable.updateForm.ruleDesc.descLabel":"规则描述","pages.searchTable.updateForm.ruleDesc.descPlaceholder":"请输入至少五个字符","pages.searchTable.updateForm.ruleDesc.descRules":"请输入至少五个字符的规则描述!","pages.searchTable.updateForm.ruleProps.title":"配置规则属性","pages.searchTable.updateForm.object":"监控对象","pages.searchTable.updateForm.ruleProps.templateLabel":"规则模板","pages.searchTable.updateForm.ruleProps.typeLabel":"规则类型","pages.searchTable.updateForm.schedulingPeriod.title":"设定调度周期","pages.searchTable.updateForm.schedulingPeriod.timeLabel":"开始时间","pages.searchTable.updateForm.schedulingPeriod.timeRules":"请选择开始时间!","pages.searchTable.titleDesc":"描述","pages.searchTable.ruleName":"规则名称为必填项","pages.searchTable.titleCallNo":"服务调用次数","pages.searchTable.titleStatus":"状态","pages.searchTable.nameStatus.default":"关闭","pages.searchTable.nameStatus.running":"运行中","pages.searchTable.nameStatus.online":"已上线","pages.searchTable.nameStatus.abnormal":"异常","pages.searchTable.titleUpdatedAt":"上次调度时间","pages.searchTable.exception":"请输入异常原因!","pages.searchTable.titleOption":"操作","pages.searchTable.config":"配置","pages.searchTable.subscribeAlert":"订阅警报","pages.searchTable.title":"查询表格","pages.searchTable.new":"新建","pages.searchTable.chosen":"已选择","pages.searchTable.item":"项","pages.searchTable.totalServiceCalls":"服务调用次数总计","pages.searchTable.tenThousand":"万","pages.searchTable.batchDeletion":"批量删除","pages.searchTable.batchApproval":"批量审批","pages.footer.website":"微语官网","pages.footer.helpdoc":"帮助文档"},settings$1={"app.settings.menuMap.basic":"基本设置","app.settings.menuMap.security":"安全设置","app.settings.menuMap.binding":"账号绑定","app.settings.menuMap.notification":"新消息通知","app.settings.basic.avatar":"头像","app.settings.basic.change-avatar":"更换头像","app.settings.basic.email":"邮箱","app.settings.basic.email-message":"请输入您的邮箱!","app.settings.basic.nickname":"昵称","app.settings.basic.nickname-message":"请输入您的昵称!","app.settings.basic.profile":"个人简介","app.settings.basic.profile-message":"请输入个人简介!","app.settings.basic.profile-placeholder":"个人简介","app.settings.basic.country":"国家/地区","app.settings.basic.country-message":"请输入您的国家或地区!","app.settings.basic.geographic":"所在省市","app.settings.basic.geographic-message":"请输入您的所在省市!","app.settings.basic.address":"街道地址","app.settings.basic.address-message":"请输入您的街道地址!","app.settings.basic.phone":"联系电话","app.settings.basic.phone-message":"请输入您的联系电话!","app.settings.basic.update":"更新基本信息","app.settings.security.strong":"强","app.settings.security.medium":"中","app.settings.security.weak":"弱","app.settings.security.password":"账户密码","app.settings.security.password-description":"当前密码强度","app.settings.security.phone":"密保手机","app.settings.security.phone-description":"已绑定手机","app.settings.security.question":"密保问题","app.settings.security.question-description":"未设置密保问题,密保问题可有效保护账户安全","app.settings.security.email":"备用邮箱","app.settings.security.email-description":"已绑定邮箱","app.settings.security.mfa":"MFA 设备","app.settings.security.mfa-description":"未绑定 MFA 设备,绑定后,可以进行二次确认","app.settings.security.modify":"修改","app.settings.security.set":"设置","app.settings.security.bind":"绑定","app.settings.binding.taobao":"绑定淘宝","app.settings.binding.taobao-description":"当前未绑定淘宝账号","app.settings.binding.alipay":"绑定支付宝","app.settings.binding.alipay-description":"当前未绑定支付宝账号","app.settings.binding.dingding":"绑定钉钉","app.settings.binding.dingding-description":"当前未绑定钉钉账号","app.settings.binding.bind":"绑定","app.settings.notification.password":"账户密码","app.settings.notification.password-description":"其他用户的消息将以站内信的形式通知","app.settings.notification.messages":"系统消息","app.settings.notification.messages-description":"系统消息将以站内信的形式通知","app.settings.notification.todo":"待办任务","app.settings.notification.todo-description":"待办任务将以站内信的形式通知","app.settings.open":"开","app.settings.close":"关"},desktop$1={i18_file_asistant:"文件助手"},zh={"app.title":"微语","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":"主题",i18n_file_asistant:"文件助手",...pages$1,...menu$1,...settings$1,...desktop$1},menu={"menu.welcome":"Welcome","menu.more-blocks":"More Blocks","menu.home":"Home","menu.member":"Member","menu.organiztion":"Org","menu.organiztion.organiztion":"Organization","menu.organiztion.member":"Member","menu.organiztion.role":"Role","menu.organiztion.group":"Group","menu.organiztion.column":"Column","menu.organiztion.message":"Message","menu.message":"Message","menu.service":"CustomerService","menu.service.agent":"Agent","menu.service.group":"Group","menu.service.thread":"Thread","menu.service.message":"Message","menu.service.column":"Column","menu.setting.profile":"Profile","menu.setting.basic":"Basic","menu.setting.qrcode":"Qrcode","menu.admin":"Admin","menu.admin.sub-page":"Sub-Page","menu.login":"Login","menu.register":"Register","menu.register-result":"Register Result","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","menu.exception.403":"403","menu.exception.404":"404","menu.exception.500":"500","menu.form":"Form","menu.form.basic-form":"Basic Form","menu.form.step-form":"Step Form","menu.form.step-form.info":"Step Form(write transfer information)","menu.form.step-form.confirm":"Step Form(confirm transfer information)","menu.form.step-form.result":"Step Form(finished)","menu.form.advanced-form":"Advanced Form","menu.list":"List","menu.list.table-list":"Search Table","menu.list.basic-list":"Basic List","menu.list.card-list":"Card List","menu.list.search-list":"Search List","menu.list.search-list.articles":"Search List(articles)","menu.list.search-list.projects":"Search List(projects)","menu.list.search-list.applications":"Search List(applications)","menu.profile":"Profile","menu.profile.basic":"Basic Profile","menu.profile.advanced":"Advanced Profile","menu.result":"Result","menu.result.success":"Success","menu.result.fail":"Fail","menu.exception":"Exception","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"Trigger","menu.account":"Account","menu.account.center":"Account Center","menu.account.settings":"Account Settings","menu.account.trigger":"Trigger Error","menu.account.logout":"Logout","menu.editor":"Graphic Editor","menu.editor.flow":"Flow Editor","menu.editor.mind":"Mind Editor","menu.editor.koni":"Koni Editor","menu.robot":"Robot","menu.knowledge":"Knowledge","menu.setting":"Setting","menu.docs":"Help"},pages={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Team IM && Customer Service && AI ChatBot","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.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.welcome.alertMessage":"Faster and stronger heavy-duty components have been released.","pages.404.subTitle":"Sorry, the page you visited does not exist.","pages.404.buttonText":"Back Home","pages.admin.subPage.title":"This page can only be viewed by SuperAdmin","pages.admin.subPage.alertMessage":"Umi ui is now released, welcome to use npm run ui to start the experience.","pages.robot.new":"New","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.helpdoc":"help"},settings={"app.settings.menuMap.basic":"Basic Settings","app.settings.menuMap.security":"Security Settings","app.settings.menuMap.binding":"Account Binding","app.settings.menuMap.notification":"New Message Notification","app.settings.basic.avatar":"Avatar","app.settings.basic.change-avatar":"Change avatar","app.settings.basic.email":"Email","app.settings.basic.email-message":"Please input your email!","app.settings.basic.nickname":"Nickname","app.settings.basic.nickname-message":"Please input your Nickname!","app.settings.basic.profile":"Personal profile","app.settings.basic.profile-message":"Please input your personal profile!","app.settings.basic.profile-placeholder":"Brief introduction to yourself","app.settings.basic.country":"Country/Region","app.settings.basic.country-message":"Please input your country!","app.settings.basic.geographic":"Province or city","app.settings.basic.geographic-message":"Please input your geographic info!","app.settings.basic.address":"Street Address","app.settings.basic.address-message":"Please input your address!","app.settings.basic.phone":"Phone Number","app.settings.basic.phone-message":"Please input your phone!","app.settings.basic.update":"Update Information","app.settings.security.strong":"Strong","app.settings.security.medium":"Medium","app.settings.security.weak":"Weak","app.settings.security.password":"Account Password","app.settings.security.password-description":"Current password strength","app.settings.security.phone":"Security Phone","app.settings.security.phone-description":"Bound phone","app.settings.security.question":"Security Question","app.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","app.settings.security.email":"Backup Email","app.settings.security.email-description":"Bound Email","app.settings.security.mfa":"MFA Device","app.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","app.settings.security.modify":"Modify","app.settings.security.set":"Set","app.settings.security.bind":"Bind","app.settings.binding.taobao":"Binding Taobao","app.settings.binding.taobao-description":"Currently unbound Taobao account","app.settings.binding.alipay":"Binding Alipay","app.settings.binding.alipay-description":"Currently unbound Alipay account","app.settings.binding.dingding":"Binding DingTalk","app.settings.binding.dingding-description":"Currently unbound DingTalk account","app.settings.binding.bind":"Bind","app.settings.notification.password":"Account Password","app.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","app.settings.notification.messages":"System Messages","app.settings.notification.messages-description":"System messages will be notified in the form of a station letter","app.settings.notification.todo":"To-do Notification","app.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","app.settings.open":"Open","app.settings.close":"Close"},desktop={i18_file_asistant:"File Assistant"},en={"app.title":"Bytedesk","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",i18n_file_asistant:"file assistant",...menu,...settings,...pages,...desktop},{defaultAlgorithm,darkAlgorithm}=theme,messageMap={"zh-cn":zh,en},AppWrapper=()=>{const{isDarkMode:_e,locale:et}=reactExports.useContext(AppContext$2),rt=new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});return jsxRuntimeExports.jsx(ConfigProvider$1,{locale:et,theme:{algorithm:_e?darkAlgorithm:defaultAlgorithm},children:jsxRuntimeExports.jsx(QueryClientProvider,{client:rt,children:jsxRuntimeExports.jsx(HelmetProvider,{children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"loading..."}),children:jsxRuntimeExports.jsx(IntlProvider$1,{messages:messageMap[et.locale],locale:et.locale,defaultLocale:"zh",children:jsxRuntimeExports.jsxs(AntdApp,{children:[jsxRuntimeExports.jsx(AntdGlobalComp,{}),jsxRuntimeExports.jsx(RouterProvider,{router})]})})})})})})},App=()=>jsxRuntimeExports.jsx("div",{className:"App",children:jsxRuntimeExports.jsx(AppProvider,{children:jsxRuntimeExports.jsx(AppWrapper,{})})});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$1.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));postMessage({payload:"removeLoading"},"*")});export default Im(); diff --git a/starter/src/main/resources/templates/chat/index.html b/starter/src/main/resources/templates/chat/index.html index 47d36dc86..ec9d453a3 100644 --- a/starter/src/main/resources/templates/chat/index.html +++ b/starter/src/main/resources/templates/chat/index.html @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-13 02:39:49 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-04-02 22:54:39 + * @LastEditTime: 2024-05-08 21:19:16 * @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. @@ -16,13 +16,13 @@ - + 微语 - - + + @@ -30,8 +30,8 @@ - - - + + +