您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为 B 站首页添加像 App 一样的推荐
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.17.1 // @author magicdawn // @description 为 B 站首页添加像 App 一样的推荐 // @license MIT // @icon https://www.bilibili.com/favicon.ico // @homepageURL https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match https://www.bilibili.com/ // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match https://www.bilibili.com/index.html // @match https://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @match https://www.bilibili.com/index.html?* // @require https://unpkg.com/[email protected]/dist/axios.min.js // @require https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/[email protected]/umd/react.production.min.js // @require https://unpkg.com/[email protected]/umd/react-dom.production.min.js // @require https://unpkg.com/[email protected]/dist/ua-parser.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.deleteValue // @grant GM.getValue // @grant GM.setClipboard // @grant GM.setValue // @grant GM.xmlHttpRequest // @grant unsafeWindow // ==/UserScript== (t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(" ._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._bili-video-card_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mnvtu_33{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mnvtu_48{color:default}._btn-dislike_mnvtu_51{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_73{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mnvtu_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_1qaxg_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_1qaxg_52{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_1qaxg_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_1qaxg_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_1qaxg_112{grid-template-columns:repeat(2,1fr)!important} "); (async function (u, Jd, Qv, s1, c1) { 'use strict'; function _interopNamespaceDefault(e) { const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } }); if (e) { for (const k in e) { if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e[k] }); } } } n.default = e; return Object.freeze(n); } const u__namespace = /*#__PURE__*/_interopNamespaceDefault(u); const Qv__namespace = /*#__PURE__*/_interopNamespaceDefault(Qv); var JS=Object.defineProperty;var e1=(e,t,n)=>t in e?JS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $t=(e,t,n)=>(e1(e,typeof t!="symbol"?t+"":t,n),n);var ep=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var tp={exports:{}},As={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var d1=u,f1=Symbol.for("react.element"),m1=Symbol.for("react.fragment"),h1=Object.prototype.hasOwnProperty,g1=d1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v1={key:!0,ref:!0,__self:!0,__source:!0};function np(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)h1.call(t,r)&&!v1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return {$$typeof:f1,type:e,key:i,ref:a,props:o,_owner:g1.current}}As.Fragment=m1;As.jsx=np;As.jsxs=np;tp.exports=As;var ba=tp.exports;function p1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function b1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var y1=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b1(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=p1(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),fn="-ms-",Ql="-moz-",xt="-webkit-",rp="comm",ef="rule",tf="decl",C1="@import",op="@keyframes",S1="@layer",w1=Math.abs,Ds=String.fromCharCode,$1=Object.assign;function x1(e,t){return ln(e,0)^45?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}function ip(e){return e.trim()}function E1(e,t){return (e=t.exec(e))?e[0]:e}function Et(e,t,n){return e.replace(t,n)}function zu(e,t){return e.indexOf(t)}function ln(e,t){return e.charCodeAt(t)|0}function ya(e,t,n){return e.slice(t,n)}function lr(e){return e.length}function nf(e){return e.length}function hl(e,t){return t.push(e),e}function I1(e,t){return e.map(t).join("")}var zs=1,mi=1,ap=0,xn=0,tn=0,Mi="";function js(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:zs,column:mi,length:a,return:""}}function Wi(e,t){return $1(js("",null,null,"",null,null,0),e,{length:-e.length},t)}function O1(){return tn}function P1(){return tn=xn>0?ln(Mi,--xn):0,mi--,tn===10&&(mi=1,zs--),tn}function Rn(){return tn=xn<ap?ln(Mi,xn++):0,mi++,tn===10&&(mi=1,zs++),tn}function ur(){return ln(Mi,xn)}function Al(){return xn}function za(e,t){return ya(Mi,e,t)}function Ca(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lp(e){return zs=mi=1,ap=lr(Mi=e),xn=0,[]}function sp(e){return Mi="",e}function Dl(e){return ip(za(xn-1,ju(e===91?e+2:e===40?e+1:e)))}function M1(e){for(;(tn=ur())&&tn<33;)Rn();return Ca(e)>2||Ca(tn)>3?"":" "}function _1(e,t){for(;--t&&Rn()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return za(e,Al()+(t<6&&ur()==32&&Rn()==32))}function ju(e){for(;Rn();)switch(tn){case e:return xn;case 34:case 39:e!==34&&e!==39&&ju(tn);break;case 40:e===41&&ju(e);break;case 92:Rn();break}return xn}function R1(e,t){for(;Rn()&&e+tn!==47+10;)if(e+tn===42+42&&ur()===47)break;return "/*"+za(t,xn-1)+"*"+Ds(e===47?e:Rn())}function T1(e){for(;!Ca(ur());)Rn();return za(e,xn)}function cp(e){return sp(zl("",null,null,null,[""],e=lp(e),0,[0],e))}function zl(e,t,n,r,o,i,a,l,s){for(var c=0,d=0,f=a,m=0,h=0,g=0,v=1,p=1,y=1,b=0,E="",M=o,w=i,x=r,S=E;p;)switch(g=b,b=Rn()){case 40:if(g!=108&&ln(S,f-1)==58){zu(S+=Et(Dl(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Dl(b);break;case 9:case 10:case 13:case 32:S+=M1(g);break;case 92:S+=_1(Al()-1,7);continue;case 47:switch(ur()){case 42:case 47:hl(N1(R1(Rn(),Al()),t,n),s);break;default:S+="/";}break;case 123*v:l[c++]=lr(S)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+d:y==-1&&(S=Et(S,/\f/g,"")),h>0&&lr(S)-f&&hl(h>32?nh(S+";",r,n,f-1):nh(Et(S," ","")+";",r,n,f-2),s);break;case 59:S+=";";default:if(hl(x=th(S,t,n,c,d,o,l,E,M=[],w=[],f),i),b===123)if(d===0)zl(S,t,x,x,M,i,f,l,w);else switch(m===99&&ln(S,3)===110?100:m){case 100:case 108:case 109:case 115:zl(e,x,x,r&&hl(th(e,x,x,0,0,o,l,E,o,M=[],f),w),o,w,f,l,r?M:w);break;default:zl(S,x,x,x,[""],w,0,l,w);}}c=d=h=0,v=y=1,E=S="",f=a;break;case 58:f=1+lr(S),h=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&P1()==125)continue}switch(S+=Ds(b),b*v){case 38:y=d>0?1:(S+="\f",-1);break;case 44:l[c++]=(lr(S)-1)*y,y=1;break;case 64:ur()===45&&(S+=Dl(Rn())),m=ur(),d=f=lr(E=S+=T1(Al())),b++;break;case 45:g===45&&lr(S)==2&&(v=0);}}return i}function th(e,t,n,r,o,i,a,l,s,c,d){for(var f=o-1,m=o===0?i:[""],h=nf(m),g=0,v=0,p=0;g<r;++g)for(var y=0,b=ya(e,f+1,f=w1(v=a[g])),E=e;y<h;++y)(E=ip(v>0?m[y]+" "+b:Et(b,/&\f/g,m[y])))&&(s[p++]=E);return js(e,t,n,o===0?ef:l,s,c,d)}function N1(e,t,n){return js(e,t,n,rp,Ds(O1()),ya(e,2,-2),0)}function nh(e,t,n,r){return js(e,t,n,tf,ya(e,0,r),ya(e,r+1,-1),r)}function yo(e,t){for(var n="",r=nf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case S1:if(e.children.length)break;case C1:case tf:return e.return=e.return||e.value;case rp:return "";case op:return e.return=e.value+"{"+yo(e.children,r)+"}";case ef:e.value=e.props.join(",");}return lr(n=yo(e.children,r))?e.return=e.value+"{"+n+"}":""}function k1(e){var t=nf(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function L1(e){return function(t){t.root||(t=t.return)&&e(t);}}function A1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var D1=function(t,n,r){for(var o=0,i=0;o=i,i=ur(),o===38&&i===12&&(n[r]=1),!Ca(i);)Rn();return za(t,xn)},z1=function(t,n){var r=-1,o=44;do switch(Ca(o)){case 0:o===38&&ur()===12&&(n[r]=1),t[r]+=D1(xn-1,n,r);break;case 2:t[r]+=Dl(o);break;case 4:if(o===44){t[++r]=ur()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ds(o);}while(o=Rn());return t},j1=function(t,n){return sp(z1(lp(t),n))},rh=new WeakMap,B1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!rh.get(r))&&!o){rh.set(t,!0);for(var i=[],a=j1(n,i),l=r.props,s=0,c=0;s<a.length;s++)for(var d=0;d<l.length;d++,c++)t.props[c]=i[s]?a[s].replace(/&\f/g,l[d]):l[d]+" "+a[s];}}},H1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function dp(e,t){switch(x1(e,t)){case 5103:return xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+Ql+e+fn+e+e;case 6828:case 4268:return xt+e+fn+e+e;case 6165:return xt+e+fn+"flex-"+e+e;case 5187:return xt+e+Et(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+fn+"flex-$1$2")+e;case 5443:return xt+e+fn+"flex-item-"+Et(e,/flex-|-self/,"")+e;case 4675:return xt+e+fn+"flex-line-pack"+Et(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+fn+Et(e,"shrink","negative")+e;case 5292:return xt+e+fn+Et(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+Et(e,"-grow","")+xt+e+fn+Et(e,"grow","positive")+e;case 4554:return xt+Et(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return Et(Et(Et(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return Et(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return Et(Et(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return Et(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lr(e)-1-t>6)switch(ln(e,t+1)){case 109:if(ln(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+Ql+(ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~zu(e,"stretch")?dp(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ln(e,t+1)!==115)break;case 6444:switch(ln(e,lr(e)-3-(~zu(e,"!important")&&10))){case 107:return Et(e,":",":"+xt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(ln(e,14)===45?"inline-":"")+"box$3$1"+xt+"$2$3$1"+fn+"$2box$3")+e}break;case 5936:switch(ln(e,t+11)){case 114:return xt+e+fn+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+fn+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+fn+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+fn+e+e}return e}var F1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case tf:t.return=dp(t.value,t.length);break;case op:return yo([Wi(t,{value:Et(t.value,"@","@"+xt)})],o);case ef:if(t.length)return I1(t.props,function(i){switch(E1(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yo([Wi(t,{props:[Et(i,/:(read-\w+)/,":"+Ql+"$1")]})],o);case"::placeholder":return yo([Wi(t,{props:[Et(i,/:(plac\w+)/,":"+xt+"input-$1")]}),Wi(t,{props:[Et(i,/:(plac\w+)/,":"+Ql+"$1")]}),Wi(t,{props:[Et(i,/:(plac\w+)/,fn+"input-$1")]})],o)}return ""})}},W1=[F1],fp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||W1,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),y=1;y<p.length;y++)i[p[y]]=!0;l.push(v);});var s,c=[B1,H1];{var d,f=[up,L1(function(v){d.insert(v);})],m=k1(c.concat(o,f)),h=function(p){return yo(cp(p),m)};s=function(p,y,b,E){d=b,h(p?p+"{"+y.styles+"}":y.styles),E&&(g.inserted[y.name]=!0);};}var g={key:n,sheet:new y1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return g.sheet.hydrate(l),g},mp={exports:{}},Tt={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var on=typeof Symbol=="function"&&Symbol.for,rf=on?Symbol.for("react.element"):60103,of=on?Symbol.for("react.portal"):60106,Bs=on?Symbol.for("react.fragment"):60107,Hs=on?Symbol.for("react.strict_mode"):60108,Fs=on?Symbol.for("react.profiler"):60114,Ws=on?Symbol.for("react.provider"):60109,Vs=on?Symbol.for("react.context"):60110,af=on?Symbol.for("react.async_mode"):60111,Ks=on?Symbol.for("react.concurrent_mode"):60111,Gs=on?Symbol.for("react.forward_ref"):60112,Us=on?Symbol.for("react.suspense"):60113,V1=on?Symbol.for("react.suspense_list"):60120,Xs=on?Symbol.for("react.memo"):60115,Ys=on?Symbol.for("react.lazy"):60116,K1=on?Symbol.for("react.block"):60121,G1=on?Symbol.for("react.fundamental"):60117,U1=on?Symbol.for("react.responder"):60118,X1=on?Symbol.for("react.scope"):60119;function Nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rf:switch(e=e.type,e){case af:case Ks:case Bs:case Fs:case Hs:case Us:return e;default:switch(e=e&&e.$$typeof,e){case Vs:case Gs:case Ys:case Xs:case Ws:return e;default:return t}}case of:return t}}}function hp(e){return Nn(e)===Ks}Tt.AsyncMode=af;Tt.ConcurrentMode=Ks;Tt.ContextConsumer=Vs;Tt.ContextProvider=Ws;Tt.Element=rf;Tt.ForwardRef=Gs;Tt.Fragment=Bs;Tt.Lazy=Ys;Tt.Memo=Xs;Tt.Portal=of;Tt.Profiler=Fs;Tt.StrictMode=Hs;Tt.Suspense=Us;Tt.isAsyncMode=function(e){return hp(e)||Nn(e)===af};Tt.isConcurrentMode=hp;Tt.isContextConsumer=function(e){return Nn(e)===Vs};Tt.isContextProvider=function(e){return Nn(e)===Ws};Tt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rf};Tt.isForwardRef=function(e){return Nn(e)===Gs};Tt.isFragment=function(e){return Nn(e)===Bs};Tt.isLazy=function(e){return Nn(e)===Ys};Tt.isMemo=function(e){return Nn(e)===Xs};Tt.isPortal=function(e){return Nn(e)===of};Tt.isProfiler=function(e){return Nn(e)===Fs};Tt.isStrictMode=function(e){return Nn(e)===Hs};Tt.isSuspense=function(e){return Nn(e)===Us};Tt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bs||e===Ks||e===Fs||e===Hs||e===Us||e===V1||typeof e=="object"&&e!==null&&(e.$$typeof===Ys||e.$$typeof===Xs||e.$$typeof===Ws||e.$$typeof===Vs||e.$$typeof===Gs||e.$$typeof===G1||e.$$typeof===U1||e.$$typeof===X1||e.$$typeof===K1)};Tt.typeOf=Nn;mp.exports=Tt;var lf=mp.exports,gp=lf,Y1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},q1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vp={};vp[gp.ForwardRef]=Y1;vp[gp.Memo]=q1;var Z1=!0;function sf(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var pp=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Z1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},cf=function(t,n,r){pp(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Q1(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var J1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ew=/[A-Z]|^ms/g,tw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bp=function(t){return t.charCodeAt(1)===45},oh=function(t){return t!=null&&typeof t!="boolean"},Fc=A1(function(e){return bp(e)?e:e.replace(ew,"-$&").toLowerCase()}),ih=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tw,function(r,o,i){return sr={name:o,styles:i,next:sr},o})}return J1[t]!==1&&!bp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sa(e,t,n){if(n==null)return "";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return "";case"object":{if(n.anim===1)return sr={name:n.name,styles:n.styles,next:sr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)sr={name:r.name,styles:r.styles,next:sr},r=r.next;var o=n.styles+";";return o}return nw(e,t,n)}case"function":{if(e!==void 0){var i=sr,a=n(e);return sr=i,Sa(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function nw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Sa(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":oh(a)&&(r+=Fc(i)+":"+ih(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)oh(a[l])&&(r+=Fc(i)+":"+ih(i,a[l])+";");else {var s=Sa(e,t,a);switch(i){case"animation":case"animationName":{r+=Fc(i)+":"+s+";";break}default:r+=i+"{"+s+"}";}}}return r}var ah=/label:\s*([^\s;\n{]+)\s*(;|$)/g,sr,ai=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";sr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Sa(r,n,a)):i+=a[0];for(var l=1;l<t.length;l++)i+=Sa(r,n,t[l]),o&&(i+=a[l]);ah.lastIndex=0;for(var s="",c;(c=ah.exec(i))!==null;)s+="-"+c[1];var d=Q1(i)+s;return {name:d,styles:i,next:sr}},rw=function(t){return t()},yp=u__namespace["useInsertionEffect"]?u__namespace["useInsertionEffect"]:!1,ow=yp||rw,lh=yp||u__namespace.useLayoutEffect,qs={}.hasOwnProperty,Cp=u__namespace.createContext(typeof HTMLElement<"u"?fp({key:"css"}):null);Cp.Provider;var Sp=function(t){return u.forwardRef(function(n,r){var o=u.useContext(Cp);return t(n,o,r)})},wp=u__namespace.createContext({}),Bu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$p=function(t,n){var r={};for(var o in n)qs.call(n,o)&&(r[o]=n[o]);return r[Bu]=t,r},iw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return pp(n,r,o),ow(function(){return cf(n,r,o)}),null},aw=Sp(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Bu],i=[r],a="";typeof e.className=="string"?a=sf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=ai(i,void 0,u__namespace.useContext(wp));a+=t.key+"-"+l.name;var s={};for(var c in e)qs.call(e,c)&&c!=="css"&&c!==Bu&&(s[c]=e[c]);return s.ref=n,s.className=a,u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(iw,{cache:t,serialized:l,isStringTag:typeof o=="string"}),u__namespace.createElement(o,s))}),xp=aw,St=ba.Fragment;function D(e,t,n){return qs.call(t,"css")?ba.jsx(xp,$p(e,t),n):ba.jsx(e,t,n)}function pe(e,t,n){return qs.call(t,"css")?ba.jsxs(xp,$p(e,t),n):ba.jsxs(e,t,n)}function uf(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function lw(){this.__data__=[],this.size=0;}function df(e,t){return e===t||e!==e&&t!==t}function Zs(e,t){for(var n=e.length;n--;)if(df(e[n][0],t))return n;return -1}var sw=Array.prototype,cw=sw.splice;function uw(e){var t=this.__data__,n=Zs(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():cw.call(t,n,1),--this.size,!0}function dw(e){var t=this.__data__,n=Zs(t,e);return n<0?void 0:t[n][1]}function fw(e){return Zs(this.__data__,e)>-1}function mw(e,t){var n=this.__data__,r=Zs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Dr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}Dr.prototype.clear=lw;Dr.prototype.delete=uw;Dr.prototype.get=dw;Dr.prototype.has=fw;Dr.prototype.set=mw;function hw(){this.__data__=new Dr,this.size=0;}function gw(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vw(e){return this.__data__.get(e)}function pw(e){return this.__data__.has(e)}var bw=typeof global=="object"&&global&&global.Object===Object&&global;const Ep=bw;var yw=typeof self=="object"&&self&&self.Object===Object&&self,Cw=Ep||yw||Function("return this")();const tr=Cw;var Sw=tr.Symbol;const Hn=Sw;var Ip=Object.prototype,ww=Ip.hasOwnProperty,$w=Ip.toString,Vi=Hn?Hn.toStringTag:void 0;function xw(e){var t=ww.call(e,Vi),n=e[Vi];try{e[Vi]=void 0;var r=!0;}catch{}var o=$w.call(e);return r&&(t?e[Vi]=n:delete e[Vi]),o}var Ew=Object.prototype,Iw=Ew.toString;function Ow(e){return Iw.call(e)}var Pw="[object Null]",Mw="[object Undefined]",sh=Hn?Hn.toStringTag:void 0;function Mo(e){return e==null?e===void 0?Mw:Pw:sh&&sh in Object(e)?xw(e):Ow(e)}function Fn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _w="[object AsyncFunction]",Rw="[object Function]",Tw="[object GeneratorFunction]",Nw="[object Proxy]";function Op(e){if(!Fn(e))return !1;var t=Mo(e);return t==Rw||t==Tw||t==_w||t==Nw}var kw=tr["__core-js_shared__"];const Wc=kw;var ch=function(){var e=/[^.]+$/.exec(Wc&&Wc.keys&&Wc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lw(e){return !!ch&&ch in e}var Aw=Function.prototype,Dw=Aw.toString;function _o(e){if(e!=null){try{return Dw.call(e)}catch{}try{return e+""}catch{}}return ""}var zw=/[\\^$.*+?()[\]{}|]/g,jw=/^\[object .+?Constructor\]$/,Bw=Function.prototype,Hw=Object.prototype,Fw=Bw.toString,Ww=Hw.hasOwnProperty,Vw=RegExp("^"+Fw.call(Ww).replace(zw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kw(e){if(!Fn(e)||Lw(e))return !1;var t=Op(e)?Vw:jw;return t.test(_o(e))}function Gw(e,t){return e==null?void 0:e[t]}function Ro(e,t){var n=Gw(e,t);return Kw(n)?n:void 0}var Uw=Ro(tr,"Map");const wa=Uw;var Xw=Ro(Object,"create");const $a=Xw;function Yw(){this.__data__=$a?$a(null):{},this.size=0;}function qw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zw="__lodash_hash_undefined__",Qw=Object.prototype,Jw=Qw.hasOwnProperty;function e$(e){var t=this.__data__;if($a){var n=t[e];return n===Zw?void 0:n}return Jw.call(t,e)?t[e]:void 0}var t$=Object.prototype,n$=t$.hasOwnProperty;function r$(e){var t=this.__data__;return $a?t[e]!==void 0:n$.call(t,e)}var o$="__lodash_hash_undefined__";function i$(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$a&&t===void 0?o$:t,this}function $o(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}$o.prototype.clear=Yw;$o.prototype.delete=qw;$o.prototype.get=e$;$o.prototype.has=r$;$o.prototype.set=i$;function a$(){this.size=0,this.__data__={hash:new $o,map:new(wa||Dr),string:new $o};}function l$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qs(e,t){var n=e.__data__;return l$(t)?n[typeof t=="string"?"string":"hash"]:n.map}function s$(e){var t=Qs(this,e).delete(e);return this.size-=t?1:0,t}function c$(e){return Qs(this,e).get(e)}function u$(e){return Qs(this,e).has(e)}function d$(e,t){var n=Qs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function zr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}zr.prototype.clear=a$;zr.prototype.delete=s$;zr.prototype.get=c$;zr.prototype.has=u$;zr.prototype.set=d$;var f$=200;function m$(e,t){var n=this.__data__;if(n instanceof Dr){var r=n.__data__;if(!wa||r.length<f$-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zr(r);}return n.set(e,t),this.size=n.size,this}function dr(e){var t=this.__data__=new Dr(e);this.size=t.size;}dr.prototype.clear=hw;dr.prototype.delete=gw;dr.prototype.get=vw;dr.prototype.has=pw;dr.prototype.set=m$;function h$(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var g$=function(){try{var e=Ro(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Jl=g$;function Pp(e,t,n){t=="__proto__"&&Jl?Jl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var v$=Object.prototype,p$=v$.hasOwnProperty;function ff(e,t,n){var r=e[t];(!(p$.call(e,t)&&df(r,n))||n===void 0&&!(t in e))&&Pp(e,t,n);}function ja(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),o?Pp(n,l,s):ff(n,l,s);}return n}function b$(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Rr(e){return e!=null&&typeof e=="object"}var y$="[object Arguments]";function uh(e){return Rr(e)&&Mo(e)==y$}var Mp=Object.prototype,C$=Mp.hasOwnProperty,S$=Mp.propertyIsEnumerable,w$=uh(function(){return arguments}())?uh:function(e){return Rr(e)&&C$.call(e,"callee")&&!S$.call(e,"callee")};const mf=w$;var $$=Array.isArray;const Wn=$$;function x$(){return !1}var _p=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dh=_p&&typeof module=="object"&&module&&!module.nodeType&&module,E$=dh&&dh.exports===_p,fh=E$?tr.Buffer:void 0,I$=fh?fh.isBuffer:void 0,O$=I$||x$;const es=O$;var P$=9007199254740991,M$=/^(?:0|[1-9]\d*)$/;function hf(e,t){var n=typeof e;return t=t??P$,!!t&&(n=="number"||n!="symbol"&&M$.test(e))&&e>-1&&e%1==0&&e<t}var _$=9007199254740991;function gf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_$}var R$="[object Arguments]",T$="[object Array]",N$="[object Boolean]",k$="[object Date]",L$="[object Error]",A$="[object Function]",D$="[object Map]",z$="[object Number]",j$="[object Object]",B$="[object RegExp]",H$="[object Set]",F$="[object String]",W$="[object WeakMap]",V$="[object ArrayBuffer]",K$="[object DataView]",G$="[object Float32Array]",U$="[object Float64Array]",X$="[object Int8Array]",Y$="[object Int16Array]",q$="[object Int32Array]",Z$="[object Uint8Array]",Q$="[object Uint8ClampedArray]",J$="[object Uint16Array]",ex="[object Uint32Array]",Bt={};Bt[G$]=Bt[U$]=Bt[X$]=Bt[Y$]=Bt[q$]=Bt[Z$]=Bt[Q$]=Bt[J$]=Bt[ex]=!0;Bt[R$]=Bt[T$]=Bt[V$]=Bt[N$]=Bt[K$]=Bt[k$]=Bt[L$]=Bt[A$]=Bt[D$]=Bt[z$]=Bt[j$]=Bt[B$]=Bt[H$]=Bt[F$]=Bt[W$]=!1;function tx(e){return Rr(e)&&gf(e.length)&&!!Bt[Mo(e)]}function vf(e){return function(t){return e(t)}}var Rp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ia=Rp&&typeof module=="object"&&module&&!module.nodeType&&module,nx=ia&&ia.exports===Rp,Vc=nx&&Ep.process,rx=function(){try{var e=ia&&ia.require&&ia.require("util").types;return e||Vc&&Vc.binding&&Vc.binding("util")}catch{}}();const hi=rx;var mh=hi&&hi.isTypedArray,ox=mh?vf(mh):tx;const Tp=ox;var ix=Object.prototype,ax=ix.hasOwnProperty;function Np(e,t){var n=Wn(e),r=!n&&mf(e),o=!n&&!r&&es(e),i=!n&&!r&&!o&&Tp(e),a=n||r||o||i,l=a?b$(e.length,String):[],s=l.length;for(var c in e)(t||ax.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||hf(c,s)))&&l.push(c);return l}var lx=Object.prototype;function pf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lx;return e===n}function kp(e,t){return function(n){return e(t(n))}}var sx=kp(Object.keys,Object);const cx=sx;var ux=Object.prototype,dx=ux.hasOwnProperty;function fx(e){if(!pf(e))return cx(e);var t=[];for(var n in Object(e))dx.call(e,n)&&n!="constructor"&&t.push(n);return t}function Lp(e){return e!=null&&gf(e.length)&&!Op(e)}function Ba(e){return Lp(e)?Np(e):fx(e)}function mx(e,t){return e&&ja(t,Ba(t),e)}function hx(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var gx=Object.prototype,vx=gx.hasOwnProperty;function px(e){if(!Fn(e))return hx(e);var t=pf(e),n=[];for(var r in e)r=="constructor"&&(t||!vx.call(e,r))||n.push(r);return n}function bf(e){return Lp(e)?Np(e,!0):px(e)}function bx(e,t){return e&&ja(t,bf(t),e)}var Ap=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hh=Ap&&typeof module=="object"&&module&&!module.nodeType&&module,yx=hh&&hh.exports===Ap,gh=yx?tr.Buffer:void 0,vh=gh?gh.allocUnsafe:void 0;function Cx(e,t){if(t)return e.slice();var n=e.length,r=vh?vh(n):new e.constructor(n);return e.copy(r),r}function Dp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Sx(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function zp(){return []}var wx=Object.prototype,$x=wx.propertyIsEnumerable,ph=Object.getOwnPropertySymbols,xx=ph?function(e){return e==null?[]:(e=Object(e),Sx(ph(e),function(t){return $x.call(e,t)}))}:zp;const yf=xx;function Ex(e,t){return ja(e,yf(e),t)}function Cf(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ix=kp(Object.getPrototypeOf,Object);const Sf=Ix;var Ox=Object.getOwnPropertySymbols,Px=Ox?function(e){for(var t=[];e;)Cf(t,yf(e)),e=Sf(e);return t}:zp;const jp=Px;function Mx(e,t){return ja(e,jp(e),t)}function Bp(e,t,n){var r=t(e);return Wn(e)?r:Cf(r,n(e))}function Hu(e){return Bp(e,Ba,yf)}function Hp(e){return Bp(e,bf,jp)}var _x=Ro(tr,"DataView");const Fu=_x;var Rx=Ro(tr,"Promise");const Wu=Rx;var Tx=Ro(tr,"Set");const li=Tx;var Nx=Ro(tr,"WeakMap");const Vu=Nx;var bh="[object Map]",kx="[object Object]",yh="[object Promise]",Ch="[object Set]",Sh="[object WeakMap]",wh="[object DataView]",Lx=_o(Fu),Ax=_o(wa),Dx=_o(Wu),zx=_o(li),jx=_o(Vu),uo=Mo;(Fu&&uo(new Fu(new ArrayBuffer(1)))!=wh||wa&&uo(new wa)!=bh||Wu&&uo(Wu.resolve())!=yh||li&&uo(new li)!=Ch||Vu&&uo(new Vu)!=Sh)&&(uo=function(e){var t=Mo(e),n=t==kx?e.constructor:void 0,r=n?_o(n):"";if(r)switch(r){case Lx:return wh;case Ax:return bh;case Dx:return yh;case zx:return Ch;case jx:return Sh}return t});const xa=uo;var Bx=Object.prototype,Hx=Bx.hasOwnProperty;function Fx(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Hx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Wx=tr.Uint8Array;const ts=Wx;function wf(e){var t=new e.constructor(e.byteLength);return new ts(t).set(new ts(e)),t}function Vx(e,t){var n=t?wf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Kx=/\w*$/;function Gx(e){var t=new e.constructor(e.source,Kx.exec(e));return t.lastIndex=e.lastIndex,t}var $h=Hn?Hn.prototype:void 0,xh=$h?$h.valueOf:void 0;function Ux(e){return xh?Object(xh.call(e)):{}}function Xx(e,t){var n=t?wf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Yx="[object Boolean]",qx="[object Date]",Zx="[object Map]",Qx="[object Number]",Jx="[object RegExp]",eE="[object Set]",tE="[object String]",nE="[object Symbol]",rE="[object ArrayBuffer]",oE="[object DataView]",iE="[object Float32Array]",aE="[object Float64Array]",lE="[object Int8Array]",sE="[object Int16Array]",cE="[object Int32Array]",uE="[object Uint8Array]",dE="[object Uint8ClampedArray]",fE="[object Uint16Array]",mE="[object Uint32Array]";function hE(e,t,n){var r=e.constructor;switch(t){case rE:return wf(e);case Yx:case qx:return new r(+e);case oE:return Vx(e,n);case iE:case aE:case lE:case sE:case cE:case uE:case dE:case fE:case mE:return Xx(e,n);case Zx:return new r;case Qx:case tE:return new r(e);case Jx:return Gx(e);case eE:return new r;case nE:return Ux(e)}}var Eh=Object.create,gE=function(){function e(){}return function(t){if(!Fn(t))return {};if(Eh)return Eh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const vE=gE;function pE(e){return typeof e.constructor=="function"&&!pf(e)?vE(Sf(e)):{}}var bE="[object Map]";function yE(e){return Rr(e)&&xa(e)==bE}var Ih=hi&&hi.isMap,CE=Ih?vf(Ih):yE;const SE=CE;var wE="[object Set]";function $E(e){return Rr(e)&&xa(e)==wE}var Oh=hi&&hi.isSet,xE=Oh?vf(Oh):$E;const EE=xE;var IE=1,OE=2,PE=4,Fp="[object Arguments]",ME="[object Array]",_E="[object Boolean]",RE="[object Date]",TE="[object Error]",Wp="[object Function]",NE="[object GeneratorFunction]",kE="[object Map]",LE="[object Number]",Vp="[object Object]",AE="[object RegExp]",DE="[object Set]",zE="[object String]",jE="[object Symbol]",BE="[object WeakMap]",HE="[object ArrayBuffer]",FE="[object DataView]",WE="[object Float32Array]",VE="[object Float64Array]",KE="[object Int8Array]",GE="[object Int16Array]",UE="[object Int32Array]",XE="[object Uint8Array]",YE="[object Uint8ClampedArray]",qE="[object Uint16Array]",ZE="[object Uint32Array]",At={};At[Fp]=At[ME]=At[HE]=At[FE]=At[_E]=At[RE]=At[WE]=At[VE]=At[KE]=At[GE]=At[UE]=At[kE]=At[LE]=At[Vp]=At[AE]=At[DE]=At[zE]=At[jE]=At[XE]=At[YE]=At[qE]=At[ZE]=!0;At[TE]=At[Wp]=At[BE]=!1;function aa(e,t,n,r,o,i){var a,l=t&IE,s=t&OE,c=t&PE;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Fn(e))return e;var d=Wn(e);if(d){if(a=Fx(e),!l)return Dp(e,a)}else {var f=xa(e),m=f==Wp||f==NE;if(es(e))return Cx(e,l);if(f==Vp||f==Fp||m&&!o){if(a=s||m?{}:pE(e),!l)return s?Mx(e,bx(a,e)):Ex(e,mx(a,e))}else {if(!At[f])return o?e:{};a=hE(e,f,l);}}i||(i=new dr);var h=i.get(e);if(h)return h;i.set(e,a),EE(e)?e.forEach(function(p){a.add(aa(p,t,n,p,e,i));}):SE(e)&&e.forEach(function(p,y){a.set(y,aa(p,t,n,y,e,i));});var g=c?s?Hp:Hu:s?bf:Ba,v=d?void 0:g(e);return h$(v||e,function(p,y){v&&(y=p,p=e[y]),ff(a,y,aa(p,t,n,y,e,i));}),a}var QE="[object Symbol]";function Js(e){return typeof e=="symbol"||Rr(e)&&Mo(e)==QE}var JE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e2=/^\w*$/;function $f(e,t){if(Wn(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Js(e)?!0:e2.test(e)||!JE.test(e)||t!=null&&e in Object(t)}var t2="Expected a function";function xf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(t2);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xf.Cache||zr),n}xf.Cache=zr;var n2=500;function r2(e){var t=xf(e,function(r){return n.size===n2&&n.clear(),r}),n=t.cache;return t}var o2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i2=/\\(\\)?/g,a2=r2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(o2,function(n,r,o,i){t.push(o?i.replace(i2,"$1"):r||n);}),t});const l2=a2;var s2=1/0,Ph=Hn?Hn.prototype:void 0,Mh=Ph?Ph.toString:void 0;function Kp(e){if(typeof e=="string")return e;if(Wn(e))return uf(e,Kp)+"";if(Js(e))return Mh?Mh.call(e):"";var t=e+"";return t=="0"&&1/e==-s2?"-0":t}function c2(e){return e==null?"":Kp(e)}function _i(e,t){return Wn(e)?e:$f(e,t)?[e]:l2(c2(e))}function u2(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var d2=1/0;function Ri(e){if(typeof e=="string"||Js(e))return e;var t=e+"";return t=="0"&&1/e==-d2?"-0":t}function ec(e,t){t=_i(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ri(t[n++])];return n&&n==r?e:void 0}function f2(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function m2(e,t){return t.length<2?e:ec(e,f2(t,0,-1))}function h2(e,t){return t=_i(t,e),e=m2(e,t),e==null||delete e[Ri(u2(t))]}var g2="[object Object]",v2=Function.prototype,p2=Object.prototype,Gp=v2.toString,b2=p2.hasOwnProperty,y2=Gp.call(Object);function C2(e){if(!Rr(e)||Mo(e)!=g2)return !1;var t=Sf(e);if(t===null)return !0;var n=b2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Gp.call(n)==y2}function S2(e){return C2(e)?void 0:e}var _h=Hn?Hn.isConcatSpreadable:void 0;function w2(e){return Wn(e)||mf(e)||!!(_h&&e&&e[_h])}function Up(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=w2),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?Up(l,t-1,n,r,o):Cf(o,l):r||(o[o.length]=l);}return o}function $2(e){var t=e==null?0:e.length;return t?Up(e,1):[]}function x2(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Rh=Math.max;function E2(e,t,n){return t=Rh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Rh(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),x2(e,this,l)}}function I2(e){return function(){return e}}function Xp(e){return e}var O2=Jl?function(e,t){return Jl(e,"toString",{configurable:!0,enumerable:!1,value:I2(t),writable:!0})}:Xp;const P2=O2;var M2=800,_2=16,R2=Date.now;function T2(e){var t=0,n=0;return function(){var r=R2(),o=_2-(r-n);if(n=r,o>0){if(++t>=M2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var N2=T2(P2);const k2=N2;function Yp(e){return k2(E2(e,void 0,$2),e+"")}var L2=1,A2=2,D2=4,z2=Yp(function(e,t){var n={};if(e==null)return n;var r=!1;t=uf(t,function(i){return i=_i(i,e),r||(r=i.length>1),i}),ja(e,Hp(e),n),r&&(n=aa(n,L2|A2|D2,S2));for(var o=t.length;o--;)h2(n,t[o]);return n});const j2=z2;var B2=function(){return tr.Date.now()};const Kc=B2;var H2=/\s/;function F2(e){for(var t=e.length;t--&&H2.test(e.charAt(t)););return t}var W2=/^\s+/;function V2(e){return e&&e.slice(0,F2(e)+1).replace(W2,"")}var Th=0/0,K2=/^[-+]0x[0-9a-f]+$/i,G2=/^0b[01]+$/i,U2=/^0o[0-7]+$/i,X2=parseInt;function Ku(e){if(typeof e=="number")return e;if(Js(e))return Th;if(Fn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=V2(e);var n=G2.test(e);return n||U2.test(e)?X2(e.slice(2),n?2:8):K2.test(e)?Th:+e}var Y2="Expected a function",q2=Math.max,Z2=Math.min;function qp(e,t,n){var r,o,i,a,l,s,c=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(Y2);t=Ku(t)||0,Fn(n)&&(d=!!n.leading,f="maxWait"in n,i=f?q2(Ku(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h(x){var S=r,C=o;return r=o=void 0,c=x,a=e.apply(C,S),a}function g(x){return c=x,l=setTimeout(y,t),d?h(x):a}function v(x){var S=x-s,C=x-c,$=t-S;return f?Z2($,i-C):$}function p(x){var S=x-s,C=x-c;return s===void 0||S>=t||S<0||f&&C>=i}function y(){var x=Kc();if(p(x))return b(x);l=setTimeout(y,v(x));}function b(x){return l=void 0,m&&r?h(x):(r=o=void 0,a)}function E(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0;}function M(){return l===void 0?a:b(Kc())}function w(){var x=Kc(),S=p(x);if(r=arguments,o=this,s=x,S){if(l===void 0)return g(s);if(f)return clearTimeout(l),l=setTimeout(y,t),h(s)}return l===void 0&&(l=setTimeout(y,t)),a}return w.cancel=E,w.flush=M,w}var Q2="Expected a function";function Zp(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Q2);return Fn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qp(e,t,{leading:r,maxWait:t,trailing:o})}function J2(e,t,n,r){if(!Fn(e))return e;t=_i(t,e);for(var o=-1,i=t.length,a=i-1,l=e;l!=null&&++o<i;){var s=Ri(t[o]),c=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var d=l[s];c=r?r(d,s,l):void 0,c===void 0&&(c=Fn(d)?d:hf(t[o+1])?[]:{});}ff(l,s,c),l=l[s];}return e}function eI(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=ec(e,a);n(l,a)&&J2(i,_i(a,e),l);}return i}function tI(e,t){return e!=null&&t in Object(e)}function nI(e,t,n){t=_i(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ri(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&gf(o)&&hf(a,o)&&(Wn(e)||mf(e)))}function Qp(e,t){return e!=null&&nI(e,t,tI)}function rI(e,t){return eI(e,t,function(n,r){return Qp(e,r)})}var oI=Yp(function(e,t){return e==null?{}:rI(e,t)});const Ef=oI;var Gu={exports:{}},Gc,Nh;function iI(){if(Nh)return Gc;Nh=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Gc=function(d,f){f=f||{};var m=typeof d;if(m==="string"&&d.length>0)return a(d);if(m==="number"&&isFinite(d))return f.long?s(d):l(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function a(d){if(d=String(d),!(d.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(f){var m=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function l(d){var f=Math.abs(d);return f>=r?Math.round(d/r)+"d":f>=n?Math.round(d/n)+"h":f>=t?Math.round(d/t)+"m":f>=e?Math.round(d/e)+"s":d+"ms"}function s(d){var f=Math.abs(d);return f>=r?c(d,f,r,"day"):f>=n?c(d,f,n,"hour"):f>=t?c(d,f,t,"minute"):f>=e?c(d,f,e,"second"):d+" ms"}function c(d,f,m,h){var g=f>=m*1.5;return Math.round(d/m)+" "+h+(g?"s":"")}return Gc}function aI(e){n.debug=n,n.default=n,n.coerce=s,n.disable=i,n.enable=o,n.enabled=a,n.humanize=iI(),n.destroy=c,Object.keys(e).forEach(d=>{n[d]=e[d];}),n.names=[],n.skips=[],n.formatters={};function t(d){let f=0;for(let m=0;m<d.length;m++)f=(f<<5)-f+d.charCodeAt(m),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(d){let f,m=null,h,g;function v(...p){if(!v.enabled)return;const y=v,b=Number(new Date),E=b-(f||b);y.diff=E,y.prev=f,y.curr=b,f=b,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let M=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(x,S)=>{if(x==="%%")return "%";M++;const C=n.formatters[S];if(typeof C=="function"){const $=p[M];x=C.call(y,$),p.splice(M,1),M--;}return x}),n.formatArgs.call(y,p),(y.log||n.log).apply(y,p);}return v.namespace=d,v.useColors=n.useColors(),v.color=n.selectColor(d),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(d)),g),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}function r(d,f){const m=n(this.namespace+(typeof f>"u"?":":f)+d);return m.log=this.log,m}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let f;const m=(typeof d=="string"?d:"").split(/[\s,]+/),h=m.length;for(f=0;f<h;f++)m[f]&&(d=m[f].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")));}function i(){const d=[...n.names.map(l),...n.skips.map(l).map(f=>"-"+f)].join(",");return n.enable(""),d}function a(d){if(d[d.length-1]==="*")return !0;let f,m;for(f=0,m=n.skips.length;f<m;f++)if(n.skips[f].test(d))return !1;for(f=0,m=n.names.length;f<m;f++)if(n.names[f].test(d))return !0;return !1}function l(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function s(d){return d instanceof Error?d.stack||d.message:d}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var lI=aI;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let s=!1;return ()=>{s||(s=!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`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;s.splice(1,0,c,"color: inherit");let d=0,f=0;s[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(d++,m==="%c"&&(f=d));}),s.splice(f,0,c);}t.log=console.debug||console.log||(()=>{});function o(s){try{s?t.storage.setItem("debug",s):t.storage.removeItem("debug");}catch{}}function i(){let s;try{s=t.storage.getItem("debug");}catch{}return !s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s}function a(){try{return localStorage}catch{}}e.exports=lI(t);const{formatters:l}=e.exports;l.j=function(s){try{return JSON.stringify(s)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Gu,Gu.exports);var sI=Gu.exports;const cI=Ar(sI),nn="bilibili-app-recommend",uI="bilibili_app_recommend",Ti=cI(nn);var Jp={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&r.push(l);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&r.push(s);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(Jp);var dI=Jp.exports;const W=Ar(dI);function eb(e){if(Array.isArray(e))return e}function fI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1;}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d;}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function Uu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e,t){if(e){if(typeof e=="string")return Uu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uu(e,t)}}function tb(){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 G(e,t){return eb(e)||fI(e,t)||If(e,t)||tb()}function _n(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function En(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Ft=En()?u__namespace.useLayoutEffect:u__namespace.useEffect,si=function(t,n){var r=u__namespace.useRef(!0);Ft(function(){if(!r.current)return t()},n),Ft(function(){return r.current=!1,function(){r.current=!0;}},[]);};function Co(e){var t=u__namespace.useRef(!1),n=u__namespace.useState(e),r=G(n,2),o=r[0],i=r[1];u__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(l,s){s&&t.current||i(l);}return [o,a]}function Uc(e){return e!==void 0}function zt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Co(function(){return Uc(o)?o:Uc(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=G(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,m=a?a(f):f,h=_n(i),g=Co([f]),v=G(g,2),p=v[0],y=v[1];si(function(){var E=p[0];c!==E&&h(c,E);},[p]),si(function(){Uc(o)||d(o);},[o]);var b=_n(function(E,M){d(E,M),y([f],M);});return [m,b]}function mI(e){if(Array.isArray(e))return Uu(e)}function nb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hI(){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 Ge(e){return mI(e)||nb(e)||If(e)||hI()}function dt(e){"@babel/helpers - typeof";return dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(e)}function gI(e,t){if(dt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function rb(e){var t=gI(e,"string");return dt(t)==="symbol"?t:String(t)}function U(e,t,n){return t=rb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kh(Object(n),!0).forEach(function(r){U(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Of(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function vI(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qe(e,t){if(e==null)return {};var n=vI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Ha(e,t,n){var r=u__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Xu={},pI=function(t){};function bI(e,t){}function yI(e,t){}function CI(){Xu={};}function ob(e,t,n){!t&&!Xu[n]&&(e(!1,n),Xu[n]=!0);}function pr(e,t){ob(bI,e,t);}function SI(e,t){ob(yI,e,t);}pr.preMessage=pI;pr.resetWarned=CI;pr.noteOnce=SI;function tc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(pr(!s,"Warning: There may be circular references"),s)return !1;if(i===a)return !0;if(n&&l>1)return !1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],c))return !1;return !0}if(i&&a&&dt(i)==="object"&&dt(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],c)})}return !1}return o(e,t)}function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rb(r.key),r);}}function bn(e,t,n){return t&&Lh(e.prototype,t),n&&Lh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var wI=function(){function e(t){pn(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t;}return bn(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),Yu="data-token-hash",ci="data-css-hash",ti="__cssinjs_instance__";function $I(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ci,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ti]=o[ti]||e,o[ti]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(ci,"]"))).forEach(function(o){var i=o.getAttribute(ci);if(r[i]){if(o[ti]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new wI(e)}var xI=u__namespace.createContext({hashPriority:"low",cache:$I(),defaultCache:!0});const Pf=xI;function EI(e,t){if(!e)return !1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return !0;n=n.parentNode;}return !1}var Ah="data-rc-order",II="rc-util-key",qu=new Map;function ib(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):II}function nc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function OI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ab(e){return Array.from((qu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function lb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!En())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Ah,OI(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=nc(t),a=i.firstChild;if(r){if(r==="queue"){var l=ab(i).filter(function(s){return ["prepend","prependQueue"].includes(s.getAttribute(Ah))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=nc(t);return ab(n).find(function(r){return r.getAttribute(ib(t))===e})}function ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=sb(e,t);if(n){var r=nc(t);r.removeChild(n);}}function PI(e,t){var n=qu.get(e);if(!n||!EI(document,n)){var r=lb("",t),o=r.parentNode;qu.set(e,o),e.removeChild(r);}}function gi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=nc(n);PI(r,n);var o=sb(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=lb(e,n);return s.setAttribute(ib(n),t),s}function rs(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&dt(r)==="object"?t+=rs(r):t+=r;}),t}function MI(e,t){return Of("".concat(t,"_").concat(rs(e)))}var la="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),cb="903px";function _I(e,t){if(En()){var n;gi(e,la);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===cb;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),ns(la),o}return !1}var Xc=void 0;function RI(){return Xc===void 0&&(Xc=_I("@layer ".concat(la," { .").concat(la," { width: ").concat(cb,"!important; } }"),function(e){e.className=la;})),Xc}function ub(e,t,n,r){var o=u__namespace.useContext(Pf),i=o.cache,a=[e].concat(Ge(t));return u__namespace.useMemo(function(){i.update(a,function(l){var s=l||[],c=G(s,2),d=c[0],f=d===void 0?0:d,m=c[1],h=m,g=h||n();return [f+1,g]});},[a.join("_")]),u__namespace.useEffect(function(){return function(){i.update(a,function(l){var s=l||[],c=G(s,2),d=c[0],f=d===void 0?0:d,m=c[1],h=f-1;return h===0?(r==null||r(m,!1),null):[f-1,m]});}},a),i.get(a)[1]}var TI={},NI="css",ho=new Map;function kI(e){ho.set(e,(ho.get(e)||0)+1);}function LI(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Yu,'="').concat(e,'"]'));n.forEach(function(r){if(r[ti]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function AI(e,t){ho.set(e,(ho.get(e)||0)-1);var n=Array.from(ho.keys()),r=n.filter(function(o){var i=ho.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){LI(o,t),ho.delete(o);});}var db=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Z(Z({},i),n);return o&&(a=o(a)),a};function DI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(Pf),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,l=n.override,s=l===void 0?TI:l,c=n.formatToken,d=u__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},[t]),f=u__namespace.useMemo(function(){return rs(d)},[d]),m=u__namespace.useMemo(function(){return rs(s)},[s]),h=ub("token",[a,e.id,f,m],function(){var g=db(d,s,e,c),v=MI(g,a);g._tokenKey=v,kI(v);var p="".concat(NI,"-").concat(Of(v));return g._hashId=p,[g,p]},function(g){AI(g[0]._tokenKey,o);});return h}function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Ce.apply(this,arguments)}var zI={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},Dh=En(),jI="_skip_check_",fb="_multi_value_";function zh(e){var t=yo(cp(e),up);return t.replace(/\{%%%\:[^;];}/g,";")}function BI(e){return dt(e)==="object"&&e&&(jI in e||fb in e)}function HI(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,s=a.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(Ge(s.slice(1))).join(" ")});return i.join(",")}var FI=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",h={};function g(E){var M=E.getName(l);if(!h[M]){var w=e(E.style,n,{root:!1,parentSelectors:a}),x=G(w,1),S=x[0];h[M]="@keyframes ".concat(E.getName(l)).concat(S);}}function v(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(w){Array.isArray(w)?v(w,M):w&&M.push(w);}),M}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(E){var M=typeof E=="string"&&!o?{}:E;if(typeof M=="string")m+="".concat(M,` `);else if(M._keyframe)g(M);else {var w=f.reduce(function(x,S){var C;return (S==null||(C=S.visit)===null||C===void 0?void 0:C.call(S,x))||x},M);Object.keys(w).forEach(function(x){var S=w[x];if(dt(S)==="object"&&S&&(x!=="animationName"||!S._keyframe)&&!BI(S)){var C=!1,$=x.trim(),I=!1;(o||i)&&l?$.startsWith("@")?C=!0:$=HI(x,l,c):o&&!l&&($==="&"||$==="")&&($="",I=!0);var L=e(S,n,{root:I,injectHash:C,parentSelectors:[].concat(Ge(a),[$])}),R=G(L,2),O=R[0],P=R[1];h=Z(Z({},h),P),m+="".concat($).concat(O);}else {let N=function(A,z){var F=A.replace(/[A-Z]/g,function(j){return "-".concat(j.toLowerCase())}),V=z;!zI[A]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),A==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),V=z.getName(l)),m+="".concat(F,":").concat(V,";");};var _,k=(_=S==null?void 0:S.value)!==null&&_!==void 0?_:S;dt(S)==="object"&&S!==null&&S!==void 0&&S[fb]&&Array.isArray(k)?k.forEach(function(A){N(x,A);}):N(x,k);}});}}),!o)m="{".concat(m,"}");else if(s&&RI()){var y=s.split(","),b=y[y.length-1].trim();m="@layer ".concat(b," {").concat(m,"}"),y.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m));}return [m,h]};function WI(e,t){return Of("".concat(e.join("%")).concat(t))}function VI(){return null}function Zu(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=u__namespace.useContext(Pf),s=l.autoClear;l.mock;var c=l.defaultCache,d=l.hashPriority,f=l.container,m=l.ssrInline,h=l.transformers,g=l.linters,v=l.cache,p=n._tokenKey,y=[p].concat(Ge(r)),b=Dh,E=ub("style",y,function(){var C=t(),$=FI(C,{hashId:o,hashPriority:d,layer:i,path:r.join("-"),transformers:h,linters:g}),I=G($,2),L=I[0],R=I[1],O=zh(L),P=WI(y,O);if(b){var _={mark:ci,prepend:"queue",attachTo:f},k=typeof a=="function"?a():a;k&&(_.csp={nonce:k});var N=gi(O,P,_);N[ti]=v.instanceId,N.setAttribute(Yu,p),Object.keys(R).forEach(function(A){gi(zh(R[A]),"_effect-".concat(A),_);});}return [O,p,P]},function(C,$){var I=G(C,3),L=I[2];($||s)&&Dh&&ns(L,{mark:ci});}),M=G(E,3),w=M[0],x=M[1],S=M[2];return function(C){var $;if(!m||b||!c)$=u__namespace.createElement(VI,null);else {var I;$=u__namespace.createElement("style",Ce({},(I={},U(I,Yu,x),U(I,ci,S),I),{dangerouslySetInnerHTML:{__html:w}}));}return u__namespace.createElement(u__namespace.Fragment,null,$,C)}}var _t=function(){function e(t,n){pn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n;}return bn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function KI(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}var Mf=function(){function e(){pn(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return bn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else {var s,c;a=(s=a)===null||s===void 0||(c=s.map)===null||c===void 0?void 0:c.get(l);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,d){var f=G(c,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),l=a[0];this.delete(l);}this.keys.push(n);}var s=this.cache;n.forEach(function(c,d){if(d===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else {var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !KI(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(Mf,"MAX_CACHE_SIZE",20);U(Mf,"MAX_CACHE_OFFSET",5);var jh=0,GI=function(){function e(t){pn(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=jh,t.length===0&&(t.length>0,void 0),jh+=1;}return bn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Yc=new Mf;function os(e){var t=Array.isArray(e)?e:[e];return Yc.has(t)||Yc.set(t,new GI(t)),Yc.get(t)}function Bo(e){return e.notSplit=!0,e}Bo(["borderTop","borderBottom"]),Bo(["borderTop"]),Bo(["borderBottom"]),Bo(["borderLeft","borderRight"]),Bo(["borderLeft"]),Bo(["borderRight"]);var UI=u.createContext({});const _f=UI;function mb(e){return eb(e)||nb(e)||If(e)||tb()}function Qu(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function hb(e,t,n,r){if(!t.length)return n;var o=mb(t),i=o[0],a=o.slice(1),l;return !e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ge(e):l=Z({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=hb(l[i],a,n,r),l}function qc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Qu(e,t.slice(0,-1))?e:hb(e,t,n,r)}function XI(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Bh(e){return Array.isArray(e)?[]:{}}function YI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Bh(t[0]),o=new Set;return t.forEach(function(i){function a(l){var s=Qu(i,l),c=Array.isArray(s);if(c||XI(s)){if(!o.has(s)){o.add(s);var d=Qu(r,l);c?r=qc(r,l,[]):(!d||dt(d)!=="object")&&(r=qc(r,l,Bh(s))),Object.keys(s).forEach(function(f){a([].concat(Ge(l),[f]));});}}else r=qc(r,l,s);}a([]);}),r}const qI=u.createContext(void 0),gb={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"};var ZI={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 QI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vb=QI,JI={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"]},ZI),timePickerLocale:Object.assign({},vb)},Hh=JI,On="${label} is not a valid ${type}",eO={locale:"en",Pagination:gb,DatePicker:Hh,TimePicker:vb,Calendar:Hh,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"},PageHeader:{back:"Back"},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:On,method:On,array:On,object:On,number:On,date:On,boolean:On,integer:On,float:On,regexp:On,email:On,url:On,hex:On},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"},ColorPicker:{presetEmpty:"Empty"}},Zr=eO;let Zc=Object.assign({},Zr.Modal);function Fh(e){e?Zc=Object.assign(Object.assign({},Zc),e):Zc=Object.assign({},Zr.Modal);}const tO=u.createContext(void 0),Rf=tO,nO=(e,t)=>{const n=u__namespace.useContext(Rf),r=u__namespace.useMemo(()=>{var i;const a=t||Zr[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=u__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Zr.locale:i},[n]);return [r,o]},Ni=nO,rO="internalMark",oO=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u__namespace.useEffect(()=>(Fh(t&&t.Modal),()=>{Fh();}),[t]);const o=u__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u__namespace.createElement(Rf.Provider,{value:o},n)},iO=oO,Ea=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],aO="5.7.2";function sn(e,t){lO(e)&&(e="100%");var n=sO(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gl(e){return Math.min(1,Math.max(0,e))}function lO(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sO(e){return typeof e=="string"&&e.indexOf("%")!==-1}function pb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function po(e){return e.length===1?"0"+e:String(e)}function cO(e,t,n){return {r:sn(e,255)*255,g:sn(t,255)*255,b:sn(n,255)*255}}function Wh(e,t,n){e=sn(e,255),t=sn(t,255),n=sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else {var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:a,l}}function Qc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uO(e,t,n){var r,o,i;if(e=sn(e,360),t=sn(t,100),n=sn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Qc(l,a,e+1/3),o=Qc(l,a,e),i=Qc(l,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Ju(e,t,n){e=sn(e,255),t=sn(t,255),n=sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s,v:a}}function dO(e,t,n){e=sn(e,360)*6,t=sn(t,100),n=sn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,a,i,i,l,n][s],d=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return {r:c*255,g:d*255,b:f*255}}function ed(e,t,n,r){var o=[po(Math.round(e).toString(16)),po(Math.round(t).toString(16)),po(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function fO(e,t,n,r,o){var i=[po(Math.round(e).toString(16)),po(Math.round(t).toString(16)),po(Math.round(n).toString(16)),po(mO(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function mO(e){return Math.round(parseFloat(e)*255).toString(16)}function Vh(e){return Mn(e)/255}function Mn(e){return parseInt(e,16)}function hO(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var td={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 Jo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=pO(e)),typeof e=="object"&&(Er(e.r)&&Er(e.g)&&Er(e.b)?(t=cO(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Er(e.h)&&Er(e.s)&&Er(e.v)?(r=vl(e.s),o=vl(e.v),t=dO(e.h,r,o),a=!0,l="hsv"):Er(e.h)&&Er(e.s)&&Er(e.l)&&(r=vl(e.s),i=vl(e.l),t=uO(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=pb(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gO="[-\\+]?\\d+%?",vO="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(vO,")|(?:").concat(gO,")"),Jc="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),eu="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),Un={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+Jc),rgba:new RegExp("rgba"+eu),hsl:new RegExp("hsl"+Jc),hsla:new RegExp("hsla"+eu),hsv:new RegExp("hsv"+Jc),hsva:new RegExp("hsva"+eu),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 pO(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(td[e])e=td[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Un.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Un.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Un.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Un.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Un.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Un.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Un.hex8.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),a:Vh(n[4]),format:t?"name":"hex8"}:(n=Un.hex6.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),format:t?"name":"hex"}:(n=Un.hex4.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),a:Vh(n[4]+n[4]),format:t?"name":"hex8"}:(n=Un.hex3.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Er(e){return !!Un.CSS_UNIT.exec(String(e))}var Wt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=hO(t)),this.originalInput=t;var o=Jo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=pb(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ju(this.r,this.g,this.b);return {h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ju(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Wh(this.r,this.g,this.b);return {h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Wh(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ed(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),fO(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return {r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return "".concat(Math.round(sn(n,255)*100),"%")};return {r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(sn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return !1;for(var t="#"+ed(this.r,this.g,this.b,!1),n=0,r=Object.entries(td);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),pl=2,Kh=.16,bO=.05,yO=.05,CO=.15,bb=5,yb=4,SO=[{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 Gh(e){var t=e.r,n=e.g,r=e.b,o=Ju(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function bl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(ed(t,n,r,!1))}function wO(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Uh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-pl*t:Math.round(e.h)+pl*t:r=n?Math.round(e.h)+pl*t:Math.round(e.h)-pl*t,r<0?r+=360:r>=360&&(r-=360),r}function Xh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Kh*t:t===yb?r=e.s+Kh:r=e.s+bO*t,r>1&&(r=1),n&&t===bb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Yh(e,t,n){var r;return n?r=e.v+yO*t:r=e.v-CO*t,r>1&&(r=1),Number(r.toFixed(2))}function Tr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Jo(e),o=bb;o>0;o-=1){var i=Gh(r),a=bl(Jo({h:Uh(i,o,!0),s:Xh(i,o,!0),v:Yh(i,o,!0)}));n.push(a);}n.push(bl(r));for(var l=1;l<=yb;l+=1){var s=Gh(r),c=bl(Jo({h:Uh(s,l),s:Xh(s,l),v:Yh(s,l)}));n.push(c);}return t.theme==="dark"?SO.map(function(d){var f=d.index,m=d.opacity,h=bl(wO(Jo(t.backgroundColor||"#141414"),Jo(n[f]),m*100));return h}):n}var tu={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"},jl={},nu={};Object.keys(tu).forEach(function(e){jl[e]=Tr(tu[e]),jl[e].primary=jl[e][5],nu[e]=Tr(tu[e],{theme:"dark",backgroundColor:"#141414"}),nu[e].primary=nu[e][5];});var $O=jl.blue;const xO=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Cb=xO;function EO(e){const{sizeUnit:t,sizeStep:n}=e;return {sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Tf={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"},IO=Object.assign(Object.assign({},Tf),{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}),Fa=IO;function Sb(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),m=n(o),h=n(i),g=n(a),v=n(l),p=r(c,d),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Wt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OO=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},PO=OO;function MO(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},PO(r))}const Ir=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),Ki=(e,t)=>new Wt(e).darken(t).toHexString(),_O=e=>{const t=Tr(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},RO=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Ir(r,.88),colorTextSecondary:Ir(r,.65),colorTextTertiary:Ir(r,.45),colorTextQuaternary:Ir(r,.25),colorFill:Ir(r,.15),colorFillSecondary:Ir(r,.06),colorFillTertiary:Ir(r,.04),colorFillQuaternary:Ir(r,.02),colorBgLayout:Ki(n,4),colorBgContainer:Ki(n,0),colorBgElevated:Ki(n,0),colorBgSpotlight:Ir(r,.85),colorBorder:Ki(n,15),colorBorderSecondary:Ki(n,6)}};function TO(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const NO=e=>{const t=TO(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return {fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},wb=NO;function Wa(e){const t=Object.keys(Tf).map(n=>{const r=Tr(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Sb(e,{generateColorPalettes:_O,generateNeutralColorPalettes:RO})),wb(e.fontSize)),EO(e)),Cb(e)),MO(e))}const kO=os(Wa),is={token:Fa,hashed:!0},$b=u.createContext(is);function ru(e){return e>=0&&e<=255}function yl(e,t){const{r:n,g:r,b:o,a:i}=new Wt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Wt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),m=Math.round((o-s*(1-c))/c);if(ru(d)&&ru(f)&&ru(m))return new Wt({r:d,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var LO=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xb(e){const{override:t}=e,n=LO(e,["override"]),r=Object.assign({},t);Object.keys(Fa).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:yl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:yl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:yl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:yl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Wt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Wt("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function eo(){const{token:e,hashed:t,theme:n,components:r}=u.useContext($b),o=`${aO}-${t||""}`,i=n||kO,[a,l]=DI(i,[Fa,e],{salt:o,override:Object.assign({override:e},r),formatToken:xb});return [i,a,t?l:""]}const Eb="anticon",AO=(e,t)=>t||(e?`ant-${e}`:"ant"),ot=u__namespace.createContext({getPrefixCls:AO,iconPrefixCls:Eb}),DO=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,s=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-d,h=f,g=2*i-s,v=c,p=2*i-a,y=l,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),E=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${E}px 100%, 50% ${E}px, ${2*i-E}px 100%, ${E}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${m} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${y} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},kt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),To=()=>({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"}}),nd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),zO=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"}}}),jO=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return {[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Eo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Io=e=>({"&:focus-visible":Object.assign({},Eo(e))}),Ib=typeof CSSINJS_STATISTIC<"u";let rd=!0;function mt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ib)return Object.assign.apply(Object,[{}].concat(t));rd=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),rd=!0,r}function BO(){}function HO(e){let t,n=e,r=BO;return Ib&&(t=new Set,n=new Proxy(e,{get(o,i){return rd&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Ut(e,t,n,r){return o=>{const[i,a,l]=eo(),{getPrefixCls:s,iconPrefixCls:c,csp:d}=u.useContext(ot),f=s(),m={theme:i,token:a,hashId:l,nonce:()=>d==null?void 0:d.nonce};return Zu(Object.assign(Object.assign({},m),{path:["Shared",f]}),()=>[{"&":zO(a)}]),[Zu(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:g}=HO(a),v=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:w}=r;w.forEach(x=>{let[S,C]=x;var $;(v!=null&&v[S]||v!=null&&v[C])&&(($=v[C])!==null&&$!==void 0||(v[C]=v==null?void 0:v[S]));});}const p=typeof n=="function"?n(mt(h,v??{})):n,y=Object.assign(Object.assign({},p),v),b=`.${o}`,E=mt(h,{componentCls:b,prefixCls:o,iconCls:`.${c}`,antCls:`.${f}`},y),M=t(E,{hashId:l,prefixCls:o,rootPrefixCls:f,iconPrefixCls:c,overrideComponentToken:v});return g(e,y),[(r==null?void 0:r.resetStyle)===!1?null:jO(a,o),M]}),l]}}function Ob(e,t){return Ea.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const FO=`-ant-${Date.now()}-${Math.random()}`;function WO(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new Wt(a),c=Tr(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Wt(t.primaryColor),l=Tr(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new Wt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function VO(e,t){const n=WO(e,t);En()&&gi(n,`${FO}-dynamic-theme`);}const od=u__namespace.createContext(!1),KO=e=>{let{children:t,disabled:n}=e;const r=u__namespace.useContext(od);return u__namespace.createElement(od.Provider,{value:n??r},t)},br=od,id=u__namespace.createContext(void 0),GO=e=>{let{children:t,size:n}=e;const r=u__namespace.useContext(id);return u__namespace.createElement(id.Provider,{value:n||r},t)},rc=id;function UO(){const e=u.useContext(br),t=u.useContext(rc);return {componentDisabled:e,componentSize:t}}function XO(e,t){const n=e||{},r=n.inherit===!1||!t?is:t;return Ha(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((l,s)=>{const c=a[s];return !tc(l,c,!0)}))}function as(e){return e instanceof HTMLElement||e instanceof SVGElement}function ls(e){return as(e)?e:e instanceof u.Component?Qv.findDOMNode(e):null}function Nf(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Nf(i,o);});}}function Va(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ha(function(){return Sn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function No(e){var t,n,r=lf.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var YO=["children"],Pb=u__namespace.createContext({});function qO(e){var t=e.children,n=Qe(e,YO);return u__namespace.createElement(Pb.Provider,{value:n},t)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ad(e,t)}function to(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(e,t);}function ss(e){return ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ss(e)}function ZO(){if(typeof Reflect>"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 ld(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QO(e,t){if(t&&(dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ld(e)}function no(e){var t=ZO();return function(){var r=ss(e),o;if(t){var i=ss(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return QO(this,o)}}var JO=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component),fo="none",Cl="appear",Sl="enter",wl="leave",qh="none",Yn="prepare",ni="start",ri="active",kf="end",Mb="prepared";function Zh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function eP(e,t){var n={animationend:Zh("Animation","AnimationEnd"),transitionend:Zh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tP=eP(En(),typeof window<"u"?window:{}),_b={};if(En()){var nP=document.createElement("div");_b=nP.style;}var $l={};function Rb(e){if($l[e])return $l[e];var t=tP[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in _b)return $l[e]=t[i],$l[e]}return ""}var Tb=Rb("animationend"),Nb=Rb("transitionend"),kb=!!(Tb&&Nb),Qh=Tb||"animationend",Jh=Nb||"transitionend";function eg(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const rP=function(e){var t=u.useRef(),n=u.useRef(e);n.current=e;var r=u__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(Jh,r),a.removeEventListener(Qh,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Jh,r),a.addEventListener(Qh,r),t.current=a);}return u__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var Lb=En()?u.useLayoutEffect:u.useEffect,Ab=function(t){return +setTimeout(t,16)},Db=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ab=function(t){return window.requestAnimationFrame(t)},Db=function(t){return window.cancelAnimationFrame(t)});var tg=0,Lf=new Map;function zb(e){Lf.delete(e);}var It=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tg+=1;var r=tg;function o(i){if(i===0)zb(r),t();else {var a=Ab(function(){o(i-1);});Lf.set(r,a);}}return o(n),r};It.cancel=function(e){var t=Lf.get(e);return zb(t),Db(t)};const oP=function(){var e=u__namespace.useRef(null);function t(){It.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=It(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return u__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var iP=[Yn,ni,ri,kf],aP=[Yn,Mb],jb=!1,lP=!0;function Bb(e){return e===ri||e===kf}const sP=function(e,t,n){var r=Co(qh),o=G(r,2),i=o[0],a=o[1],l=oP(),s=G(l,2),c=s[0],d=s[1];function f(){a(Yn,!0);}var m=t?aP:iP;return Lb(function(){if(i!==qh&&i!==kf){var h=m.indexOf(i),g=m[h+1],v=n(i);v===jb?a(g,!0):g&&c(function(p){function y(){p.isCanceled()||a(g,!0);}v===!0?y():Promise.resolve(v).then(y);});}},[e,i]),u__namespace.useEffect(function(){return function(){d();}},[]),[f,i]};function cP(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,E=r.onEnterActive,M=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,$=Co(),I=G($,2),L=I[0],R=I[1],O=Co(fo),P=G(O,2),_=P[0],k=P[1],N=Co(null),A=G(N,2),z=A[0],F=A[1],V=u.useRef(!1),j=u.useRef(null);function H(){return n()}var B=u.useRef(!1);function X(){k(fo,!0),F(null,!0);}function J(he){var ge=H();if(!(he&&!he.deadline&&he.target!==ge)){var be=B.current,Re;_===Cl&&be?Re=w==null?void 0:w(ge,he):_===Sl&&be?Re=x==null?void 0:x(ge,he):_===wl&&be&&(Re=S==null?void 0:S(ge,he)),_!==fo&&be&&Re!==!1&&X();}}var Q=rP(J),K=G(Q,1),Y=K[0],re=function(ge){var be,Re,De;switch(ge){case Cl:return be={},U(be,Yn,m),U(be,ni,v),U(be,ri,b),be;case Sl:return Re={},U(Re,Yn,h),U(Re,ni,p),U(Re,ri,E),Re;case wl:return De={},U(De,Yn,g),U(De,ni,y),U(De,ri,M),De;default:return {}}},ue=u__namespace.useMemo(function(){return re(_)},[_]),se=sP(_,!e,function(he){if(he===Yn){var ge=ue[Yn];return ge?ge(H()):jb}if(q in ue){var be;F(((be=ue[q])===null||be===void 0?void 0:be.call(ue,H(),null))||null);}return q===ri&&(Y(H()),d>0&&(clearTimeout(j.current),j.current=setTimeout(function(){J({deadline:!0});},d))),q===Mb&&X(),lP}),ee=G(se,2),ae=ee[0],q=ee[1],te=Bb(q);B.current=te,Lb(function(){R(t);var he=V.current;V.current=!0;var ge;!he&&t&&l&&(ge=Cl),he&&t&&i&&(ge=Sl),(he&&!t&&c||!he&&f&&!t&&c)&&(ge=wl);var be=re(ge);ge&&(e||be[Yn])?(k(ge),ae()):k(fo);},[t]),u.useEffect(function(){(_===Cl&&!l||_===Sl&&!i||_===wl&&!c)&&k(fo);},[l,i,c]),u.useEffect(function(){return function(){V.current=!1,clearTimeout(j.current);}},[]);var ce=u__namespace.useRef(!1);u.useEffect(function(){L&&(ce.current=!0),L!==void 0&&_===fo&&((ce.current||L)&&(C==null||C(L)),ce.current=!0);},[L,_]);var fe=z;return ue[Yn]&&q===ni&&(fe=Z({transition:"none"},fe)),[_,q,fe,L??t]}function uP(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=u__namespace.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=u__namespace.useContext(Pb),p=v.motion,y=n(o,p),b=u.useRef(),E=u.useRef();function M(){try{return b.current instanceof HTMLElement?b.current:ls(E.current)}catch{return null}}var w=cP(y,l,M,o),x=G(w,4),S=x[0],C=x[1],$=x[2],I=x[3],L=u__namespace.useRef(I);I&&(L.current=!0);var R=u__namespace.useCallback(function(F){b.current=F,Nf(i,F);},[i]),O,P=Z(Z({},g),{},{visible:l});if(!f)O=null;else if(S===fo)I?O=f(Z({},P),R):!c&&L.current&&h?O=f(Z(Z({},P),{},{className:h}),R):d||!c&&!h?O=f(Z(Z({},P),{},{style:{display:"none"}}),R):O=null;else {var _,k;C===Yn?k="prepare":Bb(C)?k="active":C===ni&&(k="start");var N=eg(m,"".concat(S,"-").concat(k));O=f(Z(Z({},P),{},{className:W(eg(m,S),(_={},U(_,N,N&&k),U(_,m,typeof m=="string"),_)),style:$}),R);}if(u__namespace.isValidElement(O)&&No(O)){var A=O,z=A.ref;z||(O=u__namespace.cloneElement(O,{ref:R}));}return u__namespace.createElement(JO,{ref:E},O)});return r.displayName="CSSMotion",r}const ro=uP(kb);var sd="add",cd="keep",ud="remove",ou="removed";function dP(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function dd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dP)}function fP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=dd(e),a=dd(t);i.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(h){return Z(Z({},h),{},{status:sd})})),r=f),n.push(Z(Z({},m),{},{status:cd})),r+=1,d=!0;break}}d||n.push(Z(Z({},c),{},{status:ud}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return Z(Z({},c),{},{status:sd})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1;});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,m=d.status;return f!==c||m!==ud}),n.forEach(function(d){d.key===c&&(d.status=cd);});}),n}var mP=["component","children","onVisibleChanged","onAllRemoved"],hP=["status"],gP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function vP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=function(r){to(i,r);var o=no(i);function i(){var a;pn(this,i);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a=o.call.apply(o,[this].concat(s)),U(ld(a),"state",{keyEntities:[]}),U(ld(a),"removeKey",function(d){var f=a.state.keyEntities,m=f.map(function(h){return h.key!==d?h:Z(Z({},h),{},{status:ou})});return a.setState({keyEntities:m}),m.filter(function(h){var g=h.status;return g!==ou}).length}),a}return bn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,d=c.component,f=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,g=Qe(c,mP),v=d||u__namespace.Fragment,p={};return gP.forEach(function(y){p[y]=g[y],delete g[y];}),delete g.keys,u__namespace.createElement(v,g,s.map(function(y){var b=y.status,E=Qe(y,hP),M=b===sd||b===cd;return u__namespace.createElement(t,Ce({},p,{key:E.key,visible:M,eventProps:E,onVisibleChanged:function(x){if(m==null||m(x,{key:E.key}),!x){var S=l.removeKey(E.key);S===0&&h&&h();}}}),f)}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,d=s.keyEntities,f=dd(c),m=fP(d,f);return {keyEntities:m.filter(function(h){var g=d.find(function(v){var p=v.key;return h.key===p});return !(g&&g.status===ou&&h.status===ud)})}}}]),i}(u__namespace.Component);return U(n,"defaultProps",{component:"div"}),n}vP(kb);function pP(e){const{children:t}=e,[,n]=eo(),{motion:r}=n,o=u__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?u__namespace.createElement(qO,{motion:r},t):t}const bP=(e,t)=>{const[n,r]=eo();return Zu({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},To()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},yP=bP;var CP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const SP=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],wP="ant";let Hb;function $P(){return Hb||wP}function xP(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const EP=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Hb=t),r&&xP(r)&&VO($P(),r);},IP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:y,theme:b,componentDisabled:E,segmented:M,statistic:w,spin:x,calendar:S,carousel:C,cascader:$,collapse:I,typography:L,checkbox:R,descriptions:O,divider:P,drawer:_,skeleton:k,steps:N,image:A,layout:z,list:F,mentions:V,modal:j,progress:H,result:B,slider:X,breadcrumb:J,menu:Q,pagination:K,input:Y,empty:re,badge:ue,radio:se,rate:ee,switch:ae,transfer:q,avatar:te,message:ce,tag:fe,table:he,card:ge,tabs:be,timeline:Re,timePicker:De,upload:$e,notification:we,tree:Te,colorPicker:Je,datePicker:Ve}=e,Ye=u__namespace.useCallback((me,le)=>{const{prefixCls:Ne}=e;if(le)return le;const tt=Ne||p.getPrefixCls("");return me?`${tt}-${me}`:tt},[p.getPrefixCls,e.prefixCls]),Me=y||p.iconPrefixCls||Eb,ke=Me!==p.iconPrefixCls,qe=n||p.csp,et=yP(Me,qe),ye=XO(b,p.theme),xe={csp:qe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:c,space:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Ye,iconPrefixCls:Me,theme:ye,segmented:M,statistic:w,spin:x,calendar:S,carousel:C,cascader:$,collapse:I,typography:L,checkbox:R,descriptions:O,divider:P,drawer:_,skeleton:k,steps:N,image:A,input:Y,layout:z,list:F,mentions:V,modal:j,progress:H,result:B,slider:X,breadcrumb:J,menu:Q,pagination:K,empty:re,badge:ue,radio:se,rate:ee,switch:ae,transfer:q,avatar:te,message:ce,tag:fe,table:he,card:ge,tabs:be,timeline:Re,timePicker:De,upload:$e,notification:we,tree:Te,colorPicker:Je,datePicker:Ve},je=Object.assign({},p);Object.keys(xe).forEach(me=>{xe[me]!==void 0&&(je[me]=xe[me]);}),SP.forEach(me=>{const le=e[me];le&&(je[me]=le);});const Le=Ha(()=>je,je,(me,le)=>{const Ne=Object.keys(me),tt=Object.keys(le);return Ne.length!==tt.length||Ne.some(ct=>me[ct]!==le[ct])}),rt=u__namespace.useMemo(()=>({prefixCls:Me,csp:qe}),[Me,qe]);let Ue=ke?et(t):t;const de=u__namespace.useMemo(()=>{var me,le,Ne,tt;return YI(((me=Zr.Form)===null||me===void 0?void 0:me.defaultValidateMessages)||{},((Ne=(le=Le.locale)===null||le===void 0?void 0:le.Form)===null||Ne===void 0?void 0:Ne.defaultValidateMessages)||{},((tt=Le.form)===null||tt===void 0?void 0:tt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Le,a==null?void 0:a.validateMessages]);Object.keys(de).length>0&&(Ue=u__namespace.createElement(qI.Provider,{value:de},t)),l&&(Ue=u__namespace.createElement(iO,{locale:l,_ANT_MARK__:rO},Ue)),(Me||qe)&&(Ue=u__namespace.createElement(_f.Provider,{value:rt},Ue)),s&&(Ue=u__namespace.createElement(GO,{size:s},Ue)),Ue=u__namespace.createElement(pP,null,Ue);const ne=u__namespace.useMemo(()=>{const me=ye||{},{algorithm:le,token:Ne}=me,tt=CP(me,["algorithm","token"]),ct=le&&(!Array.isArray(le)||le.length>0)?os(le):void 0;return Object.assign(Object.assign({},tt),{theme:ct,token:Object.assign(Object.assign({},Fa),Ne)})},[ye]);return b&&(Ue=u__namespace.createElement($b.Provider,{value:ne},Ue)),E!==void 0&&(Ue=u__namespace.createElement(KO,{disabled:E},Ue)),u__namespace.createElement(ot.Provider,{value:Le},Ue)},ki=e=>{const t=u__namespace.useContext(ot),n=u__namespace.useContext(Rf);return u__namespace.createElement(IP,Object.assign({parentContext:t,legacyLocale:n},e))};ki.ConfigContext=ot;ki.SizeContext=rc;ki.config=EP;ki.useConfig=UO;Object.defineProperty(ki,"SizeContext",{get:()=>rc});const Af=ki;function Df(e,t,n,r){return function(i){const{prefixCls:a,style:l}=i,s=u__namespace.useRef(null),[c,d]=u__namespace.useState(0),[f,m]=u__namespace.useState(0),[h,g]=zt(!1,{value:i.open}),{getPrefixCls:v}=u__namespace.useContext(ot),p=v(t||"select",a);u__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(M=>{const w=M[0].target;d(w.offsetHeight+8),m(w.offsetWidth);}),E=setInterval(()=>{var M;const w=n?`.${n(p)}`:`.${p}-dropdown`,x=(M=s.current)===null||M===void 0?void 0:M.querySelector(w);x&&(clearInterval(E),b.observe(x));},10);return ()=>{clearInterval(E),b.disconnect();}}},[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});return r&&(y=r(y)),u__namespace.createElement(Af,{theme:{token:{motion:!1}}},u__namespace.createElement("div",{ref:s,style:{paddingBottom:c,position:"relative",minWidth:f}},u__namespace.createElement(e,Object.assign({},y))))}}function Zn(e,t,n){return W({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ka=(e,t)=>t||e,OP=e=>{const t=u.useContext(rc);return u.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},kn=OP;function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Qn(r)):lf.isFragment(r)&&r.props?n=n.concat(Qn(r.props.children,t)):n.push(r));}),n}function Ia(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ia=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(R,O,P){R[O]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(R,O,P){return Object.defineProperty(R,O,{value:P,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{s({},"");}catch{s=function(P,_,k){return P[_]=k};}function c(R,O,P,_){var k=O&&O.prototype instanceof m?O:m,N=Object.create(k.prototype),A=new $(_||[]);return r(N,"_invoke",{value:w(R,P,A)}),N}function d(R,O,P){try{return {type:"normal",arg:R.call(O,P)}}catch(_){return {type:"throw",arg:_}}}e.wrap=c;var f={};function m(){}function h(){}function g(){}var v={};s(v,i,function(){return this});var p=Object.getPrototypeOf,y=p&&p(p(I([])));y&&y!==t&&n.call(y,i)&&(v=y);var b=g.prototype=m.prototype=Object.create(v);function E(R){["next","throw","return"].forEach(function(O){s(R,O,function(P){return this._invoke(O,P)});});}function M(R,O){function P(k,N,A,z){var F=d(R[k],R,N);if(F.type!=="throw"){var V=F.arg,j=V.value;return j&&dt(j)=="object"&&n.call(j,"__await")?O.resolve(j.__await).then(function(H){P("next",H,A,z);},function(H){P("throw",H,A,z);}):O.resolve(j).then(function(H){V.value=H,A(V);},function(H){return P("throw",H,A,z)})}z(F.arg);}var _;r(this,"_invoke",{value:function(N,A){function z(){return new O(function(F,V){P(N,A,F,V);})}return _=_?_.then(z,z):z()}});}function w(R,O,P){var _="suspendedStart";return function(k,N){if(_==="executing")throw new Error("Generator is already running");if(_==="completed"){if(k==="throw")throw N;return L()}for(P.method=k,P.arg=N;;){var A=P.delegate;if(A){var z=x(A,P);if(z){if(z===f)continue;return z}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(_==="suspendedStart")throw _="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);_="executing";var F=d(R,O,P);if(F.type==="normal"){if(_=P.done?"completed":"suspendedYield",F.arg===f)continue;return {value:F.arg,done:P.done}}F.type==="throw"&&(_="completed",P.method="throw",P.arg=F.arg);}}}function x(R,O){var P=O.method,_=R.iterator[P];if(_===void 0)return O.delegate=null,P==="throw"&&R.iterator.return&&(O.method="return",O.arg=void 0,x(R,O),O.method==="throw")||P!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+P+"' method")),f;var k=d(_,R.iterator,O.arg);if(k.type==="throw")return O.method="throw",O.arg=k.arg,O.delegate=null,f;var N=k.arg;return N?N.done?(O[R.resultName]=N.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=void 0),O.delegate=null,f):N:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,f)}function S(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O);}function C(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O;}function $(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(S,this),this.reset(!0);}function I(R){if(R){var O=R[i];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var P=-1,_=function k(){for(;++P<R.length;)if(n.call(R,P))return k.value=R[P],k.done=!1,k;return k.value=void 0,k.done=!0,k};return _.next=_}}return {next:L}}function L(){return {value:void 0,done:!0}}return h.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:h,configurable:!0}),h.displayName=s(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return !!O&&(O===h||(O.displayName||O.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,g):(R.__proto__=g,s(R,l,"GeneratorFunction")),R.prototype=Object.create(b),R},e.awrap=function(R){return {__await:R}},E(M.prototype),s(M.prototype,a,function(){return this}),e.AsyncIterator=M,e.async=function(R,O,P,_,k){k===void 0&&(k=Promise);var N=new M(c(R,O,P,_),k);return e.isGeneratorFunction(O)?N:N.next().then(function(A){return A.done?A.value:N.next()})},E(b),s(b,l,"Generator"),s(b,i,function(){return this}),s(b,"toString",function(){return "[object Generator]"}),e.keys=function(R){var O=Object(R),P=[];for(var _ in O)P.push(_);return P.reverse(),function k(){for(;P.length;){var N=P.pop();if(N in O)return k.value=N,k.done=!1,k}return k.done=!0,k}},e.values=I,$.prototype={constructor:$,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!O)for(var P in this)P.charAt(0)==="t"&&n.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var P=this;function _(V,j){return A.type="throw",A.arg=O,P.next=V,j&&(P.method="next",P.arg=void 0),!!j}for(var k=this.tryEntries.length-1;k>=0;--k){var N=this.tryEntries[k],A=N.completion;if(N.tryLoc==="root")return _("end");if(N.tryLoc<=this.prev){var z=n.call(N,"catchLoc"),F=n.call(N,"finallyLoc");if(z&&F){if(this.prev<N.catchLoc)return _(N.catchLoc,!0);if(this.prev<N.finallyLoc)return _(N.finallyLoc)}else if(z){if(this.prev<N.catchLoc)return _(N.catchLoc,!0)}else {if(!F)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return _(N.finallyLoc)}}}},abrupt:function(O,P){for(var _=this.tryEntries.length-1;_>=0;--_){var k=this.tryEntries[_];if(k.tryLoc<=this.prev&&n.call(k,"finallyLoc")&&this.prev<k.finallyLoc){var N=k;break}}N&&(O==="break"||O==="continue")&&N.tryLoc<=P&&P<=N.finallyLoc&&(N=null);var A=N?N.completion:{};return A.type=O,A.arg=P,N?(this.method="next",this.next=N.finallyLoc,f):this.complete(A)},complete:function(O,P){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&P&&(this.next=P),f},finish:function(O){for(var P=this.tryEntries.length-1;P>=0;--P){var _=this.tryEntries[P];if(_.finallyLoc===O)return this.complete(_.completion,_.afterLoc),C(_),f}},catch:function(O){for(var P=this.tryEntries.length-1;P>=0;--P){var _=this.tryEntries[P];if(_.tryLoc===O){var k=_.completion;if(k.type==="throw"){var N=k.arg;C(_);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(O,P,_){return this.delegate={iterator:I(O),resultName:P,nextLoc:_},this.method==="next"&&(this.arg=void 0),f}},e}function ng(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value;}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,o);}function Fb(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){ng(i,r,o,a,l,"next",s);}function l(s){ng(i,r,o,a,l,"throw",s);}a(void 0);})}}function vn(e,t){var n=Z({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Vn=u__namespace.createContext({}),Oa=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(Vn),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u__namespace.createElement(Vn.Provider,{value:i},t)},vi=e=>e?typeof e=="function"?e():e:null,iu=()=>({height:0,opacity:0}),rg=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},PP=e=>({height:e?e.offsetHeight:0}),au=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Wb=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:iu,onEnterStart:iu,onAppearActive:rg,onEnterActive:rg,onLeaveStart:PP,onLeaveActive:iu,onAppearEnd:au,onEnterEnd:au,onLeaveEnd:au,motionDeadline:500}},MP=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",oc=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var Vb=u__namespace.createContext(null),og=[];function _P(e,t){var n=u__namespace.useState(function(){if(!En())return null;var g=document.createElement("div");return g}),r=G(n,1),o=r[0],i=u__namespace.useRef(!1),a=u__namespace.useContext(Vb),l=u__namespace.useState(og),s=G(l,2),c=s[0],d=s[1],f=a||(i.current?void 0:function(g){d(function(v){var p=[g].concat(Ge(v));return p});});function m(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1;}return Ft(function(){return e?a?a(m):m():h(),h},[e]),Ft(function(){c.length&&(c.forEach(function(g){return g()}),d(og));},[c]),[o,f]}var lu;function RP(e){if(typeof document>"u")return 0;if(e||lu===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),lu=o-i;}return lu}function TP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var NP="rc-util-locker-".concat(Date.now()),ig=0;function kP(e){var t=!!e,n=u__namespace.useState(function(){return ig+=1,"".concat(NP,"_").concat(ig)}),r=G(n,1),o=r[0];Ft(function(){if(t){var i=RP(),a=TP();gi(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else ns(o);return function(){ns(o);}},[t,o]);}var ag=!1;function LP(e){return typeof e=="boolean"&&(ag=e),ag}var lg=function(t){return t===!1?!1:!En()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Kb=u__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=u__namespace.useState(n),c=G(s,2),d=c[0],f=c[1],m=d||n;u__namespace.useEffect(function(){(a||n)&&f(n);},[n,a]);var h=u__namespace.useState(function(){return lg(o)}),g=G(h,2),v=g[0],p=g[1];u__namespace.useEffect(function(){var L=lg(o);p(L??null);});var y=_P(m&&!v),b=G(y,2),E=b[0],M=b[1],w=v??E;kP(r&&n&&En()&&(w===E||w===document.body));var x=null;if(l&&No(l)&&t){var S=l;x=S.ref;}var C=Va(x,t);if(!m||!En()||v===void 0)return null;var $=w===!1||LP(),I=l;return t&&(I=u__namespace.cloneElement(l,{ref:C})),u__namespace.createElement(Vb.Provider,{value:M},$?I:Qv.createPortal(I,w))}),Gb=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),fd=typeof window<"u"&&typeof document<"u"&&window.document===document,cs=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),AP=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(cs):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),DP=2;function zP(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l();}function a(){AP(i);}function l(){var s=Date.now();if(n){if(s-o<DP)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=s;}return l}var jP=20,BP=["top","right","bottom","left","width","height","size","weight"],HP=typeof MutationObserver<"u",FP=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=zP(this.refresh.bind(this),jP);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!fd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),HP?(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(){!fd||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=BP.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ub=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},pi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||cs},Xb=ic(0,0,0,0);function us(e){return parseFloat(e)||0}function sg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+us(i)},0)}function WP(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=us(a);}return n}function VP(e){var t=e.getBBox();return ic(0,0,t.width,t.height)}function KP(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xb;var r=pi(e).getComputedStyle(e),o=WP(r),i=o.left+o.right,a=o.top+o.bottom,l=us(r.width),s=us(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=sg(r,"left","right")+i),Math.round(s+a)!==n&&(s-=sg(r,"top","bottom")+a)),!UP(e)){var c=Math.round(l+i)-t,d=Math.round(s+a)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d);}return ic(o.left,o.top,l,s)}var GP=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof pi(e).SVGGraphicsElement}:function(e){return e instanceof pi(e).SVGElement&&typeof e.getBBox=="function"}}();function UP(e){return e===pi(e).document.documentElement}function XP(e){return fd?GP(e)?VP(e):KP(e):Xb}function YP(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ub(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function ic(e,t,n,r){return {x:e,y:t,width:n,height:r}}var qP=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ic(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=XP(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),ZP=function(){function e(t,n){var r=YP(n);Ub(this,{target:t,contentRect:r});}return e}(),QP=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Gb,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qP(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new ZP(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yb=typeof WeakMap<"u"?new WeakMap:new Gb,qb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=FP.getInstance(),r=new QP(t,n,this);Yb.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){qb.prototype[e]=function(){var t;return (t=Yb.get(this))[e].apply(t,arguments)};});var JP=function(){return typeof cs.ResizeObserver<"u"?cs.ResizeObserver:qb}(),Gr=new Map;function eM(e){e.forEach(function(t){var n,r=t.target;(n=Gr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var Zb=new JP(eM);function tM(e,t){Gr.has(e)||(Gr.set(e,new Set),Zb.observe(e)),Gr.get(e).add(t);}function nM(e,t){Gr.has(e)&&(Gr.get(e).delete(t),Gr.get(e).size||(Zb.unobserve(e),Gr.delete(e)));}var rM=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component),md=u__namespace.createContext(null);function oM(e){var t=e.children,n=e.onBatchResize,r=u__namespace.useRef(0),o=u__namespace.useRef([]),i=u__namespace.useContext(md),a=u__namespace.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(l,s,c);},[n,i]);return u__namespace.createElement(md.Provider,{value:a},t)}function iM(e,t){var n=e.children,r=e.disabled,o=u__namespace.useRef(null),i=u__namespace.useRef(null),a=u__namespace.useContext(md),l=typeof n=="function",s=l?n(o):n,c=u__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u__namespace.isValidElement(s)&&No(s),f=d?s.ref:null,m=u__namespace.useMemo(function(){return Sn(f,o)},[f,o]),h=function(){return ls(o.current)||ls(i.current)};u__namespace.useImperativeHandle(t,function(){return h()});var g=u__namespace.useRef(e);g.current=e;var v=u__namespace.useCallback(function(p){var y=g.current,b=y.onResize,E=y.data,M=p.getBoundingClientRect(),w=M.width,x=M.height,S=p.offsetWidth,C=p.offsetHeight,$=Math.floor(w),I=Math.floor(x);if(c.current.width!==$||c.current.height!==I||c.current.offsetWidth!==S||c.current.offsetHeight!==C){var L={width:$,height:I,offsetWidth:S,offsetHeight:C};c.current=L;var R=S===Math.round(w)?w:S,O=C===Math.round(x)?x:C,P=Z(Z({},L),{},{offsetWidth:R,offsetHeight:O});a==null||a(P,p,E),b&&Promise.resolve().then(function(){b(P,p);});}},[]);return u__namespace.useEffect(function(){var p=h();return p&&!r&&tM(p,v),function(){return nM(p,v)}},[o.current,r]),u__namespace.createElement(rM,{ref:i},d?u__namespace.cloneElement(s,{ref:m}):s)}var aM=u__namespace.forwardRef(iM),lM="rc-observer-key";function sM(e,t){var n=e.children,r=typeof n=="function"?[n]:Qn(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(lM,"-").concat(i);return u__namespace.createElement(aM,Ce({},e,{key:a,ref:i===0?t:void 0}),o)})}var Nr=u__namespace.forwardRef(sM);Nr.Collection=oM;function cM(){var e=Z({},u__namespace);return e.useId}var cg=0;function uM(e){var t=u__namespace.useState("ssr-id"),n=G(t,2),r=n[0],o=n[1],i=cM(),a=i==null?void 0:i();return u__namespace.useEffect(function(){if(!i){var l=cg;cg+=1,o("rc_unique_".concat(l));}},[]),e||a||r}const ac=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 ug=u__namespace.createContext(null);function dg(e){return e?Array.isArray(e)?e:[e]:[]}function dM(e,t,n,r){return u__namespace.useMemo(function(){var o=dg(n??t),i=dg(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}const zf=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1};function fM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function mM(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(fM((l=e[s])===null||l===void 0?void 0:l.points,o,r))return "".concat(t,"-placement-").concat(s)}return ""}function fg(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ga(e){return e.ownerDocument.defaultView}function hd(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ga(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement;}return t}function Pa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Gi(e){return Pa(parseFloat(e),0)}function mg(e,t){var n=Z({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Ga(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=Gi(l),y=Gi(s),b=Gi(c),E=Gi(d),M=Pa(Math.round(f.width/g*1e3)/1e3),w=Pa(Math.round(f.height/m*1e3)/1e3),x=(g-v-b-E)*M,S=(m-h-p-y)*w,C=p*w,$=y*w,I=b*M,L=E*M,R=0,O=0;if(i==="clip"){var P=Gi(a);R=P*M,O=P*w;}var _=f.x+I-R,k=f.y+C-O,N=_+f.width+2*R-I-L-x,A=k+f.height+2*O-C-$-S;n.left=Math.max(n.left,_),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A);}}),n}function hg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function gg(e,t){var n=t||[],r=G(n,2),o=r[0],i=r[1];return [hg(e.width,o),hg(e.height,i)]}function vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Ho(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Br(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function hM(e,t,n,r,o,i,a){var l=u__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=G(l,2),c=s[0],d=s[1],f=u__namespace.useRef(0),m=u__namespace.useMemo(function(){return t?hd(t):[]},[t]),h=u__namespace.useRef({}),g=function(){h.current={};};e||g();var v=_n(function(){if(t&&n&&e){let it=function(gt,Pt){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee,Gn=I.x+gt,dn=I.y+Pt,or=Gn+j,An=dn+V,so=Math.max(Gn,Gt.left),dl=Math.max(dn,Gt.top),Hi=Math.min(or,Gt.right),fl=Math.min(An,Gt.bottom);return Math.max(0,(Hi-so)*(fl-dl))},bt=function(){Ee=I.y+Le,_e=Ee+V,Ze=I.x+je,ft=Ze+j;};var b=t,E=b.style.left,M=b.style.top,w=b.ownerDocument,x=Ga(b),S=Z(Z({},o[r]),i);b.style.left="0",b.style.top="0";var C;if(Array.isArray(n))C={x:n[0],y:n[1],width:0,height:0};else {var $=n.getBoundingClientRect();C={x:$.x,y:$.y,width:$.width,height:$.height};}var I=b.getBoundingClientRect(),L=x.getComputedStyle(b),R=L.width,O=L.height,P=w.documentElement,_=P.clientWidth,k=P.clientHeight,N=P.scrollWidth,A=P.scrollHeight,z=P.scrollTop,F=P.scrollLeft,V=I.height,j=I.width,H=C.height,B=C.width,X={left:0,top:0,right:_,bottom:k},J={left:-F,top:-z,right:N-F,bottom:A-z},Q=S.htmlRegion,K="visible",Y="visibleFirst";Q!=="scroll"&&Q!==Y&&(Q=K);var re=Q===Y,ue=mg(J,m),se=mg(X,m),ee=Q===K?se:ue,ae=re?se:ee;b.style.left=E,b.style.top=M;var q=Pa(Math.round(j/parseFloat(R)*1e3)/1e3),te=Pa(Math.round(V/parseFloat(O)*1e3)/1e3);if(q===0||te===0||as(n)&&!zf(n))return;var ce=S.offset,fe=S.targetOffset,he=gg(I,ce),ge=G(he,2),be=ge[0],Re=ge[1],De=gg(C,fe),$e=G(De,2),we=$e[0],Te=$e[1];C.x-=we,C.y-=Te;var Je=S.points||[],Ve=G(Je,2),Ye=Ve[0],Me=Ve[1],ke=vg(Me),qe=vg(Ye),et=Ho(C,ke),ye=Ho(I,qe),xe=Z({},S),je=et.x-ye.x+be,Le=et.y-ye.y+Re,rt=it(je,Le),Ue=it(je,Le,se),de=Ho(C,["t","l"]),ne=Ho(I,["t","l"]),me=Ho(C,["b","r"]),le=Ho(I,["b","r"]),Ne=S.overflow||{},tt=Ne.adjustX,ct=Ne.adjustY,Ae=Ne.shiftX,Se=Ne.shiftY,ve=function(Pt){return typeof Pt=="boolean"?Pt:Pt>=0},Ee,_e,Ze,ft;bt();var vt=ve(ct),Vt=qe[0]===ke[0];if(vt&&qe[0]==="t"&&(_e>ae.bottom||h.current.bt)){var jt=Le;Vt?jt-=V-H:jt=de.y-le.y-Re;var Fe=it(je,jt),Xe=it(je,jt,se);Fe>rt||Fe===rt&&(!re||Xe>=Ue)?(h.current.bt=!0,Le=jt,xe.points=[Br(qe,0),Br(ke,0)]):h.current.bt=!1;}if(vt&&qe[0]==="b"&&(Ee<ae.top||h.current.tb)){var Be=Le;Vt?Be+=V-H:Be=me.y-ne.y-Re;var pt=it(je,Be),ht=it(je,Be,se);pt>rt||pt===rt&&(!re||ht>=Ue)?(h.current.tb=!0,Le=Be,xe.points=[Br(qe,0),Br(ke,0)]):h.current.tb=!1;}var Yt=ve(tt),He=qe[1]===ke[1];if(Yt&&qe[1]==="l"&&(ft>ae.right||h.current.rl)){var Ke=je;He?Ke-=j-B:Ke=de.x-le.x-be;var ut=it(Ke,Le),wt=it(Ke,Le,se);ut>rt||ut===rt&&(!re||wt>=Ue)?(h.current.rl=!0,je=Ke,xe.points=[Br(qe,1),Br(ke,1)]):h.current.rl=!1;}if(Yt&&qe[1]==="r"&&(Ze<ae.left||h.current.lr)){var Kt=je;He?Kt+=j-B:Kt=me.x-ne.x-be;var Lt=it(Kt,Le),un=it(Kt,Le,se);Lt>rt||Lt===rt&&(!re||un>=Ue)?(h.current.lr=!0,je=Kt,xe.points=[Br(qe,1),Br(ke,1)]):h.current.lr=!1;}bt();var $n=Ae===!0?0:Ae;typeof $n=="number"&&(Ze<ee.left&&(je-=Ze-ee.left,C.x+B<ee.left+$n&&(je+=C.x-ee.left+B-$n)),ft>ee.right&&(je-=ft-ee.right,C.x>ee.right-$n&&(je+=C.x-ee.right+$n)));var Kn=Se===!0?0:Se;typeof Kn=="number"&&(Ee<ee.top&&(Le-=Ee-ee.top,C.y+H<ee.top+Kn&&(Le+=C.y-ee.top+H-Kn)),_e>ee.bottom&&(Le-=_e-ee.bottom,C.y>ee.bottom-Kn&&(Le+=C.y-ee.bottom+Kn)));var yr=I.x+je,rr=yr+j,Ln=I.y+Le,yn=Ln+V,Cr=C.x,oo=Cr+B,Sr=C.y,wr=Sr+H,$r=Math.max(yr,Cr),io=Math.min(rr,oo),ao=($r+io)/2,lo=ao-yr,xr=Math.max(Ln,Sr),Ot=Math.min(yn,wr),Oe=(xr+Ot)/2,Ie=Oe-Ln;a==null||a(t,xe),d({ready:!0,offsetX:je/q,offsetY:Le/te,arrowX:lo/q,arrowY:Ie/te,scaleX:q,scaleY:te,align:xe});}}),p=function(){f.current+=1;var E=f.current;Promise.resolve().then(function(){f.current===E&&v();});},y=function(){d(function(E){return Z(Z({},E),{},{ready:!1})});};return Ft(y,[r]),Ft(function(){e||y();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function gM(e,t,n,r){Ft(function(){if(e&&t&&n){let d=function(){r();};var o=t,i=n,a=hd(o),l=hd(i),s=Ga(i),c=new Set([s].concat(Ge(a),Ge(l)));return c.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),s.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(f){f.removeEventListener("scroll",d),s.removeEventListener("resize",d);});}}},[e,t,n]);}function vM(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,m=u__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],y=g[1],b=v[0],E=v[1];p===b||!["t","b"].includes(p)?h.top=f:p==="t"?h.top=0:h.bottom=0,y===E||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0;}return u__namespace.createElement("div",{ref:m,className:W("".concat(t,"-arrow"),a),style:h},l)}function pM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u__namespace.createElement(ro,Ce({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u__namespace.createElement("div",{style:{zIndex:r},className:W("".concat(t,"-mask"),l)})}):null}var bM=u__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),yM=u__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,p=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,E=e.autoDestroy,M=e.portal,w=e.zIndex,x=e.onMouseEnter,S=e.onMouseLeave,C=e.ready,$=e.offsetX,I=e.offsetY,L=e.onAlign,R=e.onPrepare,O=e.stretch,P=e.targetWidth,_=e.targetHeight,k=typeof n=="function"?n():n,N=s||c,A=(b==null?void 0:b.length)>0,z=u__namespace.useState(!b||!A),F=G(z,2),V=F[0],j=F[1];if(Ft(function(){!V&&A&&a&&j(!0);},[V,A,a]),!V)return null;var H=C||!s?{left:$,top:I}:{left:"-1000vw",top:"-1000vh"},B={};return O&&(O.includes("height")&&_?B.height=_:O.includes("minHeight")&&_&&(B.minHeight=_),O.includes("width")&&P?B.width=P:O.includes("minWidth")&&P&&(B.minWidth=P)),s||(B.pointerEvents="none"),u__namespace.createElement(M,{open:y||N,getContainer:b&&function(){return b(a)},autoDestroy:E},u__namespace.createElement(pM,{prefixCls:o,open:s,zIndex:w,mask:f,motion:p}),u__namespace.createElement(Nr,{onResize:L,disabled:!s},function(X){return u__namespace.createElement(ro,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:R,onEnterPrepare:R,visible:s,onVisibleChanged:function(Q){var K;v==null||(K=v.onVisibleChanged)===null||K===void 0||K.call(v,Q),l(Q);}}),function(J,Q){var K=J.className,Y=J.style,re=W(o,K,r);return u__namespace.createElement("div",{ref:Sn(X,t,Q),className:re,style:Z(Z(Z(Z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},H),B),Y),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:x,onMouseLeave:S,onClick:d},m&&u__namespace.createElement(vM,{prefixCls:o,arrow:m,arrowPos:h,align:g}),u__namespace.createElement(bM,{cache:!s},k))})}))}),CM=u__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=No(n),i=u__namespace.useCallback(function(l){Nf(t,r?r(l):l);},[r]),a=Va(i,n.ref);return o?u__namespace.cloneElement(n,{ref:a}):n}),SM=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function wM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kb,t=u__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,y=p===void 0?.1:p,b=n.focusDelay,E=n.blurDelay,M=n.mask,w=n.maskClosable,x=w===void 0?!0:w,S=n.getPopupContainer,C=n.forceRender,$=n.autoDestroy,I=n.destroyPopupOnHide,L=n.popup,R=n.popupClassName,O=n.popupStyle,P=n.popupPlacement,_=n.builtinPlacements,k=_===void 0?{}:_,N=n.popupAlign,A=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,V=n.alignPoint,j=n.onPopupClick,H=n.onPopupAlign,B=n.arrow,X=n.popupMotion,J=n.maskMotion,Q=n.popupTransitionName,K=n.popupAnimation,Y=n.maskTransitionName,re=n.maskAnimation,ue=n.className,se=n.getTriggerDOMNode,ee=Qe(n,SM),ae=$||I||!1,q=u__namespace.useState(!1),te=G(q,2),ce=te[0],fe=te[1];Ft(function(){fe(ac());},[]);var he=u__namespace.useRef({}),ge=u__namespace.useContext(ug),be=u__namespace.useMemo(function(){return {registerSubPopup:function(at,Rt){he.current[at]=Rt,ge==null||ge.registerSubPopup(at,Rt);}}},[ge]),Re=uM(),De=u__namespace.useState(null),$e=G(De,2),we=$e[0],Te=$e[1],Je=_n(function(We){as(We)&&we!==We&&Te(We),ge==null||ge.registerSubPopup(Re,We);}),Ve=u__namespace.useState(null),Ye=G(Ve,2),Me=Ye[0],ke=Ye[1],qe=_n(function(We){as(We)&&Me!==We&&ke(We);}),et=u__namespace.Children.only(a),ye=(et==null?void 0:et.props)||{},xe={},je=_n(function(We){var at,Rt,Nt=Me;return (Nt==null?void 0:Nt.contains(We))||(Nt==null||(at=Nt.getRootNode())===null||at===void 0?void 0:at.host)===We||We===Nt||(we==null?void 0:we.contains(We))||(we==null||(Rt=we.getRootNode())===null||Rt===void 0?void 0:Rt.host)===We||We===we||Object.values(he.current).some(function(Mt){return (Mt==null?void 0:Mt.contains(We))||We===Mt})}),Le=fg(i,X,K,Q),rt=fg(i,J,re,Y),Ue=u__namespace.useState(m||!1),de=G(Ue,2),ne=de[0],me=de[1],le=f??ne,Ne=_n(function(We){f===void 0&&me(We);});Ft(function(){me(f||!1);},[f]);var tt=u__namespace.useRef(le);tt.current=le;var ct=_n(function(We){le!==We&&(Ne(We),h==null||h(We));}),Ae=u__namespace.useRef(),Se=function(){clearTimeout(Ae.current);},ve=function(at){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Se(),Rt===0?ct(at):Ae.current=setTimeout(function(){ct(at);},Rt*1e3);};u__namespace.useEffect(function(){return Se},[]);var Ee=u__namespace.useState(!1),_e=G(Ee,2),Ze=_e[0],ft=_e[1],vt=u__namespace.useRef(!0);Ft(function(){(!vt.current||le)&&ft(!0),vt.current=!0;},[le]);var Vt=u__namespace.useState(null),jt=G(Vt,2),Fe=jt[0],Xe=jt[1],Be=u__namespace.useState([0,0]),pt=G(Be,2),ht=pt[0],Yt=pt[1],He=function(at){Yt([at.clientX,at.clientY]);},Ke=hM(le,we,V?ht:Me,P,k,N,H),ut=G(Ke,9),wt=ut[0],Kt=ut[1],Lt=ut[2],un=ut[3],$n=ut[4],Kn=ut[5],yr=ut[6],rr=ut[7],Ln=ut[8],yn=_n(function(){Ze||Ln();});gM(le,Me,we,yn),Ft(function(){yn();},[ht,P]),Ft(function(){le&&!(k!=null&&k[P])&&yn();},[JSON.stringify(N)]);var Cr=u__namespace.useMemo(function(){var We=mM(k,i,rr,V);return W(We,F==null?void 0:F(rr))},[rr,F,k,i,V]);u__namespace.useImperativeHandle(r,function(){return {forceAlign:yn}});var oo=function(at){ft(!1),Ln(),g==null||g(at);},Sr=function(){return new Promise(function(at){Xe(function(){return at});})};Ft(function(){Fe&&(Ln(),Fe(),Xe(null));},[Fe]);var wr=u__namespace.useState(0),$r=G(wr,2),io=$r[0],ao=$r[1],lo=u__namespace.useState(0),xr=G(lo,2),Ot=xr[0],Oe=xr[1],Ie=function(at,Rt){if(yn(),z){var Nt=Rt.getBoundingClientRect();ao(Nt.width),Oe(Nt.height);}},it=dM(ce,s,c,d),bt=G(it,2),gt=bt[0],Pt=bt[1],Gt=function(at,Rt,Nt,Mt){xe[at]=function(Fi){var zo;Mt==null||Mt(Fi),ve(Rt,Nt);for(var co=arguments.length,jo=new Array(co>1?co-1:0),ml=1;ml<co;ml++)jo[ml-1]=arguments[ml];(zo=ye[at])===null||zo===void 0||zo.call.apply(zo,[ye,Fi].concat(jo));};},Gn=gt.has("click"),dn=Pt.has("click")||Pt.has("contextMenu");(Gn||dn)&&(xe.onClick=function(We){var at;tt.current&&dn?ve(!1):!tt.current&&Gn&&(He(We),ve(!0));for(var Rt=arguments.length,Nt=new Array(Rt>1?Rt-1:0),Mt=1;Mt<Rt;Mt++)Nt[Mt-1]=arguments[Mt];(at=ye.onClick)===null||at===void 0||at.call.apply(at,[ye,We].concat(Nt));}),u__namespace.useEffect(function(){if(dn&&we&&(!M||x)){var We=!1,at=function(co){var jo=co.target;We=je(jo);},Rt=function(co){var jo=co.target;tt.current&&!We&&!je(jo)&&ve(!1);},Nt=Ga(we),Mt=Me==null?void 0:Me.getRootNode();Nt.addEventListener("mousedown",at),Nt.addEventListener("click",Rt);var Fi=Mt&&Mt!==Me.ownerDocument;return Fi&&(Mt.addEventListener("mousedown",at),Mt.addEventListener("click",Rt)),function(){Nt.removeEventListener("mousedown",at),Nt.removeEventListener("click",Rt),Fi&&(Mt.removeEventListener("mousedown",at),Mt.removeEventListener("click",Rt));}}},[dn,Me,we,M,x]);var or=gt.has("hover"),An=Pt.has("hover"),so,dl;or&&(Gt("onMouseEnter",!0,v,function(We){He(We);}),so=function(){ve(!0,v);},V&&(xe.onMouseMove=function(We){var at;(at=ye.onMouseMove)===null||at===void 0||at.call(ye,We);})),An&&(Gt("onMouseLeave",!1,y),dl=function(){ve(!1,y);}),gt.has("focus")&&Gt("onFocus",!0,b),Pt.has("focus")&&Gt("onBlur",!1,E),gt.has("contextMenu")&&(xe.onContextMenu=function(We){var at;He(We),ve(!0),We.preventDefault();for(var Rt=arguments.length,Nt=new Array(Rt>1?Rt-1:0),Mt=1;Mt<Rt;Mt++)Nt[Mt-1]=arguments[Mt];(at=ye.onContextMenu)===null||at===void 0||at.call.apply(at,[ye,We].concat(Nt));}),ue&&(xe.className=W(ye.className,ue));var Hi=Z(Z({},ye),xe),fl={},YS=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];YS.forEach(function(We){ee[We]&&(fl[We]=function(){for(var at,Rt=arguments.length,Nt=new Array(Rt),Mt=0;Mt<Rt;Mt++)Nt[Mt]=arguments[Mt];(at=Hi[We])===null||at===void 0||at.call.apply(at,[Hi].concat(Nt)),ee[We].apply(ee,Nt);});});var qS=u__namespace.cloneElement(et,Z(Z({},Hi),fl)),ZS={x:un,y:$n},QS=B?Z({},B!==!0?B:{}):null;return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(Nr,{disabled:!le,ref:qe,onResize:Ie},u__namespace.createElement(CM,{getTriggerDOMNode:se},qS)),u__namespace.createElement(ug.Provider,{value:be},u__namespace.createElement(yM,{portal:e,ref:Je,prefixCls:i,popup:L,className:W(R,Cr),style:O,target:Me,onMouseEnter:so,onMouseLeave:dl,zIndex:A,open:le,keepDom:Ze,onClick:j,mask:M,motion:Le,maskMotion:rt,onVisibleChanged:oo,onPrepare:Sr,forceRender:C,autoDestroy:ae,getPopupContainer:S,align:rr,arrow:QS,arrowPos:ZS,ready:wt,offsetX:Kt,offsetY:Lt,onAlign:yn,stretch:z,targetWidth:io/Kn,targetHeight:Ot/yr})))});return t}const lc=wM(Kb);var Fo={shiftX:64,adjustY:1},Wo={adjustX:1,shiftY:!0},Dn=[0,0],$M={left:{points:["cr","cl"],overflow:Wo,offset:[-4,0],targetOffset:Dn},right:{points:["cl","cr"],overflow:Wo,offset:[4,0],targetOffset:Dn},top:{points:["bc","tc"],overflow:Fo,offset:[0,-4],targetOffset:Dn},bottom:{points:["tc","bc"],overflow:Fo,offset:[0,4],targetOffset:Dn},topLeft:{points:["bl","tl"],overflow:Fo,offset:[0,-4],targetOffset:Dn},leftTop:{points:["tr","tl"],overflow:Wo,offset:[-4,0],targetOffset:Dn},topRight:{points:["br","tr"],overflow:Fo,offset:[0,-4],targetOffset:Dn},rightTop:{points:["tl","tr"],overflow:Wo,offset:[4,0],targetOffset:Dn},bottomRight:{points:["tr","br"],overflow:Fo,offset:[0,4],targetOffset:Dn},rightBottom:{points:["bl","br"],overflow:Wo,offset:[4,0],targetOffset:Dn},bottomLeft:{points:["tl","bl"],overflow:Fo,offset:[0,4],targetOffset:Dn},leftBottom:{points:["br","bl"],overflow:Wo,offset:[-4,0],targetOffset:Dn}};function jf(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return u__namespace.createElement("div",{className:W("".concat(n,"-content"),i),style:a},u__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var xM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],EM=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,y=t.animation,b=t.motion,E=t.placement,M=E===void 0?"right":E,w=t.align,x=w===void 0?{}:w,S=t.destroyTooltipOnHide,C=S===void 0?!1:S,$=t.defaultVisible,I=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,O=t.id,P=t.showArrow,_=P===void 0?!0:P,k=Qe(t,xM),N=u.useRef(null);u.useImperativeHandle(n,function(){return N.current});var A=Z({},k);"visible"in t&&(A.popupVisible=t.visible);var z=function(){return u__namespace.createElement(jf,{key:"content",prefixCls:m,id:O,overlayInnerStyle:L},R)};return u__namespace.createElement(lc,Ce({popupClassName:r,prefixCls:m,popup:z,action:i,builtinPlacements:$M,popupPlacement:M,ref:N,popupAlign:x,getPopupContainer:I,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:y,popupMotion:b,defaultPopupVisible:$,autoDestroy:C,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:l,arrow:_},A),h)};const IM=u.forwardRef(EM),Qb=8;function Bf(e){const t=Qb,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function xl(e,t){return e?t:{}}function Hf(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=Bf({contentRadius:s,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},DO(r,o,i,l,a)),{"&:before":{background:l}})]},xl(!!f.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),xl(!!f.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),xl(!!f.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),xl(!!f.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function OM(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const pg={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"]}},PM={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"]}},MM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Jb(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(pg).forEach(c=>{const d=r&&PM[c]||pg[c],f=Object.assign(Object.assign({},d),{offset:[0,0]});switch(s[c]=f,MM.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Bf({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+l;break}f.overflow=OM(c,m,t,n),a&&(f.htmlRegion="visibleFirst");}),s}const{isValidElement:Qr}=u__namespace;function e0(e){return e&&Qr(e)&&e.type===u__namespace.Fragment}function _M(e,t,n){return Qr(e)?u__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Tn(e,t){return _M(e,e,t)}const RM=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},TM=RM,NM=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},t0=Ut("Space",e=>[NM(e),TM(e)],()=>({}),{resetStyle:!1});var n0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sc=u__namespace.createContext(null),Li=(e,t)=>{const n=u__namespace.useContext(sc),r=u__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return W(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},bi=e=>{let{children:t}=e;return u__namespace.createElement(sc.Provider,{value:null},t)},kM=e=>{var{children:t}=e,n=n0(e,["children"]);return u__namespace.createElement(sc.Provider,{value:n},t)},LM=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(ot),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=n0(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=kn(E=>r??E),m=t("space-compact",a),[h,g]=t0(m),v=W(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,s),p=u__namespace.useContext(sc),y=Qn(c),b=u__namespace.useMemo(()=>y.map((E,M)=>{const w=E&&E.key||`${m}-item-${M}`;return u__namespace.createElement(kM,{key:w,compactSize:f,compactDirection:o,isFirstItem:M===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:M===y.length-1&&(!p||(p==null?void 0:p.isLastItem))},E)}),[r,y,p]);return y.length===0?null:h(u__namespace.createElement("div",Object.assign({className:v},d),b))},AM=LM,DM=e=>{const t=e!=null&&e.algorithm?os(e.algorithm):os(Wa),n=Object.assign(Object.assign({},Fa),e==null?void 0:e.token);return db(n,{override:e==null?void 0:e.token},t,xb)},zM=DM;function jM(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const BM=(e,t)=>{const n=t??Wa(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),jM(t??e)),wb(r)),{controlHeight:o}),Cb(Object.assign(Object.assign({},n),{controlHeight:o})))},HM=BM,Hr=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),Vo=(e,t)=>new Wt(e).lighten(t).toHexString(),FM=e=>{const t=Tr(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},WM=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Hr(r,.85),colorTextSecondary:Hr(r,.65),colorTextTertiary:Hr(r,.45),colorTextQuaternary:Hr(r,.25),colorFill:Hr(r,.18),colorFillSecondary:Hr(r,.12),colorFillTertiary:Hr(r,.08),colorFillQuaternary:Hr(r,.04),colorBgElevated:Vo(n,12),colorBgContainer:Vo(n,8),colorBgLayout:Vo(n,0),colorBgSpotlight:Vo(n,26),colorBorder:Vo(n,26),colorBorderSecondary:Vo(n,19)}},VM=(e,t)=>{const n=Object.keys(Tf).map(o=>{const i=Tr(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${o}-${s+1}`]=i[s],a[`${o}${s+1}`]=i[s],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??Wa(e);return Object.assign(Object.assign(Object.assign({},r),n),Sb(e,{generateColorPalettes:FM,generateNeutralColorPalettes:WM}))},KM=VM;function UM(){const[e,t,n]=eo();return {theme:e,token:t,hashId:n}}const yi={defaultConfig:is,defaultSeed:is.token,useToken:UM,defaultAlgorithm:Wa,darkAlgorithm:KM,compactAlgorithm:HM,getDesignToken:zM},XM=e=>({animationDuration:e,animationFillMode:"both"}),YM=e=>({animationDuration:e,animationFillMode:"both"}),Ff=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},XM(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},YM(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},qM=new _t("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ZM=new _t("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),QM=new _t("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),JM=new _t("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),e_=new _t("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),t_=new _t("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n_=new _t("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),r_=new _t("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),o_={"move-up":{inKeyframes:n_,outKeyframes:r_},"move-down":{inKeyframes:qM,outKeyframes:ZM},"move-left":{inKeyframes:QM,outKeyframes:JM},"move-right":{inKeyframes:e_,outKeyframes:t_}},ds=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=o_[t];return [Ff(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new _t("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vf=new _t("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kf=new _t("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gf=new _t("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),i_=new _t("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),a_=new _t("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l_=new _t("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),s_=new _t("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),c_={"slide-up":{inKeyframes:Wf,outKeyframes:Vf},"slide-down":{inKeyframes:Kf,outKeyframes:Gf},"slide-left":{inKeyframes:i_,outKeyframes:a_},"slide-right":{inKeyframes:l_,outKeyframes:s_}},Jr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=c_[t];return [Ff(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},u_=new _t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),d_=new _t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bg=new _t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yg=new _t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),f_=new _t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),m_=new _t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),h_=new _t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),g_=new _t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),v_=new _t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),p_=new _t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),b_=new _t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),y_=new _t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),C_={zoom:{inKeyframes:u_,outKeyframes:d_},"zoom-big":{inKeyframes:bg,outKeyframes:yg},"zoom-big-fast":{inKeyframes:bg,outKeyframes:yg},"zoom-left":{inKeyframes:h_,outKeyframes:g_},"zoom-right":{inKeyframes:v_,outKeyframes:p_},"zoom-up":{inKeyframes:f_,outKeyframes:m_},"zoom-down":{inKeyframes:b_,outKeyframes:y_}},cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=C_[t];return [Ff(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},S_=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),r0=S_,w_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:d,tooltipRadiusOuter:f}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Qb)}},[`${t}-content`]:{position:"relative"}}),Ob(e,(m,h)=>{let{darkColor:g}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Hf(mt(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},o0=(e,t)=>Ut("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=mt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return [w_(s),cc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),$_=Ea.map(e=>`${e}-inverse`),x_=["success","processing","error","default","warning"];function i0(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ge($_),Ge(Ea)).includes(e):Ea.includes(e)}function E_(e){return x_.includes(e)}function a0(e,t){const n=i0(t),r=W({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function I_(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=u__namespace.useContext(ot),s=l("tooltip",t),[c,d]=o0(s,!0),f=a0(s,i),m=Object.assign(Object.assign({},a),f.overlayStyle),h=f.arrowStyle;return c(u__namespace.createElement("div",{className:W(d,s,`${s}-pure`,`${s}-placement-${r}`,n,f.className),style:h},u__namespace.createElement("div",{className:`${s}-arrow`}),u__namespace.createElement(jf,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:m}),o)))}var O_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:P_}=yi,M_=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function __(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=M_(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),l=Tn(e,{style:a,className:null});return u__namespace.createElement("span",{style:i,className:W(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const l0=u__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:E=!0}=e,M=!!g,{token:w}=P_(),{getPopupContainer:x,getPrefixCls:S,direction:C}=u__namespace.useContext(ot),$=u__namespace.useRef(null),I=()=>{var fe;(fe=$.current)===null||fe===void 0||fe.forceAlign();};u__namespace.useImperativeHandle(t,()=>({forceAlign:I,forcePopupAlign:()=>{I();}}));const[L,R]=zt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=!v&&!p&&v!==0,P=fe=>{var he,ge;R(O?!1:fe),O||((he=e.onOpenChange)===null||he===void 0||he.call(e,fe),(ge=e.onVisibleChange)===null||ge===void 0||ge.call(e,fe));},_=u__namespace.useMemo(()=>{var fe,he;let ge=b;return typeof g=="object"&&(ge=(he=(fe=g.pointAtCenter)!==null&&fe!==void 0?fe:g.arrowPointAtCenter)!==null&&he!==void 0?he:b),y||Jb({arrowPointAtCenter:ge,autoAdjustOverflow:E,arrowWidth:M?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[b,g,y,w]),k=u__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),N=u__namespace.createElement(bi,null,typeof k=="function"?k():k),{getPopupContainer:A,placement:z="top",mouseEnterDelay:F=.1,mouseLeaveDelay:V=.1,overlayStyle:j,rootClassName:H}=e,B=O_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=S("tooltip",o),J=S(),Q=e["data-popover-inject"];let K=L;!("open"in e)&&!("visible"in e)&&O&&(K=!1);const Y=__(Qr(d)&&!e0(d)?d:u__namespace.createElement("span",null,d),X),re=Y.props,ue=!re.className||typeof re.className=="string"?W(re.className,{[i||`${X}-open`]:!0}):re.className,[se,ee]=o0(X,!Q),ae=a0(X,s),q=Object.assign(Object.assign({},c),ae.overlayStyle),te=ae.arrowStyle,ce=W(l,{[`${X}-rtl`]:C==="rtl"},ae.className,H,ee);return se(u__namespace.createElement(IM,Object.assign({},B,{showArrow:M,placement:z,mouseEnterDelay:F,mouseLeaveDelay:V,prefixCls:X,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},te),j),getTooltipContainer:A||a||x,ref:$,builtinPlacements:_,overlay:N,visible:K,onVisibleChange:P,afterVisibleChange:f??m,overlayInnerStyle:q,arrowContent:u__namespace.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:oc(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),K?Tn(Y,{className:ue}):Y))});l0._InternalPanelDoNotUseOrYouWillBeFired=I_;const Ua=l0,R_=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,marginXS:d,colorBgElevated:f,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Hf(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},T_=e=>{const{componentCls:t}=e;return {[t]:Ea.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},N_=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:c}=e,d=a-Math.round(l*s),f=d/2,m=d/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${f}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},s0=Ut("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=mt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [R_(o),T_(o),r&&N_(o),cc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var k_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L_=(e,t,n)=>{if(!(!t&&!n))return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${e}-title`},vi(t)),u__namespace.createElement("div",{className:`${e}-inner-content`},vi(n)))},A_=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return u__namespace.createElement("div",{className:W(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},u__namespace.createElement("div",{className:`${n}-arrow`}),u__namespace.createElement(jf,Object.assign({},e,{className:t,prefixCls:n}),s||L_(n,a,l)))},D_=e=>{const{prefixCls:t}=e,n=k_(e,["prefixCls"]),{getPrefixCls:r}=u__namespace.useContext(ot),o=r("popover",t),[i,a]=s0(o);return i(u__namespace.createElement(A_,Object.assign({},n,{prefixCls:o,hashId:a})))},c0=D_;var z_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j_=e=>{let{title:t,content:n,prefixCls:r}=e;return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${r}-title`},vi(t)),u__namespace.createElement("div",{className:`${r}-inner-content`},vi(n)))},u0=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:d={}}=e,f=z_(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=u__namespace.useContext(ot),h=m("popover",n),[g,v]=s0(h),p=m(),y=W(i,v);return g(u__namespace.createElement(Ua,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:d},f,{prefixCls:h,overlayClassName:y,ref:t,overlay:r||o?u__namespace.createElement(j_,{prefixCls:h,title:r,content:o}):null,transitionName:oc(p,"zoom-big",f.transitionName),"data-popover-inject":!0})))});u0._InternalPanelDoNotUseOrYouWillBeFired=c0;const Uf=u0,B_=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},H_=Ut("Divider",e=>{const t=mt(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [B_(t)]},{sizePaddingEdgeHorizontal:0});var F_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const W_=e=>{const{getPrefixCls:t,direction:n,divider:r}=u__namespace.useContext(ot),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:d,dashed:f,plain:m,style:h}=e,g=F_(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,y]=H_(v),b=a.length>0?`-${a}`:a,E=!!d,M=a==="left"&&l!=null,w=a==="right"&&l!=null,x=W(v,r==null?void 0:r.className,y,`${v}-${i}`,{[`${v}-with-text`]:E,[`${v}-with-text${b}`]:E,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:M,[`${v}-no-default-orientation-margin-right`]:w},s,c),S=u__namespace.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),C=Object.assign(Object.assign({},M&&{marginLeft:S}),w&&{marginRight:S});return p(u__namespace.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),d&&i!=="vertical"&&u__namespace.createElement("span",{className:`${v}-inner-text`,style:C},d)))},V_=W_;var K_=["b"],G_=["v"],su=function(t){return Math.round(Number(t||0))},U_=function(t){if(t&&dt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Qe(n,K_);return Z(Z({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},fs=function(e){to(n,e);var t=no(n);function n(r){return pn(this,n),t.call(this,U_(r))}return bn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=su(o.s*100),a=su(o.b*100),l=su(o.h),s=o.a,c="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv();dt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Qe(i,G_);return Z(Z({},a),{},{b:o.v})}}]),n}(Wt),X_="rc-color-picker",Xr=function(t){return t instanceof fs?t:new fs(t)},Y_=Xr("#1677ff"),d0=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,l=o.current.getBoundingClientRect(),s=l.width,c=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,h=f/2,g=m/2,v=(n.x+h)/s,p=1-(n.y+g)/c,y=i.toHsb(),b=v,E=(n.x+h)/s*360;if(a)switch(a){case"hue":return Xr(Z(Z({},y),{},{h:E<=0?0:E}));case"alpha":return Xr(Z(Z({},y),{},{a:b<=0?0:b}))}return Xr({h:y.h,s:v<=0?0:v,b:p>=1?1:p,a:y.a})},f0=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,l=i.height,s=n.current.getBoundingClientRect(),c=s.width,d=s.height,f=c/2,m=d/2,h=r.toHsb();if(!(c===0&&d===0||c!==d)){if(o)switch(o){case"hue":return {x:h.h/360*a-f,y:-m/3};case"alpha":return {x:h.a/1*a-f,y:-m/3}}return {x:h.s*a-f,y:(1-h.b)*l-m}}},Xf=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,l="".concat(r,"-color-block");return u.createElement("div",{className:W(l,o),style:i,onClick:a},u.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function q_(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function m0(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,s=e.color,c=e.disabledDrag,d=u.useState(t||{x:0,y:0}),f=G(d,2),m=f[0],h=f[1],g=u.useRef(null),v=u.useRef(null),p=u.useRef({flag:!1});u.useEffect(function(){if(p.current.flag===!1){var w=l==null?void 0:l(r);w&&h(w);}},[s,r]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var y=function(x){var S=q_(x),C=S.pageX,$=S.pageY,I=r.current.getBoundingClientRect(),L=I.x,R=I.y,O=I.width,P=I.height,_=n.current.getBoundingClientRect(),k=_.width,N=_.height,A=k/2,z=N/2,F=Math.max(0,Math.min(C-L,O))-A,V=Math.max(0,Math.min($-R,P))-z,j={x:F,y:o==="x"?m.y:V};if(k===0&&N===0||k!==N)return !1;h(j),i==null||i(j);},b=function(x){x.preventDefault(),y(x);},E=function(x){x.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,a==null||a();},M=function(x){c||(y(x),p.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",E),document.addEventListener("touchmove",b),document.addEventListener("touchend",E),g.current=b,v.current=E);};return [m,M]}var h0=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return u.createElement("div",{className:W("".concat(i,"-handler"),U({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},g0=function(t){var n=t.children,r=t.style,o=t.prefixCls;return u.createElement("div",{className:"".concat(o,"-palette"),style:Z({position:"relative"},r)},n)},v0=u.forwardRef(function(e,t){var n=e.children,r=e.offset;return u.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Z_=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,l=u.useRef(),s=u.useRef(),c=u.useRef(n),d=m0({color:n,containerRef:l,targetRef:s,calculate:function(v){return f0(v,s,n)},onDragChange:function(v){var p=d0({offset:v,targetRef:s,containerRef:l,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),f=G(d,2),m=f[0],h=f[1];return u.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},u.createElement(g0,{prefixCls:o},u.createElement(v0,{offset:m,ref:s},u.createElement(h0,{color:n.toRgbString(),prefixCls:o})),u.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Q_=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,l=t.prefixCls,s=u.useMemo(function(){return n.map(function(c,d){var f=Xr(c);return a==="alpha"&&d===n.length-1&&f.setAlpha(1),f.toRgbString()}).join(",")},[n,a]);return u.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(s,")")}},r)},Cg=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,l=t.value,s=t.onChange,c=t.onChangeComplete,d=t.disabled,f=t.prefixCls,m=u.useRef(),h=u.useRef(),g=u.useRef(a),v=m0({color:a,targetRef:h,containerRef:m,calculate:function(M){return f0(M,h,a,i)},onDragChange:function(M){var w=d0({offset:M,targetRef:h,containerRef:m,color:a,type:i});g.current=w,s(w);},onDragChangeComplete:function(){c==null||c(g.current,i);},direction:"x",disabledDrag:d}),p=G(v,2),y=p[0],b=p[1];return u.createElement("div",{ref:m,className:W("".concat(f,"-slider"),"".concat(f,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},u.createElement(g0,{prefixCls:f},u.createElement(v0,{offset:y,ref:h},u.createElement(h0,{size:"small",color:l,prefixCls:f})),u.createElement(Q_,{colors:n,direction:r,type:i,prefixCls:f})))};function Sg(e){return e!==void 0}var J_=function(t,n){var r=n.defaultValue,o=n.value,i=u.useState(function(){var c;return Sg(o)?c=o:Sg(r)?c=r:c=t,Xr(c)}),a=G(i,2),l=a[0],s=a[1];return u.useEffect(function(){o&&s(Xr(o));},[o]),[l,s]},eR=["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 tR=u.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?X_:o,a=e.onChange,l=e.onChangeComplete,s=e.className,c=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=J_(Y_,{value:n,defaultValue:r}),p=G(v,2),y=p[0],b=p[1],E=u.useMemo(function(){var C=Xr(y.toRgbString());return C.setAlpha(1),C.toRgbString()},[y]),M=W("".concat(i,"-panel"),s,U({},"".concat(i,"-panel-disabled"),g)),w={prefixCls:i,onChangeComplete:l,disabled:g},x=function($,I){n||b($),a==null||a($,I);},S=u.createElement(u.Fragment,null,u.createElement(Z_,Ce({color:y,onChange:x},w)),u.createElement("div",{className:"".concat(i,"-slider-container")},u.createElement("div",{className:W("".concat(i,"-slider-group"),U({},"".concat(i,"-slider-group-disabled-alpha"),m))},u.createElement(Cg,Ce({gradientColors:eR,color:y,value:"hsl(".concat(y.toHsb().h,",100%, 50%)"),onChange:function($){return x($,"hue")}},w)),!m&&u.createElement(Cg,Ce({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",E],color:y,value:y.toRgbString(),onChange:function($){return x($,"alpha")}},w))),u.createElement(Xf,{color:y.toRgbString(),prefixCls:i})));return u.createElement("div",{className:M,style:c,ref:t},typeof d=="function"?d(S):S)}),p0=u.createContext({}),b0=u.createContext({}),{Provider:nR}=p0,{Provider:rR}=b0,Bl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",oR=(e,t)=>e?Bl(e,t):"";let wg=function(){function e(t){pn(this,e),this.metaColor=new fs(t),t||this.metaColor.setAlpha(0);}return bn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return oR(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 iR="ant-color-picker",gn=e=>e instanceof wg?e:new wg(e),Hl=e=>Math.round(Number(e||0)),y0=e=>Hl(e.toHsb().a*100),aR=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const l=gn(a);o==null||o(l);}};return u.createElement("div",{className:`${t}-clear`,onClick:i})},C0=aR;var ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ie.F1&&n<=ie.F12)return !1;switch(n){case ie.ALT:case ie.CAPS_LOCK:case ie.CONTEXT_MENU:case ie.CTRL:case ie.DOWN:case ie.END:case ie.ESC:case ie.HOME:case ie.INSERT:case ie.LEFT:case ie.MAC_FF_META:case ie.META:case ie.NUMLOCK:case ie.NUM_CENTER:case ie.PAGE_DOWN:case ie.PAGE_UP:case ie.PAUSE:case ie.PRINT_SCREEN:case ie.RIGHT:case ie.SHIFT:case ie.UP:case ie.WIN_KEY:case ie.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ie.ZERO&&t<=ie.NINE||t>=ie.NUM_ZERO&&t<=ie.NUM_MULTIPLY||t>=ie.A&&t<=ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ie.SPACE:case ie.QUESTION_MARK:case ie.NUM_PLUS:case ie.NUM_MINUS:case ie.NUM_PERIOD:case ie.NUM_DIVISION:case ie.SEMICOLON:case ie.DASH:case ie.EQUALS:case ie.COMMA:case ie.PERIOD:case ie.SLASH:case ie.APOSTROPHE:case ie.SINGLE_QUOTE:case ie.OPEN_SQUARE_BRACKET:case ie.BACKSLASH:case ie.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},S0=u__namespace.createContext(null);function lR(){return u__namespace.useContext(S0)}function sR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u__namespace.useState(!1),n=G(t,2),r=n[0],o=n[1],i=u__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};u__namespace.useEffect(function(){return a},[]);var l=function(c,d){a(),i.current=window.setTimeout(function(){o(c),d&&d();},e);};return [r,l,a]}function w0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u__namespace.useRef(null),n=u__namespace.useRef(null);u__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function cR(e,t,n,r){var o=u__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u__namespace.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=a.target;s.shadowRoot&&a.composed&&(s=a.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(s)&&c!==s})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var uR=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,dR=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,fR="".concat(uR," ").concat(dR).split(/[\s\n]+/),mR="aria-",hR="data-";function $g(e,t){return e.indexOf(t)===0}function Ci(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||$g(o,mR))||n.data&&$g(o,hR)||n.attr&&fR.includes(o))&&(r[o]=e[o]);}),r}var gR=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ko=void 0;function vR(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,y=Qe(e,gR),b=a&&!h;function E(C){s(c,C);}u__namespace.useEffect(function(){return function(){E(null);}},[]);var M=i&&o!==Ko?i(o):m,w;r||(w={opacity:b?0:1,height:b?0:Ko,overflowY:b?"hidden":Ko,order:a?g:Ko,pointerEvents:b?"none":Ko,position:b?"absolute":Ko});var x={};b&&(x["aria-hidden"]=!0);var S=u__namespace.createElement(p,Ce({className:W(!r&&n,d),style:Z(Z({},w),f)},x,y,{ref:t}),M);return a&&(S=u__namespace.createElement(Nr,{onResize:function($){var I=$.offsetWidth;E(I);},disabled:l},S)),S}var sa=u__namespace.forwardRef(vR);sa.displayName="Item";function pR(e){if(typeof MessageChannel>"u")It(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function bR(){var e=u__namespace.useRef(null),t=function(r){e.current||(e.current=[],pR(function(){Qv.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ui(e,t){var n=u__namespace.useState(t),r=G(n,2),o=r[0],i=r[1],a=_n(function(l){e(function(){i(l);});});return [o,a]}var ms=u.createContext(null),yR=["component"],CR=["className"],SR=["className"],wR=function(t,n){var r=u__namespace.useContext(ms);if(!r){var o=t.component,i=o===void 0?"div":o,a=Qe(t,yR);return u__namespace.createElement(i,Ce({},a,{ref:n}))}var l=r.className,s=Qe(r,CR),c=t.className,d=Qe(t,SR);return u__namespace.createElement(ms.Provider,{value:null},u__namespace.createElement(sa,Ce({ref:n,className:W(l,c)},s,d)))},$0=u__namespace.forwardRef(wR);$0.displayName="RawItem";var $R=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],x0="responsive",E0="invalidate";function xR(e){return "+ ".concat(e.length," ...")}function ER(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,y=e.suffix,b=e.component,E=b===void 0?"div":b,M=e.itemComponent,w=e.onVisibleChange,x=Qe(e,$R),S=f==="full",C=bR(),$=Ui(C,null),I=G($,2),L=I[0],R=I[1],O=L||0,P=Ui(C,new Map),_=G(P,2),k=_[0],N=_[1],A=Ui(C,0),z=G(A,2),F=z[0],V=z[1],j=Ui(C,0),H=G(j,2),B=H[0],X=H[1],J=Ui(C,0),Q=G(J,2),K=Q[0],Y=Q[1],re=u.useState(null),ue=G(re,2),se=ue[0],ee=ue[1],ae=u.useState(null),q=G(ae,2),te=q[0],ce=q[1],fe=u__namespace.useMemo(function(){return te===null&&S?Number.MAX_SAFE_INTEGER:te||0},[te,L]),he=u.useState(!1),ge=G(he,2),be=ge[0],Re=ge[1],De="".concat(r,"-item"),$e=Math.max(F,B),we=g===x0,Te=i.length&&we,Je=g===E0,Ve=Te||typeof g=="number"&&i.length>g,Ye=u.useMemo(function(){var Ae=i;return Te?L===null&&S?Ae=i:Ae=i.slice(0,Math.min(i.length,O/d)):typeof g=="number"&&(Ae=i.slice(0,g)),Ae},[i,d,L,g,Te]),Me=u.useMemo(function(){return Te?i.slice(fe+1):i.slice(Ye.length)},[i,Ye,Te,fe]),ke=u.useCallback(function(Ae,Se){var ve;return typeof s=="function"?s(Ae):(ve=s&&(Ae==null?void 0:Ae[s]))!==null&&ve!==void 0?ve:Se},[s]),qe=u.useCallback(a||function(Ae){return Ae},[a]);function et(Ae,Se,ve){te===Ae&&(Se===void 0||Se===se)||(ce(Ae),ve||(Re(Ae<i.length-1),w==null||w(Ae)),Se!==void 0&&ee(Se));}function ye(Ae,Se){R(Se.clientWidth);}function xe(Ae,Se){N(function(ve){var Ee=new Map(ve);return Se===null?Ee.delete(Ae):Ee.set(Ae,Se),Ee});}function je(Ae,Se){X(Se),V(B);}function Le(Ae,Se){Y(Se);}function rt(Ae){return k.get(ke(Ye[Ae],Ae))}Ft(function(){if(O&&typeof $e=="number"&&Ye){var Ae=K,Se=Ye.length,ve=Se-1;if(!Se){et(0,null);return}for(var Ee=0;Ee<Se;Ee+=1){var _e=rt(Ee);if(S&&(_e=_e||0),_e===void 0){et(Ee-1,void 0,!0);break}if(Ae+=_e,ve===0&&Ae<=O||Ee===ve-1&&Ae+rt(ve)<=O){et(ve,null);break}else if(Ae+$e>O){et(Ee-1,Ae-_e-K+B);break}}y&&rt(0)+K>O&&ee(null);}},[O,k,B,K,ke,Ye]);var Ue=be&&!!Me.length,de={};se!==null&&Te&&(de={position:"absolute",left:se,top:0});var ne={prefixCls:De,responsive:Te,component:M,invalidate:Je},me=l?function(Ae,Se){var ve=ke(Ae,Se);return u__namespace.createElement(ms.Provider,{key:ve,value:Z(Z({},ne),{},{order:Se,item:Ae,itemKey:ve,registerSize:xe,display:Se<=fe})},l(Ae,Se))}:function(Ae,Se){var ve=ke(Ae,Se);return u__namespace.createElement(sa,Ce({},ne,{order:Se,key:ve,item:Ae,renderItem:qe,itemKey:ve,registerSize:xe,display:Se<=fe}))},le,Ne={order:Ue?fe:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:je,display:Ue};if(p)p&&(le=u__namespace.createElement(ms.Provider,{value:Z(Z({},ne),Ne)},p(Me)));else {var tt=v||xR;le=u__namespace.createElement(sa,Ce({},ne,Ne),typeof tt=="function"?tt(Me):tt);}var ct=u__namespace.createElement(E,Ce({className:W(!Je&&r,h),style:m,ref:t},x),Ye.map(me),Ve?le:null,y&&u__namespace.createElement(sa,Ce({},ne,{responsive:we,responsiveDisabled:!Te,order:fe,className:"".concat(De,"-suffix"),registerSize:Le,display:!0,style:de}),y));return we&&(ct=u__namespace.createElement(Nr,{onResize:ye,disabled:!Te},ct)),ct}var fr=u__namespace.forwardRef(ER);fr.displayName="Overflow";fr.Item=$0;fr.RESPONSIVE=x0;fr.INVALIDATE=E0;var hs=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,s;return typeof r=="function"?s=r(o):s=r,u__namespace.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i&&i(d);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},s!==void 0?s:u__namespace.createElement("span",{className:W(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},l))},IR=function(t,n){var r,o,i=t.prefixCls,a=t.id,l=t.inputElement,s=t.disabled,c=t.tabIndex,d=t.autoFocus,f=t.autoComplete,m=t.editable,h=t.activeDescendantId,g=t.value,v=t.maxLength,p=t.onKeyDown,y=t.onMouseDown,b=t.onChange,E=t.onPaste,M=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,S=t.attrs,C=l||u__namespace.createElement("input",null),$=C,I=$.ref,L=$.props,R=L.onKeyDown,O=L.onChange,P=L.onMouseDown,_=L.onCompositionStart,k=L.onCompositionEnd,N=L.style;return "maxLength"in C.props,C=u__namespace.cloneElement(C,Z(Z(Z({type:"search"},L),{},{id:a,ref:Sn(n,I),disabled:s,tabIndex:c,autoComplete:f||"off",autoFocus:d,className:W("".concat(i,"-selection-search-input"),(r=C)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},S),{},{value:m?g:"",maxLength:v,readOnly:!m,unselectable:m?null:"on",style:Z(Z({},N),{},{opacity:m?null:0}),onKeyDown:function(z){p(z),R&&R(z);},onMouseDown:function(z){y(z),P&&P(z);},onChange:function(z){b(z),O&&O(z);},onCompositionStart:function(z){M(z),_&&_(z);},onCompositionEnd:function(z){w(z),k&&k(z);},onPaste:E})),C},Yf=u__namespace.forwardRef(IR);Yf.displayName="Input";function I0(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var OR=typeof window<"u"&&window.document&&window.document.documentElement,PR=OR;function MR(e){return e!=null}function xg(e){return ["string","number"].includes(dt(e))}function O0(e){var t=void 0;return e&&(xg(e.title)?t=e.title.toString():xg(e.label)&&(t=e.label.toString())),t}function _R(e,t){PR?u__namespace.useLayoutEffect(e,t):u__namespace.useEffect(e,t);}function RR(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Eg=function(t){t.preventDefault(),t.stopPropagation();},TR=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,E=t.maxTagTextLength,M=t.maxTagPlaceholder,w=M===void 0?function(ee){return "+ ".concat(ee.length," ...")}:M,x=t.tagRender,S=t.onToggleOpen,C=t.onRemove,$=t.onInputChange,I=t.onInputPaste,L=t.onInputKeyDown,R=t.onInputMouseDown,O=t.onInputCompositionStart,P=t.onInputCompositionEnd,_=u__namespace.useRef(null),k=u.useState(0),N=G(k,2),A=N[0],z=N[1],F=u.useState(!1),V=G(F,2),j=V[0],H=V[1],B="".concat(r,"-selection"),X=i||f==="multiple"&&l===!1||f==="tags"?a:"",J=f==="tags"||f==="multiple"&&l===!1||m&&(i||j);_R(function(){z(_.current.scrollWidth);},[X]);function Q(ee,ae,q,te,ce){return u__namespace.createElement("span",{className:W("".concat(B,"-item"),U({},"".concat(B,"-item-disabled"),q)),title:O0(ee)},u__namespace.createElement("span",{className:"".concat(B,"-item-content")},ae),te&&u__namespace.createElement(hs,{className:"".concat(B,"-item-remove"),onMouseDown:Eg,onClick:ce,customizeIcon:y},"×"))}function K(ee,ae,q,te,ce){var fe=function(ge){Eg(ge),S(!i);};return u__namespace.createElement("span",{onMouseDown:fe},x({label:ae,value:ee,disabled:q,closable:te,onClose:ce}))}function Y(ee){var ae=ee.disabled,q=ee.label,te=ee.value,ce=!d&&!ae,fe=q;if(typeof E=="number"&&(typeof q=="string"||typeof q=="number")){var he=String(fe);he.length>E&&(fe="".concat(he.slice(0,E),"..."));}var ge=function(Re){Re&&Re.stopPropagation(),C(ee);};return typeof x=="function"?K(te,fe,ae,ce,ge):Q(ee,fe,ae,ce,ge)}function re(ee){var ae=typeof w=="function"?w(ee):w;return Q({title:ae},ae,!1)}var ue=u__namespace.createElement("div",{className:"".concat(B,"-search"),style:{width:A},onFocus:function(){H(!0);},onBlur:function(){H(!1);}},u__namespace.createElement(Yf,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:J,activeDescendantId:v,value:X,onKeyDown:L,onMouseDown:R,onChange:$,onPaste:I,onCompositionStart:O,onCompositionEnd:P,tabIndex:p,attrs:Ci(t,!0)}),u__namespace.createElement("span",{ref:_,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},X," ")),se=u__namespace.createElement(fr,{prefixCls:"".concat(B,"-overflow"),data:o,renderItem:Y,renderRest:re,suffix:ue,itemKey:RR,maxCount:b});return u__namespace.createElement(u__namespace.Fragment,null,se,!o.length&&!X&&u__namespace.createElement("span",{className:"".concat(B,"-placeholder")},c))},NR=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,y=t.activeValue,b=t.maxLength,E=t.onInputKeyDown,M=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,S=t.onInputCompositionStart,C=t.onInputCompositionEnd,$=t.title,I=u__namespace.useState(!1),L=G(I,2),R=L[0],O=L[1],P=d==="combobox",_=P||v,k=m[0],N=p||"";P&&y&&!R&&(N=y),u__namespace.useEffect(function(){P&&O(!1);},[P,y]);var A=d!=="combobox"&&!f&&!v?!1:!!N,z=$===void 0?O0(k):$,F=function(){if(k)return null;var j=A?{visibility:"hidden"}:void 0;return u__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j},h)};return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("span",{className:"".concat(r,"-selection-search")},u__namespace.createElement(Yf,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:_,activeDescendantId:c,value:N,onKeyDown:E,onMouseDown:M,onChange:function(j){O(!0),w(j);},onPaste:x,onCompositionStart:S,onCompositionEnd:C,tabIndex:g,attrs:Ci(t,!0),maxLength:P?b:void 0})),!P&&k?u__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:A?{visibility:"hidden"}:void 0},k.label):null,F())};function kR(e){return ![ie.ESC,ie.SHIFT,ie.BACKSPACE,ie.TAB,ie.WIN_KEY,ie.ALT,ie.META,ie.WIN_KEY_RIGHT,ie.CTRL,ie.SEMICOLON,ie.EQUALS,ie.CAPS_LOCK,ie.CONTEXT_MENU,ie.F1,ie.F2,ie.F3,ie.F4,ie.F5,ie.F6,ie.F7,ie.F8,ie.F9,ie.F10,ie.F11,ie.F12].includes(e)}var LR=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;u__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=w0(0),y=G(p,2),b=y[0],E=y[1],M=function(N){var A=N.which;(A===ie.UP||A===ie.DOWN)&&N.preventDefault(),g&&g(N),A===ie.ENTER&&l==="tags"&&!o.current&&!a&&(m==null||m(N.target.value)),kR(A)&&h(!0);},w=function(){E(!0);},x=u.useRef(null),S=function(N){f(N,!0,o.current)!==!1&&h(!0);},C=function(){o.current=!0;},$=function(N){o.current=!1,l!=="combobox"&&S(N.target.value);},I=function(N){var A=N.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var z=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");A=A.replace(z,x.current);}x.current=null,S(A);},L=function(N){var A=N.clipboardData,z=A.getData("text");x.current=z;},R=function(N){var A=N.target;if(A!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},O=function(N){var A=b();N.target!==r.current&&!A&&l!=="combobox"&&N.preventDefault(),(l!=="combobox"&&(!s||!A)||!a)&&(a&&d!==!1&&f("",!0,!1),h());},P={inputRef:r,onInputKeyDown:M,onInputMouseDown:w,onInputChange:I,onInputPaste:L,onInputCompositionStart:C,onInputCompositionEnd:$},_=l==="multiple"||l==="tags"?u__namespace.createElement(TR,Ce({},t,P)):u__namespace.createElement(NR,Ce({},t,P));return u__namespace.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:R,onMouseDown:O},_)},P0=u__namespace.forwardRef(LR);P0.displayName="Selector";var AR=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],DR=function(t){var n=t===!0?0:1;return {bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},zR=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.containerWidth,s=t.animation,c=t.transitionName,d=t.dropdownStyle,f=t.dropdownClassName,m=t.direction,h=m===void 0?"ltr":m,g=t.placement,v=t.builtinPlacements,p=t.dropdownMatchSelectWidth,y=t.dropdownRender,b=t.dropdownAlign,E=t.getPopupContainer,M=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,S=t.onPopupMouseEnter,C=Qe(t,AR),$="".concat(r,"-dropdown"),I=a;y&&(I=y(a));var L=u__namespace.useMemo(function(){return v||DR(p)},[v,p]),R=s?"".concat($,"-").concat(s):c,O=u__namespace.useRef(null);u__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return O.current}}});var P=Z({minWidth:l},d);return typeof p=="number"?P.width=p:p&&(P.width=l),u__namespace.createElement(lc,Ce({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:$,popupTransitionName:R,popup:u__namespace.createElement("div",{ref:O,onMouseEnter:S},I),popupAlign:b,popupVisible:o,getPopupContainer:E,popupClassName:W(f,U({},"".concat($,"-empty"),M)),popupStyle:P,getTriggerDOMNode:w,onPopupVisibleChange:x}),i)},M0=u__namespace.forwardRef(zR);M0.displayName="SelectTrigger";function Ig(e,t){var n=e.key,r;return "value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function _0(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return {label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function jR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=_0(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;function d(f,m){f.forEach(function(h){if(m||!(s in h)){var g=h[l];o.push({key:Ig(h,o.length),groupOption:m,data:h,label:h[a],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:Ig(h,o.length),group:!0,data:h,label:v}),d(h[s],!0);}});}return d(e,!1),o}function gd(e){var t=Z({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return pr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function BR(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=mb(a),s=l[0],c=l.slice(1);if(!s)return [i];var d=i.split(s);return n=n||d.length>1,d.reduce(function(f,m){return [].concat(Ge(f),Ge(r(m,c)))},[]).filter(function(f){return f})}var o=r(e,t);return n?o:null}var HR=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],FR=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function vd(e){return e==="tags"||e==="multiple"}var WR=u__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,y=e.mode,b=e.disabled,E=e.loading,M=e.getInputElement,w=e.getRawInputElement,x=e.open,S=e.defaultOpen,C=e.onDropdownVisibleChange,$=e.activeValue,I=e.onActiveValueChange,L=e.activeDescendantId,R=e.searchValue,O=e.autoClearSearchValue,P=e.onSearch,_=e.onSearchSplit,k=e.tokenSeparators,N=e.allowClear,A=e.showArrow,z=e.inputIcon,F=e.clearIcon,V=e.OptionList,j=e.animation,H=e.transitionName,B=e.dropdownStyle,X=e.dropdownClassName,J=e.dropdownMatchSelectWidth,Q=e.dropdownRender,K=e.dropdownAlign,Y=e.placement,re=e.builtinPlacements,ue=e.getPopupContainer,se=e.showAction,ee=se===void 0?[]:se,ae=e.onFocus,q=e.onBlur,te=e.onKeyUp,ce=e.onKeyDown,fe=e.onMouseDown,he=Qe(e,HR),ge=vd(y),be=(l!==void 0?l:ge)||y==="combobox",Re=Z({},he);FR.forEach(function(Oe){delete Re[Oe];}),d==null||d.forEach(function(Oe){delete Re[Oe];});var De=u__namespace.useState(!1),$e=G(De,2),we=$e[0],Te=$e[1];u__namespace.useEffect(function(){Te(ac());},[]);var Je=u__namespace.useRef(null),Ve=u__namespace.useRef(null),Ye=u__namespace.useRef(null),Me=u__namespace.useRef(null),ke=u__namespace.useRef(null),qe=sR(),et=G(qe,3),ye=et[0],xe=et[1],je=et[2];u__namespace.useImperativeHandle(t,function(){var Oe,Ie;return {focus:(Oe=Me.current)===null||Oe===void 0?void 0:Oe.focus,blur:(Ie=Me.current)===null||Ie===void 0?void 0:Ie.blur,scrollTo:function(bt){var gt;return (gt=ke.current)===null||gt===void 0?void 0:gt.scrollTo(bt)}}});var Le=u__namespace.useMemo(function(){var Oe;if(y!=="combobox")return R;var Ie=(Oe=f[0])===null||Oe===void 0?void 0:Oe.value;return typeof Ie=="string"||typeof Ie=="number"?String(Ie):""},[R,y,f]),rt=y==="combobox"&&typeof M=="function"&&M()||null,Ue=typeof w=="function"&&w(),de=Va(Ve,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),ne=u__namespace.useState(!1),me=G(ne,2),le=me[0],Ne=me[1];Ft(function(){Ne(!0);},[]);var tt=zt(!1,{defaultValue:S,value:x}),ct=G(tt,2),Ae=ct[0],Se=ct[1],ve=le?Ae:!1,Ee=!v&&h;(b||Ee&&ve&&y==="combobox")&&(ve=!1);var _e=Ee?!1:ve,Ze=u__namespace.useCallback(function(Oe){var Ie=Oe!==void 0?Oe:!ve;b||(Se(Ie),ve!==Ie&&(C==null||C(Ie)));},[b,ve,Se,C]),ft=u__namespace.useMemo(function(){return (k||[]).some(function(Oe){return [` `,`\r `].includes(Oe)})},[k]),vt=function(Ie,it,bt){var gt=!0,Pt=Ie;I==null||I(null);var Gt=bt?null:BR(Ie,k);return y!=="combobox"&&Gt&&(Pt="",_==null||_(Gt),Ze(!1),gt=!1),P&&Le!==Pt&&P(Pt,{source:it?"typing":"effect"}),gt},Vt=function(Ie){!Ie||!Ie.trim()||P(Ie,{source:"submit"});};u__namespace.useEffect(function(){!ve&&!ge&&y!=="combobox"&&vt("",!1,!1);},[ve]),u__namespace.useEffect(function(){Ae&&b&&Se(!1),b&&xe(!1);},[b]);var jt=w0(),Fe=G(jt,2),Xe=Fe[0],Be=Fe[1],pt=function(Ie){var it=Xe(),bt=Ie.which;if(bt===ie.ENTER&&(y!=="combobox"&&Ie.preventDefault(),ve||Ze(!0)),Be(!!Le),bt===ie.BACKSPACE&&!it&&ge&&!Le&&f.length){for(var gt=Ge(f),Pt=null,Gt=gt.length-1;Gt>=0;Gt-=1){var Gn=gt[Gt];if(!Gn.disabled){gt.splice(Gt,1),Pt=Gn;break}}Pt&&m(gt,{type:"remove",values:[Pt]});}for(var dn=arguments.length,or=new Array(dn>1?dn-1:0),An=1;An<dn;An++)or[An-1]=arguments[An];if(ve&&ke.current){var so;(so=ke.current).onKeyDown.apply(so,[Ie].concat(or));}ce==null||ce.apply(void 0,[Ie].concat(or));},ht=function(Ie){for(var it=arguments.length,bt=new Array(it>1?it-1:0),gt=1;gt<it;gt++)bt[gt-1]=arguments[gt];if(ve&&ke.current){var Pt;(Pt=ke.current).onKeyUp.apply(Pt,[Ie].concat(bt));}te==null||te.apply(void 0,[Ie].concat(bt));},Yt=function(Ie){var it=f.filter(function(bt){return bt!==Ie});m(it,{type:"remove",values:[Ie]});},He=u__namespace.useRef(!1),Ke=function(){xe(!0),b||(ae&&!He.current&&ae.apply(void 0,arguments),ee.includes("focus")&&Ze(!0)),He.current=!0;},ut=function(){xe(!1,function(){He.current=!1,Ze(!1);}),!b&&(Le&&(y==="tags"?P(Le,{source:"submit"}):y==="multiple"&&P("",{source:"blur"})),q&&q.apply(void 0,arguments));},wt=[];u__namespace.useEffect(function(){return function(){wt.forEach(function(Oe){return clearTimeout(Oe)}),wt.splice(0,wt.length);}},[]);var Kt=function(Ie){var it,bt=Ie.target,gt=(it=Ye.current)===null||it===void 0?void 0:it.getPopupElement();if(gt&>.contains(bt)){var Pt=setTimeout(function(){var or=wt.indexOf(Pt);if(or!==-1&&wt.splice(or,1),je(),!we&&!gt.contains(document.activeElement)){var An;(An=Me.current)===null||An===void 0||An.focus();}});wt.push(Pt);}for(var Gt=arguments.length,Gn=new Array(Gt>1?Gt-1:0),dn=1;dn<Gt;dn++)Gn[dn-1]=arguments[dn];fe==null||fe.apply(void 0,[Ie].concat(Gn));},Lt=u__namespace.useState(null),un=G(Lt,2),$n=un[0],Kn=un[1],yr=u__namespace.useState({}),rr=G(yr,2),Ln=rr[1];function yn(){Ln({});}Ft(function(){if(_e){var Oe,Ie=Math.ceil((Oe=Je.current)===null||Oe===void 0?void 0:Oe.offsetWidth);$n!==Ie&&!Number.isNaN(Ie)&&Kn(Ie);}},[_e]);var Cr;Ue&&(Cr=function(Ie){Ze(Ie);}),cR(function(){var Oe;return [Je.current,(Oe=Ye.current)===null||Oe===void 0?void 0:Oe.getPopupElement()]},_e,Ze,!!Ue);var oo=u__namespace.useMemo(function(){return Z(Z({},e),{},{notFoundContent:v,open:ve,triggerOpen:_e,id:o,showSearch:be,multiple:ge,toggleOpen:Ze})},[e,v,_e,ve,o,be,ge,Ze]),Sr=A!==void 0?A:E||!ge&&y!=="combobox",wr;Sr&&(wr=u__namespace.createElement(hs,{className:W("".concat(i,"-arrow"),U({},"".concat(i,"-arrow-loading"),E)),customizeIcon:z,customizeIconProps:{loading:E,searchValue:Le,open:ve,focused:ye,showSearch:be}}));var $r,io=function(){var Ie;p==null||p(),(Ie=Me.current)===null||Ie===void 0||Ie.focus(),m([],{type:"clear",values:f}),vt("",!1,!1);};!b&&N&&(f.length||Le)&&!(y==="combobox"&&Le==="")&&($r=u__namespace.createElement(hs,{className:"".concat(i,"-clear"),onMouseDown:io,customizeIcon:F},"×"));var ao=u__namespace.createElement(V,{ref:ke}),lo=W(i,a,(r={},U(r,"".concat(i,"-focused"),ye),U(r,"".concat(i,"-multiple"),ge),U(r,"".concat(i,"-single"),!ge),U(r,"".concat(i,"-allow-clear"),N),U(r,"".concat(i,"-show-arrow"),Sr),U(r,"".concat(i,"-disabled"),b),U(r,"".concat(i,"-loading"),E),U(r,"".concat(i,"-open"),ve),U(r,"".concat(i,"-customize-input"),rt),U(r,"".concat(i,"-show-search"),be),r)),xr=u__namespace.createElement(M0,{ref:Ye,disabled:b,prefixCls:i,visible:_e,popupElement:ao,containerWidth:$n,animation:j,transitionName:H,dropdownStyle:B,dropdownClassName:X,direction:c,dropdownMatchSelectWidth:J,dropdownRender:Q,dropdownAlign:K,placement:Y,builtinPlacements:re,getPopupContainer:ue,empty:h,getTriggerDOMNode:function(){return Ve.current},onPopupVisibleChange:Cr,onPopupMouseEnter:yn},Ue?u__namespace.cloneElement(Ue,{ref:de}):u__namespace.createElement(P0,Ce({},e,{domRef:Ve,prefixCls:i,inputElement:rt,ref:Me,id:o,showSearch:be,autoClearSearchValue:O,mode:y,activeDescendantId:L,tagRender:s,values:f,open:ve,onToggleOpen:Ze,activeValue:$,searchValue:Le,onSearch:vt,onSearchSubmit:Vt,onRemove:Yt,tokenWithEnter:ft}))),Ot;return Ue?Ot=xr:Ot=u__namespace.createElement("div",Ce({className:lo},Re,{ref:Je,onMouseDown:Kt,onKeyDown:pt,onKeyUp:ht,onFocus:Ke,onBlur:ut}),ye&&!ve&&u__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(f.map(function(Oe){var Ie=Oe.label,it=Oe.value;return ["number","string"].includes(dt(Ie))?Ie:it}).join(", "))),xr,wr,$r),u__namespace.createElement(S0.Provider,{value:oo},Ot)});const VR=function(e,t){var n=u__namespace.useRef({values:new Map,options:new Map}),r=u__namespace.useMemo(function(){var i=n.current,a=i.values,l=i.options,s=e.map(function(f){if(f.label===void 0){var m;return Z(Z({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value));}),n.current.values=c,n.current.options=d,s},[e,t]),o=u__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function cu(e,t){return I0(e).join("").toUpperCase().includes(t)}const KR=function(e,t,n,r,o){return u__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(h,g){return o?cu(g[o],d):g[i]?cu(g[a!=="children"?a:"label"],d):cu(g[l],d)},m=c?function(h){return gd(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var g=f(n,m(h));if(g)s.push(h);else {var v=h[i].filter(function(p){return f(n,m(p))});v.length&&s.push(Z(Z({},h),{},U({},i,v)));}return}f(n,m(h))&&s.push(h);}),s},[e,r,o,n,t])};var Og=0,GR=En();function UR(){var e;return GR?(e=Og,Og+=1):e="TEST_OR_SSR",e}function XR(e){var t=u__namespace.useState(),n=G(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){o("rc_select_".concat(UR()));},[]),e||r}var YR=["children","value"],qR=["children"];function ZR(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Qe(r,YR);return Z({key:n,value:i!==void 0?i:n,children:o},a)}function R0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Qn(e).map(function(n,r){if(!u__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=Qe(l,qR);return t||!i?ZR(n):Z(Z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:R0(s)})}).filter(function(n){return n})}function QR(e,t,n,r,o){return u__namespace.useMemo(function(){var i=e,a=!e;a&&(i=R0(t));var l=new Map,s=new Map,c=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h);};function d(f){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<f.length;h+=1){var g=f[h];!g[n.options]||m?(l.set(g[n.value],g),c(s,g,n.label),c(s,g,r),c(s,g,o)):d(g[n.options],!0);}}return d(i),{options:i,valueOptions:l,labelOptions:s}},[e,t,n,r,o])}function Pg(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var qf=function(){return null};qf.isSelectOptGroup=!0;var Zf=function(){return null};Zf.isSelectOption=!0;var T0=u__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,l=e.innerProps,s={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:n,position:"relative",overflow:"hidden"},c=Z(Z({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),u__namespace.createElement("div",{style:s},u__namespace.createElement(Nr,{onResize:function(f){var m=f.offsetHeight;m&&a&&a();}},u__namespace.createElement("div",Ce({style:c,className:W(U({},"".concat(i,"-holder-inner"),i)),ref:t},l),o)))});T0.displayName="Filler";var JR=20;function Mg(e){return "touches"in e?e.touches[0].pageY:e.pageY}var eT=function(e){to(n,e);var t=no(n);function n(){var r;pn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=u__namespace.createRef(),r.thumbRef=u__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(l){l.preventDefault();},r.onContainerMouseDown=function(l){l.stopPropagation(),l.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var l;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(l=r.scrollbarRef.current)===null||l===void 0||l.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),It.cancel(r.moveRaf);},r.onMouseDown=function(l){var s=r.props.onStartMove;r.setState({dragging:!0,pageY:Mg(l),startTop:r.getTop()}),s(),r.patchEvents(),l.stopPropagation(),l.preventDefault();},r.onMouseMove=function(l){var s=r.state,c=s.dragging,d=s.pageY,f=s.startTop,m=r.props.onScroll;if(It.cancel(r.moveRaf),c){var h=Mg(l)-d,g=f+h,v=r.getEnableScrollRange(),p=r.getEnableHeightRange(),y=p?g/p:0,b=Math.ceil(y*v);r.moveRaf=It(function(){m(b);});}},r.onMouseUp=function(){var l=r.props.onStopMove;r.setState({dragging:!1}),l(),r.removeEvents();},r.getSpinHeight=function(){var l=r.props,s=l.height,c=l.count,d=s/c*10;return d=Math.max(d,JR),d=Math.min(d,s/2),Math.floor(d)},r.getEnableScrollRange=function(){var l=r.props,s=l.scrollHeight,c=l.height;return s-c||0},r.getEnableHeightRange=function(){var l=r.props.height,s=r.getSpinHeight();return l-s||0},r.getTop=function(){var l=r.props.scrollTop,s=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(l===0||s===0)return 0;var d=l/s;return d*c},r.showScroll=function(){var l=r.props,s=l.height,c=l.scrollHeight;return c>s},r}return bn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,l=this.props,s=l.prefixCls,c=l.direction,d=this.getSpinHeight(),f=this.getTop(),m=this.showScroll(),h=m&&a,g=c==="rtl"?{left:0}:{right:0};return u__namespace.createElement("div",{ref:this.scrollbarRef,className:W("".concat(s,"-scrollbar"),U({},"".concat(s,"-scrollbar-show"),m)),style:Z(Z({width:8,top:0,bottom:0},g),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},u__namespace.createElement("div",{ref:this.thumbRef,className:W("".concat(s,"-scrollbar-thumb"),U({},"".concat(s,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:d,top:f,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(u__namespace.Component);function tT(e){var t=e.children,n=e.setRef,r=u__namespace.useCallback(function(o){n(o);},[]);return u__namespace.cloneElement(t,{ref:r})}function nT(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(l,s){var c=t+s,d=o(l,c,{}),f=a(l);return u__namespace.createElement(tT,{key:f,setRef:function(h){return r(l,h)}},d)})}var rT=function(){function e(){pn(this,e),this.maps=void 0,this.maps=Object.create(null);}return bn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function oT(e,t,n){var r=u__namespace.useState(0),o=G(r,2),i=o[0],a=o[1],l=u.useRef(new Map),s=u.useRef(new rT),c=u.useRef();function d(){It.cancel(c.current);}function f(){d(),c.current=It(function(){l.current.forEach(function(h,g){if(h&&h.offsetParent){var v=ls(h),p=v.offsetHeight;s.current.get(g)!==p&&s.current.set(g,v.offsetHeight);}}),a(function(h){return h+1});});}function m(h,g){var v=e(h),p=l.current.get(v);g?(l.current.set(v,g),f()):l.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return u.useEffect(function(){return d},[]),[m,f,s.current,i]}function iT(e,t,n,r,o,i,a,l){var s=u__namespace.useRef();return function(c){if(c==null){l();return}if(It.cancel(s.current),typeof c=="number")a(c);else if(c&&dt(c)==="object"){var d,f=c.align;"index"in c?d=c.index:d=t.findIndex(function(v){return o(v)===c.key});var m=c.offset,h=m===void 0?0:m,g=function v(p,y){if(!(p<0||!e.current)){var b=e.current.clientHeight,E=!1,M=y;if(b){for(var w=y||f,x=0,S=0,C=0,$=Math.min(t.length,d),I=0;I<=$;I+=1){var L=o(t[I]);S=x;var R=n.get(L);C=S+(R===void 0?r:R),x=C,I===d&&R===void 0&&(E=!0);}var O=null;switch(w){case"top":O=S-h;break;case"bottom":O=C-b+h;break;default:{var P=e.current.scrollTop,_=P+b;S<P?M="top":C>_&&(M="bottom");}}O!==null&&O!==e.current.scrollTop&&a(O);}s.current=It(function(){E&&i(),v(p-1,M);},2);}};g(3);}}}function aT(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function s(g){return g!==void 0?n(g):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=s(i[f]),h=s(a[f]);if(m!==h){c=f,d=d||m!==s(a[f+1]);break}}return c===null?null:{index:c,multiple:d}}function lT(e,t,n){var r=u__namespace.useState(e),o=G(r,2),i=o[0],a=o[1],l=u__namespace.useState(null),s=G(l,2),c=s[0],d=s[1];return u__namespace.useEffect(function(){var f=aT(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e);},[e]),[c]}var sT=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const N0=function(e,t){var n=u.useRef(!1),r=u.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=u.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=a<0&&i.current.top||a>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&o(),!n.current&&s}};function cT(e,t,n,r){var o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),l=u.useRef(!1),s=N0(t,n);function c(f){if(e){It.cancel(i.current);var m=f.deltaY;o.current+=m,a.current=m,!s(m)&&(sT||f.preventDefault(),i.current=It(function(){var h=l.current?10:1;r(o.current*h),o.current=0;}));}}function d(f){e&&(l.current=f.detail===a.current);}return [c,d]}var uT=14/15;function dT(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),l,s=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){g*=uT,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,l();},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",c));};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",c));},Ft(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(a.current);}},[e]);}var fT=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],mT=[],hT={overflowY:"auto",overflowAnchor:"none"};function gT(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,m=e.itemKey,h=e.virtual,g=e.direction,v=e.component,p=v===void 0?"div":v,y=e.onScroll,b=e.onVisibleChange,E=e.innerProps,M=Qe(e,fT),w=!!(h!==!1&&i&&a),x=w&&d&&a*d.length>i,S=u.useState(0),C=G(S,2),$=C[0],I=C[1],L=u.useState(!1),R=G(L,2),O=R[0],P=R[1],_=W(r,U({},"".concat(r,"-rtl"),g==="rtl"),o),k=d||mT,N=u.useRef(),A=u.useRef(),z=u.useRef(),F=u__namespace.useCallback(function(ye){return typeof m=="function"?m(ye):ye==null?void 0:ye[m]},[m]),V={getKey:F};function j(ye){I(function(xe){var je;typeof ye=="function"?je=ye(xe):je=ye;var Le=be(je);return N.current.scrollTop=Le,Le});}var H=u.useRef({start:0,end:k.length}),B=u.useRef(),X=lT(k,F),J=G(X,1),Q=J[0];B.current=Q;var K=oT(F,null,null),Y=G(K,4),re=Y[0],ue=Y[1],se=Y[2],ee=Y[3],ae=u__namespace.useMemo(function(){if(!w)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!x){var ye;return {scrollHeight:((ye=A.current)===null||ye===void 0?void 0:ye.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var xe=0,je,Le,rt,Ue=k.length,de=0;de<Ue;de+=1){var ne=k[de],me=F(ne),le=se.get(me),Ne=xe+(le===void 0?a:le);Ne>=$&&je===void 0&&(je=de,Le=xe),Ne>$+i&&rt===void 0&&(rt=de),xe=Ne;}return je===void 0&&(je=0,Le=0,rt=Math.ceil(i/a)),rt===void 0&&(rt=k.length-1),rt=Math.min(rt+1,k.length),{scrollHeight:xe,start:je,end:rt,offset:Le}},[x,w,$,k,ee,i]),q=ae.scrollHeight,te=ae.start,ce=ae.end,fe=ae.offset;H.current.start=te,H.current.end=ce;var he=q-i,ge=u.useRef(he);ge.current=he;function be(ye){var xe=ye;return Number.isNaN(ge.current)||(xe=Math.min(xe,ge.current)),xe=Math.max(xe,0),xe}var Re=$<=0,De=$>=he,$e=N0(Re,De);function we(ye){var xe=ye;j(xe);}function Te(ye){var xe=ye.currentTarget.scrollTop;xe!==$&&j(xe),y==null||y(ye);}var Je=cT(w,Re,De,function(ye){j(function(xe){var je=xe+ye;return je});}),Ve=G(Je,2),Ye=Ve[0],Me=Ve[1];dT(w,N,function(ye,xe){return $e(ye,xe)?!1:(Ye({preventDefault:function(){},deltaY:ye}),!0)}),Ft(function(){function ye(xe){w&&xe.preventDefault();}return N.current.addEventListener("wheel",Ye),N.current.addEventListener("DOMMouseScroll",Me),N.current.addEventListener("MozMousePixelScroll",ye),function(){N.current&&(N.current.removeEventListener("wheel",Ye),N.current.removeEventListener("DOMMouseScroll",Me),N.current.removeEventListener("MozMousePixelScroll",ye));}},[w]);var ke=iT(N,k,se,a,F,ue,j,function(){var ye;(ye=z.current)===null||ye===void 0||ye.delayHidden();});u__namespace.useImperativeHandle(t,function(){return {scrollTo:ke}}),Ft(function(){if(b){var ye=k.slice(te,ce+1);b(ye,k);}},[te,ce,k]);var qe=nT(k,te,ce,re,f,V),et=null;return i&&(et=Z(U({},s?"height":"maxHeight",i),hT),w&&(et.overflowY="hidden",O&&(et.pointerEvents="none"))),u__namespace.createElement("div",Ce({style:Z(Z({},c),{},{position:"relative"}),className:_},M),u__namespace.createElement(p,{className:"".concat(r,"-holder"),style:et,ref:N,onScroll:Te},u__namespace.createElement(T0,{prefixCls:r,height:q,offset:fe,onInnerResize:ue,ref:A,innerProps:E},qe)),w&&u__namespace.createElement(eT,{ref:z,prefixCls:r,scrollTop:$,height:i,scrollHeight:q,count:k.length,direction:g,onScroll:we,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var k0=u__namespace.forwardRef(gT);k0.displayName="List";var L0=u__namespace.createContext(null);function vT(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var pT=["disabled","title","children","style","className"];function _g(e){return typeof e=="string"||typeof e=="number"}var bT=function(t,n){var r=lR(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,h=u__namespace.useContext(L0),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,y=h.onSelect,b=h.menuItemSelectedIcon,E=h.rawValues,M=h.fieldNames,w=h.virtual,x=h.direction,S=h.listHeight,C=h.listItemHeight,$="".concat(o,"-item"),I=Ha(function(){return g},[a,g],function(Q,K){return K[0]&&Q[1]!==K[1]}),L=u__namespace.useRef(null),R=function(K){K.preventDefault();},O=function(K){L.current&&L.current.scrollTo(typeof K=="number"?{index:K}:K);},P=function(K){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=I.length,ue=0;ue<re;ue+=1){var se=(K+ue*Y+re)%re,ee=I[se],ae=ee.group,q=ee.data;if(!ae&&!q.disabled)return se}return -1},_=u__namespace.useState(function(){return P(0)}),k=G(_,2),N=k[0],A=k[1],z=function(K){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;A(K);var re={source:Y?"keyboard":"mouse"},ue=I[K];if(!ue){v(null,-1,re);return}v(ue.value,K,re);};u.useEffect(function(){z(p!==!1?P(0):-1);},[I.length,c]);var F=u__namespace.useCallback(function(Q){return E.has(Q)&&s!=="combobox"},[s,Ge(E).toString(),E.size]);u.useEffect(function(){var Q=setTimeout(function(){if(!l&&a&&E.size===1){var Y=Array.from(E)[0],re=I.findIndex(function(ue){var se=ue.data;return se.value===Y});re!==-1&&(z(re),O(re));}});if(a){var K;(K=L.current)===null||K===void 0||K.scrollTo(void 0);}return function(){return clearTimeout(Q)}},[a,c,g.length]);var V=function(K){K!==void 0&&y(K,{selected:!E.has(K)}),l||d(!1);};if(u__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(K){var Y=K.which,re=K.ctrlKey;switch(Y){case ie.N:case ie.P:case ie.UP:case ie.DOWN:{var ue=0;if(Y===ie.UP?ue=-1:Y===ie.DOWN?ue=1:vT()&&re&&(Y===ie.N?ue=1:Y===ie.P&&(ue=-1)),ue!==0){var se=P(N+ue,ue);O(se),z(se,!0);}break}case ie.ENTER:{var ee=I[N];ee&&!ee.data.disabled?V(ee.value):V(void 0),a&&K.preventDefault();break}case ie.ESC:d(!1),a&&K.stopPropagation();}},onKeyUp:function(){},scrollTo:function(K){O(K);}}}),I.length===0)return u__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat($,"-empty"),onMouseDown:R},f);var j=Object.keys(M).map(function(Q){return M[Q]}),H=function(K){return K.label};function B(Q,K){var Y=Q.group;return {role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var X=function(K){var Y=I[K];if(!Y)return null;var re=Y.data||{},ue=re.value,se=Y.group,ee=Ci(re,!0),ae=H(Y);return Y?u__namespace.createElement("div",Ce({"aria-label":typeof ae=="string"&&!se?ae:null},ee,{key:K},B(Y,K),{"aria-selected":F(ue)}),ue):null},J={role:"listbox",id:"".concat(i,"_list")};return u__namespace.createElement(u__namespace.Fragment,null,w&&u__namespace.createElement("div",Ce({},J,{style:{height:0,width:0,overflow:"hidden"}}),X(N-1),X(N),X(N+1)),u__namespace.createElement(k0,{itemKey:"key",ref:L,data:I,height:S,itemHeight:C,fullHeight:!1,onMouseDown:R,onScroll:m,virtual:w,direction:x,innerProps:w?null:J},function(Q,K){var Y,re=Q.group,ue=Q.groupOption,se=Q.data,ee=Q.label,ae=Q.value,q=se.key;if(re){var te,ce=(te=se.title)!==null&&te!==void 0?te:_g(ee)?ee.toString():void 0;return u__namespace.createElement("div",{className:W($,"".concat($,"-group")),title:ce},ee!==void 0?ee:q)}var fe=se.disabled,he=se.title;se.children;var ge=se.style,be=se.className,Re=Qe(se,pT),De=vn(Re,j),$e=F(ae),we="".concat($,"-option"),Te=W($,we,be,(Y={},U(Y,"".concat(we,"-grouped"),ue),U(Y,"".concat(we,"-active"),N===K&&!fe),U(Y,"".concat(we,"-disabled"),fe),U(Y,"".concat(we,"-selected"),$e),Y)),Je=H(Q),Ve=!b||typeof b=="function"||$e,Ye=typeof Je=="number"?Je:Je||ae,Me=_g(Ye)?Ye.toString():void 0;return he!==void 0&&(Me=he),u__namespace.createElement("div",Ce({},Ci(De),w?{}:B(Q,K),{"aria-selected":$e,className:Te,title:Me,onMouseMove:function(){N===K||fe||z(K);},onClick:function(){fe||V(ae);},style:ge}),u__namespace.createElement("div",{className:"".concat(we,"-content")},Ye),u__namespace.isValidElement(b)||$e,Ve&&u__namespace.createElement(hs,{className:"".concat($,"-option-state"),customizeIcon:b,customizeIconProps:{isSelected:$e}},$e?"✓":null))}))},A0=u__namespace.forwardRef(bT);A0.displayName="OptionList";var yT=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],CT=["inputValue"];function ST(e){return !e||dt(e)!=="object"}var wT=u__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,y=e.filterOption,b=e.filterSort,E=e.optionFilterProp,M=e.optionLabelProp,w=e.options,x=e.children,S=e.defaultActiveFirstOption,C=e.menuItemSelectedIcon,$=e.virtual,I=e.direction,L=e.listHeight,R=L===void 0?200:L,O=e.listItemHeight,P=O===void 0?20:O,_=e.value,k=e.defaultValue,N=e.labelInValue,A=e.onChange,z=Qe(e,yT),F=XR(n),V=vd(r),j=!!(!w&&x),H=u__namespace.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),B=u__namespace.useMemo(function(){return _0(l,j)},[JSON.stringify(l),j]),X=zt("",{value:c!==void 0?c:s,postState:function(ve){return ve||""}}),J=G(X,2),Q=J[0],K=J[1],Y=QR(w,x,B,E,M),re=Y.valueOptions,ue=Y.labelOptions,se=Y.options,ee=u__namespace.useCallback(function(Se){var ve=I0(Se);return ve.map(function(Ee){var _e,Ze,ft,vt,Vt;if(ST(Ee))_e=Ee;else {var jt;ft=Ee.key,Ze=Ee.label,_e=(jt=Ee.value)!==null&&jt!==void 0?jt:ft;}var Fe=re.get(_e);if(Fe){var Xe;Ze===void 0&&(Ze=Fe==null?void 0:Fe[M||B.label]),ft===void 0&&(ft=(Xe=Fe==null?void 0:Fe.key)!==null&&Xe!==void 0?Xe:_e),vt=Fe==null?void 0:Fe.disabled,Vt=Fe==null?void 0:Fe.title;}return {label:Ze,value:_e,key:ft,disabled:vt,title:Vt}})},[B,M,re]),ae=zt(k,{value:_}),q=G(ae,2),te=q[0],ce=q[1],fe=u__namespace.useMemo(function(){var Se,ve=ee(te);return r==="combobox"&&!((Se=ve[0])!==null&&Se!==void 0&&Se.value)?[]:ve},[te,ee,r]),he=VR(fe,re),ge=G(he,2),be=ge[0],Re=ge[1],De=u__namespace.useMemo(function(){if(!r&&be.length===1){var Se=be[0];if(Se.value===null&&(Se.label===null||Se.label===void 0))return []}return be.map(function(ve){var Ee;return Z(Z({},ve),{},{label:(Ee=ve.label)!==null&&Ee!==void 0?Ee:ve.value})})},[r,be]),$e=u__namespace.useMemo(function(){return new Set(be.map(function(Se){return Se.value}))},[be]);u__namespace.useEffect(function(){if(r==="combobox"){var Se,ve=(Se=be[0])===null||Se===void 0?void 0:Se.value;K(MR(ve)?String(ve):"");}},[be]);var we=Pg(function(Se,ve){var Ee,_e=ve??Se;return Ee={},U(Ee,B.value,Se),U(Ee,B.label,_e),Ee}),Te=u__namespace.useMemo(function(){if(r!=="tags")return se;var Se=Ge(se),ve=function(_e){return re.has(_e)};return Ge(be).sort(function(Ee,_e){return Ee.value<_e.value?-1:1}).forEach(function(Ee){var _e=Ee.value;ve(_e)||Se.push(we(_e,Ee.label));}),Se},[we,se,re,be,r]),Je=KR(Te,B,Q,H,E),Ve=u__namespace.useMemo(function(){return r!=="tags"||!Q||Je.some(function(Se){return Se[E||"value"]===Q})?Je:[we(Q)].concat(Ge(Je))},[we,E,r,Je,Q]),Ye=u__namespace.useMemo(function(){return b?Ge(Ve).sort(function(Se,ve){return b(Se,ve)}):Ve},[Ve,b]),Me=u__namespace.useMemo(function(){return jR(Ye,{fieldNames:B,childrenAsData:j})},[Ye,B,j]),ke=function(ve){var Ee=ee(ve);if(ce(Ee),A&&(Ee.length!==be.length||Ee.some(function(ft,vt){var Vt;return ((Vt=be[vt])===null||Vt===void 0?void 0:Vt.value)!==(ft==null?void 0:ft.value)}))){var _e=N?Ee:Ee.map(function(ft){return ft.value}),Ze=Ee.map(function(ft){return gd(Re(ft.value))});A(V?_e:_e[0],V?Ze:Ze[0]);}},qe=u__namespace.useState(null),et=G(qe,2),ye=et[0],xe=et[1],je=u__namespace.useState(0),Le=G(je,2),rt=Le[0],Ue=Le[1],de=S!==void 0?S:r!=="combobox",ne=u__namespace.useCallback(function(Se,ve){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=Ee.source,Ze=_e===void 0?"keyboard":_e;Ue(ve),a&&r==="combobox"&&Se!==null&&Ze==="keyboard"&&xe(String(Se));},[a,r]),me=function(ve,Ee,_e){var Ze=function(){var Yt,He=Re(ve);return [N?{label:He==null?void 0:He[B.label],value:ve,key:(Yt=He==null?void 0:He.key)!==null&&Yt!==void 0?Yt:ve}:ve,gd(He)]};if(Ee&&h){var ft=Ze(),vt=G(ft,2),Vt=vt[0],jt=vt[1];h(Vt,jt);}else if(!Ee&&g&&_e!=="clear"){var Fe=Ze(),Xe=G(Fe,2),Be=Xe[0],pt=Xe[1];g(Be,pt);}},le=Pg(function(Se,ve){var Ee,_e=V?ve.selected:!0;_e?Ee=V?[].concat(Ge(be),[Se]):[Se]:Ee=be.filter(function(Ze){return Ze.value!==Se}),ke(Ee),me(Se,_e),r==="combobox"?xe(""):(!vd||m)&&(K(""),xe(""));}),Ne=function(ve,Ee){ke(ve);var _e=Ee.type,Ze=Ee.values;(_e==="remove"||_e==="clear")&&Ze.forEach(function(ft){me(ft.value,!1,_e);});},tt=function(ve,Ee){if(K(ve),xe(null),Ee.source==="submit"){var _e=(ve||"").trim();if(_e){var Ze=Array.from(new Set([].concat(Ge($e),[_e])));ke(Ze),me(_e,!0),K("");}return}Ee.source!=="blur"&&(r==="combobox"&&ke(ve),d==null||d(ve));},ct=function(ve){var Ee=ve;r!=="tags"&&(Ee=ve.map(function(Ze){var ft=ue.get(Ze);return ft==null?void 0:ft.value}).filter(function(Ze){return Ze!==void 0}));var _e=Array.from(new Set([].concat(Ge($e),Ge(Ee))));ke(_e),_e.forEach(function(Ze){me(Ze,!0);});},Ae=u__namespace.useMemo(function(){var Se=$!==!1&&p!==!1;return Z(Z({},Y),{},{flattenOptions:Me,onActiveValue:ne,defaultActiveFirstOption:de,onSelect:le,menuItemSelectedIcon:C,rawValues:$e,fieldNames:B,virtual:Se,direction:I,listHeight:R,listItemHeight:P,childrenAsData:j})},[Y,Me,ne,de,le,C,$e,B,$,p,R,P,j]);return u__namespace.createElement(L0.Provider,{value:Ae},u__namespace.createElement(WR,Ce({},z,{id:F,prefixCls:i,ref:t,omitDomProps:CT,mode:r,displayValues:De,onDisplayValuesChange:Ne,direction:I,searchValue:Q,onSearch:tt,autoClearSearchValue:m,onSearchSplit:ct,dropdownMatchSelectWidth:p,OptionList:A0,emptyOptions:!Me.length,activeValue:ye,activeDescendantId:"".concat(F,"_list_").concat(rt)})))}),Qf=wT;Qf.Option=Zf;Qf.OptGroup=qf;const $T=()=>{const[,e]=eo(),n=new Wt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},u__namespace.createElement("g",{transform:"translate(24 31.67)"},u__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xT=$T,ET=()=>{const[,e]=eo(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=u.useMemo(()=>({borderColor:new Wt(t).onBackground(o).toHexShortString(),shadowColor:new Wt(n).onBackground(o).toHexShortString(),contentColor:new Wt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u__namespace.createElement("g",{fillRule:"nonzero",stroke:i},u__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},IT=ET,OT=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},PT=Ut("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=mt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [OT(r)]});var MT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const D0=u__namespace.createElement(xT,null),z0=u__namespace.createElement(IT,null),Jf=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=D0,description:i,children:a,imageStyle:l,style:s}=e,c=MT(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=u__namespace.useContext(ot),h=d("empty",r),[g,v]=PT(h),[p]=Ni("Empty"),y=typeof i<"u"?i:p==null?void 0:p.description,b=typeof y=="string"?y:"empty";let E=null;return typeof o=="string"?E=u__namespace.createElement("img",{alt:b,src:o}):E=o,g(u__namespace.createElement("div",Object.assign({className:W(v,h,m==null?void 0:m.className,{[`${h}-normal`]:o===z0,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},c),u__namespace.createElement("div",{className:`${h}-image`,style:l},E),y&&u__namespace.createElement("div",{className:`${h}-description`},y),a&&u__namespace.createElement("div",{className:`${h}-footer`},a)))};Jf.PRESENTED_IMAGE_DEFAULT=D0;Jf.PRESENTED_IMAGE_SIMPLE=z0;const Xi=Jf,_T=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(ot),r=n("empty");switch(t){case"Table":case"List":return u.createElement(Xi,{image:Xi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return u.createElement(Xi,{image:Xi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return u.createElement(Xi,null)}},j0=_T;function RT(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function TT(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},RT(e,r,t)),TT(n,r,t))}}const NT=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},kT=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},kt(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,[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:Wf},[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{animationName:Kf},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Vf},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Gf},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},NT(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},xo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Jr(e,"slide-up"),Jr(e,"slide-down"),ds(e,"move-up"),ds(e,"move-down")]},LT=kT,Go=2,B0=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function uu(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=B0(e),l=t?`${n}-${t}`:"";return {[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Go}px ${Go*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Go}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Go,marginBottom:Go,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Go*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},To()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const AT=e=>{const{componentCls:t}=e,n=mt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=mt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=B0(e);return [uu(e),uu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},uu(r,"lg")]},DT=AT;function du(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return {[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},kt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function zT(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [du(e),du(mt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},du(mt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const jT=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},fu=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},BT=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},HT=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},jT(e)),BT(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},xo),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},xo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},To()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},FT=e=>{const{componentCls:t}=e;return [{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},HT(e),zT(e),DT(e),LT(e),{[`${t}-rtl`]:{direction:"rtl"}},fu(t,mt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),fu(`${t}-status-error`,mt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),fu(`${t}-status-warning`,mt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),uc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},WT=Ut("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=mt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [FT(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),VT=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function KT(e,t){return e||VT(t)}function GT(e){return e??!0}var UT={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 XT=UT;function H0(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function YT(e){return H0(e)!==(e==null?void 0:e.ownerDocument)}function qT(e){return YT(e)?H0(e):null}function ZT(e,t){pr(e,"[@ant-design/icons] ".concat(t));}function Rg(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function Tg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function pd(e,t,n){return n?u.createElement(e.tag,Z(Z({key:t},Tg(e.attrs)),n),(e.children||[]).map(function(r,o){return pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):u.createElement(e.tag,Z({key:t},Tg(e.attrs)),(e.children||[]).map(function(r,o){return pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function F0(e){return Tr(e)[0]}function W0(e){return e?Array.isArray(e)?e:[e]:[]}var QT=` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,JT=function(t){var n=u.useContext(_f),r=n.csp,o=n.prefixCls,i=QT;o&&(i=i.replace(/anticon/g,o)),u.useEffect(function(){var a=t.current,l=qT(a);gi(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l});},[]);},eN=["icon","className","onClick","style","primaryColor","secondaryColor"],ca={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function tN(e){var t=e.primaryColor,n=e.secondaryColor;ca.primaryColor=t,ca.secondaryColor=n||F0(t),ca.calculated=!!n;}function nN(){return Z({},ca)}var dc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=Qe(t,eN),c=u__namespace.useRef(),d=ca;if(a&&(d={primaryColor:a,secondaryColor:l||F0(a)}),JT(c),ZT(Rg(n),"icon should be icon definiton, but got ".concat(n)),!Rg(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Z(Z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),pd(f.icon,"svg-".concat(f.name),Z(Z({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};dc.displayName="IconReact";dc.getTwoToneColors=nN;dc.setTwoToneColors=tN;const em=dc;function V0(e){var t=W0(e),n=G(t,2),r=n[0],o=n[1];return em.setTwoToneColors({primaryColor:r,secondaryColor:o})}function rN(){var e=em.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var oN=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];V0($O.primary);var fc=u__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,d=Qe(e,oN),f=u__namespace.useContext(_f),m=f.prefixCls,h=m===void 0?"anticon":m,g=f.rootClassName,v=W(g,h,(n={},U(n,"".concat(h,"-").concat(o.name),!!o.name),U(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=l;p===void 0&&s&&(p=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=W0(c),E=G(b,2),M=E[0],w=E[1];return u__namespace.createElement("span",Ce({role:"img","aria-label":o.name},d,{ref:t,tabIndex:p,onClick:s,className:v}),u__namespace.createElement(em,{icon:o,primaryColor:M,secondaryColor:w,style:y}))});fc.displayName="AntdIcon";fc.getTwoToneColor=rN;fc.setTwoToneColor=V0;const cn=fc;var iN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:XT}))};const aN=u__namespace.forwardRef(iN);var lN={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const sN=lN;var cN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:sN}))};const tm=u__namespace.forwardRef(cN);var uN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const dN=uN;var fN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:dN}))};const mc=u__namespace.forwardRef(fN);var mN={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 hN=mN;var gN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:hN}))};const nm=u__namespace.forwardRef(gN);var vN={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 pN=vN;var bN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:pN}))};const rm=u__namespace.forwardRef(bN);var yN={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 CN=yN;var SN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:CN}))};const om=u__namespace.forwardRef(SN);function wN(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showArrow:c,feedbackIcon:d}=e;const f=n??u__namespace.createElement(tm,null),m=p=>u__namespace.createElement(u__namespace.Fragment,null,c!==!1&&p,l&&d);let h=null;if(t!==void 0)h=m(t);else if(i)h=m(u__namespace.createElement(rm,{spin:!0}));else {const p=`${s}-suffix`;h=y=>{let{open:b,showSearch:E}=y;return m(b&&E?u__namespace.createElement(om,{className:p}):u__namespace.createElement(nm,{className:p}))};}let g=null;r!==void 0?g=r:a?g=u__namespace.createElement(aN,null):g=null;let v=null;return o!==void 0?v=o:v=u__namespace.createElement(mc,null),{clearIcon:f,suffixIcon:h,itemIcon:g,removeIcon:v}}var $N=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const K0="SECRET_COMBOBOX_MODE_DO_NOT_USE",xN=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:m=24,size:h,disabled:g,notFoundContent:v,status:p,showArrow:y,builtinPlacements:b,dropdownMatchSelectWidth:E,popupMatchSelectWidth:M,direction:w,style:x}=e,S=$N(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style"]);const{getPopupContainer:C,getPrefixCls:$,renderEmpty:I,direction:L,virtual:R,popupMatchSelectWidth:O,popupOverflow:P,select:_}=u__namespace.useContext(ot),k=$("select",r),N=$(),A=w??L,{compactSize:z,compactItemClassnames:F}=Li(k,A),[V,j]=WT(k),H=u__namespace.useMemo(()=>{const{mode:we}=S;if(we!=="combobox")return we===K0?"combobox":we},[S.mode]),B=H==="multiple"||H==="tags",X=GT(y),J=(n=M??E)!==null&&n!==void 0?n:O,{status:Q,hasFeedback:K,isFormItemInput:Y,feedbackIcon:re}=u__namespace.useContext(Vn),ue=Ka(Q,p);let se;v!==void 0?se=v:H==="combobox"?se=null:se=(I==null?void 0:I("Select"))||u__namespace.createElement(j0,{componentName:"Select"});const{suffixIcon:ee,itemIcon:ae,removeIcon:q,clearIcon:te}=wN(Object.assign(Object.assign({},S),{multiple:B,hasFeedback:K,feedbackIcon:re,showArrow:X,prefixCls:k})),ce=vn(S,["suffixIcon","itemIcon"]),fe=W(s||c,{[`${k}-dropdown-${A}`]:A==="rtl"},a,j),he=kn(we=>{var Te;return (Te=h??z)!==null&&Te!==void 0?Te:we}),ge=u__namespace.useContext(br),be=g??ge,Re=W({[`${k}-lg`]:he==="large",[`${k}-sm`]:he==="small",[`${k}-rtl`]:A==="rtl",[`${k}-borderless`]:!o,[`${k}-in-form-item`]:Y},Zn(k,ue,K),F,_==null?void 0:_.className,i,a,j),De=u__namespace.useMemo(()=>f!==void 0?f:A==="rtl"?"bottomRight":"bottomLeft",[f,A]),$e=KT(b,P);return V(u__namespace.createElement(Qf,Object.assign({ref:t,virtual:R,showSearch:_==null?void 0:_.showSearch},ce,{style:Object.assign(Object.assign({},_==null?void 0:_.style),x),dropdownMatchSelectWidth:J,builtinPlacements:$e,transitionName:oc(N,MP(f),S.transitionName),listHeight:d,listItemHeight:m,mode:H,prefixCls:k,placement:De,direction:A,inputIcon:ee,menuItemSelectedIcon:ae,removeIcon:q,clearIcon:te,notFoundContent:se,className:Re,getPopupContainer:l||C,dropdownClassName:fe,showArrow:K||X,disabled:be})))},Ai=u__namespace.forwardRef(xN),EN=Df(Ai);Ai.SECRET_COMBOBOX_MODE_DO_NOT_USE=K0;Ai.Option=Zf;Ai.OptGroup=qf;Ai._InternalPanelDoNotUseOrYouWillBeFired=EN;const Xa=Ai;var Pr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Pr||(Pr={}));var IN={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 ON=IN;var PN=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:ON}))};const MN=u__namespace.forwardRef(PN);function bd(){return typeof BigInt=="function"}function So(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var l=n?"-":"";return {negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function im(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ma(e){var t=String(e);if(im(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&am(t)?t.length-t.indexOf(".")-1:0}function hc(e){var t=String(e);if(im(e)){if(e>Number.MAX_SAFE_INTEGER)return String(bd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(bd()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ma(t));}return So(t).fullStr}function am(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function G0(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var _N=function(){function e(t){if(pn(this,e),U(this,"origin",""),U(this,"number",void 0),U(this,"empty",void 0),G0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return bn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(Ma(this.number),Ma(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":hc(this.number):this.origin}}]),e}(),RN=function(){function e(t){if(pn(this,e),U(this,"origin",""),U(this,"negative",void 0),U(this,"integer",void 0),U(this,"decimal",void 0),U(this,"decimalLen",void 0),U(this,"empty",void 0),U(this,"nan",void 0),G0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(im(n)&&(n=Number(n)),n=typeof n=="string"?n:hc(n),am(n)){var r=So(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return bn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),l=(i+a).toString(),s=So(l),c=s.negativeStr,d=s.trimStr,f="".concat(c).concat(d.padStart(o+1,"0"));return new e("".concat(f.slice(0,-o),".").concat(f.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":So("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Xn(e){return bd()?new RN(e):new _N(e)}function Fl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=So(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Xn(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return Fl(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?c:"".concat(c).concat(s)}function Uo(e){return !!(e.addonBefore||e.addonAfter)}function mu(e){return !!(e.prefix||e.suffix||e.allowClear)}function ua(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function U0(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function yd(e){return typeof e>"u"||e===null?"":String(e)}var lm=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,s=t.addonBefore,c=t.addonAfter,d=t.className,f=t.style,m=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,y=t.value,b=t.handleReset,E=t.hidden,M=t.classes,w=t.classNames,x=t.dataAttrs,S=t.styles,C=t.components,$=(C==null?void 0:C.affixWrapper)||"span",I=(C==null?void 0:C.groupWrapper)||"span",L=(C==null?void 0:C.wrapper)||"span",R=(C==null?void 0:C.groupAddon)||"span",O=u.useRef(null),P=function(J){var Q;(Q=O.current)!==null&&Q!==void 0&&Q.contains(J.target)&&(v==null||v());},_=function(){var J;if(!p)return null;var Q=!m&&!h&&y,K="".concat(i,"-clear-icon"),Y=dt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return u.createElement("span",{onClick:b,onMouseDown:function(ue){return ue.preventDefault()},className:W(K,(J={},U(J,"".concat(K,"-hidden"),!Q),U(J,"".concat(K,"-has-suffix"),!!l),J)),role:"button",tabIndex:-1},Y)},k=u.cloneElement(o,{value:y,hidden:E,className:W((n=o.props)===null||n===void 0?void 0:n.className,!mu(t)&&!Uo(t)&&d)||null,style:Z(Z({},(r=o.props)===null||r===void 0?void 0:r.style),!mu(t)&&!Uo(t)?f:{})});if(mu(t)){var N,A="".concat(i,"-affix-wrapper"),z=W(A,(N={},U(N,"".concat(A,"-disabled"),m),U(N,"".concat(A,"-focused"),g),U(N,"".concat(A,"-readonly"),h),U(N,"".concat(A,"-input-with-clear-btn"),l&&p&&y),N),!Uo(t)&&d,M==null?void 0:M.affixWrapper,w==null?void 0:w.affixWrapper),F=(l||p)&&u.createElement("span",{className:W("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:S==null?void 0:S.suffix},_(),l);k=u.createElement($,Ce({className:z,style:Uo(t)?void 0:f,hidden:!Uo(t)&&E,onClick:P},x==null?void 0:x.affixWrapper,{ref:O}),a&&u.createElement("span",{className:W("".concat(i,"-prefix"),w==null?void 0:w.prefix),style:S==null?void 0:S.prefix},a),u.cloneElement(o,{value:y,hidden:null}),F);}if(Uo(t)){var V="".concat(i,"-group"),j="".concat(V,"-addon"),H=W("".concat(i,"-wrapper"),V,M==null?void 0:M.wrapper),B=W("".concat(i,"-group-wrapper"),d,M==null?void 0:M.group);return u.createElement(I,{className:B,style:f,hidden:E},u.createElement(L,{className:H},s&&u.createElement(R,{className:j},s),u.cloneElement(k,{hidden:null}),c&&u.createElement(R,{className:j},c)))}return k},TN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],NN=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.type,y=p===void 0?"text":p,b=e.classes,E=e.classNames,M=e.styles,w=Qe(e,TN),x=zt(e.defaultValue,{value:e.value}),S=G(x,2),C=S[0],$=S[1],I=u.useState(!1),L=G(I,2),R=L[0],O=L[1],P=u.useRef(null),_=function(B){P.current&&U0(P.current,B);};u.useImperativeHandle(t,function(){return {focus:_,blur:function(){var B;(B=P.current)===null||B===void 0||B.blur();},setSelectionRange:function(B,X,J){var Q;(Q=P.current)===null||Q===void 0||Q.setSelectionRange(B,X,J);},select:function(){var B;(B=P.current)===null||B===void 0||B.select();},input:P.current}}),u.useEffect(function(){O(function(H){return H&&d?!1:H});},[d]);var k=function(B){e.value===void 0&&$(B.target.value),P.current&&ua(P.current,B,r);},N=function(B){a&&B.key==="Enter"&&a(B),l==null||l(B);},A=function(B){O(!0),o==null||o(B);},z=function(B){O(!1),i==null||i(B);},F=function(B){$(""),_(),P.current&&ua(P.current,B,r);},V=function(){var B=vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return u.createElement("input",Ce({autoComplete:n},B,{onChange:k,onFocus:A,onBlur:z,onKeyDown:N,className:W(c,U({},"".concat(c,"-disabled"),d),E==null?void 0:E.input),style:M==null?void 0:M.input,ref:P,size:f,type:y}))},j=function(){var B=Number(h)>0;if(g||v){var X=yd(C),J=Ge(X).length,Q=dt(v)==="object"?v.formatter({value:X,count:J,maxLength:h}):"".concat(J).concat(B?" / ".concat(h):"");return u.createElement(u.Fragment,null,!!v&&u.createElement("span",{className:W("".concat(c,"-show-count-suffix"),U({},"".concat(c,"-show-count-has-suffix"),!!g),E==null?void 0:E.count),style:Z({},M==null?void 0:M.count)},Q),g)}return null};return u.createElement(lm,Ce({},w,{prefixCls:c,className:m,inputElement:V(),handleReset:F,value:yd(C),focused:R,triggerFocus:_,suffix:j(),disabled:d,classes:b,classNames:E,styles:M}))});function kN(e,t){var n=u.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,l=e.value,s=l.substring(0,i),c=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:s,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,l=a.beforeTxt,s=a.afterTxt,c=a.start,d=i.length;if(i.endsWith(s))d=i.length-n.current.afterTxt.length;else if(i.startsWith(l))d=l.length;else {var f=l[c-1],m=i.indexOf(f,c-1);m!==-1&&(d=m+1);}e.setSelectionRange(d,d);}catch(h){pr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var LN=function(){var t=u.useState(!1),n=G(t,2),r=n[0],o=n[1];return Ft(function(){o(ac());},[]),r},AN=200,DN=600;function zN(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=u__namespace.useRef(),s=u__namespace.useRef([]),c=u__namespace.useRef();c.current=a;var d=function(){clearTimeout(l.current);},f=function(E,M){E.preventDefault(),d(),c.current(M);function w(){c.current(M),l.current=setTimeout(w,AN);}l.current=setTimeout(w,DN);};u__namespace.useEffect(function(){return function(){d(),s.current.forEach(function(b){return It.cancel(b)});}},[]);var m=LN();if(m)return null;var h="".concat(t,"-handler"),g=W(h,"".concat(h,"-up"),U({},"".concat(h,"-up-disabled"),o)),v=W(h,"".concat(h,"-down"),U({},"".concat(h,"-down-disabled"),i)),p=function(){return s.current.push(It(d))},y={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return u__namespace.createElement("div",{className:"".concat(h,"-wrap")},u__namespace.createElement("span",Ce({},y,{onMouseDown:function(E){f(E,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u__namespace.createElement("span",Ce({},y,{onMouseDown:function(E){f(E,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Ng(e){var t=typeof e=="number"?hc(e):So(e).fullStr,n=t.includes(".");return n?So(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const jN=function(){var e=u.useRef(0),t=function(){It.cancel(e.current);};return u.useEffect(function(){return t},[]),function(n){t(),e.current=It(function(){n();});}};var BN=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],HN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],kg=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Lg=function(t){var n=Xn(t);return n.isInvalidate()?null:n},FN=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,c=e.step,d=c===void 0?1:c,f=e.defaultValue,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,y=e.keyboard,b=e.controls,E=b===void 0?!0:b,M=e.classNames,w=e.stringMode,x=e.parser,S=e.formatter,C=e.precision,$=e.decimalSeparator,I=e.onChange,L=e.onInput,R=e.onPressEnter,O=e.onStep,P=Qe(e,BN),_="".concat(o,"-input"),k=u__namespace.useRef(null),N=u__namespace.useState(!1),A=G(N,2),z=A[0],F=A[1],V=u__namespace.useRef(!1),j=u__namespace.useRef(!1),H=u__namespace.useRef(!1),B=u__namespace.useState(function(){return Xn(m??f)}),X=G(B,2),J=X[0],Q=X[1];function K(de){m===void 0&&Q(de);}var Y=u__namespace.useCallback(function(de,ne){if(!ne)return C>=0?C:Math.max(Ma(de),Ma(d))},[C,d]),re=u__namespace.useCallback(function(de){var ne=String(de);if(x)return x(ne);var me=ne;return $&&(me=me.replace($,".")),me.replace(/[^\w.-]+/g,"")},[x,$]),ue=u__namespace.useRef(""),se=u__namespace.useCallback(function(de,ne){if(S)return S(de,{userTyping:ne,input:String(ue.current)});var me=typeof de=="number"?hc(de):de;if(!ne){var le=Y(me,ne);if(am(me)&&($||le>=0)){var Ne=$||".";me=Fl(me,Ne,le);}}return me},[S,Y,$]),ee=u__namespace.useState(function(){var de=f??m;return J.isInvalidate()&&["string","number"].includes(dt(de))?Number.isNaN(de)?"":de:se(J.toString(),!1)}),ae=G(ee,2),q=ae[0],te=ae[1];ue.current=q;function ce(de,ne){te(se(de.isInvalidate()?de.toString(!1):de.toString(!ne),ne));}var fe=u__namespace.useMemo(function(){return Lg(s)},[s,C]),he=u__namespace.useMemo(function(){return Lg(l)},[l,C]),ge=u__namespace.useMemo(function(){return !fe||!J||J.isInvalidate()?!1:fe.lessEquals(J)},[fe,J]),be=u__namespace.useMemo(function(){return !he||!J||J.isInvalidate()?!1:J.lessEquals(he)},[he,J]),Re=kN(k.current,z),De=G(Re,2),$e=De[0],we=De[1],Te=function(ne){return fe&&!ne.lessEquals(fe)?fe:he&&!he.lessEquals(ne)?he:null},Je=function(ne){return !Te(ne)},Ve=function(ne,me){var le=ne,Ne=Je(le)||le.isEmpty();if(!le.isEmpty()&&!me&&(le=Te(le)||le,Ne=!0),!g&&!h&&Ne){var tt=le.toString(),ct=Y(tt,me);return ct>=0&&(le=Xn(Fl(tt,".",ct)),Je(le)||(le=Xn(Fl(tt,".",ct,!0)))),le.equals(J)||(K(le),I==null||I(le.isEmpty()?null:kg(w,le)),m===void 0&&ce(le,me)),le}return J},Ye=jN(),Me=function de(ne){if($e(),ue.current=ne,te(ne),!j.current){var me=re(ne),le=Xn(me);le.isNaN()||Ve(le,!0);}L==null||L(ne),Ye(function(){var Ne=ne;x||(Ne=ne.replace(/。/g,".")),Ne!==ne&&de(Ne);});},ke=function(){j.current=!0;},qe=function(){j.current=!1,Me(k.current.value);},et=function(ne){Me(ne.target.value);},ye=function(ne){var me;if(!(ne&&ge||!ne&&be)){V.current=!1;var le=Xn(H.current?Ng(d):d);ne||(le=le.negate());var Ne=(J||Xn(0)).add(le.toString()),tt=Ve(Ne,!1);O==null||O(kg(w,tt),{offset:H.current?Ng(d):d,type:ne?"up":"down"}),(me=k.current)===null||me===void 0||me.focus();}},xe=function(ne){var me=Xn(re(q)),le=me;me.isNaN()?le=J:le=Ve(me,ne),m!==void 0?ce(J,!1):le.isNaN()||ce(le,!1);},je=function(){V.current=!0;},Le=function(ne){var me=ne.key,le=ne.shiftKey;V.current=!0,H.current=le,me==="Enter"&&(j.current||(V.current=!1),xe(!1),R==null||R(ne)),y!==!1&&!j.current&&["Up","ArrowUp","Down","ArrowDown"].includes(me)&&(ye(me==="Up"||me==="ArrowUp"),ne.preventDefault());},rt=function(){V.current=!1,H.current=!1;},Ue=function(){xe(!1),F(!1),V.current=!1;};return si(function(){J.isInvalidate()||ce(J,!1);},[C]),si(function(){var de=Xn(m);Q(de);var ne=Xn(re(q));(!de.equals(ne)||!V.current||S)&&ce(de,V.current);},[m]),si(function(){S&&we();},[q]),u__namespace.createElement("div",{className:W(o,M==null?void 0:M.input,i,(n={},U(n,"".concat(o,"-focused"),z),U(n,"".concat(o,"-disabled"),h),U(n,"".concat(o,"-readonly"),g),U(n,"".concat(o,"-not-a-number"),J.isNaN()),U(n,"".concat(o,"-out-of-range"),!J.isInvalidate()&&!Je(J)),n)),style:a,onFocus:function(){F(!0);},onBlur:Ue,onKeyDown:Le,onKeyUp:rt,onCompositionStart:ke,onCompositionEnd:qe,onBeforeInput:je},E&&u__namespace.createElement(zN,{prefixCls:o,upNode:v,downNode:p,upDisabled:ge,downDisabled:be,onStep:ye}),u__namespace.createElement("div",{className:"".concat(_,"-wrap")},u__namespace.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:d},P,{ref:Sn(k,t),className:_,value:q,onChange:et,disabled:h,readOnly:g}))))}),X0=u__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,d=e.classes,f=e.className,m=e.classNames,h=Qe(e,HN),g=u__namespace.useRef(null),v=function(y){g.current&&U0(g.current,y);};return u__namespace.createElement(lm,{inputElement:u__namespace.createElement(FN,Ce({prefixCls:o,disabled:n,classNames:m,ref:Sn(g,t)},h)),className:f,triggerFocus:v,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:c,addonBefore:s,classes:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});X0.displayName="InputNumber";const Y0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ya=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),gs=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),sm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ya(mt(e,{inputBorderHoverColor:e.colorBorder})))}),q0=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},cm=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),gc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},gs(mt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},gs(mt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},qa=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Y0(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ya(e)),"&:focus, &-focused":Object.assign({},gs(e)),"&-disabled, &[disabled]":Object.assign({},sm(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},q0(e)),"&-sm":Object.assign({},cm(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Z0=e=>{const{componentCls:t,antCls:n}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},q0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},nd()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},WN=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),qa(e)),gc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},VN=e=>{const{componentCls:t}=e;return {[`${t}-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 ${e.inputAffixPadding}px`}}}},KN=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qa(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ya(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),VN(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),gc(e,`${t}-affix-wrapper`))}},GN=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},kt(e)),Z0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},sm(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},UN=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function um(e){return mt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const XN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},dm=Ut("Input",e=>{const t=um(e);return [WN(t),XN(t),KN(t),GN(t),UN(t),uc(t)]}),YN=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:d,colorTextDescription:f,motionDurationMid:m,colorPrimary:h,inputPaddingHorizontal:g,inputPaddingVertical:v,colorBgContainer:p,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:E,controlWidth:M,handleVisible:w}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),qa(e)),gc(e,t)),{display:"inline-block",width:M,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:E,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${t}-input`]:{height:s-2*n,padding:`0 ${d}px`}},"&:hover":Object.assign({},Ya(e)),"&-focused":Object.assign({},gs(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},kt(e)),Z0(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E}},"&-sm":{[`${t}-group-addon`]:{borderRadius:b}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},sm(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),Y0(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${m} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},To()),{color:f,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},qN=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},qa(e)),gc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ya(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},ZN=Ut("InputNumber",e=>{const t=um(e);return [YN(t),qN(t),uc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var QN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Q0=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(ot),o=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:f,prefix:m,bordered:h=!0,readOnly:g,status:v,controls:p}=e,y=QN(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),b=n("input-number",c),[E,M]=ZN(b),{compactSize:w,compactItemClassnames:x}=Li(b,r);let S=u__namespace.createElement(MN,{className:`${b}-handler-up-inner`}),C=u__namespace.createElement(nm,{className:`${b}-handler-down-inner`});const $=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:u__namespace.createElement("span",{className:`${b}-handler-up-inner`},p.upIcon),C=typeof p.downIcon>"u"?C:u__namespace.createElement("span",{className:`${b}-handler-down-inner`},p.downIcon));const{hasFeedback:I,status:L,isFormItemInput:R,feedbackIcon:O}=u__namespace.useContext(Vn),P=Ka(L,v),_=kn(V=>{var j;return (j=l??w)!==null&&j!==void 0?j:V}),k=u__namespace.useContext(br),N=s??k,A=W({[`${b}-lg`]:_==="large",[`${b}-sm`]:_==="small",[`${b}-rtl`]:r==="rtl",[`${b}-borderless`]:!h,[`${b}-in-form-item`]:R},Zn(b,P),x,M),z=`${b}-group`,F=u__namespace.createElement(X0,Object.assign({ref:o,disabled:N,className:W(i,a),upHandler:S,downHandler:C,prefixCls:b,readOnly:g,controls:$,prefix:m,suffix:I&&O,addonAfter:f&&u__namespace.createElement(bi,null,u__namespace.createElement(Oa,{override:!0,status:!0},f)),addonBefore:d&&u__namespace.createElement(bi,null,u__namespace.createElement(Oa,{override:!0,status:!0},d)),classNames:{input:A},classes:{affixWrapper:W(Zn(`${b}-affix-wrapper`,P,I),{[`${b}-affix-wrapper-sm`]:_==="small",[`${b}-affix-wrapper-lg`]:_==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl",[`${b}-affix-wrapper-borderless`]:!h},M),wrapper:W({[`${z}-rtl`]:r==="rtl",[`${b}-wrapper-disabled`]:N},M),group:W({[`${b}-group-wrapper-sm`]:_==="small",[`${b}-group-wrapper-lg`]:_==="large",[`${b}-group-wrapper-rtl`]:r==="rtl"},Zn(`${b}-group-wrapper`,P,I),M)}},y));return E(F)}),J0=Q0,JN=e=>u__namespace.createElement(Af,{theme:{components:{InputNumber:{handleVisible:!0}}}},u__namespace.createElement(Q0,Object.assign({},e)));J0._InternalPanelDoNotUseOrYouWillBeFired=JN;const Cd=J0,ek=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:l}=e;const s=`${t}-steppers`,[c,d]=u.useState(o);return u.useEffect(()=>{Number.isNaN(o)||d(o);},[o]),u.createElement(Cd,{className:W(s,a),min:n,max:r,value:c,formatter:l,size:"small",onChange:f=>{o||d(f||0),i==null||i(f);}})},wo=ek,tk=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=s=>{const c=i.toHsb();c.a=(s||0)/100;const d=gn(c);n||a(d),r==null||r(d);};return u.createElement(wo,{value:y0(i),prefixCls:t,formatter:s=>`${s}%`,className:o,onChange:l})},nk=tk,rk=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ot),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=dm(a),c=W(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),d=u.useContext(Vn),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(u__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u__namespace.createElement(Vn.Provider,{value:f},e.children)))},ok=rk;function ey(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"));}));};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function ik(e){return !!(e.prefix||e.suffix||e.allowClear)}var ak=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lk(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const sk=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:y,onChange:b,classNames:E}=e,M=ak(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:x,input:S}=u.useContext(ot),C=w("input",r),$=u.useRef(null),[I,L]=dm(C),{compactSize:R,compactItemClassnames:O}=Li(C,x),P=kn(Y=>{var re;return (re=a??R)!==null&&re!==void 0?re:Y}),_=u.useContext(br),k=l??_,{status:N,hasFeedback:A,feedbackIcon:z}=u.useContext(Vn),F=Ka(N,i),V=ik(e)||!!A,j=u.useRef(V);u.useEffect(()=>{V&&j.current,j.current=V;},[V]);const H=ey($,!0),B=Y=>{H(),s==null||s(Y);},X=Y=>{H(),c==null||c(Y);},J=Y=>{H(),b==null||b(Y);},Q=(A||d)&&u.createElement(u.Fragment,null,d,A&&z);let K;return typeof f=="object"&&(f!=null&&f.clearIcon)?K=f:f&&(K={clearIcon:u.createElement(tm,null)}),I(u.createElement(NN,Object.assign({ref:Sn(t,$),prefixCls:C,autoComplete:S==null?void 0:S.autoComplete},M,{disabled:k,onBlur:B,onFocus:X,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:Q,allowClear:K,className:W(g,y,O,S==null?void 0:S.className),onChange:J,addonAfter:m&&u.createElement(bi,null,u.createElement(Oa,{override:!0,status:!0},m)),addonBefore:h&&u.createElement(bi,null,u.createElement(Oa,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},E),S==null?void 0:S.classNames),{input:W({[`${C}-sm`]:P==="small",[`${C}-lg`]:P==="large",[`${C}-rtl`]:x==="rtl",[`${C}-borderless`]:!o},!V&&Zn(C,F),E==null?void 0:E.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,L)}),classes:{affixWrapper:W({[`${C}-affix-wrapper-sm`]:P==="small",[`${C}-affix-wrapper-lg`]:P==="large",[`${C}-affix-wrapper-rtl`]:x==="rtl",[`${C}-affix-wrapper-borderless`]:!o},Zn(`${C}-affix-wrapper`,F,A),L),wrapper:W({[`${C}-group-rtl`]:x==="rtl"},L),group:W({[`${C}-group-wrapper-sm`]:P==="small",[`${C}-group-wrapper-lg`]:P==="large",[`${C}-group-wrapper-rtl`]:x==="rtl",[`${C}-group-wrapper-disabled`]:k},Zn(`${C}-group-wrapper`,F,A),L)}})))}),fm=sk;var ck={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 uk=ck;var dk=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:uk}))};const fk=u__namespace.forwardRef(dk);var mk={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 hk=mk;var gk=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:hk}))};const vk=u__namespace.forwardRef(gk);var pk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bk=e=>e?u__namespace.createElement(vk,null):u__namespace.createElement(fk,null),yk={click:"onClick",hover:"onMouseOver"},Ck=u__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=u.useState(()=>r?n.visible:!1),a=u.useRef(null);u__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const l=ey(a),s=()=>{const{disabled:w}=e;w||(o&&l(),i(x=>{var S;const C=!x;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,C)),C}));},c=w=>{const{action:x="click",iconRender:S=bk}=e,C=yk[x]||"",$=S(o),I={[C]:s,className:`${w}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault();},onMouseUp:L=>{L.preventDefault();}};return u__namespace.cloneElement(u__namespace.isValidElement($)?$:u__namespace.createElement("span",null,$),I)},{className:d,prefixCls:f,inputPrefixCls:m,size:h}=e,g=pk(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=u__namespace.useContext(ot),p=v("input",m),y=v("input-password",f),b=n&&c(y),E=W(y,d,{[`${y}-${h}`]:!!h}),M=Object.assign(Object.assign({},vn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:E,prefixCls:p,suffix:b});return h&&(M.size=h),u__namespace.createElement(fm,Object.assign({ref:Sn(t,a)},M))}),Sk=Ck,wk=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},$k=Ut("Wave",e=>[wk(e)]);var Za=Z({},Qv__namespace),xk=Za.version,Ek=Za.render,Ik=Za.unmountComponentAtNode,vc;try{var Ok=Number((xk||"").split(".")[0]);Ok>=18&&(vc=Za.createRoot);}catch{}function Ag(e){var t=Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e);}var vs="__rc_react_root__";function Pk(e,t){Ag(!0);var n=t[vs]||vc(t);Ag(!1),n.render(e),t[vs]=n;}function Mk(e,t){Ek(e,t);}function _k(e,t){if(vc){Pk(e,t);return}Mk(e,t);}function Rk(e){return Sd.apply(this,arguments)}function Sd(){return Sd=Fb(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[vs])===null||o===void 0||o.unmount(),delete t[vs];}));case 1:case"end":return r.stop()}},e)})),Sd.apply(this,arguments)}function Tk(e){Ik(e);}function Nk(e){return wd.apply(this,arguments)}function wd(){return wd=Fb(Ia().mark(function e(t){return Ia().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(vc===void 0){r.next=2;break}return r.abrupt("return",Rk(t));case 2:Tk(t);case 3:case"end":return r.stop()}},e)})),wd.apply(this,arguments)}function kk(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function hu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&kk(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Lk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return hu(t)?t:hu(n)?n:hu(r)?r:null}function gu(e){return Number.isNaN(e)?0:e}const Ak=e=>{const{className:t,target:n}=e,r=u__namespace.useRef(null),[o,i]=u__namespace.useState(null),[a,l]=u__namespace.useState([]),[s,c]=u__namespace.useState(0),[d,f]=u__namespace.useState(0),[m,h]=u__namespace.useState(0),[g,v]=u__namespace.useState(0),[p,y]=u__namespace.useState(!1),b={left:s,top:d,width:m,height:g,borderRadius:a.map(M=>`${M}px`).join(" ")};o&&(b["--wave-color"]=o);function E(){const M=getComputedStyle(n);i(Lk(n));const w=M.position==="static",{borderLeftWidth:x,borderTopWidth:S}=M;c(w?n.offsetLeft:gu(-parseFloat(x))),f(w?n.offsetTop:gu(-parseFloat(S))),h(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:C,borderTopRightRadius:$,borderBottomLeftRadius:I,borderBottomRightRadius:L}=M;l([C,$,L,I].map(R=>gu(parseFloat(R))));}return u__namespace.useEffect(()=>{if(n){const M=It(()=>{E(),y(!0);});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(E),w.observe(n)),()=>{It.cancel(M),w==null||w.disconnect();}}},[]),p?u__namespace.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,w)=>{var x;if(w.deadline||w.propertyName==="opacity"){const S=(x=r.current)===null||x===void 0?void 0:x.parentElement;Nk(S).then(()=>{S==null||S.remove();});}return !1}},M=>{let{className:w}=M;return u__namespace.createElement("div",{ref:r,className:W(t,w),style:b})}):null};function Dk(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),_k(u__namespace.createElement(Ak,{target:e,className:t}),n);}function zk(e,t){function n(){const r=e.current;Dk(r,t);}return n}const jk=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=u.useContext(ot),o=u.useRef(null),i=r("wave"),[,a]=$k(i),l=zk(o,W(i,a));if(u.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const d=f=>{f.target.tagName==="INPUT"||!zf(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||l();};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0);}},[n]),!u.isValidElement(t))return t??null;const s=No(t)?Sn(t.ref,o):o;return Tn(t,{ref:s})},mm=jk,Bk=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=W(`${i}-icon`,n);return u.createElement("span",{ref:t,className:a,style:r},o)}),ty=Bk,Dg=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=W(`${n}-loading-icon`,r);return u.createElement(ty,{prefixCls:n,className:a,style:o,ref:t},u.createElement(rm,{className:i}))}),vu=()=>({width:0,opacity:0,transform:"scale(0)"}),pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hk=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?u.createElement(Dg,{prefixCls:t,className:o,style:i}):u.createElement(ro,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:vu,onAppearActive:pu,onEnterStart:vu,onEnterActive:pu,onLeaveStart:pu,onLeaveActive:vu},(l,s)=>{let{className:c,style:d}=l;return u.createElement(Dg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:s,iconClassName:c})})},Fk=Hk;var Wk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ny=u__namespace.createContext(void 0),Vk=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(ot),{prefixCls:r,size:o,className:i}=e,a=Wk(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=eo();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=W(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return u__namespace.createElement(ny.Provider,{value:o},u__namespace.createElement("div",Object.assign({},a,{className:d})))},Kk=Vk,zg=/^[\u4e00-\u9fa5]{2}$/,$d=zg.test.bind(zg);function Gk(e){return typeof e=="string"}function bu(e){return e==="text"||e==="link"}function Uk(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Gk(e.type)&&$d(e.props.children)?Tn(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?$d(e)?u.createElement("span",null,e.split("").join(n)):u.createElement("span",null,e):e0(e)?u.createElement("span",null,e):e}function Xk(e,t){let n=!1;const r=[];return u.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`;}else r.push(o);n=a;}),u.Children.map(r,o=>Uk(o,t))}function Yk(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function qk(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Zk(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},Yk(e,t)),qk(e.componentCls,t))}}const jg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Qk=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},jg(`${t}-primary`,o),jg(`${t}-danger`,i)]}},Jk=Qk,e3=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Io(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},kr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),t3=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),n3=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),r3=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_a=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},kr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),hm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},r3(e))}),ry=e=>Object.assign({},hm(e)),ps=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),oy=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ry(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),kr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_a(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},kr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_a(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hm(e))}),o3=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ry(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),kr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_a(e.componentCls,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({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},kr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_a(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hm(e))}),i3=e=>Object.assign(Object.assign({},oy(e)),{borderStyle:"dashed"}),a3=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},kr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),ps(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},kr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ps(e))}),l3=e=>Object.assign(Object.assign(Object.assign({},kr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ps(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ps(e)),kr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),s3=e=>{const{componentCls:t}=e;return {[`${t}-default`]:oy(e),[`${t}-primary`]:o3(e),[`${t}-dashed`]:i3(e),[`${t}-link`]:a3(e),[`${t}-text`]:l3(e),[`${t}-ghost`]:_a(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},gm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,d=Math.max(0,(r-o*i)/2-a),f=s-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${d}px ${f}px`,borderRadius:l,[`&${m}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:t3(e)},{[`${n}${n}-round${t}`]:n3(e)}]},c3=e=>gm(e),u3=e=>{const t=mt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return gm(t,`${e.componentCls}-sm`)},d3=e=>{const t=mt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return gm(t,`${e.componentCls}-lg`)},f3=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},m3=Ut("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=mt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [e3(r),u3(r),c3(r),d3(r),f3(r),s3(r),Jk(r),uc(e),Zk(e)]});var h3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function iy(e){return e==="danger"?{danger:!0}:{type:e}}function g3(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const v3=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:c,styles:d,disabled:f,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:y=!1,htmlType:b="button",classNames:E,style:M={}}=e,w=h3(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:S,direction:C,button:$}=u.useContext(ot),I=x("btn",i),[L,R]=m3(I),O=u.useContext(br),P=f??O,_=u.useContext(ny),k=u.useMemo(()=>g3(o),[o]),[N,A]=u.useState(k.loading),[z,F]=u.useState(!1),j=Sn(t,u.createRef()),H=u.Children.count(g)===1&&!v&&!bu(a);u.useEffect(()=>{let ge=null;k.delay>0?ge=setTimeout(()=>{ge=null,A(!0);},k.delay):A(k.loading);function be(){ge&&(clearTimeout(ge),ge=null);}return be},[k]),u.useEffect(()=>{if(!j||!j.current||S===!1)return;const ge=j.current.textContent;H&&$d(ge)?z||F(!0):z&&F(!1);},[j]);const B=ge=>{const{onClick:be}=e;if(N||P){ge.preventDefault();return}be==null||be(ge);},X=S!==!1,{compactSize:J,compactItemClassnames:Q}=Li(I,C),K={large:"lg",small:"sm",middle:void 0},Y=kn(ge=>{var be,Re;return (Re=(be=c??J)!==null&&be!==void 0?be:_)!==null&&Re!==void 0?Re:ge}),re=Y&&K[Y]||"",ue=N?"loading":v,se=vn(w,["navigate"]),ee=W(I,R,{[`${I}-${s}`]:s!=="default"&&s,[`${I}-${a}`]:a,[`${I}-${re}`]:re,[`${I}-icon-only`]:!g&&g!==0&&!!ue,[`${I}-background-ghost`]:p&&!bu(a),[`${I}-loading`]:N,[`${I}-two-chinese-chars`]:z&&X&&!N,[`${I}-block`]:y,[`${I}-dangerous`]:!!l,[`${I}-rtl`]:C==="rtl"},Q,m,h,$==null?void 0:$.className),ae=Object.assign(Object.assign({},$==null?void 0:$.style),M),q=W(E==null?void 0:E.icon,(n=$==null?void 0:$.classNames)===null||n===void 0?void 0:n.icon),te=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=$==null?void 0:$.styles)===null||r===void 0?void 0:r.icon)||{}),ce=v&&!N?u.createElement(ty,{prefixCls:I,className:q,style:te},v):u.createElement(Fk,{existIcon:!!v,prefixCls:I,loading:!!N}),fe=g||g===0?Xk(g,H&&X):null;if(se.href!==void 0)return L(u.createElement("a",Object.assign({},se,{className:W(ee,{[`${I}-disabled`]:P}),style:ae,onClick:B,ref:j}),ce,fe));let he=u.createElement("button",Object.assign({},w,{type:b,className:ee,style:ae,onClick:B,disabled:P,ref:j}),ce,fe);return bu(a)||(he=u.createElement(mm,{disabled:!!N},he)),L(he)},vm=u.forwardRef(v3);vm.Group=Kk;vm.__ANT_BUTTON=!0;const Jt=vm;var p3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const b3=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:g}=e,v=p3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:y}=u__namespace.useContext(ot),b=u__namespace.useRef(!1),E=p("input-search",n),M=p("input",r),{compactSize:w}=Li(E,y),x=kn(F=>{var V;return (V=i??w)!==null&&V!==void 0?V:F}),S=u__namespace.useRef(null),C=F=>{F&&F.target&&F.type==="click"&&f&&f(F.target.value,F),m&&m(F);},$=F=>{var V;document.activeElement===((V=S.current)===null||V===void 0?void 0:V.input)&&F.preventDefault();},I=F=>{var V,j;f&&f((j=(V=S.current)===null||V===void 0?void 0:V.input)===null||j===void 0?void 0:j.value,F);},L=F=>{b.current||c||I(F);},R=typeof l=="boolean"?u__namespace.createElement(om,null):null,O=`${E}-button`;let P;const _=l||{},k=_.type&&_.type.__ANT_BUTTON===!0;k||_.type==="button"?P=Tn(_,Object.assign({onMouseDown:$,onClick:F=>{var V,j;(j=(V=_==null?void 0:_.props)===null||V===void 0?void 0:V.onClick)===null||j===void 0||j.call(V,F),I(F);},key:"enterButton"},k?{className:O,size:x}:{})):P=u__namespace.createElement(Jt,{className:O,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:$,onClick:I,loading:c,icon:R},l),s&&(P=[P,Tn(s,{key:"addonAfter"})]);const N=W(E,{[`${E}-rtl`]:y==="rtl",[`${E}-${x}`]:!!x,[`${E}-with-button`]:!!l},o),A=F=>{b.current=!0,h==null||h(F);},z=F=>{b.current=!1,g==null||g(F);};return u__namespace.createElement(fm,Object.assign({ref:Sn(S,t),onPressEnter:L},v,{size:x,onCompositionStart:A,onCompositionEnd:z,prefixCls:M,addonAfter:P,suffix:a,onChange:C,className:N,disabled:d}))}),y3=b3;var C3=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,S3=["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"],yu={},zn;function w3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&yu[n])return yu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=S3.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(yu[n]=s),s}function $3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;zn||(zn=document.createElement("textarea"),zn.setAttribute("tab-index","-1"),zn.setAttribute("aria-hidden","true"),document.body.appendChild(zn)),e.getAttribute("wrap")?zn.setAttribute("wrap",e.getAttribute("wrap")):zn.removeAttribute("wrap");var o=w3(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;zn.setAttribute("style","".concat(s,";").concat(C3)),zn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,m=zn.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){zn.value=" ";var h=zn.scrollHeight-i;n!==null&&(c=h*n,l==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(d=h*r,l==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m));}var g={height:m,overflowY:f,resize:"none"};return c&&(g.minHeight=c),d&&(g.maxHeight=d),g}var x3=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Cu=0,Su=1,wu=2,E3=u__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Qe(n,x3),h=zt(o,{value:i,postState:function(B){return B??""}}),g=G(h,2),v=g[0],p=g[1],y=function(B){p(B.target.value),f==null||f(B);},b=u__namespace.useRef();u__namespace.useImperativeHandle(t,function(){return {textArea:b.current}});var E=u__namespace.useMemo(function(){return a&&dt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),M=G(E,2),w=M[0],x=M[1],S=!!a,C=function(){try{if(document.activeElement===b.current){var B=b.current,X=B.selectionStart,J=B.selectionEnd,Q=B.scrollTop;b.current.setSelectionRange(X,J),b.current.scrollTop=Q;}}catch{}},$=u__namespace.useState(wu),I=G($,2),L=I[0],R=I[1],O=u__namespace.useState(),P=G(O,2),_=P[0],k=P[1],N=function(){R(Cu);};Ft(function(){S&&N();},[i,w,x,S]),Ft(function(){if(L===Cu)R(Su);else if(L===Su){var H=$3(b.current,!1,w,x);R(wu),k(H);}else C();},[L]);var A=u__namespace.useRef(),z=function(){It.cancel(A.current);},F=function(B){L===wu&&(l==null||l(B),a&&(z(),A.current=It(function(){N();})));};u__namespace.useEffect(function(){return z},[]);var V=S?_:null,j=Z(Z({},c),V);return (L===Cu||L===Su)&&(j.overflowY="hidden",j.overflowX="hidden"),u__namespace.createElement(Nr,{onResize:F,disabled:!(a||l)},u__namespace.createElement("textarea",Ce({},m,{ref:b,style:j,className:W(r,s,U({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:y})))}),I3=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ay(e,t){return Ge(e||"").slice(0,t).join("")}function Bg(e,t,n,r){var o=n;return e?o=ay(n,r):Ge(t||"").length<n.length&&Ge(n||"").length>r&&(o=t),o}var O3=u.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.classes,p=e.showCount,y=e.className,b=e.style,E=e.disabled,M=e.hidden,w=e.classNames,x=e.styles,S=e.onResize,C=Qe(e,I3),$=zt(r,{value:o,defaultValue:r}),I=G($,2),L=I[0],R=I[1],O=u.useRef(null),P=u.useState(!1),_=G(P,2),k=_[0],N=_[1],A=u.useState(!1),z=G(A,2),F=z[0],V=z[1],j=u.useRef(),H=u.useRef(0),B=u.useState(null),X=G(B,2),J=X[0],Q=X[1],K=function(){O.current.textArea.focus();};u.useImperativeHandle(t,function(){return {resizableTextArea:O.current,focus:K,blur:function(){O.current.textArea.blur();}}}),u.useEffect(function(){N(function(De){return !E&&De});},[E]);var Y=Number(c)>0,re=function($e){V(!0),j.current=L,H.current=$e.currentTarget.selectionStart,d==null||d($e);},ue=function($e){V(!1);var we=$e.currentTarget.value;if(Y){var Te,Je=H.current>=c+1||H.current===((Te=j.current)===null||Te===void 0?void 0:Te.length);we=Bg(Je,j.current,we,c);}we!==L&&(R(we),ua($e.currentTarget,$e,l,we)),f==null||f($e);},se=function($e){var we=$e.target.value;if(!F&&Y){var Te=$e.target.selectionStart>=c+1||$e.target.selectionStart===we.length||!$e.target.selectionStart;we=Bg(Te,L,we,c);}R(we),ua($e.currentTarget,$e,l,we);},ee=function($e){var we=C.onPressEnter,Te=C.onKeyDown;$e.key==="Enter"&&we&&we($e),Te==null||Te($e);},ae=function($e){N(!0),i==null||i($e);},q=function($e){N(!1),a==null||a($e);},te=function($e){R(""),K(),ua(O.current.textArea,$e,l);},ce=yd(L);!F&&Y&&o==null&&(ce=ay(ce,c));var fe=m,he;if(p){var ge=Ge(ce).length;dt(p)==="object"?he=p.formatter({value:ce,count:ge,maxLength:c}):he="".concat(ge).concat(Y?" / ".concat(c):""),fe=u.createElement(u.Fragment,null,fe,u.createElement("span",{className:W("".concat(g,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},he));}var be=function($e){S==null||S($e),O.current.textArea.style.height&&Q(!0);},Re=u.createElement(lm,{value:ce,allowClear:s,handleReset:te,suffix:fe,prefixCls:g,classes:{affixWrapper:W(v==null?void 0:v.affixWrapper,(n={},U(n,"".concat(g,"-show-count"),p),U(n,"".concat(g,"-textarea-allow-clear"),s),n))},disabled:E,focused:k,className:y,style:Z(Z({},b),J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof he=="string"?he:void 0}},hidden:M,inputElement:u.createElement(E3,Ce({},C,{onKeyDown:ee,onChange:se,onFocus:ae,onBlur:q,onCompositionStart:re,onCompositionEnd:ue,className:w==null?void 0:w.textarea,style:Z(Z({},x==null?void 0:x.textarea),{},{resize:b==null?void 0:b.resize}),disabled:E,prefixCls:g,onResize:be,ref:O}))});return Re}),P3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const M3=u.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:l,showCount:s,classNames:c}=e,d=P3(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:f,direction:m}=u__namespace.useContext(ot),h=kn(o),g=u__namespace.useContext(br),v=i??g,{status:p,hasFeedback:y,feedbackIcon:b}=u__namespace.useContext(Vn),E=Ka(p,a),M=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>{var $;return {resizableTextArea:($=M.current)===null||$===void 0?void 0:$.resizableTextArea,focus:I=>{var L,R;lk((R=(L=M.current)===null||L===void 0?void 0:L.resizableTextArea)===null||R===void 0?void 0:R.textArea,I);},blur:()=>{var I;return (I=M.current)===null||I===void 0?void 0:I.blur()}}});const w=f("input",n);let x;typeof l=="object"&&(l!=null&&l.clearIcon)?x=l:l&&(x={clearIcon:u__namespace.createElement(tm,null)});const[S,C]=dm(w);return S(u__namespace.createElement(O3,Object.assign({},d,{disabled:v,allowClear:x,classes:{affixWrapper:W(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:m==="rtl",[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:h==="small",[`${w}-affix-wrapper-lg`]:h==="large",[`${w}-textarea-show-count`]:s},Zn(`${w}-affix-wrapper`,E),C)},classNames:Object.assign(Object.assign({},c),{textarea:W({[`${w}-borderless`]:!r,[`${w}-sm`]:h==="small",[`${w}-lg`]:h==="large"},Zn(w,E),C,c==null?void 0:c.textarea)}),prefixCls:w,suffix:y&&u__namespace.createElement("span",{className:`${w}-textarea-suffix`},b),showCount:s,ref:M})))}),_3=M3,Qa=fm;Qa.Group=ok;Qa.Search=y3;Qa.TextArea=_3;Qa.Password=Sk;const ly=Qa,R3=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Hg=e=>R3.test(`#${e}`),T3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=u.useState(n==null?void 0:n.toHex());u.useEffect(()=>{const s=n==null?void 0:n.toHex();Hg(s)&&n&&a(Bl(s));},[n]);const l=s=>{const c=s.target.value;a(Bl(c)),Hg(Bl(c,!0))&&(r==null||r(gn(c)));};return u.createElement(ly,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:l,size:"small"})},N3=T3,k3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=(s,c)=>{const d=i.toHsb();d[c]=c==="h"?s:(s||0)/100;const f=gn(d);n||a(f),r==null||r(f);};return u.createElement("div",{className:o},u.createElement(wo,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:s=>Hl(s||0).toString(),onChange:s=>l(Number(s),"h")}),u.createElement(wo,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:s=>`${Hl(s||0)}%`,onChange:s=>l(Number(s),"s")}),u.createElement(wo,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:s=>`${Hl(s||0)}%`,onChange:s=>l(Number(s),"b")}))},L3=k3,A3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=u.useState(gn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const l=(s,c)=>{const d=i.toRgb();d[c]=s||0;const f=gn(d);n||a(f),r==null||r(f);};return u.createElement("div",{className:o},u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:s=>l(Number(s),"r")}),u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:s=>l(Number(s),"g")}),u.createElement(wo,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:s=>l(Number(s),"b")}))},D3=A3,z3=[Pr.hex,Pr.hsb,Pr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),j3=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,l]=zt(Pr.hex,{value:n,onChange:o}),s=`${t}-input`,c=f=>{l(f);},d=u.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(a){case Pr.hsb:return u.createElement(L3,Object.assign({},f));case Pr.rgb:return u.createElement(D3,Object.assign({},f));case Pr.hex:default:return u.createElement(N3,Object.assign({},f))}},[a,t,r,i]);return u.createElement("div",{className:`${s}-container`},u.createElement(Xa,{value:a,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:z3}),u.createElement("div",{className:s},d),u.createElement(nk,{prefixCls:t,value:r,onChange:i}))},B3=j3;var H3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const F3=()=>{const e=u.useContext(p0),{prefixCls:t,colorCleared:n,allowClear:r,value:o,onChange:i,onClear:a,onChangeComplete:l}=e,s=H3(e,["prefixCls","colorCleared","allowClear","value","onChange","onClear","onChangeComplete"]);return u.createElement(u.Fragment,null,r&&u.createElement(C0,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:c=>{i==null||i(c),a==null||a();}},s)),u.createElement(tR,{prefixCls:t,value:o==null?void 0:o.toHsb(),onChange:(c,d)=>i==null?void 0:i(c,d,!0),onChangeComplete:l}),u.createElement(B3,Object.assign({value:o,onChange:i,prefixCls:t},s)))},Fg=F3;var W3={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 V3=W3;var K3=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:V3}))};const Si=u__namespace.forwardRef(K3);var sy=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,d=u.useState(s||o),f=G(d,2),m=f[0],h=f[1];return u.useEffect(function(){(o||s)&&h(!0);},[o,s]),m?u.createElement("div",{ref:t,className:W("".concat(r,"-content"),(n={},U(n,"".concat(r,"-content-active"),s),U(n,"".concat(r,"-content-inactive"),!s),n),i),style:a,role:c},u.createElement("div",{className:"".concat(r,"-content-box")},l)):null});sy.displayName="PanelContent";var G3=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],cy=u.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,d=e.className,f=e.prefixCls,m=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,y=e.expandIcon,b=e.openMotion,E=e.destroyInactivePanel,M=e.children,w=Qe(e,G3),x=m==="disabled",S=m==="header",C=m==="icon",$=v!=null&&typeof v!="boolean",I=function(){s==null||s(g);},L=function(N){(N.key==="Enter"||N.keyCode===ie.ENTER||N.which===ie.ENTER)&&I();},R=typeof y=="function"?y(e):u.createElement("i",{className:"arrow"});R&&(R=u.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(m)?I:void 0},R));var O=W((n={},U(n,"".concat(f,"-item"),!0),U(n,"".concat(f,"-item-active"),l),U(n,"".concat(f,"-item-disabled"),x),n),d),P=W((r={},U(r,"".concat(f,"-header"),!0),U(r,"headerClass",a),U(r,"".concat(f,"-header-collapsible-only"),S),U(r,"".concat(f,"-icon-collapsible-only"),C),r)),_={className:P,"aria-expanded":l,"aria-disabled":x,onKeyDown:L};return !S&&!C&&(_.onClick=I,_.role=h?"tab":"button",_.tabIndex=x?-1:0),u.createElement("div",Ce({},w,{ref:t,className:O}),u.createElement("div",_,i&&R,u.createElement("span",{className:"".concat(f,"-header-text"),onClick:m==="header"?I:void 0},p),$&&u.createElement("div",{className:"".concat(f,"-extra")},v)),u.createElement(ro,Ce({visible:l,leavedClassName:"".concat(f,"-content-hidden")},b,{forceRender:c,removeOnLeave:E}),function(k,N){var A=k.className,z=k.style;return u.createElement(sy,{ref:N,prefixCls:f,className:A,style:z,isActive:l,forceRender:c,role:h?"tabpanel":void 0},M)}))}),U3=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],X3=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var h=f.children,g=f.label,v=f.key,p=f.collapsible,y=f.onItemClick,b=f.destroyInactivePanel,E=Qe(f,U3),M=String(v??m),w=p??i,x=b??a,S=function(I){w!=="disabled"&&(l(I),y==null||y(I));},C=!1;return o?C=s[0]===M:C=s.indexOf(M)>-1,u.createElement(cy,Ce({},E,{prefixCls:r,key:M,panelKey:M,isActive:C,accordion:o,openMotion:c,expandIcon:d,header:g,collapsible:w,onItemClick:S,destroyInactivePanel:x}),h)})},Y3=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,s=r.onItemClick,c=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,y=h.collapsible,b=h.onItemClick,E=!1;i?E=c[0]===m:E=c.indexOf(m)>-1;var M=y??a,w=function(C){M!=="disabled"&&(s(C),b==null||b(C));},x={key:m,panelKey:m,header:g,headerClass:v,isActive:E,prefixCls:o,destroyInactivePanel:p??l,openMotion:d,accordion:i,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:M};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(S){typeof x[S]>"u"&&delete x[S];}),u.cloneElement(t,x))};function q3(e,t,n){return Array.isArray(e)?X3(e,n):Qn(t).map(function(r,o){return Y3(r,o,n)})}function Z3(e){var t=e;if(!Array.isArray(t)){var n=dt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var Q3=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,l=e.accordion,s=e.className,c=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,y=W(r,s),b=zt([],{value:h,onChange:function($){return v==null?void 0:v($)},defaultValue:g,postState:Z3}),E=G(b,2),M=E[0],w=E[1],x=function($){return w(function(){if(l)return M[0]===$?[]:[$];var I=M.indexOf($),L=I>-1;return L?M.filter(function(R){return R!==$}):[].concat(Ge(M),[$])})};pr(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=q3(p,c,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:i,onItemClick:x,activeKey:M});return u.createElement("div",{ref:t,className:y,style:a,role:l?"tablist":void 0},S)});const pm=Object.assign(Q3,{Panel:cy});pm.Panel;const J3=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(ot),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=W({[`${a}-no-arrow`]:!i},o);return u__namespace.createElement(pm.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}),e4=J3,t4=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:d,lineType:f,colorBorder:m,colorText:h,colorTextHeading:g,colorTextDisabled:v,fontSize:p,fontSizeLG:y,lineHeight:b,marginSM:E,paddingSM:M,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C}=e,$=`${d}px ${f} ${m}`;return {[t]:Object.assign(Object.assign({},kt(e)),{backgroundColor:i,border:$,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:M,color:g,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*b,display:"flex",alignItems:"center",paddingInlineEnd:E,marginInlineStart:r-M},[`${t}-arrow`]:Object.assign(Object.assign({},To()),{fontSize:C,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:M-x}},[`> ${t}-content > ${t}-content-box`]:{padding:M}}},"&-large":{[`> ${t}-item`]:{fontSize:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:y*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:E}}}}})}},n4=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},r4=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},o4=e=>{const{componentCls:t,paddingSM:n}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},i4=Ut("Collapse",e=>{const t=mt(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [t4(t),r4(t),o4(t),n4(t),r0(t)]}),a4=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=u__namespace.useContext(ot),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:d,size:f,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=kn($=>{var I;return (I=f??$)!==null&&I!==void 0?I:"middle"}),p=n("collapse",i),y=n(),[b,E]=i4(p),M=u__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),w=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const I=g?g($):u__namespace.createElement(Si,{rotate:$.isActive?90:void 0});return Tn(I,()=>({className:W(I.props.className,`${p}-arrow`)}))},x=W(`${p}-icon-position-${M}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!d,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,a,l,E),S=Object.assign(Object.assign({},Wb(y)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),C=u__namespace.useMemo(()=>h?Qn(h).map(($,I)=>{var L,R;if(!((L=$.props)===null||L===void 0)&&L.disabled){const O=(R=$.key)!==null&&R!==void 0?R:String(I),{disabled:P,collapsible:_}=$.props,k=Object.assign(Object.assign({},vn($.props,["disabled"])),{key:O,collapsible:_??(P?"disabled":void 0)});return Tn($,k)}return $}):null,[h]);return b(u__namespace.createElement(pm,Object.assign({ref:t,openMotion:S},vn(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:x,style:Object.assign(Object.assign({},o==null?void 0:o.style),s)}),C))}),l4=Object.assign(a4,{Panel:e4}),$u=e=>e.map(t=>(t.colors=t.colors.map(gn),t)),s4=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new fs(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},c4=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Ni("ColorPicker"),{token:{colorBgElevated:a}}=yi.useToken(),[l]=zt($u(n),{value:$u(n),postState:$u}),s=`${t}-presets`,c=u.useMemo(()=>l.map(m=>`panel-${m.label}`),[l]),d=m=>{o==null||o(m);},f=l.map(m=>{var h;return {key:`panel-${m.label}`,label:u.createElement("div",{className:`${s}-label`},m==null?void 0:m.label),children:u.createElement("div",{className:`${s}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map(g=>u.createElement(Xf,{key:`preset-${g.toHexString()}`,color:gn(g).toRgbString(),prefixCls:t,className:W(`${s}-color`,{[`${s}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:s4(g,a)}),onClick:()=>d(g)})):u.createElement("span",{className:`${s}-empty`},i.presetEmpty))}});return u.createElement("div",{className:s},u.createElement(l4,{defaultActiveKey:c,ghost:!0,items:f}))},u4=c4,d4=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=u.useContext(b0);return Array.isArray(n)?u.createElement(u4,{value:t,presets:n,prefixCls:e,onChange:r}):null},Wg=d4;var f4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const m4=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,l=f4(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),s=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},l),d=u.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),f=u.createElement(u.Fragment,null,u.createElement(Fg,null),Array.isArray(n)&&u.createElement(V_,{className:`${s}-divider`}),u.createElement(Wg,null));return u.createElement(nR,{value:c},u.createElement(rR,{value:d},u.createElement("div",{className:s},typeof r=="function"?r(f,{components:{Picker:Fg,Presets:Wg}}):f)))},h4=m4;var g4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v4=u.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,format:l,className:s,showText:c}=e,d=g4(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),f=`${r}-trigger`,m=u.useMemo(()=>i?u.createElement(C0,{prefixCls:r}):u.createElement(Xf,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=y0(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return u.createElement("div",Object.assign({ref:t,className:W(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:a})},d),m,c&&u.createElement("div",{className:`${f}-text`},g()))}),p4=v4;function Vg(e){return e!==void 0}const b4=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=u.useState(()=>{let a;return Vg(r)?a=r:Vg(n)?a=n:a=e,gn(a||"")});return u.useEffect(()=>{r&&i(gn(r));},[r]),[o,i]},y4=b4,uy=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),C4=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},uy("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},Kg=C4,S4=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:d+a,fontSize:r,lineHeight:`${s}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${f}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${s-2*g}px`},[`${n}-input-prefix`]:{color:m}}}}}},w4=S4,$4=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:f}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${s}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`,"&-sm":{width:d,height:d}},[`${t}-slider`]:{borderRadius:f/2,[`${t}-palette`]:{height:f},[`${t}-gradient`]:{borderRadius:f/2,boxShadow:o},"&-alpha":uy(`${f}px`,e.colorFillSecondary),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}}},x4=$4,E4=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:h,paddingXS:g}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*s,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:d,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},I4=E4,xd=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),O4=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Gg=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,red6:l}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${i}px solid ${a}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:l}})}},P4=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},xd(mt(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},xd(mt(e,{controlOutline:l})))}}},M4=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:d}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:l,[`${t}-color-block`]:{width:i,height:i,borderRadius:s}}}},_4=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorText:l,colorBgContainerDisabled:s,borderRadius:c,marginXS:d,marginSM:f,controlHeight:m,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:y,colorBorder:b,paddingXXS:E,fontSize:M}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${f}px 0 ${d}px`},[`${t}-panel`]:Object.assign({},x4(e))},Kg(e,p)),w4(e)),I4(e)),Gg(e,v,{marginInlineStart:"auto",marginBottom:d})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${y}px solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,padding:E-y,[`${t}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:d-(E-y),fontSize:M,color:l},"&-active":Object.assign(Object.assign({},xd(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:a}}},Gg(e,h)),Kg(e,h)),P4(e)),M4(e))},O4(e))}]},R4=Ut("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=mt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [_4(o)]}),bm=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:l="click",open:s,disabled:c,placement:d="bottomLeft",arrow:f=!0,panelRender:m,showText:h,style:g,className:v,size:p,rootClassName:y,styles:b,onFormatChange:E,onChange:M,onClear:w,onOpenChange:x,onChangeComplete:S,getPopupContainer:C,autoAdjustOverflow:$=!0,destroyTooltipOnHide:I}=e,{getPrefixCls:L,direction:R,colorPicker:O}=u.useContext(ot),{token:P}=yi.useToken(),[_,k]=y4(P.colorPrimary,{value:t,defaultValue:n}),[N,A]=zt(!1,{value:s,postState:he=>!c&&he,onChange:x}),[z,F]=zt(r,{value:r,onChange:E}),[V,j]=u.useState(!1),H=L("color-picker",iR),{status:B}=u.useContext(Vn),X=kn(p),[J,Q]=R4(H),K={[`${H}-rtl`]:R},Y=W(y,K),re=W(Zn(H,B),{[`${H}-sm`]:X==="small",[`${H}-lg`]:X==="large"},O==null?void 0:O.className,Y,v,Q),ue=W(H,K),se=u.useRef(!0),ee=(he,ge,be)=>{let Re=gn(he);if(V||(t===null||!t&&n===null)){j(!1);const $e=Re.toHsb();_.toHsb().a===0&&ge!=="alpha"&&($e.a=1,Re=gn($e));}be&&(se.current=!1),k(Re),M==null||M(Re,Re.toHexString());},ae=()=>{j(!0),w==null||w();},q=he=>{se.current=!0,S==null||S(gn(he));},te={open:N,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:C,autoAdjustOverflow:$,destroyTooltipOnHide:I},ce={prefixCls:H,color:_,allowClear:o,colorCleared:V,disabled:c,presets:i,panelRender:m,format:z,onFormatChange:F,onChangeComplete:q},fe=Object.assign(Object.assign({},O==null?void 0:O.style),g);return J(u.createElement(Uf,Object.assign({style:b==null?void 0:b.popup,overlayInnerStyle:b==null?void 0:b.popupOverlayInner,onOpenChange:he=>{se.current&&A(he);},content:u.createElement(Oa,{override:!0,status:!0},u.createElement(h4,Object.assign({},ce,{onChange:ee,onChangeComplete:q,onClear:ae}))),overlayClassName:ue},te),a||u.createElement(p4,{open:N,className:re,style:fe,color:t?gn(t):_,prefixCls:H,disabled:c,colorCleared:V,showText:h,format:z})))},T4=Df(bm,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));bm._InternalPanelDoNotUseOrYouWillBeFired=T4;const N4=bm;var k4=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],dy=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,s=e.disabled,c=e.defaultChecked,d=c===void 0?!1:c,f=e.type,m=f===void 0?"checkbox":f,h=e.title,g=e.onChange,v=Qe(e,k4),p=u.useRef(null),y=zt(d,{value:l}),b=G(y,2),E=b[0],M=b[1];u.useImperativeHandle(t,function(){return {focus:function(){var C;(C=p.current)===null||C===void 0||C.focus();},blur:function(){var C;(C=p.current)===null||C===void 0||C.blur();},input:p.current}});var w=W(o,i,(n={},U(n,"".concat(o,"-checked"),E),U(n,"".concat(o,"-disabled"),s),n)),x=function(C){s||("checked"in e||M(C.target.checked),g==null||g({target:Z(Z({},e),{},{type:m,checked:C.target.checked}),stopPropagation:function(){C.stopPropagation();},preventDefault:function(){C.preventDefault();},nativeEvent:C.nativeEvent}));};return u__namespace.createElement("span",{className:w,title:h,style:a},u__namespace.createElement("input",Ce({},v,{className:"".concat(o,"-input"),ref:p,onChange:x,disabled:s,checked:!!E,type:m})),u__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const L4=u.createContext(null),fy=L4,A4=new _t("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),D4=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Eo(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:A4,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function z4(e,t){const n=mt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [D4(n)]}const my=Ut("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [z4(n,e)]});var j4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B4=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,h=j4(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=u__namespace.useContext(ot),y=u__namespace.useContext(fy),{isFormItemInput:b}=u__namespace.useContext(Vn),E=u__namespace.useContext(br),M=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:E,w=u__namespace.useRef(h.value);u__namespace.useEffect(()=>{y==null||y.registerValue(h.value);},[]),u__namespace.useEffect(()=>{if(!f)return h.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(h.value),w.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]);const x=g("checkbox",r),[S,C]=my(x),$=Object.assign({},h);y&&!f&&($.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),y.toggleOption&&y.toggleOption({label:a,value:h.value});},$.name=y.name,$.checked=y.value.includes(h.value));const I=W(`${x}-wrapper`,{[`${x}-rtl`]:v==="rtl",[`${x}-wrapper-checked`]:$.checked,[`${x}-wrapper-disabled`]:M,[`${x}-wrapper-in-form-item`]:b},p==null?void 0:p.className,o,i,C),L=W({[`${x}-indeterminate`]:l},C),R=l?"mixed":void 0;return S(u__namespace.createElement("label",{className:I,style:Object.assign(Object.assign({},p==null?void 0:p.style),s),onMouseEnter:c,onMouseLeave:d},u__namespace.createElement(dy,Object.assign({"aria-checked":R},$,{prefixCls:x,className:L,disabled:M,ref:t})),a!==void 0&&u__namespace.createElement("span",null,a)))},H4=u__namespace.forwardRef(B4),hy=H4;var F4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const W4=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c}=e,d=F4(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=u__namespace.useContext(ot),[h,g]=u__namespace.useState(d.value||n||[]),[v,p]=u__namespace.useState([]);u__namespace.useEffect(()=>{"value"in d&&g(d.value||[]);},[d.value]);const y=u__namespace.useMemo(()=>o.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[o]),b=O=>{p(P=>P.filter(_=>_!==O));},E=O=>{p(P=>[].concat(Ge(P),[O]));},M=O=>{const P=h.indexOf(O.value),_=Ge(h);P===-1?_.push(O.value):_.splice(P,1),"value"in d||g(_),c==null||c(_.filter(k=>v.includes(k)).sort((k,N)=>{const A=y.findIndex(F=>F.value===k),z=y.findIndex(F=>F.value===N);return A-z}));},w=f("checkbox",i),x=`${w}-group`,[S,C]=my(w),$=vn(d,["value","disabled"]),I=o.length?y.map(O=>u__namespace.createElement(hy,{prefixCls:w,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:h.includes(O.value),onChange:O.onChange,className:`${x}-item`,style:O.style,title:O.title},O.label)):r,L={toggleOption:M,value:h,disabled:d.disabled,name:d.name,registerValue:E,cancelValue:b},R=W(x,{[`${x}-rtl`]:m==="rtl"},a,l,C);return S(u__namespace.createElement("div",Object.assign({className:R,style:s},$,{ref:t}),u__namespace.createElement(fy.Provider,{value:L},I)))},V4=u__namespace.forwardRef(W4),K4=u__namespace.memo(V4),ym=hy;ym.Group=K4;ym.__ANT_CHECKBOX=!0;const Cm=ym;var G4=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(n),!0).forEach(function(r){U4(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ug(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function U4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X4(e,t){if(e==null)return {};var n=Y4(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Y4(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var q4={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function Z4(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Q4(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var gy=u.createContext(q4);gy.Provider;function Xt(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,l=r.strokeLinejoin,s=r.theme,c=r.fill,d=r.className,f=r.spin,m=X4(r,G4),h=u.useContext(gy),g=u.useMemo(Z4,[]),v=Q4(g,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:l,theme:s,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),f&&p.push(h.prefix+"-icon-spin"),d&&p.push(d),u.createElement("span",Xg(Xg({},m),{},{className:p.join(" ")}),n(v))}}const J4=Xt("people-delete",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),eL=Xt("delete",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),tL=Xt("add-two",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),nL=Xt("play-two",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),rL=Xt("unlike",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),oL=Xt("dislike-two",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),u.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),u.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),iL=Xt("copy",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),aL=Xt("efferent-four",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),lL=Xt("star",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),sL=Xt("file-cabinet",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),cL=Xt("tumblr",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),uL=Xt("concern",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),dL=Xt("iphone",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),fL=Xt("computer",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),mL=Xt("tips",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hL=Xt("return",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gL=Xt("loading-three",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vL=Xt("loading",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),pL=Xt("info",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),u.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bL=Xt("help",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),yL=Xt("distraught-face",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),CL=Xt("config",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),SL=Xt("close",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),wL={Close:SL,Config:CL,DistraughtFace:yL,Help:bL,Info:pL,Loading:vL,LoadingThree:gL,Return:hL,Tips:mL,Computer:fL,Iphone:dL,Concern:uL,Tumblr:cL,FileCabinet:sL,Star:lL,EfferentFour:aL,Copy:iL,DislikeTwo:oL,Unlike:rL,PlayTwo:nL,AddTwo:tL,Delete:eL,PeopleDelete:J4};function Dt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=wL[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var Yg=1/0,$L=17976931348623157e292;function xL(e){if(!e)return e===0?e:0;if(e=Ku(e),e===Yg||e===-Yg){var t=e<0?-1:1;return t*$L}return e===e?e:0}function EL(e){var t=xL(e),n=t%1;return t===t?n?t-n:t:0}var IL="Expected a function";function OL(e,t){var n;if(typeof t!="function")throw new TypeError(IL);return e=EL(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function PL(e){return OL(2,e)}const ML=Symbol(),Sm=Symbol(),Yi="a",Wl="w";let _L=(e,t)=>new Proxy(e,t);const Ed=Object.getPrototypeOf,Id=new WeakMap,vy=e=>e&&(Id.has(e)?Id.get(e):Ed(e)===Object.prototype||Ed(e)===Array.prototype),qg=e=>typeof e=="object"&&e!==null,RL=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0;}),Object.create(Ed(e),t)},py=e=>e[Sm]||e,by=(e,t,n,r)=>{if(!vy(e))return e;let o=r&&r.get(e);if(!o){const s=py(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(s)?[s,RL(s)]:[s],r==null||r.set(e,o);}const[i,a]=o;let l=n&&n.get(i);return l&&l[1].f===!!a||(l=((s,c)=>{const d={f:c};let f=!1;const m=(g,v)=>{if(!f){let p=d[Yi].get(s);if(p||(p={},d[Yi].set(s,p)),g===Wl)p[Wl]=!0;else {let y=p[g];y||(y=new Set,p[g]=y),y.add(v);}}},h={get:(g,v)=>v===Sm?s:(m("k",v),by(Reflect.get(g,v),d[Yi],d.c,d.t)),has:(g,v)=>v===ML?(f=!0,d[Yi].delete(s),!0):(m("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(m(Wl),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(i,!!a),l[1].p=_L(a||i,l[0]),n&&n.set(i,l)),l[1][Yi]=t,l[1].c=n,l[1].t=r,l[1].p},yy=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!qg(e)||!qg(t))return !0;const o=n.get(py(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[Wl]===!0){if(i=((a,l)=>{const s=Reflect.ownKeys(a),c=Reflect.ownKeys(l);return s.length!==c.length||s.some((d,f)=>d!==c[f])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=yy(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},TL=e=>vy(e)&&e[Sm]||null,Zg=(e,t=!0)=>{Id.set(e,t);};const xu=e=>typeof e=="object"&&e!==null,Wr=new WeakMap,El=new WeakSet,NL=(e=Object.is,t=(c,d)=>new Proxy(c,d),n=c=>xu(c)&&!El.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,d,f=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===d)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Zg(h,!0),o.set(c,[d,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),p={value:v,enumerable:!0,configurable:!0};if(El.has(v))Zg(v,!1);else if(v instanceof Promise)delete p.value,p.get=()=>f(v);else if(Wr.has(v)){const[y,b]=Wr.get(v);p.value=i(y,b(),f);}Object.defineProperty(h,g,p);}),Object.preventExtensions(h)},a=new WeakMap,l=[1,1],s=c=>{if(!xu(c))throw new Error("object required");const d=a.get(c);if(d)return d;let f=l[0];const m=new Set,h=($,I=++l[0])=>{f!==I&&(f=I,m.forEach(L=>L($,I)));};let g=l[1];const v=($=++l[1])=>(g!==$&&!m.size&&(g=$,y.forEach(([I])=>{const L=I[1]($);L>f&&(f=L);})),f),p=$=>(I,L)=>{const R=[...I];R[1]=[$,...R[1]],h(R,L);},y=new Map,b=($,I)=>{if(m.size){const L=I[3](p($));y.set($,[I,L]);}else y.set($,[I]);},E=$=>{var I;const L=y.get($);L&&(y.delete($),(I=L[1])==null||I.call(L));},M=$=>(m.add($),m.size===1&&y.forEach(([L,R],O)=>{const P=L[3](p(O));y.set(O,[L,P]);}),()=>{m.delete($),m.size===0&&y.forEach(([L,R],O)=>{R&&(R(),y.set(O,[L]));});}),w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(w,{deleteProperty($,I){const L=Reflect.get($,I);E(I);const R=Reflect.deleteProperty($,I);return R&&h(["delete",[I],L]),R},set($,I,L,R){const O=Reflect.has($,I),P=Reflect.get($,I,R);if(O&&(e(P,L)||a.has(L)&&e(P,a.get(L))))return !0;E(I),xu(L)&&(L=TL(L)||L);let _=L;if(L instanceof Promise)L.then(k=>{L.status="fulfilled",L.value=k,h(["resolve",[I],k]);}).catch(k=>{L.status="rejected",L.reason=k,h(["reject",[I],k]);});else {!Wr.has(L)&&n(L)&&(_=s(L));const k=!El.has(_)&&Wr.get(_);k&&b(I,k);}return Reflect.set($,I,_,R),h(["set",[I],L,P]),!0}});a.set(c,S);const C=[w,v,i,M];return Wr.set(S,C),Reflect.ownKeys(c).forEach($=>{const I=Object.getOwnPropertyDescriptor(c,$);"value"in I&&(S[$]=c[$],delete I.value,delete I.writable),Object.defineProperty(w,$,I);}),S})=>[s,Wr,El,e,t,n,r,o,i,a,l],[kL]=NL();function Jn(e={}){return kL(e)}function wm(e,t,n){const r=Wr.get(e);let o;const i=[],a=r[3];let l=!1;const c=a(d=>{if(i.push(d),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(i.splice(0));}));});return l=!0,()=>{l=!1,c();}}function bs(e,t){const n=Wr.get(e),[r,o,i]=n;return i(r,o(),t)}var Cy={exports:{}},Sy={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var wi=u;function LL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AL=typeof Object.is=="function"?Object.is:LL,DL=wi.useState,zL=wi.useEffect,jL=wi.useLayoutEffect,BL=wi.useDebugValue;function HL(e,t){var n=t(),r=DL({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return jL(function(){o.value=n,o.getSnapshot=t,Eu(o)&&i({inst:o});},[e,n,t]),zL(function(){return Eu(o)&&i({inst:o}),e(function(){Eu(o)&&i({inst:o});})},[e]),BL(n),n}function Eu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !AL(e,n)}catch{return !0}}function FL(e,t){return t()}var WL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?FL:HL;Sy.useSyncExternalStore=wi.useSyncExternalStore!==void 0?wi.useSyncExternalStore:WL;Cy.exports=Sy;var VL=Cy.exports;const KL=Ar(VL),{use:Qg}=u,{useSyncExternalStore:GL}=KL;const UL=new WeakMap;function nr(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const a=GL(u.useCallback(c=>{const d=wm(e,c,n);return c(),d},[e,n]),()=>{const c=bs(e,Qg);try{if(!i&&r.current&&o.current&&!yy(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>bs(e,Qg));i=!1;const l=new WeakMap;u.useEffect(()=>{r.current=a,o.current=l;});const s=u.useMemo(()=>new WeakMap,[]);return by(a,l,s,UL)}const $i=PL(()=>!!document.querySelectorAll(".bili-feed4").length),wy=()=>document.body.classList.contains("dark"),$y=Jn({value:wy()});function $m(){return nr($y).value}const xy=new MutationObserver(function(){$y.value=wy();});xy.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{xy.disconnect();});const Ey=s1();var qv;const XL=((qv=Ey.os.name)==null?void 0:qv.toLowerCase())==="mac os";var Zv;const xm=((Zv=Ey.browser.name)==null?void 0:Zv.toLowerCase())==="safari";var YL=Sp(function(e,t){var n=e.styles,r=ai([n],void 0,u__namespace.useContext(wp)),o=u__namespace.useRef();return lh(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush();}},[t]),lh(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&cf(t,r.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush();}t.insert("",r,a,!1);},[t,r.name]),null});function Bn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ai(t)}var pc={},Iy={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})(Iy);var Em=Iy.exports,bc={};Object.defineProperty(bc,"__esModule",{value:!0});bc.default=void 0;var qL={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:"页码"};bc.default=qL;var yc={},Ja={},Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.default=void 0;var ZL={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},QL=ZL;Cc.default=QL;var el={};Object.defineProperty(el,"__esModule",{value:!0});el.default=void 0;const JL={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var eA=JL;el.default=eA;var Oy=Em.default;Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var tA=Oy(Cc),nA=Oy(el);const Py={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},tA.default),timePickerLocale:Object.assign({},nA.default)};Py.lang.ok="确定";var rA=Py;Ja.default=rA;var oA=Em.default;Object.defineProperty(yc,"__esModule",{value:!0});yc.default=void 0;var iA=oA(Ja),aA=iA.default;yc.default=aA;var Sc=Em.default;Object.defineProperty(pc,"__esModule",{value:!0});pc.default=void 0;var lA=Sc(bc),sA=Sc(yc),cA=Sc(Ja),uA=Sc(el);const Pn="${label}不是一个有效的${type}",dA={locale:"zh-cn",Pagination:lA.default,DatePicker:cA.default,TimePicker:uA.default,Calendar:sA.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:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Pn,method:Pn,array:Pn,object:Pn,number:Pn,date:Pn,boolean:Pn,integer:Pn,float:Pn,regexp:Pn,email:Pn,url:Pn,hex:Pn},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:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var fA=dA;pc.default=fA;var mA=pc;const hA=Ar(mA);function My({children:e}){const t=$m(),{colorPrimary:n}=ky();return pe(Af,{locale:hA,theme:{algorithm:t?yi.darkAlgorithm:yi.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[D(YL,{styles:Bn(":root{",Ly,":",n,";}","")}),e]})}function _y(e){return D(Ua,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function an({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const a=!!In()[e],l=u.useCallback(c=>{const d=c.target.checked;gr({[e]:d}),n==null||n(d);},[]);let s=D("span",{style:{userSelect:"none"},children:t||e});return r&&(s=D(Ua,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:s})),D(Cm,{...o,checked:a,onChange:l,children:s})}var gA={name:"1qkltea",styles:"margin-left:5px"};const vA=function(){const e=gA;return pe(St,{children:[D(an,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(an,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function ys({tooltip:e,iconProps:t,tooltipProps:n}){return D(St,{children:e&&D(_y,{...n,title:e,children:D(Dt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const pA=[{id:"green",name:"绿意盎然",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:!1,isCustom:!1,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:!1,isCustom:!1,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:!1,isCustom:!1,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:!1,isCustom:!1,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:!1,isCustom:!1,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:!1,isCustom:!1,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:!1,isCustom:!1,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:!0,isCustom:!1,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:!1,isCustom:!1,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:!1,isCustom:!1,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:!1,isCustom:!1,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:!1,isCustom:!1,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],Cs={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Ry={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function bA(e,t){return t.split(` `).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const Ty="UP长期洗涤",yA=bA(Ty,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),Ny=[{name:"预设",themes:[Cs,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},Ry]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:pA,tooltip:pe(St,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:Ty,themes:yA,tooltip:pe(St,{children:["提取自"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],CA=Ny.map(e=>e.themes).flat();function ky(){let{theme:e,colorPickerThemeSelectedColor:t}=In();return e||(e=Cs.id),u.useMemo(()=>{const n=CA.find(r=>r.id===e)||Cs;return n.id===Ry.id&&t&&(n.colorPrimary=t),n},[e,t])}const Ly=`--${nn}-color-primary`,Lr=`var(${Ly})`;var SA={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},wA={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},$A={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function xA(){const e=ky().id,{colorPickerThemeSelectedColor:t}=In(),[n,r]=u.useState(t||Cs.colorPrimary),o=u.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:Ny.map(({name:i,themes:a,tooltip:l})=>pe(u.Fragment,{children:[pe("div",{css:$A,children:[i,D(ys,{tooltip:l,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),D("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(s=>{const c=e===s.id,d=s.isCustom,f=D("div",{className:"preview",css:Bn("width:100%;height:100%;background-color:",d?o:s.colorPrimary,";border-radius:5px;","")});let m=D("div",{className:"preview-wrapper",css:[wA,c&&Bn("border-color:",s.colorPrimary,";",""),"",""],children:f});return s.isCustom&&(m=D(N4,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||gr({colorPickerThemeSelectedColor:o});},children:m})),pe("div",{css:SA,onClick:h=>{gr({theme:s.id});},children:[m,s.name]},s.id)})})]},i))})}const EA="_toast-container_185m9_1",IA="_single-line_185m9_17";function Ct(e,t=2e3){const n=document.createElement("div");n.className=EA,n.innerText=e,n.style.backgroundColor=Lr,!e.includes(` `)&&!e.includes("<br")&&n.classList.add(IA),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const OA="请求失败, 请重试 !!!",Ay="操作失败, 请重试 !!!";function Dy(){return Ct(OA)}function zy(){return Ct(Ay)}const jy="27eb53fc9058f8c3";async function PA(){var c,d;const t=(await Jd.get("https://passport.bilibili.com/login/app/third",{params:{appkey:jy,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login)){Ct("你必须登录(不可用)B站之后才能使用授权");return}if(!((d=t==null?void 0:t.data)!=null&&d.confirm_uri)){Ct("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(f=>{const m=h=>{if(h.origin!="https://www.mcbbs.net")return;if(!h.data||typeof h.data!="string"){console.warn("received message event with invalid data");return}const v=new URL(h.data).searchParams.get("access_key");return v?f(v):(Ct("没有获得匹配的密钥"),f(void 0))};window.addEventListener("message",m),o=()=>window.removeEventListener("message",m),r=setTimeout(()=>{Ct("获取授权超时"),f(void 0);},10*1e3);});let a;{const f=document.createElement("iframe");f.src=n,f.style.display="none",document.body.appendChild(f),a=()=>f.remove();}function l(){a==null||a(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const s=await i;return l(),s}async function MA(){const e=await PA();if(e)return yt.accessKey=e,Ct("获取成功"),e}function _A(){yt.accessKey="",Ct("已删除 access_key");}const RA="https://api.bilibili.com",By="https://app.bilibili.com",wn=Jd.create({baseURL:RA,withCredentials:!0});wn.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});function ko(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const wc=Jd.create({adapter:c1});wc.interceptors.request.use(function(e){return e.params={appkey:jy,access_key:yt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});wc.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});var TA=Object.defineProperty,NA=(e,t,n)=>t in e?TA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tl=(e,t,n)=>(NA(e,typeof t!="symbol"?t+"":t,n),n);const _r=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};tl(_r,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF");tl(_r,"TR",{});tl(_r,"S",[11,10,3,8,4,6]);tl(_r,"XOR",177451812);tl(_r,"ADD",8728348608);(()=>{const e=_r.TABEL.length;for(let t=0;t<e;t++)_r.TR[_r.TABEL[t]]=t;})();let kA=_r;function Im(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function nl(){const e=Im().bili_jct;if(!e)throw Ct("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function $c(){return Im().DedeUserID}function rl(){return !!Im().DedeUserID}const Od=Jn({cookie:document.cookie,logined:rl()});function LA(){return Object.assign(Od,{cookie:document.cookie,logined:rl()}),Od.logined}function Hy(){return nr(Od).logined}const Jg=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},AA=new WeakMap;function DA({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Jg());let i,a,l;const s=e??clearTimeout,c=()=>{s(i),l(Jg());},d=()=>{o&&o.removeEventListener("abort",c);},f=new Promise((m,h)=>{a=()=>{d(),m(r);},l=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),AA.set(f,()=>{s(i),i=null,a();}),f}}const Lo=DA(),zA=Ti.extend("utility:dom"),jA=10*1e3,BA=200;async function da(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+jA;for(;!r.length&&performance.now()<a;)await Lo(BA),o();if(!r.length){console.warn(`[${nn}]: tryAction timeout, selector = %s`,e);return}zA("tryAction: selector=%s count=%s",e,r.length);for(const l of r)await Promise.resolve(t(l));}async function fa(e,t,n){return typeof n=="number"&&await Lo(n),da(e,r=>r.remove(),t)}function xc(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var Fy={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ep,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",d="week",f="month",m="quarter",h="year",g="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var P=["th","st","nd","rd"],_=O%100;return "["+O+(P[(_-20)%10]||P[_]||P[0])+"]"}},E=function(O,P,_){var k=String(O);return !k||k.length>=P?O:""+Array(P+1-k.length).join(_)+O},M={s:E,z:function(O){var P=-O.utcOffset(),_=Math.abs(P),k=Math.floor(_/60),N=_%60;return (P<=0?"+":"-")+E(k,2,"0")+":"+E(N,2,"0")},m:function O(P,_){if(P.date()<_.date())return -O(_,P);var k=12*(_.year()-P.year())+(_.month()-P.month()),N=P.clone().add(k,f),A=_-N<0,z=P.clone().add(k+(A?-1:1),f);return +(-(k+(_-N)/(A?N-z:z-N))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return {M:f,y:h,w:d,d:c,D:g,h:s,m:l,s:a,ms:i,Q:m}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},w="en",x={};x[w]=b;var S=function(O){return O instanceof L},C=function O(P,_,k){var N;if(!P)return w;if(typeof P=="string"){var A=P.toLowerCase();x[A]&&(N=A),_&&(x[A]=_,N=A);var z=P.split("-");if(!N&&z.length>1)return O(z[0])}else {var F=P.name;x[F]=P,N=F;}return !k&&N&&(w=N),N||!k&&w},$=function(O,P){if(S(O))return O.clone();var _=typeof P=="object"?P:{};return _.date=O,_.args=arguments,new L(_)},I=M;I.l=C,I.i=S,I.w=function(O,P){return $(O,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var L=function(){function O(_){this.$L=C(_.locale,null,!0),this.parse(_);}var P=O.prototype;return P.parse=function(_){this.$d=function(k){var N=k.date,A=k.utc;if(N===null)return new Date(NaN);if(I.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(p);if(z){var F=z[2]-1||0,V=(z[7]||"0").substring(0,3);return A?new Date(Date.UTC(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)):new Date(z[1],F,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)}}return new Date(N)}(_),this.$x=_.x||{},this.init();},P.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds();},P.$utils=function(){return I},P.isValid=function(){return this.$d.toString()!==v},P.isSame=function(_,k){var N=$(_);return this.startOf(k)<=N&&N<=this.endOf(k)},P.isAfter=function(_,k){return $(_)<this.startOf(k)},P.isBefore=function(_,k){return this.endOf(k)<$(_)},P.$g=function(_,k,N){return I.u(_)?this[k]:this.set(N,_)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(_,k){var N=this,A=!!I.u(k)||k,z=I.p(_),F=function(K,Y){var re=I.w(N.$u?Date.UTC(N.$y,Y,K):new Date(N.$y,Y,K),N);return A?re:re.endOf(c)},V=function(K,Y){return I.w(N.toDate()[K].apply(N.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Y)),N)},j=this.$W,H=this.$M,B=this.$D,X="set"+(this.$u?"UTC":"");switch(z){case h:return A?F(1,0):F(31,11);case f:return A?F(1,H):F(0,H+1);case d:var J=this.$locale().weekStart||0,Q=(j<J?j+7:j)-J;return F(A?B-Q:B+(6-Q),H);case c:case g:return V(X+"Hours",0);case s:return V(X+"Minutes",1);case l:return V(X+"Seconds",2);case a:return V(X+"Milliseconds",3);default:return this.clone()}},P.endOf=function(_){return this.startOf(_,!1)},P.$set=function(_,k){var N,A=I.p(_),z="set"+(this.$u?"UTC":""),F=(N={},N[c]=z+"Date",N[g]=z+"Date",N[f]=z+"Month",N[h]=z+"FullYear",N[s]=z+"Hours",N[l]=z+"Minutes",N[a]=z+"Seconds",N[i]=z+"Milliseconds",N)[A],V=A===c?this.$D+(k-this.$W):k;if(A===f||A===h){var j=this.clone().set(g,1);j.$d[F](V),j.init(),this.$d=j.set(g,Math.min(this.$D,j.daysInMonth())).$d;}else F&&this.$d[F](V);return this.init(),this},P.set=function(_,k){return this.clone().$set(_,k)},P.get=function(_){return this[I.p(_)]()},P.add=function(_,k){var N,A=this;_=Number(_);var z=I.p(k),F=function(H){var B=$(A);return I.w(B.date(B.date()+Math.round(H*_)),A)};if(z===f)return this.set(f,this.$M+_);if(z===h)return this.set(h,this.$y+_);if(z===c)return F(1);if(z===d)return F(7);var V=(N={},N[l]=r,N[s]=o,N[a]=n,N)[z]||1,j=this.$d.getTime()+_*V;return I.w(j,this)},P.subtract=function(_,k){return this.add(-1*_,k)},P.format=function(_){var k=this,N=this.$locale();if(!this.isValid())return N.invalidDate||v;var A=_||"YYYY-MM-DDTHH:mm:ssZ",z=I.z(this),F=this.$H,V=this.$m,j=this.$M,H=N.weekdays,B=N.months,X=N.meridiem,J=function(Y,re,ue,se){return Y&&(Y[re]||Y(k,A))||ue[re].slice(0,se)},Q=function(Y){return I.s(F%12||12,Y,"0")},K=X||function(Y,re,ue){var se=Y<12?"AM":"PM";return ue?se.toLowerCase():se};return A.replace(y,function(Y,re){return re||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return I.s(k.$y,4,"0");case"M":return j+1;case"MM":return I.s(j+1,2,"0");case"MMM":return J(N.monthsShort,j,B,3);case"MMMM":return J(B,j);case"D":return k.$D;case"DD":return I.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return J(N.weekdaysMin,k.$W,H,2);case"ddd":return J(N.weekdaysShort,k.$W,H,3);case"dddd":return H[k.$W];case"H":return String(F);case"HH":return I.s(F,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return K(F,V,!0);case"A":return K(F,V,!1);case"m":return String(V);case"mm":return I.s(V,2,"0");case"s":return String(k.$s);case"ss":return I.s(k.$s,2,"0");case"SSS":return I.s(k.$ms,3,"0");case"Z":return z}return null}(Y)||z.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(_,k,N){var A,z=this,F=I.p(k),V=$(_),j=(V.utcOffset()-this.utcOffset())*r,H=this-V,B=function(){return I.m(z,V)};switch(F){case h:A=B()/12;break;case f:A=B();break;case m:A=B()/3;break;case d:A=(H-j)/6048e5;break;case c:A=(H-j)/864e5;break;case s:A=H/o;break;case l:A=H/r;break;case a:A=H/n;break;default:A=H;}return N?A:I.a(A)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return x[this.$L]},P.locale=function(_,k){if(!_)return this.$L;var N=this.clone(),A=C(_,k,!0);return A&&(N.$L=A),N},P.clone=function(){return I.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},O}(),R=L.prototype;return $.prototype=R,[["$ms",i],["$s",a],["$m",l],["$H",s],["$W",c],["$M",f],["$y",h],["$D",g]].forEach(function(O){R[O[1]]=function(P){return this.$g(P,O[0],O[1])};}),$.extend=function(O,P){return O.$i||(O(P,L,$),O.$i=!0),$},$.locale=C,$.isDayjs=S,$.unix=function(O){return $(1e3*O)},$.en=x[w],$.Ls=x,$.p={},$});})(Fy);var HA=Fy.exports;const Di=Ar(HA);function FA(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,i,a)=>o+i*t[a],0)}function Ec(e){return e||(e=0),Di.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Iu(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Ss(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const WA=Di().format("YYYY");function Ur(e,t=!1){if(!e)return "";const n=Di.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===WA?n.format("M-D"+r):n.format("YY-M-D"+r)}const VA={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function KA(e){if(!(typeof e>"u")&&!(e>=0))return VA[e]}async function Wy(){var n;return ((n=(await wn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Pd(e){var i,a;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:nl(),...e}),n=(await wn.post("/x/article/creative/draft/addupdate",t)).data,r=(a=(i=n==null?void 0:n.data)==null?void 0:i.aid)==null?void 0:a.toString(),o=ko(n);return o||Ct(n.message||"addupdate error"),{success:o,aid:r}}async function GA(e){var n;const t=(await wn.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function UA(){const t=(await Wy()).find(a=>a.title===nn);if(!t){await Pd({title:nn});return}const n=await GA(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function XA(e){const n=(await Wy()).find(a=>a.title===nn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:l}=await Pd({title:nn});if(!a)return !1;r=l;}const o=JSON.stringify(e),{success:i}=await Pd({aid:r,title:nn,content:`<p>${o}</p>`,words:o.length.toString()});return i}var xi=1e3,Ei=xi*60,Ii=Ei*60,Oo=Ii*24,YA=Oo*7,qA=Oo*365.25,ZA=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return QA(e);if(n==="number"&&isFinite(e))return t.long?eD(e):JA(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function QA(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*qA;case"weeks":case"week":case"w":return n*YA;case"days":case"day":case"d":return n*Oo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ii;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ei;case"seconds":case"second":case"secs":case"sec":case"s":return n*xi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function JA(e){var t=Math.abs(e);return t>=Oo?Math.round(e/Oo)+"d":t>=Ii?Math.round(e/Ii)+"h":t>=Ei?Math.round(e/Ei)+"m":t>=xi?Math.round(e/xi)+"s":e+"ms"}function eD(e){var t=Math.abs(e);return t>=Oo?Il(e,t,Oo,"day"):t>=Ii?Il(e,t,Ii,"hour"):t>=Ei?Il(e,t,Ei,"minute"):t>=xi?Il(e,t,xi,"second"):e+" ms"}function Il(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Vy=Ar(ZA),tD=Ti.extend("settings"),Om={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1},yt=Jn({...Om}),Ky=Object.keys(Om),In=function(){return nr(yt)},nD=nn,Gy=`${nD}.settings`;async function rD(){const e=await GM.getValue(Gy);e&&typeof e=="object"&&Object.assign(yt,Ef(e,Ky)),wm(yt,()=>{iD();});}const oD=Zp(XA,Vy("5s"));async function iD(){const e=bs(yt);await GM.setValue(Gy,e);const t=j2(e,["accessKey"]);if(t.backupSettingsToArticleDraft&&!window[`${nn}-restore`])try{await oD(t),tD("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function gr(e){Object.assign(yt,e);}function aD(){return gr(Om)}(await rD());var Uy={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(ep,function(){var n,r,o=1e3,i=6e4,a=36e5,l=864e5,s=/\[([^\]]+)]|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,c=31536e6,d=2592e6,f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:d,days:l,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function(x){return x instanceof M},g=function(x,S,C){return new M(x,C,S.$l)},v=function(x){return r.p(x)+"s"},p=function(x){return x<0},y=function(x){return p(x)?Math.ceil(x):Math.floor(x)},b=function(x){return Math.abs(x)},E=function(x,S){return x?p(x)?{negative:!0,format:""+b(x)+S}:{negative:!1,format:""+x+S}:{negative:!1,format:""}},M=function(){function x(C,$,I){var L=this;if(this.$d={},this.$l=I,C===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return g(C*m[v($)],this);if(typeof C=="number")return this.$ms=C,this.parseFromMilliseconds(),this;if(typeof C=="object")return Object.keys(C).forEach(function(P){L.$d[v(P)]=C[P];}),this.calMilliseconds(),this;if(typeof C=="string"){var R=C.match(f);if(R){var O=R.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=O[0],this.$d.months=O[1],this.$d.weeks=O[2],this.$d.days=O[3],this.$d.hours=O[4],this.$d.minutes=O[5],this.$d.seconds=O[6],this.calMilliseconds(),this}}return this}var S=x.prototype;return S.calMilliseconds=function(){var C=this;this.$ms=Object.keys(this.$d).reduce(function($,I){return $+(C.$d[I]||0)*m[I]},0);},S.parseFromMilliseconds=function(){var C=this.$ms;this.$d.years=y(C/c),C%=c,this.$d.months=y(C/d),C%=d,this.$d.days=y(C/l),C%=l,this.$d.hours=y(C/a),C%=a,this.$d.minutes=y(C/i),C%=i,this.$d.seconds=y(C/o),C%=o,this.$d.milliseconds=C;},S.toISOString=function(){var C=E(this.$d.years,"Y"),$=E(this.$d.months,"M"),I=+this.$d.days||0;this.$d.weeks&&(I+=7*this.$d.weeks);var L=E(I,"D"),R=E(this.$d.hours,"H"),O=E(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var _=E(P,"S"),k=C.negative||$.negative||L.negative||R.negative||O.negative||_.negative,N=R.format||O.format||_.format?"T":"",A=(k?"-":"")+"P"+C.format+$.format+L.format+N+R.format+O.format+_.format;return A==="P"||A==="-P"?"P0D":A},S.toJSON=function(){return this.toISOString()},S.format=function(C){var $=C||"YYYY-MM-DDTHH:mm:ss",I={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return $.replace(s,function(L,R){return R||String(I[L])})},S.as=function(C){return this.$ms/m[v(C)]},S.get=function(C){var $=this.$ms,I=v(C);return I==="milliseconds"?$%=1e3:$=I==="weeks"?y($/m[I]):this.$d[I],$===0?0:$},S.add=function(C,$,I){var L;return L=$?C*m[v($)]:h(C)?C.$ms:g(C,this).$ms,g(this.$ms+L*(I?-1:1),this)},S.subtract=function(C,$){return this.add(C,$,!0)},S.locale=function(C){var $=this.clone();return $.$l=C,$},S.clone=function(){return g(this.$ms,this)},S.humanize=function(C){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!C)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},x}(),w=function(x,S,C){return x.add(S.years()*C,"y").add(S.months()*C,"M").add(S.days()*C,"d").add(S.hours()*C,"h").add(S.minutes()*C,"m").add(S.seconds()*C,"s").add(S.milliseconds()*C,"ms")};return function(x,S,C){n=C,r=C().$utils(),C.duration=function(L,R){var O=C.locale();return g(L,{$l:O},R)},C.isDuration=h;var $=S.prototype.add,I=S.prototype.subtract;S.prototype.add=function(L,R){return h(L)?w(this,L,1):$.bind(this)(L,R)},S.prototype.subtract=function(L,R){return h(L)?w(this,L,-1):I.bind(this)(L,R)};}});})(Uy);var lD=Uy.exports;const sD=Ar(lD);var Ic,ev=Qv;Ic=ev.createRoot,ev.hydrateRoot;function tv(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function nv(e,t,n){var r=[],o=sf(e,r,n);return r.length<2?n:o+t(r)}var cD=function(t){var n=fp(t);n.sheet.speedy=function(l){this.isSpeedy=l;},n.compat=!0;var r=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered,void 0);return cf(n,f,!1),n.key+"-"+f.name},o=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered),m="animation-"+f.name;return tv(n,{name:f.name,styles:"@keyframes "+m+"{"+f.styles+"}"}),m},i=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=ai(c,n.registered);tv(n,f);},a=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return nv(n.registered,r,uD(c))};return {css:r,cx:a,injectGlobal:i,keyframes:o,hydrate:function(s){s.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:sf.bind(null,n.registered),merge:nv.bind(null,n.registered,r)}},uD=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},dD=cD({key:"css"}),rv=dD.css,Xy=function(e){return function(t,n){var r=u.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},qn=function(){return qn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},qn.apply(this,arguments)};function Yy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fD(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d));}catch(f){a(f);}}function s(d){try{c(r.throw(d));}catch(f){a(f);}}function c(d){d.done?i(d.value):o(d.value).then(l,s);}c((r=r.apply(e,t||[])).next());})}function mD(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(d){return s([c,d])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(d){c=[6,d],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Md(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(l){a={error:l};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function hn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var zi=function(e){return typeof e=="function"},hD=function(e){return typeof e=="string"},qy=function(e){return typeof e=="number"};function lt(e){var t=u.useRef(e);t.current=u.useMemo(function(){return e},[e]);var n=u.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const ws=Xy(u.useEffect);var Zy=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,l=t.refreshDeps,s=l===void 0?[]:l,c=t.refreshDepsAction,d=u.useRef(!1);return d.current=!1,ws(function(){!n&&o&&(d.current=!0,e.run.apply(e,hn([],qt(a),!1)));},[o]),ws(function(){d.current||n||(d.current=!0,c?c():e.refresh());},hn([],qt(s),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};Zy.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const vD=Zy;function _d(e,t){if(e===t)return !0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return !1;return !0}function Qy(e,t){var n=u.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!_d(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Oi(e){var t=u.useRef(e);return t.current=e,t}var pD=function(e){var t=Oi(e);u.useEffect(function(){return function(){t.current();}},[]);};const ol=pD;var Vl=new Map,bD=function(e,t,n){var r=Vl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Vl.delete(e);},t)),Vl.set(e,qn(qn({},n),{timer:o}));},yD=function(e){return Vl.get(e)},Kl=new Map,CD=function(e){return Kl.get(e)},SD=function(e,t){Kl.set(e,t),t.then(function(n){return Kl.delete(e),n}).catch(function(){Kl.delete(e);});},go={},wD=function(e,t){go[e]&&go[e].forEach(function(n){return n(t)});},Ou=function(e,t){return go[e]||(go[e]=[]),go[e].push(t),function(){var r=go[e].indexOf(t);go[e].splice(r,1);}},$D=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,l=t.setCache,s=t.getCache,c=u.useRef(),d=u.useRef(),f=function(h,g){l?l(g):bD(h,o,g),wD(h,g.data);},m=function(h,g){return g===void 0&&(g=[]),s?s(g):yD(h)};return Qy(function(){if(n){var h=m(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(e.state.loading=!1)),c.current=Ou(n,function(g){e.setState({data:g});});}},[]),ol(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=m(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||new Date().getTime()-g.time<=a?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=CD(n);return v&&v!==d.current?{servicePromise:v}:(v=h.apply(void 0,hn([],qt(g),!1)),d.current=v,SD(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),f(n,{data:h,params:g,time:new Date().getTime()}),c.current=Ou(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),f(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Ou(n,function(v){e.setState({data:v});}));}}:{}};const xD=$D;var ED=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=u.useRef(),l=u.useMemo(function(){var s={};return r!==void 0&&(s.leading=r),o!==void 0&&(s.trailing=o),i!==void 0&&(s.maxWait=i),s},[r,o,i]);return u.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=qp(function(c){c();},n,l),e.runAsync=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return new Promise(function(f,m){var h;(h=a.current)===null||h===void 0||h.call(a,function(){s.apply(void 0,hn([],qt(c),!1)).then(f).catch(m);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=s;}}},[n,l]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const ID=ED;var OD=function(e,t){var n=t.loadingDelay,r=t.ready,o=u.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const PD=OD;var MD=!!(typeof window<"u"&&window.document&&window.document.createElement);const il=MD;function Pm(){return il?document.visibilityState!=="hidden":!0}var ma=[];function _D(e){return ma.push(e),function(){var n=ma.indexOf(e);ma.splice(n,1);}}if(il){var RD=function(){if(Pm())for(var e=0;e<ma.length;e++){var t=ma[e];t();}};window.addEventListener("visibilitychange",RD,!1);}var TD=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,l=u.useRef(),s=u.useRef(),c=u.useRef(0),d=function(){var f;l.current&&clearTimeout(l.current),(f=s.current)===null||f===void 0||f.call(s);};return ws(function(){n||d();},[n]),n?{onBefore:function(){d();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?l.current=setTimeout(function(){!o&&!Pm()?s.current=_D(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){d();}}:{}};const ND=TD;function kD(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,hn([],qt(r),!1)),setTimeout(function(){n=!1;},t));}}function LD(){return il&&typeof navigator.onLine<"u"?navigator.onLine:!0}var ha=[];function AD(e){return ha.push(e),function(){var n=ha.indexOf(e);n>-1&&ha.splice(n,1);}}if(il){var ov=function(){if(!(!Pm()||!LD()))for(var e=0;e<ha.length;e++){var t=ha[e];t();}};window.addEventListener("visibilitychange",ov,!1),window.addEventListener("focus",ov,!1);}var DD=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=u.useRef(),a=function(){var l;(l=i.current)===null||l===void 0||l.call(i);};return u.useEffect(function(){if(n){var l=kD(e.refresh.bind(e),o);i.current=AD(function(){l();});}return function(){a();}},[n,o]),ol(function(){a();}),{}};const zD=DD;var jD=function(e,t){var n=t.retryInterval,r=t.retryCount,o=u.useRef(),i=u.useRef(0),a=u.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var l=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},l);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const BD=jD;var HD=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=u.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),u.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=Zp(function(s){s();},n,a),e.runAsync=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new Promise(function(d,f){var m;(m=i.current)===null||m===void 0||m.call(i,function(){l.apply(void 0,hn([],qt(s),!1)).then(d).catch(f);});})},function(){var s;e.runAsync=l,(s=i.current)===null||s===void 0||s.cancel();}}},[n,r,o]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const FD=HD;var WD=function(e){u.useEffect(function(){e==null||e();},[]);};const Pc=WD;var VD=function(){var e=qt(u.useState({}),2),t=e[1];return u.useCallback(function(){return t({})},[])};const KD=VD;var GD=function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=qn(qn(qn({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=qn(qn({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,hn([i],qt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,hn([{}],qt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,l,s,c,d,f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return fD(this,void 0,void 0,function(){var h,g,v,p,y,b,E,M,w,x,S;return mD(this,function(C){switch(C.label){case 0:if(this.count+=1,h=this.count,g=this.runPluginHandler("onBefore",f),v=g.stopNow,p=v===void 0?!1:v,y=g.returnNow,b=y===void 0?!1:y,E=Yy(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(qn({loading:!0,params:f},E)),b)return [2,Promise.resolve(E.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,f),C.label=1;case 1:return C.trys.push([1,3,,4]),M=this.runPluginHandler("onRequest",this.serviceRef.current,f).servicePromise,M||(M=(S=this.serviceRef).current.apply(S,hn([],qt(f),!1))),[4,M];case 2:return w=C.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:w,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,w,f),this.runPluginHandler("onSuccess",w,f),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,f,w,void 0),h===this.count&&this.runPluginHandler("onFinally",f,w,void 0),[2,w]);case 3:if(x=C.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:x,loading:!1}),(s=(l=this.options).onError)===null||s===void 0||s.call(l,x,f),this.runPluginHandler("onError",x,f),(d=(c=this.options).onFinally)===null||d===void 0||d.call(c,f,void 0,x),h===this.count&&this.runPluginHandler("onFinally",f,void 0,x),x;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,hn([],qt(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,hn([],qt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,hn([],qt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=zi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const UD=GD;function XD(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=Yy(t,["manual"]);var a=qn({manual:o},i),l=Oi(e),s=KD(),c=Qy(function(){var d=n.map(function(f){var m;return (m=f==null?void 0:f.onInit)===null||m===void 0?void 0:m.call(f,a)}).filter(Boolean);return new UD(l,a,s,Object.assign.apply(Object,hn([{}],qt(d),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(d){return d(c,a)}),Pc(function(){if(!o){var d=c.state.params||t.defaultParams||[];c.run.apply(c,hn([],qt(d),!1));}}),ol(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:lt(c.cancel.bind(c)),refresh:lt(c.refresh.bind(c)),refreshAsync:lt(c.refreshAsync.bind(c)),run:lt(c.run.bind(c)),runAsync:lt(c.runAsync.bind(c)),mutate:lt(c.mutate.bind(c))}}function YD(e,t,n){return XD(e,t,hn(hn([],qt(n||[]),!1),[ID,PD,ND,zD,FD,vD,xD,BD],!1))}function Jy(e,t){e===void 0&&(e=!1);var n=qt(u.useState(e),2),r=n[0],o=n[1],i=u.useMemo(function(){var a=t===void 0?!e:t,l=function(){return o(function(f){return f===e?a:e})},s=function(f){return o(f)},c=function(){return o(e)},d=function(){return o(a)};return {toggle:l,set:s,setLeft:c,setRight:d}},[]);return [r,i]}function qD(e){e===void 0&&(e=!1);var t=qt(Jy(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=u.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:l,setFalse:s}},[]);return [n,a]}function Mc(e,t){if(il){if(!e)return t;var n;return zi(e)?n=e():"current"in e?n=e.current:n=e,n}}var ZD=function(e){var t=function(n,r,o){var i=u.useRef(!1),a=u.useRef([]),l=u.useRef([]),s=u.useRef();e(function(){var c,d=Array.isArray(o)?o:[o],f=d.map(function(m){return Mc(m)});if(!i.current){i.current=!0,a.current=f,l.current=r,s.current=n();return}(f.length!==a.current.length||!_d(f,a.current)||!_d(r,l.current))&&((c=s.current)===null||c===void 0||c.call(s),a.current=f,l.current=r,s.current=n());}),ol(function(){var c;(c=s.current)===null||c===void 0||c.call(s),i.current=!1;});};return t};const QD=ZD;var JD=QD(u.useEffect);const eC=JD;var e5="__lodash_hash_undefined__";function t5(e){return this.__data__.set(e,e5),this}function n5(e){return this.__data__.has(e)}function Ra(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new zr;++t<n;)this.add(e[t]);}Ra.prototype.add=Ra.prototype.push=t5;Ra.prototype.has=n5;function r5(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function tC(e,t){return e.has(t)}var o5=1,i5=2;function nC(e,t,n,r,o,i){var a=n&o5,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return !1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,m=!0,h=n&i5?new Ra:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],v=t[f];if(r)var p=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(p!==void 0){if(p)continue;m=!1;break}if(h){if(!r5(t,function(y,b){if(!tC(h,b)&&(g===y||o(g,y,n,r,i)))return h.push(b)})){m=!1;break}}else if(!(g===v||o(g,v,n,r,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function a5(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Mm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var l5=1,s5=2,c5="[object Boolean]",u5="[object Date]",d5="[object Error]",f5="[object Map]",m5="[object Number]",h5="[object RegExp]",g5="[object Set]",v5="[object String]",p5="[object Symbol]",b5="[object ArrayBuffer]",y5="[object DataView]",iv=Hn?Hn.prototype:void 0,Pu=iv?iv.valueOf:void 0;function C5(e,t,n,r,o,i,a){switch(n){case y5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case b5:return !(e.byteLength!=t.byteLength||!i(new ts(e),new ts(t)));case c5:case u5:case m5:return df(+e,+t);case d5:return e.name==t.name&&e.message==t.message;case h5:case v5:return e==t+"";case f5:var l=a5;case g5:var s=r&l5;if(l||(l=Mm),e.size!=t.size&&!s)return !1;var c=a.get(e);if(c)return c==t;r|=s5,a.set(e,t);var d=nC(l(e),l(t),r,o,i,a);return a.delete(e),d;case p5:if(Pu)return Pu.call(e)==Pu.call(t)}return !1}var S5=1,w5=Object.prototype,$5=w5.hasOwnProperty;function x5(e,t,n,r,o,i){var a=n&S5,l=Hu(e),s=l.length,c=Hu(t),d=c.length;if(s!=d&&!a)return !1;for(var f=s;f--;){var m=l[f];if(!(a?m in t:$5.call(t,m)))return !1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var p=a;++f<s;){m=l[f];var y=e[m],b=t[m];if(r)var E=a?r(b,y,m,t,e,i):r(y,b,m,e,t,i);if(!(E===void 0?y===b||o(y,b,n,r,i):E)){v=!1;break}p||(p=m=="constructor");}if(v&&!p){var M=e.constructor,w=t.constructor;M!=w&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof w=="function"&&w instanceof w)&&(v=!1);}return i.delete(e),i.delete(t),v}var E5=1,av="[object Arguments]",lv="[object Array]",Ol="[object Object]",I5=Object.prototype,sv=I5.hasOwnProperty;function O5(e,t,n,r,o,i){var a=Wn(e),l=Wn(t),s=a?lv:xa(e),c=l?lv:xa(t);s=s==av?Ol:s,c=c==av?Ol:c;var d=s==Ol,f=c==Ol,m=s==c;if(m&&es(e)){if(!es(t))return !1;a=!0,d=!1;}if(m&&!d)return i||(i=new dr),a||Tp(e)?nC(e,t,n,r,o,i):C5(e,t,s,n,r,o,i);if(!(n&E5)){var h=d&&sv.call(e,"__wrapped__"),g=f&&sv.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,p=g?t.value():t;return i||(i=new dr),o(v,p,n,r,i)}}return m?(i||(i=new dr),x5(e,t,n,r,o,i)):!1}function _c(e,t,n,r,o){return e===t?!0:e==null||t==null||!Rr(e)&&!Rr(t)?e!==e&&t!==t:O5(e,t,n,r,_c,o)}function P5(e,t){return _c(e,t)}var M5=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),P5(e,t)};function Yr(e,t,n){n===void 0&&(n={});var r=Oi(t);eC(function(){var o=Mc(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function rC(e){var t=qt(u.useState(e),2),n=t[0],r=t[1],o=u.useRef(n);o.current=n;var i=u.useCallback(function(){return o.current},[]);return [n,r,i]}const Mu=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=qt(qD(!1),2),l=a[0],s=a[1],c=s.setTrue,d=s.setFalse;return Yr("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),Yr("mouseleave",function(){o==null||o(),d(),i==null||i(!1);},{target:e}),l};var _5=function(e,t,n){var r=u.useRef(),o=u.useRef(0);M5(t,r.current)||(r.current=t,o.current+=1),eC(e,[o.current],n);};const R5=_5;var T5=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const N5=T5;var oC={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:N5?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Rd={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?oC.meta.includes(e.keyCode):e.metaKey}};function k5(e){var t=Object.keys(Rd).reduce(function(n,r){return Rd[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function cv(e,t,n){var r,o;if(!e.key)return !1;if(qy(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var l=Md(i),s=l.next();!s.done;s=l.next()){var c=s.value,d=Rd[c],f=oC[c.toLowerCase()];(d&&d(e)||f&&f===e.keyCode)&&a++;}}catch(m){r={error:m};}finally{try{s&&!s.done&&(o=l.return)&&o.call(l);}finally{if(r)throw r.error}}return n?a===i.length&&k5(e)===i.length:a===i.length}function L5(e,t){return zi(e)?e:hD(e)||qy(e)?function(n){return cv(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return cv(n,r,t)})}:function(){return !!e}}var A5=["keydown"];function Qt(e,t,n){var r=n||{},o=r.events,i=o===void 0?A5:o,a=r.target,l=r.exactMatch,s=l===void 0?!1:l,c=r.useCapture,d=c===void 0?!1:c,f=Oi(t),m=Oi(e);R5(function(){var h,g,v,p=Mc(a,window);if(p){var y=function(w){var x,S=L5(m.current,s);if(S(w))return (x=f.current)===null||x===void 0?void 0:x.call(f,w)};try{for(var b=Md(i),E=b.next();!E.done;E=b.next()){var M=E.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,M,y,d);}}catch(w){h={error:w};}finally{try{E&&!E.done&&(g=b.return)&&g.call(b);}finally{if(h)throw h.error}}return function(){var w,x,S;try{for(var C=Md(i),$=C.next();!$.done;$=C.next()){var I=$.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,I,y,d);}}catch(L){w={error:L};}finally{try{$&&!$.done&&(x=C.return)&&x.call(C);}finally{if(w)throw w.error}}}}},[i],a);}function iC(e){var t=u.useRef(0),n=qt(u.useState(e),2),r=n[0],o=n[1],i=u.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return ol(function(){cancelAnimationFrame(t.current);}),[r,i]}var D5={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};const z5=function(e){var t=qt(iC(D5),2),n=t[0],r=t[1];return Yr("mousemove",function(o){var i=o.screenX,a=o.screenY,l=o.clientX,s=o.clientY,c=o.pageX,d=o.pageY,f={screenX:i,screenY:a,clientX:l,clientY:s,pageX:c,pageY:d,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Mc(e);if(m){var h=m.getBoundingClientRect(),g=h.left,v=h.top,p=h.width,y=h.height;f.elementPosX=g+window.pageXOffset,f.elementPosY=v+window.pageYOffset,f.elementX=c-f.elementPosX,f.elementY=d-f.elementPosY,f.elementW=p,f.elementH=y;}r(f);},{target:function(){return document}}),n};var j5=function(){var e=u.useRef(!1);return u.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const B5=j5,H5=Xy(u.useLayoutEffect),F5="_modal-mask_1j5wc_1",W5="_modal_1j5wc_1",V5="_modal-header_1j5wc_23",K5="_modal-body_1j5wc_30",G5="_modal-title_1j5wc_35",U5="_btn-close_1j5wc_42",mr={modalMask:F5,modal:W5,modalHeader:V5,modalBody:K5,modalTitle:G5,btnClose:U5};let na=0;const X5=()=>{na++,document.body.style.overflow="hidden";},Y5=()=>{na--,na<0&&(na=0),na===0&&(document.body.style.overflow="");};function _m({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:l,hideWhenMaskOnClick:s=!1,hideWhenEsc:c=!1}){u.useLayoutEffect(()=>{e?X5():Y5();},[e]);const d=u.useRef(null),f=$m(),{bg:m,c:h}=u.useMemo(()=>{const b=window.getComputedStyle(document.body).backgroundColor,E=window.getComputedStyle(document.body).color;return {bg:b,c:E}},[f]),g=u.useMemo(()=>f?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,f]),v=u.useId(),p=u.useMemo(()=>{const b=document.createElement("div");return b.setAttribute("data-id","base-modal-"+v),document.body.appendChild(b),b},[]),y=lt(b=>{var M;const E=b.target;(M=d.current)!=null&&M.contains(E)||E.closest('.ant-tooltip-inner[role="tooltip"]')||E.closest('.ant-popover-inner[role="tooltip"]')||s&&t();});return Qt("esc",b=>{e&&c&&(b.preventDefault(),b.stopImmediatePropagation(),setTimeout(t));}),e?Qv.createPortal(D("div",{className:W(mr.modalMask,o),style:r,onClick:y,children:D("div",{className:W(mr.modal,a),style:{...g,width:l,...i},ref:d,children:n})}),p):null}const Rm=e=>D(Dt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function Tm(e){const t=Jn({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(Jn(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function q5(e){const t=Jn({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}class Z5 extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0;}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[n,r]of t)this.onEviction(n,r.value);}_deleteIfExpired(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,n.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,n){if(this._deleteIfExpired(t,n)===!1)return n.value}_getItemValue(t,n){return n.expiry?this._getOrDeleteIfExpired(t,n):n.value}_peek(t,n){const r=n.get(t);return this._getItemValue(t,r)}_set(t,n){this.cache.set(t,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map);}_moveToRecent(t,n){this.oldCache.delete(t),this._set(t,n);}*_entriesAscending(){for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield t);}for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield t);}}get(t){if(this.cache.has(t)){const n=this.cache.get(t);return this._getItemValue(t,n)}if(this.oldCache.has(t)){const n=this.oldCache.get(t);if(this._deleteIfExpired(t,n)===!1)return this._moveToRecent(t,n),n.value}}set(t,n,{maxAge:r=this.maxAge}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;this.cache.has(t)?this.cache.set(t,{value:n,expiry:o}):this._set(t,{value:n,expiry:o});}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const n=this.cache.delete(t);return n&&this._size--,this.oldCache.delete(t)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-t;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=t;}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.cache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}t=[...this.oldCache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.cache.has(o)||this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this._entriesAscending())yield [t,n.value];}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const n of this.oldCache.keys())this.cache.has(n)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function Q5(e){return (await wn.get("/pvideo",{params:{aid:e}})).data.data}async function J5(e){return []}const _u=new Z5({maxSize:1e3});async function ez(e){if(_u.has(e))return _u.get(e);const[t,n]=await Promise.all([Q5(e),J5()]);return _u.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function aC(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:nl()}),i=(await wn.post("/x/v2/history/toview/"+e,r)).data,a=ko(i);return a||Ct((i==null?void 0:i.message)||"出错了"),a}}const Pl=aC("add"),uv=aC("del"),lC=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await wc.get(By+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return ko(i)}},tz=lC("dislike"),nz=lC("cancel"),rz="_modal_1rloz_1",oz="_title-desc_1rloz_4",iz="_reason-list_1rloz_8",az="_reason_1rloz_8",lz="_active_1rloz_29",sz="_reason-no_1rloz_33",cz="_tips-container_1rloz_47",uz="_tips_1rloz_47",jn={modal:rz,titleDesc:oz,reasonList:iz,reason:az,active:lz,reasonNo:sz,tipsContainer:cz,tips:uz},Rc=q5();function dz(){return nr(Rc)}function fz(e){const t=dz();if(e)return t.get(e)}function mz({show:e,onHide:t,item:n}){const[r,o]=u.useState(!1),i=lt(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await tz(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),Dy();g?Ct("已标记不想看"):zy(),g&&(Rc.set(n.param,{...h}),t());}),a=u.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),l=()=>!!e&&!!n,s=["1","2","3","4","5","6"];Qt(s,h=>{if(!l()||!s.includes(h.key))return;const g=Number(h.key)-1;d(g);const v=document.querySelectorAll(`.${jn.reason}`)[g]||null;v==null||v.click();});const[c,d]=u.useState(a.length-1);H5(()=>{d(a.length-1);},[a]);const f=h=>()=>{if(!l())return;const g=c+h;g<0||g>a.length-1||d(g);};Qt("leftarrow",f(-1)),Qt("rightarrow",f(1)),Qt("uparrow",f(-2)),Qt("downarrow",f(2)),Qt("enter",h=>{var g;l()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${jn.reason}.${jn.active}`))==null||g.click()));});const m=u.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return pe(_m,{show:e,onHide:t,clsModal:jn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[pe("div",{className:mr.modalHeader,children:[pe("div",{className:mr.modalTitle,children:["我不想看",D("span",{className:jn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Rm,{onClick:t})]}),pe("div",{className:mr.modalBody,children:[D("div",{className:jn.reasonList,children:a.map((h,g)=>pe("button",{className:W(jn.reason,{[jn.active]:g===c}),style:{...g===c&&{borderColor:Lr}},"data-id":h.id,onClick:()=>{d(g),i(h);},disabled:r,children:[D("span",{className:jn.reasonNo,style:{backgroundColor:Lr},children:g+1}),h.name]},h.id))}),pe("div",{className:jn.tipsContainer,children:[pe("div",{className:jn.tips,children:[D(Dt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&pe("div",{className:jn.tips,children:[D(Dt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Gl={show:!1,onHide:cC,item:null},sC=Jn({value:Gl.show}),hz=function(){return nr(sC).value};function cC(){setTimeout(()=>{uC({show:!1,item:null});});}function uC(e){Object.assign(Gl,e),sC.value=Gl.show,gz().render(D(mz,{...Gl,onHide:cC}));}let Ru;function gz(){if(!Ru){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Ru=Ic(e);}return Ru}function vz(e){e!=null&&e.param&&Rc.has(e.param)||uC({show:!0,item:e});}const dC=u__namespace.createContext(null),pz=dC.Provider,fC=u__namespace.createContext(null),bz=fC.Provider,yz=new _t("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Cz=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},kt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Sz=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:d,lineWidth:f,dotSize:m,colorBgContainerDisabled:h,colorTextDisabled:g,paddingXS:v,dotColorDisabled:p,lineType:y,radioDotDisabledSize:b,wireframe:E,colorWhite:M}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:yz,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},Eo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:E?r:M,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:d,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:E?c:r,"&::after":{transform:`scale(${m/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},wz=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:E,buttonSolidCheckedColor:M,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:$,colorPrimaryHover:I,colorPrimaryActive:L}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:`${n-o*2}px`,background:f,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},Eo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:E,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:M,background:$,borderColor:$,"&:hover":{color:M,background:I,borderColor:I},"&:active":{color:M,background:L,borderColor:L}},"&-disabled":{color:w,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:a,boxShadow:"none"}}}},dv=e=>e-4*2,mC=Ut("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=dv(r),l=mt(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [Cz(l),Sz(l),wz(l)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d}=e,f=4,m=i,h=t?dv(m):m-(f+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var $z=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xz=(e,t)=>{var n,r;const o=u__namespace.useContext(dC),i=u__namespace.useContext(fC),{getPrefixCls:a,direction:l,radio:s}=u__namespace.useContext(ot),c=u__namespace.useRef(null),d=Sn(t,c),{isFormItemInput:f}=u__namespace.useContext(Vn),m=I=>{var L,R;(L=e.onChange)===null||L===void 0||L.call(e,I),(R=o==null?void 0:o.onChange)===null||R===void 0||R.call(o,I);},{prefixCls:h,className:g,rootClassName:v,children:p,style:y}=e,b=$z(e,["prefixCls","className","rootClassName","children","style"]),E=a("radio",h),M=((o==null?void 0:o.optionType)||i)==="button"?`${E}-button`:E,[w,x]=mC(E),S=Object.assign({},b),C=u__namespace.useContext(br);o&&(S.name=o.name,S.onChange=m,S.checked=e.value===o.value,S.disabled=(n=S.disabled)!==null&&n!==void 0?n:o.disabled),S.disabled=(r=S.disabled)!==null&&r!==void 0?r:C;const $=W(`${M}-wrapper`,{[`${M}-wrapper-checked`]:S.checked,[`${M}-wrapper-disabled`]:S.disabled,[`${M}-wrapper-rtl`]:l==="rtl",[`${M}-wrapper-in-form-item`]:f},s==null?void 0:s.className,g,v,x);return w(u__namespace.createElement("label",{className:$,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},u__namespace.createElement(dy,Object.assign({},S,{type:"radio",prefixCls:M,ref:d})),p!==void 0?u__namespace.createElement("span",null,p):null))},Ez=u__namespace.forwardRef(xz),$s=Ez,Iz=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(ot),[o,i]=zt(e.defaultValue,{value:e.value}),a=R=>{const O=o,P=R.target.value;"value"in e||i(P);const{onChange:_}=e;_&&P!==O&&_(R);},{prefixCls:l,className:s,rootClassName:c,options:d,buttonStyle:f="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:y,onMouseLeave:b,onFocus:E,onBlur:M}=e,w=n("radio",l),x=`${w}-group`,[S,C]=mC(w);let $=h;d&&d.length>0&&($=d.map(R=>typeof R=="string"||typeof R=="number"?u__namespace.createElement($s,{key:R.toString(),prefixCls:w,disabled:m,value:R,checked:o===R},R):u__namespace.createElement($s,{key:`radio-group-value-options-${R.value}`,prefixCls:w,disabled:R.disabled||m,value:R.value,checked:o===R.value,title:R.title,style:R.style},R.label)));const I=kn(g),L=W(x,`${x}-${f}`,{[`${x}-${I}`]:I,[`${x}-rtl`]:r==="rtl"},s,c,C);return S(u__namespace.createElement("div",Object.assign({},Ci(e,{aria:!0,data:!0}),{className:L,style:v,onMouseEnter:y,onMouseLeave:b,onFocus:E,onBlur:M,id:p,ref:t}),u__namespace.createElement(pz,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},$)))}),Oz=u__namespace.memo(Iz);var Pz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mz=(e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(ot),{prefixCls:r}=e,o=Pz(e,["prefixCls"]),i=n("radio",r);return u__namespace.createElement(bz,{value:"button"},u__namespace.createElement($s,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},_z=u__namespace.forwardRef(Mz),Tc=$s;Tc.Button=_z;Tc.Group=Oz;Tc.__ANT_RADIO=!0;const fv=Tc;function Rz(e,t){const n=Object.keys(e),r=Ef(JSON.parse(localStorage.getItem(t)||"{}"),n),o=Jn({...e,...r});return wm(o,()=>{const i=bs(o);localStorage.setItem(t,JSON.stringify(i));}),o}const Tz=`${nn}-video-source-tab`,Nm=Rz({value:"recommend-app"},Tz),mv={name:"qamjgr",styles:"margin-right:4px"},xs=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"onlyFollow",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],hv=xs.reduce((e,t)=>({...e,[t.key]:t}),{}),Nz=xs.map(e=>e.key);function hC(e,t){return Nz.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function al(){return hC(nr(Nm).value,Hy())}function kz(){return hC(Nm.value,rl())}function Lz(){return Ct("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const Az={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},Dz={name:"s0vnfv",styles:"height:32px"};var zz={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},jz={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function gC({onRefresh:e}){const t=Hy(),n=al(),{styleUseStandardVideoSourceTab:r}=In();return pe(St,{children:[D(fv.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:o=>{o.target.blur();},onChange:o=>{const i=o.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!LA())return Lz();Nm.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:xs.map(({key:o,label:i,icon:a,iconProps:l})=>D(fv.Button,{css:[Az,r&&Dz,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:pe("span",{css:jz,children:[D(Dt,{name:a,...l,size:(l==null?void 0:l.size)||18,css:mv}),i]})},o))}),D(ys,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(St,{children:xs.map(({key:o,label:i,icon:a,iconProps:l,desc:s})=>pe("div",{css:zz,children:[D(Dt,{name:a,...l,size:(l==null?void 0:l.size)||18,css:mv}),i,": ",s]},o))})})]})}var Bz=ie.ESC,Hz=ie.TAB;function Fz(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u__namespace.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1);}},s=function(){var f;return (f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case Bz:l();break;case Hz:{var m=!1;a.current||(m=s()),m?f.preventDefault():l();break}}};u__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&It(s,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var Wz=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Sn(t,i==null?void 0:i.ref);return u.createElement(u.Fragment,null,r&&u.createElement("div",{className:"".concat(o,"-arrow")}),u.cloneElement(i,{ref:No(i)?a:void 0}))}),Xo={adjustX:1,adjustY:1},Yo=[0,0],Vz={topLeft:{points:["bl","tl"],overflow:Xo,offset:[0,-4],targetOffset:Yo},top:{points:["bc","tc"],overflow:Xo,offset:[0,-4],targetOffset:Yo},topRight:{points:["br","tr"],overflow:Xo,offset:[0,-4],targetOffset:Yo},bottomLeft:{points:["tl","bl"],overflow:Xo,offset:[0,4],targetOffset:Yo},bottom:{points:["tc","bc"],overflow:Xo,offset:[0,4],targetOffset:Yo},bottomRight:{points:["tr","br"],overflow:Xo,offset:[0,4],targetOffset:Yo}},Kz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Gz(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?Vz:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,E=e.visible,M=e.trigger,w=M===void 0?["hover"]:M,x=e.autoFocus,S=e.overlay,C=e.children,$=e.onVisibleChange,I=Qe(e,Kz),L=u.useState(),R=G(L,2),O=R[0],P=R[1],_="visible"in e?E:O,k=u.useRef(null),N=u.useRef(null),A=u.useRef(null);u.useImperativeHandle(t,function(){return k.current});var z=function(K){P(K),$==null||$(K);};Fz({visible:_,triggerRef:A,onVisibleChange:z,autoFocus:x,overlayRef:N});var F=function(K){var Y=e.onOverlayClick;P(!1),Y&&Y(K);},V=function(){return u.createElement(Wz,{ref:N,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?V:V()},H=function(){var K=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?K:!Y},B=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},X=u.cloneElement(C,{className:W((n=C.props)===null||n===void 0?void 0:n.className,_&&B()),ref:No(C)?Sn(A,C.ref):void 0}),J=p;return !J&&w.indexOf("contextMenu")!==-1&&(J=["click"]),u.createElement(lc,Ce({builtinPlacements:h},I,{prefixCls:a,ref:k,popupClassName:W(y,U({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:w,showAction:v,hideAction:J,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:_,stretch:H()?"minWidth":"",popup:j(),onPopupVisibleChange:z,onPopupClick:F,getPopupContainer:g}),X)}const vC=u.forwardRef(Gz);var pC=u__namespace.createContext(null);function km(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function bC(e){var t=u__namespace.useContext(pC);return km(t,e)}var Uz=["children","locked"],er=u__namespace.createContext(null);function Xz(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ta(e){var t=e.children,n=e.locked,r=Qe(e,Uz),o=u__namespace.useContext(er),i=Ha(function(){return Xz(o,r)},[o,r],function(a,l){return !n&&(a[0]!==l[0]||!tc(a[1],l[1],!0))});return u__namespace.createElement(er.Provider,{value:i},t)}var Yz=[],yC=u__namespace.createContext(null);function Nc(){return u__namespace.useContext(yC)}var CC=u__namespace.createContext(Yz);function ji(e){var t=u__namespace.useContext(CC);return u__namespace.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var SC=u__namespace.createContext(null),Lm=u__namespace.createContext({});function gv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(zf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function qz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return gv(r,t)});return gv(e,t)&&n.unshift(e),n}var Td=ie.LEFT,Nd=ie.RIGHT,kd=ie.UP,Ul=ie.DOWN,Xl=ie.ENTER,wC=ie.ESC,qi=ie.HOME,Zi=ie.END,vv=[kd,Ul,Td,Nd];function Zz(e,t,n,r){var o,i,a,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===Xl)return {inlineTrigger:!0};var m=(o={},U(o,kd,s),U(o,Ul,c),o),h=(i={},U(i,Td,n?c:s),U(i,Nd,n?s:c),U(i,Ul,d),U(i,Xl,d),i),g=(a={},U(a,kd,s),U(a,Ul,c),U(a,Xl,d),U(a,wC,f),U(a,Td,n?d:f),U(a,Nd,n?f:d),a),v={inline:m,horizontal:h,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},p=(l=v["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(p){case s:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case f:return {offset:-1,sibling:!1};case d:return {offset:1,sibling:!1};default:return null}}function Qz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Jz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function $C(e,t){var n=qz(e,!0);return n.filter(function(r){return t.has(r)})}function pv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=$C(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function ej(e,t,n,r,o,i,a,l,s,c){var d=u__namespace.useRef(),f=u__namespace.useRef();f.current=t;var m=function(){It.cancel(d.current);};return u__namespace.useEffect(function(){return function(){m();}},[]),function(h){var g=h.which;if([].concat(vv,[Xl,wC,qi,Zi]).includes(g)){var v,p,y,b=function(){v=new Set,p=new Map,y=new Map;var _=i();return _.forEach(function(k){var N=document.querySelector("[data-menu-id='".concat(km(r,k),"']"));N&&(v.add(N),y.set(N,k),p.set(k,N));}),v};b();var E=p.get(t),M=Jz(E,v),w=y.get(M),x=Zz(e,a(w,!0).length===1,n,g);if(!x&&g!==qi&&g!==Zi)return;(vv.includes(g)||[qi,Zi].includes(g))&&h.preventDefault();var S=function(_){if(_){var k=_,N=_.querySelector("a");N!=null&&N.getAttribute("href")&&(k=N);var A=y.get(_);l(A),m(),d.current=It(function(){f.current===A&&k.focus();});}};if([qi,Zi].includes(g)||x.sibling||!M){var C;!M||e==="inline"?C=o.current:C=Qz(M);var $,I=$C(C,v);g===qi?$=I[0]:g===Zi?$=I[I.length-1]:$=pv(C,v,M,x.offset),S($);}else if(x.inlineTrigger)s(w);else if(x.offset>0)s(w,!0),m(),d.current=It(function(){b();var P=M.getAttribute("aria-controls"),_=document.getElementById(P),k=pv(_,v);S(k);},5);else if(x.offset<0){var L=a(w,!0),R=L[L.length-2],O=p.get(R);s(R,!1),S(O);}}c==null||c(h);}}function tj(e){Promise.resolve().then(e);}var Am="__RC_UTIL_PATH_SPLIT__",bv=function(t){return t.join(Am)},nj=function(t){return t.split(Am)},Ld="rc-menu-more";function rj(){var e=u__namespace.useState({}),t=G(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u__namespace.useState([]),a=G(i,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({});},m=u.useCallback(function(E,M){var w=bv(M);o.current.set(w,E),r.current.set(E,w),c.current+=1;var x=c.current;tj(function(){x===c.current&&f();});},[]),h=u.useCallback(function(E,M){var w=bv(M);o.current.delete(w),r.current.delete(E);},[]),g=u.useCallback(function(E){s(E);},[]),v=u.useCallback(function(E,M){var w=r.current.get(E)||"",x=nj(w);return M&&l.includes(x[0])&&x.unshift(Ld),x},[l]),p=u.useCallback(function(E,M){return E.some(function(w){var x=v(w,!0);return x.includes(M)})},[v]),y=function(){var M=Ge(r.current.keys());return l.length&&M.push(Ld),M},b=u.useCallback(function(E){var M="".concat(r.current.get(E)).concat(Am),w=new Set;return Ge(o.current.keys()).forEach(function(x){x.startsWith(M)&&w.add(o.current.get(x));}),w},[]);return u__namespace.useEffect(function(){return function(){d.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:y,getSubPathKeys:b}}function ra(e){var t=u__namespace.useRef(e);t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var oj=Math.random().toFixed(5).toString().slice(2),yv=0;function ij(e){var t=zt(e,{value:e}),n=G(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){yv+=1;var i="".concat(oj,"-").concat(yv);o("rc-menu-uuid-".concat(i));},[]),r}function xC(e,t,n,r){var o=u__namespace.useContext(er),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e);}),s}function EC(e){var t=u__namespace.useContext(er),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function IC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=u__namespace.createElement(t,Z({},n)):o=t,o||r||null}var aj=["item"];function Es(e){var t=e.item,n=Qe(e,aj);return Object.defineProperty(n,"item",{get:function(){return pr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var lj=["title","attribute","elementRef"],sj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],cj=["active"],uj=function(e){to(n,e);var t=no(n);function n(){return pn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=Qe(o,lj),c=vn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u__namespace.createElement(fr.Item,Ce({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(u__namespace.Component),dj=u__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,g=e.onFocus,v=Qe(e,sj),p=bC(i),y=u__namespace.useContext(er),b=y.prefixCls,E=y.onItemClick,M=y.disabled,w=y.overflowDisabled,x=y.itemIcon,S=y.selectedKeys,C=y.onActive,$=u__namespace.useContext(Lm),I=$._internalRenderMenuItem,L="".concat(b,"-item"),R=u__namespace.useRef(),O=u__namespace.useRef(),P=M||a,_=Va(t,O),k=ji(i),N=function(re){return {key:i,keyPath:Ge(k).reverse(),item:R.current,domEvent:re}},A=l||x,z=xC(i,P,d,f),F=z.active,V=Qe(z,cj),j=S.includes(i),H=EC(k.length),B=function(re){if(!P){var ue=N(re);m==null||m(Es(ue)),E(ue);}},X=function(re){if(h==null||h(re),re.which===ie.ENTER){var ue=N(re);m==null||m(Es(ue)),E(ue);}},J=function(re){C(i),g==null||g(re);},Q={};e.role==="option"&&(Q["aria-selected"]=j);var K=u__namespace.createElement(uj,Ce({ref:R,elementRef:_,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&p?null:p},v,V,Q,{component:"li","aria-disabled":a,style:Z(Z({},H),r),className:W(L,(n={},U(n,"".concat(L,"-active"),F),U(n,"".concat(L,"-selected"),j),U(n,"".concat(L,"-disabled"),P),n),o),onClick:B,onKeyDown:X,onFocus:J}),s,u__namespace.createElement(IC,{props:Z(Z({},e),{},{isSelected:j}),icon:A}));return I&&(K=I(K,e,{selected:j})),K});function fj(e,t){var n=e.eventKey,r=Nc(),o=ji(n);return u__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:u__namespace.createElement(dj,Ce({},e,{ref:t}))}const ll=u__namespace.forwardRef(fj);var mj=["className","children"],hj=function(t,n){var r=t.className,o=t.children,i=Qe(t,mj),a=u__namespace.useContext(er),l=a.prefixCls,s=a.mode,c=a.rtl;return u__namespace.createElement("ul",Ce({className:W(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Dm=u__namespace.forwardRef(hj);Dm.displayName="SubMenuList";function zm(e,t){return Qn(e).map(function(n,r){if(u__namespace.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(Ge(t),[r]).join("-")));var c={key:l,eventKey:l};return u__namespace.cloneElement(n,c)}return n})}var mn={adjustX:1,adjustY:1},gj={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},leftTop:{points:["tr","tl"],overflow:mn},leftBottom:{points:["br","bl"],overflow:mn},rightTop:{points:["tl","tr"],overflow:mn},rightBottom:{points:["bl","br"],overflow:mn}},vj={topLeft:{points:["bl","tl"],overflow:mn},topRight:{points:["br","tr"],overflow:mn},bottomLeft:{points:["tl","bl"],overflow:mn},bottomRight:{points:["tr","br"],overflow:mn},rightTop:{points:["tr","tl"],overflow:mn},rightBottom:{points:["br","bl"],overflow:mn},leftTop:{points:["tl","tr"],overflow:mn},leftBottom:{points:["bl","br"],overflow:mn}};function OC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var pj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bj(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,l=e.disabled,s=e.mode,c=e.onVisibleChange,d=u__namespace.useContext(er),f=d.getPopupContainer,m=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,p=d.triggerSubMenuAction,y=d.forceSubMenuRender,b=d.rootClassName,E=d.motion,M=d.defaultMotions,w=u__namespace.useState(!1),x=G(w,2),S=x[0],C=x[1],$=Z(m?Z({},vj):Z({},gj),v),I=pj[s],L=OC(s,E,M),R=u__namespace.useRef(L);s!=="inline"&&(R.current=L);var O=Z(Z({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=u__namespace.useRef();return u__namespace.useEffect(function(){return P.current=It(function(){C(n);}),function(){It.cancel(P.current);}},[n]),u__namespace.createElement(lc,{prefixCls:t,popupClassName:W("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),m),i,b),stretch:s==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:$,popupPlacement:I,popupVisible:S,popup:o,popupAlign:a&&{offset:a},action:l?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:c,forceRender:y,popupMotion:O},r)}function yj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=u__namespace.useContext(er),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,d=a.defaultMotions,f=a.mode,m=u__namespace.useRef(!1);m.current=f===i;var h=u__namespace.useState(!m.current),g=G(h,2),v=g[0],p=g[1],y=m.current?n:!1;u__namespace.useEffect(function(){m.current&&p(!1);},[f]);var b=Z({},OC(i,c,d));r.length>1&&(b.motionAppear=!1);var E=b.onVisibleChanged;return b.onVisibleChanged=function(M){return !m.current&&!M&&p(!0),E==null?void 0:E(M)},v?null:u__namespace.createElement(Ta,{mode:i,locked:!m.current},u__namespace.createElement(ro,Ce({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(M){var w=M.className,x=M.style;return u__namespace.createElement(Dm,{id:t,className:w,style:x},o)}))}var Cj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Sj=["active"],wj=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,c=t.children,d=t.itemIcon,f=t.expandIcon,m=t.popupClassName,h=t.popupOffset,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,y=t.onTitleClick,b=t.onTitleMouseEnter,E=t.onTitleMouseLeave,M=Qe(t,Cj),w=bC(a),x=u__namespace.useContext(er),S=x.prefixCls,C=x.mode,$=x.openKeys,I=x.disabled,L=x.overflowDisabled,R=x.activeKey,O=x.selectedKeys,P=x.itemIcon,_=x.expandIcon,k=x.onItemClick,N=x.onOpenChange,A=x.onActive,z=u__namespace.useContext(Lm),F=z._internalRenderSubMenuItem,V=u__namespace.useContext(SC),j=V.isSubPathKey,H=ji(),B="".concat(S,"-submenu"),X=I||l,J=u__namespace.useRef(),Q=u__namespace.useRef(),K=d||P,Y=f||_,re=$.includes(a),ue=!L&&re,se=j(O,a),ee=xC(a,X,b,E),ae=ee.active,q=Qe(ee,Sj),te=u__namespace.useState(!1),ce=G(te,2),fe=ce[0],he=ce[1],ge=function(xe){X||he(xe);},be=function(xe){ge(!0),v==null||v({key:a,domEvent:xe});},Re=function(xe){ge(!1),p==null||p({key:a,domEvent:xe});},De=u__namespace.useMemo(function(){return ae||(C!=="inline"?fe||j([R],a):!1)},[C,ae,R,fe,a,j]),$e=EC(H.length),we=function(xe){X||(y==null||y({key:a,domEvent:xe}),C==="inline"&&N(a,!re));},Te=ra(function(ye){g==null||g(Es(ye)),k(ye);}),Je=function(xe){C!=="inline"&&N(a,xe);},Ve=function(){A(a);},Ye=w&&"".concat(w,"-popup"),Me=u__namespace.createElement("div",Ce({role:"menuitem",style:$e,className:"".concat(B,"-title"),tabIndex:X?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":L&&w?null:w,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":X,onClick:we,onFocus:Ve},q),i,u__namespace.createElement(IC,{icon:C!=="horizontal"?Y:null,props:Z(Z({},t),{},{isOpen:ue,isSubMenu:!0})},u__namespace.createElement("i",{className:"".concat(B,"-arrow")}))),ke=u__namespace.useRef(C);if(C!=="inline"&&H.length>1?ke.current="vertical":ke.current=C,!L){var qe=ke.current;Me=u__namespace.createElement(bj,{mode:qe,prefixCls:B,visible:!s&&ue&&C!=="inline",popupClassName:m,popupOffset:h,popup:u__namespace.createElement(Ta,{mode:qe==="horizontal"?"vertical":qe},u__namespace.createElement(Dm,{id:Ye,ref:Q},c)),disabled:X,onVisibleChange:Je},Me);}var et=u__namespace.createElement(fr.Item,Ce({role:"none"},M,{component:"li",style:r,className:W(B,"".concat(B,"-").concat(C),o,(n={},U(n,"".concat(B,"-open"),ue),U(n,"".concat(B,"-active"),De),U(n,"".concat(B,"-selected"),se),U(n,"".concat(B,"-disabled"),X),n)),onMouseEnter:be,onMouseLeave:Re}),Me,!L&&u__namespace.createElement(yj,{id:Ye,open:ue,keyPath:H},c));return F&&(et=F(et,t,{selected:se,active:De,open:ue,disabled:X})),u__namespace.createElement(Ta,{onItemClick:Te,mode:C==="horizontal"?"vertical":C,itemIcon:K,expandIcon:Y},et)};function kc(e){var t=e.eventKey,n=e.children,r=ji(t),o=zm(n,r),i=Nc();u__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=u__namespace.createElement(wj,e,o),u__namespace.createElement(CC.Provider,{value:r},a)}var $j=["className","title","eventKey","children"],xj=["children"],Ej=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Qe(t,$j),a=u__namespace.useContext(er),l=a.prefixCls,s="".concat(l,"-item-group");return u__namespace.createElement("li",Ce({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:W(s,n)}),u__namespace.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u__namespace.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Lc(e){var t=e.children,n=Qe(e,xj),r=ji(n.eventKey),o=zm(t,r),i=Nc();return i?o:u__namespace.createElement(Ej,vn(n,["warnKey"]),o)}function jm(e){var t=e.className,n=e.style,r=u__namespace.useContext(er),o=r.prefixCls,i=Nc();return i?null:u__namespace.createElement("li",{className:W("".concat(o,"-item-divider"),t),style:n})}var Ij=["label","children","key","type"];function Ad(e){return (e||[]).map(function(t,n){if(t&&dt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,s=Qe(r,Ij),c=a??"tmp-".concat(n);return i||l==="group"?l==="group"?u__namespace.createElement(Lc,Ce({key:c},s,{title:o}),Ad(i)):u__namespace.createElement(kc,Ce({key:c},s,{title:o}),Ad(i)):l==="divider"?u__namespace.createElement(jm,Ce({key:c},s)):u__namespace.createElement(ll,Ce({key:c},s),o)}return null}).filter(function(t){return t})}function Oj(e,t,n){var r=e;return t&&(r=Ad(t)),zm(r,n)}var Pj=["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"],qo=[],Mj=u__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,y=p===void 0?"vertical":p,b=o.inlineCollapsed,E=o.disabled,M=o.disabledOverflow,w=o.subMenuOpenDelay,x=w===void 0?.1:w,S=o.subMenuCloseDelay,C=S===void 0?.1:S,$=o.forceSubMenuRender,I=o.defaultOpenKeys,L=o.openKeys,R=o.activeKey,O=o.defaultActiveFirst,P=o.selectable,_=P===void 0?!0:P,k=o.multiple,N=k===void 0?!1:k,A=o.defaultSelectedKeys,z=o.selectedKeys,F=o.onSelect,V=o.onDeselect,j=o.inlineIndent,H=j===void 0?24:j,B=o.motion,X=o.defaultMotions,J=o.triggerSubMenuAction,Q=J===void 0?"hover":J,K=o.builtinPlacements,Y=o.itemIcon,re=o.expandIcon,ue=o.overflowedIndicator,se=ue===void 0?"...":ue,ee=o.overflowedIndicatorPopupClassName,ae=o.getPopupContainer,q=o.onClick,te=o.onOpenChange,ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var fe=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,ge=Qe(o,Pj),be=u__namespace.useMemo(function(){return Oj(h,m,qo)},[h,m]),Re=u__namespace.useState(!1),De=G(Re,2),$e=De[0],we=De[1],Te=u__namespace.useRef(),Je=ij(v),Ve=g==="rtl",Ye=zt(I,{value:L,postState:function(Oe){return Oe||qo}}),Me=G(Ye,2),ke=Me[0],qe=Me[1],et=function(Oe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function it(){qe(Oe),te==null||te(Oe);}Ie?Qv.flushSync(it):it();},ye=u__namespace.useState(ke),xe=G(ye,2),je=xe[0],Le=xe[1],rt=u__namespace.useRef(!1),Ue=u__namespace.useMemo(function(){return (y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),de=G(Ue,2),ne=de[0],me=de[1],le=ne==="inline",Ne=u__namespace.useState(ne),tt=G(Ne,2),ct=tt[0],Ae=tt[1],Se=u__namespace.useState(me),ve=G(Se,2),Ee=ve[0],_e=ve[1];u__namespace.useEffect(function(){Ae(ne),_e(me),rt.current&&(le?qe(je):et(qo));},[ne,me]);var Ze=u__namespace.useState(0),ft=G(Ze,2),vt=ft[0],Vt=ft[1],jt=vt>=be.length-1||ct!=="horizontal"||M;u__namespace.useEffect(function(){le&&Le(ke);},[ke]),u__namespace.useEffect(function(){return rt.current=!0,function(){rt.current=!1;}},[]);var Fe=rj(),Xe=Fe.registerPath,Be=Fe.unregisterPath,pt=Fe.refreshOverflowKeys,ht=Fe.isSubPathKey,Yt=Fe.getKeyPath,He=Fe.getKeys,Ke=Fe.getSubPathKeys,ut=u__namespace.useMemo(function(){return {registerPath:Xe,unregisterPath:Be}},[Xe,Be]),wt=u__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);u__namespace.useEffect(function(){pt(jt?qo:be.slice(vt+1).map(function(Ot){return Ot.key}));},[vt,jt]);var Kt=zt(R||O&&((n=be[0])===null||n===void 0?void 0:n.key),{value:R}),Lt=G(Kt,2),un=Lt[0],$n=Lt[1],Kn=ra(function(Ot){$n(Ot);}),yr=ra(function(){$n(void 0);});u.useImperativeHandle(t,function(){return {list:Te.current,focus:function(Oe){var Ie,it=un??((Ie=be.find(function(Gt){return !Gt.props.disabled}))===null||Ie===void 0?void 0:Ie.key);if(it){var bt,gt,Pt;(bt=Te.current)===null||bt===void 0||(gt=bt.querySelector("li[data-menu-id='".concat(km(Je,it),"']")))===null||gt===void 0||(Pt=gt.focus)===null||Pt===void 0||Pt.call(gt,Oe);}}}});var rr=zt(A||[],{value:z,postState:function(Oe){return Array.isArray(Oe)?Oe:Oe==null?qo:[Oe]}}),Ln=G(rr,2),yn=Ln[0],Cr=Ln[1],oo=function(Oe){if(_){var Ie=Oe.key,it=yn.includes(Ie),bt;N?it?bt=yn.filter(function(Pt){return Pt!==Ie}):bt=[].concat(Ge(yn),[Ie]):bt=[Ie],Cr(bt);var gt=Z(Z({},Oe),{},{selectedKeys:bt});it?V==null||V(gt):F==null||F(gt);}!N&&ke.length&&ct!=="inline"&&et(qo);},Sr=ra(function(Ot){q==null||q(Es(Ot)),oo(Ot);}),wr=ra(function(Ot,Oe){var Ie=ke.filter(function(bt){return bt!==Ot});if(Oe)Ie.push(Ot);else if(ct!=="inline"){var it=Ke(Ot);Ie=Ie.filter(function(bt){return !it.has(bt)});}tc(ke,Ie,!0)||et(Ie,!0);}),$r=function(Oe,Ie){var it=Ie??!ke.includes(Oe);wr(Oe,it);},io=ej(ct,un,Ve,Je,Te,He,Yt,$n,$r,ce);u__namespace.useEffect(function(){we(!0);},[]);var ao=u__namespace.useMemo(function(){return {_internalRenderMenuItem:fe,_internalRenderSubMenuItem:he}},[fe,he]),lo=ct!=="horizontal"||M?be:be.map(function(Ot,Oe){return u__namespace.createElement(Ta,{key:Ot.key,overflowDisabled:Oe>vt},Ot)}),xr=u__namespace.createElement(fr,Ce({id:v,ref:Te,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ll,className:W(a,"".concat(a,"-root"),"".concat(a,"-").concat(ct),c,(r={},U(r,"".concat(a,"-inline-collapsed"),Ee),U(r,"".concat(a,"-rtl"),Ve),r),l),dir:g,style:s,role:"menu",tabIndex:f,data:lo,renderRawItem:function(Oe){return Oe},renderRawRest:function(Oe){var Ie=Oe.length,it=Ie?be.slice(-Ie):null;return u__namespace.createElement(kc,{eventKey:Ld,title:se,disabled:jt,internalPopupClose:Ie===0,popupClassName:ee},it)},maxCount:ct!=="horizontal"||M?fr.INVALIDATE:fr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oe){Vt(Oe);},onKeyDown:io},ge));return u__namespace.createElement(Lm.Provider,{value:ao},u__namespace.createElement(pC.Provider,{value:Je},u__namespace.createElement(Ta,{prefixCls:a,rootClassName:l,mode:ct,openKeys:ke,rtl:Ve,disabled:E,motion:$e?B:null,defaultMotions:$e?X:null,activeKey:un,onActive:Kn,onInactive:yr,selectedKeys:yn,inlineIndent:H,subMenuOpenDelay:x,subMenuCloseDelay:C,forceSubMenuRender:$,builtinPlacements:K,triggerSubMenuAction:Q,getPopupContainer:ae,itemIcon:Y,expandIcon:re,onItemClick:Sr,onOpenChange:wr},u__namespace.createElement(SC.Provider,{value:wt},xr),u__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},u__namespace.createElement(yC.Provider,{value:ut},be)))))}),Bi=Mj;Bi.Item=ll;Bi.SubMenu=kc;Bi.ItemGroup=Lc;Bi.Divider=jm;var _j={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 Rj=_j;var Tj=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:Rj}))};const Is=u__namespace.forwardRef(Tj);const PC=u__namespace.createContext({});var Nj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kj=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Nj(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=u__namespace.useContext(ot),a=i("menu",t),l=W({[`${a}-item-divider-dashed`]:!!r},n);return u__namespace.createElement(jm,Object.assign({className:l},o))},MC=kj,Lj=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Os=Lj,Aj=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=u__namespace.useContext(Os),m=b=>{const E=u__namespace.createElement("span",{className:`${l}-title-content`},r);return (!o||Qr(r)&&r.type==="span")&&r&&b&&s&&typeof r=="string"?u__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:h}=u__namespace.useContext(PC);let g=i;typeof i>"u"?g=s?r:"":i===!1&&(g="");const v={title:g};!h&&!f&&(v.title=null,v.open=!1);const p=Qn(r).length;let y=u__namespace.createElement(ll,Object.assign({},vn(e,["title","icon","danger"]),{className:W({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),Tn(o,{className:W(Qr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(y=u__namespace.createElement(Ua,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},_C=Aj,Dj=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=u__namespace.useContext(Os),{prefixCls:l,inlineCollapsed:s,theme:c}=a,d=ji();let f;if(!r)f=s&&!d.length&&o&&typeof o=="string"?u__namespace.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):u__namespace.createElement("span",{className:`${l}-title-content`},o);else {const h=Qr(o)&&o.type==="span";f=u__namespace.createElement(u__namespace.Fragment,null,Tn(r,{className:W(Qr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:u__namespace.createElement("span",{className:`${l}-title-content`},o));}const m=u__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return u__namespace.createElement(Os.Provider,{value:m},u__namespace.createElement(kc,Object.assign({},vn(e,["icon"]),{title:f,popupClassName:W(l,n,`${l}-${i||c}`)})))},RC=Dj;var zj={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 jj=zj;var Bj=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:jj}))};const Bm=u__namespace.forwardRef(Bj);var Hj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ps=u__namespace.createContext(null),Fj=u__namespace.forwardRef((e,t)=>{const{children:n}=e,r=Hj(e,["children"]),o=u__namespace.useContext(Ps),i=u__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return u__namespace.createElement(Ps.Provider,{value:i},u__namespace.createElement(bi,null,u__namespace.cloneElement(n,{ref:t})))});var Wj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dd(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=Wj(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||l==="group"?l==="group"?u__namespace.createElement(Lc,Object.assign({key:c},s,{title:o}),Dd(i)):u__namespace.createElement(RC,Object.assign({key:c},s,{title:o}),Dd(i)):l==="divider"?u__namespace.createElement(MC,Object.assign({key:c},s)):u__namespace.createElement(_C,Object.assign({key:c},s),o)}return null}).filter(t=>t)}function Vj(e){return u__namespace.useMemo(()=>e&&Dd(e),[e])}const Kj=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Gj=Kj,Uj=e=>{let{componentCls:t,menuArrowOffset:n}=e;return {[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},Xj=Uj,Cv=e=>Object.assign({},Eo(e)),Yj=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:y,lineType:b,colorSplit:E,itemDisabledColor:M,dangerItemColor:w,dangerItemHoverColor:x,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:$,itemHoverBg:I,itemActiveBg:L,menuSubMenuBg:R,horizontalItemSelectedColor:O,horizontalItemSelectedBg:P,horizontalItemBorderRadius:_,horizontalItemHoverBg:k,popupBg:N}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Cv(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${M} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:L}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:L}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:$}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Cv(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:c,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Sv=Yj,wv=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e,s=o+i+a;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:s}}},qj=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,y={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wv(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wv(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f/2}px - ${d}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},xo),{paddingInline:h})}}]},Zj=qj,$v=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},To()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xv=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Qj=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:y,groupTitleLineHeight:b,groupTitleFontSize:E}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},nd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),nd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${s}px`,fontSize:E,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$v(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${s}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:y},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},$v(e)),xv(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),xv(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Jj=(e,t)=>Ut("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:l,fontSize:s,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:y,darkItemHoverColor:b,darkItemDisabledColor:E,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:x}=r,S=s/7*5,C=mt(r,{menuArrowSize:S,menuHorizontalHeight:l*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),$=mt(C,{itemColor:c,itemHoverColor:b,groupTitleColor:y,itemSelectedColor:h,itemBg:f,popupBg:f,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:E,dangerItemColor:d,dangerItemHoverColor:M,dangerItemSelectedColor:w,dangerItemActiveBg:x,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [Qj(C),Gj(C),Zj(C),Sv(C,"light"),Sv($,"dark"),Xj(C),r0(C),Jr(C,"slide-up"),Jr(C,"slide-down"),cc(C,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:y,lineHeight:b,colorBgElevated:E,marginXXS:M,padding:w,fontSize:x,controlHeightSM:S,fontSizeLG:C,colorTextLightSolid:$,colorErrorHover:I}=r,L=new Wt($).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:E,itemMarginBlock:M,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:x,iconMarginInlineEnd:S-x,collapsedIconSize:C,groupTitleFontSize:x,darkItemDisabledColor:new Wt($).setAlpha(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:$,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i}},{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"]]})(e);var e6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const t6=u.forwardRef((e,t)=>{var n,r;const o=u__namespace.useContext(Ps),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=u__namespace.useContext(ot),d=a(),{prefixCls:f,className:m,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:y,siderCollapsed:b,items:E,children:M,rootClassName:w,mode:x,selectable:S,onClick:C,overflowedIndicatorPopupClassName:$}=e,I=e6(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),L=vn(I,["collapsedWidth"]),R=Vj(E)||M;(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const O=_n(function(){var B;C==null||C.apply(void 0,arguments),(B=i.onClick)===null||B===void 0||B.call(i);}),P=i.mode||x,_=S??i.selectable,k=u__namespace.useMemo(()=>b!==void 0?b:y,[y,b]),N={horizontal:{motionName:`${d}-slide-up`},inline:Wb(d),other:{motionName:`${d}-zoom-big`}},A=a("menu",f||i.prefixCls),[z,F]=Jj(A,!o),V=W(`${A}-${g}`,c==null?void 0:c.className,m);let j;if(typeof v=="function")j=v;else {const B=v||i.expandIcon;j=Tn(B,{className:W(`${A}-submenu-expand-icon`,(r=B==null?void 0:B.props)===null||r===void 0?void 0:r.className)});}const H=u__namespace.useMemo(()=>({prefixCls:A,inlineCollapsed:k||!1,direction:s,firstLevel:!0,theme:g,mode:P,disableMenuItemTitleTooltip:p}),[A,k,s,p,g]);return z(u__namespace.createElement(Ps.Provider,{value:null},u__namespace.createElement(Os.Provider,{value:H},u__namespace.createElement(Bi,Object.assign({getPopupContainer:l,overflowedIndicator:u__namespace.createElement(Bm,null),overflowedIndicatorPopupClassName:W(A,`${A}-${g}`,$),mode:P,selectable:_,onClick:O},L,{inlineCollapsed:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:V,prefixCls:A,direction:s,defaultMotions:N,expandIcon:j,ref:t,rootClassName:W(w,F)}),R))))}),n6=t6,sl=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u__namespace.useContext(PC);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),u__namespace.createElement(n6,Object.assign({ref:n},e,r))});sl.Item=_C;sl.SubMenu=RC;sl.Divider=MC;sl.ItemGroup=Lc;const r6=sl,o6=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},i6=o6,a6=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Wf},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Kf},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vf},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Gf}})},Hf(e,{colorBg:v,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Io(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Io(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Jr(e,"slide-up"),Jr(e,"slide-down"),ds(e,"move-up"),ds(e,"move-down"),cc(e,"zoom-big")]]},TC=Ut("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:c,borderRadiusLG:d}=e,f=(i-a*l)/2,{dropdownArrowOffset:m}=Bf({contentRadius:d}),h=mt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return [a6(h),i6(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Hm=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:d,open:f,onOpenChange:m,visible:h,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:y=!0,placement:b="",overlay:E,transitionName:M}=e,{getPopupContainer:w,getPrefixCls:x,direction:S}=u__namespace.useContext(ot),C=u__namespace.useMemo(()=>{const X=x();return M!==void 0?M:b.includes("top")?`${X}-slide-down`:`${X}-slide-up`},[x,b,M]),$=u__namespace.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:S==="rtl"?"bottomRight":"bottomLeft",[b,S]),I=x("dropdown",r),[L,R]=TC(I),{token:O}=yi.useToken(),P=u__namespace.Children.only(o),_=Tn(P,{className:W(`${I}-trigger`,{[`${I}-rtl`]:S==="rtl"},P.props.className),disabled:a}),k=a?[]:i;let N;k&&k.includes("contextMenu")&&(N=!0);const[A,z]=zt(!1,{value:f??h}),F=_n(X=>{m==null||m(X),g==null||g(X),z(X);}),V=W(c,d,R,{[`${I}-rtl`]:S==="rtl"}),j=Jb({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:O.marginXXS,arrowWidth:n?O.sizePopupArrow:0,borderRadius:O.borderRadius}),H=u__namespace.useCallback(()=>{z(!1);},[]),B=()=>{let X;return t!=null&&t.items?X=u__namespace.createElement(r6,Object.assign({},t)):typeof E=="function"?X=E():X=E,l&&(X=l(X)),X=u__namespace.Children.only(typeof X=="string"?u__namespace.createElement("span",null,X):X),u__namespace.createElement(Fj,{prefixCls:`${I}-menu`,expandIcon:u__namespace.createElement("span",{className:`${I}-menu-submenu-arrow`},u__namespace.createElement(Si,{className:`${I}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:H,validator:J=>{}},X)};return L(u__namespace.createElement(vC,Object.assign({alignPoint:N},vn(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:p,visible:A,builtinPlacements:j,arrow:!!n,overlayClassName:V,prefixCls:I,getPopupContainer:s||w,transitionName:C,trigger:k,overlay:B,placement:$,onVisibleChange:F}),_))};function l6(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const s6=Df(Hm,"dropdown",e=>e,l6),c6=e=>u__namespace.createElement(s6,Object.assign({},e),u__namespace.createElement("span",null));Hm._InternalPanelDoNotUseOrYouWillBeFired=c6;const NC=Hm,u6=()=>En()&&window.document.documentElement;let Ml;const d6=()=>{if(!u6())return !1;if(Ml!==void 0)return Ml;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),Ml=e.scrollHeight===1,document.body.removeChild(t),Ml},f6=()=>{const[e,t]=u__namespace.useState(!1);return u__namespace.useEffect(()=>{t(d6());},[]),e},kC=u.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),m6=kC.Provider,h6=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:l,style:s}=e;const{horizontalSize:c,verticalSize:d,latestIndex:f,supportFlexGap:m}=u__namespace.useContext(kC);let h={};return m||(n==="vertical"?r<f&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<f&&{[o]:c/(a?2:1)}),l&&{paddingBottom:d})),i==null?null:u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),s)},i),r<f&&a&&u__namespace.createElement("span",{className:`${t}-split`,style:h},a))},g6=h6;var v6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const p6={small:8,middle:16,large:24};function b6(e){return typeof e=="string"?p6[e]:e||0}const y6=u__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=u__namespace.useContext(ot),{size:l=(i==null?void 0:i.size)||"small",align:s,className:c,rootClassName:d,children:f,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:y,styles:b}=e,E=v6(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),M=f6(),[w,x]=u__namespace.useMemo(()=>(Array.isArray(l)?l:[l,l]).map(z=>b6(z)),[l]),S=Qn(f,{keepEmpty:!0}),C=s===void 0&&m==="horizontal"?"center":s,$=o("space",h),[I,L]=t0($),R=W($,i==null?void 0:i.className,L,`${$}-${m}`,{[`${$}-rtl`]:a==="rtl",[`${$}-align-${C}`]:C},c,d),O=W(`${$}-item`,(n=y==null?void 0:y.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),P=a==="rtl"?"marginLeft":"marginRight";let _=0;const k=S.map((z,F)=>{var V,j;z!=null&&(_=F);const H=z&&z.key||`${O}-${F}`;return u__namespace.createElement(g6,{className:O,key:H,direction:m,index:F,marginDirection:P,split:g,wrap:p,style:(V=b==null?void 0:b.item)!==null&&V!==void 0?V:(j=i==null?void 0:i.styles)===null||j===void 0?void 0:j.item},z)}),N=u__namespace.useMemo(()=>({horizontalSize:w,verticalSize:x,latestIndex:_,supportFlexGap:M}),[w,x,_,M]);if(S.length===0)return null;const A={};return p&&(A.flexWrap="wrap",M||(A.marginBottom=-x)),M&&(A.columnGap=w,A.rowGap=x),I(u__namespace.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},A),i==null?void 0:i.style),v)},E),u__namespace.createElement(m6,{value:N},k)))}),LC=y6;LC.Compact=AM;const Ac=LC;var C6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u__namespace.useContext(ot),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:d,children:f,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:y,align:b,open:E,onOpenChange:M,placement:w,getPopupContainer:x,href:S,icon:C=u__namespace.createElement(Bm,null),title:$,buttonsRender:I=re=>re,mouseEnterDelay:L,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:P,destroyPopupOnHide:_,dropdownRender:k}=e,N=C6(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),A=n("dropdown",o),z=`${A}-button`,[F,V]=TC(A),j={menu:h,arrow:g,autoFocus:v,align:b,disabled:l,trigger:l?[]:y,onOpenChange:M,getPopupContainer:x||t,mouseEnterDelay:L,mouseLeaveDelay:R,overlayClassName:O,overlayStyle:P,destroyPopupOnHide:_,dropdownRender:k},{compactSize:H,compactItemClassnames:B}=Li(A,r),X=W(z,B,m,V);"overlay"in e&&(j.overlay=p),"open"in e&&(j.open=E),"placement"in e?j.placement=w:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=u__namespace.createElement(Jt,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:d,href:S,title:$},f),Q=u__namespace.createElement(Jt,{type:i,danger:a,icon:C}),[K,Y]=I([J,Q]);return F(u__namespace.createElement(Ac.Compact,Object.assign({className:X,size:H,block:!0},N),K,u__namespace.createElement(NC,Object.assign({},j),Y)))};AC.__ANT_BUTTON=!0;const S6=AC,DC=NC;DC.Button=S6;const zC=DC;function ei(e,t,n){const r=lt(n);u.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}var w6=Math.floor,$6=Math.random;function x6(e,t){return e+w6($6()*(t-e+1))}function jC(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=x6(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function E6(e){return jC(Dp(e))}function I6(e,t){return uf(t,function(n){return e[n]})}function O6(e){return e==null?[]:I6(e,Ba(e))}function P6(e){return jC(O6(e))}function zd(e){var t=Wn(e)?E6:P6;return t(e)}var M6=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],BC=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,h=e.onChange,g=e.onKeyDown,v=Qe(e,M6),p=zt(!1,{value:a,defaultValue:l}),y=G(p,2),b=y[0],E=y[1];function M(C,$){var I=b;return s||(I=C,E(I),h==null||h(I,$)),I}function w(C){C.which===ie.LEFT?M(!1,C):C.which===ie.RIGHT&&M(!0,C),g==null||g(C);}function x(C){var $=M(!b,C);m==null||m($,C);}var S=W(o,i,(n={},U(n,"".concat(o,"-checked"),b),U(n,"".concat(o,"-disabled"),s),n));return u__namespace.createElement("button",Ce({},v,{type:"button",role:"switch","aria-checked":b,disabled:s,className:S,ref:t,onKeyDown:w,onClick:x}),c,u__namespace.createElement("span",{className:"".concat(o,"-inner")},u__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},d),u__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});BC.displayName="Switch";const _6=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},R6=e=>{const{componentCls:t}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},T6=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return {[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},N6=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-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"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},k6=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Io(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},L6=Ut("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=mt(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Wt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [k6(a),N6(a),T6(a),R6(a),_6(a)]});var A6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HC=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s}=e,c=A6(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:d,direction:f,switch:m}=u__namespace.useContext(ot),h=u__namespace.useContext(br),g=(o??h)||i,v=d("switch",n),p=u__namespace.createElement("div",{className:`${v}-handle`},i&&u__namespace.createElement(rm,{className:`${v}-loading-icon`})),[y,b]=L6(v),E=kn(r),M=W(m==null?void 0:m.className,{[`${v}-small`]:E==="small",[`${v}-loading`]:i,[`${v}-rtl`]:f==="rtl"},a,l,b),w=Object.assign(Object.assign({},m==null?void 0:m.style),s);return y(u__namespace.createElement(mm,null,u__namespace.createElement(BC,Object.assign({},c,{prefixCls:v,className:M,style:w,disabled:g,ref:t,loadingIcon:p}))))});HC.__ANT_SWITCH=!0;const FC=HC;var D6={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 z6=D6;var j6=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:z6}))};const B6=u__namespace.forwardRef(j6);var H6={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 F6=H6;var W6=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:F6}))};const Ev=u__namespace.forwardRef(W6);var V6={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 K6=V6;var G6=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:K6}))};const Iv=u__namespace.forwardRef(G6);var U6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const X6=U6;var Y6=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:X6}))};const WC=u__namespace.forwardRef(Y6);var q6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Z6=q6;var Q6=function(t,n){return u__namespace.createElement(cn,Ce({},t,{ref:n,icon:Z6}))};const J6=u__namespace.forwardRef(Q6);function e8(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function t8(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.createElement(mc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!e8(e,t,o))return [!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(a):a]}function n8(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _l=(e,t,n)=>{const r=n8(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},r8=e=>Ob(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),o8=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},kt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},VC=Ut("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=mt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [o8(i),r8(i),_l(i,"success","Success"),_l(i,"processing","Info"),_l(i,"error","Error"),_l(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var i8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a8=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=i8(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:l}=u__namespace.useContext(ot),s=h=>{o==null||o(!r),i==null||i(h);},c=l("tag",t),[d,f]=VC(c),m=W(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,f);return d(u__namespace.createElement("span",Object.assign({},a,{className:m,onClick:s})))},l8=a8;var s8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c8=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,closeIcon:d,closable:f,bordered:m=!0}=e,h=s8(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=u__namespace.useContext(ot),[y,b]=u__namespace.useState(!0);u__namespace.useEffect(()=>{"visible"in h&&b(h.visible);},[h.visible]);const E=i0(s)||E_(s),M=Object.assign(Object.assign({backgroundColor:s&&!E?s:void 0},p==null?void 0:p.style),i),w=g("tag",n),[x,S]=VC(w),C=W(w,p==null?void 0:p.className,{[`${w}-${s}`]:E,[`${w}-has-color`]:s&&!E,[`${w}-hidden`]:!y,[`${w}-rtl`]:v==="rtl",[`${w}-borderless`]:!m},r,o,S),$=_=>{_.stopPropagation(),c==null||c(_),!_.defaultPrevented&&b(!1);},[,I]=t8(f,d,_=>_===null?u__namespace.createElement(mc,{className:`${w}-close-icon`,onClick:$}):u__namespace.createElement("span",{className:`${w}-close-icon`,onClick:$},_),null,!1),L=typeof h.onClick=="function"||a&&a.type==="a",R=l||null,O=R?u__namespace.createElement(u__namespace.Fragment,null,R,a&&u__namespace.createElement("span",null,a)):a,P=u__namespace.createElement("span",Object.assign({},h,{ref:t,className:C,style:M}),O,I);return x(L?u__namespace.createElement(mm,null,P):P)},KC=u__namespace.forwardRef(c8);KC.CheckableTag=l8;const Vr=KC,Ms=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},u8=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function d8(e,t,n){const r=u__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=u__namespace.useMemo(()=>{const a=[],l=new Array((n||[]).length),s=Ms(n||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:a.push(c);}),[a,l]},[r,n,t]);return [r,o,i]}const f8=[];function Zo(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Ov(e){return Array.from(e).join(";")}function m8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f8;const[r,o]=u__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=u__namespace.useState(()=>Zo(n,r)),[l,s]=u__namespace.useState(()=>Zo(n,o));return u__namespace.useEffect(()=>{a(Zo(n,r)),s(Zo(n,o));},[n]),u__namespace.useEffect(()=>{a(Zo(i,r)),s(Zo(l,o));},[Ov(r),Ov(o)]),[i,l,a,s]}var mo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const h8={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:"页码"};var GC=function(e){to(n,e);var t=no(n);function n(){var r;pn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={goInputText:""},r.getValidValue=function(){var l=r.state.goInputText;return !l||Number.isNaN(l)?void 0:Number(l)},r.buildOptionText=function(l){return "".concat(l," ").concat(r.props.locale.items_per_page)},r.changeSize=function(l){r.props.changeSize(Number(l));},r.handleChange=function(l){r.setState({goInputText:l.target.value});},r.handleBlur=function(l){var s=r.props,c=s.goButton,d=s.quickGo,f=s.rootPrefixCls,m=r.state.goInputText;c||m===""||(r.setState({goInputText:""}),!(l.relatedTarget&&(l.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||l.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&d(r.getValidValue()));},r.go=function(l){var s=r.state.goInputText;s!==""&&(l.keyCode===mo.ENTER||l.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return bn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(l){return l.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(l,s){var c=Number.isNaN(Number(l))?0:Number(l),d=Number.isNaN(Number(s))?0:Number(s);return c-d})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,l=i.locale,s=i.rootPrefixCls,c=i.changeSize,d=i.quickGo,f=i.goButton,m=i.selectComponentClass,h=i.buildOptionText,g=i.selectPrefixCls,v=i.disabled,p=this.state.goInputText,y="".concat(s,"-options"),b=m,E=null,M=null,w=null;if(!c&&!d)return null;var x=this.getPageSizeOptions();if(c&&b){var S=x.map(function(C,$){return u.createElement(b.Option,{key:$,value:C.toString()},(h||o.buildOptionText)(C))});E=u.createElement(b,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||x[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode},"aria-label":l.page_size,defaultOpen:!1},S);}return d&&(f&&(w=typeof f=="boolean"?u.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(y,"-quick-jumper-button")},l.jump_to_confirm):u.createElement("span",{onClick:this.go,onKeyUp:this.go},f)),M=u.createElement("div",{className:"".concat(y,"-quick-jumper")},l.jump_to,u.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,w)),u.createElement("li",{className:"".concat(y)},E,M)}}]),n}(u.Component);GC.defaultProps={pageSizeOptions:["10","20","50","100"]};var Qi=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,s=t.onClick,c=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=W(f,"".concat(f,"-").concat(o),(n={},U(n,"".concat(f,"-active"),i),U(n,"".concat(f,"-disabled"),!o),U(n,t.className,a),n)),h=function(){s(o);},g=function(p){c(p,s,o);};return u.createElement("li",{title:l?o.toString():null,className:m,onClick:h,onKeyPress:g,tabIndex:0},d(o,"page",u.createElement("a",{rel:"nofollow"},o)))};function jd(){}function Pv(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var g8=function(t,n,r){return r};function Fr(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var UC=function(e){to(n,e);var t=no(n);function n(r){var o;pn(this,n),o=t.call(this,r),o.paginationNode=u.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(Fr(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,d){var f=o.props.prefixCls,m=c||u.createElement("button",{type:"button","aria-label":d,className:"".concat(f,"-item-link")});return typeof c=="function"&&(m=u.createElement(c,Z({},o.props))),m},o.isValid=function(c){var d=o.props.total;return Pv(c)&&c!==o.state.current&&Pv(d)&&d>0},o.shouldDisplayQuickJumper=function(){var c=o.props,d=c.showQuickJumper,f=c.total,m=o.state.pageSize;return f<=m?!1:d},o.handleKeyDown=function(c){(c.keyCode===mo.ARROW_UP||c.keyCode===mo.ARROW_DOWN)&&c.preventDefault();},o.handleKeyUp=function(c){var d=o.getValidValue(c),f=o.state.currentInputValue;d!==f&&o.setState({currentInputValue:d}),c.keyCode===mo.ENTER?o.handleChange(d):c.keyCode===mo.ARROW_UP?o.handleChange(d-1):c.keyCode===mo.ARROW_DOWN&&o.handleChange(d+1);},o.handleBlur=function(c){var d=o.getValidValue(c);o.handleChange(d);},o.changePageSize=function(c){var d=o.state.current,f=Fr(c,o.state,o.props);d=d>f?f:d,f===0&&(d=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:d,currentInputValue:d})),o.props.onShowSizeChange(d,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(d,c);},o.handleChange=function(c){var d=o.props,f=d.disabled,m=d.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!f){var y=Fr(void 0,o.state,o.props),b=c;return c>y?b=y:c<1&&(b=1),"current"in o.props||o.setState({current:b}),b!==p&&o.setState({currentInputValue:b}),m(b,g),b}return v},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<Fr(void 0,o.state,o.props)},o.runIfEnter=function(c,d){if(c.key==="Enter"||c.charCode===13){for(var f=arguments.length,m=new Array(f>2?f-2:0),h=2;h<f;h++)m[h-2]=arguments[h];d.apply(void 0,m);}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev);},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next);},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev);},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext);},o.handleGoTO=function(c){(c.keyCode===mo.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(c){var d=o.props,f=d.prevIcon,m=d.itemRender,h=m(c,"prev",o.getItemIcon(f,"prev page")),g=!o.hasPrev();return u.isValidElement(h)?u.cloneElement(h,{disabled:g}):h},o.renderNext=function(c){var d=o.props,f=d.nextIcon,m=d.itemRender,h=m(c,"next",o.getItemIcon(f,"next page")),g=!o.hasNext();return u.isValidElement(h)?u.cloneElement(h,{disabled:g}):h};var i=r.onChange!==jd,a="current"in r;a&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=r.defaultCurrent;"current"in r&&(l=r.current);var s=r.defaultPageSize;return "pageSize"in r&&(s=r.pageSize),l=Math.min(l,Fr(s,void 0,r)),o.state={current:l,currentInputValue:l,pageSize:s},o}return bn(n,[{key:"componentDidUpdate",value:function(o,i){var a=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode.current){var l=this.paginationNode.current.querySelector(".".concat(a,"-item-").concat(i.current));if(l&&document.activeElement===l){var s;l==null||(s=l.blur)===null||s===void 0||s.call(l);}}}},{key:"getValidValue",value:function(o){var i=o.target.value,a=Fr(void 0,this.state,this.props),l=this.state.currentInputValue,s;return i===""?s=i:Number.isNaN(Number(i))?s=l:i>=a?s=a:s=Number(i),s}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,l=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>l}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,l=o.style,s=o.disabled,c=o.hideOnSinglePage,d=o.total,f=o.locale,m=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,y=o.itemRender,b=o.showPrevNextJumpers,E=o.jumpPrevIcon,M=o.jumpNextIcon,w=o.selectComponentClass,x=o.selectPrefixCls,S=o.pageSizeOptions,C=this.state,$=C.current,I=C.pageSize,L=C.currentInputValue;if(c===!0&&d<=I)return null;var R=Fr(void 0,this.state,this.props),O=[],P=null,_=null,k=null,N=null,A=null,z=m&&m.goButton,F=h?1:2,V=$-1>0?$-1:0,j=$+1<R?$+1:R,H=Ci(this.props,{aria:!0,data:!0}),B=v&&u.createElement("li",{className:"".concat(i,"-total-text")},v(d,[d===0?0:($-1)*I+1,$*I>d?d:$*I]));if(p)return z&&(typeof z=="boolean"?A=u.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):A=u.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),A=u.createElement("li",{title:g?"".concat(f.jump_to).concat($,"/").concat(R):null,className:"".concat(i,"-simple-pager")},A)),u.createElement("ul",Ce({className:W(i,"".concat(i,"-simple"),U({},"".concat(i,"-disabled"),s),a),style:l,ref:this.paginationNode},H),B,u.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:W("".concat(i,"-prev"),U({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(V)),u.createElement("li",{title:g?"".concat($,"/").concat(R):null,className:"".concat(i,"-simple-pager")},u.createElement("input",{type:"text",value:L,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),u.createElement("span",{className:"".concat(i,"-slash")},"/"),R),u.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:W("".concat(i,"-next"),U({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(j)),A);if(R<=3+F*2){var X={locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};R||O.push(u.createElement(Qi,Ce({},X,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var J=1;J<=R;J+=1){var Q=$===J;O.push(u.createElement(Qi,Ce({},X,{key:J,page:J,active:Q})));}}else {var K=h?f.prev_3:f.prev_5,Y=h?f.next_3:f.next_5;b&&(P=u.createElement("li",{title:g?K:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:W("".concat(i,"-jump-prev"),U({},"".concat(i,"-jump-prev-custom-icon"),!!E))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(E,"prev page"))),_=u.createElement("li",{title:g?Y:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:W("".concat(i,"-jump-next"),U({},"".concat(i,"-jump-next-custom-icon"),!!M))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(M,"next page")))),N=u.createElement(Qi,{locale:f,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:R,page:R,active:!1,showTitle:g,itemRender:y}),k=u.createElement(Qi,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var re=Math.max(1,$-F),ue=Math.min($+F,R);$-1<=F&&(ue=1+F*2),R-$<=F&&(re=R-F*2);for(var se=re;se<=ue;se+=1){var ee=$===se;O.push(u.createElement(Qi,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:se,page:se,active:ee,showTitle:g,itemRender:y}));}$-1>=F*2&&$!==1+2&&(O[0]=u.cloneElement(O[0],{className:"".concat(i,"-item-after-jump-prev")}),O.unshift(P)),R-$>=F*2&&$!==R-2&&(O[O.length-1]=u.cloneElement(O[O.length-1],{className:"".concat(i,"-item-before-jump-next")}),O.push(_)),re!==1&&O.unshift(k),ue!==R&&O.push(N);}var ae=!this.hasPrev()||!R,q=!this.hasNext()||!R;return u.createElement("ul",Ce({className:W(i,a,U({},"".concat(i,"-disabled"),s)),style:l,ref:this.paginationNode},H),B,u.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:W("".concat(i,"-prev"),U({},"".concat(i,"-disabled"),ae)),"aria-disabled":ae},this.renderPrev(V)),O,u.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:q?null:0,onKeyPress:this.runIfEnterNext,className:W("".concat(i,"-next"),U({},"".concat(i,"-disabled"),q)),"aria-disabled":q},this.renderNext(j)),u.createElement(GC,{disabled:s,locale:f,rootPrefixCls:i,selectComponentClass:w,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:I,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var l=i.current,s=Fr(o.pageSize,i,o);l=l>s?s:l,"current"in o||(a.current=l,a.currentInputValue=l),a.pageSize=o.pageSize;}return a}}]),n}(u.Component);UC.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:jd,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:jd,locale:h8,style:{},itemRender:g8,totalBoundaryShowSizeChanger:50};function v8(){const[,e]=u__namespace.useReducer(t=>t+1,0);return e}const p8=["xxl","xl","lg","md","sm","xs"],b8=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)`}),y8=e=>{const t=e,n=[].concat(p8).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[d]))throw new Error(`${s}<=${d} fails : !(${t[s]}<=${t[d]})`)}}),e};function C8(){const[,e]=eo(),t=b8(y8(e));return u.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener);}),n.clear();},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}));},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}function S8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=v8(),r=C8();return u.useEffect(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const XC=e=>u__namespace.createElement(Xa,Object.assign({},e,{showSearch:!0,size:"small"})),YC=e=>u__namespace.createElement(Xa,Object.assign({},e,{showSearch:!0,size:"middle"}));XC.Option=Xa.Option;YC.Option=Xa.Option;const w8=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` &:hover ${t}-item:not(${t}-item-active), &:active ${t}-item:not(${t}-item-active), &:hover ${t}-item-link, &:active ${t}-item-link `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},$8=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},cm(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},x8=e=>{const{componentCls:t}=e;return {[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},E8=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Eo(e))},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},Eo(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},qa(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},I8=e=>{const{componentCls:t}=e;return {[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Io(e)),{"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},O8=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),I8(e)),E8(e)),x8(e)),$8(e)),w8(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},P8=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},M8=Ut("Pagination",e=>{const t=mt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},um(e));return [O8(t),e.wireframe&&P8(t)]},e=>({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}));var _8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const R8=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:s,responsive:c,showSizeChanger:d}=e,f=_8(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=S8(c),{getPrefixCls:h,direction:g,pagination:v={}}=u__namespace.useContext(ot),p=h("pagination",t),[y,b]=M8(p),E=d??v.showSizeChanger,M=u__namespace.useMemo(()=>{const R=u__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),O=u__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?u__namespace.createElement(Si,null):u__namespace.createElement(Is,null)),P=u__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?u__namespace.createElement(Is,null):u__namespace.createElement(Si,null)),_=u__namespace.createElement("a",{className:`${p}-item-link`},u__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?u__namespace.createElement(Iv,{className:`${p}-item-link-icon`}):u__namespace.createElement(Ev,{className:`${p}-item-link-icon`}),R)),k=u__namespace.createElement("a",{className:`${p}-item-link`},u__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?u__namespace.createElement(Ev,{className:`${p}-item-link-icon`}):u__namespace.createElement(Iv,{className:`${p}-item-link-icon`}),R));return {prevIcon:O,nextIcon:P,jumpPrevIcon:_,jumpNextIcon:k}},[g,p]),[w]=Ni("Pagination",gb),x=Object.assign(Object.assign({},w),l),S=kn(a),C=S==="small"||!!(m&&!S&&c),$=h("select",n),I=W({[`${p}-mini`]:C,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,b),L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return y(u__namespace.createElement(UC,Object.assign({},M,f,{style:L,prefixCls:p,selectPrefixCls:$,className:I,selectComponentClass:s||(C?XC:YC),locale:x,showSizeChanger:E})))},T8=R8;var N8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const k8={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},L8=u__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:d}=c;d===ie.ENTER&&c.preventDefault();},r=c=>{const{keyCode:d}=c,{onClick:f}=e;d===ie.ENTER&&f&&f();},{style:o,noStyle:i,disabled:a}=e,l=N8(e,["style","noStyle","disabled"]);let s={};return i||(s=Object.assign({},k8)),a&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),o),u__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),A8=L8,D8=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:l,onRemove:s,showRemove:c}=e,d=W(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[m]=Ni("Transfer",Zr.Transfer),h={className:d,title:f},g=u__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?u__namespace.createElement("li",Object.assign({},h),g,u__namespace.createElement(A8,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{s==null||s(r);}},u__namespace.createElement(B6,null))):(h.onClick=i||r.disabled?void 0:()=>l(r),u__namespace.createElement("li",Object.assign({},h),u__namespace.createElement(Cm,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),g))},z8=u__namespace.memo(D8),j8=["handleFilter","handleClear","checkedKeys"],B8=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),H8=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:d}=e,[f,m]=u__namespace.useState(1),h=u__namespace.useMemo(()=>l?B8(typeof l=="object"?l:{}):null,[l]),[g,v]=zt(10,{value:h==null?void 0:h.pageSize});u__namespace.useEffect(()=>{if(h){const S=Math.ceil(r.length/g);m(Math.min(f,S));}},[r,h,g]);const p=S=>{c==null||c(S.key,!o.includes(S.key));},y=S=>{d==null||d([S.key]);},b=S=>{m(S);},E=(S,C)=>{m(S),v(C);},M=u__namespace.useMemo(()=>h?r.slice((f-1)*g,f*g):r,[f,r,h,g]);u__namespace.useImperativeHandle(t,()=>({items:M}));const w=h?u__namespace.createElement(T8,{size:"small",disabled:i,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:b,onShowSizeChange:E}):null,x=W(`${n}-content`,{[`${n}-content-show-remove`]:a});return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("ul",{className:x,onScroll:s},(M||[]).map(S=>{let{renderedEl:C,renderedText:$,item:I}=S;return u__namespace.createElement(z8,{key:I.key,item:I,renderedText:$,renderedEl:C,prefixCls:n,showRemove:a,onClick:p,onRemove:y,checked:o.includes(I.key),disabled:i||I.disabled})})),w)},F8=u__namespace.forwardRef(H8),W8=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,l=u__namespace.useCallback(s=>{i==null||i(s),s.target.value===""&&(a==null||a());},[i]);return u__namespace.createElement(ly,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:u__namespace.createElement(om,null)})},qC=W8,V8=()=>null;function K8(e){return !!(e&&!Qr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Ji(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const G8=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:d,selectCurrent:f,selectInvert:m,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:y,direction:b,itemsUnit:E,itemUnit:M,selectAllLabel:w,footer:x,renderList:S,onItemSelectAll:C,onItemRemove:$,handleFilter:I,handleClear:L,filterOption:R,render:O=V8}=e,[P,_]=u.useState(""),k=u.useRef({}),N=q=>{_(q.target.value),I(q);},A=()=>{_(""),L();},z=(q,te)=>R?R(P,te):q.includes(P),F=q=>{let te=S?S(q):null;const ce=!!te;return ce||(te=u.createElement(F8,Object.assign({ref:k},q))),{customize:ce,bodyContent:te}},V=q=>{const te=O(q),ce=K8(te);return {item:q,renderedEl:ce?te.label:te,renderedText:ce?te.value:te}},j=u.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[H,B]=u.useMemo(()=>{const q=[],te=[];return n.forEach(ce=>{const fe=V(ce);P&&!z(fe.renderedText,ce)||(q.push(ce),te.push(fe));}),[q,te]},[n,P]),X=u.useMemo(()=>{if(o.length===0)return "none";const q=Ms(o);return H.every(te=>q.has(te.key)||!!te.disabled)?"all":"part"},[o,H]),J=u.useMemo(()=>{const q=a?u.createElement("div",{className:`${t}-body-search-wrapper`},u.createElement(qC,{prefixCls:`${t}-search`,onChange:N,handleClear:A,placeholder:s,value:P,disabled:i})):null,{customize:te,bodyContent:ce}=F(Object.assign(Object.assign({},vn(e,j8)),{filteredItems:H,filteredRenderItems:B,selectedKeys:o}));let fe;return te?fe=u.createElement("div",{className:`${t}-body-customize-wrapper`},ce):fe=H.length?ce:u.createElement("div",{className:`${t}-body-not-found`},j),u.createElement("div",{className:W(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},q,fe)},[a,t,s,P,i,o,H,B,j]),Q=u.createElement(Cm,{disabled:n.length===0||i,checked:X==="all",indeterminate:X==="part",className:`${t}-checkbox`,onChange:()=>{C==null||C(H.filter(q=>!q.disabled).map(q=>{let{key:te}=q;return te}),X!=="all");}}),K=(q,te)=>{if(w)return typeof w=="function"?w({selectedCount:q,totalCount:te}):w;const ce=te>1?E:M;return u.createElement(u.Fragment,null,(q>0?`${q}/`:"")+te," ",ce)},Y=x&&(x.length<2?x(e):x(e,{direction:b})),re=W(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!Y}),ue=Y?u.createElement("div",{className:`${t}-footer`},Y):null,se=!p&&!y&&Q;let ee;p?ee=[y?{key:"removeCurrent",label:g,onClick(){var q;const te=Ji((((q=k.current)===null||q===void 0?void 0:q.items)||[]).map(ce=>ce.item));$==null||$(te);}}:null,{key:"removeAll",label:h,onClick(){$==null||$(Ji(H));}}].filter(Boolean):ee=[{key:"selectAll",label:d,onClick(){const q=Ji(H);C==null||C(q,q.length!==o.length);}},y?{key:"selectCurrent",label:f,onClick(){var q;const te=((q=k.current)===null||q===void 0?void 0:q.items)||[];C==null||C(Ji(te.map(ce=>ce.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var q;const te=Ji(y?(((q=k.current)===null||q===void 0?void 0:q.items)||[]).map(he=>he.item):H),ce=new Set(o),fe=[];te.forEach(he=>{ce.has(he)||fe.push(he);}),C==null||C(fe,"replace");}}];const ae=u.createElement(zC,{className:`${t}-header-dropdown`,menu:{items:ee},disabled:i},u.createElement(nm,null));return u.createElement("div",{className:re,style:l},u.createElement("div",{className:`${t}-header`},v?u.createElement(u.Fragment,null,se,ae):null,u.createElement("span",{className:`${t}-header-selected`},K(o.length,H.length)),u.createElement("span",{className:`${t}-header-title`},r)),J,ue)},Bd=G8,U8=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:l,className:s,style:c,direction:d,oneWay:f}=e;return u__namespace.createElement("div",{className:s,style:c},u__namespace.createElement(Jt,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:d!=="rtl"?u__namespace.createElement(Si,null):u__namespace.createElement(Is,null)},i),!f&&u__namespace.createElement(Jt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:d!=="rtl"?u__namespace.createElement(Is,null):u__namespace.createElement(Si,null)},o))},ZC=U8,X8=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,l=`${t}-table`,s=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},Mv=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Y8=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},Mv(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Mv(e,e.colorWarning))}},q8=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:d,listHeight:f,listWidth:m,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:y,antCls:b,iconCls:E,motionDurationSlow:M,controlItemBgHover:w,borderRadiusLG:x,colorBgContainer:S,colorText:C,controlItemBgActiveHover:$}=e;return {display:"flex",flexDirection:"column",width:m,height:f,border:`${o}px ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${E}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${l-o}px ${p}px ${l}px`,color:C,background:S,borderBottom:`${o}px ${y} ${r}`,borderRadius:`${x}px ${x}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},xo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},To()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${p}px`,transition:`all ${M}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},xo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${M}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:$}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${y} ${r}`}}},Z8=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:l,fontSize:s,lineHeight:c,colorBgContainerDisabled:d}=e;return {[r]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:d}},[`${r}-list`]:q8(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(s*c)}})}},Q8=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},J8=Ut("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=mt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [Z8(a),X8(a),Y8(a),Q8(a)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,i=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2}}),Dc=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:l={},locale:s={},titles:c,disabled:d,showSearch:f=!1,operationStyle:m,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:y,className:b,rootClassName:E,filterOption:M,render:w,footer:x,children:S,rowKey:C,onScroll:$,onChange:I,onSearch:L,onSelectChange:R}=e,{getPrefixCls:O,renderEmpty:P,direction:_,transfer:k}=u.useContext(ot),N=O("transfer",y),[A,z]=J8(N),[F,V,j]=d8(t,C,n),[H,B,X,J]=m8(V,j,r),Q=u.useCallback((de,ne)=>{if(de==="left"){const me=typeof ne=="function"?ne(H||[]):ne;X(me);}else {const me=typeof ne=="function"?ne(B||[]):ne;J(me);}},[H,B]),K=u.useCallback((de,ne)=>{de==="left"?R==null||R(ne,B):R==null||R(H,ne);},[H,B]),Y=de=>{var ne;return (ne=c??de.titles)!==null&&ne!==void 0?ne:[]},re=de=>{$==null||$("left",de);},ue=de=>{$==null||$("right",de);},se=de=>{const ne=de==="right"?H:B,me=u8(F),le=ne.filter(Ae=>!me.has(Ae)),Ne=Ms(le),tt=de==="right"?le.concat(n):n.filter(Ae=>!Ne.has(Ae)),ct=de==="right"?"left":"right";Q(ct,[]),K(ct,[]),I==null||I(tt,de,le);},ee=()=>{se("left");},ae=()=>{se("right");},q=(de,ne,me)=>{Q(de,le=>{let Ne=[];if(me==="replace")Ne=ne;else if(me)Ne=Array.from(new Set([].concat(Ge(le),Ge(ne))));else {const tt=Ms(ne);Ne=le.filter(ct=>!tt.has(ct));}return K(de,Ne),Ne});},te=(de,ne)=>{q("left",de,ne);},ce=(de,ne)=>{q("right",de,ne);},fe=de=>L==null?void 0:L("left",de.target.value),he=de=>L==null?void 0:L("right",de.target.value),ge=()=>L==null?void 0:L("left",""),be=()=>L==null?void 0:L("right",""),Re=(de,ne,me)=>{const le=Ge(de==="left"?H:B),Ne=le.indexOf(ne);Ne>-1&&le.splice(Ne,1),me&&le.push(ne),K(de,le),e.selectedKeys||Q(de,le);},De=(de,ne)=>{Re("left",de,ne);},$e=(de,ne)=>{Re("right",de,ne);},we=de=>{Q("right",[]),I==null||I(n.filter(ne=>!de.includes(ne)),"left",Ge(de));},Te=de=>typeof l=="function"?l({direction:de}):l||{},Je=u.useContext(Vn),{hasFeedback:Ve,status:Ye}=Je,Me=de=>Object.assign(Object.assign(Object.assign({},de),{notFoundContent:(P==null?void 0:P("Transfer"))||u.createElement(j0,{componentName:"Transfer"})}),s),ke=Ka(Ye,p),qe=!S&&v,et=B.length>0,ye=H.length>0,xe=W(N,{[`${N}-disabled`]:d,[`${N}-customize-list`]:!!S,[`${N}-rtl`]:_==="rtl"},Zn(N,ke,Ve),k==null?void 0:k.className,b,E,z),[je]=Ni("Transfer",Zr.Transfer),Le=Me(je),[rt,Ue]=Y(Le);return A(u.createElement("div",{className:xe,style:Object.assign(Object.assign({},k==null?void 0:k.style),a)},u.createElement(Bd,Object.assign({prefixCls:`${N}-list`,titleText:rt,dataSource:V,filterOption:M,style:Te("left"),checkedKeys:H,handleFilter:fe,handleClear:ge,onItemSelect:De,onItemSelectAll:te,render:w,showSearch:f,renderList:S,footer:x,onScroll:re,disabled:d,direction:_==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:qe},Le)),u.createElement(ZC,{className:`${N}-operation`,rightActive:ye,rightArrowText:i[0],moveToRight:ae,leftActive:et,leftArrowText:i[1],moveToLeft:ee,style:m,disabled:d,direction:_,oneWay:g}),u.createElement(Bd,Object.assign({prefixCls:`${N}-list`,titleText:Ue,dataSource:j,filterOption:M,style:Te("right"),checkedKeys:B,handleFilter:he,handleClear:be,onItemSelect:$e,onItemSelectAll:ce,onItemRemove:we,render:w,showSearch:f,renderList:S,footer:x,onScroll:ue,disabled:d,direction:_==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:qe},Le))))};Dc.List=Bd;Dc.Search=qC;Dc.Operation=ZC;const eB=Dc;function QC(){}var Ao=u__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Hd(e,t,n){return (e-t)/(n-t)}function Fm(e,t,n,r){var o=Hd(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function oi(e,t){return Array.isArray(e)?e[t]:e}var tB=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],nB=u__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,s=e.style,c=e.render,d=e.dragging,f=e.onOffsetChange,m=Qe(e,tB),h=u__namespace.useContext(Ao),g=h.min,v=h.max,p=h.direction,y=h.disabled,b=h.keyboard,E=h.range,M=h.tabIndex,w=h.ariaLabelForHandle,x=h.ariaLabelledByForHandle,S=h.ariaValueTextFormatterForHandle,C="".concat(o,"-handle"),$=function(P){y||l(P,a);},I=function(P){if(!y&&b){var _=null;switch(P.which||P.keyCode){case ie.LEFT:_=p==="ltr"||p==="btt"?-1:1;break;case ie.RIGHT:_=p==="ltr"||p==="btt"?1:-1;break;case ie.UP:_=p!=="ttb"?1:-1;break;case ie.DOWN:_=p!=="ttb"?-1:1;break;case ie.HOME:_="min";break;case ie.END:_="max";break;case ie.PAGE_UP:_=2;break;case ie.PAGE_DOWN:_=-2;break}_!==null&&(P.preventDefault(),f(_,a));}},L=Fm(p,i,g,v),R=u__namespace.createElement("div",Ce({ref:t,className:W(C,(n={},U(n,"".concat(C,"-").concat(a+1),E),U(n,"".concat(C,"-dragging"),d),n)),style:Z(Z({},L),s),onMouseDown:$,onTouchStart:$,onKeyDown:I,tabIndex:y?null:oi(M,a),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":i,"aria-disabled":y,"aria-label":oi(w,a),"aria-labelledby":oi(x,a),"aria-valuetext":(r=oi(S,a))===null||r===void 0?void 0:r(i)},m));return c&&(R=c(R,{index:a,prefixCls:o,value:i,dragging:d})),R}),rB=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],oB=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,l=e.handleRender,s=e.draggingIndex,c=Qe(e,rB),d=u__namespace.useRef({});return u__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=d.current[m])===null||h===void 0||h.focus();}}}),u__namespace.createElement(u__namespace.Fragment,null,a.map(function(f,m){return u__namespace.createElement(nB,Ce({ref:function(g){g?d.current[m]=g:delete d.current[m];},dragging:s===m,prefixCls:n,style:oi(r,m),key:m,value:f,valueIndex:m,onStartMove:o,onOffsetChange:i,render:l},c))}))});function _v(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function iB(e,t,n,r,o,i,a,l,s){var c=u__namespace.useState(null),d=G(c,2),f=d[0],m=d[1],h=u__namespace.useState(-1),g=G(h,2),v=g[0],p=g[1],y=u__namespace.useState(n),b=G(y,2),E=b[0],M=b[1],w=u__namespace.useState(n),x=G(w,2),S=x[0],C=x[1],$=u__namespace.useRef(null),I=u__namespace.useRef(null);u__namespace.useEffect(function(){v===-1&&M(n);},[n,v]),u__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",$.current),document.removeEventListener("mouseup",I.current),document.removeEventListener("touchmove",$.current),document.removeEventListener("touchend",I.current);}},[]);var L=function(N,A){E.some(function(z,F){return z!==N[F]})&&(A!==void 0&&m(A),M(N),a(N));},R=function(N,A){if(N===-1){var z=S[0],F=S[S.length-1],V=r-z,j=o-F,H=A*(o-r);H=Math.max(H,V),H=Math.min(H,j);var B=i(z+H);H=B-z;var X=S.map(function(Y){return Y+H});L(X);}else {var J=(o-r)*A,Q=Ge(E);Q[N]=S[N];var K=s(Q,J,N,"dist");L(K.values,K.value);}},O=u__namespace.useRef(R);O.current=R;var P=function(N,A){N.stopPropagation();var z=n[A];p(A),m(z),C(n);var F=_v(N),V=F.pageX,j=F.pageY,H=function(J){J.preventDefault();var Q=_v(J),K=Q.pageX,Y=Q.pageY,re=K-V,ue=Y-j,se=e.current.getBoundingClientRect(),ee=se.width,ae=se.height,q;switch(t){case"btt":q=-ue/ae;break;case"ttb":q=ue/ae;break;case"rtl":q=-re/ee;break;default:q=re/ee;}O.current(A,q);},B=function X(J){J.preventDefault(),document.removeEventListener("mouseup",X),document.removeEventListener("mousemove",H),document.removeEventListener("touchend",X),document.removeEventListener("touchmove",H),$.current=null,I.current=null,p(-1),l();};document.addEventListener("mouseup",B),document.addEventListener("mousemove",H),document.addEventListener("touchend",B),document.addEventListener("touchmove",H),$.current=H,I.current=B;},_=u__namespace.useMemo(function(){var k=Ge(n).sort(function(A,z){return A-z}),N=Ge(E).sort(function(A,z){return A-z});return k.every(function(A,z){return A===N[z]})?E:n},[n,E]);return [v,f,_,P]}function aB(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,l=u__namespace.useContext(Ao),s=l.direction,c=l.min,d=l.max,f=l.disabled,m=l.range,h="".concat(t,"-track"),g=Hd(r,c,d),v=Hd(o,c,d),p=function(E){!f&&a&&a(E,-1);},y={};switch(s){case"rtl":y.right="".concat(g*100,"%"),y.width="".concat(v*100-g*100,"%");break;case"btt":y.bottom="".concat(g*100,"%"),y.height="".concat(v*100-g*100,"%");break;case"ttb":y.top="".concat(g*100,"%"),y.height="".concat(v*100-g*100,"%");break;default:y.left="".concat(g*100,"%"),y.width="".concat(v*100-g*100,"%");}return u__namespace.createElement("div",{className:W(h,m&&"".concat(h,"-").concat(i+1)),style:Z(Z({},y),n),onMouseDown:p,onTouchStart:p})}function lB(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=u__namespace.useContext(Ao),l=a.included,s=a.range,c=a.min,d=u__namespace.useMemo(function(){if(!s){if(r.length===0)return [];var f=o??c,m=r[0];return [{start:Math.min(f,m),end:Math.max(f,m)}]}for(var h=[],g=0;g<r.length-1;g+=1)h.push({start:r[g],end:r[g+1]});return h},[r,s,o,c]);return l?d.map(function(f,m){var h=f.start,g=f.end;return u__namespace.createElement(aB,{index:m,prefixCls:t,style:oi(n,m),start:h,end:g,key:m,onStartMove:i})}):null}function sB(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=u__namespace.useContext(Ao),l=a.min,s=a.max,c=a.direction,d=a.includedStart,f=a.includedEnd,m=a.included,h="".concat(t,"-text"),g=Fm(c,o,l,s);return u__namespace.createElement("span",{className:W(h,U({},"".concat(h,"-active"),m&&d<=o&&o<=f)),style:Z(Z({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function cB(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?u__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,l=i.style,s=i.label;return u__namespace.createElement(sB,{key:a,prefixCls:o,style:l,value:a,onClick:r},s)})):null}function uB(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=u__namespace.useContext(Ao),a=i.min,l=i.max,s=i.direction,c=i.included,d=i.includedStart,f=i.includedEnd,m="".concat(t,"-dot"),h=c&&d<=n&&n<=f,g=Z(Z({},Fm(s,n,a,l)),typeof r=="function"?r(n):r);return h&&(g=Z(Z({},g),typeof o=="function"?o(n):o)),u__namespace.createElement("span",{className:W(m,U({},"".concat(m,"-active"),h)),style:g})}function dB(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=u__namespace.useContext(Ao),l=a.min,s=a.max,c=a.step,d=u__namespace.useMemo(function(){var f=new Set;if(n.forEach(function(h){f.add(h.value);}),r&&c!==null)for(var m=l;m<=s;)f.add(m),m+=c;return Array.from(f)},[l,s,c,r,n]);return u__namespace.createElement("div",{className:"".concat(t,"-step")},d.map(function(f){return u__namespace.createElement(uB,{prefixCls:t,key:f,value:f,style:o,activeStyle:i})}))}function fB(e,t,n,r,o,i){var a=u__namespace.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),l=u__namespace.useCallback(function(h){if(n!==null){var g=e+Math.round((a(h)-e)/n)*n,v=function(E){return (String(E).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),y=Number(g.toFixed(p));return e<=y&&y<=t?y:null}return null},[n,e,t,a]),s=u__namespace.useCallback(function(h){var g=a(h),v=r.map(function(b){return b.value});n!==null&&v.push(l(h)),v.push(e,t);var p=v[0],y=t-e;return v.forEach(function(b){var E=Math.abs(g-b);E<=y&&(p=b,y=E);}),p},[e,t,r,n,a,l]),c=function h(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,E=g[p],M=E+v,w=[];r.forEach(function(I){w.push(I.value);}),w.push(e,t),w.push(l(E));var x=v>0?1:-1;y==="unit"?w.push(l(E+x*n)):w.push(l(M)),w=w.filter(function(I){return I!==null}).filter(function(I){return v<0?I<=E:I>=E}),y==="unit"&&(w=w.filter(function(I){return I!==E}));var S=y==="unit"?E:M;b=w[0];var C=Math.abs(b-S);if(w.forEach(function(I){var L=Math.abs(I-S);L<C&&(b=I,C=L);}),b===void 0)return v<0?e:t;if(y==="dist")return b;if(Math.abs(v)>1){var $=Ge(g);return $[p]=b,h($,v-x,p,y)}return b}else {if(v==="min")return e;if(v==="max")return t}},d=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g[p],E=c(g,v,p,y);return {value:E,changed:E!==b}},f=function(g){return i===null&&g===0||typeof i=="number"&&g<i},m=function(g,v,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=g.map(s),E=b[p],M=c(b,v,p,y);if(b[p]=M,o===!1){var w=i||0;p>0&&b[p-1]!==E&&(b[p]=Math.max(b[p],b[p-1]+w)),p<b.length-1&&b[p+1]!==E&&(b[p]=Math.min(b[p],b[p+1]-w));}else if(typeof i=="number"||i===null){for(var x=p+1;x<b.length;x+=1)for(var S=!0;f(b[x]-b[x-1])&&S;){var C=d(b,1,x);b[x]=C.value,S=C.changed;}for(var $=p;$>0;$-=1)for(var I=!0;f(b[$]-b[$-1])&&I;){var L=d(b,-1,$-1);b[$-1]=L.value,I=L.changed;}for(var R=b.length-1;R>0;R-=1)for(var O=!0;f(b[R]-b[R-1])&&O;){var P=d(b,-1,R-1);b[R-1]=P.value,O=P.changed;}for(var _=0;_<b.length-1;_+=1)for(var k=!0;f(b[_+1]-b[_])&&k;){var N=d(b,1,_+1);b[_+1]=N.value,k=N.changed;}}return {value:b[p],values:b}};return [s,m]}var mB=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,l=e.disabled,s=l===void 0?!1:l,c=e.keyboard,d=c===void 0?!0:c,f=e.autoFocus,m=e.onFocus,h=e.onBlur,g=e.min,v=g===void 0?0:g,p=e.max,y=p===void 0?100:p,b=e.step,E=b===void 0?1:b,M=e.value,w=e.defaultValue,x=e.range,S=e.count,C=e.onChange,$=e.onBeforeChange,I=e.onAfterChange,L=e.allowCross,R=L===void 0?!0:L,O=e.pushable,P=O===void 0?!1:O,_=e.draggableTrack,k=e.reverse,N=e.vertical,A=e.included,z=A===void 0?!0:A,F=e.startPoint,V=e.trackStyle,j=e.handleStyle,H=e.railStyle,B=e.dotStyle,X=e.activeDotStyle,J=e.marks,Q=e.dots,K=e.handleRender,Y=e.tabIndex,re=Y===void 0?0:Y,ue=e.ariaLabelForHandle,se=e.ariaLabelledByForHandle,ee=e.ariaValueTextFormatterForHandle,ae=u__namespace.useRef(),q=u__namespace.useRef(),te=u__namespace.useMemo(function(){return N?k?"ttb":"btt":k?"rtl":"ltr"},[k,N]),ce=u__namespace.useMemo(function(){return isFinite(v)?v:0},[v]),fe=u__namespace.useMemo(function(){return isFinite(y)?y:100},[y]),he=u__namespace.useMemo(function(){return E!==null&&E<=0?1:E},[E]),ge=u__namespace.useMemo(function(){return P===!0?he:P>=0?P:!1},[P,he]),be=u__namespace.useMemo(function(){var Fe=Object.keys(J||{});return Fe.map(function(Xe){var Be=J[Xe],pt={value:Number(Xe)};return Be&&dt(Be)==="object"&&!u__namespace.isValidElement(Be)&&("label"in Be||"style"in Be)?(pt.style=Be.style,pt.label=Be.label):pt.label=Be,pt}).filter(function(Xe){var Be=Xe.label;return Be||typeof Be=="number"}).sort(function(Xe,Be){return Xe.value-Be.value})},[J]),Re=fB(ce,fe,he,be,R,ge),De=G(Re,2),$e=De[0],we=De[1],Te=zt(w,{value:M}),Je=G(Te,2),Ve=Je[0],Ye=Je[1],Me=u__namespace.useMemo(function(){var Fe=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],Xe=G(Fe,1),Be=Xe[0],pt=Be===void 0?ce:Be,ht=Ve===null?[]:[pt];if(x){if(ht=Ge(Fe),S||Ve===void 0){var Yt=S>=0?S+1:2;for(ht=ht.slice(0,Yt);ht.length<Yt;){var He;ht.push((He=ht[ht.length-1])!==null&&He!==void 0?He:ce);}}ht.sort(function(Ke,ut){return Ke-ut});}return ht.forEach(function(Ke,ut){ht[ut]=$e(Ke);}),ht},[Ve,x,ce,S,$e]),ke=u__namespace.useRef(Me);ke.current=Me;var qe=function(Xe){return x?Xe:Xe[0]},et=function(Xe){var Be=Ge(Xe).sort(function(pt,ht){return pt-ht});C&&!tc(Be,ke.current,!0)&&C(qe(Be)),Ye(Be);},ye=function(Xe){if(!s){var Be=0,pt=fe-ce;Me.forEach(function(Yt,He){var Ke=Math.abs(Xe-Yt);Ke<=pt&&(pt=Ke,Be=He);});var ht=Ge(Me);ht[Be]=Xe,x&&!Me.length&&S===void 0&&ht.push(Xe),$==null||$(qe(ht)),et(ht),I==null||I(qe(ht));}},xe=function(Xe){Xe.preventDefault();var Be=q.current.getBoundingClientRect(),pt=Be.width,ht=Be.height,Yt=Be.left,He=Be.top,Ke=Be.bottom,ut=Be.right,wt=Xe.clientX,Kt=Xe.clientY,Lt;switch(te){case"btt":Lt=(Ke-Kt)/ht;break;case"ttb":Lt=(Kt-He)/ht;break;case"rtl":Lt=(ut-wt)/pt;break;default:Lt=(wt-Yt)/pt;}var un=ce+Lt*(fe-ce);ye($e(un));},je=u__namespace.useState(null),Le=G(je,2),rt=Le[0],Ue=Le[1],de=function(Xe,Be){if(!s){var pt=we(Me,Xe,Be);$==null||$(qe(Me)),et(pt.values),I==null||I(qe(pt.values)),Ue(pt.value);}};u__namespace.useEffect(function(){if(rt!==null){var Fe=Me.indexOf(rt);Fe>=0&&ae.current.focus(Fe);}Ue(null);},[rt]);var ne=u__namespace.useMemo(function(){return _&&he===null?!1:_},[_,he]),me=function(){I==null||I(qe(ke.current));},le=iB(q,te,Me,ce,fe,$e,et,me,we),Ne=G(le,4),tt=Ne[0],ct=Ne[1],Ae=Ne[2],Se=Ne[3],ve=function(Xe,Be){Se(Xe,Be),$==null||$(qe(ke.current));},Ee=tt!==-1;u__namespace.useEffect(function(){if(!Ee){var Fe=Me.lastIndexOf(ct);ae.current.focus(Fe);}},[Ee]);var _e=u__namespace.useMemo(function(){return Ge(Ae).sort(function(Fe,Xe){return Fe-Xe})},[Ae]),Ze=u__namespace.useMemo(function(){return x?[_e[0],_e[_e.length-1]]:[ce,_e[0]]},[_e,x,ce]),ft=G(Ze,2),vt=ft[0],Vt=ft[1];u__namespace.useImperativeHandle(t,function(){return {focus:function(){ae.current.focus(0);},blur:function(){var Xe=document,Be=Xe.activeElement;q.current.contains(Be)&&(Be==null||Be.blur());}}}),u__namespace.useEffect(function(){f&&ae.current.focus(0);},[]);var jt=u__namespace.useMemo(function(){return {min:ce,max:fe,direction:te,disabled:s,keyboard:d,step:he,included:z,includedStart:vt,includedEnd:Vt,range:x,tabIndex:re,ariaLabelForHandle:ue,ariaLabelledByForHandle:se,ariaValueTextFormatterForHandle:ee}},[ce,fe,te,s,d,he,z,vt,Vt,x,re,ue,se,ee]);return u__namespace.createElement(Ao.Provider,{value:jt},u__namespace.createElement("div",{ref:q,className:W(o,i,(n={},U(n,"".concat(o,"-disabled"),s),U(n,"".concat(o,"-vertical"),N),U(n,"".concat(o,"-horizontal"),!N),U(n,"".concat(o,"-with-marks"),be.length),n)),style:a,onMouseDown:xe},u__namespace.createElement("div",{className:"".concat(o,"-rail"),style:H}),u__namespace.createElement(lB,{prefixCls:o,style:V,values:_e,startPoint:F,onStartMove:ne?ve:null}),u__namespace.createElement(dB,{prefixCls:o,marks:be,dots:Q,style:B,activeStyle:X}),u__namespace.createElement(oB,{ref:ae,prefixCls:o,style:j,values:Ae,draggingIndex:tt,onStartMove:ve,onOffsetChange:de,onFocus:m,onBlur:h,handleRender:K}),u__namespace.createElement(cB,{prefixCls:o,marks:be,onClick:ye})))});const hB=u__namespace.forwardRef((e,t)=>{const{open:n}=e,r=u.useRef(null),o=u.useRef(null);function i(){It.cancel(o.current),o.current=null;}function a(){o.current=It(()=>{var l;(l=r.current)===null||l===void 0||l.forceAlign(),o.current=null;});}return u__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),u__namespace.createElement(Ua,Object.assign({ref:Sn(r,t)},e))}),gB=hB,vB=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l}=e;return {[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Wt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},JC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",l=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart";return {[a]:r,[s]:r*3,[`${n}-rail`]:{[l]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:o,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[l]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},pB=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},JC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},bB=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},JC(e,!1)),{height:"100%"})}},yB=Ut("Slider",e=>{const t=mt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [vB(t),pB(t),bB(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var CB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const SB=e=>typeof e=="number"?e.toString():"",wB=u.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m}=e,h=CB(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:y}=u.useContext(ot),b=u.useContext(br),E=l??b,[M,w]=u.useState({}),x=(k,N)=>{w(A=>Object.assign(Object.assign({},A),{[k]:N}));},S=(k,N)=>k||(N?g==="rtl"?"left":"right":"top"),C=p("slider",n),[$,I]=yB(C),L=W(o,v==null?void 0:v.className,i,{[`${C}-rtl`]:g==="rtl"},I);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[R,O]=u.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),P=(k,N)=>{var A;const{index:z,dragging:F}=N,{tooltip:V={},vertical:j}=e,H=Object.assign({},V),{open:B,placement:X,getPopupContainer:J,prefixCls:Q,formatter:K}=H;let Y;K||K===null?Y=K:c||c===null?Y=c:Y=SB;const re=Y?M[z]||F:!1,ue=(A=B??d)!==null&&A!==void 0?A:B===void 0&&re,se=Object.assign(Object.assign({},k.props),{onMouseEnter:()=>x(z,!0),onMouseLeave:()=>x(z,!1)}),ee=p("tooltip",Q??s);return u.createElement(gB,{prefixCls:ee,title:Y?Y(N.value):"",open:ue,placement:S(X??m,j),key:z,overlayClassName:`${C}-tooltip`,getPopupContainer:J||f||y},u.cloneElement(k,se))},_=Object.assign(Object.assign({},v==null?void 0:v.style),a);return $(u.createElement(mB,Object.assign({},h,{step:h.step,range:R,draggableTrack:O,className:L,style:_,disabled:E,ref:t,prefixCls:C,handleRender:P})))}),$B=wB;function Rv(e){return !!(e&&e.then)}const xB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,quitOnNullishReturnValue:s,actionFn:c}=e,d=u__namespace.useRef(!1),f=u__namespace.useRef(null),[m,h]=Co(!1),g=function(){i==null||i.apply(void 0,arguments);};u__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var b;(b=f.current)===null||b===void 0||b.focus();})),()=>{y&&clearTimeout(y);}},[]);const v=y=>{Rv(y)&&(h(!0),y.then(function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1;},b=>(h(!1,!0),d.current=!1,Promise.reject(b))));},p=y=>{if(d.current)return;if(d.current=!0,!c){g();return}let b;if(l){if(b=c(y),s&&!Rv(b)){d.current=!1,g(y);return}}else if(c.length)b=c(i),d.current=!1;else if(b=c(),!b){g();return}v(b);};return u__namespace.createElement(Jt,Object.assign({},iy(t),{onClick:p,loading:m,prefixCls:r},o,{ref:f}),n)},EB=xB,IB=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:d,colorTextHeading:f}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},eS=Ut("Popconfirm",e=>IB(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var OB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tS=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=u__namespace.createElement(WC,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=u__namespace.useContext(ot),[p]=Ni("Popconfirm",Zr.Popconfirm),y=vi(o),b=vi(i);return u__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},u__namespace.createElement("div",{className:`${t}-message`},c&&u__namespace.createElement("span",{className:`${t}-message-icon`},c),u__namespace.createElement("div",{className:`${t}-message-text`},y&&u__namespace.createElement("div",{className:W(`${t}-title`)},y),b&&u__namespace.createElement("div",{className:`${t}-description`},b))),u__namespace.createElement("div",{className:`${t}-buttons`},d&&u__namespace.createElement(Jt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),u__namespace.createElement(EB,{buttonProps:Object.assign(Object.assign({size:"small"},iy(s)),n),actionFn:m,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l??(p==null?void 0:p.okText))))},PB=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=OB(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=u__namespace.useContext(ot),l=a("popconfirm",t),[s]=eS(l);return s(u__namespace.createElement(c0,{placement:n,className:W(l,r),style:o,content:u__namespace.createElement(tS,Object.assign({prefixCls:l},i))}))},MB=PB;var _B=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nS=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=u__namespace.createElement(WC,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:d}=e,f=_B(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=u__namespace.useContext(ot),[h,g]=zt(!1,{value:e.open,defaultValue:e.defaultOpen}),v=(C,$)=>{g(C,!0),d==null||d(C),c==null||c(C,$);},p=C=>{v(!1,C);},y=C=>{var $;return ($=e.onConfirm)===null||$===void 0?void 0:$.call(globalThis,C)},b=C=>{var $;v(!1,C),($=e.onCancel)===null||$===void 0||$.call(globalThis,C);},E=C=>{C.keyCode===ie.ESC&&h&&v(!1,C);},M=C=>{const{disabled:$=!1}=e;$||v(C);},w=m("popconfirm",n),x=W(w,s),[S]=eS(w);return S(u__namespace.createElement(Uf,Object.assign({},vn(f,["title"]),{trigger:o,placement:r,onOpenChange:M,open:h,ref:t,overlayClassName:x,content:u__namespace.createElement(tS,Object.assign({okType:i,icon:a},e,{prefixCls:w,close:p,onConfirm:y,onCancel:b})),"data-popover-inject":!0}),Tn(l,{onKeyDown:C=>{var $,I;u__namespace.isValidElement(l)&&((I=l==null?void 0:($=l.props).onKeyDown)===null||I===void 0||I.call($,C)),E(C);}})))});nS._InternalPanelDoNotUseOrYouWillBeFired=MB;const Tv=nS,zc=u.createContext(null);var rS=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return u__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:W(n,a&&"".concat(n,"-active"),r),ref:t},s)}),RB=["key","forceRender","style","className"];function TB(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=u__namespace.useContext(zc),l=a.prefixCls,s=a.tabs,c=r.tabPane,d="".concat(l,"-tabpane");return u__namespace.createElement("div",{className:W("".concat(l,"-content-holder"))},u__namespace.createElement("div",{className:W("".concat(l,"-content"),"".concat(l,"-content-").concat(o),U({},"".concat(l,"-content-animated"),c))},s.map(function(f){var m=f.key,h=f.forceRender,g=f.style,v=f.className,p=Qe(f,RB),y=m===n;return u__namespace.createElement(ro,Ce({key:m,visible:y,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(b,E){var M=b.style,w=b.className;return u__namespace.createElement(rS,Ce({},p,{prefixCls:d,id:t,tabKey:m,animated:c,active:y,style:Z(Z({},g),M),className:W(v,w),ref:E}))})})))}var Nv={width:0,height:0,left:0,top:0};function NB(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Nv,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var d;c=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||Nv;}var f=o.get(s)||Z({},c);f.right=a-f.left-f.width,o.set(s,f);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function kv(e,t){var n=u__namespace.useRef(e),r=u__namespace.useState({}),o=G(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({});}return [n.current,a]}var kB=.1,Lv=.01,Yl=20,Av=Math.pow(.995,Yl);function LB(e,t){var n=u.useState(),r=G(n,2),o=r[0],i=r[1],a=u.useState(0),l=G(a,2),s=l[0],c=l[1],d=u.useState(0),f=G(d,2),m=f[0],h=f[1],g=u.useState(),v=G(g,2),p=v[0],y=v[1],b=u.useRef();function E($){var I=$.touches[0],L=I.screenX,R=I.screenY;i({x:L,y:R}),window.clearInterval(b.current);}function M($){if(o){$.preventDefault();var I=$.touches[0],L=I.screenX,R=I.screenY;i({x:L,y:R});var O=L-o.x,P=R-o.y;t(O,P);var _=Date.now();c(_),h(_-s),y({x:O,y:P});}}function w(){if(o&&(i(null),y(null),p)){var $=p.x/m,I=p.y/m,L=Math.abs($),R=Math.abs(I);if(Math.max(L,R)<kB)return;var O=$,P=I;b.current=window.setInterval(function(){if(Math.abs(O)<Lv&&Math.abs(P)<Lv){window.clearInterval(b.current);return}O*=Av,P*=Av,t(O*Yl,P*Yl);},Yl);}}var x=u.useRef();function S($){var I=$.deltaX,L=$.deltaY,R=0,O=Math.abs(I),P=Math.abs(L);O===P?R=x.current==="x"?I:L:O>P?(R=I,x.current="x"):(R=L,x.current="y"),t(-R,-R)&&$.preventDefault();}var C=u.useRef(null);C.current={onTouchStart:E,onTouchMove:M,onTouchEnd:w,onWheel:S},u__namespace.useEffect(function(){function $(O){C.current.onTouchStart(O);}function I(O){C.current.onTouchMove(O);}function L(O){C.current.onTouchEnd(O);}function R(O){C.current.onWheel(O);}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",L,{passive:!1}),e.current.addEventListener("touchstart",$,{passive:!1}),e.current.addEventListener("wheel",R),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",L);}},[]);}function oS(e){var t=u.useState(0),n=G(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,si(function(){var l;(l=a.current)===null||l===void 0||l.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function AB(e){var t=u.useRef([]),n=u.useState({}),r=G(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=oS(function(){var s=i.current;t.current.forEach(function(c){s=c(s);}),t.current=[],i.current=s,o({});});function l(s){t.current.push(s),a();}return [i.current,l]}var Dv={width:0,height:0,left:0,top:0,right:0};function DB(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,m;return ["top","bottom"].includes(s)?(d="width",f=c?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),u.useMemo(function(){if(!l.length)return [0,0];for(var h=l.length,g=h,v=0;v<h;v+=1){var p=e.get(l[v].key)||Dv;if(p[f]+p[d]>m+t){g=v-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var E=e.get(l[b].key)||Dv;if(E[f]<m){y=b+1;break}}return y>=g?[0,0]:[y,g]},[e,t,r,o,i,m,s,l.map(function(h){return h.key}).join("_"),c])}function zv(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var zB="TABS_DQ";function iS(e){return String(e).replace(/"/g,zB)}function aS(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function jB(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:u__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l});}},r.addIcon||"+")}const lS=u__namespace.forwardRef(jB);var jv=u__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return dt(o)==="object"&&!u__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function BB(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,c=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,y=e.getPopupContainer,b=e.popupClassName,E=u.useState(!1),M=G(E,2),w=M[0],x=M[1],S=u.useState(null),C=G(S,2),$=C[0],I=C[1],L="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),O=$!==null?"".concat(L,"-").concat($):null,P=i==null?void 0:i.dropdownAriaLabel;function _(j,H){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:H,event:j});}var k=u__namespace.createElement(Bi,{onClick:function(H){var B=H.key,X=H.domEvent;p(B,X),x(!1);},prefixCls:"".concat(R,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[$],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(j){var H=j.closable,B=j.disabled,X=j.closeIcon,J=j.key,Q=j.label,K=aS(H,X,m,B);return u__namespace.createElement(ll,{key:J,id:"".concat(L,"-").concat(J),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(J),disabled:B},u__namespace.createElement("span",null,Q),K&&u__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),_(re,J);}},X||m.removeIcon||"×"))}));function N(j){for(var H=o.filter(function(K){return !K.disabled}),B=H.findIndex(function(K){return K.key===$})||0,X=H.length,J=0;J<X;J+=1){B=(B+j+X)%X;var Q=H[B];if(!Q.disabled){I(Q.key);return}}}function A(j){var H=j.which;if(!w){[ie.DOWN,ie.SPACE,ie.ENTER].includes(H)&&(x(!0),j.preventDefault());return}switch(H){case ie.UP:N(-1),j.preventDefault();break;case ie.DOWN:N(1),j.preventDefault();break;case ie.ESC:x(!1);break;case ie.SPACE:case ie.ENTER:$!==null&&p($,j);break}}u.useEffect(function(){var j=document.getElementById(O);j&&j.scrollIntoView&&j.scrollIntoView(!1);},[$]),u.useEffect(function(){w||I(null);},[w]);var z=U({},g?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var F=W(U({},"".concat(R,"-rtl"),g)),V=a?null:u__namespace.createElement(vC,{prefixCls:R,overlay:k,trigger:["hover"],visible:o.length?w:!1,transitionName:c,onVisibleChange:x,overlayClassName:W(F,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":L,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:A},s));return u__namespace.createElement("div",{className:W("".concat(n,"-nav-operations"),f),style:d,ref:t},V,u__namespace.createElement(lS,{prefixCls:n,locale:i,editable:m}))}const HB=u__namespace.memo(u__namespace.forwardRef(BB),function(e,t){return t.tabMoving});function FB(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,g=e.onClick,v=e.onFocus,p=e.style,y="".concat(n,"-tab"),b=aS(d,c,h,s);function E(x){s||g(x);}function M(x){x.preventDefault(),x.stopPropagation(),h.onEdit("remove",{key:a,event:x});}var w=u__namespace.createElement("div",{key:a,"data-node-key":iS(a),className:W(y,(t={},U(t,"".concat(y,"-with-remove"),b),U(t,"".concat(y,"-active"),o),U(t,"".concat(y,"-disabled"),s),t)),style:p,onClick:E},u__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(S){S.stopPropagation(),E(S);},onKeyDown:function(S){[ie.SPACE,ie.ENTER].includes(S.which)&&(S.preventDefault(),E(S));},onFocus:v},l),b&&u__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(S){S.stopPropagation(),M(S);}},c||h.removeIcon||"×"));return f?f(w):w}var Qo=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},Rl=function(t,n){return t[n?0:1]};function WB(e,t){var n,r=u__namespace.useContext(zc),o=r.prefixCls,i=r.tabs,a=e.className,l=e.style,s=e.id,c=e.animated,d=e.activeKey,f=e.rtl,m=e.extra,h=e.editable,g=e.locale,v=e.tabPosition,p=e.tabBarGutter,y=e.children,b=e.onTabClick,E=e.onTabScroll,M=u.useRef(),w=u.useRef(),x=u.useRef(),S=u.useRef(),C=u.useRef(),$=u.useRef(),I=u.useRef(),L=v==="top"||v==="bottom",R=kv(0,function(He,Ke){L&&E&&E({direction:He>Ke?"left":"right"});}),O=G(R,2),P=O[0],_=O[1],k=kv(0,function(He,Ke){!L&&E&&E({direction:He>Ke?"top":"bottom"});}),N=G(k,2),A=N[0],z=N[1],F=u.useState([0,0]),V=G(F,2),j=V[0],H=V[1],B=u.useState([0,0]),X=G(B,2),J=X[0],Q=X[1],K=u.useState([0,0]),Y=G(K,2),re=Y[0],ue=Y[1],se=u.useState([0,0]),ee=G(se,2),ae=ee[0],q=ee[1],te=AB(new Map),ce=G(te,2),fe=ce[0],he=ce[1],ge=NB(i,fe,J[0]),be=Rl(j,L),Re=Rl(J,L),De=Rl(re,L),$e=Rl(ae,L),we=be<Re+De,Te=we?be-$e:be-De,Je="".concat(o,"-nav-operations-hidden"),Ve=0,Ye=0;L&&f?(Ve=0,Ye=Math.max(0,Re-Te)):(Ve=Math.min(0,Te-Re),Ye=0);function Me(He){return He<Ve?Ve:He>Ye?Ye:He}var ke=u.useRef(),qe=u.useState(),et=G(qe,2),ye=et[0],xe=et[1];function je(){xe(Date.now());}function Le(){window.clearTimeout(ke.current);}LB(S,function(He,Ke){function ut(wt,Kt){wt(function(Lt){var un=Me(Lt+Kt);return un});}return we?(L?ut(_,He):ut(z,Ke),Le(),je(),!0):!1}),u.useEffect(function(){return Le(),ye&&(ke.current=window.setTimeout(function(){xe(0);},100)),Le},[ye]);var rt=DB(ge,Te,L?P:A,Re,De,$e,Z(Z({},e),{},{tabs:i})),Ue=G(rt,2),de=Ue[0],ne=Ue[1],me=_n(function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,Ke=ge.get(He)||{width:0,height:0,left:0,right:0,top:0};if(L){var ut=P;f?Ke.right<P?ut=Ke.right:Ke.right+Ke.width>P+Te&&(ut=Ke.right+Ke.width-Te):Ke.left<-P?ut=-Ke.left:Ke.left+Ke.width>-P+Te&&(ut=-(Ke.left+Ke.width-Te)),z(0),_(Me(ut));}else {var wt=A;Ke.top<-A?wt=-Ke.top:Ke.top+Ke.height>-A+Te&&(wt=-(Ke.top+Ke.height-Te)),_(0),z(Me(wt));}}),le={};v==="top"||v==="bottom"?le[f?"marginRight":"marginLeft"]=p:le.marginTop=p;var Ne=i.map(function(He,Ke){var ut=He.key;return u__namespace.createElement(FB,{id:s,prefixCls:o,key:ut,tab:He,style:Ke===0?void 0:le,closable:He.closable,editable:h,active:ut===d,renderWrapper:y,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(Kt){b(ut,Kt);},onFocus:function(){me(ut),je(),S.current&&(f||(S.current.scrollLeft=0),S.current.scrollTop=0);}})}),tt=function(){return he(function(){var Ke=new Map;return i.forEach(function(ut){var wt,Kt=ut.key,Lt=(wt=C.current)===null||wt===void 0?void 0:wt.querySelector('[data-node-key="'.concat(iS(Kt),'"]'));Lt&&Ke.set(Kt,{width:Lt.offsetWidth,height:Lt.offsetHeight,left:Lt.offsetLeft,top:Lt.offsetTop});}),Ke})};u.useEffect(function(){tt();},[i.map(function(He){return He.key}).join("_")]);var ct=oS(function(){var He=Qo(M),Ke=Qo(w),ut=Qo(x);H([He[0]-Ke[0]-ut[0],He[1]-Ke[1]-ut[1]]);var wt=Qo(I);ue(wt);var Kt=Qo($);q(Kt);var Lt=Qo(C);Q([Lt[0]-wt[0],Lt[1]-wt[1]]),tt();}),Ae=i.slice(0,de),Se=i.slice(ne+1),ve=[].concat(Ge(Ae),Ge(Se)),Ee=u.useState(),_e=G(Ee,2),Ze=_e[0],ft=_e[1],vt=ge.get(d),Vt=u.useRef();function jt(){It.cancel(Vt.current);}u.useEffect(function(){var He={};return vt&&(L?(f?He.right=vt.right:He.left=vt.left,He.width=vt.width):(He.top=vt.top,He.height=vt.height)),jt(),Vt.current=It(function(){ft(He);}),jt},[vt,L,f]),u.useEffect(function(){me();},[d,Ve,Ye,zv(vt),zv(ge),L]),u.useEffect(function(){ct();},[f]);var Fe=!!ve.length,Xe="".concat(o,"-nav-wrap"),Be,pt,ht,Yt;return L?f?(pt=P>0,Be=P!==Ye):(Be=P<0,pt=P!==Ve):(ht=A<0,Yt=A!==Ve),u__namespace.createElement(Nr,{onResize:ct},u__namespace.createElement("div",{ref:Va(t,M),role:"tablist",className:W("".concat(o,"-nav"),a),style:l,onKeyDown:function(){je();}},u__namespace.createElement(jv,{ref:w,position:"left",extra:m,prefixCls:o}),u__namespace.createElement("div",{className:W(Xe,(n={},U(n,"".concat(Xe,"-ping-left"),Be),U(n,"".concat(Xe,"-ping-right"),pt),U(n,"".concat(Xe,"-ping-top"),ht),U(n,"".concat(Xe,"-ping-bottom"),Yt),n)),ref:S},u__namespace.createElement(Nr,{onResize:ct},u__namespace.createElement("div",{ref:C,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(A,"px)"),transition:ye?"none":void 0}},Ne,u__namespace.createElement(lS,{ref:I,prefixCls:o,locale:g,editable:h,style:Z(Z({},Ne.length===0?void 0:le),{},{visibility:Fe?"hidden":null})}),u__namespace.createElement("div",{className:W("".concat(o,"-ink-bar"),U({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ze})))),u__namespace.createElement(HB,Ce({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:$,prefixCls:o,tabs:ve,className:!Fe&&Je,tabMoving:!!ye})),u__namespace.createElement(jv,{ref:x,position:"right",extra:m,prefixCls:o})))}const Bv=u__namespace.forwardRef(WB);var VB=["renderTabBar"],KB=["label","key"];function GB(e){var t=e.renderTabBar,n=Qe(e,VB),r=u__namespace.useContext(zc),o=r.tabs;if(t){var i=Z(Z({},n),{},{panes:o.map(function(a){var l=a.label,s=a.key,c=Qe(a,KB);return u__namespace.createElement(rS,Ce({tab:l,key:s,tabKey:s},c))})});return t(i,Bv)}return u__namespace.createElement(Bv,n)}function UB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Z({inkBar:!0},dt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var XB=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Hv=0;function YB(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,l=e.items,s=e.direction,c=e.activeKey,d=e.defaultActiveKey,f=e.editable,m=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,y=e.tabBarExtraContent,b=e.locale,E=e.moreIcon,M=e.moreTransitionName,w=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,C=e.onTabClick,$=e.onTabScroll,I=e.getPopupContainer,L=e.popupClassName,R=Qe(e,XB),O=u__namespace.useMemo(function(){return (l||[]).filter(function(te){return te&&dt(te)==="object"&&"key"in te})},[l]),P=s==="rtl",_=UB(m),k=u.useState(!1),N=G(k,2),A=N[0],z=N[1];u.useEffect(function(){z(ac());},[]);var F=zt(function(){var te;return (te=O[0])===null||te===void 0?void 0:te.key},{value:c,defaultValue:d}),V=G(F,2),j=V[0],H=V[1],B=u.useState(function(){return O.findIndex(function(te){return te.key===j})}),X=G(B,2),J=X[0],Q=X[1];u.useEffect(function(){var te=O.findIndex(function(fe){return fe.key===j});if(te===-1){var ce;te=Math.max(0,Math.min(J,O.length-1)),H((ce=O[te])===null||ce===void 0?void 0:ce.key);}Q(te);},[O.map(function(te){return te.key}).join("_"),j,J]);var K=zt(null,{value:r}),Y=G(K,2),re=Y[0],ue=Y[1];u.useEffect(function(){r||(ue("rc-tabs-".concat(Hv)),Hv+=1);},[]);function se(te,ce){C==null||C(te,ce);var fe=te!==j;H(te),fe&&(S==null||S(te));}var ee={id:re,activeKey:j,animated:_,tabPosition:g,rtl:P,mobile:A},ae,q=Z(Z({},ee),{},{editable:f,locale:b,moreIcon:E,moreTransitionName:M,tabBarGutter:v,onTabClick:se,onTabScroll:$,extra:y,style:p,panes:null,getPopupContainer:I,popupClassName:L});return u__namespace.createElement(zc.Provider,{value:{tabs:O,prefixCls:i}},u__namespace.createElement("div",Ce({ref:t,id:r,className:W(i,"".concat(i,"-").concat(g),(n={},U(n,"".concat(i,"-mobile"),A),U(n,"".concat(i,"-editable"),f),U(n,"".concat(i,"-rtl"),P),n),a)},R),ae,u__namespace.createElement(GB,Ce({},q,{renderTabBar:x})),u__namespace.createElement(TB,Ce({destroyInactiveTabPane:w},ee,{animated:_}))))}var qB=u__namespace.forwardRef(YB);const ZB=()=>null,QB=ZB,JB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function eH(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},JB),{motionName:oc(e,"switch")})),n}var tH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nH(e){return e.filter(t=>t)}function rH(e,t){if(e)return e;const n=Qn(t).map(r=>{if(u__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=tH(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return nH(n)}const oH=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Jr(e,"slide-up"),Jr(e,"slide-down")]]},iH=oH,aH=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},lH=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 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({},xo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sH=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},cH=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},uH=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l}=e,s=`${t}-tab`;return {[s]:{position:"relative",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Io(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},dH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},fH=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Io(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),uH(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},mH=Ut("Tabs",e=>{const t=mt(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return [cH(t),dH(t),sH(t),lH(t),aH(t),fH(t),iH(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var hH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sS=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:l,addIcon:s,popupClassName:c,children:d,items:f,animated:m,style:h}=e,g=hH(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:v,moreIcon:p=u__namespace.createElement(Bm,null)}=g,{direction:y,tabs:b,getPrefixCls:E,getPopupContainer:M}=u__namespace.useContext(ot),w=E("tabs",v),[x,S]=mH(w);let C;t==="editable-card"&&(C={onEdit:(P,_)=>{let{key:k,event:N}=_;i==null||i(P==="add"?N:k,P);},removeIcon:u__namespace.createElement(mc,null),addIcon:s||u__namespace.createElement(J6,null),showAdd:a!==!0});const $=E(),I=rH(f,d),L=eH(w,m),R=kn(o),O=Object.assign(Object.assign({},b==null?void 0:b.style),h);return x(u__namespace.createElement(qB,Object.assign({direction:y,getPopupContainer:M,moreTransitionName:`${$}-slide-up`},g,{items:I,className:W({[`${w}-${R}`]:R,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:l},b==null?void 0:b.className,n,r,S),popupClassName:W(c,S),style:O,editable:C,moreIcon:p,prefixCls:w,animated:L})))};sS.TabPane=QB;const gH=sS,Fv=D(Jt,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function cS({style:e,className:t}){const{runAsync:n,loading:r}=YD(MA,{manual:!0}),{accessKey:o}=In();return D(Ac,{size:"small",style:e,className:t,children:o?pe(St,{children:[D(Jt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})}),D(Jt,{onClick:_A,children:D("span",{children:"删除 access_key"})}),Fv]}):pe(St,{children:[D(Jt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})}),Fv]})})}const vH="_config-icon_1xtyf_1",pH="_settings-group_1xtyf_6",bH="_settings-group-title_1xtyf_9",yH="_settings-group-sub-title_1xtyf_14",CH="_settings-group-content_1xtyf_20",SH="_row_1xtyf_26",wH="_check_1xtyf_34",$H="_setting-tabs_1xtyf_39",xH="_tab-pane_1xtyf_42",ze={configIcon:vH,settingsGroup:pH,settingsGroupTitle:bH,settingsGroupSubTitle:yH,settingsGroupContent:CH,row:SH,check:wH,settingTabs:$H,tabPane:xH};async function Wm(){Ct("即将刷新网页"),await Lo(500),location.reload();}function EH(){return aD(),Wm()}async function IH(){const e=await UA(),t=Ef(e||{},Ky);return Object.keys(t).length?(window[`${nn}-restore`]=Date.now(),gr({...t}),Wm()):Ct("备份不存在或没有有效的配置")}function Tl(e,t,n){return Qt(e,r=>{if(xc())return;yt[t]=!yt[t];const o=!yt[t];Ct(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function OH({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a,filterOutGotoTypePicture:l}=In();return Tl(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Tl(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Tl(["shift.c"],"useNarrowMode","居中模式"),Tl(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),pe(_m,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[pe("div",{className:mr.modalHeader,children:[pe("div",{className:mr.modalTitle,children:[D(Dt,{name:"Config",className:ze.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Rm,{onClick:t})]}),D("main",{className:mr.modalBody,style:{overflow:"hidden"},children:D(gH,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:ze.settingTabs,items:[{label:"常规设置",key:"normal",children:pe("div",{className:ze.tabPane,children:[pe("div",{className:ze.settingsGroup,children:[pe("div",{className:ze.settingsGroupTitle,children:["access_key",D(ys,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:pe(St,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:W(ze.settingsGroupContent),children:D("div",{className:ze.row,style:{marginTop:5},children:D(cS,{})})})]}),pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"开关"}),pe("div",{className:W(ze.settingsGroupContent,ze.row),children:[D(an,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:pe(St,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:ze.check,extraAction:Wm}),D(an,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:ze.check,extraAction:s=>{s&&Ct("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(an,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:pe(St,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+c"})]}),className:ze.check})]})]}),pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"预览"}),pe("div",{className:W(ze.settingsGroupContent,ze.row),children:[D(an,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:ze.check,tooltip:pe(St,{children:["手动预览快捷键: ",D(Vr,{color:"green",children:"."})," or ",D(Vr,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+p"})]})}),D(an,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:ze.check,tooltip:pe(St,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+m"})]})})]})]}),pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"帮助"}),D("div",{className:W(ze.settingsGroupContent),children:D("div",{className:ze.row,children:pe(Ac,{size:"small",children:[D(Jt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Jt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Jt,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"}),D(Jt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Jt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:ze.tabPane,children:pe("div",{className:ze.settingsGroup,children:[pe("div",{className:ze.settingsGroupTitle,children:["内容过滤",D(ys,{iconProps:{name:"Tips"},tooltip:pe(St,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),pe("div",{className:W(ze.settingsGroupContent),children:[D("div",{className:ze.settingsGroupSubTitle,children:"视频"}),pe("div",{className:ze.row,children:[D(an,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(St,{children:"不显示播放量很少的视频"})}),D(Cd,{size:"small",min:1,step:1e3,value:r,onChange:s=>s&&gr({filterMinPlayCount:s}),disabled:!o})]}),pe("div",{className:ze.row,style:{marginTop:3},children:[D(an,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(St,{children:"不显示短视频"})}),D(Cd,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:s=>s&&gr({filterMinDuration:s}),disabled:!a})]}),D(an,{className:ze.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})}),D("div",{className:ze.settingsGroupSubTitle,children:"图文"}),D(an,{className:ze.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(St,{children:"过滤掉图文推荐"})}),D(an,{className:ze.row,disabled:!l,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:ze.tabPane,children:pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),pe("div",{className:W(ze.settingsGroupContent),children:[D("div",{className:ze.row,children:D(an,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:pe(St,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(Vr,{color:"green",children:"shift+y"})]})})}),D("div",{className:ze.row,style:{marginTop:5},children:D(an,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:ze.tabPane,children:pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:W(ze.settingsGroupContent),children:D(xA,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:ze.tabPane,children:pe("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"设置项"}),D("div",{className:W(ze.settingsGroupContent),children:D("div",{className:ze.row,children:D(Tv,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:EH,children:D(Jt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),pe("div",{className:W(ze.settingsGroupContent),children:[pe("div",{className:ze.row,children:[D(an,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${nn}`}),pe("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Dt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:ze.row,style:{marginTop:5},children:D(Tv,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:IH,children:D(Jt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),pe("div",{className:W(ze.settingsGroupContent),children:[D("div",{className:ze.row,children:D(an,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(St,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:ze.row,children:D(an,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"预览"}),pe("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D($B,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:s=>yt.autoPreviewUpdateInterval=s,value:n}),pe("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const Wv=()=>document.querySelector(".bili-header__bar");function PH(){return !!(Wv()&&window.getComputedStyle(Wv()).display==="none")}function Fd(){if(!PH())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const _s=Jn({value:Fd()});function MH(){return nr(_s).value}function uS(){return _s.value}setTimeout(()=>{_s.value=Fd();const e=new MutationObserver(()=>{_s.value=Fd();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);function _H(){const e=u.useRef(null),[t,n]=u.useState(!1);return u.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const RH="_expand-btn_wdzp9_1",TH="_expanded_wdzp9_12",Vv={expandBtn:RH,expanded:TH},NH=u.forwardRef(function({children:t},n){const[r,o]=Jy(!1);u.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:W("primary-btn",Vv.expandBtn),onClick:o.toggle,children:D("svg",{className:W({[Vv.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return pe(St,{children:[i,r&&t]})}),kH="_modal-mask_7bwzz_1",LH="_narrow-mode_7bwzz_1",AH="_modal_7bwzz_1",DH="_modal-header_7bwzz_18",zH="_modal-body_7bwzz_19",jH="_btn-refresh_7bwzz_22",ea={modalMask:kH,narrowMode:LH,modal:AH,modalHeader:DH,modalBody:zH,btnRefresh:jH};var BH={name:"1q4vxyr",styles:"margin-left:8px"};const HH=u.memo(function({show:t,onHide:n}){const r=u.useRef(null),o=u.useRef(null),{useNarrowMode:i}=In(),a=u.useMemo(()=>({[ea.narrowMode]:i}),[i]),l=lt((...h)=>{var g;return (g=o.current)==null?void 0:g.refresh(...h)}),s=lt(()=>{r.current&&(r.current.scrollTop=0);}),c=$m(),d=u.useMemo(()=>c?{border:`1px solid ${Lr}`}:void 0,[c]),[f,m]=u.useState(!1);return pe(_m,{show:t,onHide:n,clsModalMask:W(a),clsModal:W(ea.modal,a),styleModal:{...d},children:[pe("div",{className:W(mr.modalHeader,ea.modalHeader),children:[D(gC,{onRefresh:l}),D("div",{className:"space",style:{flex:1}}),D(NH,{children:D(vA,{})}),D(hS,{css:BH,refreshing:f,onRefresh:l,className:ea.btnRefresh,refreshHotkeyEnabled:t}),D(Rm,{onClick:n})]}),D("div",{className:W(mr.modalBody,ea.modalBody),ref:r,children:D(XS,{ref:o,shortcutEnabled:t,onScrollToTop:s,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:m})})]})}),FH=Ti.extend("RecHeader"),Vm=Bn` display: flex; align-items: center; justify-content: center; `,Kv={btn:Bn` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${Vm} `,icon:Bn` svg { width: 14px; height: 14px; } `},qr=Jn({modalFeedVisible:yt.initialShowMore,modalConfigVisible:!1}),WH=function(){return nr(qr)},VH=()=>{qr.modalFeedVisible=!0;},KH=()=>{qr.modalFeedVisible=!1;},GH=()=>{qr.modalConfigVisible=!0;},UH=()=>{qr.modalConfigVisible=!1;},dS=u.createContext({onRefresh:QC});function fS(){return u.useContext(dS)}const mS=u.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:l}=In(),{modalFeedVisible:s,modalConfigVisible:c}=nr(qr);Qt(["shift.comma"],g=>{xc()||(qr.modalConfigVisible=!qr.modalConfigVisible);},{exactMatch:!0});const[d,f]=_H(),m=lt(()=>{var y;if(!l)return;const g=(y=d.current)==null?void 0:y.parentElement;if(!g)return;const v=g.getBoundingClientRect(),p=uS();if(v.top<p){const b=p-v.top+1;FH("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",v.top,p,b),document.documentElement.scrollTop-=b;}});u.useImperativeHandle(i,()=>({scroll:m}));const h=MH();return D(St,{children:pe(dS.Provider,{value:{onRefresh:t},children:[pe("div",{ref:d,className:"area-header",css:[Bn` margin-bottom: 0; height: 50px; `,l&&Bn` position: sticky; top: ${h-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,l&&f&&Bn` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[pe("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(gC,{onRefresh:t}),r]}),D("div",{className:"right",children:pe(Ac,{size:"small",children:[o,!a&&D(cS,{style:{marginLeft:5}}),D(Jt,{onClick:GH,css:Kv.btn,children:D(Dt,{name:"Config",css:Kv.icon})}),D(hS,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||s)}),!l&&pe(Jt,{css:Vm,onClick:VH,children:[D("span",{children:"查看更多"}),D("svg",{css:Bn` width: 12px; height: 12px; margin-left: 2px; `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(HH,{show:s,onHide:KH}),D(OH,{show:c,onHide:UH})]})})}),hS=u.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,l]=u.useState(0),s=u.useRef(null),c=lt(()=>{s.current&&(s.current.disabled||s.current.click());});u.useImperativeHandle(i,()=>({click:c}),[]),Qt("r",()=>{xc()||r&&c();},{exactMatch:!0});const d=al(),f=["dynamic","watchlater"].includes(d)?"刷新":"换一换",m=lt(h=>(l(g=>g+360),e==null?void 0:e()));return pe(Jt,{disabled:o,className:t,style:n,css:Bn` ${Vm} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:s,onClick:m,children:[D("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{l(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:f})]})});function gS(e){return `https://space.bilibili.com/${$c()}/favlist?fid=${e}`}const ii=class ii{constructor(){$t(this,"useShuffle");$t(this,"allFolderServices",[]);$t(this,"folderServices",[]);$t(this,"bufferQueue",[]);$t(this,"total",0);$t(this,"returnedItems",[]);$t(this,"foldersLoaded",!1);this.useShuffle=yt.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(qH,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,ii.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(ii.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.length<ii.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(i=>i.hasMore),r=zd(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=zd(this.bufferQueue);}return t()}async getAllFolders(){const r=(await wn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:$c()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new XH(o)),this.folderServices=this.allFolderServices.filter(o=>!yt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,i)=>o+i.entry.media_count,0);}};$t(ii,"PAGE_SIZE",20);let Na=ii;class XH{constructor(t){$t(this,"entry");$t(this,"hasMore");$t(this,"info");$t(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await wn.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!ko(n)){Ct(n.message);return}this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var i;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(i=this.info)==null?void 0:i.id}-${o.bvid}`}})}}var YH={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function qH({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=In(),{onRefresh:r}=fS(),[o,i]=u.useState(!1),a=lt((d,f,m)=>{i(!0),gr({excludeFavFolderIds:d});}),l=e.length-t.length,s=u.useMemo(()=>e.filter(d=>!t.includes(d.entry.id.toString())).reduce((d,f)=>d+f.entry.media_count,0),[e,t]),c=lt(d=>{d?i(!1):o&&r();});return pe(St,{children:[D(Uf,{trigger:"click",placement:"bottom",onOpenChange:c,content:D(St,{children:D(eB,{dataSource:e,rowKey:d=>d.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:a,render:d=>d.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:pe(Vr,{color:"success",css:YH,children:["收藏夹(",l,") 收藏(",s,")"]})}),D(FC,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:d=>{gr({shuffleForFav:d}),setTimeout(()=>{r();});}})]})}const ZH=pS("add"),QH=pS("remove"),vS={add:ZH,remove:QH},Wd=Tm();function JH(e){const t=nr(Wd);return e&&t.has(e)}function pS(e){const t=e==="add"?5:6;return async function(r){const o=$c(),i=new URLSearchParams({fid:r,act:String(t),re_src:"11",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:o,fp:e9()}),csrf:nl()}),l=(await wn.post("/x/relation/modify",i)).data,s=ko(l);return s||Ct(l.message||"未知错误"),s&&(e==="add"?Wd.add(r):e==="remove"&&Wd.delete(r)),s}}function e9(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const Tu={removeFav:t9,addFav:o9,getVideoFavState:n9};async function t9(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:nl()}),o=(await wn.post("/x/v3/fav/resource/batch-del",n)).data,i=ko(o);return i||Ct(o.message||Ay),i}async function n9(e){if(!rl())return;const r=(await wn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:$c(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>gS(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function r9({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:nl()}),i=(await wn.post("/x/v3/fav/resource/deal",r)).data,a=ko(i);return a||Ct((i==null?void 0:i.message)||"fav deal api fail"),a}let Nu=0,Vd="";async function o9(e){if(!Nu||!Vd){const t=new Na;await t.getAllFolders(),Nu=t.folderServices[0].entry.id,Vd=t.folderServices[0].entry.title;}return await r9({avid:e,add_media_ids:Nu.toString()})}var i9=1,a9=4;function l9(e){return aa(e,i9|a9)}const ui=Jn({updatedAt:0,bvidSet:Tm()});function s9(e){return nr(ui).bvidSet.has(e)}rl()&&setTimeout(()=>{new ka().loadMore();});const Or=class Or{constructor(t){$t(this,"loaded",!1);$t(this,"page",-1);$t(this,"hasMore",!0);$t(this,"count",0);$t(this,"items",[]);$t(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await wn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>ui.updatedAt&&(ui.updatedAt=Date.now(),ui.bvidSet=Tm(r.map(a=>a.bvid)));const o=Di().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at<o);if(i!==-1){const a=r.slice(0,i);let l=r.slice(i);this.keepOrder&&Or.LAST_ITEMS.length?(l=l.map(s=>({item:s,index:Or.LAST_ITEMS.findIndex(c=>c.bvid===s.bvid)})).sort((s,c)=>s.index-c.index).map(s=>s.item),r=[...a,...l]):yt.shuffleForWatchLater&&(r=[...a,...zd(l)]);}this.count=n.data.count,this.items=r,Or.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(c9,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Or.PAGE_SIZE,n=t+Or.PAGE_SIZE,r=l9(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};$t(Or,"PAGE_SIZE",15),$t(Or,"LAST_ITEMS",[]);let ka=Or;function c9({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=In(),{onRefresh:o}=fS();return pe(St,{children:[pe(Vr,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Ct(`稍后再看: ${n}`);},children:[e," / 100"]}),D(FC,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{gr({shuffleForWatchLater:i}),setTimeout(()=>{o();});}})]})}function bS(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}const u9="_bili-video-card_mnvtu_1",d9="_preview-card-wrapper_mnvtu_4",f9="_preview-card-inner_mnvtu_17",m9="_watch-later_mnvtu_21",h9="_badge_mnvtu_24",g9="_recommend-reason_mnvtu_33",v9="_bangumi-desc_mnvtu_48",p9="_btn-dislike_mnvtu_51",b9="_btn-dislike-icon_mnvtu_66",y9="_btn-dislike-tip_mnvtu_73",C9="_disliked-wrapper_mnvtu_88",S9="_dislike-content-cover_mnvtu_102",w9="_dislike-content-cover-inner_mnvtu_108",$9="_dislike-icon_mnvtu_119",x9="_dislike-reason_mnvtu_122",E9="_dislike-desc_mnvtu_126",I9="_dislike-content-action_mnvtu_130",O9="_skeleton-active_mnvtu_147",P9="_ant-skeleton-loading_mnvtu_1",Ht={biliVideoCard:u9,previewCardWrapper:d9,previewCardInner:f9,watchLater:m9,badge:h9,recommendReason:g9,bangumiDesc:v9,btnDislike:p9,btnDislikeIcon:b9,btnDislikeTip:y9,dislikedWrapper:C9,dislikeContentCover:S9,dislikeContentCoverInner:w9,dislikeIcon:$9,dislikeReason:x9,dislikeDesc:E9,dislikeContentAction:I9,skeletonActive:O9,antSkeletonLoading:P9};function M9(...e){for(const t of e)if(!isNaN(t))return t;return 0}function _9({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=u.useRef(null),a=z5(i),[l,s]=u.useState(()=>({width:0,height:0}));Pc(()=>{var m;const f=(m=i.current)==null?void 0:m.getBoundingClientRect();f&&s({width:f.width,height:f.height});});let c=0;if(typeof o=="number")c=o;else {const f=M9(a.elementX,r||0);l.width&&f&&!isNaN(f)&&(c=f/l.width,c<0&&(c=0),c>1&&(c=1));}const d={videoDuration:t,pvideo:n,elWidth:l.width,elHeight:l.height,progress:c};return D("div",{ref:i,className:W(Ht.previewCardWrapper,e),children:!!(n&&l.width&&l.height&&c)&&D(R9,{...d})})}function R9({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var w;const i=Math.floor((e||0)*o);let a=u.useMemo(()=>{const x=(t==null?void 0:t.index)||[];let S=N9(x,i);return S!==-1?S:i>x[x.length-1]?(S=Math.floor(x.length*o)-1,S<0&&(S=0),S):0},[t,i]);const{img_x_len:l,img_y_len:s,img_x_size:c,img_y_size:d}=t,f=s*l;a=a+1;const m=Math.floor(a/f),h=a-m*f,g=((w=t.image)==null?void 0:w[m])||"",v=Math.floor(h/l)+1,p=h-(v-1)*l,y=n*l,b=r*s,E=(v-1)*r,M=(p-1)*n;return D("div",{className:Ht.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${M}px -${E}px`,backgroundSize:`${y}px ${b}px`},children:D(T9,{progress:o})})}function T9({progress:e}){return D("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:D("div",{className:"bar",style:{backgroundColor:Lr,height:"100%",width:`${e*100}%`}})})}function N9(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const l=Math.floor((n+r)/2),s=e[l];if(t===s)return l;s<t?(n=l+1,o=l):r=l-1;}if(o===-1)return -1;const i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const oa={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},La={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},k9={bangumiFollow:1.3},L9=e=>{const t=La[e]||La[1];return oa[t]},A9=e=>{const t=La[e];if(t)return k9[t]};function Gv(e){return {iconSvgName:L9(e),iconSvgScale:A9(e)}}function yS(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",i=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):i?t.watchlater(e):t.fav(e)}function CS(e){return yS(e,{pc:D9,app:z9,dynamic:j9,watchlater:B9,fav:H9})}function D9(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Ur(e.pubdate),duration:e.duration,durationStr:Ec(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function z9(e){var i,a,l;const t=s=>{const{cover_left_icon_1:c,cover_left_text_1:d,cover_left_icon_2:f,cover_left_text_2:m}=e;if(c&&La[c]===s)return Ss(d);if(f&&La[f]===s)return Ss(m)},n=e.param,r=kA.av2bv(Number(e.param)),o=(()=>{var s;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${nn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(s=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:s[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:Ec((a=e.player_args)==null?void 0:a.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((l=e.desc_button)==null?void 0:l.text)||e.desc||""}}function j9(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Di().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:Ur(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:FA(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Ss(t.stat.play),danmaku:Ss(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function B9(e){const t=KA(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(_y,{title:pe(St,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:pe("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Ur(e.pubdate),pubdateDisplayTitle:`${Ur(e.pubdate,!0)} 发布, ${Ur(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Ec(e.duration),recommendReason:`${Ur(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function H9(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:pe(St,{children:["【",D(Dt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Lr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:Ur(e.pubtime),duration:e.duration,durationStr:Ec(e.duration),recommendReason:`${Ur(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const F9=e=>(e||"").replace(/^http:\/\//,"https://");function Uv(e){GM.setClipboard(e),Ct(`已复制: ${e}`);}const SS=bS(),W9="--video-card-border-radius",wS=`var(${W9})`,$S={borderRadius:wS},Rs=u.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:l,emitter:s,...c}){o=o??!r;const d=pe("div",{className:W("bili-video-card__skeleton",{hide:!o,[Ht.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:$S}),D("div",{className:"bili-video-card__skeleton--info",children:pe("div",{className:"bili-video-card__skeleton--right",children:[D("p",{className:"bili-video-card__skeleton--text"}),D("p",{className:"bili-video-card__skeleton--text short"}),D("p",{className:"bili-video-card__skeleton--light"})]})})]}),f=fz((r==null?void 0:r.api)==="app"&&r.param),m=u.useMemo(()=>r&&CS(r),[r]),h=JH(m==null?void 0:m.authorMid);return pe("div",{style:t,className:W("bili-video-card",Ht.biliVideoCard,n),...c,children:[d,!o&&r&&m&&(f?D(V9,{item:r,emitter:s,dislikedReason:f}):h?D(K9,{cardData:m}):D(G9,{item:r,cardData:m,active:i,emitter:s,onRemoveCurrent:a,onMoveToFirst:l}))]})}),V9=u.memo(function({dislikedReason:t,item:n,emitter:r=SS}){const o=lt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await nz(n,t.id);}catch(l){a=l;}if(a)return console.error(a.stack||a),Dy();i?Ct("已撤销"):zy(),i&&Rc.delete(n.param);});return ei(r,"cancel-dislike",o),pe("div",{className:W(Ht.dislikedWrapper),children:[D("div",{className:Ht.dislikeContentCover,children:pe("div",{className:Ht.dislikeContentCoverInner,children:[D(Dt,{name:"DistraughtFace",size:32,className:Ht.dislikeIcon}),D("div",{className:Ht.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Ht.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Ht.dislikeContentAction,children:pe("button",{onClick:o,children:[D(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),K9=u.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=lt(async()=>{if(!n)return;await vS.remove(n)&&Ct(`已移出黑名单: ${o}`);});return pe("div",{className:W(Ht.dislikedWrapper),children:[D("div",{className:Ht.dislikeContentCover,children:pe("div",{className:Ht.dislikeContentCoverInner,children:[D(Dt,{name:"PeopleDelete",size:32,className:Ht.dislikeIcon}),D("div",{className:Ht.dislikeReason,children:"已拉黑"}),pe("div",{className:Ht.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Ht.dislikeContentAction,children:pe("button",{onClick:i,children:[D(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),G9=u.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,emitter:a=SS}){var Ue,de;const l=t.api==="pc",s=t.api==="app";t.api,t.api,t.api;const{avid:c,bvid:d,goto:f,href:m,title:h,titleRender:g,coverRaw:v,pubdateDisplay:p,pubdateDisplayTitle:y,duration:b,durationStr:E,recommendReason:M,invalidReason:w,play:x,like:S,coin:C,danmaku:$,favorite:I,authorName:L,authorFace:R,authorMid:O,appBadge:P,appBadgeDesc:_}=n,k=f==="av";["av","bangumi","picture"].includes(f)||console.warn(`[${nn}]: none (av,bangumi,picture) goto type %s`,f,t);const N=u.useMemo(()=>F9(v),[v]),[A,z]=u.useState(null),F=u.useRef(!1),V=lt(async()=>{if(!A&&!F.current)try{F.current=!0,z(await ez(c));}finally{F.current=!1;}}),j=u.useRef(null),[H,B]=u.useState(void 0);Yr("mouseenter",ne=>{var tt;const me=(tt=j.current)==null?void 0:tt.getBoundingClientRect();if(!me)return;const{x:le}=me,Ne=ne.pageX-window.pageXOffset-le;B(Ne);},{target:j});const X=Mu(j),{autoPreviewWhenHover:J}=In(),{onStartPreviewAnimation:Q,onHotkeyPreviewAnimation:K,previewAnimationProgress:Y}=U9({bvid:d,title:h,autoPreviewWhenHover:J,active:r,tryFetchVideoData:V,videoPreviewWrapperRef:j});ws(()=>{if(r){try{unsafeWindow[`${uI}_activeItem`]=t;}catch(ne){console.warn("set unsafeWindow activeItem error"),console.warn(ne.stack||ne);}yt.autoPreviewWhenKeyboardSelect&&Q();}},[r]);const re=u.useRef(null),ue=Mu(re),se=s9(d),{accessKey:ee}=In(),ae=!!ee;u.useEffect(()=>{X&&V();},[X]);const q=u.useRef(!1),te=lt(async(ne,me)=>{if(ne==null||ne.preventDefault(),me??(me=se?uv:Pl),me!==Pl&&me!==uv)throw new Error("unexpected usingAction provided");if(q.current)return;q.current=!0;let le=!1;try{le=await me(c);}finally{q.current=!1;}if(le){const Ne=me===Pl;Ne?ui.bvidSet.add(d):ui.bvidSet.delete(d),t.api==="watchlater"&&Ne===!1&&(await Lo(100),o==null||o(t,n));}return le}),ce=u.useRef(null),fe=Mu(ce),he=lt(ne=>{if(ne==null||ne.stopPropagation(),ne==null||ne.preventDefault(),!ke)return t.api!=="app"?Ct("当前视频不支持提交「我不想看」"):ae?void 0:Ct("请先获取 access_key");vz(t);}),ge=u.useMemo(()=>Iu(x),[x]),be=u.useMemo(()=>Iu(S),[S]),Re=u.useMemo(()=>Iu(I),[I]),De=l?be:Re,$e=({text:ne,iconSvgName:me,iconSvgScale:le})=>pe("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:le?`scale(${le})`:void 0},children:D("use",{href:me})}),D("span",{className:"bili-video-card__stats--text",children:ne})]}),[we,Te]=u.useState(void 0),[Je,Ve]=u.useState(void 0),Ye=lt(async()=>{if(t.api!=="watchlater")return;const ne=await Tu.getVideoFavState(c);if(ne){const{favFolderNames:me,favFolderUrls:le}=ne;Te(me),Ve(le);}}),Me=lt(()=>{window.open(m,"_blank");});ei(a,"open",Me),ei(a,"toggle-watch-later",()=>te()),ei(a,"trigger-dislike",()=>he()),ei(a,"start-preview-animation",Q),ei(a,"hotkey-preview-animation",K);const ke=s&&ae&&((de=(Ue=t.three_point)==null?void 0:Ue.dislike_reasons)==null?void 0:de.length),qe=lt(()=>{let ne=m;m.startsWith("/")&&(ne=new URL(m,location.href).href),Uv(ne);}),et=lt(()=>{let ne=m;t.api==="watchlater"&&(ne=`/video/${t.bvid}`);const me=new URL(ne,location.href).href,le=`iina://open?url=${encodeURIComponent(me)}`;window.open(le,"_self");}),ye=al(),xe=ye==="recommend-app"||ye==="recommend-pc",je=lt(async()=>{if(!O)return Ct("UP mid 为空!");await vS.add(O)&&Ct(`已加入黑名单: ${L}`);}),Le=u.useMemo(()=>{const ne=se?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Dt,{name:"EfferentFour",size:15}),onClick:Me},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Dt,{name:"Copy",size:15}),onClick:qe},{key:"copy-bvid",label:"复制 BVID",icon:D(Dt,{name:"Copy",size:15}),onClick(){Uv(d);}},{type:"divider"},ke&&{key:"dislike",label:"我不想看",icon:D(Dt,{name:"DislikeTwo",size:15}),onClick(){he();}},xe&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Dt,{name:"PeopleDelete",size:15}),onClick(){je();}},t.api==="watchlater"&&{key:"add-fav",icon:D(Dt,{name:"Star",size:15,...we!=null&&we.length?{theme:"two-tone",fill:["currentColor",Lr]}:void 0}),label:we!=null&&we.length?`已收藏 ${we.map(me=>`「${me}」`).join("")}`:"快速收藏",async onClick(){!!(we!=null&&we.length)?Je==null||Je.forEach(le=>{window.open(le,"_blank");}):await Tu.addFav(c)&&Ct(`已加入收藏夹「${Vd}』」`);}},{key:"watchlater",label:ne,icon:D(Dt,{name:se?"Delete":"FileCabinet",size:15}),onClick(){te();}},t.api==="watchlater"&&se&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Dt,{name:"AddTwo",size:15}),async onClick(){await te(void 0,Pl)&&(i==null||i(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Dt,{name:"EfferentFour",size:15}),onClick(){const{id:me}=t.folder,le=gS(me);window.open(le,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Dt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Tu.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...XL?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Dt,{name:"PlayTwo",size:15}),onClick:et}]:[]].filter(Boolean)},[t,se,ke,xe,we,Je]),rt=lt(ne=>{ne&&Ye();});return pe("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(zC,{menu:{items:Le},trigger:["contextMenu"],onOpenChange:rt,children:D("a",{href:m,target:"_blank",children:pe("div",{className:"bili-video-card__image __scale-player-wrap",ref:j,style:{...$S,aspectRatio:"16 / 9"},children:[pe("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[pe("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!xm&&D("source",{srcSet:`${N}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${N}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${N}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(X||typeof Y=="number")&&D(_9,{videoDuration:b,pvideo:A==null?void 0:A.pvideoData,mouseEnterRelativeX:H,previewAnimationProgress:Y}),pe("div",{className:`bili-watch-later ${Ht.watchLater}`,style:{display:X||r?"flex":"none"},ref:re,onClick:te,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:se?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ue?"block":"none"},children:se?"移除稍后再看":"稍后再看"})]}),ke&&pe("div",{ref:ce,className:Ht.btnDislike,onClick:he,style:{display:X?"flex":"none"},children:[D("svg",{className:Ht.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Ht.btnDislikeTip,style:{display:fe?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:pe("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:l?pe(St,{children:[$e({text:ge,iconSvgName:oa.play}),$e({text:f==="av"?be:De,iconSvgName:oa.like})]}):s?pe(St,{children:[t.cover_left_text_1&&$e({...Gv(t.cover_left_icon_1),text:f==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&$e({...Gv(t.cover_left_icon_2),text:f==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):pe(St,{children:[$e({text:ge,iconSvgName:oa.play}),$e({text:($||0).toString(),iconSvgName:oa.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:k&&E})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:pe("div",{className:"bili-video-card__info--right",children:[D("a",{href:m,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:h,children:g??h})}),D("p",{className:"bili-video-card__info--bottom",children:k?pe("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${O}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${L} ${y||p}`,children:[M?D("span",{className:Ht.recommendReason,children:M}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:L}),p&&pe("span",{className:"bili-video-card__info--date",children:["· ",p]})]}):P||_?pe("a",{className:"bili-video-card__info--owner",href:m,target:"_blank",children:[D("span",{className:Ht.badge,children:P||""}),D("span",{className:Ht.bangumiDesc,children:_||""})]}):null})]})})]})});function U9({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[l,s]=iC(void 0),[c,d]=u.useState(!1),f=u.useRef(!1),m=u.useRef(!1);Yr("mouseenter",C=>{f.current=!0,n&&!g.current&&S(!0);},{target:i}),Yr("mouseleave",C=>{f.current=!1;},{target:i}),Yr("mousemove",C=>{d(!0),n||p();},{target:i});const h=B5(),g=u.useRef(void 0),v=lt(()=>{if(h.current)return !0;if(n){if(m.current){if(!f.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=lt((C=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,s(void 0),b(!1);}),[y,b,E]=rC(!1),M=u.useRef(),w=lt(()=>{var C;if(!g.current){S();return}b($=>!$),y&&((C=M.current)==null||C.call(M,l||0));}),x=lt(()=>l||0),S=lt((C=!1)=>{m.current=C,d(!1),b(!1),o(),p(!0),s(P=>typeof P>"u"?0:P);const $=8e3,I=()=>typeof yt.autoPreviewUpdateInterval=="number"?yt.autoPreviewUpdateInterval:400;let L=performance.now(),R=0;M.current=()=>{L=performance.now()-x()*$;};function O(P){if(v()){p();return}const _=()=>{const k=performance.now()-L,N=Math.min(k%$/$,1);s(N);};E()||(I()?(!R||performance.now()-R>=I())&&(R=performance.now(),_()):_()),g.current=requestAnimationFrame(O);}g.current=requestAnimationFrame(O);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:S,previewAnimationProgress:l}}var X9=1,Y9=2;function q9(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return !1}for(;++o<i;){l=n[o];var s=l[0],c=e[s],d=l[1];if(a&&l[2]){if(c===void 0&&!(s in e))return !1}else {var f=new dr;if(r)var m=r(c,d,s,e,t,f);if(!(m===void 0?_c(d,c,X9|Y9,r,f):m))return !1}}return !0}function xS(e){return e===e&&!Fn(e)}function Z9(e){for(var t=Ba(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,xS(o)];}return t}function ES(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Q9(e){var t=Z9(e);return t.length==1&&t[0][2]?ES(t[0][0],t[0][1]):function(n){return n===e||q9(n,e,t)}}function J9(e,t,n){var r=e==null?void 0:ec(e,t);return r===void 0?n:r}var eF=1,tF=2;function nF(e,t){return $f(e)&&xS(t)?ES(Ri(e),t):function(n){var r=J9(n,e);return r===void 0&&r===t?Qp(n,e):_c(t,r,eF|tF)}}function rF(e){return function(t){return t==null?void 0:t[e]}}function oF(e){return function(t){return ec(t,e)}}function iF(e){return $f(e)?rF(Ri(e)):oF(e)}function aF(e){return typeof e=="function"?e:e==null?Xp:typeof e=="object"?Wn(e)?nF(e[0],e[1]):Q9(e):iF(e)}function lF(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function sF(e){return e!==e}function cF(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function uF(e,t,n){return t===t?cF(e,t,n):lF(e,sF,n)}function dF(e,t){var n=e==null?0:e.length;return !!n&&uF(e,t,0)>-1}function fF(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var mF=1/0,hF=li&&1/Mm(new li([,-0]))[1]==mF?function(e){return new li(e)}:QC;const gF=hF;var vF=200;function pF(e,t,n){var r=-1,o=dF,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=fF;else if(i>=vF){var c=t?null:gF(e);if(c)return Mm(c);a=!1,o=tC,s=new Ra;}else s=t?[]:l;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,a&&f===f){for(var m=s.length;m--;)if(s[m]===f)continue e;t&&s.push(f),l.push(d);}else o(s,f,n)||(s!==l&&s.push(f),l.push(d));}return l}function jc(e,t){return e&&e.length?pF(e,aF(t)):[]}const Km="_video-grid_1qaxg_9",IS="_video-grid-new-homepage_1qaxg_17",bF="_limit-two-lines_1qaxg_20",OS="_video-grid-internal-testing_1qaxg_52";const Xv="_video-grid-container_1qaxg_80",yF="_video-grid-youtube-like_1qaxg_84",CF="_narrow-mode_1qaxg_112";function SF({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:l}){const[s,c]=u.useState(void 0),d=lt(()=>!(!e||xc())),f=lt(()=>{var S;if(typeof s!="number"||!o.current)return !1;const w=i(),x=(S=o.current.querySelector(`.${fi.card}.${fi.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!w||!x||x.top-w.top<-(w.height+x.height)||x.top-w.top>w.height*2+x.height)}),m=w=>x=>{if(!d())return;x==null||x.preventDefault();let S=typeof w=="number"?w:w();const C=f()?s+S:p();if(C<n){M(n);return}if(C>r){M(r);return}c(C),M(C);};Qt("leftarrow",m(-1),{exactMatch:!0}),Qt("rightarrow",m(1),{exactMatch:!0}),Qt("tab",m(1),{exactMatch:!0}),Qt("shift.tab",m(-1),{exactMatch:!0});const h=()=>Gm(o.current);Qt("uparrow",m(()=>-h()),{exactMatch:!0}),Qt("downarrow",m(h),{exactMatch:!0});const g=()=>{d()&&c(void 0);},v=()=>{if(!(!d()||typeof s!="number"))return l[s]};Qt("esc",g),Qt("enter",()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("open");}),Qt("backspace",()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("trigger-dislike");}),Qt(["s","w"],()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("toggle-watch-later");},{exactMatch:!0}),Qt(["period","p"],()=>{var w;!d()||typeof s!="number"||(w=v())==null||w.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const w=i();if(!w)return 0;const x=b();for(let S=0;S<x.length;S++)if(x[S].getBoundingClientRect().top>=w.top)return S;return 0}const y=`.${fi.card}`;function b(){var w;return [...((w=o.current)==null?void 0:w.querySelectorAll(y))||[]]}function E(w){return b()[w]}function M(w){var $;const x=E(w);($=x==null?void 0:x.scrollIntoViewIfNeeded)==null||$.call(x,!1);const S=i(),C=x.getBoundingClientRect();if(!(!S||!C)){if(C.top<=S.top){const I=-(S.top-C.top+10);a==null||a({offset:I});return}if(S.bottom-C.bottom<10){const I=10-(S.bottom-C.bottom);a==null||a({offset:I});return}}}return {activeIndex:s,clearActiveIndex:g}}const wF=new Map,$F=new Map;function Gm(e,t=!0){if(t&&yt.useNarrowMode)return 2;const n=yt.styleUseYoutubeLikeCard?wF:$F;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Km}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function PS(e){return e==="onlyFollow"||yt.filterMinDurationEnabled||yt.filterMinPlayCountEnabled||yt.filterOutGotoTypePicture}function MS(e,t){return PS(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=CS(n),l=i==="已关注"||(i==null?void 0:i.includes("关注"));if(t==="onlyFollow"&&!l)return !1;const s=a==="av",c=a==="picture";if(s)return d();if(c)return f();return !0;function d(){return l&&!yt.enableFilterForFollowedVideo?!0:!(yt.filterMinPlayCountEnabled&&yt.filterMinPlayCount&&typeof r=="number"&&r<yt.filterMinPlayCount||yt.filterMinDurationEnabled&&yt.filterMinDuration&&o&&o<yt.filterMinDuration)}function f(){return yt.filterOutGotoTypePicture?!!(l&&!yt.enableFilterForFollowedPicture):!0}}):e}var Bc={exports:{}},Um={exports:{}},_S={exports:{}},en=_S.exports={},ir,ar;function Kd(){throw new Error("setTimeout has not been defined")}function Gd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ir=setTimeout:ir=Kd;}catch{ir=Kd;}try{typeof clearTimeout=="function"?ar=clearTimeout:ar=Gd;}catch{ar=Gd;}})();function RS(e){if(ir===setTimeout)return setTimeout(e,0);if((ir===Kd||!ir)&&setTimeout)return ir=setTimeout,setTimeout(e,0);try{return ir(e,0)}catch{try{return ir.call(null,e,0)}catch{return ir.call(this,e,0)}}}function xF(e){if(ar===clearTimeout)return clearTimeout(e);if((ar===Gd||!ar)&&clearTimeout)return ar=clearTimeout,clearTimeout(e);try{return ar(e)}catch{try{return ar.call(null,e)}catch{return ar.call(this,e)}}}var Mr=[],di=!1,bo,ql=-1;function EF(){!di||!bo||(di=!1,bo.length?Mr=bo.concat(Mr):ql=-1,Mr.length&&TS());}function TS(){if(!di){var e=RS(EF);di=!0;for(var t=Mr.length;t;){for(bo=Mr,Mr=[];++ql<t;)bo&&bo[ql].run();ql=-1,t=Mr.length;}bo=null,di=!1,xF(e);}}en.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Mr.push(new NS(e,t)),Mr.length===1&&!di&&RS(TS);};function NS(e,t){this.fun=e,this.array=t;}NS.prototype.run=function(){this.fun.apply(null,this.array);};en.title="browser";en.browser=!0;en.env={};en.argv=[];en.version="";en.versions={};function jr(){}en.on=jr;en.addListener=jr;en.once=jr;en.off=jr;en.removeListener=jr;en.removeAllListeners=jr;en.emit=jr;en.prependListener=jr;en.prependOnceListener=jr;en.listeners=function(e){return []};en.binding=function(e){throw new Error("process.binding is not supported")};en.cwd=function(){return "/"};en.chdir=function(e){throw new Error("process.chdir is not supported")};en.umask=function(){return 0};var IF=_S.exports;const ku=Ar(IF);var Ud;typeof Object.create=="function"?Ud=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Ud=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const kS=Ud;var OF=/%[sdj%]/g;function Pi(e){if(!ul(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(hr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(OF,function(l){if(l==="%%")return "%";if(n>=o)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return l}}),a=r[n];n<o;a=r[++n])cl(a)||!Do(a)?i+=" "+a:i+=" "+hr(a);return i}function Xm(e,t){if(cr(global.process))return function(){return Xm(e,t).apply(this,arguments)};if(ku.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(ku.throwDeprecation)throw new Error(t);ku.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Nl={},Lu;function LS(e){if(cr(Lu)&&(Lu={}.NODE_DEBUG||""),e=e.toUpperCase(),!Nl[e])if(new RegExp("\\b"+e+"\\b","i").test(Lu)){var t=0;Nl[e]=function(){var n=Pi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Nl[e]=function(){};return Nl[e]}function hr(e,t){var n={seen:[],stylize:MF};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Hc(t)?n.showHidden=t:t&&Qm(n,t),cr(n.showHidden)&&(n.showHidden=!1),cr(n.depth)&&(n.depth=2),cr(n.colors)&&(n.colors=!1),cr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=PF),Ts(n,e,n.depth)}hr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};hr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function PF(e,t){var n=hr.styles[t];return n?"\x1B["+hr.colors[n][0]+"m"+e+"\x1B["+hr.colors[n][1]+"m":e}function MF(e,t){return e}function _F(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Ts(e,t,n){if(e.customInspect&&t&&pa(t.inspect)&&t.inspect!==hr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return ul(r)||(r=Ts(e,r,n)),r}var o=RF(e,t);if(o)return o;var i=Object.keys(t),a=_F(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),va(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Au(t);if(i.length===0){if(pa(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(ga(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ns(t))return e.stylize(Date.prototype.toString.call(t),"date");if(va(t))return Au(t)}var s="",c=!1,d=["{","}"];if(Ym(t)&&(c=!0,d=["[","]"]),pa(t)){var f=t.name?": "+t.name:"";s=" [Function"+f+"]";}if(ga(t)&&(s=" "+RegExp.prototype.toString.call(t)),Ns(t)&&(s=" "+Date.prototype.toUTCString.call(t)),va(t)&&(s=" "+Au(t)),i.length===0&&(!c||t.length==0))return d[0]+s+d[1];if(n<0)return ga(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=TF(e,t,n,a,i):m=i.map(function(h){return Xd(e,t,n,a,h,c)}),e.seen.pop(),NF(m,s,d)}function RF(e,t){if(cr(t))return e.stylize("undefined","undefined");if(ul(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(qm(t))return e.stylize(""+t,"number");if(Hc(t))return e.stylize(""+t,"boolean");if(cl(t))return e.stylize("null","null")}function Au(e){return "["+Error.prototype.toString.call(e)+"]"}function TF(e,t,n,r,o){for(var i=[],a=0,l=t.length;a<l;++a)HS(t,String(a))?i.push(Xd(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(s){s.match(/^\d+$/)||i.push(Xd(e,t,n,r,s,!0));}),i}function Xd(e,t,n,r,o,i){var a,l,s;if(s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),HS(r,o)||(a="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(cl(n)?l=Ts(e,s.value,null):l=Ts(e,s.value,n-1),l.indexOf(` `)>-1&&(i?l=l.split(` `).map(function(c){return " "+c}).join(` `).substr(2):l=` `+l.split(` `).map(function(c){return " "+c}).join(` `))):l=e.stylize("[Circular]","special")),cr(a)){if(i&&o.match(/^\d+$/))return l;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+l}function NF(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(` `)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Ym(e){return Array.isArray(e)}function Hc(e){return typeof e=="boolean"}function cl(e){return e===null}function AS(e){return e==null}function qm(e){return typeof e=="number"}function ul(e){return typeof e=="string"}function DS(e){return typeof e=="symbol"}function cr(e){return e===void 0}function ga(e){return Do(e)&&Zm(e)==="[object RegExp]"}function Do(e){return typeof e=="object"&&e!==null}function Ns(e){return Do(e)&&Zm(e)==="[object Date]"}function va(e){return Do(e)&&(Zm(e)==="[object Error]"||e instanceof Error)}function pa(e){return typeof e=="function"}function zS(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function jS(e){return Buffer.isBuffer(e)}function Zm(e){return Object.prototype.toString.call(e)}function Du(e){return e<10?"0"+e.toString(10):e.toString(10)}var kF=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function LF(){var e=new Date,t=[Du(e.getHours()),Du(e.getMinutes()),Du(e.getSeconds())].join(":");return [e.getDate(),kF[e.getMonth()],t].join(" ")}function BS(){console.log("%s - %s",LF(),Pi.apply(null,arguments));}function Qm(e,t){if(!t||!Do(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function HS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const AF={inherits:kS,_extend:Qm,log:BS,isBuffer:jS,isPrimitive:zS,isFunction:pa,isError:va,isDate:Ns,isObject:Do,isRegExp:ga,isUndefined:cr,isSymbol:DS,isString:ul,isNumber:qm,isNullOrUndefined:AS,isNull:cl,isBoolean:Hc,isArray:Ym,inspect:hr,deprecate:Xm,format:Pi,debuglog:LS},DF=Object.freeze(Object.defineProperty({__proto__:null,_extend:Qm,debuglog:LS,default:AF,deprecate:Xm,format:Pi,inherits:kS,inspect:hr,isArray:Ym,isBoolean:Hc,isBuffer:jS,isDate:Ns,isError:va,isFunction:pa,isNull:cl,isNullOrUndefined:AS,isNumber:qm,isObject:Do,isPrimitive:zS,isRegExp:ga,isString:ul,isSymbol:DS,isUndefined:cr,log:BS},Symbol.toStringTag,{value:"Module"})),zF=u1(DF);var jF=zF.format;function BF(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function HF(e,t){return function(){var n=this,r=[].slice.call(arguments);BF();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var l=setTimeout(function(){var s=new FS(t);a(s),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(s){clearTimeout(l),i(s);},function(s){clearTimeout(l),a(s);});})}}let FS=class WS extends Error{constructor(t){super(),this.timeout=t,this.message=jF("timeout of %sms exceed",t),Error.captureStackTrace(this,WS);}};Um.exports=HF;Um.exports.TimeoutError=FS;var FF=Um.exports;const VS=FF,WF=VS.TimeoutError;Bc.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=VS(t,i));const a=n.onerror;return async function(){const l=this,s=[].slice.call(arguments),c=new Array(o);for(let d=0;d<o;d++){let f,m;try{f=await t.apply(l,s);}catch(h){m=h;}if(!m)return f;if(m instanceof TypeError)throw m;if(m instanceof VF)throw m.originalError;c[d]=m,a&&a(m,d);}throw new KS({times:o,timeout:i,fn:r,errors:c})}};class KS extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class VF extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}var KF=Bc.exports.RetryError=KS;Bc.exports.TimeoutError=WF;var GF=Bc.exports;const UF=Ar(GF);class Jm extends Error{constructor(n){super();$t(this,"json");Error.captureStackTrace(this,Jm),this.json=n,this.message=n.message||JSON.stringify(n);}}async function XF(){var r;const t=(await wc.get(By+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new Jm(t);return Ct(`${nn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const YF=UF(XF,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",nn,t,e);}});async function qF(){try{return await YF()}catch(e){if(e instanceof KF){console.error(e.errors);const t=[Pi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Pi(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);Ct(t,5e3);}throw e}}class ks{constructor(){$t(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>qF()))).flat();})(),n=jc(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}$t(ks,"PAGE_SIZE",10);const Ls=class Ls{constructor(){$t(this,"page",0);$t(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var a,l;const n=++this.page,o=(await wn.get("/x/web-interface/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Ls.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||Ct(o.message||"API 请求没有返回结果"),((l=o.data)==null?void 0:l.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=jc(r,i=>i.id),r.forEach(i=>{var a,l;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((l=i.rcmd_reason).content||(l.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};$t(Ls,"PAGE_SIZE",14);let Aa=Ls;const kl=Ti.extend("service"),Zl=e=>yS(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function ZF(e,t){const n=e.map(Zl);return t=jc(t,Zl),e.concat(t.filter(r=>!n.includes(Zl(r))))}const Yd=e=>e==="onlyFollow"||e==="recommend-pc";async function GS(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:l,abortSignal:s}=t,c=new ks;let d=[],f=!0;const m=async h=>{let g=[];if(l==="dynamic"){g=await o.loadMore(s)||[],f=o.hasMore,d=d.concat(g);return}if(l==="watchlater"){g=await i.loadMore()||[],f=i.hasMore,d=d.concat(g);return}if(l==="fav"){g=await a.loadMore()||[],f=a.hasMore,d=d.concat(g);return}let v;if(l==="onlyFollow")v=8,kl("getMinCount: addMore(restCount = %s) times=%s",h,v);else {const p=Yd(l)?Aa.PAGE_SIZE:ks.PAGE_SIZE,y=PS(l)?n:1.2;v=Math.ceil(h*y/p),kl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,y,p,v);}g=Yd(l)?await r.getRecommendTimes(v,s):await c.getRecommendTimes(v),g=MS(g,l),d=d.concat(g),d=jc(d,Zl);};for(await m(e);;){if(s!=null&&s.aborted){kl("getMinCount: break for abortSignal");break}if(!f){kl("getMinCount: break for tab=%s hasMore=false",l);break}if(d.length>=e)break;await m(e-d.length);}return d}async function QF(e){let t=await GS(Gm(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function JF(e){return GS(Gm()*3+1,e,5)}async function e7(e,t,n){let r=Yd(t)?await n.getRecommendTimes(e):await new ks().getRecommendTimes(e);return r=MS(r,t),r}var qd=new Map,Ll=new WeakMap,Yv=0,t7=void 0;function n7(e){return e?(Ll.has(e)||(Yv+=1,Ll.set(e,Yv.toString())),Ll.get(e)):"0"}function r7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?n7(e.root):e[t]}`).toString()}function o7(e){let t=r7(e),n=qd.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(d=>l.intersectionRatio>=d);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(d=>{d(c,l);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},qd.set(t,n);}return n}function i7(e,t,n={},r=t7){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=o7(n);let l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),qd.delete(o));}}function a7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var d;const[f,m]=u__namespace.useState(null),h=u__namespace.useRef(),[g,v]=u__namespace.useState({inView:!!l,entry:void 0});h.current=c,u__namespace.useEffect(()=>{if(a||!f)return;let E;return E=i7(f,(M,w)=>{v({inView:M,entry:w}),h.current&&h.current(M,w),w.isIntersecting&&i&&E&&(E(),E=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{E&&E();}},[Array.isArray(e)?e.toString():e,f,o,r,i,a,n,s,t]);const p=(d=g.entry)==null?void 0:d.target,y=u__namespace.useRef();!f&&p&&!i&&!a&&y.current!==p&&(y.current=p,v({inView:!!l,entry:void 0}));const b=[m,g.inView,g.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}function l7(e){const t=u.useRef(null);return t.current||(t.current=e()),t}class Zd{constructor(){$t(this,"offset","");$t(this,"page",0);$t(this,"hasMore",!0);}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await wn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(l=>({...l,api:"dynamic",uniqId:l.id_str||crypto.randomUUID()}))}}$t(Zd,"PAGE_SIZE",15);function US({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const l=kz(),s=l7(()=>({})),[c,d]=u.useState(!0),[f,m]=u.useState([]),[h,g]=u.useState(()=>new Aa),[v,p]=u.useState(()=>new Zd),[y,b]=u.useState(()=>new ka),[E,M]=u.useState(()=>new Na),[w,x]=u.useState(!1),[S,C,$]=rC(()=>Date.now()),[I,L]=u.useState(l),[R,O]=u.useState(()=>new AbortController),[P,_]=u.useState(!1),[k,N]=u.useState(void 0),A=lt(async(z=!1,F)=>{var ce;const V=performance.now();if(w)if(l===I){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",l);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",I,l),R.abort();else e("refresh(): [start] tab = %s",l);await(i==null?void 0:i());const j=fe=>{x(fe),a==null||a(fe);};j(!0),C(Date.now()),L(l),m([]),N(void 0),d(!0),await(r==null?void 0:r());let H=[],B;const X=!!(z&&((ce=s.current[l])!=null&&ce.length)),J=!!(X&&(hv[l].swr||l==="fav"));_(J);const Q=X&&(J||l==="fav"),K=async()=>{try{H=await n(q);}catch(fe){B=fe;}},Y=t?new Aa:h;t&&g(Y);let re=v;l==="dynamic"&&(re=new Zd,p(re));let ue=y;l==="watchlater"&&(ue=new ka(F==null?void 0:F.watchlaterKeepOrder),b(ue));let se=E;l==="fav"&&(X?se.restore():(se=new Na,M(se)));const ee=new AbortController,ae=ee.signal;O(ee);const q={tab:l,pcRecService:Y,dynamicFeedService:re,watchLaterService:ue,favService:se,abortSignal:ae};if(e("refresh(): shouldReuse=%s swr=%s",X,J),X?(H=s.current[l]||[],m(H),Q&&await K()):(s.current[l]=[],await K()),ae.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",l);return}if(j(!1),B){console.error(B),N(B);return}m(H),hv[l].swr?s.current[l]=H.slice(0,30):s.current[l]=H,l==="dynamic"&&d(re.hasMore),l==="dynamic"&&d(re.hasMore),l==="fav"&&d(se.hasMore),await(o==null?void 0:o());const te=performance.now()-V;e("refresh(): [success] cost %s ms",te.toFixed(0));});return {items:f,itemsCache:s,setItems:m,error:k,refreshedAt:S,setRefreshedAt:C,getRefreshedAt:$,refreshing:w,setRefreshing:x,refreshFor:I,setRefreshFor:L,refreshAbortController:R,setRefreshAbortController:O,hasMore:c,setHasMore:d,swr:P,setSwr:_,pcRecService:h,dynamicFeedService:v,watchLaterService:y,favService:E,setPcRecService:g,setDynamicFeedService:p,setWatchLaterService:b,setFavService:M,refresh:A}}const ta=Ti.extend("components:RecGrid"),fi={card:rv` border: 2px solid transparent; /* global class under .card */ .bili-video-card__info { padding-left: 2px; padding-bottom: 1px; margin-top: calc(var(--info-margin-top) - 1px); } `,cardActive:rv` border-color: ${Lr}; border-radius: ${wS}; overflow: hidden; `};var s7={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const XS=u.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},l)=>{const{useNarrowMode:s,styleUseYoutubeLikeCard:c}=In(),d=al(),[f,m]=u.useState(0),h=lt(async()=>{H(),a==null||a();}),g=lt(()=>{H(),m(1),d==="watchlater"&&(a==null||a(L.usageInfo)),d==="fav"&&(a==null||a(R.usageInfo)),k();}),{refresh:v,items:p,setItems:y,error:b,refreshing:E,refreshedAt:M,getRefreshedAt:w,swr:x,hasMore:S,setHasMore:C,pcRecService:$,dynamicFeedService:I,watchLaterService:L,favService:R}=US({tab:d,debug:ta,fetcher:JF,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:i});Pc(v),u.useImperativeHandle(l,()=>({refresh:v}),[]);const O=u.useRef();Yr("visibilitychange",ee=>{if(!(document.visibilityState==="visible")){O.current=Date.now();return}E||P.current[M]||d==="watchlater"&&O.current&&Date.now()-O.current>Vy("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const P=u.useRef({}),_=lt(async()=>{if(!S||E)return;const ee=M;if(P.current[ee])return;P.current={[ee]:!0};let ae=p,q=!0;try{if(d==="dynamic")ae=ae.concat(await I.loadMore()||[]),q=I.hasMore;else if(d==="watchlater")ae=ae.concat(await L.loadMore()||[]),q=L.hasMore;else if(d==="fav")ae=ae.concat(await R.loadMore()||[]),q=R.hasMore;else for(;!(ae.length>p.length);){const ce=await e7(d==="onlyFollow"?5:2,d,$);ae=ZF(ae,ce);}}catch(te){throw P.current[ee]=!1,te}if(ee!==w()){ta("loadMore: skip update for mismatch refreshedAt, %s != %s",ee,w());return}ta("loadMore: seq(%s) len %s -> %s",f+1,p.length,ae.length),C(q),y(ae),m(te=>te+1),P.current[ee]=!1,k();}),k=lt(async()=>{await Lo(xm?100:50),ta("checkShouldLoadMore(): footerInView = %s",Y.current),Y.current&&_();}),N=u.useRef(null),A=lt(()=>{var ee;if(e){const ae=uS()+50;return new DOMRect(0,ae,window.innerWidth,window.innerHeight-ae)}else return (ee=o==null?void 0:o.current)==null?void 0:ee.getBoundingClientRect()}),z=hz(),F=u.useMemo(()=>new Map,[M]),V=u.useMemo(()=>p.map(({uniqId:ee})=>F.get(ee)||(()=>{const ae=bS();return F.set(ee,ae),ae})()),[p]),{activeIndex:j,clearActiveIndex:H}=SF({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:N,getScrollerRect:A,videoCardEmitters:V,changeScrollY:e?function({offset:ee,absolute:ae}){const q=document.documentElement;if(typeof ee=="number"){q.scrollTop+=ee;return}if(typeof ae=="number"){q.scrollTop=ae;return}}:void 0}),B=$i(),X=lt((ee,ae)=>{y(q=>{const te=q.findIndex(fe=>fe.uniqId===ee.uniqId);if(te===-1)return q;let ce=q.slice();return ce.splice(te,1),Ct(`已移除: ${ae.title}`,4e3),d==="watchlater"&&(L.count--,a==null||a(L.usageInfo)),d==="fav"&&(R.total--,a==null||a(R.usageInfo)),ce});}),J=lt((ee,ae)=>{y(q=>{const te=q.find(he=>he.uniqId===ee.uniqId);if(!te)return q;const ce=q.indexOf(te),fe=q.slice();return fe.splice(ce,1),fe.unshift(te),fe});}),{ref:Q,inView:K}=a7({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(ee){ee&&(ta("footerInView change to visible",ee),_());}}),Y=Oi(K),re=D("div",{ref:Q,css:s7,children:!E&&D(St,{children:S?pe(St,{children:[D(Dt,{name:"Loading",fill:Lr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=W(`${nn}-video-grid`,Km,c?yF:B?OS:IS,s&&CF,r);return !p.length||b||E&&!x?D("div",{className:Xv,children:D("div",{className:ue,children:new Array(28).fill(void 0).map((ee,ae)=>D(Rs,{loading:!0,className:fi.card},ae))})}):pe("div",{style:{minHeight:"100%"},className:Xv,children:[D("div",{ref:N,className:ue,children:p.map((ee,ae)=>{const q=ae===j;return D(Rs,{className:W(fi.card,{[fi.cardActive]:q}),item:ee,active:q,onRemoveCurrent:X,onMoveToFirst:J,emitter:V[ae]},ee.uniqId)})}),re]})}),c7={grid:Bn` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function u7(){const{useNarrowMode:e}=In(),{modalFeedVisible:t,modalConfigVisible:n}=WH(),r=u.useRef(null),o=u.useRef(null),i=lt((...f)=>{var m;return (m=o.current)==null?void 0:m.refresh(...f)}),a=lt(()=>{var f;return (f=r.current)==null?void 0:f.scroll()}),[l,s]=u.useState(!1),[c,d]=u.useState(null);return pe("section",{"data-area":"推荐",children:[D(mS,{ref:r,refreshing:l,onRefresh:i,leftSlot:c}),D(XS,{ref:o,css:[e&&c7.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:s,setExtraInfo:d})]})}const d7=Ti.extend("components:SectionRecommend");function f7(){const e=u.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=$i(),n=al(),{refreshing:r,items:o,refresh:i,error:a,swr:l}=US({tab:n,debug:d7,fetcher:QF,recreateService:!1});Pc(i);const s=!o.length||a||r&&!l;return pe("section",{"data-area":"推荐",children:[D(mS,{refreshing:r,onRefresh:i}),D("div",{className:W(Km,bF,t?OS:IS),style:{marginBottom:t?30:0},children:s?e.map(c=>D(Rs,{},c)):o.map(c=>D(Rs,{item:c},c.uniqId))})]})}Di.extend(sD);(function(){var t,n;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")){window.stop(),window.top===window?(t=window.opener)==null||t.postMessage(location.href,"https://www.bilibili.com"):(n=window.top)==null||n.postMessage(location.href,"https://www.bilibili.com");return}if(location.pathname==="/"||location.pathname==="/index.html")return m7()})();async function m7(){return fa(".adblock-tips"),da("html.gray",e=>e.classList.remove("gray")),yt.pureRecommend?g7():h7()}async function h7(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if($i()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await Lo(200);}if(!n){console.error(`[${nn}]: init fail`);return}const r=document.createElement("section");n(r),Ic(r).render(D(My,{children:D(f7,{})})),$i()&&fa(".bili-feed4 .header-channel");}async function g7(){var o,i;xm&&await Lo(500),$i()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),fa(".bili-feed4 .header-channel"),da(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),da(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),da(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),fa(".bili-footer"),fa(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add($i()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),Ic(n).render(D(My,{children:D(u7,{})}));} })(React, axios, ReactDOM, UAParser, axiosGmxhrAdapter);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址