// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.19.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.bilibili.com/?*
// @match https://www.bilibili.com/index.html
// @match https://www.bilibili.com/index.html?*
// @require https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js
// @require https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js
// @require https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js
// @require https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js
// @require https://registry.npmmirror.com/ua-parser-js/1.0.37/files/dist/ua-parser.min.js
// @require https://registry.npmmirror.com/framer-motion/10.16.9/files/dist/framer-motion.js
// @connect app.bilibili.com
// @connect passport.bilibili.com
// @grant GM.getValue
// @grant GM.openInTab
// @grant GM.setClipboard
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant GM_addStyle
// @grant unsafeWindow
// ==/UserScript==
(i=>{if(typeof GM_addStyle=="function"){GM_addStyle(i);return}const e=document.createElement("style");e.textContent=i,document.head.append(e)})(" .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}._bili-video-card_90sij_1{position:relative}._preview-card-wrapper_90sij_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_90sij_4 ._preview-card-inner_90sij_17{width:100%;height:100%}._watch-later_90sij_21{z-index:5}._badge_90sij_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_90sij_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_90sij_48{color:default}._btn-dislike_90sij_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_90sij_51 ._btn-dislike-icon_90sij_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_90sij_51 ._btn-dislike-tip_90sij_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_90sij_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_90sij_88{border:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-icon_90sij_119{margin-bottom:5px}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-reason_90sij_122{font-size:20px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-desc_90sij_126{font-size:16px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{border-top:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130 button{font-size:16px;color:inherit;display:flex;align-items:center}body .bili-video-card__skeleton--cover,body .bili-video-card__skeleton--text,body .bili-video-card__skeleton--light,body .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%)}body.dark .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_90sij_156 .bili-video-card__skeleton--cover,._skeleton-active_90sij_156 .bili-video-card__skeleton--text,._skeleton-active_90sij_156 .bili-video-card__skeleton--light,._skeleton-active_90sij_156 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_90sij_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_90sij_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_65653_8{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(4,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(5,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(6,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(7,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_65653_51{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_65653_51{grid-template-columns:repeat(4,minmax(0,1fr))}._video-grid-internal-testing_65653_51._limit-one-line_65653_58>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_65653_51._limit-two-lines_65653_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_65653_51{grid-template-columns:repeat(5,minmax(0,1fr))}._video-grid-internal-testing_65653_51._limit-one-line_65653_58>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_65653_51._limit-two-lines_65653_19>*:nth-of-type(n+11){display:none!important}}._video-grid-container_65653_79{container-name:video-grid-container;container-type:inline-size}._video-grid-fancy_65653_83{--video-card-border-radius: 15px;grid-gap:50px 20px;grid-template-columns:repeat(5,minmax(0,1fr))}@container video-grid-container (width >= 616px){._video-grid-fancy_65653_83{grid-template-columns:repeat(2,minmax(0,1fr))}}@container video-grid-container (width >= 932px){._video-grid-fancy_65653_83{grid-template-columns:repeat(3,minmax(0,1fr))}}@container video-grid-container (width >= 1248px){._video-grid-fancy_65653_83{grid-template-columns:repeat(4,minmax(0,1fr))}}@container video-grid-container (width >= 1564px){._video-grid-fancy_65653_83{grid-template-columns:repeat(5,minmax(0,1fr))}}._narrow-mode_65653_111{grid-template-columns:repeat(2,minmax(0,1fr))!important}._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} ");
(async function (m, tg, ZE, V1, eI, tI, framerMotion) {
'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 m__namespace = /*#__PURE__*/_interopNamespaceDefault(m);
const V1__namespace = /*#__PURE__*/_interopNamespaceDefault(V1);
var KE=Object.defineProperty;var UE=(e,t,n)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ct=(e,t,n)=>(UE(e,typeof t!="symbol"?t+"":t,n),n),cf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ct=(e,t,n)=>(cf(e,t,"read from private field"),n?n.call(e):t.get(e)),Vn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},Tn=(e,t,n,r)=>(cf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var uf=(e,t,n,r)=>({set _(o){Tn(e,t,o,n);},get _(){return ct(e,t,r)}}),nn=(e,t,n)=>(cf(e,t,"access private method"),n);var Ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iI(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 G1={exports:{}},Tu={};/**
* @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 sI=m,lI=Symbol.for("react.element"),cI=Symbol.for("react.fragment"),uI=Object.prototype.hasOwnProperty,dI=sI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fI={key:!0,ref:!0,__self:!0,__source:!0};function K1(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)uI.call(t,r)&&!fI.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:lI,type:e,key:a,ref:i,props:o,_owner:dI.current}}Tu.Fragment=cI;Tu.jsx=K1;Tu.jsxs=K1;G1.exports=Tu;var Ns=G1.exports;function mI(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 vI(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 gI=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),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(vI(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=mI(o);try{a.insertRule(r,a.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}(),Nn="-ms-",Dc="-moz-",Lt="-webkit-",U1="comm",rg="rule",og="decl",hI="@import",X1="@keyframes",pI="@layer",bI=Math.abs,Nu=String.fromCharCode,yI=Object.assign;function CI(e,t){return Pn(e,0)^45?(((t<<2^Pn(e,0))<<2^Pn(e,1))<<2^Pn(e,2))<<2^Pn(e,3):0}function q1(e){return e.trim()}function SI(e,t){return (e=t.exec(e))?e[0]:e}function Dt(e,t,n){return e.replace(t,n)}function Cm(e,t){return e.indexOf(t)}function Pn(e,t){return e.charCodeAt(t)|0}function ks(e,t,n){return e.slice(t,n)}function eo(e){return e.length}function ag(e){return e.length}function Ul(e,t){return t.push(e),e}function wI(e,t){return e.map(t).join("")}var ku=1,fi=1,Y1=0,Zn=0,hn=0,Pi="";function Au(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:ku,column:fi,length:i,return:""}}function Qi(e,t){return yI(Au("",null,null,"",null,null,0),e,{length:-e.length},t)}function $I(){return hn}function xI(){return hn=Zn>0?Pn(Pi,--Zn):0,fi--,hn===10&&(fi=1,ku--),hn}function dr(){return hn=Zn<Y1?Pn(Pi,Zn++):0,fi++,hn===10&&(fi=1,ku++),hn}function ao(){return Pn(Pi,Zn)}function bc(){return Zn}function ol(e,t){return ks(Pi,e,t)}function As(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 Q1(e){return ku=fi=1,Y1=eo(Pi=e),Zn=0,[]}function Z1(e){return Pi="",e}function yc(e){return q1(ol(Zn-1,Sm(e===91?e+2:e===40?e+1:e)))}function EI(e){for(;(hn=ao())&&hn<33;)dr();return As(e)>2||As(hn)>3?"":" "}function II(e,t){for(;--t&&dr()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return ol(e,bc()+(t<6&&ao()==32&&dr()==32))}function Sm(e){for(;dr();)switch(hn){case e:return Zn;case 34:case 39:e!==34&&e!==39&&Sm(hn);break;case 40:e===41&&Sm(e);break;case 92:dr();break}return Zn}function OI(e,t){for(;dr()&&e+hn!==57;)if(e+hn===84&&ao()===47)break;return "/*"+ol(t,Zn-1)+"*"+Nu(e===47?e:dr())}function PI(e){for(;!As(ao());)dr();return ol(e,Zn)}function J1(e){return Z1(Cc("",null,null,null,[""],e=Q1(e),0,[0],e))}function Cc(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,v=0,g=0,h=1,p=1,b=1,y=0,C="",w=o,x=a,$=r,S=C;p;)switch(g=y,y=dr()){case 40:if(g!=108&&Pn(S,d-1)==58){Cm(S+=Dt(yc(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=yc(y);break;case 9:case 10:case 13:case 32:S+=EI(g);break;case 92:S+=II(bc()-1,7);continue;case 47:switch(ao()){case 42:case 47:Ul(RI(OI(dr(),bc()),t,n),l);break;default:S+="/";}break;case 123*h:s[c++]=eo(S)*b;case 125*h:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Dt(S,/\f/g,"")),v>0&&eo(S)-d&&Ul(v>32?Mp(S+";",r,n,d-1):Mp(Dt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Ul($=Rp(S,t,n,c,u,o,s,C,w=[],x=[],d),a),y===123)if(u===0)Cc(S,t,$,$,w,a,d,s,x);else switch(f===99&&Pn(S,3)===110?100:f){case 100:case 108:case 109:case 115:Cc(e,$,$,r&&Ul(Rp(e,$,$,0,0,o,s,C,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Cc(S,$,$,$,[""],x,0,s,x);}}c=u=v=0,h=b=1,C=S="",d=i;break;case 58:d=1+eo(S),v=g;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&xI()==125)continue}switch(S+=Nu(y),y*h){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(eo(S)-1)*b,b=1;break;case 64:ao()===45&&(S+=yc(dr())),f=ao(),u=d=eo(C=S+=PI(bc())),y++;break;case 45:g===45&&eo(S)==2&&(h=0);}}return a}function Rp(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],v=ag(f),g=0,h=0,p=0;g<r;++g)for(var b=0,y=ks(e,d+1,d=bI(h=i[g])),C=e;b<v;++b)(C=q1(h>0?f[b]+" "+y:Dt(y,/&\f/g,f[b])))&&(l[p++]=C);return Au(e,t,n,o===0?rg:s,l,c,u)}function RI(e,t,n){return Au(e,t,n,U1,Nu($I()),ks(e,2,-2),0)}function Mp(e,t,n,r){return Au(e,t,n,og,ks(e,0,r),ks(e,r+1,-1),r)}function aa(e,t){for(var n="",r=ag(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eC(e,t,n,r){switch(e.type){case pI:if(e.children.length)break;case hI:case og:return e.return=e.return||e.value;case U1:return "";case X1:return e.return=e.value+"{"+aa(e.children,r)+"}";case rg:e.value=e.props.join(",");}return eo(n=aa(e.children,r))?e.return=e.value+"{"+n+"}":""}function MI(e){var t=ag(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function _I(e){return function(t){t.root||(t=t.return)&&e(t);}}function TI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var NI=function(t,n,r){for(var o=0,a=0;o=a,a=ao(),o===38&&a===12&&(n[r]=1),!As(a);)dr();return ol(t,Zn)},kI=function(t,n){var r=-1,o=44;do switch(As(o)){case 0:o===38&&ao()===12&&(n[r]=1),t[r]+=NI(Zn-1,n,r);break;case 2:t[r]+=yc(o);break;case 4:if(o===44){t[++r]=ao()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Nu(o);}while(o=dr());return t},AI=function(t,n){return Z1(kI(Q1(t),n))},_p=new WeakMap,LI=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&&!_p.get(r))&&!o){_p.set(t,!0);for(var a=[],i=AI(n,a),s=r.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l];}}},DI=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function tC(e,t){switch(CI(e,t)){case 5103:return Lt+"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 Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+Dc+e+Nn+e+e;case 6828:case 4268:return Lt+e+Nn+e+e;case 6165:return Lt+e+Nn+"flex-"+e+e;case 5187:return Lt+e+Dt(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return Lt+e+Nn+"flex-item-"+Dt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Nn+"flex-line-pack"+Dt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Nn+Dt(e,"shrink","negative")+e;case 5292:return Lt+e+Nn+Dt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Dt(e,"-grow","")+Lt+e+Nn+Dt(e,"grow","positive")+e;case 4554:return Lt+Dt(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return Dt(Dt(Dt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Dt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Dt(Dt(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+Nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Dt(e,/(.+)-inline(.+)/,Lt+"$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(eo(e)-1-t>6)switch(Pn(e,t+1)){case 109:if(Pn(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Dc+(Pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Cm(e,"stretch")?tC(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pn(e,t+1)!==115)break;case 6444:switch(Pn(e,eo(e)-3-(~Cm(e,"!important")&&10))){case 107:return Dt(e,":",":"+Lt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(Pn(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Nn+"$2box$3")+e}break;case 5936:switch(Pn(e,t+11)){case 114:return Lt+e+Nn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Nn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Nn+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Nn+e+e}return e}var zI=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case og:t.return=tC(t.value,t.length);break;case X1:return aa([Qi(t,{value:Dt(t.value,"@","@"+Lt)})],o);case rg:if(t.length)return wI(t.props,function(a){switch(SI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return aa([Qi(t,{props:[Dt(a,/:(read-\w+)/,":"+Dc+"$1")]})],o);case"::placeholder":return aa([Qi(t,{props:[Dt(a,/:(plac\w+)/,":"+Lt+"input-$1")]}),Qi(t,{props:[Dt(a,/:(plac\w+)/,":"+Dc+"$1")]}),Qi(t,{props:[Dt(a,/:(plac\w+)/,Nn+"input-$1")]})],o)}return ""})}},jI=[zI],nC=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""));});}var o=t.stylisPlugins||jI,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(h);});var l,c=[LI,DI];{var u,d=[eC,_I(function(h){u.insert(h);})],f=MI(c.concat(o,d)),v=function(p){return aa(J1(p),f)};l=function(p,b,y,C){u=y,v(p?p+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0);};}var g={key:n,sheet:new gI({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(s),g},rC={exports:{}},Bt={};/** @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 En=typeof Symbol=="function"&&Symbol.for,ig=En?Symbol.for("react.element"):60103,sg=En?Symbol.for("react.portal"):60106,Lu=En?Symbol.for("react.fragment"):60107,Du=En?Symbol.for("react.strict_mode"):60108,zu=En?Symbol.for("react.profiler"):60114,ju=En?Symbol.for("react.provider"):60109,Fu=En?Symbol.for("react.context"):60110,lg=En?Symbol.for("react.async_mode"):60111,Bu=En?Symbol.for("react.concurrent_mode"):60111,Hu=En?Symbol.for("react.forward_ref"):60112,Wu=En?Symbol.for("react.suspense"):60113,FI=En?Symbol.for("react.suspense_list"):60120,Vu=En?Symbol.for("react.memo"):60115,Gu=En?Symbol.for("react.lazy"):60116,BI=En?Symbol.for("react.block"):60121,HI=En?Symbol.for("react.fundamental"):60117,WI=En?Symbol.for("react.responder"):60118,VI=En?Symbol.for("react.scope"):60119;function gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ig:switch(e=e.type,e){case lg:case Bu:case Lu:case zu:case Du:case Wu:return e;default:switch(e=e&&e.$$typeof,e){case Fu:case Hu:case Gu:case Vu:case ju:return e;default:return t}}case sg:return t}}}function oC(e){return gr(e)===Bu}Bt.AsyncMode=lg;Bt.ConcurrentMode=Bu;Bt.ContextConsumer=Fu;Bt.ContextProvider=ju;Bt.Element=ig;Bt.ForwardRef=Hu;Bt.Fragment=Lu;Bt.Lazy=Gu;Bt.Memo=Vu;Bt.Portal=sg;Bt.Profiler=zu;Bt.StrictMode=Du;Bt.Suspense=Wu;Bt.isAsyncMode=function(e){return oC(e)||gr(e)===lg};Bt.isConcurrentMode=oC;Bt.isContextConsumer=function(e){return gr(e)===Fu};Bt.isContextProvider=function(e){return gr(e)===ju};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ig};Bt.isForwardRef=function(e){return gr(e)===Hu};Bt.isFragment=function(e){return gr(e)===Lu};Bt.isLazy=function(e){return gr(e)===Gu};Bt.isMemo=function(e){return gr(e)===Vu};Bt.isPortal=function(e){return gr(e)===sg};Bt.isProfiler=function(e){return gr(e)===zu};Bt.isStrictMode=function(e){return gr(e)===Du};Bt.isSuspense=function(e){return gr(e)===Wu};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lu||e===Bu||e===zu||e===Du||e===Wu||e===FI||typeof e=="object"&&e!==null&&(e.$$typeof===Gu||e.$$typeof===Vu||e.$$typeof===ju||e.$$typeof===Fu||e.$$typeof===Hu||e.$$typeof===HI||e.$$typeof===WI||e.$$typeof===VI||e.$$typeof===BI)};Bt.typeOf=gr;rC.exports=Bt;var GI=rC.exports,aC=GI,KI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iC={};iC[aC.ForwardRef]=KI;iC[aC.Memo]=UI;var XI=!0;function cg(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var sC=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||XI===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},ug=function(t,n,r){sC(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function qI(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 YI={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},QI=/[A-Z]|^ms/g,ZI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lC=function(t){return t.charCodeAt(1)===45},Tp=function(t){return t!=null&&typeof t!="boolean"},df=TI(function(e){return lC(e)?e:e.replace(QI,"-$&").toLowerCase()}),Np=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZI,function(r,o,a){return to={name:o,styles:a,next:to},o})}return YI[t]!==1&&!lC(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ls(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 to={name:n.name,styles:n.styles,next:to},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)to={name:r.name,styles:r.styles,next:to},r=r.next;var o=n.styles+";";return o}return JI(e,t,n)}case"function":{if(e!==void 0){var a=to,i=n(e);return to=a,Ls(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function JI(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ls(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Tp(i)&&(r+=df(a)+":"+Np(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Tp(i[s])&&(r+=df(a)+":"+Np(a,i[s])+";");else {var l=Ls(e,t,i);switch(a){case"animation":case"animationName":{r+=df(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var kp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,to,ri=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,a="";to=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=Ls(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=Ls(r,n,t[s]),o&&(a+=i[s]);kp.lastIndex=0;for(var l="",c;(c=kp.exec(a))!==null;)l+="-"+c[1];var u=qI(a)+l;return {name:u,styles:a,next:to}},eO=function(t){return t()},cC=m__namespace.useInsertionEffect?m__namespace.useInsertionEffect:!1,tO=cC||eO,Ap=cC||m__namespace.useLayoutEffect,Ku={}.hasOwnProperty,uC=m__namespace.createContext(typeof HTMLElement<"u"?nC({key:"css"}):null);uC.Provider;var dC=function(t){return m.forwardRef(function(n,r){var o=m.useContext(uC);return t(n,o,r)})},fC=m__namespace.createContext({}),wm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mC=function(t,n){var r={};for(var o in n)Ku.call(n,o)&&(r[o]=n[o]);return r[wm]=t,r},nO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return sC(n,r,o),tO(function(){return ug(n,r,o)}),null},rO=dC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[wm],a=[r],i="";typeof e.className=="string"?i=cg(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=ri(a,void 0,m__namespace.useContext(fC));i+=t.key+"-"+s.name;var l={};for(var c in e)Ku.call(e,c)&&c!=="css"&&c!==wm&&(l[c]=e[c]);return l.ref=n,l.className=i,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(nO,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),vC=rO,It=Ns.Fragment;function D(e,t,n){return Ku.call(t,"css")?Ns.jsx(vC,mC(e,t),n):Ns.jsx(e,t,n)}function be(e,t,n){return Ku.call(t,"css")?Ns.jsxs(vC,mC(e,t),n):Ns.jsxs(e,t,n)}function oO(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}var dg=oO;function aO(){this.__data__=[],this.size=0;}var iO=aO;function sO(e,t){return e===t||e!==e&&t!==t}var fg=sO,lO=fg;function cO(e,t){for(var n=e.length;n--;)if(lO(e[n][0],t))return n;return -1}var Uu=cO,uO=Uu,dO=Array.prototype,fO=dO.splice;function mO(e){var t=this.__data__,n=uO(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():fO.call(t,n,1),--this.size,!0}var vO=mO,gO=Uu;function hO(e){var t=this.__data__,n=gO(t,e);return n<0?void 0:t[n][1]}var pO=hO,bO=Uu;function yO(e){return bO(this.__data__,e)>-1}var CO=yO,SO=Uu;function wO(e,t){var n=this.__data__,r=SO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var $O=wO,xO=iO,EO=vO,IO=pO,OO=CO,PO=$O;function Ri(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]);}}Ri.prototype.clear=xO;Ri.prototype.delete=EO;Ri.prototype.get=IO;Ri.prototype.has=OO;Ri.prototype.set=PO;var Xu=Ri,RO=Xu;function MO(){this.__data__=new RO,this.size=0;}var _O=MO;function TO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var NO=TO;function kO(e){return this.__data__.get(e)}var AO=kO;function LO(e){return this.__data__.has(e)}var DO=LO,zO=typeof Ya=="object"&&Ya&&Ya.Object===Object&&Ya,gC=zO,jO=gC,FO=typeof self=="object"&&self&&self.Object===Object&&self,BO=jO||FO||Function("return this")(),Vr=BO,HO=Vr,WO=HO.Symbol,Mi=WO,Lp=Mi,hC=Object.prototype,VO=hC.hasOwnProperty,GO=hC.toString,Zi=Lp?Lp.toStringTag:void 0;function KO(e){var t=VO.call(e,Zi),n=e[Zi];try{e[Zi]=void 0;var r=!0;}catch{}var o=GO.call(e);return r&&(t?e[Zi]=n:delete e[Zi]),o}var UO=KO,XO=Object.prototype,qO=XO.toString;function YO(e){return qO.call(e)}var QO=YO,Dp=Mi,ZO=UO,JO=QO,eP="[object Null]",tP="[object Undefined]",zp=Dp?Dp.toStringTag:void 0;function nP(e){return e==null?e===void 0?tP:eP:zp&&zp in Object(e)?ZO(e):JO(e)}var _i=nP;function rP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var co=rP,oP=_i,aP=co,iP="[object AsyncFunction]",sP="[object Function]",lP="[object GeneratorFunction]",cP="[object Proxy]";function uP(e){if(!aP(e))return !1;var t=oP(e);return t==sP||t==lP||t==iP||t==cP}var pC=uP,dP=Vr,fP=dP["__core-js_shared__"],mP=fP,ff=mP,jp=function(){var e=/[^.]+$/.exec(ff&&ff.keys&&ff.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vP(e){return !!jp&&jp in e}var gP=vP,hP=Function.prototype,pP=hP.toString;function bP(e){if(e!=null){try{return pP.call(e)}catch{}try{return e+""}catch{}}return ""}var bC=bP,yP=pC,CP=gP,SP=co,wP=bC,$P=/[\\^$.*+?()[\]{}|]/g,xP=/^\[object .+?Constructor\]$/,EP=Function.prototype,IP=Object.prototype,OP=EP.toString,PP=IP.hasOwnProperty,RP=RegExp("^"+OP.call(PP).replace($P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MP(e){if(!SP(e)||CP(e))return !1;var t=yP(e)?RP:xP;return t.test(wP(e))}var _P=MP;function TP(e,t){return e==null?void 0:e[t]}var NP=TP,kP=_P,AP=NP;function LP(e,t){var n=AP(e,t);return kP(n)?n:void 0}var ya=LP,DP=ya,zP=Vr,jP=DP(zP,"Map"),mg=jP,FP=ya,BP=FP(Object,"create"),qu=BP,Fp=qu;function HP(){this.__data__=Fp?Fp(null):{},this.size=0;}var WP=HP;function VP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GP=VP,KP=qu,UP="__lodash_hash_undefined__",XP=Object.prototype,qP=XP.hasOwnProperty;function YP(e){var t=this.__data__;if(KP){var n=t[e];return n===UP?void 0:n}return qP.call(t,e)?t[e]:void 0}var QP=YP,ZP=qu,JP=Object.prototype,eR=JP.hasOwnProperty;function tR(e){var t=this.__data__;return ZP?t[e]!==void 0:eR.call(t,e)}var nR=tR,rR=qu,oR="__lodash_hash_undefined__";function aR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rR&&t===void 0?oR:t,this}var iR=aR,sR=WP,lR=GP,cR=QP,uR=nR,dR=iR;function Ti(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]);}}Ti.prototype.clear=sR;Ti.prototype.delete=lR;Ti.prototype.get=cR;Ti.prototype.has=uR;Ti.prototype.set=dR;var fR=Ti,Bp=fR,mR=Xu,vR=mg;function gR(){this.size=0,this.__data__={hash:new Bp,map:new(vR||mR),string:new Bp};}var hR=gR;function pR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bR=pR,yR=bR;function CR(e,t){var n=e.__data__;return yR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Yu=CR,SR=Yu;function wR(e){var t=SR(this,e).delete(e);return this.size-=t?1:0,t}var $R=wR,xR=Yu;function ER(e){return xR(this,e).get(e)}var IR=ER,OR=Yu;function PR(e){return OR(this,e).has(e)}var RR=PR,MR=Yu;function _R(e,t){var n=MR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var TR=_R,NR=hR,kR=$R,AR=IR,LR=RR,DR=TR;function Ni(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]);}}Ni.prototype.clear=NR;Ni.prototype.delete=kR;Ni.prototype.get=AR;Ni.prototype.has=LR;Ni.prototype.set=DR;var vg=Ni,zR=Xu,jR=mg,FR=vg,BR=200;function HR(e,t){var n=this.__data__;if(n instanceof zR){var r=n.__data__;if(!jR||r.length<BR-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new FR(r);}return n.set(e,t),this.size=n.size,this}var WR=HR,VR=Xu,GR=_O,KR=NO,UR=AO,XR=DO,qR=WR;function ki(e){var t=this.__data__=new VR(e);this.size=t.size;}ki.prototype.clear=GR;ki.prototype.delete=KR;ki.prototype.get=UR;ki.prototype.has=XR;ki.prototype.set=qR;var gg=ki;function YR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var QR=YR,ZR=ya,JR=function(){try{var e=ZR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yC=JR,Hp=yC;function eM(e,t,n){t=="__proto__"&&Hp?Hp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var CC=eM,tM=CC,nM=fg,rM=Object.prototype,oM=rM.hasOwnProperty;function aM(e,t,n){var r=e[t];(!(oM.call(e,t)&&nM(r,n))||n===void 0&&!(t in e))&&tM(e,t,n);}var hg=aM,iM=hg,sM=CC;function lM(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?sM(n,s,l):iM(n,s,l);}return n}var al=lM;function cM(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var uM=cM;function dM(e){return e!=null&&typeof e=="object"}var Bo=dM,fM=_i,mM=Bo,vM="[object Arguments]";function gM(e){return mM(e)&&fM(e)==vM}var hM=gM,Wp=hM,pM=Bo,SC=Object.prototype,bM=SC.hasOwnProperty,yM=SC.propertyIsEnumerable,CM=Wp(function(){return arguments}())?Wp:function(e){return pM(e)&&bM.call(e,"callee")&&!yM.call(e,"callee")},pg=CM,SM=Array.isArray,Gr=SM,zc={exports:{}};function wM(){return !1}var $M=wM;zc.exports;(function(e,t){var n=Vr,r=$M,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c;})(zc,zc.exports);var bg=zc.exports,xM=9007199254740991,EM=/^(?:0|[1-9]\d*)$/;function IM(e,t){var n=typeof e;return t=t??xM,!!t&&(n=="number"||n!="symbol"&&EM.test(e))&&e>-1&&e%1==0&&e<t}var yg=IM,OM=9007199254740991;function PM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=OM}var Cg=PM,RM=_i,MM=Cg,_M=Bo,TM="[object Arguments]",NM="[object Array]",kM="[object Boolean]",AM="[object Date]",LM="[object Error]",DM="[object Function]",zM="[object Map]",jM="[object Number]",FM="[object Object]",BM="[object RegExp]",HM="[object Set]",WM="[object String]",VM="[object WeakMap]",KM="[object ArrayBuffer]",UM="[object DataView]",XM="[object Float32Array]",qM="[object Float64Array]",YM="[object Int8Array]",QM="[object Int16Array]",ZM="[object Int32Array]",JM="[object Uint8Array]",e_="[object Uint8ClampedArray]",t_="[object Uint16Array]",n_="[object Uint32Array]",Qt={};Qt[XM]=Qt[qM]=Qt[YM]=Qt[QM]=Qt[ZM]=Qt[JM]=Qt[e_]=Qt[t_]=Qt[n_]=!0;Qt[TM]=Qt[NM]=Qt[KM]=Qt[kM]=Qt[UM]=Qt[AM]=Qt[LM]=Qt[DM]=Qt[zM]=Qt[jM]=Qt[FM]=Qt[BM]=Qt[HM]=Qt[WM]=Qt[VM]=!1;function r_(e){return _M(e)&&MM(e.length)&&!!Qt[RM(e)]}var o_=r_;function a_(e){return function(t){return e(t)}}var Sg=a_,jc={exports:{}};jc.exports;(function(e,t){var n=gC,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(jc,jc.exports);var wg=jc.exports,i_=o_,s_=Sg,Vp=wg,Gp=Vp&&Vp.isTypedArray,l_=Gp?s_(Gp):i_,wC=l_,c_=uM,u_=pg,d_=Gr,f_=bg,m_=yg,v_=wC,g_=Object.prototype,h_=g_.hasOwnProperty;function p_(e,t){var n=d_(e),r=!n&&u_(e),o=!n&&!r&&f_(e),a=!n&&!r&&!o&&v_(e),i=n||r||o||a,s=i?c_(e.length,String):[],l=s.length;for(var c in e)(t||h_.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||m_(c,l)))&&s.push(c);return s}var $C=p_,b_=Object.prototype;function y_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||b_;return e===n}var $g=y_;function C_(e,t){return function(n){return e(t(n))}}var xC=C_,S_=xC,w_=S_(Object.keys,Object),$_=w_,x_=$g,E_=$_,I_=Object.prototype,O_=I_.hasOwnProperty;function P_(e){if(!x_(e))return E_(e);var t=[];for(var n in Object(e))O_.call(e,n)&&n!="constructor"&&t.push(n);return t}var R_=P_,M_=pC,__=Cg;function T_(e){return e!=null&&__(e.length)&&!M_(e)}var EC=T_,N_=$C,k_=R_,A_=EC;function L_(e){return A_(e)?N_(e):k_(e)}var il=L_,D_=al,z_=il;function j_(e,t){return e&&D_(t,z_(t),e)}var F_=j_;function B_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var H_=B_,W_=co,V_=$g,G_=H_,K_=Object.prototype,U_=K_.hasOwnProperty;function X_(e){if(!W_(e))return G_(e);var t=V_(e),n=[];for(var r in e)r=="constructor"&&(t||!U_.call(e,r))||n.push(r);return n}var q_=X_,Y_=$C,Q_=q_,Z_=EC;function J_(e){return Z_(e)?Y_(e,!0):Q_(e)}var xg=J_,eT=al,tT=xg;function nT(e,t){return e&&eT(t,tT(t),e)}var rT=nT,Fc={exports:{}};Fc.exports;(function(e,t){var n=Vr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l;})(Fc,Fc.exports);var oT=Fc.exports;function aT(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var IC=aT;function iT(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i);}return a}var sT=iT;function lT(){return []}var OC=lT,cT=sT,uT=OC,dT=Object.prototype,fT=dT.propertyIsEnumerable,Kp=Object.getOwnPropertySymbols,mT=Kp?function(e){return e==null?[]:(e=Object(e),cT(Kp(e),function(t){return fT.call(e,t)}))}:uT,Eg=mT,vT=al,gT=Eg;function hT(e,t){return vT(e,gT(e),t)}var pT=hT;function bT(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ig=bT,yT=xC,CT=yT(Object.getPrototypeOf,Object),Og=CT,ST=Ig,wT=Og,$T=Eg,xT=OC,ET=Object.getOwnPropertySymbols,IT=ET?function(e){for(var t=[];e;)ST(t,$T(e)),e=wT(e);return t}:xT,PC=IT,OT=al,PT=PC;function RT(e,t){return OT(e,PT(e),t)}var MT=RT,_T=Ig,TT=Gr;function NT(e,t,n){var r=t(e);return TT(e)?r:_T(r,n(e))}var RC=NT,kT=RC,AT=Eg,LT=il;function DT(e){return kT(e,LT,AT)}var MC=DT,zT=RC,jT=PC,FT=xg;function BT(e){return zT(e,FT,jT)}var _C=BT,HT=ya,WT=Vr,VT=HT(WT,"DataView"),GT=VT,KT=ya,UT=Vr,XT=KT(UT,"Promise"),qT=XT,YT=ya,QT=Vr,ZT=YT(QT,"Set"),TC=ZT,JT=ya,eN=Vr,tN=JT(eN,"WeakMap"),nN=tN,$m=GT,xm=mg,Em=qT,Im=TC,Om=nN,NC=_i,Ai=bC,Up="[object Map]",rN="[object Object]",Xp="[object Promise]",qp="[object Set]",Yp="[object WeakMap]",Qp="[object DataView]",oN=Ai($m),aN=Ai(xm),iN=Ai(Em),sN=Ai(Im),lN=Ai(Om),Uo=NC;($m&&Uo(new $m(new ArrayBuffer(1)))!=Qp||xm&&Uo(new xm)!=Up||Em&&Uo(Em.resolve())!=Xp||Im&&Uo(new Im)!=qp||Om&&Uo(new Om)!=Yp)&&(Uo=function(e){var t=NC(e),n=t==rN?e.constructor:void 0,r=n?Ai(n):"";if(r)switch(r){case oN:return Qp;case aN:return Up;case iN:return Xp;case sN:return qp;case lN:return Yp}return t});var Qu=Uo,cN=Object.prototype,uN=cN.hasOwnProperty;function dN(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&uN.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var fN=dN,mN=Vr,vN=mN.Uint8Array,kC=vN,Zp=kC;function gN(e){var t=new e.constructor(e.byteLength);return new Zp(t).set(new Zp(e)),t}var Pg=gN,hN=Pg;function pN(e,t){var n=t?hN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var bN=pN,yN=/\w*$/;function CN(e){var t=new e.constructor(e.source,yN.exec(e));return t.lastIndex=e.lastIndex,t}var SN=CN,Jp=Mi,eb=Jp?Jp.prototype:void 0,tb=eb?eb.valueOf:void 0;function wN(e){return tb?Object(tb.call(e)):{}}var $N=wN,xN=Pg;function EN(e,t){var n=t?xN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var IN=EN,ON=Pg,PN=bN,RN=SN,MN=$N,_N=IN,TN="[object Boolean]",NN="[object Date]",kN="[object Map]",AN="[object Number]",LN="[object RegExp]",DN="[object Set]",zN="[object String]",jN="[object Symbol]",FN="[object ArrayBuffer]",BN="[object DataView]",HN="[object Float32Array]",WN="[object Float64Array]",VN="[object Int8Array]",GN="[object Int16Array]",KN="[object Int32Array]",UN="[object Uint8Array]",XN="[object Uint8ClampedArray]",qN="[object Uint16Array]",YN="[object Uint32Array]";function QN(e,t,n){var r=e.constructor;switch(t){case FN:return ON(e);case TN:case NN:return new r(+e);case BN:return PN(e,n);case HN:case WN:case VN:case GN:case KN:case UN:case XN:case qN:case YN:return _N(e,n);case kN:return new r;case AN:case zN:return new r(e);case LN:return RN(e);case DN:return new r;case jN:return MN(e)}}var ZN=QN,JN=co,nb=Object.create,e3=function(){function e(){}return function(t){if(!JN(t))return {};if(nb)return nb(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),t3=e3,n3=t3,r3=Og,o3=$g;function a3(e){return typeof e.constructor=="function"&&!o3(e)?n3(r3(e)):{}}var i3=a3,s3=Qu,l3=Bo,c3="[object Map]";function u3(e){return l3(e)&&s3(e)==c3}var d3=u3,f3=d3,m3=Sg,rb=wg,ob=rb&&rb.isMap,v3=ob?m3(ob):f3,g3=v3,h3=Qu,p3=Bo,b3="[object Set]";function y3(e){return p3(e)&&h3(e)==b3}var C3=y3,S3=C3,w3=Sg,ab=wg,ib=ab&&ab.isSet,$3=ib?w3(ib):S3,x3=$3,E3=gg,I3=QR,O3=hg,P3=F_,R3=rT,M3=oT,_3=IC,T3=pT,N3=MT,k3=MC,A3=_C,L3=Qu,D3=fN,z3=ZN,j3=i3,F3=Gr,B3=bg,H3=g3,W3=co,V3=x3,G3=il,K3=xg,U3=1,X3=2,q3=4,AC="[object Arguments]",Y3="[object Array]",Q3="[object Boolean]",Z3="[object Date]",J3="[object Error]",LC="[object Function]",ek="[object GeneratorFunction]",tk="[object Map]",nk="[object Number]",DC="[object Object]",rk="[object RegExp]",ok="[object Set]",ak="[object String]",ik="[object Symbol]",sk="[object WeakMap]",lk="[object ArrayBuffer]",ck="[object DataView]",uk="[object Float32Array]",dk="[object Float64Array]",fk="[object Int8Array]",mk="[object Int16Array]",vk="[object Int32Array]",gk="[object Uint8Array]",hk="[object Uint8ClampedArray]",pk="[object Uint16Array]",bk="[object Uint32Array]",Ut={};Ut[AC]=Ut[Y3]=Ut[lk]=Ut[ck]=Ut[Q3]=Ut[Z3]=Ut[uk]=Ut[dk]=Ut[fk]=Ut[mk]=Ut[vk]=Ut[tk]=Ut[nk]=Ut[DC]=Ut[rk]=Ut[ok]=Ut[ak]=Ut[ik]=Ut[gk]=Ut[hk]=Ut[pk]=Ut[bk]=!0;Ut[J3]=Ut[LC]=Ut[sk]=!1;function Sc(e,t,n,r,o,a){var i,s=t&U3,l=t&X3,c=t&q3;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!W3(e))return e;var u=F3(e);if(u){if(i=D3(e),!s)return _3(e,i)}else {var d=L3(e),f=d==LC||d==ek;if(B3(e))return M3(e,s);if(d==DC||d==AC||f&&!o){if(i=l||f?{}:j3(e),!s)return l?N3(e,R3(i,e)):T3(e,P3(i,e))}else {if(!Ut[d])return o?e:{};i=z3(e,d,s);}}a||(a=new E3);var v=a.get(e);if(v)return v;a.set(e,i),V3(e)?e.forEach(function(p){i.add(Sc(p,t,n,p,e,a));}):H3(e)&&e.forEach(function(p,b){i.set(b,Sc(p,t,n,b,e,a));});var g=c?l?A3:k3:l?K3:G3,h=u?void 0:g(e);return I3(h||e,function(p,b){h&&(b=p,p=e[b]),O3(i,b,Sc(p,t,n,b,e,a));}),i}var yk=Sc,Ck=_i,Sk=Bo,wk="[object Symbol]";function $k(e){return typeof e=="symbol"||Sk(e)&&Ck(e)==wk}var Zu=$k,xk=Gr,Ek=Zu,Ik=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ok=/^\w*$/;function Pk(e,t){if(xk(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ek(e)?!0:Ok.test(e)||!Ik.test(e)||t!=null&&e in Object(t)}var Rg=Pk,zC=vg,Rk="Expected a function";function Mg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Rk);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Mg.Cache||zC),n}Mg.Cache=zC;var Mk=Mg,_k=Mk,Tk=500;function Nk(e){var t=_k(e,function(r){return n.size===Tk&&n.clear(),r}),n=t.cache;return t}var kk=Nk,Ak=kk,Lk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dk=/\\(\\)?/g,zk=Ak(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Lk,function(n,r,o,a){t.push(o?a.replace(Dk,"$1"):r||n);}),t}),jk=zk,sb=Mi,Fk=dg,Bk=Gr,Hk=Zu,Wk=1/0,lb=sb?sb.prototype:void 0,cb=lb?lb.toString:void 0;function jC(e){if(typeof e=="string")return e;if(Bk(e))return Fk(e,jC)+"";if(Hk(e))return cb?cb.call(e):"";var t=e+"";return t=="0"&&1/e==-Wk?"-0":t}var Vk=jC,Gk=Vk;function Kk(e){return e==null?"":Gk(e)}var Uk=Kk,Xk=Gr,qk=Rg,Yk=jk,Qk=Uk;function Zk(e,t){return Xk(e)?e:qk(e,t)?[e]:Yk(Qk(e))}var Li=Zk;function Jk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var e4=Jk,t4=Zu,n4=1/0;function r4(e){if(typeof e=="string"||t4(e))return e;var t=e+"";return t=="0"&&1/e==-n4?"-0":t}var Di=r4,o4=Li,a4=Di;function i4(e,t){t=o4(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[a4(t[n++])];return n&&n==r?e:void 0}var Ju=i4;function s4(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 a=Array(o);++r<o;)a[r]=e[r+t];return a}var l4=s4,c4=Ju,u4=l4;function d4(e,t){return t.length<2?e:c4(e,u4(t,0,-1))}var f4=d4,m4=Li,v4=e4,g4=f4,h4=Di;function p4(e,t){return t=m4(t,e),e=g4(e,t),e==null||delete e[h4(v4(t))]}var b4=p4,y4=_i,C4=Og,S4=Bo,w4="[object Object]",$4=Function.prototype,x4=Object.prototype,FC=$4.toString,E4=x4.hasOwnProperty,I4=FC.call(Object);function O4(e){if(!S4(e)||y4(e)!=w4)return !1;var t=C4(e);if(t===null)return !0;var n=E4.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&FC.call(n)==I4}var P4=O4,R4=P4;function M4(e){return R4(e)?void 0:e}var _4=M4,ub=Mi,T4=pg,N4=Gr,db=ub?ub.isConcatSpreadable:void 0;function k4(e){return N4(e)||T4(e)||!!(db&&e&&e[db])}var A4=k4,L4=Ig,D4=A4;function BC(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=D4),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?BC(s,t-1,n,r,o):L4(o,s):r||(o[o.length]=s);}return o}var z4=BC,j4=z4;function F4(e){var t=e==null?0:e.length;return t?j4(e,1):[]}var B4=F4;function H4(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 W4=H4,V4=W4,fb=Math.max;function G4(e,t,n){return t=fb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=fb(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),V4(e,this,s)}}var K4=G4;function U4(e){return function(){return e}}var X4=U4;function q4(e){return e}var HC=q4,Y4=X4,mb=yC,Q4=HC,Z4=mb?function(e,t){return mb(e,"toString",{configurable:!0,enumerable:!1,value:Y4(t),writable:!0})}:Q4,J4=Z4,eA=800,tA=16,nA=Date.now;function rA(e){var t=0,n=0;return function(){var r=nA(),o=tA-(r-n);if(n=r,o>0){if(++t>=eA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var oA=rA,aA=J4,iA=oA,sA=iA(aA),lA=sA,cA=B4,uA=K4,dA=lA;function fA(e){return dA(uA(e,void 0,cA),e+"")}var WC=fA,mA=dg,vA=yk,gA=b4,hA=Li,pA=al,bA=_4,yA=WC,CA=_C,SA=1,wA=2,$A=4,xA=yA(function(e,t){var n={};if(e==null)return n;var r=!1;t=mA(t,function(a){return a=hA(a,e),r||(r=a.length>1),a}),pA(e,CA(e),n),r&&(n=vA(n,SA|wA|$A,bA));for(var o=t.length;o--;)gA(n,t[o]);return n}),EA=xA;const IA=xn(EA);var OA=Vr,PA=function(){return OA.Date.now()},RA=PA,MA=/\s/;function _A(e){for(var t=e.length;t--&&MA.test(e.charAt(t)););return t}var TA=_A,NA=TA,kA=/^\s+/;function AA(e){return e&&e.slice(0,NA(e)+1).replace(kA,"")}var LA=AA,DA=LA,vb=co,zA=Zu,gb=NaN,jA=/^[-+]0x[0-9a-f]+$/i,FA=/^0b[01]+$/i,BA=/^0o[0-7]+$/i,HA=parseInt;function WA(e){if(typeof e=="number")return e;if(zA(e))return gb;if(vb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vb(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=DA(e);var n=FA.test(e);return n||BA.test(e)?HA(e.slice(2),n?2:8):jA.test(e)?gb:+e}var VC=WA,VA=co,mf=RA,hb=VC,GA="Expected a function",KA=Math.max,UA=Math.min;function XA(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(GA);t=hb(t)||0,VA(n)&&(u=!!n.leading,d="maxWait"in n,a=d?KA(hb(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function v($){var S=r,E=o;return r=o=void 0,c=$,i=e.apply(E,S),i}function g($){return c=$,s=setTimeout(b,t),u?v($):i}function h($){var S=$-l,E=$-c,I=t-S;return d?UA(I,a-E):I}function p($){var S=$-l,E=$-c;return l===void 0||S>=t||S<0||d&&E>=a}function b(){var $=mf();if(p($))return y($);s=setTimeout(b,h($));}function y($){return s=void 0,f&&r?v($):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function w(){return s===void 0?i:y(mf())}function x(){var $=mf(),S=p($);if(r=arguments,o=this,l=$,S){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),i}return x.cancel=C,x.flush=w,x}var GC=XA;const qA=xn(GC);var YA=GC,QA=co,ZA="Expected a function";function JA(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(ZA);return QA(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),YA(e,t,{leading:r,maxWait:t,trailing:o})}var eL=JA;const KC=xn(eL);var tL=hg,nL=Li,rL=yg,pb=co,oL=Di;function aL(e,t,n,r){if(!pb(e))return e;t=nL(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=oL(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=pb(u)?u:rL(t[o+1])?[]:{});}tL(s,l,c),s=s[l];}return e}var iL=aL,sL=Ju,lL=iL,cL=Li;function uL(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=sL(e,i);n(s,i)&&lL(a,cL(i,e),s);}return a}var dL=uL;function fL(e,t){return e!=null&&t in Object(e)}var mL=fL,vL=Li,gL=pg,hL=Gr,pL=yg,bL=Cg,yL=Di;function CL(e,t,n){t=vL(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=yL(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i];}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&bL(o)&&pL(i,o)&&(hL(e)||gL(e)))}var SL=CL,wL=mL,$L=SL;function xL(e,t){return e!=null&&$L(e,t,wL)}var UC=xL,EL=dL,IL=UC;function OL(e,t){return EL(e,t,function(n,r){return IL(e,r)})}var PL=OL,RL=PL,ML=WC,_L=ML(function(e,t){return e==null?{}:RL(e,t)}),TL=_L;const _g=xn(TL);var Pm={exports:{}},vf,bb;function NL(){if(bb)return vf;bb=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;vf=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return f*a;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,f,v){var g=d>=f*1.5;return Math.round(u/f)+" "+v+(g?"s":"")}return vf}function kL(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=NL(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,v,g;function h(...p){if(!h.enabled)return;const b=h,y=Number(new Date),C=y-(d||y);b.diff=C,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let w=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,S)=>{if($==="%%")return "%";w++;const E=n.formatters[S];if(typeof E=="function"){const I=p[w];$=E.call(b,I),p.splice(w,1),w--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return h.namespace=u,h.useColors=n.useColors(),h.color=n.selectColor(u),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(u)),g),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(h),h}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),v=f.length;for(d=0;d<v;d++)f[d]&&(u=f[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function i(u){if(u[u.length-1]==="*")return !0;let d,f;for(d=0,f=n.skips.length;d<f;d++)if(n.skips[d].test(u))return !1;for(d=0,f=n.names.length;d<f;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}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 AL=kL;(function(e,t){var n={};t.formatArgs=o,t.save=a,t.load=i,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!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 r(){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 o(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(d++,v==="%c"&&(f=d));}),c.splice(f,0,u);}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function i(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=AL(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return "[UnexpectedJSONParseError]: "+u.message}};})(Pm,Pm.exports);var LL=Pm.exports;const DL=xn(LL),rn="bilibili-app-recommend",XC="bilibili_app_recommend",Ca=DL(rn),qC="https://api.bilibili.com",YC="https://app.bilibili.com",mi={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Sa=`${rn}-root`;let QC=!1;function zL(e){QC=e;}var ZC={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ya,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",v="year",g="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var L=["th","st","nd","rd"],T=A%100;return "["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var P=String(A);return !P||P.length>=L?A:""+Array(L+1-P.length).join(T)+A},w={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),P=Math.floor(T/60),_=T%60;return (L<=0?"+":"-")+C(P,2,"0")+":"+C(_,2,"0")},m:function A(L,T){if(L.date()<T.date())return -A(T,L);var P=12*(T.year()-L.year())+(T.month()-L.month()),_=L.clone().add(P,d),z=T-_<0,j=L.clone().add(P+(z?-1:1),d);return +(-(P+(T-_)/(z?_-j:j-_))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return {M:d,y:v,w:u,d:c,D:g,h:l,m:s,s:i,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},x="en",$={};$[x]=y;var S="$isDayjsObject",E=function(A){return A instanceof M||!(!A||!A[S])},I=function A(L,T,P){var _;if(!L)return x;if(typeof L=="string"){var z=L.toLowerCase();$[z]&&(_=z),T&&($[z]=T,_=z);var j=L.split("-");if(!_&&j.length>1)return A(j[0])}else {var H=L.name;$[H]=L,_=H;}return !P&&_&&(x=_),_||!P&&x},O=function(A,L){if(E(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new M(T)},R=w;R.l=I,R.i=E,R.w=function(A,L){return O(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function A(T){this.$L=I(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0;}var L=A.prototype;return L.parse=function(T){this.$d=function(P){var _=P.date,z=P.utc;if(_===null)return new Date(NaN);if(R.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var j=_.match(p);if(j){var H=j[2]-1||0,B=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)}}return new Date(_)}(T),this.init();},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==h},L.isSame=function(T,P){var _=O(T);return this.startOf(P)<=_&&_<=this.endOf(P)},L.isAfter=function(T,P){return O(T)<this.startOf(P)},L.isBefore=function(T,P){return this.endOf(P)<O(T)},L.$g=function(T,P,_){return R.u(T)?this[P]:this.set(_,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,P){var _=this,z=!!R.u(P)||P,j=R.p(T),H=function(Z,U){var ue=R.w(_.$u?Date.UTC(_.$y,U,Z):new Date(_.$y,U,Z),_);return z?ue:ue.endOf(c)},B=function(Z,U){return R.w(_.toDate()[Z].apply(_.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),_)},V=this.$W,G=this.$M,q=this.$D,Y="set"+(this.$u?"UTC":"");switch(j){case v:return z?H(1,0):H(31,11);case d:return z?H(1,G):H(0,G+1);case u:var te=this.$locale().weekStart||0,W=(V<te?V+7:V)-te;return H(z?q-W:q+(6-W),G);case c:case g:return B(Y+"Hours",0);case l:return B(Y+"Minutes",1);case s:return B(Y+"Seconds",2);case i:return B(Y+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,P){var _,z=R.p(T),j="set"+(this.$u?"UTC":""),H=(_={},_[c]=j+"Date",_[g]=j+"Date",_[d]=j+"Month",_[v]=j+"FullYear",_[l]=j+"Hours",_[s]=j+"Minutes",_[i]=j+"Seconds",_[a]=j+"Milliseconds",_)[z],B=z===c?this.$D+(P-this.$W):P;if(z===d||z===v){var V=this.clone().set(g,1);V.$d[H](B),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d;}else H&&this.$d[H](B);return this.init(),this},L.set=function(T,P){return this.clone().$set(T,P)},L.get=function(T){return this[R.p(T)]()},L.add=function(T,P){var _,z=this;T=Number(T);var j=R.p(P),H=function(G){var q=O(z);return R.w(q.date(q.date()+Math.round(G*T)),z)};if(j===d)return this.set(d,this.$M+T);if(j===v)return this.set(v,this.$y+T);if(j===c)return H(1);if(j===u)return H(7);var B=(_={},_[s]=r,_[l]=o,_[i]=n,_)[j]||1,V=this.$d.getTime()+T*B;return R.w(V,this)},L.subtract=function(T,P){return this.add(-1*T,P)},L.format=function(T){var P=this,_=this.$locale();if(!this.isValid())return _.invalidDate||h;var z=T||"YYYY-MM-DDTHH:mm:ssZ",j=R.z(this),H=this.$H,B=this.$m,V=this.$M,G=_.weekdays,q=_.months,Y=_.meridiem,te=function(U,ue,ie,se){return U&&(U[ue]||U(P,z))||ie[ue].slice(0,se)},W=function(U){return R.s(H%12||12,U,"0")},Z=Y||function(U,ue,ie){var se=U<12?"AM":"PM";return ie?se.toLowerCase():se};return z.replace(b,function(U,ue){return ue||function(ie){switch(ie){case"YY":return String(P.$y).slice(-2);case"YYYY":return R.s(P.$y,4,"0");case"M":return V+1;case"MM":return R.s(V+1,2,"0");case"MMM":return te(_.monthsShort,V,q,3);case"MMMM":return te(q,V);case"D":return P.$D;case"DD":return R.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return te(_.weekdaysMin,P.$W,G,2);case"ddd":return te(_.weekdaysShort,P.$W,G,3);case"dddd":return G[P.$W];case"H":return String(H);case"HH":return R.s(H,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return Z(H,B,!0);case"A":return Z(H,B,!1);case"m":return String(B);case"mm":return R.s(B,2,"0");case"s":return String(P.$s);case"ss":return R.s(P.$s,2,"0");case"SSS":return R.s(P.$ms,3,"0");case"Z":return j}return null}(U)||j.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,P,_){var z,j=this,H=R.p(P),B=O(T),V=(B.utcOffset()-this.utcOffset())*r,G=this-B,q=function(){return R.m(j,B)};switch(H){case v:z=q()/12;break;case d:z=q();break;case f:z=q()/3;break;case u:z=(G-V)/6048e5;break;case c:z=(G-V)/864e5;break;case l:z=G/o;break;case s:z=G/r;break;case i:z=G/n;break;default:z=G;}return _?z:R.a(z)},L.daysInMonth=function(){return this.endOf(d).$D},L.$locale=function(){return $[this.$L]},L.locale=function(T,P){if(!T)return this.$L;var _=this.clone(),z=I(T,P,!0);return z&&(_.$L=z),_},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),k=M.prototype;return O.prototype=k,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",v],["$D",g]].forEach(function(A){k[A[1]]=function(L){return this.$g(L,A[0],A[1])};}),O.extend=function(A,L){return A.$i||(A(L,M,O),A.$i=!0),O},O.locale=I,O.isDayjs=E,O.unix=function(A){return O(1e3*A)},O.en=$[x],O.Ls=$,O.p={},O});})(ZC);var jL=ZC.exports;const Ho=xn(jL);var JC={exports:{}},eS={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o<n.length;o++,a+=8)r[a>>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var a=n[o]<<16|n[o+1]<<8|n[o+2],i=0;i<4;i++)o*8+i*6<=n.length*8?r.push(e.charAt(a>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o<n.length;a=++o%4)a!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(o))>>>6-a*2);return r}};eS.exports=t;})();var FL=eS.exports,Rm={utf8:{stringToBytes:function(e){return Rm.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Rm.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},yb=Rm;/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var BL=function(e){return e!=null&&(tS(e)||HL(e)||!!e._isBuffer)};function tS(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function HL(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&tS(e.slice(0,0))}(function(){var e=FL,t=yb.utf8,n=BL,r=yb.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),l=a.length*8,c=1732584193,u=-271733879,d=-1732584194,f=271733878,v=0;v<s.length;v++)s[v]=(s[v]<<8|s[v]>>>24)&16711935|(s[v]<<24|s[v]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var g=o._ff,h=o._gg,p=o._hh,b=o._ii,v=0;v<s.length;v+=16){var y=c,C=u,w=d,x=f;c=g(c,u,d,f,s[v+0],7,-680876936),f=g(f,c,u,d,s[v+1],12,-389564586),d=g(d,f,c,u,s[v+2],17,606105819),u=g(u,d,f,c,s[v+3],22,-1044525330),c=g(c,u,d,f,s[v+4],7,-176418897),f=g(f,c,u,d,s[v+5],12,1200080426),d=g(d,f,c,u,s[v+6],17,-1473231341),u=g(u,d,f,c,s[v+7],22,-45705983),c=g(c,u,d,f,s[v+8],7,1770035416),f=g(f,c,u,d,s[v+9],12,-1958414417),d=g(d,f,c,u,s[v+10],17,-42063),u=g(u,d,f,c,s[v+11],22,-1990404162),c=g(c,u,d,f,s[v+12],7,1804603682),f=g(f,c,u,d,s[v+13],12,-40341101),d=g(d,f,c,u,s[v+14],17,-1502002290),u=g(u,d,f,c,s[v+15],22,1236535329),c=h(c,u,d,f,s[v+1],5,-165796510),f=h(f,c,u,d,s[v+6],9,-1069501632),d=h(d,f,c,u,s[v+11],14,643717713),u=h(u,d,f,c,s[v+0],20,-373897302),c=h(c,u,d,f,s[v+5],5,-701558691),f=h(f,c,u,d,s[v+10],9,38016083),d=h(d,f,c,u,s[v+15],14,-660478335),u=h(u,d,f,c,s[v+4],20,-405537848),c=h(c,u,d,f,s[v+9],5,568446438),f=h(f,c,u,d,s[v+14],9,-1019803690),d=h(d,f,c,u,s[v+3],14,-187363961),u=h(u,d,f,c,s[v+8],20,1163531501),c=h(c,u,d,f,s[v+13],5,-1444681467),f=h(f,c,u,d,s[v+2],9,-51403784),d=h(d,f,c,u,s[v+7],14,1735328473),u=h(u,d,f,c,s[v+12],20,-1926607734),c=p(c,u,d,f,s[v+5],4,-378558),f=p(f,c,u,d,s[v+8],11,-2022574463),d=p(d,f,c,u,s[v+11],16,1839030562),u=p(u,d,f,c,s[v+14],23,-35309556),c=p(c,u,d,f,s[v+1],4,-1530992060),f=p(f,c,u,d,s[v+4],11,1272893353),d=p(d,f,c,u,s[v+7],16,-155497632),u=p(u,d,f,c,s[v+10],23,-1094730640),c=p(c,u,d,f,s[v+13],4,681279174),f=p(f,c,u,d,s[v+0],11,-358537222),d=p(d,f,c,u,s[v+3],16,-722521979),u=p(u,d,f,c,s[v+6],23,76029189),c=p(c,u,d,f,s[v+9],4,-640364487),f=p(f,c,u,d,s[v+12],11,-421815835),d=p(d,f,c,u,s[v+15],16,530742520),u=p(u,d,f,c,s[v+2],23,-995338651),c=b(c,u,d,f,s[v+0],6,-198630844),f=b(f,c,u,d,s[v+7],10,1126891415),d=b(d,f,c,u,s[v+14],15,-1416354905),u=b(u,d,f,c,s[v+5],21,-57434055),c=b(c,u,d,f,s[v+12],6,1700485571),f=b(f,c,u,d,s[v+3],10,-1894986606),d=b(d,f,c,u,s[v+10],15,-1051523),u=b(u,d,f,c,s[v+1],21,-2054922799),c=b(c,u,d,f,s[v+8],6,1873313359),f=b(f,c,u,d,s[v+15],10,-30611744),d=b(d,f,c,u,s[v+6],15,-1560198380),u=b(u,d,f,c,s[v+13],21,1309151649),c=b(c,u,d,f,s[v+4],6,-145523070),f=b(f,c,u,d,s[v+11],10,-1120210379),d=b(d,f,c,u,s[v+2],15,718787259),u=b(u,d,f,c,s[v+9],21,-343485551),c=c+y>>>0,u=u+C>>>0,d=d+w>>>0,f=f+x>>>0;}return e.endian([c,u,d,f])};o._ff=function(a,i,s,l,c,u,d){var f=a+(i&s|~i&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var f=a+(i&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var f=a+(i^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var f=a+(s^(i|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._blocksize=16,o._digestsize=16,JC.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(o(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)};})();var WL=JC.exports;const nS=xn(WL);var vi=1e3,gi=vi*60,hi=gi*60,fa=hi*24,VL=fa*7,GL=fa*365.25,KL=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return UL(e);if(n==="number"&&isFinite(e))return t.long?qL(e):XL(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function UL(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*GL;case"weeks":case"week":case"w":return n*VL;case"days":case"day":case"d":return n*fa;case"hours":case"hour":case"hrs":case"hr":case"h":return n*hi;case"minutes":case"minute":case"mins":case"min":case"m":return n*gi;case"seconds":case"second":case"secs":case"sec":case"s":return n*vi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function XL(e){var t=Math.abs(e);return t>=fa?Math.round(e/fa)+"d":t>=hi?Math.round(e/hi)+"h":t>=gi?Math.round(e/gi)+"m":t>=vi?Math.round(e/vi)+"s":e+"ms"}function qL(e){var t=Math.abs(e);return t>=fa?Xl(e,t,fa,"day"):t>=hi?Xl(e,t,hi,"hour"):t>=gi?Xl(e,t,gi,"minute"):t>=vi?Xl(e,t,vi,"second"):e+" ms"}function Xl(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const sl=xn(KL),YL=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function QL(e){let t="";return YL.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function ZL(e){const{img_key:t,sub_key:n}=await JL(),r=QL(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g,i=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{i.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(a,""))}`);});const s=i.join("&"),l=nS(s+r);return {wts:o,w_rid:l}}let gf,hf,pf;async function JL(){const e=()=>Ho().format("YYYYMMDD");if(gf&&hf&&pf&&pf===e()&&Date.now()-hf<=sl("6h"))return gf;const r=(await tg.get("/x/web-interface/nav",{baseURL:qC})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return gf=i,pf=e(),hf=Date.now(),i}function rS(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),nS(r.toString()+n)}const on=tg.create({baseURL:qC,withCredentials:!0});on.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await ZL(e.params)}),e});function Kr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const ed=tg.create({adapter:ZE}),Cb=mi.appkey,e5=mi.appsec;ed.interceptors.request.use(function(e){return e.params={appkey:Cb,access_key:xt.accessKey||"",...e.params},e.params.sign=rS(e.params,Cb,e5),e});ed.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});const t5=[{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)"}],oS=`--${rn}-color-primary`,Fr=`var(${oS})`,Bc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},aS={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function n5(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 iS="UP长期洗涤",r5=n5(iS,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),sS=[{name:"预设",themes:[Bc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},aS]},{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:t5,tooltip:be(It,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:iS,themes:r5,tooltip:be(It,{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"})]})}],o5=sS.map(e=>e.themes).flat();function Tg(){let{theme:e,colorPickerThemeSelectedColor:t}=en();return e||(e=Bc.id),m.useMemo(()=>{const n=o5.find(r=>r.id===e)||Bc;return n.id===aS.id&&t&&(n.colorPrimary=t),n},[e,t])}function Sb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function wb(e,t,n){var r=[],o=cg(e,r,n);return r.length<2?n:o+t(r)}var a5=function(t){var n=nC(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ri(c,n.registered,void 0);return ug(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ri(c,n.registered),f="animation-"+d.name;return Sb(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ri(c,n.registered);Sb(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return wb(n.registered,r,i5(c))};return {css:r,cx:i,injectGlobal:a,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:cg.bind(null,n.registered),merge:wb.bind(null,n.registered,r)}},i5=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else {a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i);}break}default:a=o;}a&&(n&&(n+=" "),n+=a);}}return n},s5=a5({key:"css"}),Hc=s5.css;const l5=Hc("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;color:#fff;background-color:#ffb243;background-color:",Fr,";border-radius:6px;white-space:pre-wrap;",""),c5=Hc({name:"1azakc",styles:"text-align:center"});function Ot(e,t=2e3){const n=document.createElement("div");n.classList.add(l5,Sa),n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(c5),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const u5="请求失败, 请重试 !!!",lS="操作失败, 请重试 !!!";function cS(){return Ot(u5)}function uS(){return Ot(lS)}const d5=Symbol(),Ng=Symbol(),Ji="a",gs="w";let f5=(e,t)=>new Proxy(e,t);const Mm=Object.getPrototypeOf,_m=new WeakMap,dS=e=>e&&(_m.has(e)?_m.get(e):Mm(e)===Object.prototype||Mm(e)===Array.prototype),Wc=e=>typeof e=="object"&&e!==null,m5=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(Mm(e),t)},kg=e=>e[Ng]||e,fS=(e,t,n,r)=>{if(!dS(e))return e;let o=r&&r.get(e);if(!o){const l=kg(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,m5(l)]:[l],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const u={f:c};let d=!1;const f=(g,h)=>{if(!d){let p=u[Ji].get(l);if(p||(p={},u[Ji].set(l,p)),g===gs)p[gs]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(h);}}},v={get:(g,h)=>h===Ng?l:(f("k",h),fS(Reflect.get(g,h),u[Ji],u.c,u.t)),has:(g,h)=>h===d5?(d=!0,u[Ji].delete(l),!0):(f("h",h),Reflect.has(g,h)),getOwnPropertyDescriptor:(g,h)=>(f("o",h),Reflect.getOwnPropertyDescriptor(g,h)),ownKeys:g=>(f(gs),Reflect.ownKeys(g))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(a,!!i),s[1].p=f5(i||a,s[0]),n&&n.set(a,s)),s[1][Ji]=t,s[1].c=n,s[1].t=r,s[1].p},mS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Wc(e)||!Wc(t))return !0;const o=n.get(kg(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[gs]===!0){if(a=((i,s)=>{const l=Reflect.ownKeys(i),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=mS(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},v5=e=>dS(e)&&e[Ng]||null,$b=(e,t=!0)=>{_m.set(e,t);},g5=(e,t,n)=>{const r=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;Wc(i)&&o.add(i);const l=Wc(i)&&t.get(kg(i));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const v=`:has(${String(f)})`;r.push(s?[...s,v]:[v]);}),l[gs]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const v=`:hasOwn(${String(f)})`;r.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f]);});}else s&&r.push(s);};return a(e),r};var Vc={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const bf=e=>typeof e=="object"&&e!==null,Ro=new WeakMap,ql=new WeakSet,h5=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>bf(c)&&!ql.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,a=(c,u,d=r)=>{const f=o.get(c);if((f==null?void 0:f[0])===u)return f[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return $b(v,!0),o.set(c,[u,v]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(v,g))return;const h=Reflect.get(c,g),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,g),b={value:h,enumerable:p,configurable:!0};if(ql.has(h))$b(h,!1);else if(h instanceof Promise)delete b.value,b.get=()=>d(h);else if(Ro.has(h)){const[y,C]=Ro.get(h);b.value=a(y,C(),d);}Object.defineProperty(v,g,b);}),Object.preventExtensions(v)},i=new WeakMap,s=[1,1],l=c=>{if(!bf(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const f=new Set,v=(I,O=++s[0])=>{d!==O&&(d=O,f.forEach(R=>R(I,O)));};let g=s[1];const h=(I=++s[1])=>(g!==I&&!f.size&&(g=I,b.forEach(([O])=>{const R=O[1](I);R>d&&(d=R);})),d),p=I=>(O,R)=>{const M=[...O];M[1]=[I,...M[1]],v(M,R);},b=new Map,y=(I,O)=>{if((Vc?"production":void 0)!=="production"&&b.has(I))throw new Error("prop listener already exists");if(f.size){const R=O[3](p(I));b.set(I,[O,R]);}else b.set(I,[O]);},C=I=>{var O;const R=b.get(I);R&&(b.delete(I),(O=R[1])==null||O.call(R));},w=I=>(f.add(I),f.size===1&&b.forEach(([R,M],k)=>{if((Vc?"production":void 0)!=="production"&&M)throw new Error("remove already exists");const A=R[3](p(k));b.set(k,[R,A]);}),()=>{f.delete(I),f.size===0&&b.forEach(([R,M],k)=>{M&&(M(),b.set(k,[R]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(x,{deleteProperty(I,O){const R=Reflect.get(I,O);C(O);const M=Reflect.deleteProperty(I,O);return M&&v(["delete",[O],R]),M},set(I,O,R,M){const k=Reflect.has(I,O),A=Reflect.get(I,O,M);if(k&&(e(A,R)||i.has(R)&&e(A,i.get(R))))return !0;C(O),bf(R)&&(R=v5(R)||R);let L=R;if(R instanceof Promise)R.then(T=>{R.status="fulfilled",R.value=T,v(["resolve",[O],T]);}).catch(T=>{R.status="rejected",R.reason=T,v(["reject",[O],T]);});else {!Ro.has(R)&&n(R)&&(L=l(R));const T=!ql.has(L)&&Ro.get(L);T&&y(O,T);}return Reflect.set(I,O,L,M),v(["set",[O],R,A]),!0}});i.set(c,S);const E=[x,h,a,w];return Ro.set(S,E),Reflect.ownKeys(c).forEach(I=>{const O=Object.getOwnPropertyDescriptor(c,I);"value"in O&&(S[I]=c[I],delete O.value,delete O.writable),Object.defineProperty(x,I,O);}),S})=>[l,Ro,ql,e,t,n,r,o,a,i,s],[p5]=h5();function Jn(e={}){return p5(e)}function td(e,t,n){const r=Ro.get(e);(Vc?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let o;const a=[],i=r[3];let s=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Ds(e,t){const n=Ro.get(e);(Vc?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,a]=n;return a(r,o(),t)}var vS={exports:{}},gS={};/**
* @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 pi=m;function b5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var y5=typeof Object.is=="function"?Object.is:b5,C5=pi.useState,S5=pi.useEffect,w5=pi.useLayoutEffect,$5=pi.useDebugValue;function x5(e,t){var n=t(),r=C5({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return w5(function(){o.value=n,o.getSnapshot=t,yf(o)&&a({inst:o});},[e,n,t]),S5(function(){return yf(o)&&a({inst:o}),e(function(){yf(o)&&a({inst:o});})},[e]),$5(n),n}function yf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !y5(e,n)}catch{return !0}}function E5(e,t){return t()}var I5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E5:x5;gS.useSyncExternalStore=pi.useSyncExternalStore!==void 0?pi.useSyncExternalStore:I5;vS.exports=gS;var O5=vS.exports;const P5=xn(O5);var R5={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:xb}=m,{useSyncExternalStore:M5}=P5,_5=(e,t)=>{const n=m.useRef();m.useEffect(()=>{n.current=g5(e,t,!0);}),m.useDebugValue(n.current);},T5=new WeakMap;function er(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let a=!0;const i=M5(m.useCallback(c=>{const u=td(e,c,n);return c(),u},[e,n]),()=>{const c=Ds(e,xb);try{if(!a&&r.current&&o.current&&!mS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Ds(e,xb));a=!1;const s=new WeakMap;m.useEffect(()=>{r.current=i,o.current=s;}),(R5?"production":void 0)!=="production"&&_5(i,s);const l=m.useMemo(()=>new WeakMap,[]);return fS(i,s,l,T5)}function Ag(){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 zi(){const e=Ag().bili_jct;if(!e)throw Ot("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function nd(){return Ag().DedeUserID}function ll(){return !!Ag().DedeUserID}const Tm=Jn({cookie:document.cookie,logined:ll()});function N5(){return Object.assign(Tm,{cookie:document.cookie,logined:ll()}),Tm.logined}function Lg(){return er(Tm).logined}const Eb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},k5=new WeakMap;function A5({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Eb());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(Eb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,v)=>{i=()=>{u(),f(r);},s=v,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),k5.set(d,()=>{l(a),a=null,i();}),d}}const Dn=A5(),L5=Ca.extend("utility:dom"),D5=10*1e3,z5=200;async function hs(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+D5;for(;!r.length&&performance.now()<i;)await Dn(z5),o();if(!r.length){console.warn(`[${rn}]: tryAction timeout, selector = \`%s\``,e);return}L5("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Qa(e,t,n){return typeof n=="number"&&await Dn(n),hs(e,r=>r.remove(),t)}function rd(){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"))}function j5(){return new Promise(e=>{queueMicrotask(e);})}function F5(){return new Promise(e=>{requestIdleCallback(()=>e());})}const Ib=e=>(e||"").replace(/^http:\/\//,"https://");function B5(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function wa(e){return e||(e=0),Ho.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Gn(e){if(!e)return "";if(e<=9999)return e.toString();if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}亿`}}function ia(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;if(/^\d+(\.\d+?)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const H5=Ho().format("YYYY");function ro(e,t=!1){if(!e)return "";const n=Ho.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===H5?n.format("M-D"+r):n.format("YY-M-D"+r)}const W5={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function V5(e){if(!(typeof e>"u")&&!(e>=0))return W5[e]}async function hS(){var n;return ((n=(await on.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Nm(e){var a,i;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:zi(),...e}),n=(await on.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=Kr(n);return o||Ot(n.message||"addupdate error"),{success:o,aid:r}}async function G5(e){var n;const t=(await on.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 K5(){const t=(await hS()).find(i=>i.title===rn);if(!t){await Nm({title:rn});return}const n=await G5(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}let Yl="";async function U5(e){if(!Yl){const o=(await hS()).find(a=>a.title===rn);if(o)Yl=o.id.toString();else {const{success:a,aid:i}=await Nm({title:rn});if(!a)return !1;Yl=i;}}const t=JSON.stringify(e),{success:n}=await Nm({aid:Yl,title:rn,content:`<p>${t}</p>`,words:t.length.toString()});return n}const X5=Ca.extend("settings"),Dg={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],anonymousForPopularGeneral:!1,shuffleForPopularWeekly:!1,filterEnabled:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleFancy:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,hidingTabKeys:[],customTabKeysOrder:[]},xt=Jn({...Dg}),pS=Object.keys(Dg);function en(){return er(xt)}const q5=rn,bS=`${q5}.settings`;async function Y5(){const e=await GM.getValue(bS);e&&typeof e=="object"&&Object.assign(xt,_g(e,pS)),td(xt,()=>{Z5();});}const Q5=KC(U5,sl("5s"));async function Z5(){const e=Ds(xt);await GM.setValue(bS,e),await J5(e);}async function J5(e){if(!e.backupSettingsToArticleDraft||QC)return;const t=IA(e,["accessKey"]);try{await Q5(t),X5("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function zn(e){Object.assign(xt,e);}function eD(){return zn(Dg)}await( Y5());var yS={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ya,function(){var n,r,o=1e3,a=6e4,i=36e5,s=864e5,l=/\[([^\]]+)]|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,u=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},v=function($){return $ instanceof w},g=function($,S,E){return new w($,E,S.$l)},h=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},C=function($,S){return $?p($)?{negative:!0,format:""+y($)+S}:{negative:!1,format:""+$+S}:{negative:!1,format:""}},w=function(){function $(E,I,O){var R=this;if(this.$d={},this.$l=O,E===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return g(E*f[h(I)],this);if(typeof E=="number")return this.$ms=E,this.parseFromMilliseconds(),this;if(typeof E=="object")return Object.keys(E).forEach(function(A){R.$d[h(A)]=E[A];}),this.calMilliseconds(),this;if(typeof E=="string"){var M=E.match(d);if(M){var k=M.slice(2).map(function(A){return A!=null?Number(A):0});return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var S=$.prototype;return S.calMilliseconds=function(){var E=this;this.$ms=Object.keys(this.$d).reduce(function(I,O){return I+(E.$d[O]||0)*f[O]},0);},S.parseFromMilliseconds=function(){var E=this.$ms;this.$d.years=b(E/c),E%=c,this.$d.months=b(E/u),E%=u,this.$d.days=b(E/s),E%=s,this.$d.hours=b(E/i),E%=i,this.$d.minutes=b(E/a),E%=a,this.$d.seconds=b(E/o),E%=o,this.$d.milliseconds=E;},S.toISOString=function(){var E=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var R=C(O,"D"),M=C(this.$d.hours,"H"),k=C(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var L=C(A,"S"),T=E.negative||I.negative||R.negative||M.negative||k.negative||L.negative,P=M.format||k.format||L.format?"T":"",_=(T?"-":"")+"P"+E.format+I.format+R.format+P+M.format+k.format+L.format;return _==="P"||_==="-P"?"P0D":_},S.toJSON=function(){return this.toISOString()},S.format=function(E){var I=E||"YYYY-MM-DDTHH:mm:ss",O={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 I.replace(l,function(R,M){return M||String(O[R])})},S.as=function(E){return this.$ms/f[h(E)]},S.get=function(E){var I=this.$ms,O=h(E);return O==="milliseconds"?I%=1e3:I=O==="weeks"?b(I/f[O]):this.$d[O],I||0},S.add=function(E,I,O){var R;return R=I?E*f[h(I)]:v(E)?E.$ms:g(E,this).$ms,g(this.$ms+R*(O?-1:1),this)},S.subtract=function(E,I){return this.add(E,I,!0)},S.locale=function(E){var I=this.clone();return I.$l=E,I},S.clone=function(){return g(this.$ms,this)},S.humanize=function(E){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!E)},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=function($,S,E){return $.add(S.years()*E,"y").add(S.months()*E,"M").add(S.days()*E,"d").add(S.hours()*E,"h").add(S.minutes()*E,"m").add(S.seconds()*E,"s").add(S.milliseconds()*E,"ms")};return function($,S,E){n=E,r=E().$utils(),E.duration=function(R,M){var k=E.locale();return g(R,{$l:k},M)},E.isDuration=v;var I=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(R,M){return v(R)?x(this,R,1):I.bind(this)(R,M)},S.prototype.subtract=function(R,M){return v(R)?x(this,R,-1):O.bind(this)(R,M)};}});})(yS);var tD=yS.exports;const nD=xn(tD);var CS={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 a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s);}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(CS);var rD=CS.exports;const K=xn(rD);function zg(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return m__namespace.createElement("div",{className:K("".concat(n,"-content"),a),style:i},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function Re(){return Re=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},Re.apply(this,arguments)}function ut(e){"@babel/helpers - typeof";return ut=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},ut(e)}function oD(e,t){if(ut(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ut(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function SS(e){var t=oD(e,"string");return ut(t)==="symbol"?t:String(t)}function F(e,t,n){return t=SS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ob(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 X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(n),!0).forEach(function(r){F(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ob(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function aD(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function tt(e,t){if(e==null)return {};var n=aD(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function wS(e){if(Array.isArray(e))return e}function iD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function km(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 jg(e,t){if(e){if(typeof e=="string")return km(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 km(e,t)}}function $S(){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 J(e,t){return wS(e)||iD(e,t)||jg(e,t)||$S()}function Kn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Am={},sD=function(t){};function lD(e,t){}function cD(e,t){}function uD(){Am={};}function xS(e,t,n){!t&&!Am[n]&&(e(!1,n),Am[n]=!0);}function $n(e,t){xS(lD,e,t);}function dD(e,t){xS(cD,e,t);}$n.preMessage=sD;$n.resetWarned=uD;$n.noteOnce=dD;var ES={exports:{}},Ht={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fg=Symbol.for("react.element"),Bg=Symbol.for("react.portal"),od=Symbol.for("react.fragment"),ad=Symbol.for("react.strict_mode"),id=Symbol.for("react.profiler"),sd=Symbol.for("react.provider"),ld=Symbol.for("react.context"),fD=Symbol.for("react.server_context"),cd=Symbol.for("react.forward_ref"),ud=Symbol.for("react.suspense"),dd=Symbol.for("react.suspense_list"),fd=Symbol.for("react.memo"),md=Symbol.for("react.lazy"),mD=Symbol.for("react.offscreen"),IS;IS=Symbol.for("react.module.reference");function Pr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Fg:switch(e=e.type,e){case od:case id:case ad:case ud:case dd:return e;default:switch(e=e&&e.$$typeof,e){case fD:case ld:case cd:case md:case fd:case sd:return e;default:return t}}case Bg:return t}}}Ht.ContextConsumer=ld;Ht.ContextProvider=sd;Ht.Element=Fg;Ht.ForwardRef=cd;Ht.Fragment=od;Ht.Lazy=md;Ht.Memo=fd;Ht.Portal=Bg;Ht.Profiler=id;Ht.StrictMode=ad;Ht.Suspense=ud;Ht.SuspenseList=dd;Ht.isAsyncMode=function(){return !1};Ht.isConcurrentMode=function(){return !1};Ht.isContextConsumer=function(e){return Pr(e)===ld};Ht.isContextProvider=function(e){return Pr(e)===sd};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fg};Ht.isForwardRef=function(e){return Pr(e)===cd};Ht.isFragment=function(e){return Pr(e)===od};Ht.isLazy=function(e){return Pr(e)===md};Ht.isMemo=function(e){return Pr(e)===fd};Ht.isPortal=function(e){return Pr(e)===Bg};Ht.isProfiler=function(e){return Pr(e)===id};Ht.isStrictMode=function(e){return Pr(e)===ad};Ht.isSuspense=function(e){return Pr(e)===ud};Ht.isSuspenseList=function(e){return Pr(e)===dd};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===od||e===id||e===ad||e===ud||e===dd||e===mD||typeof e=="object"&&e!==null&&(e.$$typeof===md||e.$$typeof===fd||e.$$typeof===sd||e.$$typeof===ld||e.$$typeof===cd||e.$$typeof===IS||e.getModuleId!==void 0)};Ht.typeOf=Pr;ES.exports=Ht;var Hg=ES.exports;function cl(e,t,n){var r=m__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Wg(e,t){typeof e=="function"?e(t):ut(e)==="object"&&e&&"current"in e&&(e.current=t);}function qn(){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(a){Wg(a,o);});}}function $a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cl(function(){return qn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function Wo(e){var t,n,r=Hg.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))}function vD(e){return !m.isValidElement(e)||Hg.isFragment(e)?!1:Wo(e)}var OS=m__namespace.createContext(null);function gD(e){if(Array.isArray(e))return km(e)}function PS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hD(){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 Ae(e){return gD(e)||PS(e)||jg(e)||hD()}var Pb=Kn()?m__namespace.useLayoutEffect:m__namespace.useEffect,Xt=function(t,n){var r=m__namespace.useRef(!0);Pb(function(){return t(r.current)},n),Pb(function(){return r.current=!1,function(){r.current=!0;}},[]);},oi=function(t,n){Xt(function(r){if(!r)return t()},n);},Rb=[];function pD(e,t){var n=m__namespace.useState(function(){if(!Kn())return null;var g=document.createElement("div");return g}),r=J(n,1),o=r[0],a=m__namespace.useRef(!1),i=m__namespace.useContext(OS),s=m__namespace.useState(Rb),l=J(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(g){u(function(h){var p=[g].concat(Ae(h));return p});});function f(){o.parentElement||document.body.appendChild(o),a.current=!0;}function v(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1;}return Xt(function(){return e?i?i(f):f():v(),v},[e]),Xt(function(){c.length&&(c.forEach(function(g){return g()}),u(Rb));},[c]),[o,d]}function bD(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 Mb="data-rc-order",_b="data-rc-priority",yD="rc-util-key",Lm=new Map;function RS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):yD}function vd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function MS(e){return Array.from((Lm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _S(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Kn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=CD(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Mb,i),s&&a&&l.setAttribute(_b,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=vd(t),u=c.firstChild;if(r){if(s){var d=MS(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Mb)))return !1;var v=Number(f.getAttribute(_b)||0);return a>=v});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function TS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vd(t);return MS(n).find(function(r){return r.getAttribute(RS(t))===e})}function Gc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=TS(e,t);if(n){var r=vd(t);r.removeChild(n);}}function SD(e,t){var n=Lm.get(e);if(!n||!bD(document,n)){var r=_S("",t),o=r.parentNode;Lm.set(e,o),e.removeChild(r);}}function bi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vd(n);SD(r,n);var o=TS(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=_S(e,n);return l.setAttribute(RS(n),t),l}var Cf;function wD(e){if(typeof document>"u")return 0;if(e||Cf===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 a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),Cf=o-a;}return Cf}function $D(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var xD="rc-util-locker-".concat(Date.now()),Tb=0;function ED(e){var t=!!e,n=m__namespace.useState(function(){return Tb+=1,"".concat(xD,"_").concat(Tb)}),r=J(n,1),o=r[0];Xt(function(){if(t){var a=wD(),i=$D();bi(`
html body {
overflow-y: hidden;
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else Gc(o);return function(){Gc(o);}},[t,o]);}var Nb=!1;function ID(e){return typeof e=="boolean"&&(Nb=e),Nb}var kb=function(t){return t===!1?!1:!Kn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},NS=m__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=m__namespace.useState(n),c=J(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var v=m__namespace.useState(function(){return kb(o)}),g=J(v,2),h=g[0],p=g[1];m__namespace.useEffect(function(){var R=kb(o);p(R??null);});var b=pD(f&&!h),y=J(b,2),C=y[0],w=y[1],x=h??C;ED(r&&n&&Kn()&&(x===C||x===document.body));var $=null;if(s&&Wo(s)&&t){var S=s;$=S.ref;}var E=$a($,t);if(!f||!Kn()||h===void 0)return null;var I=x===!1||ID(),O=s;return t&&(O=m__namespace.cloneElement(s,{ref:E})),m__namespace.createElement(OS.Provider,{value:w},I?O:V1.createPortal(O,x))});function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return m.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):Hg.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r));}),n}function Kc(e){return e instanceof HTMLElement||e instanceof SVGElement}function ps(e){return Kc(e)?e:e instanceof m.Component?V1.findDOMNode(e):null}var Dm=m__namespace.createContext(null);function OD(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),a=m__namespace.useContext(Dm),i=m__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),a==null||a(s,l,c);},[n,a]);return m__namespace.createElement(Dm.Provider,{value:i},t)}var Ao=new Map;function PD(e){e.forEach(function(t){var n,r=t.target;(n=Ao.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var kS=new eI(PD);function RD(e,t){Ao.has(e)||(Ao.set(e,new Set),kS.observe(e)),Ao.get(e).add(t);}function MD(e,t){Ao.has(e)&&(Ao.get(e).delete(t),Ao.get(e).size||(kS.unobserve(e),Ao.delete(e)));}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ab(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,SS(r.key),r);}}function On(e,t,n){return t&&Ab(e.prototype,t),n&&Ab(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zm(e,t)}function Vo(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&&zm(e,t);}function Uc(e){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uc(e)}function _D(){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 Ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TD(e,t){if(t&&(ut(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(e)}function Go(e){var t=_D();return function(){var r=Uc(e),o;if(t){var a=Uc(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return TD(this,o)}}var ND=function(e){Vo(n,e);var t=Go(n);function n(){return In(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function kD(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),a=m__namespace.useRef(null),i=m__namespace.useContext(Dm),s=typeof n=="function",l=s?n(o):n,c=m__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m__namespace.isValidElement(l)&&Wo(l),d=u?l.ref:null,f=$a(d,o),v=function(){var b;return ps(o.current)||(o.current&&ut(o.current)==="object"?ps((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||ps(a.current)};m__namespace.useImperativeHandle(t,function(){return v()});var g=m__namespace.useRef(e);g.current=e;var h=m__namespace.useCallback(function(p){var b=g.current,y=b.onResize,C=b.data,w=p.getBoundingClientRect(),x=w.width,$=w.height,S=p.offsetWidth,E=p.offsetHeight,I=Math.floor(x),O=Math.floor($);if(c.current.width!==I||c.current.height!==O||c.current.offsetWidth!==S||c.current.offsetHeight!==E){var R={width:I,height:O,offsetWidth:S,offsetHeight:E};c.current=R;var M=S===Math.round(x)?x:S,k=E===Math.round($)?$:E,A=X(X({},R),{},{offsetWidth:M,offsetHeight:k});i==null||i(A,p,C),y&&Promise.resolve().then(function(){y(A,p);});}},[]);return m__namespace.useEffect(function(){var p=v();return p&&!r&&RD(p,h),function(){return MD(p,h)}},[o.current,r]),m__namespace.createElement(ND,{ref:a},u?m__namespace.cloneElement(l,{ref:f}):l)}var AD=m__namespace.forwardRef(kD),LD="rc-observer-key";function DD(e,t){var n=e.children,r=typeof n=="function"?[n]:vr(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(LD,"-").concat(a);return m__namespace.createElement(AD,Re({},e,{key:i,ref:a===0?t:void 0}),o)})}var Er=m__namespace.forwardRef(DD);Er.Collection=OD;function AS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zD(e){return AS(e)instanceof ShadowRoot}function Xc(e){return zD(e)?AS(e):null}function An(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function jD(){var e=X({},m__namespace);return e.useId}var Lb=0,Db=jD();const FD=Db?function(t){var n=Db();return t||n}:function(t){var n=m__namespace.useState("ssr-id"),r=J(n,2),o=r[0],a=r[1];return m__namespace.useEffect(function(){var i=Lb;Lb+=1,a("rc_unique_".concat(i));},[]),t||o},gd=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 BD=["children"],LS=m__namespace.createContext({});function HD(e){var t=e.children,n=tt(e,BD);return m__namespace.createElement(LS.Provider,{value:n},t)}var WD=function(e){Vo(n,e);var t=Go(n);function n(){return In(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function sa(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=J(n,2),o=r[0],a=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}var Xo="none",Ql="appear",Zl="enter",Jl="leave",zb="none",kr="prepare",Za="start",Ja="active",Vg="end",DS="prepared";function jb(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 VD(e,t){var n={animationend:jb("Animation","AnimationEnd"),transitionend:jb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var GD=VD(Kn(),typeof window<"u"?window:{}),zS={};if(Kn()){var KD=document.createElement("div");zS=KD.style;}var ec={};function jS(e){if(ec[e])return ec[e];var t=GD[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in zS)return ec[e]=t[a],ec[e]}return ""}var FS=jS("animationend"),BS=jS("transitionend"),HS=!!(FS&&BS),Fb=FS||"animationend",Bb=BS||"transitionend";function Hb(e,t){if(!e)return null;if(ut(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const UD=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(Bb,r),i.removeEventListener(Fb,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Bb,r),i.addEventListener(Fb,r),t.current=i);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var WS=Kn()?m.useLayoutEffect:m.useEffect,VS=function(t){return +setTimeout(t,16)},GS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(VS=function(t){return window.requestAnimationFrame(t)},GS=function(t){return window.cancelAnimationFrame(t)});var Wb=0,Gg=new Map;function KS(e){Gg.delete(e);}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Wb+=1;var r=Wb;function o(a){if(a===0)KS(r),t();else {var i=VS(function(){o(a-1);});Gg.set(r,i);}}return o(n),r};Rt.cancel=function(e){var t=Gg.get(e);return KS(e),GS(t)};const XD=function(){var e=m__namespace.useRef(null);function t(){Rt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Rt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var qD=[kr,Za,Ja,Vg],YD=[kr,DS],US=!1,QD=!0;function XS(e){return e===Ja||e===Vg}const ZD=function(e,t,n){var r=sa(zb),o=J(r,2),a=o[0],i=o[1],s=XD(),l=J(s,2),c=l[0],u=l[1];function d(){i(kr,!0);}var f=t?YD:qD;return WS(function(){if(a!==zb&&a!==Vg){var v=f.indexOf(a),g=f[v+1],h=n(a);h===US?i(g,!0):g&&c(function(p){function b(){p.isCanceled()||i(g,!0);}h===!0?b():Promise.resolve(h).then(b);});}},[e,a]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function JD(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,v=r.onEnterPrepare,g=r.onLeavePrepare,h=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,$=r.onEnterEnd,S=r.onLeaveEnd,E=r.onVisibleChanged,I=sa(),O=J(I,2),R=O[0],M=O[1],k=sa(Xo),A=J(k,2),L=A[0],T=A[1],P=sa(null),_=J(P,2),z=_[0],j=_[1],H=m.useRef(!1),B=m.useRef(null);function V(){return n()}var G=m.useRef(!1);function q(){T(Xo,!0),j(null,!0);}function Y(ne){var ae=V();if(!(ne&&!ne.deadline&&ne.target!==ae)){var me=G.current,Ce;L===Ql&&me?Ce=x==null?void 0:x(ae,ne):L===Zl&&me?Ce=$==null?void 0:$(ae,ne):L===Jl&&me&&(Ce=S==null?void 0:S(ae,ne)),L!==Xo&&me&&Ce!==!1&&q();}}var te=UD(Y),W=J(te,1),Z=W[0],U=function(ae){var me,Ce,ke;switch(ae){case Ql:return me={},F(me,kr,f),F(me,Za,h),F(me,Ja,y),me;case Zl:return Ce={},F(Ce,kr,v),F(Ce,Za,p),F(Ce,Ja,C),Ce;case Jl:return ke={},F(ke,kr,g),F(ke,Za,b),F(ke,Ja,w),ke;default:return {}}},ue=m__namespace.useMemo(function(){return U(L)},[L]),ie=ZD(L,!e,function(ne){if(ne===kr){var ae=ue[kr];return ae?ae(V()):US}if(ce in ue){var me;j(((me=ue[ce])===null||me===void 0?void 0:me.call(ue,V(),null))||null);}return ce===Ja&&(Z(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Y({deadline:!0});},u))),ce===DS&&q(),QD}),se=J(ie,2),ee=se[0],ce=se[1],Q=XS(ce);G.current=Q,WS(function(){M(t);var ne=H.current;H.current=!0;var ae;!ne&&t&&s&&(ae=Ql),ne&&t&&a&&(ae=Zl),(ne&&!t&&c||!ne&&d&&!t&&c)&&(ae=Jl);var me=U(ae);ae&&(e||me[kr])?(T(ae),ee()):T(Xo);},[t]),m.useEffect(function(){(L===Ql&&!s||L===Zl&&!a||L===Jl&&!c)&&T(Xo);},[s,a,c]),m.useEffect(function(){return function(){H.current=!1,clearTimeout(B.current);}},[]);var le=m__namespace.useRef(!1);m.useEffect(function(){R&&(le.current=!0),R!==void 0&&L===Xo&&((le.current||R)&&(E==null||E(R)),le.current=!0);},[R,L]);var he=z;return ue[kr]&&ce===Za&&(he=X({transition:"none"},he)),[L,ce,he,R??t]}function e6(e){var t=e;ut(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=m__namespace.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,v=o.leavedClassName,g=o.eventProps,h=m__namespace.useContext(LS),p=h.motion,b=n(o,p),y=m.useRef(),C=m.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:ps(C.current)}catch{return null}}var x=JD(b,s,w,o),$=J(x,4),S=$[0],E=$[1],I=$[2],O=$[3],R=m__namespace.useRef(O);O&&(R.current=!0);var M=m__namespace.useCallback(function(j){y.current=j,Wg(a,j);},[a]),k,A=X(X({},g),{},{visible:s});if(!d)k=null;else if(S===Xo)O?k=d(X({},A),M):!c&&R.current&&v?k=d(X(X({},A),{},{className:v}),M):u||!c&&!v?k=d(X(X({},A),{},{style:{display:"none"}}),M):k=null;else {var L,T;E===kr?T="prepare":XS(E)?T="active":E===Za&&(T="start");var P=Hb(f,"".concat(S,"-").concat(T));k=d(X(X({},A),{},{className:K(Hb(f,S),(L={},F(L,P,P&&T),F(L,f,typeof f=="string"),L)),style:I}),M);}if(m__namespace.isValidElement(k)&&Wo(k)){var _=k,z=_.ref;z||(k=m__namespace.cloneElement(k,{ref:M}));}return m__namespace.createElement(WD,{ref:C},k)});return r.displayName="CSSMotion",r}const xo=e6(HS);var jm="add",Fm="keep",Bm="remove",Sf="removed";function t6(e){var t;return e&&ut(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function Hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(t6)}function n6(){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,a=Hm(e),i=Hm(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=i[d];if(f.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(v){return X(X({},v),{},{status:jm})})),r=d),n.push(X(X({},f),{},{status:Fm})),r+=1,u=!0;break}}u||n.push(X(X({},c),{},{status:Bm}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return X(X({},c),{},{status:jm})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Bm}),n.forEach(function(u){u.key===c&&(u.status=Fm);});}),n}var r6=["component","children","onVisibleChanged","onAllRemoved"],o6=["status"],a6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function i6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xo,n=function(r){Vo(a,r);var o=Go(a);function a(){var i;In(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),F(Ke(i),"state",{keyEntities:[]}),F(Ke(i),"removeKey",function(u){var d=i.state.keyEntities,f=d.map(function(v){return v.key!==u?v:X(X({},v),{},{status:Sf})});return i.setState({keyEntities:f}),f.filter(function(v){var g=v.status;return g!==Sf}).length}),i}return On(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,v=c.onAllRemoved,g=tt(c,r6),h=u||m__namespace.Fragment,p={};return a6.forEach(function(b){p[b]=g[b],delete g[b];}),delete g.keys,m__namespace.createElement(h,g,l.map(function(b,y){var C=b.status,w=tt(b,o6),x=C===jm||C===Fm;return m__namespace.createElement(t,Re({},p,{key:w.key,visible:x,eventProps:w,onVisibleChanged:function(S){if(f==null||f(S,{key:w.key}),!S){var E=s.removeKey(w.key);E===0&&v&&v();}}}),function($,S){return d(X(X({},$),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Hm(c),f=n6(u,d);return {keyEntities:f.filter(function(v){var g=u.find(function(h){var p=h.key;return v.key===p});return !(g&&g.status===Sf&&v.status===Bm)})}}}]),a}(m__namespace.Component);return F(n,"defaultProps",{component:"div"}),n}i6(HS);function s6(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=m__namespace.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],h=n.points[1],p=g[0],b=g[1],y=h[0],C=h[1];p===y||!["t","b"].includes(p)?v.top=d:p==="t"?v.top=0:v.bottom=0,b===C||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0;}return m__namespace.createElement("div",{ref:f,className:K("".concat(t,"-arrow"),i),style:v},s)}function l6(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?m__namespace.createElement(xo,Re({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return m__namespace.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var c6=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),u6=m__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,v=e.arrow,g=e.arrowPos,h=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,x=e.portal,$=e.zIndex,S=e.onMouseEnter,E=e.onMouseLeave,I=e.onPointerEnter,O=e.ready,R=e.offsetX,M=e.offsetY,k=e.offsetR,A=e.offsetB,L=e.onAlign,T=e.onPrepare,P=e.stretch,_=e.targetWidth,z=e.targetHeight,j=typeof n=="function"?n():n,H=l||c,B=(C==null?void 0:C.length)>0,V=m__namespace.useState(!C||!B),G=J(V,2),q=G[0],Y=G[1];if(Xt(function(){!q&&B&&i&&Y(!0);},[q,B,i]),!q)return null;var te="auto",W={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(O||!l){var Z,U=h.points,ue=h.dynamicInset||((Z=h._experimental)===null||Z===void 0?void 0:Z.dynamicInset),ie=ue&&U[0][1]==="r",se=ue&&U[0][0]==="b";ie?(W.right=k,W.left=te):(W.left=R,W.right=te),se?(W.bottom=A,W.top=te):(W.top=M,W.bottom=te);}var ee={};return P&&(P.includes("height")&&z?ee.height=z:P.includes("minHeight")&&z&&(ee.minHeight=z),P.includes("width")&&_?ee.width=_:P.includes("minWidth")&&_&&(ee.minWidth=_)),l||(ee.pointerEvents="none"),m__namespace.createElement(x,{open:y||H,getContainer:C&&function(){return C(i)},autoDestroy:w},m__namespace.createElement(l6,{prefixCls:o,open:l,zIndex:$,mask:f,motion:b}),m__namespace.createElement(Er,{onResize:L,disabled:!l},function(ce){return m__namespace.createElement(xo,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(le){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,le),s(le);}}),function(Q,le){var he=Q.className,ne=Q.style,ae=K(o,he,r);return m__namespace.createElement("div",{ref:qn(ce,t,le),className:ae,style:X(X(X(X({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},W),ee),ne),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:S,onMouseLeave:E,onPointerEnter:I,onClick:d},v&&m__namespace.createElement(s6,{prefixCls:o,arrow:v,arrowPos:g,align:h}),m__namespace.createElement(c6,{cache:!l&&!u},j))})}))}),d6=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Wo(n),a=m__namespace.useCallback(function(s){Wg(t,r?r(s):s);},[r]),i=$a(a,n.ref);return o?m__namespace.cloneElement(n,{ref:i}):n}),Vb=m__namespace.createContext(null);function Gb(e){return e?Array.isArray(e)?e:[e]:[]}function f6(e,t,n,r){return m__namespace.useMemo(function(){var o=Gb(n??t),a=Gb(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}const Kg=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(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function m6(){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 v6(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(m6((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Kb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ul(e){return e.ownerDocument.defaultView}function Wm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ul(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function es(e){return zs(parseFloat(e),0)}function Ub(e,t){var n=X({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ul(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,v=r.clientHeight,g=r.offsetWidth,h=r.clientWidth,p=es(s),b=es(l),y=es(c),C=es(u),w=zs(Math.round(d.width/g*1e3)/1e3),x=zs(Math.round(d.height/f*1e3)/1e3),$=(g-h-y-C)*w,S=(f-v-p-b)*x,E=p*x,I=b*x,O=y*w,R=C*w,M=0,k=0;if(a==="clip"){var A=es(i);M=A*w,k=A*x;}var L=d.x+O-M,T=d.y+E-k,P=L+d.width+2*M-O-R-$,_=T+d.height+2*k-E-I-S;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,_);}}),n}function Xb(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 qb(e,t){var n=t||[],r=J(n,2),o=r[0],a=r[1];return [Xb(e.width,o),Xb(e.height,a)]}function Yb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function _a(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function Oo(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 g6(e,t,n,r,o,a,i){var s=m__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=J(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?Wm(t):[]},[t]),v=m__namespace.useRef({}),g=function(){v.current={};};e||g();var h=An(function(){if(t&&n&&e){let br=function(fo,Ko){var Ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae,Ma=j.x+fo,qi=j.y+Ko,Yi=Ma+Z,Vl=qi+W,rf=Math.max(Ma,Ra.left),of=Math.max(qi,Ra.top),af=Math.min(Yi,Ra.right),sf=Math.min(Vl,Ra.bottom);return Math.max(0,(af-rf)*(sf-of))},Wl=function(){wt=j.y+ve,ft=wt+W,je=j.x+_e,Pe=je+Z;};var y,C,w=t,x=w.ownerDocument,$=ul(w),S=$.getComputedStyle(w),E=S.width,I=S.height,O=S.position,R=w.style.left,M=w.style.top,k=w.style.right,A=w.style.bottom,L=w.style.overflow,T=X(X({},o[r]),a),P=x.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(P),P.style.left="".concat(w.offsetLeft,"px"),P.style.top="".concat(w.offsetTop,"px"),P.style.position=O,P.style.height="".concat(w.offsetHeight,"px"),P.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var z=n.getBoundingClientRect();_={x:z.x,y:z.y,width:z.width,height:z.height};}var j=w.getBoundingClientRect(),H=x.documentElement,B=H.clientWidth,V=H.clientHeight,G=H.scrollWidth,q=H.scrollHeight,Y=H.scrollTop,te=H.scrollLeft,W=j.height,Z=j.width,U=_.height,ue=_.width,ie={left:0,top:0,right:B,bottom:V},se={left:-te,top:-Y,right:G-te,bottom:q-Y},ee=T.htmlRegion,ce="visible",Q="visibleFirst";ee!=="scroll"&&ee!==Q&&(ee=ce);var le=ee===Q,he=Ub(se,f),ne=Ub(ie,f),ae=ee===ce?ne:he,me=le?ne:ae;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ce=w.getBoundingClientRect();w.style.left=R,w.style.top=M,w.style.right=k,w.style.bottom=A,w.style.overflow=L,(C=w.parentElement)===null||C===void 0||C.removeChild(P);var ke=zs(Math.round(Z/parseFloat(E)*1e3)/1e3),We=zs(Math.round(W/parseFloat(I)*1e3)/1e3);if(ke===0||We===0||Kc(n)&&!Kg(n))return;var Ge=T.offset,Me=T.targetOffset,Xe=qb(j,Ge),ze=J(Xe,2),He=ze[0],Ie=ze[1],we=qb(_,Me),qe=J(we,2),nt=qe[0],bt=qe[1];_.x-=nt,_.y-=bt;var Ze=T.points||[],Je=J(Ze,2),gt=Je[0],ht=Je[1],st=Yb(ht),dt=Yb(gt),et=_a(_,st),$e=_a(j,dt),xe=X({},T),_e=et.x-$e.x+He,ve=et.y-$e.y+Ie,Te=br(_e,ve),Se=br(_e,ve,ne),fe=_a(_,["t","l"]),oe=_a(j,["t","l"]),ye=_a(_,["b","r"]),de=_a(j,["b","r"]),pe=T.overflow||{},Le=pe.adjustX,Ue=pe.adjustY,lt=pe.shiftX,it=pe.shiftY,Et=function(Ko){return typeof Ko=="boolean"?Ko:Ko>=0},wt,ft,je,Pe;Wl();var Ee=Et(Ue),Oe=dt[0]===st[0];if(Ee&&dt[0]==="t"&&(ft>me.bottom||v.current.bt)){var Ve=ve;Oe?Ve-=W-U:Ve=fe.y-de.y-Ie;var mt=br(_e,Ve),_t=br(_e,Ve,ne);mt>Te||mt===Te&&(!le||_t>=Se)?(v.current.bt=!0,ve=Ve,Ie=-Ie,xe.points=[Oo(dt,0),Oo(st,0)]):v.current.bt=!1;}if(Ee&&dt[0]==="b"&&(wt<me.top||v.current.tb)){var Mt=ve;Oe?Mt+=W-U:Mt=ye.y-oe.y-Ie;var vn=br(_e,Mt),un=br(_e,Mt,ne);vn>Te||vn===Te&&(!le||un>=Se)?(v.current.tb=!0,ve=Mt,Ie=-Ie,xe.points=[Oo(dt,0),Oo(st,0)]):v.current.tb=!1;}var gn=Et(Le),Bn=dt[1]===st[1];if(gn&&dt[1]==="l"&&(Pe>me.right||v.current.rl)){var Sn=_e;Bn?Sn-=Z-ue:Sn=fe.x-de.x-He;var Xr=br(Sn,ve),uo=br(Sn,ve,ne);Xr>Te||Xr===Te&&(!le||uo>=Se)?(v.current.rl=!0,_e=Sn,He=-He,xe.points=[Oo(dt,1),Oo(st,1)]):v.current.rl=!1;}if(gn&&dt[1]==="r"&&(je<me.left||v.current.lr)){var Hn=_e;Bn?Hn+=Z-ue:Hn=ye.x-oe.x-He;var Io=br(Hn,ve),Rr=br(Hn,ve,ne);Io>Te||Io===Te&&(!le||Rr>=Se)?(v.current.lr=!0,_e=Hn,He=-He,xe.points=[Oo(dt,1),Oo(st,1)]):v.current.lr=!1;}Wl();var or=lt===!0?0:lt;typeof or=="number"&&(je<ne.left&&(_e-=je-ne.left-He,_.x+ue<ne.left+or&&(_e+=_.x-ne.left+ue-or)),Pe>ne.right&&(_e-=Pe-ne.right-He,_.x>ne.right-or&&(_e+=_.x-ne.right+or)));var hr=it===!0?0:it;typeof hr=="number"&&(wt<ne.top&&(ve-=wt-ne.top-Ie,_.y+U<ne.top+hr&&(ve+=_.y-ne.top+U-hr)),ft>ne.bottom&&(ve-=ft-ne.bottom-Ie,_.y>ne.bottom-hr&&(ve+=_.y-ne.bottom+hr)));var qr=j.x+_e,Yr=qr+Z,Yn=j.y+ve,Qr=Yn+W,vt=_.x,Fe=vt+ue,at=_.y,yt=at+U,$t=Math.max(qr,vt),Nt=Math.min(Yr,Fe),tn=($t+Nt)/2,Wn=tn-qr,Qn=Math.max(Yn,at),Mr=Math.min(Qr,yt),pr=(Qn+Mr)/2,Pa=pr-Yn;i==null||i(t,xe);var Hl=Ce.right-j.x-(_e+j.width),nf=Ce.bottom-j.y-(ve+j.height);u({ready:!0,offsetX:_e/ke,offsetY:ve/We,offsetR:Hl/ke,offsetB:nf/We,arrowX:Wn/ke,arrowY:Pa/We,scaleX:ke,scaleY:We,align:xe});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&h();});},b=function(){u(function(C){return X(X({},C),{},{ready:!1})});};return Xt(b,[r]),Xt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function h6(e,t,n,r,o){Xt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=Wm(a),l=Wm(i),c=ul(i),u=new Set([c].concat(Ae(s),Ae(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function p6(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(e),c=m__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),m__namespace.useEffect(function(){var u=Rt(function(){c.current=!1;});return function(){Rt.cancel(u);}},[e]),m__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var $=!1,S=function(O){var R=O.target;$=i(R);},E=function(O){var R=O.target;!c.current&&l.current&&!$&&!i(R)&&s(!1);};return [S,E]},d=u(),f=J(d,2),v=f[0],g=f[1],h=u(),p=J(h,2),b=p[0],y=p[1],C=ul(r);C.addEventListener("mousedown",v,!0),C.addEventListener("click",g,!0),C.addEventListener("contextmenu",g,!0);var w=Xc(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",v,!0),C.removeEventListener("click",g,!0),C.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var b6=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function y6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NS,t=m__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,v=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,h=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,w=n.mask,x=n.maskClosable,$=x===void 0?!0:x,S=n.getPopupContainer,E=n.forceRender,I=n.autoDestroy,O=n.destroyPopupOnHide,R=n.popup,M=n.popupClassName,k=n.popupStyle,A=n.popupPlacement,L=n.builtinPlacements,T=L===void 0?{}:L,P=n.popupAlign,_=n.zIndex,z=n.stretch,j=n.getPopupClassNameFromAlign,H=n.fresh,B=n.alignPoint,V=n.onPopupClick,G=n.onPopupAlign,q=n.arrow,Y=n.popupMotion,te=n.maskMotion,W=n.popupTransitionName,Z=n.popupAnimation,U=n.maskTransitionName,ue=n.maskAnimation,ie=n.className,se=n.getTriggerDOMNode,ee=tt(n,b6),ce=I||O||!1,Q=m__namespace.useState(!1),le=J(Q,2),he=le[0],ne=le[1];Xt(function(){ne(gd());},[]);var ae=m__namespace.useRef({}),me=m__namespace.useContext(Vb),Ce=m__namespace.useMemo(function(){return {registerSubPopup:function(pt,an){ae.current[pt]=an,me==null||me.registerSubPopup(pt,an);}}},[me]),ke=FD(),We=m__namespace.useState(null),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=An(function(Qe){Kc(Qe)&&Me!==Qe&&Xe(Qe),me==null||me.registerSubPopup(ke,Qe);}),He=m__namespace.useState(null),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=m__namespace.useRef(null),bt=An(function(Qe){Kc(Qe)&&we!==Qe&&(qe(Qe),nt.current=Qe);}),Ze=m__namespace.Children.only(i),Je=(Ze==null?void 0:Ze.props)||{},gt={},ht=An(function(Qe){var pt,an,pn=we;return (pn==null?void 0:pn.contains(Qe))||((pt=Xc(pn))===null||pt===void 0?void 0:pt.host)===Qe||Qe===pn||(Me==null?void 0:Me.contains(Qe))||((an=Xc(Me))===null||an===void 0?void 0:an.host)===Qe||Qe===Me||Object.values(ae.current).some(function(sn){return (sn==null?void 0:sn.contains(Qe))||Qe===sn})}),st=Kb(a,Y,Z,W),dt=Kb(a,te,ue,U),et=m__namespace.useState(f||!1),$e=J(et,2),xe=$e[0],_e=$e[1],ve=d??xe,Te=An(function(Qe){d===void 0&&_e(Qe);});Xt(function(){_e(d||!1);},[d]);var Se=m__namespace.useRef(ve);Se.current=ve;var fe=m__namespace.useRef([]);fe.current=[];var oe=An(function(Qe){var pt;Te(Qe),((pt=fe.current[fe.current.length-1])!==null&&pt!==void 0?pt:ve)!==Qe&&(fe.current.push(Qe),v==null||v(Qe));}),ye=m__namespace.useRef(),de=function(){clearTimeout(ye.current);},pe=function(pt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(),an===0?oe(pt):ye.current=setTimeout(function(){oe(pt);},an*1e3);};m__namespace.useEffect(function(){return de},[]);var Le=m__namespace.useState(!1),Ue=J(Le,2),lt=Ue[0],it=Ue[1];Xt(function(Qe){(!Qe||ve)&&it(!0);},[ve]);var Et=m__namespace.useState(null),wt=J(Et,2),ft=wt[0],je=wt[1],Pe=m__namespace.useState([0,0]),Ee=J(Pe,2),Oe=Ee[0],Ve=Ee[1],mt=function(pt){Ve([pt.clientX,pt.clientY]);},_t=g6(ve,Me,B?Oe:we,A,T,P,G),Mt=J(_t,11),vn=Mt[0],un=Mt[1],gn=Mt[2],Bn=Mt[3],Sn=Mt[4],Xr=Mt[5],uo=Mt[6],Hn=Mt[7],Io=Mt[8],Rr=Mt[9],or=Mt[10],hr=f6(he,l,c,u),qr=J(hr,2),Yr=qr[0],Yn=qr[1],Qr=Yr.has("click"),vt=Yn.has("click")||Yn.has("contextMenu"),Fe=An(function(){lt||or();}),at=function(){Se.current&&B&&vt&&pe(!1);};h6(ve,we,Me,Fe,at),Xt(function(){Fe();},[Oe,A]),Xt(function(){ve&&!(T!=null&&T[A])&&Fe();},[JSON.stringify(P)]);var yt=m__namespace.useMemo(function(){var Qe=v6(T,a,Rr,B);return K(Qe,j==null?void 0:j(Rr))},[Rr,j,T,a,B]);m__namespace.useImperativeHandle(r,function(){return {nativeElement:nt.current,forceAlign:Fe}});var $t=m__namespace.useState(0),Nt=J($t,2),tn=Nt[0],Wn=Nt[1],Qn=m__namespace.useState(0),Mr=J(Qn,2),pr=Mr[0],Pa=Mr[1],Hl=function(){if(z&&we){var pt=we.getBoundingClientRect();Wn(pt.width),Pa(pt.height);}},nf=function(){Hl(),Fe();},br=function(pt){it(!1),or(),g==null||g(pt);},Wl=function(){return new Promise(function(pt){Hl(),je(function(){return pt});})};Xt(function(){ft&&(or(),ft(),je(null));},[ft]);function fo(Qe,pt,an,pn){gt[Qe]=function(sn){var Gl;pn==null||pn(sn),pe(pt,an);for(var lf=arguments.length,Pp=new Array(lf>1?lf-1:0),Kl=1;Kl<lf;Kl++)Pp[Kl-1]=arguments[Kl];(Gl=Je[Qe])===null||Gl===void 0||Gl.call.apply(Gl,[Je,sn].concat(Pp));};}(Qr||vt)&&(gt.onClick=function(Qe){var pt;Se.current&&vt?pe(!1):!Se.current&&Qr&&(mt(Qe),pe(!0));for(var an=arguments.length,pn=new Array(an>1?an-1:0),sn=1;sn<an;sn++)pn[sn-1]=arguments[sn];(pt=Je.onClick)===null||pt===void 0||pt.call.apply(pt,[Je,Qe].concat(pn));}),p6(ve,vt,we,Me,w,$,ht,pe);var Ko=Yr.has("hover"),Ra=Yn.has("hover"),Ma,qi;Ko&&(fo("onMouseEnter",!0,h,function(Qe){mt(Qe);}),fo("onPointerEnter",!0,h,function(Qe){mt(Qe);}),Ma=function(){(ve||lt)&&pe(!0,h);},B&&(gt.onMouseMove=function(Qe){var pt;(pt=Je.onMouseMove)===null||pt===void 0||pt.call(Je,Qe);})),Ra&&(fo("onMouseLeave",!1,b),fo("onPointerLeave",!1,b),qi=function(){pe(!1,b);}),Yr.has("focus")&&fo("onFocus",!0,y),Yn.has("focus")&&fo("onBlur",!1,C),Yr.has("contextMenu")&&(gt.onContextMenu=function(Qe){var pt;Se.current&&Yn.has("contextMenu")?pe(!1):(mt(Qe),pe(!0)),Qe.preventDefault();for(var an=arguments.length,pn=new Array(an>1?an-1:0),sn=1;sn<an;sn++)pn[sn-1]=arguments[sn];(pt=Je.onContextMenu)===null||pt===void 0||pt.call.apply(pt,[Je,Qe].concat(pn));}),ie&&(gt.className=K(Je.className,ie));var Yi=X(X({},Je),gt),Vl={},rf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];rf.forEach(function(Qe){ee[Qe]&&(Vl[Qe]=function(){for(var pt,an=arguments.length,pn=new Array(an),sn=0;sn<an;sn++)pn[sn]=arguments[sn];(pt=Yi[Qe])===null||pt===void 0||pt.call.apply(pt,[Yi].concat(pn)),ee[Qe].apply(ee,pn);});});var of=m__namespace.cloneElement(Ze,X(X({},Yi),Vl)),af={x:Xr,y:uo},sf=q?X({},q!==!0?q:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Er,{disabled:!ve,ref:bt,onResize:nf},m__namespace.createElement(d6,{getTriggerDOMNode:se},of)),m__namespace.createElement(Vb.Provider,{value:Ce},m__namespace.createElement(u6,{portal:e,ref:ze,prefixCls:a,popup:R,className:K(M,yt),style:k,target:we,onMouseEnter:Ma,onMouseLeave:qi,onPointerEnter:Ma,zIndex:_,open:ve,keepDom:lt,fresh:H,onClick:V,mask:w,motion:st,maskMotion:dt,onVisibleChanged:br,onPrepare:Wl,forceRender:E,autoDestroy:ce,getPopupContainer:S,align:Rr,arrow:sf,arrowPos:af,ready:vn,offsetX:un,offsetY:gn,offsetR:Bn,offsetB:Sn,onAlign:Fe,stretch:z,targetWidth:tn/Hn,targetHeight:pr/Io})))});return t}const hd=y6(NS);var Ta={shiftX:64,adjustY:1},Na={adjustX:1,shiftY:!0},yr=[0,0],C6={left:{points:["cr","cl"],overflow:Na,offset:[-4,0],targetOffset:yr},right:{points:["cl","cr"],overflow:Na,offset:[4,0],targetOffset:yr},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:yr},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:yr},topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:yr},leftTop:{points:["tr","tl"],overflow:Na,offset:[-4,0],targetOffset:yr},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:yr},rightTop:{points:["tl","tr"],overflow:Na,offset:[4,0],targetOffset:yr},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:yr},rightBottom:{points:["bl","br"],overflow:Na,offset:[4,0],targetOffset:yr},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:yr},leftBottom:{points:["br","bl"],overflow:Na,offset:[-4,0],targetOffset:yr}},S6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],w6=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,v=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,x=t.align,$=x===void 0?{}:x,S=t.destroyTooltipOnHide,E=S===void 0?!1:S,I=t.defaultVisible,O=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,k=t.id,A=t.showArrow,L=A===void 0?!0:A,T=tt(t,S6),P=m.useRef(null);m.useImperativeHandle(n,function(){return P.current});var _=X({},T);"visible"in t&&(_.popupVisible=t.visible);var z=function(){return m__namespace.createElement(zg,{key:"content",prefixCls:f,id:k,overlayInnerStyle:R},M)};return m__namespace.createElement(hd,Re({popupClassName:r,prefixCls:f,popup:z,action:a,builtinPlacements:C6,popupPlacement:w,ref:P,popupAlign:$,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:L},_),v)};const $6=m.forwardRef(w6);function wf(e){return e!==void 0}function qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=sa(function(){return wf(o)?o:wf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=J(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=i?i(d):d,v=An(a),g=sa([d]),h=J(g,2),p=h[0],b=h[1];oi(function(){var C=p[0];c!==C&&v(c,C);},[p]),oi(function(){wf(o)||u(o);},[o]);var y=An(function(C,w){u(C,w),b([d],w);});return [f,y]}function Ug(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 dl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if($n(!l,"Warning: There may be circular references"),l)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return !1;return !0}if(a&&i&&ut(a)==="object"&&ut(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(f){return o(a[f],i[f],c)})}return !1}return o(e,t)}var Qb="%",x6=function(){function e(t){In(this,e),F(this,"instanceId",void 0),F(this,"cache",new Map),this.instanceId=t;}return On(e,[{key:"get",value:function(n){return this.cache.get(n.join(Qb))||null}},{key:"update",value:function(n,r){var o=n.join(Qb),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),Vm="data-token-hash",la="data-css-hash",ei="__cssinjs_instance__";function E6(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(la,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ei]=o[ei]||e,o[ei]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(la,"]"))).forEach(function(o){var a=o.getAttribute(la);if(r[a]){if(o[ei]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new x6(e)}var I6=m__namespace.createContext({hashPriority:"low",cache:E6(),defaultCache:!0});const Xg=I6;function O6(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 qg=function(){function e(){In(this,e),F(this,"cache",void 0),F(this,"keys",void 0),F(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return On(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,u){var d=J(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=J(a,1),s=i[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !O6(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();F(qg,"MAX_CACHE_SIZE",20);F(qg,"MAX_CACHE_OFFSET",5);var Zb=0,qS=function(){function e(t){In(this,e),F(this,"derivatives",void 0),F(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Zb,t.length===0&&(t.length>0,void 0),Zb+=1;}return On(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),$f=new qg;function js(e){var t=Array.isArray(e)?e:[e];return $f.has(t)||$f.set(t,new qS(t)),$f.get(t)}var P6=new WeakMap,xf={};function R6(e,t){for(var n=P6,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(xf)||n.set(xf,e()),n.get(xf)}var Jb=new WeakMap;function qc(e){var t=Jb.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof qS?t+=r.id:r&&ut(r)==="object"?t+=qc(r):t+=r;}),Jb.set(e,t)),t}function M6(e,t){return Ug("".concat(t,"_").concat(qc(e)))}var bs="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),YS="_bAmBoO_";function _6(e,t,n){if(Kn()){var r,o;bi(e,bs);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(YS);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),Gc(bs),i}return !1}var Ef=void 0;function T6(){return Ef===void 0&&(Ef=_6("@layer ".concat(bs," { .").concat(bs,' { content: "').concat(YS,'"!important; } }'),function(e){e.className=bs;})),Ef}var N6=X({},m__namespace),e0=N6.useInsertionEffect,k6=function(t,n,r){m__namespace.useMemo(t,r),Xt(function(){return n(!0)},r);},A6=e0?function(e,t,n){return e0(function(){return e(),t()},n)}:k6;const L6=A6;var D6=X({},m__namespace),z6=D6.useInsertionEffect,j6=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},F6=function(){return function(t){t();}},B6=typeof z6<"u"?j6:F6;const H6=B6;function QS(e,t,n,r,o){var a=m__namespace.useContext(Xg),i=a.cache,s=[e].concat(Ae(t)),l=s.join("_"),c=H6([l]),u=function(g){i.update(s,function(h){var p=h||[],b=J(p,2),y=b[0],C=y===void 0?0:y,w=b[1],x=w,$=x||n(),S=[C,$];return g?g(S):S});};m__namespace.useMemo(function(){u();},[l]);var d=i.get(s),f=d[1];return L6(function(){o==null||o(f);},function(v){return u(function(g){var h=J(g,2),p=h[0],b=h[1];return v&&p===0&&(o==null||o(f)),[p+1,b]}),function(){i.update(s,function(g){var h=g||[],p=J(h,2),b=p[0],y=b===void 0?0:b,C=p[1],w=y-1;return w===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),f}var W6={},V6="css",Qo=new Map;function G6(e){Qo.set(e,(Qo.get(e)||0)+1);}function K6(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Vm,'="').concat(e,'"]'));n.forEach(function(r){if(r[ei]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var U6=0;function X6(e,t){Qo.set(e,(Qo.get(e)||0)-1);var n=Array.from(Qo.keys()),r=n.filter(function(o){var a=Qo.get(o)||0;return a<=0});n.length-r.length>U6&&r.forEach(function(o){K6(o,t),Qo.delete(o);});}var ZS=function(t,n,r,o){var a=r.getDerivativeToken(t),i=X(X({},a),n);return o&&(i=o(i)),i};function q6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(Xg),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?W6:s,c=n.formatToken,u=n.getComputedToken,d=R6(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),f=qc(d),v=qc(l),g=QS("token",[i,e.id,f,v],function(){var h=u?u(d,l,e):ZS(d,l,e,c),p=M6(h,i);h._tokenKey=p,G6(p);var b="".concat(V6,"-").concat(Ug(p));return h._hashId=b,[h,b]},function(h){X6(h[0]._tokenKey,o);});return g}var Y6={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},t0="data-ant-cssinjs-cache-path",JS="_FILE_STYLE__",ca,ew=!0;function Q6(){if(!ca&&(ca={},Kn())){var e=document.createElement("div");e.className=t0,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=J(a,2),s=i[0],l=i[1];ca[s]=l;});var n=document.querySelector("style[".concat(t0,"]"));if(n){var r;ew=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function Z6(e){return Q6(),!!ca[e]}function J6(e){var t=ca[e],n=null;if(t&&Kn())if(ew)n=JS;else {var r=document.querySelector("style[".concat(la,'="').concat(ca[e],'"]'));r?n=r.innerHTML:delete ca[e];}return [n,t]}var n0=Kn(),ez="_skip_check_",tw="_multi_value_";function r0(e){var t=aa(J1(e),eC);return t.replace(/\{%%%\:[^;];}/g,";")}function tz(e){return ut(e)==="object"&&e&&(ez in e||tw in e)}function nz(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ae(l.slice(1))).join(" ")});return a.join(",")}var rz=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,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",v={};function g(C){var w=C.getName(s);if(!v[w]){var x=e(C.style,n,{root:!1,parentSelectors:i}),$=J(x,1),S=$[0];v[w]="@keyframes ".concat(C.getName(s)).concat(S);}}function h(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?h(x,w):x&&w.push(x);}),w}var p=h(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")f+="".concat(w,`
`);else if(w._keyframe)g(w);else {var x=d.reduce(function($,S){var E;return (S==null||(E=S.visit)===null||E===void 0?void 0:E.call(S,$))||$},w);Object.keys(x).forEach(function($){var S=x[$];if(ut(S)==="object"&&S&&($!=="animationName"||!S._keyframe)&&!tz(S)){var E=!1,I=$.trim(),O=!1;(o||a)&&s?I.startsWith("@")?E=!0:I=nz($,s,c):o&&!s&&(I==="&"||I==="")&&(I="",O=!0);var R=e(S,n,{root:O,injectHash:E,parentSelectors:[].concat(Ae(i),[I])}),M=J(R,2),k=M[0],A=M[1];v=X(X({},v),A),f+="".concat(I).concat(k);}else {let P=function(_,z){var j=_.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),H=z;!Y6[_]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),_==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),H=z.getName(s)),f+="".concat(j,":").concat(H,";");};var L,T=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;ut(S)==="object"&&S!==null&&S!==void 0&&S[tw]&&Array.isArray(T)?T.forEach(function(_){P($,_);}):P($,T);}});}}),!o)f="{".concat(f,"}");else if(l&&T6()){var b=l.split(","),y=b[b.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,v]};function oz(e,t){return Ug("".concat(e.join("%")).concat(t))}function az(){return null}function Gm(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=m__namespace.useContext(Xg),d=u.autoClear;u.mock;var f=u.defaultCache,v=u.hashPriority,g=u.container,h=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,w=[C].concat(Ae(r)),x=n0,$=QS("style",w,function(){var R=w.join("|");if(Z6(R)){var M=J6(R),k=J(M,2),A=k[0],L=k[1];if(A)return [A,C,L,{},s,c]}var T=t(),P=rz(T,{hashId:o,hashPriority:v,layer:a,path:r.join("-"),transformers:p,linters:b}),_=J(P,2),z=_[0],j=_[1],H=r0(z),B=oz(w,H);return [H,C,B,j,s,c]},function(R,M){var k=J(R,3),A=k[2];(M||d)&&n0&&Gc(A,{mark:la});},function(R){var M=J(R,4),k=M[0];M[1];var A=M[2],L=M[3];if(x&&k!==JS){var T={mark:la,prepend:"queue",attachTo:g,priority:c},P=typeof i=="function"?i():i;P&&(T.csp={nonce:P});var _=bi(k,A,T);_[ei]=y.instanceId,_.setAttribute(Vm,C),Object.keys(L).forEach(function(z){bi(r0(L[z]),"_effect-".concat(z),T);});}}),S=J($,3),E=S[0],I=S[1],O=S[2];return function(R){var M;if(!h||x||!f)M=m__namespace.createElement(az,null);else {var k;M=m__namespace.createElement("style",Re({},(k={},F(k,Vm,I),F(k,la,O),k),{dangerouslySetInnerHTML:{__html:E}}));}return m__namespace.createElement(m__namespace.Fragment,null,M,R)}}var Tt=function(){function e(t,n){In(this,e),F(this,"name",void 0),F(this,"style",void 0),F(this,"_keyframe",!0),this.name=t,this.style=n;}return On(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 ka(e){return e.notSplit=!0,e}ka(["borderTop","borderBottom"]),ka(["borderTop"]),ka(["borderBottom"]),ka(["borderLeft","borderRight"]),ka(["borderLeft"]),ka(["borderRight"]);const iz="5.11.5";function Mn(e,t){sz(e)&&(e="100%");var n=lz(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 tc(e){return Math.min(1,Math.max(0,e))}function sz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function lz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ta(e){return e.length===1?"0"+e:String(e)}function cz(e,t,n){return {r:Mn(e,255)*255,g:Mn(t,255)*255,b:Mn(n,255)*255}}function o0(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6;}return {h:a,s:i,l:s}}function If(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 uz(e,t,n){var r,o,a;if(e=Mn(e,360),t=Mn(t,100),n=Mn(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=If(s,i,e+1/3),o=If(s,i,e),a=If(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function Km(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:l,v:i}}function dz(e,t,n){e=Mn(e,360)*6,t=Mn(t,100),n=Mn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,i,a,a,s,n][l],u=[s,n,n,i,a,a][l],d=[a,a,s,n,n,i][l];return {r:c*255,g:u*255,b:d*255}}function Um(e,t,n,r){var o=[ta(Math.round(e).toString(16)),ta(Math.round(t).toString(16)),ta(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 fz(e,t,n,r,o){var a=[ta(Math.round(e).toString(16)),ta(Math.round(t).toString(16)),ta(Math.round(n).toString(16)),ta(mz(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function mz(e){return Math.round(parseFloat(e)*255).toString(16)}function a0(e){return lr(e)/255}function lr(e){return parseInt(e,16)}function vz(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Xm={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 Xa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=pz(e)),typeof e=="object"&&(mo(e.r)&&mo(e.g)&&mo(e.b)?(t=cz(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mo(e.h)&&mo(e.s)&&mo(e.v)?(r=nc(e.s),o=nc(e.v),t=dz(e.h,r,o),i=!0,s="hsv"):mo(e.h)&&mo(e.s)&&mo(e.l)&&(r=nc(e.s),a=nc(e.l),t=uz(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nw(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gz="[-\\+]?\\d+%?",hz="[-\\+]?\\d*\\.\\d+%?",Lo="(?:".concat(hz,")|(?:").concat(gz,")"),Of="[\\s|\\(]+(".concat(Lo,")[,|\\s]+(").concat(Lo,")[,|\\s]+(").concat(Lo,")\\s*\\)?"),Pf="[\\s|\\(]+(".concat(Lo,")[,|\\s]+(").concat(Lo,")[,|\\s]+(").concat(Lo,")[,|\\s]+(").concat(Lo,")\\s*\\)?"),_r={CSS_UNIT:new RegExp(Lo),rgb:new RegExp("rgb"+Of),rgba:new RegExp("rgba"+Pf),hsl:new RegExp("hsl"+Of),hsla:new RegExp("hsla"+Pf),hsv:new RegExp("hsv"+Of),hsva:new RegExp("hsva"+Pf),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 pz(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Xm[e])e=Xm[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=_r.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_r.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_r.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_r.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_r.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_r.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_r.hex8.exec(e),n?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),a:a0(n[4]),format:t?"name":"hex8"}:(n=_r.hex6.exec(e),n?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),format:t?"name":"hex"}:(n=_r.hex4.exec(e),n?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),a:a0(n[4]+n[4]),format:t?"name":"hex8"}:(n=_r.hex3.exec(e),n?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function mo(e){return !!_r.CSS_UNIT.exec(String(e))}var Jt=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=vz(t)),this.originalInput=t;var o=Xa(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,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.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=nw(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=Km(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=Km(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=o0(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=o0(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),Um(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),fz(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(Mn(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(Mn(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="#"+Um(this.r,this.g,this.b,!1),n=0,r=Object.entries(Xm);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=tc(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=tc(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=tc(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=tc(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(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},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],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),rc=2,i0=.16,bz=.05,yz=.05,Cz=.15,rw=5,ow=4,Sz=[{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 s0(e){var t=e.r,n=e.g,r=e.b,o=Km(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function oc(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Um(t,n,r,!1))}function wz(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 l0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-rc*t:Math.round(e.h)+rc*t:r=n?Math.round(e.h)+rc*t:Math.round(e.h)-rc*t,r<0?r+=360:r>=360&&(r-=360),r}function c0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-i0*t:t===ow?r=e.s+i0:r=e.s+bz*t,r>1&&(r=1),n&&t===rw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function u0(e,t,n){var r;return n?r=e.v+yz*t:r=e.v-Cz*t,r>1&&(r=1),Number(r.toFixed(2))}function yo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Xa(e),o=rw;o>0;o-=1){var a=s0(r),i=oc(Xa({h:l0(a,o,!0),s:c0(a,o,!0),v:u0(a,o,!0)}));n.push(i);}n.push(oc(r));for(var s=1;s<=ow;s+=1){var l=s0(r),c=oc(Xa({h:l0(l,s),s:c0(l,s),v:u0(l,s)}));n.push(c);}return t.theme==="dark"?Sz.map(function(u){var d=u.index,f=u.opacity,v=oc(wz(Xa(t.backgroundColor||"#141414"),Xa(n[d]),f*100));return v}):n}var Rf={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"},wc={},Mf={};Object.keys(Rf).forEach(function(e){wc[e]=yo(Rf[e]),wc[e].primary=wc[e][5],Mf[e]=yo(Rf[e],{theme:"dark",backgroundColor:"#141414"}),Mf[e].primary=Mf[e][5];});var $z=wc.blue;const xz=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},aw=xz;function Ez(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 Yg={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"},Iz=Object.assign(Object.assign({},Yg),{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}),yi=Iz;function iw(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),v=n(a),g=n(i),h=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[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:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Oz=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,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},Pz=Oz;function Rz(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},Pz(r))}const vo=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),ts=(e,t)=>new Jt(e).darken(t).toHexString(),Mz=e=>{const t=yo(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]}},_z=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:vo(r,.88),colorTextSecondary:vo(r,.65),colorTextTertiary:vo(r,.45),colorTextQuaternary:vo(r,.25),colorFill:vo(r,.15),colorFillSecondary:vo(r,.06),colorFillTertiary:vo(r,.04),colorFillQuaternary:vo(r,.02),colorBgLayout:ts(n,4),colorBgContainer:ts(n,0),colorBgElevated:ts(n,0),colorBgSpotlight:vo(r,.85),colorBgBlur:"transparent",colorBorder:ts(n,15),colorBorderSecondary:ts(n,6)}};function Tz(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const Nz=e=>{const t=Tz(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]}},sw=Nz;function fl(e){const t=Object.keys(Yg).map(n=>{const r=yo(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),iw(e,{generateColorPalettes:Mz,generateNeutralColorPalettes:_z})),sw(e.fontSize)),Ez(e)),aw(e)),Rz(e))}const lw=js(fl),Yc={token:yi,override:{override:yi},hashed:!0},cw=m.createContext(Yc);function _f(e){return e>=0&&e<=255}function ac(e,t){const{r:n,g:r,b:o,a}=new Jt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Jt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(_f(u)&&_f(d)&&_f(f))return new Jt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:o,a:1}).toRgbString()}var kz=function(e,t){var n={};for(var r in 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 Qg(e){const{override:t}=e,n=kz(e,["override"]),r=Object.assign({},t);Object.keys(yi).forEach(f=>{delete r[f];});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ac(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:ac(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ac(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:ac(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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new Jt("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var d0=function(e,t){var n={};for(var r in 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 uw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=d0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Qg(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=d0(c,["theme"]);let f=d;u&&(f=uw(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f;}),i};function tr(){const{token:e,hashed:t,theme:n,override:r}=m.useContext(cw),o=`${iz}-${t||""}`,a=n||lw,[i,s]=q6(a,[yi,e],{salt:o,override:r,getComputedToken:uw,formatToken:Qg});return [a,i,t?s:""]}const Az=m.createContext(void 0),Zg=Az,qo=100,Lz=10,Dz=qo*Lz,dw={Modal:qo,Drawer:qo,Popover:qo,Popconfirm:qo,Tooltip:qo,Tour:qo},zz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function jz(e){return e in dw}function pd(e,t){const[,n]=tr(),r=m.useContext(Zg),o=jz(e);if(t!==void 0)return [t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+dw[e],a=Math.min(a,n.zIndexPopupBase+Dz)):a+=zz[e],[r===void 0?t:a,a]}const Tf=()=>({height:0,opacity:0}),f0=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},Fz=e=>({height:e?e.offsetHeight:0}),Nf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",fw=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Tf,onEnterStart:Tf,onAppearActive:f0,onEnterActive:f0,onLeaveStart:Fz,onLeaveActive:Tf,onAppearEnd:Nf,onEnterEnd:Nf,onLeaveEnd:Nf,motionDeadline:500}},bd=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Bz=(e,t,n,r,o)=>{const a=e/2,i=0,s=a,l=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*a-u,v=d,g=2*a-l,h=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=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(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${v} L ${g} ${h} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,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"}}},mw=8;function Jg(e){const t=mw,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function ic(e,t){return e?t:{}}function eh(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:v}=Jg({contentRadius:l,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Bz(r,o,a,s,i)),{"&:before":{background:s}})]},ic(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,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:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),ic(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,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:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),ic(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},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:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),ic(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},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:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function Hz(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const m0={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"]}},Wz={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"]}},Vz=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(m0).forEach(c=>{const u=r&&Wz[c]||m0[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,Vz.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const f=Jg({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=f.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.dropdownArrowOffset+s;break}d.overflow=Hz(c,f,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Co}=m__namespace;function gw(e){return e&&Co(e)&&e.type===m__namespace.Fragment}function Gz(e,t,n){return Co(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Un(e,t){return Gz(e,e,t)}function Kz(){}const Uz=m__namespace.createContext({}),hw=()=>{const e=()=>{};return e.deprecated=Kz,e};var Xz=m.createContext({});const th=Xz;function pw(e){return wS(e)||PS(e)||jg(e)||$S()}function Dr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function bw(e,t,n,r){if(!t.length)return n;var o=pw(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Ae(e):s=X({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=bw(s[a],i,n,r),s}function Ar(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Dr(e,t.slice(0,-1))?e:bw(e,t,n,r)}function qz(e){return ut(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function v0(e){return Array.isArray(e)?[]:{}}var Yz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=v0(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Dr(o,i),u=Array.isArray(c);if(u||qz(c)){if(!l.has(c)){l.add(c);var d=Dr(r,i);u?r=Ar(r,i,[]):(!d||ut(d)!=="object")&&(r=Ar(r,i,v0(c))),Yz(c).forEach(function(f){a([].concat(Ae(i),[f]),l);});}}else r=Ar(r,i,c);}a([]);}),r}const Qz=m.createContext(void 0),yw={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 Zz={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 Jz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Cw=Jz,ej={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"]},Zz),timePickerLocale:Object.assign({},Cw)},g0=ej,ar="${label} is not a valid ${type}",tj={locale:"en",Pagination:yw,DatePicker:g0,TimePicker:Cw,Calendar:g0,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:ar,method:ar,array:ar,object:ar,number:ar,date:ar,boolean:ar,integer:ar,float:ar,regexp:ar,email:ar,url:ar,hex:ar},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"}},So=tj;Object.assign({},So.Modal);let $c=[];const h0=()=>$c.reduce((e,t)=>Object.assign(Object.assign({},e),t),So.Modal);function nj(e){if(e){const t=Object.assign({},e);return $c.push(t),h0(),()=>{$c=$c.filter(n=>n!==t),h0();}}Object.assign({},So.Modal);}const rj=m.createContext(void 0),nh=rj,oj=(e,t)=>{const n=m__namespace.useContext(nh),r=m__namespace.useMemo(()=>{var a;const i=t||So[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=m__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?So.locale:a},[n]);return [r,o]},ji=oj,aj="internalMark",ij=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>nj(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(nh.Provider,{value:o},n)},sj=ij,Sw="anticon",lj=(e,t)=>t||(e?`ant-${e}`:"ant"),rt=m__namespace.createContext({getPrefixCls:lj,iconPrefixCls:Sw}),cj=`-ant-${Date.now()}-${Math.random()}`;function uj(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new Jt(i),c=yo(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Jt(t.primaryColor),s=yo(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new Jt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,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(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
}
`.trim()}function dj(e,t){const n=uj(e,t);Kn()&&bi(n,`${cj}-dynamic-theme`);}const qm=m__namespace.createContext(!1),fj=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(qm);return m__namespace.createElement(qm.Provider,{value:n??r},t)},Ur=qm,Ym=m__namespace.createContext(void 0),mj=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(Ym);return m__namespace.createElement(Ym.Provider,{value:n||r},t)},yd=Ym;function vj(){const e=m.useContext(Ur),t=m.useContext(yd);return {componentDisabled:e,componentSize:t}}const Fs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ma={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ft=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return {boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},xa=()=>({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"}}),Qm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gj=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"}}}),hj=(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"}}}}},va=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ga=e=>({"&:focus-visible":Object.assign({},va(e))}),ww=typeof CSSINJS_STATISTIC<"u";let Zm=!0;function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ww)return Object.assign.apply(Object,[{}].concat(t));Zm=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Zm=!0,r}const p0={};function pj(){}function bj(e){let t,n=e,r=pj;return ww&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Zm&&t.add(a),o[a]}}),r=(o,a)=>{var i;p0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=p0[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const yj=(e,t)=>{const[n,r]=tr();return Gm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},xa()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},$w=yj;function Kt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,c,u]=tr(),{getPrefixCls:d,iconPrefixCls:f,csp:v}=m.useContext(rt),g=d(),h={theme:l,token:c,hashId:u,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Gm(Object.assign(Object.assign({},h),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":gj(c)}]),$w(f,v),[Gm(Object.assign(Object.assign({},h),{path:[i,s,f]}),()=>{const{token:p,flush:b}=bj(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:E}=r;E.forEach(I=>{let[O,R]=I;var M;(y!=null&&y[O]||y!=null&&y[R])&&((M=y[R])!==null&&M!==void 0||(y[R]=y==null?void 0:y[O]));});}const C=typeof n=="function"?n(St(p,y??{})):n,w=Object.assign(Object.assign({},C),y),x=`.${s}`,$=St(p,{componentCls:x,prefixCls:s,iconCls:`.${f}`,antCls:`.${g}`},w),S=t($,{hashId:u,prefixCls:s,rootPrefixCls:g,iconPrefixCls:f,overrideComponentToken:y});return b(a,w),[r.resetStyle===!1?null:hj($,s),S]}),u]}}const rh=(e,t,n,r)=>{const o=Kt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function Cd(e,t){return Fs.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}function Cj(e,t){const n=e||{},r=n.inherit===!1||!t?Yc:t;return cl(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const l=a[s];return !dl(i,l,!0)}))}function Sj(e){const{children:t}=e,[,n]=tr(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(HD,{motion:r},t):t}const wj=()=>null;var $j=function(e,t){var n={};for(var r in 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 xj=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Ej="ant";let xw;function Ij(){return xw||Ej}function Oj(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Pj=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(xw=t),r&&Oj(r)&&dj(Ij(),r);},Rj=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:v,popupOverflow:g,legacyLocale:h,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:w,statistic:x,spin:$,calendar:S,carousel:E,cascader:I,collapse:O,typography:R,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:T,steps:P,image:_,layout:z,list:j,mentions:H,modal:B,progress:V,result:G,slider:q,breadcrumb:Y,menu:te,pagination:W,input:Z,empty:U,badge:ue,radio:ie,rate:se,switch:ee,transfer:ce,avatar:Q,message:le,tag:he,table:ne,card:ae,tabs:me,timeline:Ce,timePicker:ke,upload:We,notification:Ge,tree:Me,colorPicker:Xe,datePicker:ze,rangePicker:He,flex:Ie,wave:we,dropdown:qe,warning:nt}=e,bt=m__namespace.useCallback((ve,Te)=>{const{prefixCls:Se}=e;if(Te)return Te;const fe=Se||p.getPrefixCls("");return ve?`${fe}-${ve}`:fe},[p.getPrefixCls,e.prefixCls]),Ze=b||p.iconPrefixCls||Sw,Je=n||p.csp;$w(Ze,Je);const gt=Cj(y,p.theme),ht={csp:Je,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||h,direction:c,space:u,virtual:d,popupMatchSelectWidth:v??f,popupOverflow:g,getPrefixCls:bt,iconPrefixCls:Ze,theme:gt,segmented:w,statistic:x,spin:$,calendar:S,carousel:E,cascader:I,collapse:O,typography:R,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:T,steps:P,image:_,input:Z,layout:z,list:j,mentions:H,modal:B,progress:V,result:G,slider:q,breadcrumb:Y,menu:te,pagination:W,empty:U,badge:ue,radio:ie,rate:se,switch:ee,transfer:ce,avatar:Q,message:le,tag:he,table:ne,card:ae,tabs:me,timeline:Ce,timePicker:ke,upload:We,notification:Ge,tree:Me,colorPicker:Xe,datePicker:ze,rangePicker:He,flex:Ie,wave:we,dropdown:qe,warning:nt},st=Object.assign({},p);Object.keys(ht).forEach(ve=>{ht[ve]!==void 0&&(st[ve]=ht[ve]);}),xj.forEach(ve=>{const Te=e[ve];Te&&(st[ve]=Te);});const dt=cl(()=>st,st,(ve,Te)=>{const Se=Object.keys(ve),fe=Object.keys(Te);return Se.length!==fe.length||Se.some(oe=>ve[oe]!==Te[oe])}),et=m__namespace.useMemo(()=>({prefixCls:Ze,csp:Je}),[Ze,Je]);let $e=m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(wj,{dropdownMatchSelectWidth:f}),t);const xe=m__namespace.useMemo(()=>{var ve,Te,Se,fe;return ti(((ve=So.Form)===null||ve===void 0?void 0:ve.defaultValidateMessages)||{},((Se=(Te=dt.locale)===null||Te===void 0?void 0:Te.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((fe=dt.form)===null||fe===void 0?void 0:fe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[dt,i==null?void 0:i.validateMessages]);Object.keys(xe).length>0&&($e=m__namespace.createElement(Qz.Provider,{value:xe},$e)),s&&($e=m__namespace.createElement(sj,{locale:s,_ANT_MARK__:aj},$e)),(Ze||Je)&&($e=m__namespace.createElement(th.Provider,{value:et},$e)),l&&($e=m__namespace.createElement(mj,{size:l},$e)),$e=m__namespace.createElement(Sj,null,$e);const _e=m__namespace.useMemo(()=>{const ve=gt||{},{algorithm:Te,token:Se,components:fe}=ve,oe=$j(ve,["algorithm","token","components"]),ye=Te&&(!Array.isArray(Te)||Te.length>0)?js(Te):lw,de={};Object.entries(fe||{}).forEach(Le=>{let[Ue,lt]=Le;const it=Object.assign({},lt);"algorithm"in it&&(it.algorithm===!0?it.theme=ye:(Array.isArray(it.algorithm)||typeof it.algorithm=="function")&&(it.theme=js(it.algorithm)),delete it.algorithm),de[Ue]=it;});const pe=Object.assign(Object.assign({},yi),Se);return Object.assign(Object.assign({},oe),{theme:ye,token:pe,components:de,override:Object.assign({override:pe},de)})},[gt]);return y&&($e=m__namespace.createElement(cw.Provider,{value:_e},$e)),dt.warning&&($e=m__namespace.createElement(Uz.Provider,{value:dt.warning},$e)),C!==void 0&&($e=m__namespace.createElement(fj,{disabled:C},$e)),m__namespace.createElement(rt.Provider,{value:dt},$e)},Fi=e=>{const t=m__namespace.useContext(rt),n=m__namespace.useContext(nh);return m__namespace.createElement(Rj,Object.assign({parentContext:t,legacyLocale:n},e))};Fi.ConfigContext=rt;Fi.SizeContext=yd;Fi.config=Pj;Fi.useConfig=vj;Object.defineProperty(Fi,"SizeContext",{get:()=>yd});const oh=Fi,Mj=e=>{const t=m.useContext(yd);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},nr=Mj,_j=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Tj=_j,Nj=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"}}}},kj=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Ew=Kt("Space",e=>{const t=St(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Nj(t),kj(t),Tj(t)]},()=>({}),{resetStyle:!1});var Iw=function(e,t){var n={};for(var r in 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 Sd=m__namespace.createContext(null),Bi=(e,t)=>{const n=m__namespace.useContext(Sd),r=m__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return K(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Ci=e=>{let{children:t}=e;return m__namespace.createElement(Sd.Provider,{value:null},t)},Aj=e=>{var{children:t}=e,n=Iw(e,["children"]);return m__namespace.createElement(Sd.Provider,{value:n},t)},Lj=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=Iw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=nr(C=>r??C),f=t("space-compact",i),[v,g]=Ew(f),h=K(f,g,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(Sd),b=vr(c),y=m__namespace.useMemo(()=>b.map((C,w)=>{const x=C&&C.key||`${f}-item-${w}`;return m__namespace.createElement(Aj,{key:x,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:v(m__namespace.createElement("div",Object.assign({className:h},u),y))},Dj=Lj,zj=e=>({animationDuration:e,animationFillMode:"both"}),jj=e=>({animationDuration:e,animationFillMode:"both"}),ah=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
${a}${e}-enter,
${a}${e}-appear
`]:Object.assign(Object.assign({},zj(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},jj(r)),{animationPlayState:"paused"}),[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Fj=new Tt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bj=new Tt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Hj=new Tt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wj=new Tt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Vj=new Tt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gj=new Tt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Kj=new Tt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Uj=new Tt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Xj={"move-up":{inKeyframes:Kj,outKeyframes:Uj},"move-down":{inKeyframes:Fj,outKeyframes:Bj},"move-left":{inKeyframes:Hj,outKeyframes:Wj},"move-right":{inKeyframes:Vj,outKeyframes:Gj}},Qc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Xj[t];return [ah(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ih=new Tt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),sh=new Tt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),lh=new Tt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ch=new Tt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),qj=new Tt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Yj=new Tt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qj=new Tt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Zj=new Tt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Jj={"slide-up":{inKeyframes:ih,outKeyframes:sh},"slide-down":{inKeyframes:lh,outKeyframes:ch},"slide-left":{inKeyframes:qj,outKeyframes:Yj},"slide-right":{inKeyframes:Qj,outKeyframes:Zj}},Fo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Jj[t];return [ah(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},e8=new Tt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),t8=new Tt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),b0=new Tt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),y0=new Tt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),n8=new Tt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),r8=new Tt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),o8=new Tt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),a8=new Tt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),i8=new Tt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),s8=new Tt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),l8=new Tt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),c8=new Tt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),u8={zoom:{inKeyframes:e8,outKeyframes:t8},"zoom-big":{inKeyframes:b0,outKeyframes:y0},"zoom-big-fast":{inKeyframes:b0,outKeyframes:y0},"zoom-left":{inKeyframes:o8,outKeyframes:a8},"zoom-right":{inKeyframes:i8,outKeyframes:s8},"zoom-up":{inKeyframes:n8,outKeyframes:r8},"zoom-down":{inKeyframes:l8,outKeyframes:c8}},wd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=u8[t];return [ah(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},d8=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`}}}),Ow=d8,f8=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"absolute",zIndex:i,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:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,mw)}},[`${t}-content`]:{position:"relative"}}),Cd(e,(f,v)=>{let{darkColor:g}=v;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},eh(St(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Pw=(e,t)=>Kt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=St(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [f8(l),wd(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),m8=Fs.map(e=>`${e}-inverse`),v8=["success","processing","error","default","warning"];function $d(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ae(m8),Ae(Fs)).includes(e):Fs.includes(e)}function g8(e){return v8.includes(e)}function Rw(e,t){const n=$d(t),r=K({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const h8=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m__namespace.useContext(rt),l=s("tooltip",t),[c,u]=Pw(l,!0),d=Rw(l,a),f=d.arrowStyle,v=Object.assign(Object.assign({},i),d.overlayStyle),g=K(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:g,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(zg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:v}),o)))},p8=h8;var b8=function(e,t){var n={};for(var r in 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 Mw=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:v,arrow:g=!0,title:h,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,w=!!g,[,x]=tr(),{getPopupContainer:$,getPrefixCls:S,direction:E}=m__namespace.useContext(rt),I=hw(),O=m__namespace.useRef(null),R=()=>{var Ce;(Ce=O.current)===null||Ce===void 0||Ce.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),R();}}));const[M,k]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!h&&!p&&h!==0,L=Ce=>{var ke,We;k(A?!1:Ce),A||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,Ce),(We=e.onVisibleChange)===null||We===void 0||We.call(e,Ce));},T=m__namespace.useMemo(()=>{var Ce,ke;let We=y;return typeof g=="object"&&(We=(ke=(Ce=g.pointAtCenter)!==null&&Ce!==void 0?Ce:g.arrowPointAtCenter)!==null&&ke!==void 0?ke:y),b||vw({arrowPointAtCenter:We,autoAdjustOverflow:C,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[y,g,b,x]),P=m__namespace.useMemo(()=>h===0?h:p||h||"",[p,h]),_=m__namespace.createElement(Ci,null,typeof P=="function"?P():P),{getPopupContainer:z,placement:j="top",mouseEnterDelay:H=.1,mouseLeaveDelay:B=.1,overlayStyle:V,rootClassName:G}=e,q=b8(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=S("tooltip",o),te=S(),W=e["data-popover-inject"];let Z=M;!("open"in e)&&!("visible"in e)&&A&&(Z=!1);const U=Co(u)&&!gw(u)?u:m__namespace.createElement("span",null,u),ue=U.props,ie=!ue.className||typeof ue.className=="string"?K(ue.className,a||`${Y}-open`):ue.className,[se,ee]=Pw(Y,!W),ce=Rw(Y,l),Q=ce.arrowStyle,le=Object.assign(Object.assign({},c),ce.overlayStyle),he=K(s,{[`${Y}-rtl`]:E==="rtl"},ce.className,G,ee),[ne,ae]=pd("Tooltip",q.zIndex),me=m__namespace.createElement($6,Object.assign({},q,{zIndex:ne,showArrow:w,placement:j,mouseEnterDelay:H,mouseLeaveDelay:B,prefixCls:Y,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},Q),V),getTooltipContainer:z||i||$,ref:O,builtinPlacements:T,overlay:_,visible:Z,onVisibleChange:L,afterVisibleChange:d??f,overlayInnerStyle:le,arrowContent:m__namespace.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:bd(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),Z?Un(U,{className:ie}):U);return se(m__namespace.createElement(Zg.Provider,{value:ae},me))});Mw._InternalPanelDoNotUseOrYouWillBeFired=p8;const ml=Mw,y8=e=>{const t=e!=null&&e.algorithm?js(e.algorithm):js(fl),n=Object.assign(Object.assign({},yi),e==null?void 0:e.token);return ZS(n,{override:e==null?void 0:e.token},t,Qg)},C8=y8;function S8(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 w8=(e,t)=>{const n=t??fl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),S8(t??e)),sw(r)),{controlHeight:o}),aw(Object.assign(Object.assign({},n),{controlHeight:o})))},$8=w8,go=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),Aa=(e,t)=>new Jt(e).lighten(t).toHexString(),x8=e=>{const t=yo(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]}},E8=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:go(r,.85),colorTextSecondary:go(r,.65),colorTextTertiary:go(r,.45),colorTextQuaternary:go(r,.25),colorFill:go(r,.18),colorFillSecondary:go(r,.12),colorFillTertiary:go(r,.08),colorFillQuaternary:go(r,.04),colorBgElevated:Aa(n,12),colorBgContainer:Aa(n,8),colorBgLayout:Aa(n,0),colorBgSpotlight:Aa(n,26),colorBgBlur:go(r,.04),colorBorder:Aa(n,26),colorBorderSecondary:Aa(n,19)}},I8=(e,t)=>{const n=Object.keys(Yg).map(o=>{const a=yo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,l)=>(i[`${o}-${l+1}`]=a[l],i[`${o}${l+1}`]=a[l],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??fl(e);return Object.assign(Object.assign(Object.assign({},r),n),iw(e,{generateColorPalettes:x8,generateNeutralColorPalettes:E8}))},O8=I8;function P8(){const[e,t,n]=tr();return {theme:e,token:t,hashId:n}}const C0={defaultConfig:Yc,defaultSeed:Yc.token,useToken:P8,defaultAlgorithm:fl,darkAlgorithm:O8,compactAlgorithm:$8,getDesignToken:C8};var R8=VC,S0=1/0,M8=17976931348623157e292;function _8(e){if(!e)return e===0?e:0;if(e=R8(e),e===S0||e===-S0){var t=e<0?-1:1;return t*M8}return e===e?e:0}var T8=_8,N8=T8;function k8(e){var t=N8(e),n=t%1;return t===t?n?t-n:t:0}var A8=k8,L8=A8,D8="Expected a function";function z8(e,t){var n;if(typeof t!="function")throw new TypeError(D8);return e=L8(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var j8=z8,F8=j8;function B8(e){return F8(2,e)}var H8=B8;const _w=xn(H8),ha=_w(()=>!!document.querySelectorAll(".bili-feed4").length),Tw=()=>document.body.classList.contains("dark"),Nw=Jn({value:Tw()});function uh(){return er(Nw).value}const dh=new MutationObserver(function(){Nw.value=Tw();});dh.observe(document.body,{attributes:!0,attributeFilter:["class"]});dh.observe(document.documentElement,{attributes:!0,attributeFilter:["data-darkreader-scheme"]});window.addEventListener("unload",()=>{dh.disconnect();});const kw=tI();var B1;const W8=((B1=kw.os.name)==null?void 0:B1.toLowerCase())==="mac os";var H1;const fh=((H1=kw.browser.name)==null?void 0:H1.toLowerCase())==="safari";var w0=dC(function(e,t){var n=e.styles,r=ri([n],void 0,m__namespace.useContext(fC)),o=m__namespace.useRef();return Ap(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush();}},[t]),Ap(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&ug(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ri(t)}var xd={},Aw={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;})(Aw);var mh=Aw.exports,Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});Ed.default=void 0;Ed.default={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 Id={},vl={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var V8={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:"下一世纪"};Od.default=V8;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.default=void 0;const G8={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};gl.default=G8;var Lw=mh.default;Object.defineProperty(vl,"__esModule",{value:!0});vl.default=void 0;var K8=Lw(Od),U8=Lw(gl);const Dw={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},K8.default),timePickerLocale:Object.assign({},U8.default)};Dw.lang.ok="确定";vl.default=Dw;var X8=mh.default;Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var q8=X8(vl);Id.default=q8.default;var Pd=mh.default;Object.defineProperty(xd,"__esModule",{value:!0});xd.default=void 0;var Y8=Pd(Ed),Q8=Pd(Id),Z8=Pd(vl),J8=Pd(gl);const ir="${label}不是一个有效的${type}",eF={locale:"zh-cn",Pagination:Y8.default,DatePicker:Z8.default,TimePicker:J8.default,Calendar:Q8.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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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:"暂无"}};xd.default=eF;var tF=xd;const nF=xn(tF),zw="HarmonyOS_Regular,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif";function vh({children:e,injectGlobalStyle:t=!1}){const n=uh(),{colorPrimary:r}=Tg();return be(oh,{locale:nF,theme:{algorithm:n?C0.darkAlgorithm:C0.defaultAlgorithm,token:{colorPrimary:r,colorBgSpotlight:r,zIndexPopupBase:11e3,fontFamily:zw}},children:[t&&D(oF,{}),D(framerMotion.LazyMotion,{features:framerMotion.domAnimation,children:e})]})}var rF={name:"bts51",styles:"body,.large-header,#i_cecream,.bili-header .bili-header__channel{background-color:var(--bg2);}"};function oF(){const{colorPrimary:e}=Tg(),{styleFancy:t}=en();return be(It,{children:[D(w0,{styles:zr`
:root {
${oS}: ${e};
}
.${Sa} {
font-family: ${zw};
.bili-video-card a:not(.disable-hover):hover{
color: ${Fr} !important;
}
}
`}),t&&D(w0,{styles:rF})]})}function Rd(e){return D(ml,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var hl,$0=V1;hl=$0.createRoot,$0.hydrateRoot;var aF=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function x0(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 E0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(n),!0).forEach(function(r){iF(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function iF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e,t){if(e==null)return {};var n=lF(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function lF(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var cF={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 uF(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function dF(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){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 jw=m.createContext(cF);jw.Provider;function Wt(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,f=sF(r,aF),v=m.useContext(jw),g=m.useMemo(uF,[]),h=dF(g,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:s,theme:l,fill:c},v),p=[v.prefix+"-icon"];return p.push(v.prefix+"-icon-"+e),t&&v.rtl&&p.push(v.prefix+"-icon-rtl"),d&&p.push(v.prefix+"-icon-spin"),u&&p.push(u),m.createElement("span",E0(E0({},f),{},{className:p.join(" ")}),n(h))}}const fF=Wt("drag",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 10C19 12.2091 17.2091 14 15 14C12.7909 14 11 12.2091 11 10C11 7.79086 12.7909 6 15 6C17.2091 6 19 7.79086 19 10ZM15 28C17.2091 28 19 26.2091 19 24C19 21.7909 17.2091 20 15 20C12.7909 20 11 21.7909 11 24C11 26.2091 12.7909 28 15 28ZM15 42C17.2091 42 19 40.2091 19 38C19 35.7909 17.2091 34 15 34C12.7909 34 11 35.7909 11 38C11 40.2091 12.7909 42 15 42Z",fill:e.colors[0]}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37 10C37 12.2091 35.2091 14 33 14C30.7909 14 29 12.2091 29 10C29 7.79086 30.7909 6 33 6C35.2091 6 37 7.79086 37 10ZM33 28C35.2091 28 37 26.2091 37 24C37 21.7909 35.2091 20 33 20C30.7909 20 29 21.7909 29 24C29 26.2091 30.7909 28 33 28ZM33 42C35.2091 42 37 40.2091 37 38C37 35.7909 35.2091 34 33 34C30.7909 34 29 35.7909 29 38C29 40.2091 30.7909 42 33 42Z",fill:e.colors[0]}))}),mF=Wt("trend-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M4 44H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 26L12 28V38H4V26Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 24L28 20V38H20V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 16L44 12V38H36V16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 18L12 20L44 4H34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vF=Wt("fire",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C32.2347 44 38.9998 37.4742 38.9998 29.0981C38.9998 27.0418 38.8953 24.8375 37.7555 21.4116C36.6157 17.9858 36.3861 17.5436 35.1809 15.4279C34.666 19.7454 31.911 21.5448 31.2111 22.0826C31.2111 21.5231 29.5445 15.3359 27.0176 11.6339C24.537 8 21.1634 5.61592 19.1853 4C19.1853 7.06977 18.3219 11.6339 17.0854 13.9594C15.8489 16.2849 15.6167 16.3696 14.0722 18.1002C12.5278 19.8308 11.8189 20.3653 10.5274 22.4651C9.23596 24.565 9 27.3618 9 29.4181C9 37.7942 15.7653 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),gF=Wt("split",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M19 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hF=Wt("people-search",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),pF=Wt("people-minus",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),m.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),bF=Wt("people-delete",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),yF=Wt("delete",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),CF=Wt("add-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),SF=Wt("play-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),wF=Wt("unlike",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$F=Wt("dislike-two",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),m.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),m.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),xF=Wt("copy",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),EF=Wt("efferent-four",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),IF=Wt("star",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}))}),OF=Wt("file-cabinet",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),PF=Wt("tumblr",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}))}),RF=Wt("concern",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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}),m.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}),m.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}))}),MF=Wt("iphone",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_F=Wt("computer",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),TF=Wt("tips",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),NF=Wt("return",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),kF=Wt("loading-three",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),AF=Wt("loading",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),LF=Wt("info",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}),m.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),DF=Wt("help",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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]}))}),zF=Wt("distraught-face",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),jF=Wt("config",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),FF=Wt("close",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BF={Close:FF,Config:jF,DistraughtFace:zF,Help:DF,Info:LF,Loading:AF,LoadingThree:kF,Return:NF,Tips:TF,Computer:_F,Iphone:MF,Concern:RF,Tumblr:PF,FileCabinet:OF,Star:IF,EfferentFour:EF,Copy:xF,DislikeTwo:$F,Unlike:wF,PlayTwo:SF,AddTwo:CF,Delete:yF,PeopleDelete:bF,PeopleMinus:pF,PeopleSearch:hF,Split:gF,Fire:vF,TrendTwo:mF,Drag:fF};function kt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=BF[e];return D(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var Fw=function(e){return function(t,n){var r=m.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},Lr=function(){return Lr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t},Lr.apply(this,arguments)};function Bw(e,t){var n={};for(var r in 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 HF(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function s(u){try{c(r.next(u));}catch(d){i(d);}}function l(u){try{c(r.throw(u));}catch(d){i(d);}}function c(u){u.done?a(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function WF(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=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(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=a=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Jm(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 cn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(s){i={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function Ln(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Hi=function(e){return typeof e=="function"},VF=function(e){return typeof e=="string"},Hw=function(e){return typeof e=="number"};function ot(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var n=m.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 Zc=Fw(m.useEffect);var Ww=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=m.useRef(!1);return u.current=!1,Zc(function(){!n&&o&&(u.current=!0,e.run.apply(e,Ln([],cn(i),!1)));},[o]),Zc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},Ln([],cn(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};Ww.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const KF=Ww;function ev(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 Vw(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!ev(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Si(e){var t=m.useRef(e);return t.current=e,t}var UF=function(e){var t=Si(e);m.useEffect(function(){return function(){t.current();}},[]);};const pl=UF;var xc=new Map,XF=function(e,t,n){var r=xc.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){xc.delete(e);},t)),xc.set(e,Lr(Lr({},n),{timer:o}));},qF=function(e){return xc.get(e)},Ec=new Map,YF=function(e){return Ec.get(e)},QF=function(e,t){Ec.set(e,t),t.then(function(n){return Ec.delete(e),n}).catch(function(){Ec.delete(e);});},Zo={},ZF=function(e,t){Zo[e]&&Zo[e].forEach(function(n){return n(t)});},kf=function(e,t){return Zo[e]||(Zo[e]=[]),Zo[e].push(t),function(){var r=Zo[e].indexOf(t);Zo[e].splice(r,1);}},JF=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,l=t.getCache,c=m.useRef(),u=m.useRef(),d=function(v,g){s?s(g):XF(v,o,g),ZF(v,g.data);},f=function(v,g){return g===void 0&&(g=[]),l?l(g):qF(v)};return Vw(function(){if(n){var v=f(n);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(i===-1||new Date().getTime()-v.time<=i)&&(e.state.loading=!1)),c.current=kf(n,function(g){e.setState({data:g});});}},[]),pl(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),n?{onBefore:function(v){var g=f(n,v);return !g||!Object.hasOwnProperty.call(g,"data")?{}:i===-1||new Date().getTime()-g.time<=i?{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(v,g){var h=YF(n);return h&&h!==u.current?{servicePromise:h}:(h=v.apply(void 0,Ln([],cn(g),!1)),u.current=h,QF(n,h),{servicePromise:h})},onSuccess:function(v,g){var h;n&&((h=c.current)===null||h===void 0||h.call(c),d(n,{data:v,params:g,time:new Date().getTime()}),c.current=kf(n,function(p){e.setState({data:p});}));},onMutate:function(v){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=kf(n,function(h){e.setState({data:h});}));}}:{}};const eB=JF;var tB=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=m.useRef(),s=m.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[r,o,a]);return m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=qA(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,f){var v;(v=i.current)===null||v===void 0||v.call(i,function(){l.apply(void 0,Ln([],cn(c),!1)).then(d).catch(f);});})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const nB=tB;var rB=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.useRef();if(!n)return {};var a=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return a(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){a();},onCancel:function(){a();}}};const oB=rB;var aB=!!(typeof window<"u"&&window.document&&window.document.createElement);const bl=aB;function gh(){return bl?document.visibilityState!=="hidden":!0}var ys=[];function iB(e){return ys.push(e),function(){var n=ys.indexOf(e);ys.splice(n,1);}}if(bl){var sB=function(){if(gh())for(var e=0;e<ys.length;e++){var t=ys[e];t();}};window.addEventListener("visibilitychange",sB,!1);}var lB=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,s=m.useRef(),l=m.useRef(),c=m.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Zc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){i===-1||i!==-1&&c.current<=i?s.current=setTimeout(function(){!o&&!gh()?l.current=iB(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const cB=lB;function uB(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,Ln([],cn(r),!1)),setTimeout(function(){n=!1;},t));}}function dB(){return bl&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Cs=[];function fB(e){return Cs.push(e),function(){var n=Cs.indexOf(e);n>-1&&Cs.splice(n,1);}}if(bl){var I0=function(){if(!(!gh()||!dB()))for(var e=0;e<Cs.length;e++){var t=Cs[e];t();}};window.addEventListener("visibilitychange",I0,!1),window.addEventListener("focus",I0,!1);}var mB=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=m.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return m.useEffect(function(){if(n){var s=uB(e.refresh.bind(e),o);a.current=fB(function(){s();});}return function(){i();}},[n,o]),pl(function(){i();}),{}};const vB=mB;var gB=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),a=m.useRef(0),i=m.useRef(!1);return r?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){a.current=0;},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh();},s);}else a.current=0;},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current);}}:{}};const hB=gB;var pB=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=m.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=KC(function(l){l();},n,i),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var f;(f=a.current)===null||f===void 0||f.call(a,function(){s.apply(void 0,Ln([],cn(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const bB=pB;var yB=function(e){m.useEffect(function(){e==null||e();},[]);};const yl=yB;var CB=function(){var e=cn(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const SB=CB;var wB=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=Lr(Lr(Lr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Lr(Lr({},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(a){var i;return (i=a[t])===null||i===void 0?void 0:i.call.apply(i,Ln([a],cn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,Ln([{}],cn(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return HF(this,void 0,void 0,function(){var v,g,h,p,b,y,C,w,x,$,S;return WF(this,function(E){switch(E.label){case 0:if(this.count+=1,v=this.count,g=this.runPluginHandler("onBefore",d),h=g.stopNow,p=h===void 0?!1:h,b=g.returnNow,y=b===void 0?!1:b,C=Bw(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Lr({loading:!0,params:d},C)),y)return [2,Promise.resolve(C.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),E.label=1;case 1:return E.trys.push([1,3,,4]),w=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,w||(w=(S=this.serviceRef).current.apply(S,Ln([],cn(d),!1))),[4,w];case 2:return x=E.sent(),v!==this.count?[2,new Promise(function(){})]:(this.setState({data:x,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,x,d),this.runPluginHandler("onSuccess",x,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,x,void 0),v===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if($=E.sent(),v!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,$,d),this.runPluginHandler("onError",$,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,$),v===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;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,Ln([],cn(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,Ln([],cn(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Ln([],cn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=Hi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const $B=wB;function xB(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=Bw(t,["manual"]);var i=Lr({manual:o},a),s=Si(e),l=SB(),c=Vw(function(){var u=n.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,i)}).filter(Boolean);return new $B(s,i,l,Object.assign.apply(Object,Ln([{}],cn(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),yl(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,Ln([],cn(u),!1));}}),pl(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:ot(c.cancel.bind(c)),refresh:ot(c.refresh.bind(c)),refreshAsync:ot(c.refreshAsync.bind(c)),run:ot(c.run.bind(c)),runAsync:ot(c.runAsync.bind(c)),mutate:ot(c.mutate.bind(c))}}function Gw(e,t,n){return xB(e,t,Ln(Ln([],cn(n||[]),!1),[nB,oB,cB,vB,bB,KF,eB,hB],!1))}function Kw(e,t){e===void 0&&(e=!1);var n=cn(m.useState(e),2),r=n[0],o=n[1],a=m.useMemo(function(){var i=t===void 0?!e:t,s=function(){return o(function(d){return d===e?i:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(i)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,a]}function EB(e){e===void 0&&(e=!1);var t=cn(Kw(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=m.useMemo(function(){var s=function(){return a(!0)},l=function(){return a(!1)};return {toggle:o,set:function(c){return a(!!c)},setTrue:s,setFalse:l}},[]);return [n,i]}function _d(e,t){if(bl){if(!e)return t;var n;return Hi(e)?n=e():"current"in e?n=e.current:n=e,n}}var IB=function(e){var t=function(n,r,o){var a=m.useRef(!1),i=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return _d(f)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!ev(d,i.current)||!ev(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),pl(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const OB=IB;var PB=OB(m.useEffect);const Uw=PB;var RB="__lodash_hash_undefined__";function MB(e){return this.__data__.set(e,RB),this}var _B=MB;function TB(e){return this.__data__.has(e)}var NB=TB,kB=vg,AB=_B,LB=NB;function Jc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new kB;++t<n;)this.add(e[t]);}Jc.prototype.add=Jc.prototype.push=AB;Jc.prototype.has=LB;var Xw=Jc;function DB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}var zB=DB;function jB(e,t){return e.has(t)}var qw=jB,FB=Xw,BB=zB,HB=qw,WB=1,VB=2;function GB(e,t,n,r,o,a){var i=n&WB,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,v=n&VB?new FB:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],h=t[d];if(r)var p=i?r(h,g,d,t,e,a):r(g,h,d,e,t,a);if(p!==void 0){if(p)continue;f=!1;break}if(v){if(!BB(t,function(b,y){if(!HB(v,y)&&(g===b||o(g,b,n,r,a)))return v.push(y)})){f=!1;break}}else if(!(g===h||o(g,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Yw=GB;function KB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var UB=KB;function XB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var hh=XB,O0=Mi,P0=kC,qB=fg,YB=Yw,QB=UB,ZB=hh,JB=1,e9=2,t9="[object Boolean]",n9="[object Date]",r9="[object Error]",o9="[object Map]",a9="[object Number]",i9="[object RegExp]",s9="[object Set]",l9="[object String]",c9="[object Symbol]",u9="[object ArrayBuffer]",d9="[object DataView]",R0=O0?O0.prototype:void 0,Af=R0?R0.valueOf:void 0;function f9(e,t,n,r,o,a,i){switch(n){case d9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case u9:return !(e.byteLength!=t.byteLength||!a(new P0(e),new P0(t)));case t9:case n9:case a9:return qB(+e,+t);case r9:return e.name==t.name&&e.message==t.message;case i9:case l9:return e==t+"";case o9:var s=QB;case s9:var l=r&JB;if(s||(s=ZB),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=e9,i.set(e,t);var u=YB(s(e),s(t),r,o,a,i);return i.delete(e),u;case c9:if(Af)return Af.call(e)==Af.call(t)}return !1}var m9=f9,M0=MC,v9=1,g9=Object.prototype,h9=g9.hasOwnProperty;function p9(e,t,n,r,o,a){var i=n&v9,s=M0(e),l=s.length,c=M0(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:h9.call(t,f)))return !1}var v=a.get(e),g=a.get(t);if(v&&g)return v==t&&g==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=i?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){h=!1;break}p||(p=f=="constructor");}if(h&&!p){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(h=!1);}return a.delete(e),a.delete(t),h}var b9=p9,Lf=gg,y9=Yw,C9=m9,S9=b9,_0=Qu,T0=Gr,N0=bg,w9=wC,$9=1,k0="[object Arguments]",A0="[object Array]",sc="[object Object]",x9=Object.prototype,L0=x9.hasOwnProperty;function E9(e,t,n,r,o,a){var i=T0(e),s=T0(t),l=i?A0:_0(e),c=s?A0:_0(t);l=l==k0?sc:l,c=c==k0?sc:c;var u=l==sc,d=c==sc,f=l==c;if(f&&N0(e)){if(!N0(t))return !1;i=!0,u=!1;}if(f&&!u)return a||(a=new Lf),i||w9(e)?y9(e,t,n,r,o,a):C9(e,t,l,n,r,o,a);if(!(n&$9)){var v=u&&L0.call(e,"__wrapped__"),g=d&&L0.call(t,"__wrapped__");if(v||g){var h=v?e.value():e,p=g?t.value():t;return a||(a=new Lf),o(h,p,n,r,a)}}return f?(a||(a=new Lf),S9(e,t,n,r,o,a)):!1}var I9=E9,O9=I9,D0=Bo;function Qw(e,t,n,r,o){return e===t?!0:e==null||t==null||!D0(e)&&!D0(t)?e!==e&&t!==t:O9(e,t,n,r,Qw,o)}var ph=Qw,P9=ph;function R9(e,t){return P9(e,t)}var M9=R9;const _9=xn(M9);var T9=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),_9(e,t)};function Do(e,t,n){n===void 0&&(n={});var r=Si(t);Uw(function(){var o=_d(n.target,window);if(o!=null&&o.addEventListener){var a=function(i){return r.current(i)};return o.addEventListener(e,a,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,a,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function Zw(e){var t=cn(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var a=m.useCallback(function(){return o.current},[]);return [n,r,a]}const Df=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=cn(EB(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return Do("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),Do("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var N9=function(e,t,n){var r=m.useRef(),o=m.useRef(0);T9(t,r.current)||(r.current=t,o.current+=1),Uw(e,[o.current],n);};const k9=N9;var A9=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const L9=A9;var Jw={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:L9?[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},tv={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"?Jw.meta.includes(e.keyCode):e.metaKey}};function D9(e){var t=Object.keys(tv).reduce(function(n,r){return tv[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function z0(e,t,n){var r,o;if(!e.key)return !1;if(Hw(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=Jm(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=tv[c],d=Jw[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&D9(e)===a.length:i===a.length}function z9(e,t){return Hi(e)?e:VF(e)||Hw(e)?function(n){return z0(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return z0(n,r,t)})}:function(){return !!e}}var j9=["keydown"];function fn(e,t,n){var r=n||{},o=r.events,a=o===void 0?j9:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=Si(t),f=Si(e);k9(function(){var v,g,h,p=_d(i,window);if(p){var b=function(x){var $,S=z9(f.current,l);if(S(x))return ($=d.current)===null||$===void 0?void 0:$.call(d,x)};try{for(var y=Jm(a),C=y.next();!C.done;C=y.next()){var w=C.value;(h=p==null?void 0:p.addEventListener)===null||h===void 0||h.call(p,w,b,u);}}catch(x){v={error:x};}finally{try{C&&!C.done&&(g=y.return)&&g.call(y);}finally{if(v)throw v.error}}return function(){var x,$,S;try{for(var E=Jm(a),I=E.next();!I.done;I=E.next()){var O=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,O,b,u);}}catch(R){x={error:R};}finally{try{I&&!I.done&&($=E.return)&&$.call(E);}finally{if(x)throw x.error}}}}},[a],i);}function e$(e){var t=m.useRef(0),n=cn(m.useState(e),2),r=n[0],o=n[1],a=m.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return pl(function(){cancelAnimationFrame(t.current);}),[r,a]}var F9={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 B9=function(e){var t=cn(e$(F9),2),n=t[0],r=t[1];return Do("mousemove",function(o){var a=o.screenX,i=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=_d(e);if(f){var v=f.getBoundingClientRect(),g=v.left,h=v.top,p=v.width,b=v.height;d.elementPosX=g+window.pageXOffset,d.elementPosY=h+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var H9=function(e,t){return !Object.is(e,t)};function W9(e,t){t===void 0&&(t=H9);var n=m.useRef(),r=m.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var V9=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const G9=V9,K9=Fw(m.useLayoutEffect),U9="_modal-mask_1j5wc_1",X9="_modal_1j5wc_1",q9="_modal-header_1j5wc_23",Y9="_modal-body_1j5wc_30",Q9="_modal-title_1j5wc_35",Z9="_btn-close_1j5wc_42",fr={modalMask:U9,modal:X9,modalHeader:q9,modalBody:Y9,modalTitle:Q9,btnClose:Z9};let ds=0;const J9=()=>{ds++,document.body.style.overflow="hidden";},eH=()=>{ds--,ds<0&&(ds=0),ds===0&&(document.body.style.overflow="");};function Td({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?J9():eH();},[e]);const u=m.useRef(null),d=uh(),{bg:f,c:v}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),g=m.useMemo(()=>d?{"--bg":f,"--c":v,backgroundColor:f,color:v}:{},[f,v,d]),h=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.classList.add(Sa),y.setAttribute("data-id","base-modal-"+h),document.body.appendChild(y),y},[]),b=ot(y=>{var w;const C=y.target;(w=u.current)!=null&&w.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return fn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?V1.createPortal(D("div",{className:K(fr.modalMask,o),style:r,onClick:b,children:D("div",{className:K(fr.modal,i),style:{...g,width:s,...a},ref:u,children:n})}),p):null}const Nd=e=>D(kt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function bh(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 tH(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(a=>a[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}var $r,Yt,ln,No,Zs,ko,Js,nv,cr,Tr,Pu,t$,el,rv,tl,ov,nl,av,Ru,n$,rl,iv;class nH extends Map{constructor(n={}){super();Vn(this,Js);Vn(this,cr);Vn(this,Pu);Vn(this,el);Vn(this,tl);Vn(this,nl);Vn(this,Ru);Vn(this,rl);Vn(this,$r,0);Vn(this,Yt,new Map);Vn(this,ln,new Map);Vn(this,No,void 0);Vn(this,Zs,void 0);Vn(this,ko,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");Tn(this,No,n.maxSize),Tn(this,Zs,n.maxAge||Number.POSITIVE_INFINITY),Tn(this,ko,n.onEviction);}get __oldCache(){return ct(this,ln)}get(n){if(ct(this,Yt).has(n)){const r=ct(this,Yt).get(n);return nn(this,el,rv).call(this,n,r)}if(ct(this,ln).has(n)){const r=ct(this,ln).get(n);if(nn(this,cr,Tr).call(this,n,r)===!1)return nn(this,Ru,n$).call(this,n,r),r.value}}set(n,r,{maxAge:o=ct(this,Zs)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return ct(this,Yt).has(n)?ct(this,Yt).set(n,{value:r,expiry:a}):nn(this,nl,av).call(this,n,{value:r,expiry:a}),this}has(n){return ct(this,Yt).has(n)?!nn(this,cr,Tr).call(this,n,ct(this,Yt).get(n)):ct(this,ln).has(n)?!nn(this,cr,Tr).call(this,n,ct(this,ln).get(n)):!1}peek(n){if(ct(this,Yt).has(n))return nn(this,tl,ov).call(this,n,ct(this,Yt));if(ct(this,ln).has(n))return nn(this,tl,ov).call(this,n,ct(this,ln))}delete(n){const r=ct(this,Yt).delete(n);return r&&uf(this,$r)._--,ct(this,ln).delete(n)||r}clear(){ct(this,Yt).clear(),ct(this,ln).clear(),Tn(this,$r,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...nn(this,rl,iv).call(this)],o=r.length-n;o<0?(Tn(this,Yt,new Map(r)),Tn(this,ln,new Map),Tn(this,$r,r.length)):(o>0&&nn(this,Js,nv).call(this,r.slice(0,o)),Tn(this,ln,new Map(r.slice(o))),Tn(this,Yt,new Map),Tn(this,$r,0)),Tn(this,No,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of ct(this,Yt)){const[r,o]=n;nn(this,cr,Tr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of ct(this,ln)){const[r,o]=n;ct(this,Yt).has(r)||nn(this,cr,Tr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...ct(this,Yt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;nn(this,cr,Tr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...ct(this,ln)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;ct(this,Yt).has(a)||nn(this,cr,Tr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of nn(this,rl,iv).call(this))yield [n,r.value];}get size(){if(!ct(this,$r))return ct(this,ln).size;let n=0;for(const r of ct(this,ln).keys())ct(this,Yt).has(r)||n++;return Math.min(ct(this,$r)+n,ct(this,No))}get maxSize(){return ct(this,No)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}$r=new WeakMap,Yt=new WeakMap,ln=new WeakMap,No=new WeakMap,Zs=new WeakMap,ko=new WeakMap,Js=new WeakSet,nv=function(n){if(typeof ct(this,ko)=="function")for(const[r,o]of n)ct(this,ko).call(this,r,o.value);},cr=new WeakSet,Tr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof ct(this,ko)=="function"&&ct(this,ko).call(this,n,r.value),this.delete(n)):!1},Pu=new WeakSet,t$=function(n,r){if(nn(this,cr,Tr).call(this,n,r)===!1)return r.value},el=new WeakSet,rv=function(n,r){return r.expiry?nn(this,Pu,t$).call(this,n,r):r.value},tl=new WeakSet,ov=function(n,r){const o=r.get(n);return nn(this,el,rv).call(this,n,o)},nl=new WeakSet,av=function(n,r){ct(this,Yt).set(n,r),uf(this,$r)._++,ct(this,$r)>=ct(this,No)&&(Tn(this,$r,0),nn(this,Js,nv).call(this,ct(this,ln)),Tn(this,ln,ct(this,Yt)),Tn(this,Yt,new Map));},Ru=new WeakSet,n$=function(n,r){ct(this,ln).delete(n),nn(this,nl,av).call(this,n,r);},rl=new WeakSet,iv=function*(){for(const n of ct(this,ln)){const[r,o]=n;ct(this,Yt).has(r)||nn(this,cr,Tr).call(this,r,o)===!1&&(yield n);}for(const n of ct(this,Yt)){const[r,o]=n;nn(this,cr,Tr).call(this,r,o)===!1&&(yield n);}};async function rH(e){return (await on.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function oH(e){return []}const zf=new nH({maxSize:1e3});async function aH(e){if(zf.has(e))return zf.get(e);const[t,n]=await Promise.all([rH(e),oH()]);return zf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function r$(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:zi()}),a=(await on.post("/x/v2/history/toview/"+e,r)).data,i=Kr(a);return i||Ot((a==null?void 0:a.message)||"出错了"),i}}const ns=r$("add"),j0=r$("del"),o$=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await ed.get(YC+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Kr(a)}},iH=o$("dislike"),sH=o$("cancel"),lH="_modal_1rloz_1",cH="_title-desc_1rloz_4",uH="_reason-list_1rloz_8",dH="_reason_1rloz_8",fH="_active_1rloz_29",mH="_reason-no_1rloz_33",vH="_tips-container_1rloz_47",gH="_tips_1rloz_47",Cr={modal:lH,titleDesc:cH,reasonList:uH,reason:dH,active:fH,reasonNo:mH,tipsContainer:vH,tips:gH},kd=tH();function hH(){return er(kd)}function pH(e){const t=hH();if(e)return t.get(e)}function bH({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),a=ot(async v=>{if(!n)return;let g=!1,h;try{o(!0),g=await iH(n,v.id);}catch(p){h=p;}finally{o(!1);}if(h)return console.error(h.stack||h),cS();g?Ot("已标记不想看"):uS(),g&&(kd.set(n.param,{...v}),t());}),i=m.useMemo(()=>{var v;return ((v=n==null?void 0:n.three_point)==null?void 0:v.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];fn(l,v=>{if(!s()||!l.includes(v.key))return;const g=Number(v.key)-1;u(g);const h=document.querySelectorAll(`.${Cr.reason}`)[g]||null;h==null||h.click();});const[c,u]=m.useState(i.length-1);K9(()=>{u(i.length-1);},[i]);const d=v=>()=>{if(!s())return;const g=c+v;g<0||g>i.length-1||u(g);};fn("leftarrow",d(-1),{exactMatch:!0}),fn("rightarrow",d(1),{exactMatch:!0}),fn("uparrow",d(-2),{exactMatch:!0}),fn("downarrow",d(2),{exactMatch:!0}),fn("enter",v=>{var g;s()&&(c<0||c>i.length-1||(v.preventDefault(),v.stopImmediatePropagation(),(g=document.querySelector(`.${Cr.reason}.${Cr.active}`))==null||g.click()));},{exactMatch:!0});const f=m.useMemo(()=>{var v;return ((v=i[c])==null?void 0:v.name)||""},[i,c]);return be(Td,{show:e,onHide:t,clsModal:Cr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[be("div",{className:fr.modalHeader,children:[be("div",{className:fr.modalTitle,children:["我不想看",D("span",{className:Cr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Nd,{onClick:t})]}),be("div",{className:fr.modalBody,children:[D("div",{className:Cr.reasonList,children:i.map((v,g)=>be("button",{className:K(Cr.reason,{[Cr.active]:g===c}),style:{...g===c&&{borderColor:Fr}},"data-id":v.id,onClick:()=>{u(g),a(v);},disabled:r,children:[D("span",{className:Cr.reasonNo,style:{backgroundColor:Fr},children:g+1}),v.name]},v.id))}),be("div",{className:Cr.tipsContainer,children:[be("div",{className:Cr.tips,children:[D(kt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&be("div",{className:Cr.tips,children:[D(kt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Ic={show:!1,onHide:i$,item:null},a$=Jn({value:Ic.show}),yH=function(){return er(a$).value};function i$(){setTimeout(()=>{s$({show:!1,item:null});});}function s$(e){Object.assign(Ic,e),a$.value=Ic.show,CH().render(D(bH,{...Ic,onHide:i$}));}let F0;function CH(){return F0||(F0=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container",Sa),document.body.appendChild(e),hl(e)})()),F0}function SH(e){e!=null&&e.param&&kd.has(e.param)||s$({show:!0,item:e});}var wH=`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`,$H=`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`,xH="".concat(wH," ").concat($H).split(/[\s\n]+/),EH="aria-",IH="data-";function B0(e,t){return e.indexOf(t)===0}function wi(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=X({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||B0(o,EH))||n.data&&B0(o,IH)||n.attr&&xH.includes(o))&&(r[o]=e[o]);}),r}const l$=m__namespace.createContext(null),OH=l$.Provider,c$=m__namespace.createContext(null),PH=c$.Provider;var RH=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],u$=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,v=e.title,g=e.onChange,h=tt(e,RH),p=m.useRef(null),b=qt(u,{value:s}),y=J(b,2),C=y[0],w=y[1];m.useImperativeHandle(t,function(){return {focus:function(){var E;(E=p.current)===null||E===void 0||E.focus();},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur();},input:p.current}});var x=K(o,a,(n={},F(n,"".concat(o,"-checked"),C),F(n,"".concat(o,"-disabled"),l),n)),$=function(E){l||("checked"in e||w(E.target.checked),g==null||g({target:X(X({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation();},preventDefault:function(){E.preventDefault();},nativeEvent:E.nativeEvent}));};return m__namespace.createElement("span",{className:x,title:v,style:i},m__namespace.createElement("input",Re({},h,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!C,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const MH=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},_H=Kt("Wave",e=>[MH(e)]);function Xn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,P,_){T[P]=_.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(T,P,_){return Object.defineProperty(T,P,{value:_,enumerable:!0,configurable:!0,writable:!0}),T[P]}try{c({},"");}catch{c=function(_,z,j){return _[z]=j};}function u(T,P,_,z){var j=P&&P.prototype instanceof b?P:b,H=Object.create(j.prototype),B=new A(z||[]);return o(H,"_invoke",{value:O(T,_,B)}),H}function d(T,P,_){try{return {type:"normal",arg:T.call(P,_)}}catch(z){return {type:"throw",arg:z}}}t.wrap=u;var f="suspendedStart",v="suspendedYield",g="executing",h="completed",p={};function b(){}function y(){}function C(){}var w={};c(w,i,function(){return this});var x=Object.getPrototypeOf,$=x&&x(x(L([])));$&&$!==n&&r.call($,i)&&(w=$);var S=C.prototype=b.prototype=Object.create(w);function E(T){["next","throw","return"].forEach(function(P){c(T,P,function(_){return this._invoke(P,_)});});}function I(T,P){function _(j,H,B,V){var G=d(T[j],T,H);if(G.type!=="throw"){var q=G.arg,Y=q.value;return Y&&ut(Y)=="object"&&r.call(Y,"__await")?P.resolve(Y.__await).then(function(te){_("next",te,B,V);},function(te){_("throw",te,B,V);}):P.resolve(Y).then(function(te){q.value=te,B(q);},function(te){return _("throw",te,B,V)})}V(G.arg);}var z;o(this,"_invoke",{value:function(H,B){function V(){return new P(function(G,q){_(H,B,G,q);})}return z=z?z.then(V,V):V()}});}function O(T,P,_){var z=f;return function(j,H){if(z===g)throw new Error("Generator is already running");if(z===h){if(j==="throw")throw H;return {value:e,done:!0}}for(_.method=j,_.arg=H;;){var B=_.delegate;if(B){var V=R(B,_);if(V){if(V===p)continue;return V}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(z===f)throw z=h,_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);z=g;var G=d(T,P,_);if(G.type==="normal"){if(z=_.done?h:v,G.arg===p)continue;return {value:G.arg,done:_.done}}G.type==="throw"&&(z=h,_.method="throw",_.arg=G.arg);}}}function R(T,P){var _=P.method,z=T.iterator[_];if(z===e)return P.delegate=null,_==="throw"&&T.iterator.return&&(P.method="return",P.arg=e,R(T,P),P.method==="throw")||_!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+_+"' method")),p;var j=d(z,T.iterator,P.arg);if(j.type==="throw")return P.method="throw",P.arg=j.arg,P.delegate=null,p;var H=j.arg;return H?H.done?(P[T.resultName]=H.value,P.next=T.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,p):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,p)}function M(T){var P={tryLoc:T[0]};1 in T&&(P.catchLoc=T[1]),2 in T&&(P.finallyLoc=T[2],P.afterLoc=T[3]),this.tryEntries.push(P);}function k(T){var P=T.completion||{};P.type="normal",delete P.arg,T.completion=P;}function A(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(M,this),this.reset(!0);}function L(T){if(T||T===""){var P=T[i];if(P)return P.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var _=-1,z=function j(){for(;++_<T.length;)if(r.call(T,_))return j.value=T[_],j.done=!1,j;return j.value=e,j.done=!0,j};return z.next=z}}throw new TypeError(ut(T)+" is not iterable")}return y.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var P=typeof T=="function"&&T.constructor;return !!P&&(P===y||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,c(T,l,"GeneratorFunction")),T.prototype=Object.create(S),T},t.awrap=function(T){return {__await:T}},E(I.prototype),c(I.prototype,s,function(){return this}),t.AsyncIterator=I,t.async=function(T,P,_,z,j){j===void 0&&(j=Promise);var H=new I(u(T,P,_,z),j);return t.isGeneratorFunction(P)?H:H.next().then(function(B){return B.done?B.value:H.next()})},E(S),c(S,l,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(T){var P=Object(T),_=[];for(var z in P)_.push(z);return _.reverse(),function j(){for(;_.length;){var H=_.pop();if(H in P)return j.value=H,j.done=!1,j}return j.done=!0,j}},t.values=L,A.prototype={constructor:A,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!P)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e);},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var _=this;function z(q,Y){return B.type="throw",B.arg=P,_.next=q,Y&&(_.method="next",_.arg=e),!!Y}for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j],B=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var V=r.call(H,"catchLoc"),G=r.call(H,"finallyLoc");if(V&&G){if(this.prev<H.catchLoc)return z(H.catchLoc,!0);if(this.prev<H.finallyLoc)return z(H.finallyLoc)}else if(V){if(this.prev<H.catchLoc)return z(H.catchLoc,!0)}else {if(!G)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return z(H.finallyLoc)}}}},abrupt:function(P,_){for(var z=this.tryEntries.length-1;z>=0;--z){var j=this.tryEntries[z];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var H=j;break}}H&&(P==="break"||P==="continue")&&H.tryLoc<=_&&_<=H.finallyLoc&&(H=null);var B=H?H.completion:{};return B.type=P,B.arg=_,H?(this.method="next",this.next=H.finallyLoc,p):this.complete(B)},complete:function(P,_){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&_&&(this.next=_),p},finish:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),k(z),p}},catch:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc===P){var j=z.completion;if(j.type==="throw"){var H=j.arg;k(z);}return H}}throw new Error("illegal catch attempt")},delegateYield:function(P,_,z){return this.delegate={iterator:L(P),resultName:_,nextLoc:z},this.method==="next"&&(this.arg=e),p}},t}function H0(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function Ea(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){H0(a,r,o,i,s,"next",l);}function s(l){H0(a,r,o,i,s,"throw",l);}i(void 0);})}}var Cl=X({},V1__namespace),TH=Cl.version,NH=Cl.render,kH=Cl.unmountComponentAtNode,Ad;try{var AH=Number((TH||"").split(".")[0]);AH>=18&&(Ad=Cl.createRoot);}catch{}function W0(e){var t=Cl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ut(t)==="object"&&(t.usingClientEntryPoint=e);}var eu="__rc_react_root__";function LH(e,t){W0(!0);var n=t[eu]||Ad(t);W0(!1),n.render(e),t[eu]=n;}function DH(e,t){NH(e,t);}function zH(e,t){if(Ad){LH(e,t);return}DH(e,t);}function jH(e){return sv.apply(this,arguments)}function sv(){return sv=Ea(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[eu])===null||o===void 0||o.unmount(),delete t[eu];}));case 1:case"end":return r.stop()}},e)})),sv.apply(this,arguments)}function FH(e){kH(e);}function BH(e){return lv.apply(this,arguments)}function lv(){return lv=Ea(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ad===void 0){r.next=2;break}return r.abrupt("return",jH(t));case 2:FH(t);case 3:case"end":return r.stop()}},e)})),lv.apply(this,arguments)}function HH(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 jf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&HH(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function WH(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return jf(t)?t:jf(n)?n:jf(r)?r:null}const Ld="ant-wave-target";function Ff(e){return Number.isNaN(e)?0:e}const VH=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[a,i]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[v,g]=m__namespace.useState(0),[h,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),C={left:c,top:d,width:v,height:h,borderRadius:s.map($=>`${$}px`).join(" ")};a&&(C["--wave-color"]=a);function w(){const $=getComputedStyle(n);i(WH(n));const S=$.position==="static",{borderLeftWidth:E,borderTopWidth:I}=$;u(S?n.offsetLeft:Ff(-parseFloat(E))),f(S?n.offsetTop:Ff(-parseFloat(I))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:R,borderBottomLeftRadius:M,borderBottomRightRadius:k}=$;l([O,R,k,M].map(A=>Ff(parseFloat(A))));}if(m__namespace.useEffect(()=>{if(n){const $=Rt(()=>{w(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{Rt.cancel($),S==null||S.disconnect();}}},[]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ld));return m__namespace.createElement(xo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,S)=>{var E;if(S.deadline||S.propertyName==="opacity"){const I=(E=o.current)===null||E===void 0?void 0:E.parentElement;BH(I).then(()=>{I==null||I.remove();});}return !1}},$=>{let{className:S}=$;return m__namespace.createElement("div",{ref:o,className:K(t,{"wave-quick":x},S),style:C})})},GH=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),zH(m__namespace.createElement(VH,Object.assign({},t,{target:e})),o);},KH=GH;function UH(e,t,n){const{wave:r}=m__namespace.useContext(rt),[,o,a]=tr(),i=An(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Ld}`)||u,{showEffect:f}=r||{};(f||KH)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=m__namespace.useRef();return c=>{Rt.cancel(s.current),s.current=Rt(()=>{i(c);});}}const XH=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(rt),a=m.useRef(null),i=o("wave"),[,s]=_H(i),l=UH(a,K(i,s),r);if(m.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!Kg(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!m.isValidElement(t))return t??null;const c=Wo(t)?qn(t.ref,a):a;return Un(t,{ref:c})},Sl=XH;var na="RC_FORM_INTERNAL_HOOKS",Vt=function(){$n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},$i=m__namespace.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),tu=m__namespace.createContext(null);function cv(e){return e==null?[]:Array.isArray(e)?e:[e]}function qH(e){return e&&!!e._init}function ra(){return ra=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},ra.apply(this,arguments)}function YH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bs(e,t);}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uv(e)}function Bs(e,t){return Bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bs(e,t)}function QH(){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 Oc(e,t,n){return QH()?Oc=Reflect.construct.bind():Oc=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&Bs(c,i.prototype),c},Oc.apply(null,arguments)}function ZH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dv(e){var t=typeof Map=="function"?new Map:void 0;return dv=function(r){if(r===null||!ZH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Oc(r,arguments,uv(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Bs(o,r)},dv(e)}var JH=/%[sdj%]/g,e7=function(){};function fv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(JH,function(s){if(s==="%%")return "%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return i}return e}function t7(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function yn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||t7(t)&&typeof e=="string"&&!e)}function n7(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,s||[]),o++,o===a&&n(r);}e.forEach(function(s){t(s,i);});}function V0(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([]);}a([]);}function r7(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var G0=function(e){YH(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(dv(Error));function o7(e,t,n,r,o){if(t.first){var a=new Promise(function(f,v){var g=function(b){return r(b),b.length?v(new G0(b,fv(b))):f(o)},h=r7(e);V0(h,n,g);});return a.catch(function(f){return f}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,v){var g=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?v(new G0(u,fv(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(h){var p=e[h];i.indexOf(h)!==-1?V0(p,n,g):n7(p,n,g);});});return d.catch(function(f){return f}),d}function a7(e){return !!(e&&e.message!==void 0)}function i7(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function K0(e,t){return function(n){var r;return e.fullFields?r=i7(t,e.fullFields):r=t[n.field||e.fullField],a7(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function U0(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ra({},e[n],r):e[n]=r;}}return e}var d$=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||yn(n,i||t.type))&&o.push(ur(a.messages.required,t.fullField));},s7=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(ur(a.messages.whitespace,t.fullField));},lc,l7=function(){if(lc)return lc;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+v+g+h+")"+p+b;return lc=new RegExp("(?:^"+y+"$)","i"),lc},X0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},fs={integer:function(t){return fs.number(t)&&parseInt(t,10)===t},float:function(t){return fs.number(t)&&!fs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return !0;try{return !!new RegExp(t)}catch{return !1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!fs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(X0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(l7())},hex:function(t){return typeof t=="string"&&!!t.match(X0.hex)}},c7=function(t,n,r,o,a){if(t.required&&n===void 0){d$(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?fs[s](n)||o.push(ur(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ur(a.messages.types[s],t.fullField,t.type));},u7=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",v=typeof n=="string",g=Array.isArray(n);if(f?d="number":v?d="string":g&&(d="array"),!d)return !1;g&&(u=n.length),v&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(ur(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(ur(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(ur(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(ur(a.messages[d].range,t.fullField,t.min,t.max));},La="enum",d7=function(t,n,r,o,a){t[La]=Array.isArray(t[La])?t[La]:[],t[La].indexOf(n)===-1&&o.push(ur(a.messages[La],t.fullField,t[La].join(", ")));},f7=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ur(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(ur(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Pt={required:d$,whitespace:s7,type:c7,range:u7,enum:d7,pattern:f7},m7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n,"string")&&!t.required)return r();Pt.required(t,n,o,i,a,"string"),yn(n,"string")||(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a),Pt.pattern(t,n,o,i,a),t.whitespace===!0&&Pt.whitespace(t,n,o,i,a));}r(i);},v7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},g7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},h7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},p7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),yn(n)||Pt.type(t,n,o,i,a);}r(i);},b7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},y7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},C7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Pt.required(t,n,o,i,a,"array"),n!=null&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},S7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},w7="enum",$7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt[w7](t,n,o,i,a);}r(i);},x7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n,"string")&&!t.required)return r();Pt.required(t,n,o,i,a),yn(n,"string")||Pt.pattern(t,n,o,i,a);}r(i);},E7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n,"date")&&!t.required)return r();if(Pt.required(t,n,o,i,a),!yn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Pt.type(t,l,o,i,a),l&&Pt.range(t,l.getTime(),o,i,a);}}r(i);},I7=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;Pt.required(t,n,o,i,a,s),r(i);},Bf=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yn(n,i)&&!t.required)return r();Pt.required(t,n,o,s,a,i),yn(n,i)||Pt.type(t,n,o,s,a);}r(s);},O7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,o,i,a);}r(i);},Ss={string:m7,method:v7,number:g7,boolean:h7,regexp:p7,integer:b7,float:y7,array:C7,object:S7,enum:$7,pattern:x7,date:E7,url:Bf,hex:Bf,email:Bf,required:I7,any:O7};function mv(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vv=mv(),wl=function(){function e(n){this.rules=null,this._messages=vv,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=U0(mv(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(h){var p=[],b={};function y(w){if(Array.isArray(w)){var x;p=(x=p).concat.apply(x,w);}else p.push(w);}for(var C=0;C<h.length;C++)y(h[C]);p.length?(b=fv(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===vv&&(d=mv()),U0(d,l.messages),l.messages=d;}else l.messages=this.messages();var f={},v=l.keys||Object.keys(this.rules);v.forEach(function(h){var p=i.rules[h],b=s[h];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===r&&(s=ra({},s)),b=s[h]=C.transform(b)),typeof C=="function"?C={validator:C}:C=ra({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=h,C.fullField=C.fullField||h,C.type=i.getType(C),f[h]=f[h]||[],f[h].push({rule:C,value:b,source:s,field:h}));});});var g={};return o7(f,l,function(h,p){var b=h.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&h.value),b.field=h.field;function C($,S){return ra({},S,{fullField:b.fullField+"."+$,fullFields:b.fullFields?[].concat(b.fullFields,[$]):[$]})}function w($){$===void 0&&($=[]);var S=Array.isArray($)?$:[$];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var E=S.map(K0(b,s));if(l.first&&E.length)return g[b.field]=1,p(E);if(!y)p(E);else {if(b.required&&!h.value)return b.message!==void 0?E=[].concat(b.message).map(K0(b,s)):l.error&&(E=[l.error(b,ur(l.messages.required,b.field))]),p(E);var I={};b.defaultField&&Object.keys(h.value).map(function(M){I[M]=b.defaultField;}),I=ra({},I,h.rule.fields);var O={};Object.keys(I).forEach(function(M){var k=I[M],A=Array.isArray(k)?k:[k];O[M]=A.map(C.bind(null,M));});var R=new e(O);R.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),R.validate(h.value,h.rule.options||l,function(M){var k=[];E&&E.length&&k.push.apply(k,E),M&&M.length&&k.push.apply(k,M),p(k.length?k:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,h.value,w,h.source,l);else if(b.validator){try{x=b.validator(b,h.value,w,h.source,l);}catch($){console.error==null||console.error($),l.suppressValidatorError||setTimeout(function(){throw $},0),w($.message);}x===!0?w():x===!1?w(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message);}x&&x.then&&x.then(function(){return w()},function($){return w($)});},function(h){u(h);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ss.hasOwnProperty(r.type))throw new Error(ur("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?Ss.required:Ss[this.getType(r)]||void 0},e}();wl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ss[t]=n;};wl.warning=e7;wl.messages=vv;wl.validators=Ss;var sr="'${name}' is not a valid ${type}",f$={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},q0=wl;function P7(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Y0="CODE_LOGIC_ERROR";function gv(e,t,n,r,o){return hv.apply(this,arguments)}function hv(){return hv=Ea(Xn().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,f,v,g;return Xn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=X({},r),delete i.ruleIndex,q0.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Y0)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new q0(F({},t,[i])),u=ti(f$,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(F({},t,n),X({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var C=b.message,w=C===Y0?u.default:C;return m__namespace.isValidElement(w)?m__namespace.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return gv("".concat(t,".").concat(y),b,l,o,a)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return [].concat(Ae(b),Ae(y))},[]));case 23:return v=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=d.map(function(b){return typeof b=="string"?P7(b,v):b}),p.abrupt("return",g);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),hv.apply(this,arguments)}function R7(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var f=u.validator,v=X(X({},u),{},{ruleIndex:d});return f&&(v.validator=function(g,h,p){var b=!1,y=function(){for(var x=arguments.length,$=new Array(x),S=0;S<x;S++)$[S]=arguments[S];Promise.resolve().then(function(){$n(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,$);});},C=f(g,h,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",$n(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function(w){p(w||" ");});}),v}).sort(function(u,d){var f=u.warningOnly,v=u.ruleIndex,g=d.warningOnly,h=d.ruleIndex;return !!f==!!g?v-h:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Ea(Xn().mark(function d(f,v){var g,h,p;return Xn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return h=s[g],y.next=5,gv(i,t,h,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return v([{errors:p,rule:h}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return gv(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?_7(c):M7(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function M7(e){return pv.apply(this,arguments)}function pv(){return pv=Ea(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Ae(o));return i}));case 1:case"end":return r.stop()}},e)})),pv.apply(this,arguments)}function _7(e){return bv.apply(this,arguments)}function bv(){return bv=Ea(Xn().mark(function e(t){var n;return Xn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([]);});});}));case 2:case"end":return o.stop()}},e)})),bv.apply(this,arguments)}function dn(e){return cv(e)}function Q0(e,t){var n={};return t.forEach(function(r){var o=Dr(e,r);n=Ar(n,r,o);}),n}function ai(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return m$(t,r,n)})}function m$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function T7(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ut(e)!=="object"||ut(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ae(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function N7(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ut(t.target)==="object"&&e in t.target?t.target[e]:t}function Z0(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ae(e.slice(0,n)),[o],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):a<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[o],Ae(e.slice(n+1,r))):e}var k7=["name"],Sr=[];function J0(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var yh=function(e){Vo(n,e);var t=Go(n);function n(r){var o;if(In(this,n),o=t.call(this,r),F(Ke(o),"state",{resetCount:0}),F(Ke(o),"cancelRegisterFunc",null),F(Ke(o),"mounted",!1),F(Ke(o),"touched",!1),F(Ke(o),"dirty",!1),F(Ke(o),"validatePromise",void 0),F(Ke(o),"prevValidating",void 0),F(Ke(o),"errors",Sr),F(Ke(o),"warnings",Sr),F(Ke(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,dn(d)),o.cancelRegisterFunc=null;}),F(Ke(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Ae(f),Ae(c)):[]}),F(Ke(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),F(Ke(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),F(Ke(o),"metaCache",null),F(Ke(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=X(X({},o.getMeta()),{},{destroy:l});dl(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),F(Ke(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,v=d.dependencies,g=v===void 0?[]:v,h=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),w=c&&ai(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{var x=u.data;if(w){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Sr),"warnings"in x&&(o.warnings=x.warnings||Sr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&ai(c,b,!0)){o.reRender();return}if(f&&!b.length&&J0(f,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=g.map(dn);if($.some(function(S){return ai(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!g.length||b.length||f)&&J0(f,l,p,y,C,u)){o.reRender();return}break}f===!0&&o.reRender();}),F(Ke(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,v=d.validateOnly,g=v===void 0?!1:v,h=Promise.resolve().then(Ea(Xn().mark(function p(){var b,y,C,w,x,$,S;return Xn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(o.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,w=b.messageVariables,x=b.validateDebounce,$=o.getRules(),f&&($=$.filter(function(O){return O}).filter(function(O){var R=O.validateTrigger;if(!R)return !0;var M=cv(R);return M.includes(f)})),!(x&&f)){I.next=10;break}return I.next=8,new Promise(function(O){setTimeout(O,x);});case 8:if(o.validatePromise===h){I.next=10;break}return I.abrupt("return",[]);case 10:return S=R7(c,u,$,l,C,w),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sr;if(o.validatePromise===h){var R;o.validatePromise=null;var M=[],k=[];(R=O.forEach)===null||R===void 0||R.call(O,function(A){var L=A.rule.warningOnly,T=A.errors,P=T===void 0?Sr:T;L?k.push.apply(k,Ae(P)):M.push.apply(M,Ae(P));}),o.errors=M,o.warnings=k,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return g||(o.validatePromise=h,o.dirty=!0,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent(),o.reRender()),h}),F(Ke(o),"isFieldValidating",function(){return !!o.validatePromise}),F(Ke(o),"isFieldTouched",function(){return o.touched}),F(Ke(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(na),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),F(Ke(o),"getErrors",function(){return o.errors}),F(Ke(o),"getWarnings",function(){return o.warnings}),F(Ke(o),"isListField",function(){return o.props.isListField}),F(Ke(o),"isList",function(){return o.props.isList}),F(Ke(o),"isPreserve",function(){return o.props.preserve}),F(Ke(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),F(Ke(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return X(X({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=vr(l);return u.length!==1||!m__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),F(Ke(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Dr(l||c(!0),u)}),F(Ke(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,v=c.normalize,g=c.valuePropName,h=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,x=C(na),$=x.dispatch,S=o.getValue(),E=h||function(M){return F({},g,M)},I=l[u],O=X(X({},l),E(S));O[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,k=arguments.length,A=new Array(k),L=0;L<k;L++)A[L]=arguments[L];f?M=f.apply(void 0,A):M=N7.apply(void 0,[g].concat(A)),v&&(M=v(M,S,w(!0))),$({type:"updateValue",namePath:y,value:M}),I&&I.apply(void 0,A);};var R=cv(b||[]);return R.forEach(function(M){var k=O[M];O[M]=function(){k&&k.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&$({type:"validateField",namePath:y,triggerName:M});};}),O}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(na),s=i.initEntityValue;s(Ke(o));}return o}return On(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(na),c=l.registerField;this.cancelRegisterFunc=c(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:m__namespace.isValidElement(s)?c=m__namespace.cloneElement(s,this.getControlled(s.props)):($n(!s,"`children` of Field is not validate ReactElement."),c=s),m__namespace.createElement(m__namespace.Fragment,{key:o},c)}}]),n}(m__namespace.Component);F(yh,"contextType",$i);F(yh,"defaultProps",{trigger:"onChange",valuePropName:"value"});function v$(e){var t=e.name,n=tt(e,k7),r=m__namespace.useContext($i),o=m__namespace.useContext(tu),a=t!==void 0?dn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),m__namespace.createElement(yh,Re({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function A7(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m__namespace.useContext($i),l=m__namespace.useContext(tu),c=m__namespace.useRef({keys:[],id:0}),u=c.current,d=m__namespace.useMemo(function(){var h=dn(s.prefixName)||[];return [].concat(Ae(h),Ae(dn(t)))},[s.prefixName,t]),f=m__namespace.useMemo(function(){return X(X({},s),{},{prefixName:d})},[s,d]),v=m__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,y=p[b];return [u.keys[y],p.slice(b+1)]}}},[d]);if(typeof r!="function")return $n(!1,"Form.List only accepts function as children."),null;var g=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return m__namespace.createElement(tu.Provider,{value:v},m__namespace.createElement($i.Provider,{value:f},m__namespace.createElement(v$,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(h,p){var b=h.value,y=b===void 0?[]:b,C=h.onChange,w=s.getFieldValue,x=function(){var I=w(d||[]);return I||[]},$={add:function(I,O){var R=x();O>=0&&O<=R.length?(u.keys=[].concat(Ae(u.keys.slice(0,O)),[u.id],Ae(u.keys.slice(O))),C([].concat(Ae(R.slice(0,O)),[I],Ae(R.slice(O))))):(u.keys=[].concat(Ae(u.keys),[u.id]),C([].concat(Ae(R),[I]))),u.id+=1;},remove:function(I){var O=x(),R=new Set(Array.isArray(I)?I:[I]);R.size<=0||(u.keys=u.keys.filter(function(M,k){return !R.has(k)}),C(O.filter(function(M,k){return !R.has(k)})));},move:function(I,O){if(I!==O){var R=x();I<0||I>=R.length||O<0||O>=R.length||(u.keys=Z0(u.keys,I,O),C(Z0(R,I,O)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(E,I){var O=u.keys[I];return O===void 0&&(u.keys[I]=u.id,O=u.keys[I],u.id+=1),{name:I,key:O,isListField:!0}}),$,p)})))}function L7(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var g$="__@field_split__";function Hf(e){return e.map(function(t){return "".concat(ut(t),":").concat(t)}).join(g$)}var Da=function(){function e(){In(this,e),F(this,"kvs",new Map);}return On(e,[{key:"set",value:function(n,r){this.kvs.set(Hf(n),r);}},{key:"get",value:function(n){return this.kvs.get(Hf(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Hf(n));}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var o=J(r,2),a=o[0],i=o[1],s=a.split(g$);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=J(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),D7=["name"],z7=On(function e(t){var n=this;In(this,e),F(this,"formHooked",!1),F(this,"forceRootUpdate",void 0),F(this,"subscribable",!0),F(this,"store",{}),F(this,"fieldEntities",[]),F(this,"initialValues",{}),F(this,"callbacks",{}),F(this,"validateMessages",null),F(this,"preserve",null),F(this,"lastValidatePromise",null),F(this,"getForm",function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),F(this,"getInternalHooks",function(r){return r===na?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):($n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),F(this,"useSubscribe",function(r){n.subscribable=r;}),F(this,"prevWithoutPreserves",null),F(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=ti(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Ar(i,l,Dr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),F(this,"destroyForm",function(){var r=new Da;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),F(this,"getInitialValue",function(r){var o=Dr(n.initialValues,r);return r.length?ti(o):o}),F(this,"setCallbacks",function(r){n.callbacks=r;}),F(this,"setValidateMessages",function(r){n.validateMessages=r;}),F(this,"setPreserve",function(r){n.preserve=r;}),F(this,"watchList",[]),F(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),F(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),F(this,"timeoutId",null),F(this,"warningUnhooked",function(){}),F(this,"updateStore",function(r){n.store=r;}),F(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),F(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Da;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),F(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=dn(a);return o.get(i)||{INVALIDATE_NAME_PATH:dn(a)}})}),F(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ut(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,v="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,h;if((g=(h=u).isList)!==null&&g!==void 0&&g.call(h))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)c.push(v);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(v);}}),Q0(n.store,c.map(dn))}),F(this,"getFieldValue",function(r){n.warningUnhooked();var o=dn(r);return Dr(n.store,o)}),F(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:dn(r[i]),errors:[],warnings:[]}})}),F(this,"getFieldError",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.errors}),F(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.warnings}),F(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(dn),c=!1):(l=null,c=i):(l=i.map(dn),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new Da;l.forEach(function(h){f.set(h,[]);}),u.forEach(function(h){var p=h.getNamePath();l.forEach(function(b){b.every(function(y,C){return p[C]===y})&&f.update(b,function(y){return [].concat(Ae(y),[h])});});});var v=function(p){return p.some(d)},g=f.map(function(h){var p=h.value;return p});return c?g.every(v):g.some(v)}),F(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),F(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(dn);return o.some(function(i){var s=i.getNamePath();return ai(a,s)&&i.isFieldValidating()})}),F(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),F(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Da,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),v=n.getInitialValue(f);if(v!==void 0)$n(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var g=o.get(f);if(g&&g.size>1)$n(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var h=n.getFieldValue(f),p=u.isListField();!p&&(!r.skipExist||h===void 0)&&n.updateStore(Ar(n.store,f,Ae(g)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ae(Ae(c).map(function(d){return d.entity})));}})):s=a,i(s);}),F(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ti(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Ar(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),F(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=tt(i,D7),c=dn(s);a.push(c),"value"in l&&n.updateStore(Ar(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),F(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=X(X({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),F(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Dr(n.store,a);i===void 0&&n.updateStore(Ar(n.store,a,o));}}),F(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),F(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !m$(d.getNamePath(),o)})){var u=n.store;n.updateStore(Ar(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),F(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),F(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=X(X({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i);});}else n.forceRootUpdate();}),F(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ae(a))}),a}),F(this,"updateValue",function(r,o){var a=dn(r),i=n.store;n.updateStore(Ar(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=Q0(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Ae(s)));}),F(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ti(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),F(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),F(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Da;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=dn(u);i.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f));}});};return s(r),a}),F(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Da;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=i.filter(function(c){var u=c.name;return ai(r,u)});l.length&&a(l,i);}}),F(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(dn):[],c=[],u=String(Date.now()),d=new Set,f=i||{},v=f.recursive,g=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||ai(l,C,v)){var w=y.validateRules(X({validateMessages:X(X({},f$),n.validateMessages)},i));c.push(w.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(x){var $,S=[],E=[];return ($=x.forEach)===null||$===void 0||$.call(x,function(I){var O=I.rule.warningOnly,R=I.errors;O?E.push.apply(E,Ae(R)):S.push.apply(S,Ae(R));}),S.length?Promise.reject({name:C,errors:S,warnings:E}):{name:C,errors:S,warnings:E}}));}}});var h=L7(c);n.lastValidatePromise=h,h.catch(function(y){return y}).then(function(y){var C=y.map(function(w){var x=w.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==h})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),F(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function h$(e){var t=m__namespace.useRef(),n=m__namespace.useState({}),r=J(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new z7(a);t.current=i.getForm();}return [t.current]}var yv=m__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),j7=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=m__namespace.useContext(yv),s=m__namespace.useRef({});return m__namespace.createElement(yv.Provider,{value:X(X({},i),{},{validateMessages:X(X({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=X(X({},s.current),{},F({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=X({},s.current);delete u[c],s.current=u,i.unregisterForm(c);}})},a)},F7=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],B7=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,v=f===void 0?"onChange":f,g=t.onValuesChange,h=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=tt(t,F7),C=m__namespace.useContext(yv),w=h$(i),x=J(w,1),$=x[0],S=$.getInternalHooks(na),E=S.useSubscribe,I=S.setInitialValues,O=S.setCallbacks,R=S.setValidateMessages,M=S.setPreserve,k=S.destroyForm;m__namespace.useImperativeHandle(n,function(){return $}),m__namespace.useEffect(function(){return C.registerForm(r,$),function(){C.unregisterForm(r);}},[C,$,r]),R(X(X({},C.validateMessages),d)),O({onValuesChange:g,onFieldsChange:function(B){if(C.triggerFormChange(r,B),h){for(var V=arguments.length,G=new Array(V>1?V-1:0),q=1;q<V;q++)G[q-1]=arguments[q];h.apply(void 0,[B].concat(G));}},onFinish:function(B){C.triggerFormFinish(r,B),p&&p(B);},onFinishFailed:b}),M(s);var A=m__namespace.useRef(null);I(o,!A.current),A.current||(A.current=!0),m__namespace.useEffect(function(){return k},[]);var L,T=typeof l=="function";if(T){var P=$.getFieldsValue(!0);L=l(P,$);}else L=l;E(!T);var _=m__namespace.useRef();m__namespace.useEffect(function(){T7(_.current||[],a||[])||$.setFields(a||[]),_.current=a;},[a,$]);var z=m__namespace.useMemo(function(){return X(X({},$),{},{validateTrigger:v})},[$,v]),j=m__namespace.createElement(tu.Provider,{value:null},m__namespace.createElement($i.Provider,{value:z},L));return u===!1?j:m__namespace.createElement(u,Re({},y,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),$.submit();},onReset:function(B){var V;B.preventDefault(),$.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,B);}}),j)};function ey(e){try{return JSON.stringify(e)}catch{return Math.random()}}function H7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,a=t[1],i=a===void 0?{}:a,s=qH(i)?{form:i}:i,l=s.form,c=m.useState(),u=J(c,2),d=u[0],f=u[1],v=m.useMemo(function(){return ey(d)},[d]),g=m.useRef(v);g.current=v;var h=m.useContext($i),p=l||h,b=p&&p._init,y=dn(o),C=m.useRef(y);return C.current=y,m.useEffect(function(){if(b){var w=p.getFieldsValue,x=p.getInternalHooks,$=x(na),S=$.registerWatch,E=S(function(O,R){var M=Dr(s.preserve?R:O,C.current),k=ey(M);g.current!==k&&(g.current=k,f(M));}),I=Dr(s.preserve?w(!0):w(),C.current);return d!==I&&f(I),E}},[b]),d}var W7=m__namespace.forwardRef(B7),$l=W7;$l.FormProvider=j7;$l.Field=v$;$l.List=A7;$l.useForm=h$;$l.useWatch=H7;function Fn(e,t){var n=X({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Ir=m__namespace.createContext({}),Hs=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(Ir),a=m.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return m__namespace.createElement(Ir.Provider,{value:a},t)},V7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Ft(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"}})}},G7=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:g,dotColorDisabled:h,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Ft(e)),{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:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},va(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:y?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},K7=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:v,controlHeightSM:g,paddingXS:h,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:E,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:R,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:v,fontSize:f,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:h-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},va(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:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:k,borderColor:k},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:x,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},ty=e=>e-4*2,p$=Kt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=ty(r),s=St(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [V7(s),G7(s),K7(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:v}=e,g=4,h=a,p=t?ty(h):h-(g+o)*2;return {radioSize:h,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var U7=function(e,t){var n={};for(var r in 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 X7=(e,t)=>{var n,r;const o=m__namespace.useContext(l$),a=m__namespace.useContext(c$),{getPrefixCls:i,direction:s,radio:l}=m__namespace.useContext(rt),c=m__namespace.useRef(null),u=qn(t,c),{isFormItemInput:d}=m__namespace.useContext(Ir),f=R=>{var M,k;(M=e.onChange)===null||M===void 0||M.call(e,R),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,R);},{prefixCls:v,className:g,rootClassName:h,children:p,style:b}=e,y=U7(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",v),w=((o==null?void 0:o.optionType)||a)==="button",x=w?`${C}-button`:C,[$,S]=p$(C),E=Object.assign({},y),I=m__namespace.useContext(Ur);o&&(E.name=o.name,E.onChange=f,E.checked=e.value===o.value,E.disabled=(n=E.disabled)!==null&&n!==void 0?n:o.disabled),E.disabled=(r=E.disabled)!==null&&r!==void 0?r:I;const O=K(`${x}-wrapper`,{[`${x}-wrapper-checked`]:E.checked,[`${x}-wrapper-disabled`]:E.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,h,S);return $(m__namespace.createElement(Sl,{component:"Radio",disabled:E.disabled},m__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(u$,Object.assign({},E,{className:K(E.className,!w&&Ld),type:"radio",prefixCls:x,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},q7=m__namespace.forwardRef(X7),nu=q7,Y7=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(rt),[o,a]=qt(e.defaultValue,{value:e.value}),i=M=>{const k=o,A=M.target.value;"value"in e||a(A);const{onChange:L}=e;L&&A!==k&&L(M);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:v,size:g,style:h,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w}=e,x=n("radio",s),$=`${x}-group`,[S,E]=p$(x);let I=v;u&&u.length>0&&(I=u.map(M=>typeof M=="string"||typeof M=="number"?m__namespace.createElement(nu,{key:M.toString(),prefixCls:x,disabled:f,value:M,checked:o===M},M):m__namespace.createElement(nu,{key:`radio-group-value-options-${M.value}`,prefixCls:x,disabled:M.disabled||f,value:M.value,checked:o===M.value,title:M.title,style:M.style,id:M.id,required:M.required},M.label)));const O=nr(g),R=K($,`${$}-${d}`,{[`${$}-${O}`]:O,[`${$}-rtl`]:r==="rtl"},l,c,E);return S(m__namespace.createElement("div",Object.assign({},wi(e,{aria:!0,data:!0}),{className:R,style:h,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w,id:p,ref:t}),m__namespace.createElement(OH,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),Q7=m__namespace.memo(Y7);var Z7=function(e,t){var n={};for(var r in 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 J7=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(rt),{prefixCls:r}=e,o=Z7(e,["prefixCls"]),a=n("radio",r);return m__namespace.createElement(PH,{value:"button"},m__namespace.createElement(nu,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},eW=m__namespace.forwardRef(J7),Dd=nu;Dd.Button=eW;Dd.Group=Q7;Dd.__ANT_RADIO=!0;const ny=Dd;function tW(e,t){const n=Object.keys(e),r=_g(JSON.parse(localStorage.getItem(t)||"{}"),n),o=Jn({...e,...r});return td(o,()=>{const a=Ds(o);localStorage.setItem(t,JSON.stringify(a));}),o}const nW=m.createContext(null),b$=nW,rW=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Ft(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ft(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({},Ft(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},va(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}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,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 oW(e,t){const n=St(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [rW(n)]}const y$=Kt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [oW(n,e)]});var aW=function(e,t){var n={};for(var r in 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 iW=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,v=aW(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:h,checkbox:p}=m__namespace.useContext(rt),b=m__namespace.useContext(b$),{isFormItemInput:y}=m__namespace.useContext(Ir),C=m__namespace.useContext(Ur),w=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:C,x=m__namespace.useRef(v.value);m__namespace.useEffect(()=>{b==null||b.registerValue(v.value);},[]),m__namespace.useEffect(()=>{if(!d)return v.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(v.value),x.current=v.value),()=>b==null?void 0:b.cancelValue(v.value)},[v.value]);const $=g("checkbox",r),[S,E]=y$($),I=Object.assign({},v);b&&!d&&(I.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),b.toggleOption&&b.toggleOption({label:i,value:v.value});},I.name=b.name,I.checked=b.value.includes(v.value));const O=K(`${$}-wrapper`,{[`${$}-rtl`]:h==="rtl",[`${$}-wrapper-checked`]:I.checked,[`${$}-wrapper-disabled`]:w,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,E),R=K({[`${$}-indeterminate`]:s},Ld,E),M=s?"mixed":void 0;return S(m__namespace.createElement(Sl,{component:"Checkbox",disabled:w},m__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(u$,Object.assign({"aria-checked":M},I,{prefixCls:$,className:R,disabled:w,ref:t})),i!==void 0&&m__namespace.createElement("span",null,i))))},sW=m__namespace.forwardRef(iW),C$=sW;var lW=function(e,t){var n={};for(var r in 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 cW=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=lW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(rt),[v,g]=m__namespace.useState(u.value||n||[]),[h,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(A=>A.filter(L=>L!==k));},C=k=>{p(A=>[].concat(Ae(A),[k]));},w=k=>{const A=v.indexOf(k.value),L=Ae(v);A===-1?L.push(k.value):L.splice(A,1),"value"in u||g(L),c==null||c(L.filter(T=>h.includes(T)).sort((T,P)=>{const _=b.findIndex(j=>j.value===T),z=b.findIndex(j=>j.value===P);return _-z}));},x=d("checkbox",a),$=`${x}-group`,[S,E]=y$(x),I=Fn(u,["value","disabled"]),O=o.length?b.map(k=>m__namespace.createElement(C$,{prefixCls:x,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:v.includes(k.value),onChange:k.onChange,className:`${$}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,R={toggleOption:w,value:v,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},M=K($,{[`${$}-rtl`]:f==="rtl"},i,s,E);return S(m__namespace.createElement("div",Object.assign({className:M,style:l},I,{ref:t}),m__namespace.createElement(b$.Provider,{value:R},O)))},uW=m__namespace.forwardRef(cW),dW=m__namespace.memo(uW),Ch=C$;Ch.Group=dW;Ch.__ANT_CHECKBOX=!0;const xl=Ch;function Rn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!en()[e],s=m.useCallback(c=>{const u=c.target.checked;zn({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(ml,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(xl,{...o,checked:i,onChange:s,children:l})}var fW={name:"1qkltea",styles:"margin-left:5px"};const mW=function(){const e=fW;return be(It,{children:[D(Rn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(Rn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function El({tooltip:e,iconProps:t,tooltipProps:n}){return D(It,{children:e&&D(Rd,{...n,title:e,children:D(kt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const vW=`${rn}-video-source-tab`,Sh=tW({value:"recommend-app"},vW),ry={name:"qamjgr",styles:"margin-right:4px"},gW={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},hW={name:"s0vnfv",styles:"height:32px"};var pW={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},bW={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function S$({onRefresh:e}){const t=Lg(),n=Il(),{styleUseStandardVideoSourceTab:r}=en(),o=SW();return be(It,{children:[D(ny.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!N5())return $W();Sh.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>D(ny.Button,{css:[gW,r&&hW,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:be("span",{css:bW,children:[D(kt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:ry}),i]})},a))}),D(El,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(It,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>be("div",{css:pW,children:[D(kt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:ry}),i,": ",c]},a))})})]})}const w$=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用 Bilibili App 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",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 中关闭乱序"},{key:"popular-general",icon:"Fire",iconProps:{size:16},label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:!0},{key:"popular-weekly",icon:"TrendTwo",iconProps:{size:15},label:"每周必看",desc:"每周五晚 18:00 更新"}],ru=w$.reduce((e,t)=>({...e,[t.key]:t}),{}),ii=w$.map(e=>e.key);function yW(){const{hidingTabKeys:e}=en();return m.useMemo(()=>ii.filter(t=>!e.includes(t)),[e])}function $$(e){return ii.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=ii.indexOf(t)),o===-1&&(o=ii.indexOf(n)),r-o})}function CW(){const{customTabKeysOrder:e}=en();return m.useMemo(()=>$$(e),[e])}function SW(){const{hidingTabKeys:e,customTabKeysOrder:t}=en(),n=Lg();return m.useMemo(()=>{let r=$$(t);return r=r.filter(o=>!e.includes(o)||!n&&o==="recommend-app"),r.map(o=>ru[o])},[e,t,n])}function x$(e,t){return ii.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Il(){return x$(er(Sh).value,Lg())}function wW(){return x$(Sh.value,ll())}function $W(){return Ot("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const E$=["xxl","xl","lg","md","sm","xs"],xW=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)`}),EW=e=>{const t=e,n=[].concat(E$).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function IW(){const[,e]=tr(),t=xW(EW(e));return m.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function OW(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}function I$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=OW(),r=IW();return Xt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const PW=m__namespace.createContext({}),Cv=PW,RW=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:v,borderRadiusSM:g,lineWidth:h,lineType:p}=e,b=(y,C,w)=>({width:y,height:y,lineHeight:`${y-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${h}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,f)),{"&-lg":Object.assign({},b(s,u,v)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},MW=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},O$=Kt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=St(e,{avatarBg:n,avatarColor:t});return [RW(r),MW(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var _W=function(e,t){var n={};for(var r in 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 TW=(e,t)=>{const[n,r]=m__namespace.useState(1),[o,a]=m__namespace.useState(!1),[i,s]=m__namespace.useState(!0),l=m__namespace.useRef(null),c=m__namespace.useRef(null),u=qn(t,l),{getPrefixCls:d,avatar:f}=m__namespace.useContext(rt),v=m__namespace.useContext(Cv),g=()=>{if(!c.current||!l.current)return;const Y=c.current.offsetWidth,te=l.current.offsetWidth;if(Y!==0&&te!==0){const{gap:W=4}=e;W*2<te&&r(te-W*2<Y?(te-W*2)/Y:1);}};m__namespace.useEffect(()=>{a(!0);},[]),m__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),m__namespace.useEffect(g,[e.gap]);const h=()=>{const{onError:Y}=e;(Y==null?void 0:Y())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:w,icon:x,className:$,rootClassName:S,alt:E,draggable:I,children:O,crossOrigin:R}=e,M=_W(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=nr(Y=>{var te,W;return (W=(te=y??(v==null?void 0:v.size))!==null&&te!==void 0?te:Y)!==null&&W!==void 0?W:"default"}),A=Object.keys(typeof k=="object"?k||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),L=I$(A),T=m__namespace.useMemo(()=>{if(typeof k!="object")return {};const Y=E$.find(W=>L[W]),te=k[Y];return te?{width:te,height:te,lineHeight:`${te}px`,fontSize:te&&(x||O)?te/2:18}:{}},[L,k]),P=d("avatar",p),[_,z]=O$(P),j=K({[`${P}-lg`]:k==="large",[`${P}-sm`]:k==="small"}),H=m__namespace.isValidElement(C),B=b||(v==null?void 0:v.shape)||"circle",V=K(P,j,f==null?void 0:f.className,`${P}-${B}`,{[`${P}-image`]:H||C&&i,[`${P}-icon`]:!!x},$,S,z),G=typeof k=="number"?{width:k,height:k,lineHeight:`${k}px`,fontSize:x?k/2:18}:{};let q;if(typeof C=="string"&&i)q=m__namespace.createElement("img",{src:C,draggable:I,srcSet:w,onError:h,alt:E,crossOrigin:R});else if(H)q=C;else if(x)q=x;else if(o||n!==1){const Y=`scale(${n}) translateX(-50%)`,te={msTransform:Y,WebkitTransform:Y,transform:Y},W=typeof k=="number"?{lineHeight:`${k}px`}:{};q=m__namespace.createElement(Er,{onResize:g},m__namespace.createElement("span",{className:`${P}-string`,ref:c,style:Object.assign(Object.assign({},W),te)},O));}else q=m__namespace.createElement("span",{className:`${P}-string`,style:{opacity:0},ref:c},O);return delete M.onError,delete M.gap,_(m__namespace.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),T),f==null?void 0:f.style),M.style),className:V,ref:u}),q))},NW=m__namespace.forwardRef(TW),P$=NW,xi=e=>e?typeof e=="function"?e():e:null,kW=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return [{[t]:Object.assign(Object.assign({},Ft(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":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},eh(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},AW=e=>{const{componentCls:t}=e;return {[t]:Fs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},LW=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:l,padding:c}=e,u=i-Math.round(s*l),d=u/2,f=u/2-n,v=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${v}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${v}px`}}}},R$=Kt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=St(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [kW(o),AW(o),r&&LW(o),wd(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var DW=function(e,t){var n={};for(var r in 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 zW=(e,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},xi(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},xi(n)))},jW=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return m__namespace.createElement("div",{className:K(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(zg,Object.assign({},e,{className:t,prefixCls:n}),l||zW(n,i,s)))},FW=e=>{const{prefixCls:t}=e,n=DW(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(rt),o=r("popover",t),[a,i]=R$(o);return a(m__namespace.createElement(jW,Object.assign({},n,{prefixCls:o,hashId:i})))},M$=FW;var BW=function(e,t){var n={};for(var r in 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 HW=e=>{let{title:t,content:n,prefixCls:r}=e;return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${r}-title`},xi(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},xi(n)))},_$=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=BW(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(rt),v=f("popover",n),[g,h]=R$(v),p=f(),b=K(a,h);return g(m__namespace.createElement(ml,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:v,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(HW,{prefixCls:v,title:r,content:o}):null,transitionName:bd(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});_$._InternalPanelDoNotUseOrYouWillBeFired=M$;const zd=_$,oy=e=>{const{size:t,shape:n}=m__namespace.useContext(Cv),r=m__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return m__namespace.createElement(Cv.Provider,{value:r},e.children)},WW=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:v}=e,g=t("avatar",r),h=`${g}-group`,[p,b]=O$(g),y=K(h,{[`${h}-rtl`]:n==="rtl"},o,a,b),C=vr(v).map((x,$)=>Un(x,{key:`avatar-key-${$}`})),w=C.length;if(s&&s<w){const x=C.slice(0,s),$=C.slice(s,w);return x.push(m__namespace.createElement(zd,{key:"avatar-popover-key",content:$,trigger:f,placement:d,overlayClassName:`${h}-popover`},m__namespace.createElement(P$,{style:l},`+${w-s}`))),p(m__namespace.createElement(oy,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},x)))}return p(m__namespace.createElement(oy,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},C)))},VW=WW,T$=P$;T$.Group=VW;const ou=T$;var GW={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 KW=GW;function UW(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function XW(e,t){$n(e,"[@ant-design/icons] ".concat(t));}function ay(e){return ut(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ut(e.icon)==="object"||typeof e.icon=="function")}function iy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[UW(n)]=r;}return t},{})}function Sv(e,t,n){return n?m.createElement(e.tag,X(X({key:t},iy(e.attrs)),n),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,X({key:t},iy(e.attrs)),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function N$(e){return yo(e)[0]}function k$(e){return e?Array.isArray(e)?e:[e]:[]}var qW=`
.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);
}
}
`,YW=function(t){var n=m.useContext(th),r=n.csp,o=n.prefixCls,a=qW;o&&(a=a.replace(/anticon/g,o)),m.useEffect(function(){var i=t.current,s=Xc(i);bi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},QW=["icon","className","onClick","style","primaryColor","secondaryColor"],ws={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ZW(e){var t=e.primaryColor,n=e.secondaryColor;ws.primaryColor=t,ws.secondaryColor=n||N$(t),ws.calculated=!!n;}function JW(){return X({},ws)}var jd=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=tt(t,QW),c=m__namespace.useRef(),u=ws;if(i&&(u={primaryColor:i,secondaryColor:s||N$(i)}),YW(c),XW(ay(n),"icon should be icon definiton, but got ".concat(n)),!ay(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=X(X({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Sv(d.icon,"svg-".concat(d.name),X(X({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};jd.displayName="IconReact";jd.getTwoToneColors=JW;jd.setTwoToneColors=ZW;const wh=jd;function A$(e){var t=k$(e),n=J(t,2),r=n[0],o=n[1];return wh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function eV(){var e=wh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var tV=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];A$($z.primary);var Fd=m__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,tV),d=m__namespace.useContext(th),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,h=K(g,v,(n={},F(n,"".concat(v,"-").concat(o.name),!!o.name),F(n,"".concat(v,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=k$(c),C=J(y,2),w=C[0],x=C[1];return m__namespace.createElement("span",Re({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:h}),m__namespace.createElement(wh,{icon:o,primaryColor:w,secondaryColor:x,style:b}))});Fd.displayName="AntdIcon";Fd.getTwoToneColor=eV;Fd.setTwoToneColor=A$;const _n=Fd;var nV=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:KW}))};const Ei=m__namespace.forwardRef(nV);var ge={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>=ge.F1&&n<=ge.F12)return !1;switch(n){case ge.ALT:case ge.CAPS_LOCK:case ge.CONTEXT_MENU:case ge.CTRL:case ge.DOWN:case ge.END:case ge.ESC:case ge.HOME:case ge.INSERT:case ge.LEFT:case ge.MAC_FF_META:case ge.META:case ge.NUMLOCK:case ge.NUM_CENTER:case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAUSE:case ge.PRINT_SCREEN:case ge.RIGHT:case ge.SHIFT:case ge.UP:case ge.WIN_KEY:case ge.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ge.ZERO&&t<=ge.NINE||t>=ge.NUM_ZERO&&t<=ge.NUM_MULTIPLY||t>=ge.A&&t<=ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ge.SPACE:case ge.QUESTION_MARK:case ge.NUM_PLUS:case ge.NUM_MINUS:case ge.NUM_PERIOD:case ge.NUM_DIVISION:case ge.SEMICOLON:case ge.DASH:case ge.EQUALS:case ge.COMMA:case ge.PERIOD:case ge.SLASH:case ge.APOSTROPHE:case ge.SINGLE_QUOTE:case ge.OPEN_SQUARE_BRACKET:case ge.BACKSLASH:case ge.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},rV=ge.ESC,oV=ge.TAB;function aV(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=m__namespace.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r==null||r(!1);}},l=function(){var d;return (d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case rV:s();break;case oV:{var f=!1;i.current||(f=l()),f?d.preventDefault():s();break}}};m__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Rt(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var iV=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=qn(t,a==null?void 0:a.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(a,{ref:Wo(a)?i:void 0}))}),za={adjustX:1,adjustY:1},ja=[0,0],sV={topLeft:{points:["bl","tl"],overflow:za,offset:[0,-4],targetOffset:ja},top:{points:["bc","tc"],overflow:za,offset:[0,-4],targetOffset:ja},topRight:{points:["br","tr"],overflow:za,offset:[0,-4],targetOffset:ja},bottomLeft:{points:["tl","bl"],overflow:za,offset:[0,4],targetOffset:ja},bottom:{points:["tc","bc"],overflow:za,offset:[0,4],targetOffset:ja},bottomRight:{points:["tr","br"],overflow:za,offset:[0,4],targetOffset:ja}},lV=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function cV(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,f=e.placements,v=f===void 0?sV:f,g=e.getPopupContainer,h=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,w=e.trigger,x=w===void 0?["hover"]:w,$=e.autoFocus,S=e.overlay,E=e.children,I=e.onVisibleChange,O=tt(e,lV),R=m.useState(),M=J(R,2),k=M[0],A=M[1],L="visible"in e?C:k,T=m.useRef(null),P=m.useRef(null),_=m.useRef(null);m.useImperativeHandle(t,function(){return T.current});var z=function(W){A(W),I==null||I(W);};aV({visible:L,triggerRef:_,onVisibleChange:z,autoFocus:$,overlayRef:P});var j=function(W){var Z=e.onOverlayClick;A(!1),Z&&Z(W);},H=function(){return m.createElement(iV,{ref:P,overlay:S,prefixCls:i,arrow:o})},B=function(){return typeof S=="function"?H:H()},V=function(){var W=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?W:!Z},G=function(){var W=e.openClassName;return W!==void 0?W:"".concat(i,"-open")},q=m.cloneElement(E,{className:K((n=E.props)===null||n===void 0?void 0:n.className,L&&G()),ref:Wo(E)?qn(_,E.ref):void 0}),Y=p;return !Y&&x.indexOf("contextMenu")!==-1&&(Y=["click"]),m.createElement(hd,Re({builtinPlacements:v},O,{prefixCls:i,ref:T,popupClassName:K(b,F({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:h,hideAction:Y,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:L,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:j,getPopupContainer:g}),q)}const L$=m.forwardRef(cV);function uV(e){return function(n){return m__namespace.createElement(oh,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function $h(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[v,g]=qt(!1,{value:a.open}),{getPrefixCls:h}=m__namespace.useContext(rt),p=h(t||"select",i);m__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(w=>{const x=w[0].target;u(x.offsetHeight+8),f(x.offsetWidth);}),C=setInterval(()=>{var w;const x=n?`.${n(p)}`:`.${p}-dropdown`,$=(w=l.current)===null||w===void 0?void 0:w.querySelector(x);$&&(clearInterval(C),y.observe($));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});return r&&(b=r(b)),m__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},m__namespace.createElement(e,Object.assign({},b)))}return uV(o)}var dV=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fa=void 0;function fV(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,v=e.display,g=e.order,h=e.component,p=h===void 0?"div":h,b=tt(e,dV),y=i&&!v;function C(E){l(c,E);}m__namespace.useEffect(function(){return function(){C(null);}},[]);var w=a&&o!==Fa?a(o):f,x;r||(x={opacity:y?0:1,height:y?0:Fa,overflowY:y?"hidden":Fa,order:i?g:Fa,pointerEvents:y?"none":Fa,position:y?"absolute":Fa});var $={};y&&($["aria-hidden"]=!0);var S=m__namespace.createElement(p,Re({className:K(!r&&n,u),style:X(X({},x),d)},$,b,{ref:t}),w);return i&&(S=m__namespace.createElement(Er,{onResize:function(I){var O=I.offsetWidth;C(O);},disabled:s},S)),S}var $s=m__namespace.forwardRef(fV);$s.displayName="Item";function mV(e){if(typeof MessageChannel>"u")Rt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function vV(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],mV(function(){V1.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function rs(e,t){var n=m__namespace.useState(t),r=J(n,2),o=r[0],a=r[1],i=An(function(s){e(function(){a(s);});});return [o,i]}var au=m.createContext(null),gV=["component"],hV=["className"],pV=["className"],bV=function(t,n){var r=m__namespace.useContext(au);if(!r){var o=t.component,a=o===void 0?"div":o,i=tt(t,gV);return m__namespace.createElement(a,Re({},i,{ref:n}))}var s=r.className,l=tt(r,hV),c=t.className,u=tt(t,pV);return m__namespace.createElement(au.Provider,{value:null},m__namespace.createElement($s,Re({ref:n,className:K(s,c)},l,u)))},D$=m__namespace.forwardRef(bV);D$.displayName="RawItem";var yV=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],z$="responsive",j$="invalidate";function CV(e){return "+ ".concat(e.length," ...")}function SV(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,v=e.className,g=e.maxCount,h=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,x=e.onVisibleChange,$=tt(e,yV),S=d==="full",E=vV(),I=rs(E,null),O=J(I,2),R=O[0],M=O[1],k=R||0,A=rs(E,new Map),L=J(A,2),T=L[0],P=L[1],_=rs(E,0),z=J(_,2),j=z[0],H=z[1],B=rs(E,0),V=J(B,2),G=V[0],q=V[1],Y=rs(E,0),te=J(Y,2),W=te[0],Z=te[1],U=m.useState(null),ue=J(U,2),ie=ue[0],se=ue[1],ee=m.useState(null),ce=J(ee,2),Q=ce[0],le=ce[1],he=m__namespace.useMemo(function(){return Q===null&&S?Number.MAX_SAFE_INTEGER:Q||0},[Q,R]),ne=m.useState(!1),ae=J(ne,2),me=ae[0],Ce=ae[1],ke="".concat(r,"-item"),We=Math.max(j,G),Ge=g===z$,Me=a.length&&Ge,Xe=g===j$,ze=Me||typeof g=="number"&&a.length>g,He=m.useMemo(function(){var Se=a;return Me?R===null&&S?Se=a:Se=a.slice(0,Math.min(a.length,k/u)):typeof g=="number"&&(Se=a.slice(0,g)),Se},[a,u,R,g,Me]),Ie=m.useMemo(function(){return Me?a.slice(he+1):a.slice(He.length)},[a,He,Me,he]),we=m.useCallback(function(Se,fe){var oe;return typeof l=="function"?l(Se):(oe=l&&(Se==null?void 0:Se[l]))!==null&&oe!==void 0?oe:fe},[l]),qe=m.useCallback(i||function(Se){return Se},[i]);function nt(Se,fe,oe){Q===Se&&(fe===void 0||fe===ie)||(le(Se),oe||(Ce(Se<a.length-1),x==null||x(Se)),fe!==void 0&&se(fe));}function bt(Se,fe){M(fe.clientWidth);}function Ze(Se,fe){P(function(oe){var ye=new Map(oe);return fe===null?ye.delete(Se):ye.set(Se,fe),ye});}function Je(Se,fe){q(fe),H(G);}function gt(Se,fe){Z(fe);}function ht(Se){return T.get(we(He[Se],Se))}Xt(function(){if(k&&typeof We=="number"&&He){var Se=W,fe=He.length,oe=fe-1;if(!fe){nt(0,null);return}for(var ye=0;ye<fe;ye+=1){var de=ht(ye);if(S&&(de=de||0),de===void 0){nt(ye-1,void 0,!0);break}if(Se+=de,oe===0&&Se<=k||ye===oe-1&&Se+ht(oe)<=k){nt(oe,null);break}else if(Se+We>k){nt(ye-1,Se-de-W+G);break}}b&&ht(0)+W>k&&se(null);}},[k,T,G,W,we,He]);var st=me&&!!Ie.length,dt={};ie!==null&&Me&&(dt={position:"absolute",left:ie,top:0});var et={prefixCls:ke,responsive:Me,component:w,invalidate:Xe},$e=s?function(Se,fe){var oe=we(Se,fe);return m__namespace.createElement(au.Provider,{key:oe,value:X(X({},et),{},{order:fe,item:Se,itemKey:oe,registerSize:Ze,display:fe<=he})},s(Se,fe))}:function(Se,fe){var oe=we(Se,fe);return m__namespace.createElement($s,Re({},et,{order:fe,key:oe,item:Se,renderItem:qe,itemKey:oe,registerSize:Ze,display:fe<=he}))},xe,_e={order:st?he:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:Je,display:st};if(p)p&&(xe=m__namespace.createElement(au.Provider,{value:X(X({},et),_e)},p(Ie)));else {var ve=h||CV;xe=m__namespace.createElement($s,Re({},et,_e),typeof ve=="function"?ve(Ie):ve);}var Te=m__namespace.createElement(C,Re({className:K(!Xe&&r,v),style:f,ref:t},$),He.map($e),ze?xe:null,b&&m__namespace.createElement($s,Re({},et,{responsive:Ge,responsiveDisabled:!Me,order:he,className:"".concat(ke,"-suffix"),registerSize:gt,display:!0,style:dt}),b));return Ge&&(Te=m__namespace.createElement(Er,{onResize:bt,disabled:!Me},Te)),Te}var io=m__namespace.forwardRef(SV);io.displayName="Overflow";io.Item=D$;io.RESPONSIVE=z$;io.INVALIDATE=j$;var F$=m__namespace.createContext(null);function xh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function B$(e){var t=m__namespace.useContext(F$);return xh(t,e)}var wV=["children","locked"],Br=m__namespace.createContext(null);function $V(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ws(e){var t=e.children,n=e.locked,r=tt(e,wV),o=m__namespace.useContext(Br),a=cl(function(){return $V(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!dl(i[1],s[1],!0))});return m__namespace.createElement(Br.Provider,{value:a},t)}var xV=[],H$=m__namespace.createContext(null);function Bd(){return m__namespace.useContext(H$)}var W$=m__namespace.createContext(xV);function Wi(e){var t=m__namespace.useContext(W$);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var V$=m__namespace.createContext(null),Eh=m__namespace.createContext({});function sy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Kg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function EV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return sy(r,t)});return sy(e,t)&&n.unshift(e),n}var wv=ge.LEFT,$v=ge.RIGHT,xv=ge.UP,Pc=ge.DOWN,Rc=ge.ENTER,G$=ge.ESC,os=ge.HOME,as=ge.END,ly=[xv,Pc,wv,$v];function IV(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Rc)return {inlineTrigger:!0};var f=(o={},F(o,xv,l),F(o,Pc,c),o),v=(a={},F(a,wv,n?c:l),F(a,$v,n?l:c),F(a,Pc,u),F(a,Rc,u),a),g=(i={},F(i,xv,l),F(i,Pc,c),F(i,Rc,u),F(i,G$,d),F(i,wv,n?u:d),F(i,$v,n?d:u),i),h={inline:f,horizontal:v,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},p=(s=h["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function OV(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function PV(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function K$(e,t){var n=EV(e,!0);return n.filter(function(r){return t.has(r)})}function cy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=K$(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function RV(e,t,n,r,o,a,i,s,l,c){var u=m__namespace.useRef(),d=m__namespace.useRef();d.current=t;var f=function(){Rt.cancel(u.current);};return m__namespace.useEffect(function(){return function(){f();}},[]),function(v){var g=v.which;if([].concat(ly,[Rc,G$,os,as]).includes(g)){var h,p,b,y=function(){h=new Set,p=new Map,b=new Map;var L=a();return L.forEach(function(T){var P=document.querySelector("[data-menu-id='".concat(xh(r,T),"']"));P&&(h.add(P),b.set(P,T),p.set(T,P));}),h};y();var C=p.get(t),w=PV(C,h),x=b.get(w),$=IV(e,i(x,!0).length===1,n,g);if(!$&&g!==os&&g!==as)return;(ly.includes(g)||[os,as].includes(g))&&v.preventDefault();var S=function(L){if(L){var T=L,P=L.querySelector("a");P!=null&&P.getAttribute("href")&&(T=P);var _=b.get(L);s(_),f(),u.current=Rt(function(){d.current===_&&T.focus();});}};if([os,as].includes(g)||$.sibling||!w){var E;!w||e==="inline"?E=o.current:E=OV(w);var I,O=K$(E,h);g===os?I=O[0]:g===as?I=O[O.length-1]:I=cy(E,h,w,$.offset),S(I);}else if($.inlineTrigger)l(x);else if($.offset>0)l(x,!0),f(),u.current=Rt(function(){y();var A=w.getAttribute("aria-controls"),L=document.getElementById(A),T=cy(L,h);S(T);},5);else if($.offset<0){var R=i(x,!0),M=R[R.length-2],k=p.get(M);l(M,!1),S(k);}}c==null||c(v);}}function MV(e){Promise.resolve().then(e);}var Ih="__RC_UTIL_PATH_SPLIT__",uy=function(t){return t.join(Ih)},_V=function(t){return t.split(Ih)},Ev="rc-menu-more";function TV(){var e=m__namespace.useState({}),t=J(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),a=m__namespace.useState([]),i=J(a,2),s=i[0],l=i[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(C,w){var x=uy(w);o.current.set(x,C),r.current.set(C,x),c.current+=1;var $=c.current;MV(function(){$===c.current&&d();});},[]),v=m.useCallback(function(C,w){var x=uy(w);o.current.delete(x),r.current.delete(C);},[]),g=m.useCallback(function(C){l(C);},[]),h=m.useCallback(function(C,w){var x=r.current.get(C)||"",$=_V(x);return w&&s.includes($[0])&&$.unshift(Ev),$},[s]),p=m.useCallback(function(C,w){return C.some(function(x){var $=h(x,!0);return $.includes(w)})},[h]),b=function(){var w=Ae(r.current.keys());return s.length&&w.push(Ev),w},y=m.useCallback(function(C){var w="".concat(r.current.get(C)).concat(Ih),x=new Set;return Ae(o.current.keys()).forEach(function($){$.startsWith(w)&&x.add(o.current.get($));}),x},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:v,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:h,getKeys:b,getSubPathKeys:y}}function ms(e){var t=m__namespace.useRef(e);t.current=e;var n=m__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var NV=Math.random().toFixed(5).toString().slice(2),dy=0;function kV(e){var t=qt(e,{value:e}),n=J(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){dy+=1;var a="".concat(NV,"-").concat(dy);o("rc-menu-uuid-".concat(a));},[]),r}function U$(e,t,n,r){var o=m__namespace.useContext(Br),a=o.activeKey,i=o.onActive,s=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function X$(e){var t=m__namespace.useContext(Br),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function q$(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=m__namespace.createElement(t,X({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var AV=["item"];function iu(e){var t=e.item,n=tt(e,AV);return Object.defineProperty(n,"item",{get:function(){return $n(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var LV=["title","attribute","elementRef"],DV=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],zV=["active"],jV=function(e){Vo(n,e);var t=Go(n);function n(){return In(this,n),t.apply(this,arguments)}return On(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=tt(o,LV),c=Fn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return $n(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(io.Item,Re({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),FV=m__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,v=e.onKeyDown,g=e.onFocus,h=tt(e,DV),p=B$(a),b=m__namespace.useContext(Br),y=b.prefixCls,C=b.onItemClick,w=b.disabled,x=b.overflowDisabled,$=b.itemIcon,S=b.selectedKeys,E=b.onActive,I=m__namespace.useContext(Eh),O=I._internalRenderMenuItem,R="".concat(y,"-item"),M=m__namespace.useRef(),k=m__namespace.useRef(),A=w||i,L=$a(t,k),T=Wi(a),P=function(U){return {key:a,keyPath:Ae(T).reverse(),item:M.current,domEvent:U}},_=s||$,z=U$(a,A,u,d),j=z.active,H=tt(z,zV),B=S.includes(a),V=X$(T.length),G=function(U){if(!A){var ue=P(U);f==null||f(iu(ue)),C(ue);}},q=function(U){if(v==null||v(U),U.which===ge.ENTER){var ue=P(U);f==null||f(iu(ue)),C(ue);}},Y=function(U){E(a),g==null||g(U);},te={};e.role==="option"&&(te["aria-selected"]=B);var W=m__namespace.createElement(jV,Re({ref:M,elementRef:L,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&p?null:p},h,H,te,{component:"li","aria-disabled":i,style:X(X({},V),r),className:K(R,(n={},F(n,"".concat(R,"-active"),j),F(n,"".concat(R,"-selected"),B),F(n,"".concat(R,"-disabled"),A),n),o),onClick:G,onKeyDown:q,onFocus:Y}),l,m__namespace.createElement(q$,{props:X(X({},e),{},{isSelected:B}),icon:_}));return O&&(W=O(W,e,{selected:B})),W});function BV(e,t){var n=e.eventKey,r=Bd(),o=Wi(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(FV,Re({},e,{ref:t}))}const Ol=m__namespace.forwardRef(BV);var HV=["className","children"],WV=function(t,n){var r=t.className,o=t.children,a=tt(t,HV),i=m__namespace.useContext(Br),s=i.prefixCls,l=i.mode,c=i.rtl;return m__namespace.createElement("ul",Re({className:K(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Oh=m__namespace.forwardRef(WV);Oh.displayName="SubMenuList";function Ph(e,t){return vr(e).map(function(n,r){if(m__namespace.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var kn={adjustX:1,adjustY:1},VV={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},leftTop:{points:["tr","tl"],overflow:kn},leftBottom:{points:["br","bl"],overflow:kn},rightTop:{points:["tl","tr"],overflow:kn},rightBottom:{points:["bl","br"],overflow:kn}},GV={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},rightTop:{points:["tr","tl"],overflow:kn},rightBottom:{points:["br","bl"],overflow:kn},leftTop:{points:["tl","tr"],overflow:kn},leftBottom:{points:["bl","br"],overflow:kn}};function Y$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var KV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function UV(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=m__namespace.useContext(Br),f=d.getPopupContainer,v=d.rtl,g=d.subMenuOpenDelay,h=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,w=d.motion,x=d.defaultMotions,$=m__namespace.useState(!1),S=J($,2),E=S[0],I=S[1],O=X(v?X({},GV):X({},VV),p),R=KV[c],M=Y$(c,w,x),k=m__namespace.useRef(M);c!=="inline"&&(k.current=M);var A=X(X({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=m__namespace.useRef();return m__namespace.useEffect(function(){return L.current=Rt(function(){I(n);}),function(){Rt.cancel(L.current);}},[n]),m__namespace.createElement(hd,{prefixCls:t,popupClassName:K("".concat(t,"-popup"),F({},"".concat(t,"-rtl"),v),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:R,popupVisible:E,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:u,forceRender:y,popupMotion:A,fresh:!0},r)}function XV(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=m__namespace.useContext(Br),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,f=m__namespace.useRef(!1);f.current=d===a;var v=m__namespace.useState(!f.current),g=J(v,2),h=g[0],p=g[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=X({},Y$(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return !f.current&&!w&&p(!0),C==null?void 0:C(w)},h?null:m__namespace.createElement(Ws,{mode:a,locked:!f.current},m__namespace.createElement(xo,Re({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var x=w.className,$=w.style;return m__namespace.createElement(Oh,{id:t,className:x,style:$},o)}))}var qV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],YV=["active"],QV=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,v=t.popupOffset,g=t.popupStyle,h=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=tt(t,qV),$=B$(i),S=m__namespace.useContext(Br),E=S.prefixCls,I=S.mode,O=S.openKeys,R=S.disabled,M=S.overflowDisabled,k=S.activeKey,A=S.selectedKeys,L=S.itemIcon,T=S.expandIcon,P=S.onItemClick,_=S.onOpenChange,z=S.onActive,j=m__namespace.useContext(Eh),H=j._internalRenderSubMenuItem,B=m__namespace.useContext(V$),V=B.isSubPathKey,G=Wi(),q="".concat(E,"-submenu"),Y=R||s,te=m__namespace.useRef(),W=m__namespace.useRef(),Z=u??L,U=d??T,ue=O.includes(i),ie=!M&&ue,se=V(A,i),ee=U$(i,Y,C,w),ce=ee.active,Q=tt(ee,YV),le=m__namespace.useState(!1),he=J(le,2),ne=he[0],ae=he[1],me=function(Je){Y||ae(Je);},Ce=function(Je){me(!0),p==null||p({key:i,domEvent:Je});},ke=function(Je){me(!1),b==null||b({key:i,domEvent:Je});},We=m__namespace.useMemo(function(){return ce||(I!=="inline"?ne||V([k],i):!1)},[I,ce,k,ne,i,V]),Ge=X$(G.length),Me=function(Je){Y||(y==null||y({key:i,domEvent:Je}),I==="inline"&&_(i,!ue));},Xe=ms(function(Ze){h==null||h(iu(Ze)),P(Ze);}),ze=function(Je){I!=="inline"&&_(i,Je);},He=function(){z(i);},Ie=$&&"".concat($,"-popup"),we=m__namespace.createElement("div",Re({role:"menuitem",style:Ge,className:"".concat(q,"-title"),tabIndex:Y?null:-1,ref:te,title:typeof a=="string"?a:null,"data-menu-id":M&&$?null:$,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":Y,onClick:Me,onFocus:He},Q),a,m__namespace.createElement(q$,{icon:I!=="horizontal"?U:void 0,props:X(X({},t),{},{isOpen:ie,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(q,"-arrow")}))),qe=m__namespace.useRef(I);if(I!=="inline"&&G.length>1?qe.current="vertical":qe.current=I,!M){var nt=qe.current;we=m__namespace.createElement(UV,{mode:nt,prefixCls:q,visible:!l&&ie&&I!=="inline",popupClassName:f,popupOffset:v,popupStyle:g,popup:m__namespace.createElement(Ws,{mode:nt==="horizontal"?"vertical":nt},m__namespace.createElement(Oh,{id:Ie,ref:W},c)),disabled:Y,onVisibleChange:ze},we);}var bt=m__namespace.createElement(io.Item,Re({role:"none"},x,{component:"li",style:r,className:K(q,"".concat(q,"-").concat(I),o,(n={},F(n,"".concat(q,"-open"),ie),F(n,"".concat(q,"-active"),We),F(n,"".concat(q,"-selected"),se),F(n,"".concat(q,"-disabled"),Y),n)),onMouseEnter:Ce,onMouseLeave:ke}),we,!M&&m__namespace.createElement(XV,{id:Ie,open:ie,keyPath:G},c));return H&&(bt=H(bt,t,{selected:se,active:We,open:ie,disabled:Y})),m__namespace.createElement(Ws,{onItemClick:Xe,mode:I==="horizontal"?"vertical":I,itemIcon:Z,expandIcon:U},bt)};function Hd(e){var t=e.eventKey,n=e.children,r=Wi(t),o=Ph(n,r),a=Bd();m__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=m__namespace.createElement(QV,e,o),m__namespace.createElement(W$.Provider,{value:r},i)}var ZV=["className","title","eventKey","children"],JV=["children"],eG=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=tt(t,ZV),i=m__namespace.useContext(Br),s=i.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Re({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:K(l,n)}),m__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Wd(e){var t=e.children,n=tt(e,JV),r=Wi(n.eventKey),o=Ph(t,r),a=Bd();return a?o:m__namespace.createElement(eG,Fn(n,["warnKey"]),o)}function Rh(e){var t=e.className,n=e.style,r=m__namespace.useContext(Br),o=r.prefixCls,a=Bd();return a?null:m__namespace.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),t),style:n})}var tG=["label","children","key","type"];function Iv(e){return (e||[]).map(function(t,n){if(t&&ut(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=tt(r,tG),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?m__namespace.createElement(Wd,Re({key:c},l,{title:o}),Iv(a)):m__namespace.createElement(Hd,Re({key:c},l,{title:o}),Iv(a)):s==="divider"?m__namespace.createElement(Rh,Re({key:c},l)):m__namespace.createElement(Ol,Re({key:c},l),o)}return null}).filter(function(t){return t})}function nG(e,t,n){var r=e;return t&&(r=Iv(t)),Ph(r,n)}var rG=["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"],Ba=[],oG=m__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,f=o.items,v=o.children,g=o.direction,h=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,$=x===void 0?.1:x,S=o.subMenuCloseDelay,E=S===void 0?.1:S,I=o.forceSubMenuRender,O=o.defaultOpenKeys,R=o.openKeys,M=o.activeKey,k=o.defaultActiveFirst,A=o.selectable,L=A===void 0?!0:A,T=o.multiple,P=T===void 0?!1:T,_=o.defaultSelectedKeys,z=o.selectedKeys,j=o.onSelect,H=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,G=o.motion,q=o.defaultMotions,Y=o.triggerSubMenuAction,te=Y===void 0?"hover":Y,W=o.builtinPlacements,Z=o.itemIcon,U=o.expandIcon,ue=o.overflowedIndicator,ie=ue===void 0?"...":ue,se=o.overflowedIndicatorPopupClassName,ee=o.getPopupContainer,ce=o.onClick,Q=o.onOpenChange,le=o.onKeyDown;o.openAnimation,o.openTransitionName;var he=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,ae=tt(o,rG),me=m__namespace.useMemo(function(){return nG(v,f,Ba)},[v,f]),Ce=m__namespace.useState(!1),ke=J(Ce,2),We=ke[0],Ge=ke[1],Me=m__namespace.useRef(),Xe=kV(h),ze=g==="rtl",He=qt(O,{value:R,postState:function(at){return at||Ba}}),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=function(at){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function $t(){qe(at),Q==null||Q(at);}yt?V1.flushSync($t):$t();},bt=m__namespace.useState(we),Ze=J(bt,2),Je=Ze[0],gt=Ze[1],ht=m__namespace.useRef(!1),st=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),dt=J(st,2),et=dt[0],$e=dt[1],xe=et==="inline",_e=m__namespace.useState(et),ve=J(_e,2),Te=ve[0],Se=ve[1],fe=m__namespace.useState($e),oe=J(fe,2),ye=oe[0],de=oe[1];m__namespace.useEffect(function(){Se(et),de($e),ht.current&&(xe?qe(Je):nt(Ba));},[et,$e]);var pe=m__namespace.useState(0),Le=J(pe,2),Ue=Le[0],lt=Le[1],it=Ue>=me.length-1||Te!=="horizontal"||w;m__namespace.useEffect(function(){xe&>(we);},[we]),m__namespace.useEffect(function(){return ht.current=!0,function(){ht.current=!1;}},[]);var Et=TV(),wt=Et.registerPath,ft=Et.unregisterPath,je=Et.refreshOverflowKeys,Pe=Et.isSubPathKey,Ee=Et.getKeyPath,Oe=Et.getKeys,Ve=Et.getSubPathKeys,mt=m__namespace.useMemo(function(){return {registerPath:wt,unregisterPath:ft}},[wt,ft]),_t=m__namespace.useMemo(function(){return {isSubPathKey:Pe}},[Pe]);m__namespace.useEffect(function(){je(it?Ba:me.slice(Ue+1).map(function(Fe){return Fe.key}));},[Ue,it]);var Mt=qt(M||k&&((n=me[0])===null||n===void 0?void 0:n.key),{value:M}),vn=J(Mt,2),un=vn[0],gn=vn[1],Bn=ms(function(Fe){gn(Fe);}),Sn=ms(function(){gn(void 0);});m.useImperativeHandle(t,function(){return {list:Me.current,focus:function(at){var yt,$t=un??((yt=me.find(function(Qn){return !Qn.props.disabled}))===null||yt===void 0?void 0:yt.key);if($t){var Nt,tn,Wn;(Nt=Me.current)===null||Nt===void 0||(tn=Nt.querySelector("li[data-menu-id='".concat(xh(Xe,$t),"']")))===null||tn===void 0||(Wn=tn.focus)===null||Wn===void 0||Wn.call(tn,at);}}}});var Xr=qt(_||[],{value:z,postState:function(at){return Array.isArray(at)?at:at==null?Ba:[at]}}),uo=J(Xr,2),Hn=uo[0],Io=uo[1],Rr=function(at){if(L){var yt=at.key,$t=Hn.includes(yt),Nt;P?$t?Nt=Hn.filter(function(Wn){return Wn!==yt}):Nt=[].concat(Ae(Hn),[yt]):Nt=[yt],Io(Nt);var tn=X(X({},at),{},{selectedKeys:Nt});$t?H==null||H(tn):j==null||j(tn);}!P&&we.length&&Te!=="inline"&&nt(Ba);},or=ms(function(Fe){ce==null||ce(iu(Fe)),Rr(Fe);}),hr=ms(function(Fe,at){var yt=we.filter(function(Nt){return Nt!==Fe});if(at)yt.push(Fe);else if(Te!=="inline"){var $t=Ve(Fe);yt=yt.filter(function(Nt){return !$t.has(Nt)});}dl(we,yt,!0)||nt(yt,!0);}),qr=function(at,yt){var $t=yt??!we.includes(at);hr(at,$t);},Yr=RV(Te,un,ze,Xe,Me,Oe,Ee,gn,qr,le);m__namespace.useEffect(function(){Ge(!0);},[]);var Yn=m__namespace.useMemo(function(){return {_internalRenderMenuItem:he,_internalRenderSubMenuItem:ne}},[he,ne]),Qr=Te!=="horizontal"||w?me:me.map(function(Fe,at){return m__namespace.createElement(Ws,{key:Fe.key,overflowDisabled:at>Ue},Fe)}),vt=m__namespace.createElement(io,Re({id:h,ref:Me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ol,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(Te),c,(r={},F(r,"".concat(i,"-inline-collapsed"),ye),F(r,"".concat(i,"-rtl"),ze),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Qr,renderRawItem:function(at){return at},renderRawRest:function(at){var yt=at.length,$t=yt?me.slice(-yt):null;return m__namespace.createElement(Hd,{eventKey:Ev,title:ie,disabled:it,internalPopupClose:yt===0,popupClassName:se},$t)},maxCount:Te!=="horizontal"||w?io.INVALIDATE:io.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){lt(at);},onKeyDown:Yr},ae));return m__namespace.createElement(Eh.Provider,{value:Yn},m__namespace.createElement(F$.Provider,{value:Xe},m__namespace.createElement(Ws,{prefixCls:i,rootClassName:s,mode:Te,openKeys:we,rtl:ze,disabled:C,motion:We?G:null,defaultMotions:We?q:null,activeKey:un,onActive:Bn,onInactive:Sn,selectedKeys:Hn,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:te,getPopupContainer:ee,itemIcon:Z,expandIcon:U,onItemClick:or,onOpenChange:hr},m__namespace.createElement(V$.Provider,{value:_t},vt),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(H$.Provider,{value:mt},me)))))}),Vi=oG;Vi.Item=Ol;Vi.SubMenu=Hd;Vi.ItemGroup=Wd;Vi.Divider=Rh;var aG={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 iG=aG;var sG=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:iG}))};const su=m__namespace.forwardRef(sG),Q$=m__namespace.createContext({});var lG=function(e,t){var n={};for(var r in 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 cG=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=lG(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m__namespace.useContext(rt),i=a("menu",t),s=K({[`${i}-item-divider-dashed`]:!!r},n);return m__namespace.createElement(Rh,Object.assign({className:s},o))},Z$=cG,uG=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lu=uG,dG=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=m__namespace.useContext(lu),f=y=>{const C=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Co(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:v}=m__namespace.useContext(Q$);let g=a;typeof a>"u"?g=l?r:"":a===!1&&(g="");const h={title:g};!v&&!d&&(h.title=null,h.open=!1);const p=vr(r).length;let b=m__namespace.createElement(Ol,Object.assign({},Fn(e,["title","icon","danger"]),{className:K({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Un(o,{className:K(Co(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(ml,Object.assign({},h,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},J$=dG,fG=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=m__namespace.useContext(lu),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=Wi();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m__namespace.createElement("span",{className:`${s}-title-content`},o);else {const g=Co(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Un(r,{className:K(Co(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[v]=pd("Menu");return m__namespace.createElement(lu.Provider,{value:f},m__namespace.createElement(Hd,Object.assign({},Fn(e,["icon"]),{title:d,popupClassName:K(s,n,`${s}-${a||c}`),popupStyle:{zIndex:v}})))},ex=fG;var mG={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 vG=mG;var gG=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:vG}))};const Mh=m__namespace.forwardRef(gG);var hG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 Ov(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=hG(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?m__namespace.createElement(Wd,Object.assign({key:c},l,{title:o}),Ov(a)):m__namespace.createElement(ex,Object.assign({key:c},l,{title:o}),Ov(a)):s==="divider"?m__namespace.createElement(Z$,Object.assign({key:c},l)):m__namespace.createElement(J$,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function pG(e){return m__namespace.useMemo(()=>e&&Ov(e),[e])}var bG=function(e,t){var n={};for(var r in 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 cu=m__namespace.createContext(null),yG=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=bG(e,["children"]),o=m__namespace.useContext(cu),a=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=vD(n),s=$a(t,i?n.ref:null);return m__namespace.createElement(cu.Provider,{value:a},m__namespace.createElement(Ci,null,i?m__namespace.cloneElement(n,{ref:s}):n))}),CG=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},SG=CG,wG=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})`}}}}},$G=wG,fy=e=>Object.assign({},va(e)),xG=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:v,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:I,itemHoverBg:O,itemActiveBg:R,menuSubMenuBg:M,horizontalItemSelectedColor:k,horizontalItemSelectedBg:A,horizontalItemBorderRadius:L,horizontalItemHoverBg:T,popupBg:P}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},fy(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:E}},[`${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:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},fy(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}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} ${v}`,`opacity ${p} ${v}`].join(",")}}}}}},my=xG,vy=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,l=o+a+i;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:s,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:l}}},EG=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:v,boxShadowSecondary:g,collapsedWidth:h,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},vy(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},vy(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*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 ${f}`,`background ${f}`,`padding ${s} ${l}`].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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}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({},ma),{paddingInline:v})}}]},IG=EG,gy=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},xa()),[`&${t}-item-only-child`]:{[`> ${i}, > ${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"}}}},hy=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.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(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},OG=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:v,menuArrowSize:g,menuArrowOffset:h,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},Qm()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),Qm()),{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:`${s}px ${l}px`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${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:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\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:f},gy(e)),hy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),hy(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},PG=(e,t)=>Kt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:v,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:$}=r,S=l/7*5,E=St(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=St(E,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:v,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [OG(E),SG(E),IG(E),my(E,"light"),my(I,"dark"),$G(E),Ow(E),Fo(E,"slide-up"),Fo(E,"slide-down"),wd(E,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:v,lineWidthBold:g,controlItemBgActive:h,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:w,padding:x,fontSize:$,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:I,colorErrorHover:O}=r,R=new Jt(I).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:f,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:v,activeBarBorderWidth:v,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:S-$,collapsedIconSize:E,groupTitleFontSize:$,darkItemDisabledColor:new Jt(I).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:I,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:a}},{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 RG=function(e,t){var n={};for(var r in 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 MG=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(cu),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(rt),u=i(),{prefixCls:d,className:f,style:v,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:w,rootClassName:x,mode:$,selectable:S,onClick:E,overflowedIndicatorPopupClassName:I}=e,O=RG(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=Fn(O,["collapsedWidth"]),M=pG(C)||w;(n=a.validator)===null||n===void 0||n.call(a,{mode:$});const k=An(function(){var G;E==null||E.apply(void 0,arguments),(G=a.onClick)===null||G===void 0||G.call(a);}),A=a.mode||$,L=S??a.selectable,T=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:fw(u),other:{motionName:`${u}-zoom-big`}},_=i("menu",d||a.prefixCls),[z,j]=PG(_,!o),H=K(`${_}-${g}`,c==null?void 0:c.className,f);let B;if(typeof h=="function")B=h;else if(h===null||h===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const G=h??a.expandIcon;B=Un(G,{className:K(`${_}-submenu-expand-icon`,Co(G)?(r=G.props)===null||r===void 0?void 0:r.className:"")});}const V=m__namespace.useMemo(()=>({prefixCls:_,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:g,mode:A,disableMenuItemTitleTooltip:p}),[_,T,l,p,g]);return z(m__namespace.createElement(cu.Provider,{value:null},m__namespace.createElement(lu.Provider,{value:V},m__namespace.createElement(Vi,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(Mh,null),overflowedIndicatorPopupClassName:K(_,`${_}-${g}`,I),mode:A,selectable:L,onClick:k},R,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),v),className:H,prefixCls:_,direction:l,defaultMotions:P,expandIcon:B,ref:t,rootClassName:K(x,j)}),M))))}),_G=MG,Pl=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(Q$);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),m__namespace.createElement(_G,Object.assign({ref:n},e,r))});Pl.Item=J$;Pl.SubMenu=ex;Pl.Divider=Z$;Pl.ItemGroup=Wd;const TG=Pl,NG=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},kG=NG,AG=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:v,controlPaddingHorizontal:g,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Ft(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ih},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:lh},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:sh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ch}})},eh(e,{colorBg:h,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:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ga(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&: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:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ga(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:h,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:v,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:f,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Fo(e,"slide-up"),Fo(e,"slide-down"),Qc(e,"move-up"),Qc(e,"move-down"),wd(e,"zoom-big")]]},tx=Kt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:f}=Jg({contentRadius:u}),v=St(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [AG(v),kG(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),_h=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:f,onOpenChange:v,visible:g,onVisibleChange:h,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:x}=e,{getPopupContainer:$,getPrefixCls:S,direction:E,dropdown:I}=m__namespace.useContext(rt);hw();const O=m__namespace.useMemo(()=>{const U=S();return x!==void 0?x:C.includes("top")?`${U}-slide-down`:`${U}-slide-up`},[S,C,x]),R=m__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:E==="rtl"?"bottomRight":"bottomLeft",[C,E]),M=S("dropdown",r),[k,A]=tx(M),[,L]=tr(),T=m__namespace.Children.only(o),P=Un(T,{className:K(`${M}-trigger`,{[`${M}-rtl`]:E==="rtl"},T.props.className),disabled:i}),_=i?[]:a;let z;_&&_.includes("contextMenu")&&(z=!0);const[j,H]=qt(!1,{value:f??g}),B=An(U=>{v==null||v(U,{source:"trigger"}),h==null||h(U),H(U);}),V=K(c,u,A,I==null?void 0:I.className,{[`${M}-rtl`]:E==="rtl"}),G=vw({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),q=m__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(v==null||v(!1,{source:"menu"}),H(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Y=()=>{let U;return t!=null&&t.items?U=m__namespace.createElement(TG,Object.assign({},t)):typeof w=="function"?U=w():U=w,s&&(U=s(U)),U=m__namespace.Children.only(typeof U=="string"?m__namespace.createElement("span",null,U):U),m__namespace.createElement(yG,{prefixCls:`${M}-menu`,expandIcon:m__namespace.createElement("span",{className:`${M}-menu-submenu-arrow`},m__namespace.createElement(Ei,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:ue=>{}},U)},[te,W]=pd("Dropdown",d==null?void 0:d.zIndex);let Z=m__namespace.createElement(L$,Object.assign({alignPoint:z},Fn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:j,builtinPlacements:G,arrow:!!n,overlayClassName:V,prefixCls:M,getPopupContainer:l||$,transitionName:O,trigger:_,overlay:Y,placement:R,onVisibleChange:B,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:te})}),P);return te&&(Z=m__namespace.createElement(Zg.Provider,{value:W},Z)),k(Z)};function LG(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const DG=$h(_h,"dropdown",e=>e,LG),zG=e=>m__namespace.createElement(DG,Object.assign({},e),m__namespace.createElement("span",null));_h._InternalPanelDoNotUseOrYouWillBeFired=zG;const nx=_h;var jG=function(e,t){var n={};for(var r in 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 rx=m__namespace.createContext(void 0),FG=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{prefixCls:r,size:o,className:a}=e,i=jG(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=tr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=K(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return m__namespace.createElement(rx.Provider,{value:o},m__namespace.createElement("div",Object.assign({},i,{className:u})))},BG=FG,py=/^[\u4e00-\u9fa5]{2}$/,Pv=py.test.bind(py);function ox(e){return e==="danger"?{danger:!0}:{type:e}}function by(e){return typeof e=="string"}function Wf(e){return e==="text"||e==="link"}function HG(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&by(e.type)&&Pv(e.props.children)?Un(e,{children:e.props.children.split("").join(n)}):by(e)?Pv(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):gw(e)?m.createElement("span",null,e):e}function WG(e,t){let n=!1;const r=[];return m.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=i;}),m.Children.map(r,o=>HG(o,t))}const VG=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=K(`${a}-icon`,n);return m.createElement("span",{ref:t,className:i,style:r},o)}),ax=VG;var GG={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 KG=GG;var UG=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:KG}))};const Th=m__namespace.forwardRef(UG),yy=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=K(`${n}-loading-icon`,r);return m.createElement(ax,{prefixCls:n,className:i,style:o,ref:t},m.createElement(Th,{className:a}))}),Vf=()=>({width:0,opacity:0,transform:"scale(0)"}),Gf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),XG=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?m.createElement(yy,{prefixCls:t,className:o,style:a}):m.createElement(xo,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Vf,onAppearActive:Gf,onEnterStart:Vf,onEnterActive:Gf,onLeaveStart:Gf,onLeaveActive:Vf},(s,l)=>{let{className:c,style:u}=s;return m.createElement(yy,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},qG=XG,Cy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),YG=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-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}},Cy(`${t}-primary`,o),Cy(`${t}-danger`,a)]}},QG=YG,ZG=e=>{const{componentCls:t,iconCls:n,fontWeight: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({},ga(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-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:'""'}}}}}}},wo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),JG=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eK=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),tK=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Vs=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},wo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Nh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},tK(e))}),ix=e=>Object.assign({},Nh(e)),uu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),sx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ix(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),wo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Vs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},wo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Nh(e))}),nK=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ix(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),wo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Vs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},wo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Nh(e))}),rK=e=>Object.assign(Object.assign({},sx(e)),{borderStyle:"dashed"}),oK=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},wo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),uu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},wo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),uu(e))}),aK=e=>Object.assign(Object.assign(Object.assign({},wo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),uu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uu(e)),wo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),iK=e=>{const{componentCls:t}=e;return {[`${t}-default`]:sx(e),[`${t}-primary`]:nK(e),[`${t}-dashed`]:rK(e),[`${t}-link`]:oK(e),[`${t}-text`]:aK(e),[`${t}-ghost`]:Vs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},kh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${l}px`,borderRadius:s,[`&${d}`]:{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}`]:JG(e)},{[`${n}${n}-round${t}`]:eK(e)}]},sK=e=>kh(St(e,{fontSize:e.contentFontSize})),lK=e=>{const t=St(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return kh(t,`${e.componentCls}-sm`)},cK=e=>{const t=St(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return kh(t,`${e.componentCls}-lg`)},uK=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},lx=e=>{const{paddingInline:t,onlyIconSize:n}=e;return St(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},cx=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),dK=Kt("Button",e=>{const t=lx(e);return [ZG(t),lK(t),sK(t),cK(t),uK(t),iK(t),QG(t)]},cx);function fK(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function mK(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 Vd(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({},fK(e,r,t)),mK(n,r,t))}}function vK(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function gK(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 hK(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},vK(e,t)),gK(e.componentCls,t))}}const pK=rh(["Button","compact"],e=>{const t=lx(e);return [Vd(t),hK(t)]},cx);var bK=function(e,t){var n={};for(var r in 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 yK(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const CK=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:v,children:g,icon:h,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:w={}}=e,x=bK(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:S,direction:E,button:I}=m.useContext(rt),O=$("btn",a),[R,M]=dK(O),k=m.useContext(Ur),A=d??k,L=m.useContext(rx),T=m.useMemo(()=>yK(o),[o]),[P,_]=m.useState(T.loading),[z,j]=m.useState(!1),B=qn(t,m.createRef()),V=m.Children.count(g)===1&&!h&&!Wf(i);m.useEffect(()=>{let ae=null;T.delay>0?ae=setTimeout(()=>{ae=null,_(!0);},T.delay):_(T.loading);function me(){ae&&(clearTimeout(ae),ae=null);}return me},[T]),m.useEffect(()=>{if(!B||!B.current||S===!1)return;const ae=B.current.textContent;V&&Pv(ae)?z||j(!0):z&&j(!1);},[B]);const G=ae=>{const{onClick:me}=e;if(P||A){ae.preventDefault();return}me==null||me(ae);},q=S!==!1,{compactSize:Y,compactItemClassnames:te}=Bi(O,E),W={large:"lg",small:"sm",middle:void 0},Z=nr(ae=>{var me,Ce;return (Ce=(me=c??Y)!==null&&me!==void 0?me:L)!==null&&Ce!==void 0?Ce:ae}),U=Z&&W[Z]||"",ue=P?"loading":h,ie=Fn(x,["navigate"]),se=K(O,M,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${i}`]:i,[`${O}-${U}`]:U,[`${O}-icon-only`]:!g&&g!==0&&!!ue,[`${O}-background-ghost`]:p&&!Wf(i),[`${O}-loading`]:P,[`${O}-two-chinese-chars`]:z&&q&&!P,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:E==="rtl"},te,f,v,I==null?void 0:I.className),ee=Object.assign(Object.assign({},I==null?void 0:I.style),w),ce=K(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),Q=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),le=h&&!P?m.createElement(ax,{prefixCls:O,className:ce,style:Q},h):m.createElement(qG,{existIcon:!!h,prefixCls:O,loading:!!P}),he=g||g===0?WG(g,V&&q):null;if(ie.href!==void 0)return R(m.createElement("a",Object.assign({},ie,{className:K(se,{[`${O}-disabled`]:A}),href:A?void 0:ie.href,style:ee,onClick:G,ref:B,tabIndex:A?-1:0}),le,he));let ne=m.createElement("button",Object.assign({},x,{type:y,className:se,style:ee,onClick:G,disabled:A,ref:B}),le,he,te&&m.createElement(pK,{key:"compact",prefixCls:O}));return Wf(i)||(ne=m.createElement(Sl,{component:"Button",disabled:!!P},ne)),R(ne)},Ah=m.forwardRef(CK);Ah.Group=BG;Ah.__ANT_BUTTON=!0;const Zt=Ah;function Sy(e){return ["small","middle","large"].includes(e)}function wy(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const ux=m.createContext({latestIndex:0}),SK=ux.Provider,wK=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=m__namespace.useContext(ux);return r==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&m__namespace.createElement("span",{className:`${t}-split`},o))},$K=wK;var xK=function(e,t){var n={};for(var r in 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 EK=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=m__namespace.useContext(rt),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:v,split:g,style:h,wrap:p=!1,classNames:b,styles:y}=e,C=xK(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],$=Sy(x),S=Sy(w),E=wy(x),I=wy(w),O=vr(d,{keepEmpty:!0}),R=l===void 0&&f==="horizontal"?"center":l,M=o("space",v),[k,A]=Ew(M),L=K(M,a==null?void 0:a.className,A,`${M}-${f}`,{[`${M}-rtl`]:i==="rtl",[`${M}-align-${R}`]:R,[`${M}-gap-row-${x}`]:$,[`${M}-gap-col-${w}`]:S},c,u),T=K(`${M}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let P=0;const _=O.map((H,B)=>{var V,G;H!=null&&(P=B);const q=H&&H.key||`${T}-${B}`;return m__namespace.createElement($K,{className:T,key:q,index:B,split:g,style:(V=y==null?void 0:y.item)!==null&&V!==void 0?V:(G=a==null?void 0:a.styles)===null||G===void 0?void 0:G.item},H)}),z=m__namespace.useMemo(()=>({latestIndex:P}),[P]);if(O.length===0)return null;const j={};return p&&(j.flexWrap="wrap"),!S&&I&&(j.columnGap=w),!$&&E&&(j.rowGap=x),k(m__namespace.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},j),a==null?void 0:a.style),h)},C),m__namespace.createElement(SK,{value:z},_)))}),dx=EK;dx.Compact=Dj;const Rl=dx;var IK=function(e,t){var n={};for(var r in 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 fx=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(rt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:v,arrow:g,autoFocus:h,overlay:p,trigger:b,align:y,open:C,onOpenChange:w,placement:x,getPopupContainer:$,href:S,icon:E=m__namespace.createElement(Mh,null),title:I,buttonsRender:O=U=>U,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T}=e,P=IK(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"]),_=n("dropdown",o),z=`${_}-button`,[j,H]=tx(_),B={menu:v,arrow:g,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:$||t,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T},{compactSize:V,compactItemClassnames:G}=Bi(_,r),q=K(z,G,f,H);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=x:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=m__namespace.createElement(Zt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),te=m__namespace.createElement(Zt,{type:a,danger:i,icon:E}),[W,Z]=O([Y,te]);return j(m__namespace.createElement(Rl.Compact,Object.assign({className:q,size:V,block:!0},P),W,m__namespace.createElement(nx,Object.assign({},B),Z)))};fx.__ANT_BUTTON=!0;const OK=fx,mx=nx;mx.Button=OK;const Lh=mx;function qa(e,t,n){const r=ot(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const PK=new Tt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),RK=new Tt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),MK=new Tt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),_K=new Tt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),TK=new Tt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),NK=new Tt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),kK=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:v}=e,g=`${r}-scroll-number`,h=Cd(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:`${d}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:d/2,boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:`${f}px`,borderRadius:f/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${g}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:NK,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:PK,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:v,color:e.colorText,fontSize:e.fontSize}}}),h),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:RK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:MK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:_K,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:TK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${g}`]:{overflow:"hidden",[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},vx=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,l=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return St(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},gx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},AK=Kt("Badge",e=>{const t=vx(e);return [kK(t)]},gx),LK=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=Cd(e,(l,c)=>{let{darkColor:u}=c;return {[`&${a}-color-${l}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},DK=Kt(["Badge","Ribbon"],e=>{const t=vx(e);return [LK(t)]},gx),zK=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=m__namespace.useContext(rt),d=c("ribbon",n),f=$d(o,!1),v=K(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:f},t),[g,h]=DK(d),p={},b={};return o&&!f&&(p.background=o,b.color=o),g(m__namespace.createElement("div",{className:K(`${d}-wrapper`,l,h)},a,m__namespace.createElement("div",{className:K(v,h),style:Object.assign(Object.assign({},p),r)},m__namespace.createElement("span",{className:`${d}-text`},i),m__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},jK=zK;function $y(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m__namespace.createElement("span",{style:a,className:K(`${t}-only-unit`,{current:r})},n)}function FK(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function BK(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=m__namespace.useState(o),[l,c]=m__namespace.useState(a),u=()=>{s(o),c(a);};m__namespace.useEffect(()=>{const v=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(v);}},[o]);let d,f;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[m__namespace.createElement($y,Object.assign({},e,{key:o,current:!0}))],f={transition:"none"};else {d=[];const v=o+10,g=[];for(let b=o;b<=v;b+=1)g.push(b);const h=g.findIndex(b=>b%10===i);d=g.map((b,y)=>{const C=b%10;return m__namespace.createElement($y,Object.assign({},e,{key:b,value:C,offset:y-h,current:y===h}))});const p=l<a?1:-1;f={transform:`translateY(${-FK(i,o,p)}00%)`};}return m__namespace.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}var HK=function(e,t){var n={};for(var r in 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 WK=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,d=HK(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=m__namespace.useContext(rt),v=f("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:K(v,o,a),title:s});let h=r;if(r&&Number(r)%1===0){const p=String(r).split("");h=m__namespace.createElement("bdi",null,p.map((b,y)=>m__namespace.createElement(BK,{prefixCls:v,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Un(u,p=>({className:K(`${v}-custom-component`,p==null?void 0:p.className,a)})):m__namespace.createElement(c,Object.assign({},g,{ref:t}),h)}),VK=WK;var GK=function(e,t){var n={};for(var r in 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 KK=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:v=null,overflowCount:g=99,dot:h=!1,size:p="default",title:b,offset:y,style:C,className:w,rootClassName:x,classNames:$,styles:S,showZero:E=!1}=e,I=GK(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:R,badge:M}=m__namespace.useContext(rt),k=O("badge",s),[A,L]=AK(k),T=v>g?`${g}+`:v,P=T==="0"||T===0,_=v===null||P&&!E,z=(u!=null||f!=null)&&_,j=h&&!P,H=j?"":T,B=m.useMemo(()=>(H==null||H===""||P&&!E)&&!j,[H,P,E,j]),V=m.useRef(v);B||(V.current=v);const G=V.current,q=m.useRef(H);B||(q.current=H);const Y=q.current,te=m.useRef(j);B||(te.current=j);const W=m.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),C);const Q={marginTop:y[1]};return R==="rtl"?Q.left=parseInt(y[0],10):Q.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},Q),M==null?void 0:M.style),C)},[R,y,C,M==null?void 0:M.style]),Z=b??(typeof G=="string"||typeof G=="number"?G:void 0),U=B||!d?null:m__namespace.createElement("span",{className:`${k}-status-text`},d),ue=!G||typeof G!="object"?void 0:Un(G,Q=>({style:Object.assign(Object.assign({},W),Q.style)})),ie=$d(f,!1),se=K($==null?void 0:$.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:z,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:ie}),ee={};f&&!ie&&(ee.color=f,ee.background=f);const ce=K(k,{[`${k}-status`]:z,[`${k}-not-a-wrapper`]:!c,[`${k}-rtl`]:R==="rtl"},w,x,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,L);if(!c&&z){const Q=W.color;return A(m__namespace.createElement("span",Object.assign({},I,{className:ce,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),W)}),m__namespace.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),ee)}),d&&m__namespace.createElement("span",{style:{color:Q},className:`${k}-status-text`},d)))}return A(m__namespace.createElement("span",Object.assign({ref:t},I,{className:ce,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,m__namespace.createElement(xo,{visible:!B,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},Q=>{let{className:le,ref:he}=Q;var ne,ae;const me=O("scroll-number",l),Ce=te.current,ke=K($==null?void 0:$.indicator,(ne=M==null?void 0:M.classNames)===null||ne===void 0?void 0:ne.indicator,{[`${k}-dot`]:Ce,[`${k}-count`]:!Ce,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!Ce&&Y&&Y.toString().length>1,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:ie});let We=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(ae=M==null?void 0:M.styles)===null||ae===void 0?void 0:ae.indicator),W);return f&&!ie&&(We=We||{},We.background=f),m__namespace.createElement(VK,{prefixCls:me,show:!B,motionClassName:le,className:ke,count:Y,title:Z,style:We,key:"scrollNumber",ref:he},ue)}),U))},hx=m__namespace.forwardRef(KK);hx.Ribbon=jK;const UK=hx,Ml={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function xy(e){const t=m.useRef(null);return t.current??(t.current=e()),t}var XK=Math.floor,qK=Math.random;function YK(e,t){return e+XK(qK()*(t-e+1))}var QK=YK,ZK=QK;function JK(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=ZK(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var px=JK,eU=IC,tU=px;function nU(e){return tU(eU(e))}var rU=nU,oU=dg;function aU(e,t){return oU(t,function(n){return e[n]})}var iU=aU,sU=iU,lU=il;function cU(e){return e==null?[]:sU(e,lU(e))}var uU=cU,dU=px,fU=uU;function mU(e){return dU(fU(e))}var vU=mU,gU=rU,hU=vU,pU=Gr;function bU(e){var t=pU(e)?gU:hU;return t(e)}var yU=bU;const si=xn(yU);var CU=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],bx=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,v=e.onChange,g=e.onKeyDown,h=tt(e,CU),p=qt(!1,{value:i,defaultValue:s}),b=J(p,2),y=b[0],C=b[1];function w(E,I){var O=y;return l||(O=E,C(O),v==null||v(O,I)),O}function x(E){E.which===ge.LEFT?w(!1,E):E.which===ge.RIGHT&&w(!0,E),g==null||g(E);}function $(E){var I=w(!y,E);f==null||f(I,E);}var S=K(o,a,(n={},F(n,"".concat(o,"-checked"),y),F(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Re({},h,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:x,onClick:$}),c,m__namespace.createElement("span",{className:"".concat(o,"-inner")},m__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),m__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});bx.displayName="Switch";const SU=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},wU=e=>{const{componentCls:t,handleSize:n}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},$U=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},xU=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-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"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+r*2}px - ${a*2}px)`,marginInlineEnd:`calc(100% - ${i+r*2}px + ${a*2}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+r*2}px + ${a*2}px)`,marginInlineEnd:`calc(-100% + ${i+r*2}px - ${a*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:r*2,marginInlineEnd:-r*2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-r*2,marginInlineEnd:r*2}}}}}},EU=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}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}}),ga(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"}})}},IU=Kt("Switch",e=>{const t=St(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [EU(t),xU(t),$U(t),wU(t),SU(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var OU=function(e,t){var n={};for(var r in 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 yx=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=OU(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(rt),v=m__namespace.useContext(Ur),g=(o??v)||a,h=u("switch",n),p=m__namespace.createElement("div",{className:`${h}-handle`},a&&m__namespace.createElement(Th,{className:`${h}-loading-icon`})),[b,y]=IU(h),C=nr(r),w=K(f==null?void 0:f.className,{[`${h}-small`]:C==="small",[`${h}-loading`]:a,[`${h}-rtl`]:d==="rtl"},i,s,y),x=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(Sl,{component:"Switch"},m__namespace.createElement(bx,Object.assign({},c,{prefixCls:h,className:w,style:x,disabled:g,ref:t,loadingIcon:p}))))});yx.__ANT_SWITCH=!0;const _l=yx;var PU={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const RU=PU;var MU=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:RU}))};const Gd=m__namespace.forwardRef(MU);function _U(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function TU(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(Gd,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!_U(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const NU=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},Ft(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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:i,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Dh=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return St(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},zh=e=>({defaultBg:new Jt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Cx=Kt("Tag",e=>{const t=Dh(e);return NU(t)},zh);var kU=function(e,t){var n={};for(var r in 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 AU=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=kU(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=m__namespace.useContext(rt),d=p=>{i==null||i(!a),s==null||s(p);},f=c("tag",n),[v,g]=Cx(f),h=K(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},u==null?void 0:u.className,o,g);return v(m__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:h,onClick:d})))}),LU=AU,DU=e=>Cd(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),zU=rh(["Tag","preset"],e=>{const t=Dh(e);return DU(t)},zh);function jU(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const cc=(e,t,n)=>{const r=jU(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},FU=rh(["Tag","status"],e=>{const t=Dh(e);return [cc(t,"success","Success"),cc(t,"processing","Info"),cc(t,"error","Error"),cc(t,"warning","Warning")]},zh);var BU=function(e,t){var n={};for(var r in 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 HU=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,v=BU(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:h,tag:p}=m__namespace.useContext(rt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in v&&y(v.visible);},[v.visible]);const C=$d(l),w=g8(l),x=C||w,$=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},p==null?void 0:p.style),a),S=g("tag",n),[E,I]=Cx(S),O=K(S,p==null?void 0:p.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:h==="rtl",[`${S}-borderless`]:!f},r,o,I),R=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&y(!1);},[,M]=TU(d,u,P=>P===null?m__namespace.createElement(Gd,{className:`${S}-close-icon`,onClick:R}):m__namespace.createElement("span",{className:`${S}-close-icon`,onClick:R},P),null,!1),k=typeof v.onClick=="function"||i&&i.type==="a",A=s||null,L=A?m__namespace.createElement(m__namespace.Fragment,null,A,i&&m__namespace.createElement("span",null,i)):i,T=m__namespace.createElement("span",Object.assign({},v,{ref:t,className:O,style:$}),L,M,C&&m__namespace.createElement(zU,{key:"preset",prefixCls:S}),w&&m__namespace.createElement(FU,{key:"status",prefixCls:S}));return E(k?m__namespace.createElement(Sl,{component:"Tag"},T):T)},Sx=m__namespace.forwardRef(HU);Sx.CheckableTag=LU;const To=Sx;function Ey(e){const[t,n]=m.useState(null);return [m.useCallback((a,i,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=i.slice(c,u+1).map(g=>e(g)),f=d.some(g=>!s.has(g)),v=[];return d.forEach(g=>{f?(s.has(g)||v.push(g),s.add(g)):(s.delete(g),v.push(g));}),n(f?u:null),v},[t]),a=>{n(a);}]}function jr(e,t,n){return K({[`${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 Tl=(e,t)=>t||e,du=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},WU=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t},VU=()=>{const[,e]=tr(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},m__namespace.createElement("g",{transform:"translate(24 31.67)"},m__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m__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"}),m__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)"}),m__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"}),m__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"})),m__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"}),m__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},GU=VU,KU=()=>{const[,e]=tr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=m.useMemo(()=>({borderColor:new Jt(t).onBackground(o).toHexShortString(),shadowColor:new Jt(n).onBackground(o).toHexShortString(),contentColor:new Jt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return m__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m__namespace.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:a},m__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"}),m__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:s}))))},UU=KU,XU=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},qU=Kt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=St(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [XU(r)]});var YU=function(e,t){var n={};for(var r in 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 wx=m__namespace.createElement(GU,null),$x=m__namespace.createElement(UU,null),jh=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=wx,description:a,children:i,imageStyle:s,style:l}=e,c=YU(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(rt),v=u("empty",r),[g,h]=qU(v),[p]=ji("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=m__namespace.createElement("img",{alt:y,src:o}):C=o,g(m__namespace.createElement("div",Object.assign({className:K(h,v,f==null?void 0:f.className,{[`${v}-normal`]:o===$x,[`${v}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),m__namespace.createElement("div",{className:`${v}-image`,style:s},C),b&&m__namespace.createElement("div",{className:`${v}-description`},b),i&&m__namespace.createElement("div",{className:`${v}-footer`},i)))};jh.PRESENTED_IMAGE_DEFAULT=wx;jh.PRESENTED_IMAGE_SIMPLE=$x;const is=jh,QU=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(rt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(is,{image:is.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(is,{image:is.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(is,null)}},xx=QU;function ZU(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=m__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=du(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:i.push(c);}),[i,s]},[r,n,t]);return [r,o,a]}const JU=[];function Ha(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Iy(e){return Array.from(e).join(";")}function eX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:JU;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=m__namespace.useState(()=>Ha(n,r)),[s,l]=m__namespace.useState(()=>Ha(n,o));return m__namespace.useEffect(()=>{i(Ha(n,r)),l(Ha(n,o));},[n]),m__namespace.useEffect(()=>{i(Ha(a,r)),l(Ha(s,o));},[Iy(r),Iy(o)]),[a,s,i,l]}var tX={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 nX=tX;var rX=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:nX}))};const Fh=m__namespace.forwardRef(rX);var oX={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 aX=oX;var iX=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:aX}))};const Oy=m__namespace.forwardRef(iX);var sX={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 lX=sX;var cX=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:lX}))};const Py=m__namespace.forwardRef(cX);var Yo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const uX={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 Rv=function(e){Vo(n,e);var t=Go(n);function n(){var r;In(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),F(Ke(r),"state",{goInputText:""}),F(Ke(r),"getValidValue",function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)}),F(Ke(r),"buildOptionText",function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)}),F(Ke(r),"changeSize",function(s){r.props.changeSize(Number(s));}),F(Ke(r),"handleChange",function(s){r.setState({goInputText:s.target.value});}),F(Ke(r),"handleBlur",function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,f=r.state.goInputText;c||f===""||(r.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));}),F(Ke(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===Yo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return On(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,a=this.props,i=a.pageSize,s=a.locale,l=a.rootPrefixCls,c=a.changeSize,u=a.quickGo,d=a.goButton,f=a.selectComponentClass,v=a.buildOptionText,g=a.selectPrefixCls,h=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,C=null,w=null,x=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var S=$.map(function(E,I){return m.createElement(y.Option,{key:I,value:E.toString()},(v||o.buildOptionText)(E))});C=m.createElement(y,{disabled:h,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},S);}return u&&(d&&(x=typeof d=="boolean"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),w=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:h,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,x)),m.createElement("li",{className:"".concat(b)},C,w)}}]),n}(m.Component);F(Rv,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var ss=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),f=K(d,"".concat(d,"-").concat(o),(n={},F(n,"".concat(d,"-active"),a),F(n,"".concat(d,"-disabled"),!o),F(n,t.className,i),n)),v=function(){l(o);},g=function(b){c(b,l,o);},h=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return h?m.createElement("li",{title:s?o.toString():null,className:f,onClick:v,onKeyPress:g,tabIndex:0},h):null};function Mv(){}function Ry(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var dX=function(t,n,r){return r};function Po(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Ex=function(e){Vo(n,e);var t=Go(n);function n(r){var o;In(this,n),o=t.call(this,r),F(Ke(o),"paginationNode",m.createRef()),F(Ke(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),F(Ke(o),"getJumpNextPage",function(){return Math.min(Po(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),F(Ke(o),"getItemIcon",function(c,u){var d=o.props.prefixCls,f=c||m.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(f=m.createElement(c,X({},o.props))),f}),F(Ke(o),"isValid",function(c){var u=o.props.total;return Ry(c)&&c!==o.state.current&&Ry(u)&&u>0}),F(Ke(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u}),F(Ke(o),"handleKeyDown",function(c){(c.keyCode===Yo.ARROW_UP||c.keyCode===Yo.ARROW_DOWN)&&c.preventDefault();}),F(Ke(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===Yo.ENTER?o.handleChange(u):c.keyCode===Yo.ARROW_UP?o.handleChange(u-1):c.keyCode===Yo.ARROW_DOWN&&o.handleChange(u+1);}),F(Ke(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),F(Ke(o),"changePageSize",function(c){var u=o.state.current,d=Po(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);}),F(Ke(o),"handleChange",function(c){var u=o.props,d=u.disabled,f=u.onChange,v=o.state,g=v.pageSize,h=v.current,p=v.currentInputValue;if(o.isValid(c)&&!d){var b=Po(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),f(y,g),y}return h}),F(Ke(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),F(Ke(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),F(Ke(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),F(Ke(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),F(Ke(o),"hasPrev",function(){return o.state.current>1}),F(Ke(o),"hasNext",function(){return o.state.current<Po(void 0,o.state,o.props)}),F(Ke(o),"runIfEnter",function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,f=new Array(d>2?d-2:0),v=2;v<d;v++)f[v-2]=arguments[v];u.apply(void 0,f);}}),F(Ke(o),"runIfEnterPrev",function(c){o.runIfEnter(c,o.prev);}),F(Ke(o),"runIfEnterNext",function(c){o.runIfEnter(c,o.next);}),F(Ke(o),"runIfEnterJumpPrev",function(c){o.runIfEnter(c,o.jumpPrev);}),F(Ke(o),"runIfEnterJumpNext",function(c){o.runIfEnter(c,o.jumpNext);}),F(Ke(o),"handleGoTO",function(c){(c.keyCode===Yo.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);}),F(Ke(o),"renderPrev",function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,v=f(c,"prev",o.getItemIcon(d,"prev page")),g=!o.hasPrev();return m.isValidElement(v)?m.cloneElement(v,{disabled:g}):v}),F(Ke(o),"renderNext",function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,v=f(c,"next",o.getItemIcon(d,"next page")),g=!o.hasNext();return m.isValidElement(v)?m.cloneElement(v,{disabled:g}):v});var a=r.onChange!==Mv,i="current"in r;i&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var l=r.defaultPageSize;return "pageSize"in r&&(l=r.pageSize),s=Math.min(s,Po(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return On(n,[{key:"componentDidUpdate",value:function(o,a){var i=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(i,"-item-").concat(a.current));if(s&&document.activeElement===s){var l;s==null||(l=s.blur)===null||l===void 0||l.call(s);}}}},{key:"getValidValue",value:function(o){var a=o.target.value,i=Po(void 0,this.state,this.props),s=this.state.currentInputValue,l;return a===""?l=a:Number.isNaN(Number(a))?l=s:a>=i?l=i:l=Number(a),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,f=o.showQuickJumper,v=o.showLessItems,g=o.showTitle,h=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,w=o.jumpNextIcon,x=o.selectComponentClass,$=o.selectPrefixCls,S=o.pageSizeOptions,E=this.state,I=E.current,O=E.pageSize,R=E.currentInputValue;if(c===!0&&u<=O)return null;var M=Po(void 0,this.state,this.props),k=[],A=null,L=null,T=null,P=null,_=null,z=f&&f.goButton,j=v?1:2,H=I-1>0?I-1:0,B=I+1<M?I+1:M,V=wi(this.props,{aria:!0,data:!0}),G=h&&m.createElement("li",{className:"".concat(a,"-total-text")},h(u,[u===0?0:(I-1)*O+1,I*O>u?u:I*O]));if(p){z&&(typeof z=="boolean"?_=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):_=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),_=m.createElement("li",{title:g?"".concat(d.jump_to).concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},_));var q=this.renderPrev(H);return m.createElement("ul",Re({className:K(a,"".concat(a,"-simple"),F({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},V),G,q?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),F({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},q):null,m.createElement("li",{title:g?"".concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},m.createElement("input",{type:"text",value:R,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(a,"-slash")},"/"),M),m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),F({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),m.createElement(Rv,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}if(M<=3+j*2){var Y={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};M||k.push(m.createElement(ss,Re({},Y,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var te=1;te<=M;te+=1){var W=I===te;k.push(m.createElement(ss,Re({},Y,{key:te,page:te,active:W})));}}else {var Z=v?d.prev_3:d.prev_5,U=v?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),ie=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));y&&(A=ue?m.createElement("li",{title:g?Z:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:K("".concat(a,"-jump-prev"),F({},"".concat(a,"-jump-prev-custom-icon"),!!C))},ue):null,L=ie?m.createElement("li",{title:g?U:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:K("".concat(a,"-jump-next"),F({},"".concat(a,"-jump-next-custom-icon"),!!w))},ie):null),P=m.createElement(ss,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:g,itemRender:b}),T=m.createElement(ss,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var se=Math.max(1,I-j),ee=Math.min(I+j,M);I-1<=j&&(ee=1+j*2),M-I<=j&&(se=M-j*2);for(var ce=se;ce<=ee;ce+=1){var Q=I===ce;k.push(m.createElement(ss,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ce,page:ce,active:Q,showTitle:g,itemRender:b}));}I-1>=j*2&&I!==3&&(k[0]=m.cloneElement(k[0],{className:"".concat(a,"-item-after-jump-prev")}),k.unshift(A)),M-I>=j*2&&I!==M-2&&(k[k.length-1]=m.cloneElement(k[k.length-1],{className:"".concat(a,"-item-before-jump-next")}),k.push(L)),se!==1&&k.unshift(T),ee!==M&&k.push(P);}var le=!this.hasPrev()||!M,he=!this.hasNext()||!M,ne=this.renderPrev(H),ae=this.renderNext(B);return m.createElement("ul",Re({className:K(a,i,F({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},V),G,ne?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:le?null:0,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),F({},"".concat(a,"-disabled"),le)),"aria-disabled":le},ne):null,k,ae?m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:he?null:0,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),F({},"".concat(a,"-disabled"),he)),"aria-disabled":he},ae):null,m.createElement(Rv,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,l=Po(o.pageSize,a,o);s=s>l?l:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(m.Component);F(Ex,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:Mv,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Mv,locale:uX,style:{},itemRender:dX,totalBoundaryShowSizeChanger:50});var Kd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,m__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a&&a(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:m__namespace.createElement("span",{className:K(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function fX(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=m.useMemo(function(){if(ut(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:m.createElement(Kd,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var Ix=m__namespace.createContext(null);function mX(){return m__namespace.useContext(Ix)}function vX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=J(t,2),r=n[0],o=n[1],a=m__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};m__namespace.useEffect(function(){return i},[]);var s=function(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,i]}function Ox(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m__namespace.useRef(null),n=m__namespace.useRef(null);m__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 gX(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__namespace.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var hX=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,v=t.value,g=t.maxLength,h=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,$=t.attrs,S=i||m__namespace.createElement("input",null),E=S,I=E.ref,O=E.props,R=O.onKeyDown,M=O.onChange,k=O.onMouseDown,A=O.onCompositionStart,L=O.onCompositionEnd,T=O.style;return "maxLength"in S.props,S=m__namespace.cloneElement(S,X(X(X({type:"search"},O),{},{id:a,ref:qn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:K("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":x?f:void 0},$),{},{value:d?v:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:X(X({},T),{},{opacity:d?null:0}),onKeyDown:function(_){h(_),R&&R(_);},onMouseDown:function(_){p(_),k&&k(_);},onChange:function(_){b(_),M&&M(_);},onCompositionStart:function(_){C(_),A&&A(_);},onCompositionEnd:function(_){w(_),L&&L(_);},onPaste:y})),S},Bh=m__namespace.forwardRef(hX);Bh.displayName="Input";function Px(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var pX=typeof window<"u"&&window.document&&window.document.documentElement,bX=pX;function yX(e){return e!=null}function CX(e){return !e&&e!==0}function My(e){return ["string","number"].includes(ut(e))}function Rx(e){var t=void 0;return e&&(My(e.title)?t=e.title.toString():My(e.label)&&(t=e.label.toString())),t}function SX(e,t){bX?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function wX(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var _y=function(t){t.preventDefault(),t.stopPropagation();},$X=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,v=t.autoFocus,g=t.autoComplete,h=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,x=w===void 0?function(se){return "+ ".concat(se.length," ...")}:w,$=t.tagRender,S=t.onToggleOpen,E=t.onRemove,I=t.onInputChange,O=t.onInputPaste,R=t.onInputKeyDown,M=t.onInputMouseDown,k=t.onInputCompositionStart,A=t.onInputCompositionEnd,L=m__namespace.useRef(null),T=m.useState(0),P=J(T,2),_=P[0],z=P[1],j=m.useState(!1),H=J(j,2),B=H[0],V=H[1],G="".concat(r,"-selection"),q=a||d==="multiple"&&s===!1||d==="tags"?i:"",Y=d==="tags"||d==="multiple"&&s===!1||f&&(a||B);SX(function(){z(L.current.scrollWidth);},[q]);function te(se,ee,ce,Q,le){return m__namespace.createElement("span",{className:K("".concat(G,"-item"),F({},"".concat(G,"-item-disabled"),ce)),title:Rx(se)},m__namespace.createElement("span",{className:"".concat(G,"-item-content")},ee),Q&&m__namespace.createElement(Kd,{className:"".concat(G,"-item-remove"),onMouseDown:_y,onClick:le,customizeIcon:b},"×"))}function W(se,ee,ce,Q,le){var he=function(ae){_y(ae),S(!a);};return m__namespace.createElement("span",{onMouseDown:he},$({label:ee,value:se,disabled:ce,closable:Q,onClose:le}))}function Z(se){var ee=se.disabled,ce=se.label,Q=se.value,le=!u&&!ee,he=ce;if(typeof C=="number"&&(typeof ce=="string"||typeof ce=="number")){var ne=String(he);ne.length>C&&(he="".concat(ne.slice(0,C),"..."));}var ae=function(Ce){Ce&&Ce.stopPropagation(),E(se);};return typeof $=="function"?W(Q,he,ee,le,ae):te(se,he,ee,le,ae)}function U(se){var ee=typeof x=="function"?x(se):x;return te({title:ee},ee,!1)}var ue=m__namespace.createElement("div",{className:"".concat(G,"-search"),style:{width:_},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},m__namespace.createElement(Bh,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:v,autoComplete:g,editable:Y,activeDescendantId:h,value:q,onKeyDown:R,onMouseDown:M,onChange:I,onPaste:O,onCompositionStart:k,onCompositionEnd:A,tabIndex:p,attrs:wi(t,!0)}),m__namespace.createElement("span",{ref:L,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q," ")),ie=m__namespace.createElement(io,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:Z,renderRest:U,suffix:ue,itemKey:wX,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,ie,!o.length&&!q&&m__namespace.createElement("span",{className:"".concat(G,"-placeholder")},c))},xX=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,v=t.placeholder,g=t.tabIndex,h=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,x=t.onInputChange,$=t.onInputPaste,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,I=t.title,O=m__namespace.useState(!1),R=J(O,2),M=R[0],k=R[1],A=u==="combobox",L=A||h,T=f[0],P=p||"";A&&b&&!M&&(P=b),m__namespace.useEffect(function(){A&&k(!1);},[A,b]);var _=u!=="combobox"&&!d&&!h?!1:!!P,z=I===void 0?Rx(T):I,j=function(){if(T)return null;var B=_?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},v)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(Bh,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:P,onKeyDown:C,onMouseDown:w,onChange:function(B){k(!0),x(B);},onPaste:$,onCompositionStart:S,onCompositionEnd:E,tabIndex:g,attrs:wi(t,!0),maxLength:A?y:void 0})),!A&&T?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:_?{visibility:"hidden"}:void 0},T.label):null,j())};function EX(e){return ![ge.ESC,ge.SHIFT,ge.BACKSPACE,ge.TAB,ge.WIN_KEY,ge.ALT,ge.META,ge.WIN_KEY_RIGHT,ge.CTRL,ge.SEMICOLON,ge.EQUALS,ge.CAPS_LOCK,ge.CONTEXT_MENU,ge.F1,ge.F2,ge.F3,ge.F4,ge.F5,ge.F6,ge.F7,ge.F8,ge.F9,ge.F10,ge.F11,ge.F12].includes(e)}var IX=function(t,n){var r=m.useRef(null),o=m.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,v=t.onToggleOpen,g=t.onInputKeyDown,h=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=Ox(0),b=J(p,2),y=b[0],C=b[1],w=function(P){var _=P.which;(_===ge.UP||_===ge.DOWN)&&P.preventDefault(),g&&g(P),_===ge.ENTER&&s==="tags"&&!o.current&&!i&&(f==null||f(P.target.value)),EX(_)&&v(!0);},x=function(){C(!0);},$=m.useRef(null),S=function(P){d(P,!0,o.current)!==!1&&v(!0);},E=function(){o.current=!0;},I=function(P){o.current=!1,s!=="combobox"&&S(P.target.value);},O=function(P){var _=P.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(z,$.current);}$.current=null,S(_);},R=function(P){var _=P.clipboardData,z=_.getData("text");$.current=z;},M=function(P){var _=P.target;if(_!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},k=function(P){var _=y();P.target!==r.current&&!_&&s!=="combobox"&&P.preventDefault(),(s!=="combobox"&&(!l||!_)||!i)&&(i&&u!==!1&&d("",!0,!1),v());},A={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:O,onInputPaste:R,onInputCompositionStart:E,onInputCompositionEnd:I},L=s==="multiple"||s==="tags"?m__namespace.createElement($X,Re({},t,A)):m__namespace.createElement(xX,Re({},t,A));return m__namespace.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:M,onMouseDown:k},L)},Mx=m__namespace.forwardRef(IX);Mx.displayName="Selector";var OX=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],PX=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"}}},RX=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,v=t.placement,g=t.builtinPlacements,h=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,$=t.onPopupMouseEnter,S=tt(t,OX),E="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var O=m__namespace.useMemo(function(){return g||PX(h)},[g,h]),R=s?"".concat(E,"-").concat(s):l,M=typeof h=="number",k=m__namespace.useMemo(function(){return M?null:h===!1?"minWidth":"width"},[h,M]),A=c;M&&(A=X(X({},A),{},{width:h}));var L=m__namespace.useRef(null);return m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return L.current}}}),m__namespace.createElement(hd,Re({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:v||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:R,popup:m__namespace.createElement("div",{ref:L,onMouseEnter:$},I),stretch:k,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:K(u,F({},"".concat(E,"-empty"),C)),popupStyle:A,getTriggerDOMNode:w,onPopupVisibleChange:x}),a)},_x=m__namespace.forwardRef(RX);_x.displayName="SelectTrigger";function Ty(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 Tx(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function MX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Tx(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){d.forEach(function(v){if(f||!(l in v)){var g=v[s];o.push({key:Ty(v,o.length),groupOption:f,data:v,label:v[i],value:g});}else {var h=v[c];h===void 0&&r&&(h=v.label),o.push({key:Ty(v,o.length),group:!0,data:v,label:h}),u(v[l],!0);}});}return u(e,!1),o}function _v(e){var t=X({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return $n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function _X(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=pw(i),l=s[0],c=s.slice(1);if(!l)return [a];var u=a.split(l);return n=n||u.length>1,u.reduce(function(d,f){return [].concat(Ae(d),Ae(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var TX=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],NX=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Tv(e){return e==="tags"||e==="multiple"}var kX=m__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,v=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,x=e.getRawInputElement,$=e.open,S=e.defaultOpen,E=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,R=e.activeDescendantId,M=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,L=e.onSearchSplit,T=e.tokenSeparators,P=e.allowClear,_=e.suffixIcon,z=e.clearIcon,j=e.OptionList,H=e.animation,B=e.transitionName,V=e.dropdownStyle,G=e.dropdownClassName,q=e.dropdownMatchSelectWidth,Y=e.dropdownRender,te=e.dropdownAlign,W=e.placement,Z=e.builtinPlacements,U=e.getPopupContainer,ue=e.showAction,ie=ue===void 0?[]:ue,se=e.onFocus,ee=e.onBlur,ce=e.onKeyUp,Q=e.onKeyDown,le=e.onMouseDown,he=tt(e,TX),ne=Tv(b),ae=(s!==void 0?s:ne)||b==="combobox",me=X({},he);NX.forEach(function(vt){delete me[vt];}),u==null||u.forEach(function(vt){delete me[vt];});var Ce=m__namespace.useState(!1),ke=J(Ce,2),We=ke[0],Ge=ke[1];m__namespace.useEffect(function(){Ge(gd());},[]);var Me=m__namespace.useRef(null),Xe=m__namespace.useRef(null),ze=m__namespace.useRef(null),He=m__namespace.useRef(null),Ie=m__namespace.useRef(null),we=m__namespace.useRef(!1),qe=vX(),nt=J(qe,3),bt=nt[0],Ze=nt[1],Je=nt[2];m__namespace.useImperativeHandle(t,function(){var vt,Fe;return {focus:(vt=He.current)===null||vt===void 0?void 0:vt.focus,blur:(Fe=He.current)===null||Fe===void 0?void 0:Fe.blur,scrollTo:function(yt){var $t;return ($t=Ie.current)===null||$t===void 0?void 0:$t.scrollTo(yt)}}});var gt=m__namespace.useMemo(function(){var vt;if(b!=="combobox")return M;var Fe=(vt=d[0])===null||vt===void 0?void 0:vt.value;return typeof Fe=="string"||typeof Fe=="number"?String(Fe):""},[M,b,d]),ht=b==="combobox"&&typeof w=="function"&&w()||null,st=typeof x=="function"&&x(),dt=$a(Xe,st==null||(n=st.props)===null||n===void 0?void 0:n.ref),et=m__namespace.useState(!1),$e=J(et,2),xe=$e[0],_e=$e[1];Xt(function(){_e(!0);},[]);var ve=qt(!1,{defaultValue:S,value:$}),Te=J(ve,2),Se=Te[0],fe=Te[1],oe=xe?Se:!1,ye=!h&&v;(y||ye&&oe&&b==="combobox")&&(oe=!1);var de=ye?!1:oe,pe=m__namespace.useCallback(function(vt){var Fe=vt!==void 0?vt:!oe;y||(fe(Fe),oe!==Fe&&(E==null||E(Fe)));},[y,oe,fe,E]),Le=m__namespace.useMemo(function(){return (T||[]).some(function(vt){return [`
`,`\r
`].includes(vt)})},[T]),Ue=function(Fe,at,yt){var $t=!0,Nt=Fe;O==null||O(null);var tn=yt?null:_X(Fe,T);return b!=="combobox"&&tn&&(Nt="",L==null||L(tn),pe(!1),$t=!1),A&>!==Nt&&A(Nt,{source:at?"typing":"effect"}),$t},lt=function(Fe){!Fe||!Fe.trim()||A(Fe,{source:"submit"});};m__namespace.useEffect(function(){!oe&&!ne&&b!=="combobox"&&Ue("",!1,!1);},[oe]),m__namespace.useEffect(function(){Se&&y&&fe(!1),y&&!we.current&&Ze(!1);},[y]);var it=Ox(),Et=J(it,2),wt=Et[0],ft=Et[1],je=function(Fe){var at=wt(),yt=Fe.which;if(yt===ge.ENTER&&(b!=="combobox"&&Fe.preventDefault(),oe||pe(!0)),ft(!!gt),yt===ge.BACKSPACE&&!at&&ne&&!gt&&d.length){for(var $t=Ae(d),Nt=null,tn=$t.length-1;tn>=0;tn-=1){var Wn=$t[tn];if(!Wn.disabled){$t.splice(tn,1),Nt=Wn;break}}Nt&&f($t,{type:"remove",values:[Nt]});}for(var Qn=arguments.length,Mr=new Array(Qn>1?Qn-1:0),pr=1;pr<Qn;pr++)Mr[pr-1]=arguments[pr];if(oe&&Ie.current){var Pa;(Pa=Ie.current).onKeyDown.apply(Pa,[Fe].concat(Mr));}Q==null||Q.apply(void 0,[Fe].concat(Mr));},Pe=function(Fe){for(var at=arguments.length,yt=new Array(at>1?at-1:0),$t=1;$t<at;$t++)yt[$t-1]=arguments[$t];if(oe&&Ie.current){var Nt;(Nt=Ie.current).onKeyUp.apply(Nt,[Fe].concat(yt));}ce==null||ce.apply(void 0,[Fe].concat(yt));},Ee=function(Fe){var at=d.filter(function(yt){return yt!==Fe});f(at,{type:"remove",values:[Fe]});},Oe=m__namespace.useRef(!1),Ve=function(){Ze(!0),y||(se&&!Oe.current&&se.apply(void 0,arguments),ie.includes("focus")&&pe(!0)),Oe.current=!0;},mt=function(){we.current=!0,Ze(!1,function(){Oe.current=!1,we.current=!1,pe(!1);}),!y&&(gt&&(b==="tags"?A(gt,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),ee&&ee.apply(void 0,arguments));},_t=[];m__namespace.useEffect(function(){return function(){_t.forEach(function(vt){return clearTimeout(vt)}),_t.splice(0,_t.length);}},[]);var Mt=function(Fe){var at,yt=Fe.target,$t=(at=ze.current)===null||at===void 0?void 0:at.getPopupElement();if($t&&$t.contains(yt)){var Nt=setTimeout(function(){var Mr=_t.indexOf(Nt);if(Mr!==-1&&_t.splice(Mr,1),Je(),!We&&!$t.contains(document.activeElement)){var pr;(pr=He.current)===null||pr===void 0||pr.focus();}});_t.push(Nt);}for(var tn=arguments.length,Wn=new Array(tn>1?tn-1:0),Qn=1;Qn<tn;Qn++)Wn[Qn-1]=arguments[Qn];le==null||le.apply(void 0,[Fe].concat(Wn));},vn=m__namespace.useState({}),un=J(vn,2),gn=un[1];function Bn(){gn({});}var Sn;st&&(Sn=function(Fe){pe(Fe);}),gX(function(){var vt;return [Me.current,(vt=ze.current)===null||vt===void 0?void 0:vt.getPopupElement()]},de,pe,!!st);var Xr=m__namespace.useMemo(function(){return X(X({},e),{},{notFoundContent:h,open:oe,triggerOpen:de,id:o,showSearch:ae,multiple:ne,toggleOpen:pe})},[e,h,de,oe,o,ae,ne,pe]),uo=!!_||C,Hn;uo&&(Hn=m__namespace.createElement(Kd,{className:K("".concat(a,"-arrow"),F({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:gt,open:oe,focused:bt,showSearch:ae}}));var Io=function(){var Fe;p==null||p(),(Fe=He.current)===null||Fe===void 0||Fe.focus(),f([],{type:"clear",values:d}),Ue("",!1,!1);},Rr=fX(a,Io,d,P,z,y,gt,b),or=Rr.allowClear,hr=Rr.clearIcon,qr=m__namespace.createElement(j,{ref:Ie}),Yr=K(a,i,(r={},F(r,"".concat(a,"-focused"),bt),F(r,"".concat(a,"-multiple"),ne),F(r,"".concat(a,"-single"),!ne),F(r,"".concat(a,"-allow-clear"),P),F(r,"".concat(a,"-show-arrow"),uo),F(r,"".concat(a,"-disabled"),y),F(r,"".concat(a,"-loading"),C),F(r,"".concat(a,"-open"),oe),F(r,"".concat(a,"-customize-input"),ht),F(r,"".concat(a,"-show-search"),ae),r)),Yn=m__namespace.createElement(_x,{ref:ze,disabled:y,prefixCls:a,visible:de,popupElement:qr,animation:H,transitionName:B,dropdownStyle:V,dropdownClassName:G,direction:c,dropdownMatchSelectWidth:q,dropdownRender:Y,dropdownAlign:te,placement:W,builtinPlacements:Z,getPopupContainer:U,empty:v,getTriggerDOMNode:function(){return Xe.current},onPopupVisibleChange:Sn,onPopupMouseEnter:Bn},st?m__namespace.cloneElement(st,{ref:dt}):m__namespace.createElement(Mx,Re({},e,{domRef:Xe,prefixCls:a,inputElement:ht,ref:He,id:o,showSearch:ae,autoClearSearchValue:k,mode:b,activeDescendantId:R,tagRender:l,values:d,open:oe,onToggleOpen:pe,activeValue:I,searchValue:gt,onSearch:Ue,onSearchSubmit:lt,onRemove:Ee,tokenWithEnter:Le}))),Qr;return st?Qr=Yn:Qr=m__namespace.createElement("div",Re({className:Yr},me,{ref:Me,onMouseDown:Mt,onKeyDown:je,onKeyUp:Pe,onFocus:Ve,onBlur:mt}),bt&&!oe&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(vt){var Fe=vt.label,at=vt.value;return ["number","string"].includes(ut(Fe))?Fe:at}).join(", "))),Yn,Hn,or&&hr),m__namespace.createElement(Ix.Provider,{value:Xr},Qr)}),Hh=function(){return null};Hh.isSelectOptGroup=!0;var Wh=function(){return null};Wh.isSelectOption=!0;var Nx=m__namespace.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};if(r!==void 0){var v;d={height:n,position:"relative",overflow:"hidden"},f=X(X({},f),{},(v={transform:"translateY(".concat(r,"px)")},F(v,c?"marginRight":"marginLeft",-o),F(v,"position","absolute"),F(v,"left",0),F(v,"right",0),F(v,"top",0),v));}return m__namespace.createElement("div",{style:d},m__namespace.createElement(Er,{onResize:function(h){var p=h.offsetHeight;p&&s&&s();}},m__namespace.createElement("div",Re({style:f,className:K(F({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});Nx.displayName="Filler";function Ny(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var ky=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,v=e.style,g=e.thumbStyle,h=m__namespace.useState(!1),p=J(h,2),b=p[0],y=p[1],C=m__namespace.useState(null),w=J(C,2),x=w[0],$=w[1],S=m__namespace.useState(null),E=J(S,2),I=E[0],O=E[1],R=!o,M=m__namespace.useRef(),k=m__namespace.useRef(),A=m__namespace.useState(!1),L=J(A,2),T=L[0],P=L[1],_=m__namespace.useRef(),z=function(){clearTimeout(_.current),P(!0),_.current=setTimeout(function(){P(!1);},3e3);},j=i-f||0,H=f-d||0,B=j>0,V=m__namespace.useMemo(function(){if(a===0||j===0)return 0;var ie=a/j;return ie*H},[a,j,H]),G=function(se){se.stopPropagation(),se.preventDefault();},q=m__namespace.useRef({top:V,dragging:b,pageY:x,startTop:I});q.current={top:V,dragging:b,pageY:x,startTop:I};var Y=function(se){y(!0),$(Ny(se,u)),O(q.current.top),s(),se.stopPropagation(),se.preventDefault();};m__namespace.useEffect(function(){var ie=function(Q){Q.preventDefault();},se=M.current,ee=k.current;return se.addEventListener("touchstart",ie),ee.addEventListener("touchstart",Y),function(){se.removeEventListener("touchstart",ie),ee.removeEventListener("touchstart",Y);}},[]);var te=m__namespace.useRef();te.current=j;var W=m__namespace.useRef();W.current=H,m__namespace.useEffect(function(){if(b){var ie,se=function(Q){var le=q.current,he=le.dragging,ne=le.pageY,ae=le.startTop;if(Rt.cancel(ie),he){var me=Ny(Q,u)-ne,Ce=ae;!R&&u?Ce-=me:Ce+=me;var ke=te.current,We=W.current,Ge=We?Ce/We:0,Me=Math.ceil(Ge*ke);Me=Math.max(Me,0),Me=Math.min(Me,ke),ie=Rt(function(){c(Me,u);});}},ee=function(){y(!1),l();};return window.addEventListener("mousemove",se),window.addEventListener("touchmove",se),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),function(){window.removeEventListener("mousemove",se),window.removeEventListener("touchmove",se),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Rt.cancel(ie);}}},[b]),m__namespace.useEffect(function(){z();},[a]),m__namespace.useImperativeHandle(t,function(){return {delayHidden:z}});var Z="".concat(r,"-scrollbar"),U={position:"absolute",visibility:T&&B?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(U.height=8,U.left=0,U.right=0,U.bottom=0,ue.height="100%",ue.width=d,R?ue.left=V:ue.right=V):(U.width=8,U.top=0,U.bottom=0,R?U.right=0:U.left=0,ue.width="100%",ue.height=d,ue.top=V),m__namespace.createElement("div",{ref:M,className:K(Z,(n={},F(n,"".concat(Z,"-horizontal"),u),F(n,"".concat(Z,"-vertical"),!u),F(n,"".concat(Z,"-visible"),T),n)),style:X(X({},U),v),onMouseDown:G,onMouseMove:z},m__namespace.createElement("div",{ref:k,className:K("".concat(Z,"-thumb"),F({},"".concat(Z,"-thumb-moving"),b)),style:X(X({},ue),g),onMouseDown:Y}))});function AX(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function LX(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(l,c){var u=t+c,d=a(l,u,{style:{width:r}}),f=s(l);return m__namespace.createElement(AX,{key:f,setRef:function(g){return o(l,g)}},d)})}var DX=function(){function e(){In(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return On(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function zX(e,t,n){var r=m__namespace.useState(0),o=J(r,2),a=o[0],i=o[1],s=m.useRef(new Map),l=m.useRef(new DX),c=m.useRef();function u(){Rt.cancel(c.current);}function d(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var g=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=ps(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};v?g():c.current=Rt(g);}function f(v,g){var h=e(v),p=s.current.get(h);g?(s.current.set(h,g),d()):s.current.delete(h),!p!=!g&&(g?t==null||t(v):n==null||n(v));}return m.useEffect(function(){return u},[]),[f,d,l.current,a]}var jX=10;function FX(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(),c=m__namespace.useState(null),u=J(c,2),d=u[0],f=u[1];return Xt(function(){if(d&&d.times<jX){if(!e.current){f(function(z){return X({},z)});return}a();var v=d.targetAlign,g=d.originAlign,h=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=v,w=null;if(b){for(var x=v||g,$=0,S=0,E=0,I=Math.min(t.length-1,h),O=0;O<=I;O+=1){var R=o(t[O]);S=$;var M=n.get(R);E=S+(M===void 0?r:M),$=E;}for(var k=x==="top"?p:b-p,A=I;A>=0;A-=1){var L=o(t[A]),T=n.get(L);if(T===void 0){y=!0;break}if(k-=T,k<=0)break}switch(x){case"top":w=S-p;break;case"bottom":w=E-b+p;break;default:{var P=e.current.scrollTop,_=P+b;S<P?C="top":E>_&&(C="bottom");}}w!==null&&i(w),w!==d.lastTop&&(y=!0);}y&&f(function(z){return X(X({},z),{},{times:z.times+1,targetAlign:C,lastTop:w})});}},[d,e.current]),function(v){if(v==null){s();return}if(Rt.cancel(l.current),typeof v=="number")i(v);else if(v&&ut(v)==="object"){var g,h=v.align;"index"in v?g=v.index:g=t.findIndex(function(y){return o(y)===v.key});var p=v.offset,b=p===void 0?0:p;f({times:0,index:g,offset:b,originAlign:h});}}}function BX(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(g){return g!==void 0?n(g):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var f=l(a[d]),v=l(i[d]);if(f!==v){c=d,u=u||f!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function HX(e,t,n){var r=m__namespace.useState(e),o=J(r,2),a=o[0],i=o[1],s=m__namespace.useState(null),l=J(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=BX(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[c]}var Ay=(typeof navigator>"u"?"undefined":ut(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const kx=function(e,t){var n=m.useRef(!1),r=m.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var a=m.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function WX(e,t,n,r,o){var a=m.useRef(0),i=m.useRef(null),s=m.useRef(null),l=m.useRef(!1),c=kx(t,n);function u(p,b){Rt.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(Ay||p.preventDefault(),i.current=Rt(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),Ay||p.preventDefault();}var f=m.useRef(null),v=m.useRef(null);function g(p){if(e){Rt.cancel(v.current),v.current=Rt(function(){f.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,w=b,x=y;(f.current==="sx"||!f.current&&C&&y&&!b)&&(w=y,x=0,f.current="sx");var $=Math.abs(w),S=Math.abs(x);f.current===null&&(f.current=r&&$>S?"x":"y"),f.current==="y"?u(p,x):d(p,w);}}function h(p){e&&(l.current=p.detail===s.current);}return [g,h]}var VX=14/15;function GX(e,t,n){var r=m.useRef(!1),o=m.useRef(0),a=m.useRef(null),i=m.useRef(null),s,l=function(f){if(r.current){var v=Math.ceil(f.touches[0].pageY),g=o.current-v;o.current=v,n(g)&&f.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=VX,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,s();},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),a.current=f.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c));};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c));},Xt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(i.current);}},[e]);}var KX=20;function Ly(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,KX),n=Math.min(n,e/2),Math.floor(n)}function UX(e,t,n,r){var o=m__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=J(o,2),i=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=i.get(u),v=i.get(d);if(f===void 0||v===void 0)for(var g=e.length,h=s.length;h<g;h+=1){var p,b=e[h],y=t(b);i.set(y,h);var C=(p=n.get(y))!==null&&p!==void 0?p:r;if(s[h]=(s[h-1]||0)+C,y===u&&(f=h),y===d&&(v=h),f!==void 0&&v!==void 0)break}return {top:s[f-1]||0,bottom:s[v]}};return l}var XX=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],qX=[],YX={overflowY:"auto",overflowAnchor:"none"};function QX(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,v=e.virtual,g=e.direction,h=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,$=e.extraRender,S=e.styles,E=tt(e,XX),I=!!(v!==!1&&a&&i),O=I&&u&&(i*u.length>a||!!h),R=g==="rtl",M=K(r,F({},"".concat(r,"-rtl"),R),o),k=u||qX,A=m.useRef(),L=m.useRef(),T=m.useState(0),P=J(T,2),_=P[0],z=P[1],j=m.useState(0),H=J(j,2),B=H[0],V=H[1],G=m.useState(!1),q=J(G,2),Y=q[0],te=q[1],W=function(){te(!0);},Z=function(){te(!1);},U=m__namespace.useCallback(function(Ee){return typeof f=="function"?f(Ee):Ee==null?void 0:Ee[f]},[f]),ue={getKey:U};function ie(Ee){z(function(Oe){var Ve;typeof Ee=="function"?Ve=Ee(Oe):Ve=Ee;var mt=dt(Ve);return A.current.scrollTop=mt,mt});}var se=m.useRef({start:0,end:k.length}),ee=m.useRef(),ce=HX(k,U),Q=J(ce,1),le=Q[0];ee.current=le;var he=zX(U,null,null),ne=J(he,4),ae=ne[0],me=ne[1],Ce=ne[2],ke=ne[3],We=m__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!O){var Ee;return {scrollHeight:((Ee=L.current)===null||Ee===void 0?void 0:Ee.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var Oe=0,Ve,mt,_t,Mt=k.length,vn=0;vn<Mt;vn+=1){var un=k[vn],gn=U(un),Bn=Ce.get(gn),Sn=Oe+(Bn===void 0?i:Bn);Sn>=_&&Ve===void 0&&(Ve=vn,mt=Oe),Sn>_+a&&_t===void 0&&(_t=vn),Oe=Sn;}return Ve===void 0&&(Ve=0,mt=0,_t=Math.ceil(a/i)),_t===void 0&&(_t=k.length-1),_t=Math.min(_t+1,k.length-1),{scrollHeight:Oe,start:Ve,end:_t,offset:mt}},[O,I,_,k,ke,a]),Ge=We.scrollHeight,Me=We.start,Xe=We.end,ze=We.offset;se.current.start=Me,se.current.end=Xe;var He=m__namespace.useState({width:0,height:a}),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=function(Oe){qe(Oe);},bt=m.useRef(),Ze=m.useRef(),Je=m__namespace.useMemo(function(){return Ly(we.width,h)},[we.width,h]),gt=m__namespace.useMemo(function(){return Ly(we.height,Ge)},[we.height,Ge]),ht=Ge-a,st=m.useRef(ht);st.current=ht;function dt(Ee){var Oe=Ee;return Number.isNaN(st.current)||(Oe=Math.min(Oe,st.current)),Oe=Math.max(Oe,0),Oe}var et=_<=0,$e=_>=ht,xe=kx(et,$e),_e=function(){return {x:R?-B:B,y:_}},ve=m.useRef(_e()),Te=An(function(){if(C){var Ee=_e();(ve.current.x!==Ee.x||ve.current.y!==Ee.y)&&(C(Ee),ve.current=Ee);}});function Se(Ee,Oe){var Ve=Ee;Oe?(V1.flushSync(function(){V(Ve);}),Te()):ie(Ve);}function fe(Ee){var Oe=Ee.currentTarget.scrollTop;Oe!==_&&ie(Oe),y==null||y(Ee),Te();}var oe=function(Oe){var Ve=Oe,mt=h-we.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,mt),Ve},ye=An(function(Ee,Oe){Oe?(V1.flushSync(function(){V(function(Ve){var mt=Ve+(R?-Ee:Ee);return oe(mt)});}),Te()):ie(function(Ve){var mt=Ve+Ee;return mt});}),de=WX(I,et,$e,!!h,ye),pe=J(de,2),Le=pe[0],Ue=pe[1];GX(I,A,function(Ee,Oe){return xe(Ee,Oe)?!1:(Le({preventDefault:function(){},deltaY:Ee}),!0)}),Xt(function(){function Ee(Ve){I&&Ve.preventDefault();}var Oe=A.current;return Oe.addEventListener("wheel",Le),Oe.addEventListener("DOMMouseScroll",Ue),Oe.addEventListener("MozMousePixelScroll",Ee),function(){Oe.removeEventListener("wheel",Le),Oe.removeEventListener("DOMMouseScroll",Ue),Oe.removeEventListener("MozMousePixelScroll",Ee);}},[I]),Xt(function(){h&&V(function(Ee){return oe(Ee)});},[we.width,h]);var lt=function(){var Oe,Ve;(Oe=bt.current)===null||Oe===void 0||Oe.delayHidden(),(Ve=Ze.current)===null||Ve===void 0||Ve.delayHidden();},it=FX(A,k,Ce,i,U,function(){return me(!0)},ie,lt);m__namespace.useImperativeHandle(t,function(){return {getScrollInfo:_e,scrollTo:function(Oe){function Ve(mt){return mt&&ut(mt)==="object"&&("left"in mt||"top"in mt)}Ve(Oe)?(Oe.left!==void 0&&V(oe(Oe.left)),it(Oe.top)):it(Oe);}}}),Xt(function(){if(w){var Ee=k.slice(Me,Xe+1);w(Ee,k);}},[Me,Xe,k]);var Et=UX(k,U,Ce,i),wt=$==null?void 0:$({start:Me,end:Xe,virtual:O,offsetX:B,offsetY:ze,rtl:R,getSize:Et}),ft=LX(k,Me,Xe,h,ae,d,ue),je=null;a&&(je=X(F({},l?"height":"maxHeight",a),YX),I&&(je.overflowY="hidden",h&&(je.overflowX="hidden"),Y&&(je.pointerEvents="none")));var Pe={};return R&&(Pe.dir="rtl"),m__namespace.createElement("div",Re({style:X(X({},c),{},{position:"relative"}),className:M},Pe,E),m__namespace.createElement(Er,{onResize:nt},m__namespace.createElement(b,{className:"".concat(r,"-holder"),style:je,ref:A,onScroll:fe,onMouseEnter:lt},m__namespace.createElement(Nx,{prefixCls:r,height:Ge,offsetX:B,offsetY:ze,scrollWidth:h,onInnerResize:me,ref:L,innerProps:x,rtl:R,extra:wt},ft))),O&&Ge>a&&m__namespace.createElement(ky,{ref:bt,prefixCls:r,scrollOffset:_,scrollRange:Ge,rtl:R,onScroll:Se,onStartMove:W,onStopMove:Z,spinSize:gt,containerSize:we.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),O&&h&&m__namespace.createElement(ky,{ref:Ze,prefixCls:r,scrollOffset:B,scrollRange:h,rtl:R,onScroll:Se,onStartMove:W,onStopMove:Z,spinSize:Je,containerSize:we.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var Ax=m__namespace.forwardRef(QX);Ax.displayName="List";var Lx=m__namespace.createContext(null);function ZX(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var JX=["disabled","title","children","style","className"];function Dy(e){return typeof e=="string"||typeof e=="number"}var eq=function(t,n){var r=mX(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,v=m__namespace.useContext(Lx),g=v.flattenOptions,h=v.onActiveValue,p=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,C=v.rawValues,w=v.fieldNames,x=v.virtual,$=v.direction,S=v.listHeight,E=v.listItemHeight,I=v.optionRender,O="".concat(o,"-item"),R=cl(function(){return g},[i,g],function(W,Z){return Z[0]&&W[1]!==Z[1]}),M=m__namespace.useRef(null),k=function(Z){Z.preventDefault();},A=function(Z){M.current&&M.current.scrollTo(typeof Z=="number"?{index:Z}:Z);},L=function(Z){for(var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=R.length,ie=0;ie<ue;ie+=1){var se=(Z+ie*U+ue)%ue,ee=R[se],ce=ee.group,Q=ee.data;if(!ce&&!Q.disabled)return se}return -1},T=m__namespace.useState(function(){return L(0)}),P=J(T,2),_=P[0],z=P[1],j=function(Z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(Z);var ue={source:U?"keyboard":"mouse"},ie=R[Z];if(!ie){h(null,-1,ue);return}h(ie.value,Z,ue);};m.useEffect(function(){j(p!==!1?L(0):-1);},[R.length,c]);var H=m__namespace.useCallback(function(W){return C.has(W)&&l!=="combobox"},[l,Ae(C).toString(),C.size]);m.useEffect(function(){var W=setTimeout(function(){if(!s&&i&&C.size===1){var U=Array.from(C)[0],ue=R.findIndex(function(ie){var se=ie.data;return se.value===U});ue!==-1&&(j(ue),A(ue));}});if(i){var Z;(Z=M.current)===null||Z===void 0||Z.scrollTo(void 0);}return function(){return clearTimeout(W)}},[i,c]);var B=function(Z){Z!==void 0&&b(Z,{selected:!C.has(Z)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Z){var U=Z.which,ue=Z.ctrlKey;switch(U){case ge.N:case ge.P:case ge.UP:case ge.DOWN:{var ie=0;if(U===ge.UP?ie=-1:U===ge.DOWN?ie=1:ZX()&&ue&&(U===ge.N?ie=1:U===ge.P&&(ie=-1)),ie!==0){var se=L(_+ie,ie);A(se),j(se,!0);}break}case ge.ENTER:{var ee=R[_];ee&&!ee.data.disabled?B(ee.value):B(void 0),i&&Z.preventDefault();break}case ge.ESC:u(!1),i&&Z.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Z){A(Z);}}}),R.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:k},d);var V=Object.keys(w).map(function(W){return w[W]}),G=function(Z){return Z.label};function q(W,Z){var U=W.group;return {role:U?"presentation":"option",id:"".concat(a,"_list_").concat(Z)}}var Y=function(Z){var U=R[Z];if(!U)return null;var ue=U.data||{},ie=ue.value,se=U.group,ee=wi(ue,!0),ce=G(U);return U?m__namespace.createElement("div",Re({"aria-label":typeof ce=="string"&&!se?ce:null},ee,{key:Z},q(U,Z),{"aria-selected":H(ie)}),ie):null},te={role:"listbox",id:"".concat(a,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,x&&m__namespace.createElement("div",Re({},te,{style:{height:0,width:0,overflow:"hidden"}}),Y(_-1),Y(_),Y(_+1)),m__namespace.createElement(Ax,{itemKey:"key",ref:M,data:R,height:S,itemHeight:E,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:x,direction:$,innerProps:x?null:te},function(W,Z){var U,ue=W.group,ie=W.groupOption,se=W.data,ee=W.label,ce=W.value,Q=se.key;if(ue){var le,he=(le=se.title)!==null&&le!==void 0?le:Dy(ee)?ee.toString():void 0;return m__namespace.createElement("div",{className:K(O,"".concat(O,"-group")),title:he},ee!==void 0?ee:Q)}var ne=se.disabled,ae=se.title;se.children;var me=se.style,Ce=se.className,ke=tt(se,JX),We=Fn(ke,V),Ge=H(ce),Me="".concat(O,"-option"),Xe=K(O,Me,Ce,(U={},F(U,"".concat(Me,"-grouped"),ie),F(U,"".concat(Me,"-active"),_===Z&&!ne),F(U,"".concat(Me,"-disabled"),ne),F(U,"".concat(Me,"-selected"),Ge),U)),ze=G(W),He=!y||typeof y=="function"||Ge,Ie=typeof ze=="number"?ze:ze||ce,we=Dy(Ie)?Ie.toString():void 0;return ae!==void 0&&(we=ae),m__namespace.createElement("div",Re({},wi(We),x?{}:q(W,Z),{"aria-selected":Ge,className:Xe,title:we,onMouseMove:function(){_===Z||ne||j(Z);},onClick:function(){ne||B(ce);},style:me}),m__namespace.createElement("div",{className:"".concat(Me,"-content")},typeof I=="function"?I(W,{index:Z}):Ie),m__namespace.isValidElement(y)||Ge,He&&m__namespace.createElement(Kd,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:ce,disabled:ne,isSelected:Ge}},Ge?"✓":null))}))},Dx=m__namespace.forwardRef(eq);Dx.displayName="OptionList";const tq=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return X(X({},d),{},{label:(f=i.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=m__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Kf(e,t){return Px(e).join("").toUpperCase().includes(t)}const nq=function(e,t,n,r,o){return m__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(v,g){return o?Kf(g[o],u):g[a]?Kf(g[i!=="children"?i:"label"],u):Kf(g[s],u)},f=c?function(v){return _v(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var g=d(n,f(v));if(g)l.push(v);else {var h=v[a].filter(function(p){return d(n,f(p))});h.length&&l.push(X(X({},v),{},F({},a,h)));}return}d(n,f(v))&&l.push(v);}),l},[e,r,o,n,t])};var zy=0,rq=Kn();function oq(){var e;return rq?(e=zy,zy+=1):e="TEST_OR_SSR",e}function aq(e){var t=m__namespace.useState(),n=J(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat(oq()));},[]),e||r}var iq=["children","value"],sq=["children"];function lq(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=tt(r,iq);return X({key:n,value:a!==void 0?a:n,children:o},i)}function zx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=tt(s,sq);return t||!a?lq(n):X(X({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:zx(l)})}).filter(function(n){return n})}function cq(e,t,n,r,o){return m__namespace.useMemo(function(){var a=e,i=!e;i&&(a=zx(t));var s=new Map,l=new Map,c=function(f,v,g){g&&typeof g=="string"&&f.set(v[g],v);};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<d.length;v+=1){var g=d[v];!g[n.options]||f?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):u(g[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function jy(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var uq=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],dq=["inputValue"];function fq(e){return !e||ut(e)!=="object"}var mq=m__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,v=e.onSelect,g=e.onDeselect,h=e.dropdownMatchSelectWidth,p=h===void 0?!0:h,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,x=e.options,$=e.optionRender,S=e.children,E=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,O=e.virtual,R=e.direction,M=e.listHeight,k=M===void 0?200:M,A=e.listItemHeight,L=A===void 0?20:A,T=e.value,P=e.defaultValue,_=e.labelInValue,z=e.onChange,j=tt(e,uq),H=aq(n),B=Tv(r),V=!!(!x&&S),G=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),q=m__namespace.useMemo(function(){return Tx(s,V)},[JSON.stringify(s),V]),Y=qt("",{value:c!==void 0?c:l,postState:function(ye){return ye||""}}),te=J(Y,2),W=te[0],Z=te[1],U=cq(x,S,q,C,w),ue=U.valueOptions,ie=U.labelOptions,se=U.options,ee=m__namespace.useCallback(function(oe){var ye=Px(oe);return ye.map(function(de){var pe,Le,Ue,lt,it;if(fq(de))pe=de;else {var Et;Ue=de.key,Le=de.label,pe=(Et=de.value)!==null&&Et!==void 0?Et:Ue;}var wt=ue.get(pe);if(wt){var ft;Le===void 0&&(Le=wt==null?void 0:wt[w||q.label]),Ue===void 0&&(Ue=(ft=wt==null?void 0:wt.key)!==null&&ft!==void 0?ft:pe),lt=wt==null?void 0:wt.disabled,it=wt==null?void 0:wt.title;}return {label:Le,value:pe,key:Ue,disabled:lt,title:it}})},[q,w,ue]),ce=qt(P,{value:T}),Q=J(ce,2),le=Q[0],he=Q[1],ne=m__namespace.useMemo(function(){var oe,ye=ee(le);return r==="combobox"&&CX((oe=ye[0])===null||oe===void 0?void 0:oe.value)?[]:ye},[le,ee,r]),ae=tq(ne,ue),me=J(ae,2),Ce=me[0],ke=me[1],We=m__namespace.useMemo(function(){if(!r&&Ce.length===1){var oe=Ce[0];if(oe.value===null&&(oe.label===null||oe.label===void 0))return []}return Ce.map(function(ye){var de;return X(X({},ye),{},{label:(de=ye.label)!==null&&de!==void 0?de:ye.value})})},[r,Ce]),Ge=m__namespace.useMemo(function(){return new Set(Ce.map(function(oe){return oe.value}))},[Ce]);m__namespace.useEffect(function(){if(r==="combobox"){var oe,ye=(oe=Ce[0])===null||oe===void 0?void 0:oe.value;Z(yX(ye)?String(ye):"");}},[Ce]);var Me=jy(function(oe,ye){var de,pe=ye??oe;return de={},F(de,q.value,oe),F(de,q.label,pe),de}),Xe=m__namespace.useMemo(function(){if(r!=="tags")return se;var oe=Ae(se),ye=function(pe){return ue.has(pe)};return Ae(Ce).sort(function(de,pe){return de.value<pe.value?-1:1}).forEach(function(de){var pe=de.value;ye(pe)||oe.push(Me(pe,de.label));}),oe},[Me,se,ue,Ce,r]),ze=nq(Xe,q,W,G,C),He=m__namespace.useMemo(function(){return r!=="tags"||!W||ze.some(function(oe){return oe[C||"value"]===W})||ze.some(function(oe){return oe[q.value]===W})?ze:[Me(W)].concat(Ae(ze))},[Me,C,r,ze,W,q]),Ie=m__namespace.useMemo(function(){return y?Ae(He).sort(function(oe,ye){return y(oe,ye)}):He},[He,y]),we=m__namespace.useMemo(function(){return MX(Ie,{fieldNames:q,childrenAsData:V})},[Ie,q,V]),qe=function(ye){var de=ee(ye);if(he(de),z&&(de.length!==Ce.length||de.some(function(Ue,lt){var it;return ((it=Ce[lt])===null||it===void 0?void 0:it.value)!==(Ue==null?void 0:Ue.value)}))){var pe=_?de:de.map(function(Ue){return Ue.value}),Le=de.map(function(Ue){return _v(ke(Ue.value))});z(B?pe:pe[0],B?Le:Le[0]);}},nt=m__namespace.useState(null),bt=J(nt,2),Ze=bt[0],Je=bt[1],gt=m__namespace.useState(0),ht=J(gt,2),st=ht[0],dt=ht[1],et=E!==void 0?E:r!=="combobox",$e=m__namespace.useCallback(function(oe,ye){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=de.source,Le=pe===void 0?"keyboard":pe;dt(ye),i&&r==="combobox"&&oe!==null&&Le==="keyboard"&&Je(String(oe));},[i,r]),xe=function(ye,de,pe){var Le=function(){var Oe,Ve=ke(ye);return [_?{label:Ve==null?void 0:Ve[q.label],value:ye,key:(Oe=Ve==null?void 0:Ve.key)!==null&&Oe!==void 0?Oe:ye}:ye,_v(Ve)]};if(de&&v){var Ue=Le(),lt=J(Ue,2),it=lt[0],Et=lt[1];v(it,Et);}else if(!de&&g&&pe!=="clear"){var wt=Le(),ft=J(wt,2),je=ft[0],Pe=ft[1];g(je,Pe);}},_e=jy(function(oe,ye){var de,pe=B?ye.selected:!0;pe?de=B?[].concat(Ae(Ce),[oe]):[oe]:de=Ce.filter(function(Le){return Le.value!==oe}),qe(de),xe(oe,pe),r==="combobox"?Je(""):(!Tv||f)&&(Z(""),Je(""));}),ve=function(ye,de){qe(ye);var pe=de.type,Le=de.values;(pe==="remove"||pe==="clear")&&Le.forEach(function(Ue){xe(Ue.value,!1,pe);});},Te=function(ye,de){if(Z(ye),Je(null),de.source==="submit"){var pe=(ye||"").trim();if(pe){var Le=Array.from(new Set([].concat(Ae(Ge),[pe])));qe(Le),xe(pe,!0),Z("");}return}de.source!=="blur"&&(r==="combobox"&&qe(ye),u==null||u(ye));},Se=function(ye){var de=ye;r!=="tags"&&(de=ye.map(function(Le){var Ue=ie.get(Le);return Ue==null?void 0:Ue.value}).filter(function(Le){return Le!==void 0}));var pe=Array.from(new Set([].concat(Ae(Ge),Ae(de))));qe(pe),pe.forEach(function(Le){xe(Le,!0);});},fe=m__namespace.useMemo(function(){var oe=O!==!1&&p!==!1;return X(X({},U),{},{flattenOptions:we,onActiveValue:$e,defaultActiveFirstOption:et,onSelect:_e,menuItemSelectedIcon:I,rawValues:Ge,fieldNames:q,virtual:oe,direction:R,listHeight:k,listItemHeight:L,childrenAsData:V,optionRender:$})},[U,we,$e,et,_e,I,Ge,q,O,p,k,L,V,$]);return m__namespace.createElement(Lx.Provider,{value:fe},m__namespace.createElement(kX,Re({},j,{id:H,prefixCls:a,ref:t,omitDomProps:dq,mode:r,displayValues:We,onDisplayValuesChange:ve,direction:R,searchValue:W,onSearch:Te,autoClearSearchValue:f,onSearchSplit:Se,dropdownMatchSelectWidth:p,OptionList:Dx,emptyOptions:!we.length,activeValue:Ze,activeDescendantId:"".concat(H,"_list_").concat(st)})))}),Vh=mq;Vh.Option=Wh;Vh.OptGroup=Hh;const vq=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},gq=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Ft(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,[`
${o}${s}bottomLeft,
${a}${s}bottomLeft
`]:{animationName:ih},[`
${o}${s}topLeft,
${a}${s}topLeft,
${o}${s}topRight,
${a}${s}topRight
`]:{animationName:lh},[`${i}${s}bottomLeft`]:{animationName:sh},[`
${i}${s}topLeft,
${i}${s}topRight
`]:{animationName:ch},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},vq(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"},ma),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Fo(e,"slide-up"),Fo(e,"slide-down"),Qc(e,"move-up"),Qc(e,"move-down")]},hq=gq,Wa=2,jx=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function Uf(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=jx(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{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",height:"100%",padding:`${i-Wa}px ${Wa*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Wa}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:Wa,marginBottom:Wa,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:Wa*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},xa()),{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}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}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 pq=e=>{const{componentCls:t}=e,n=St(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=St(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=jx(e);return [Uf(e),Uf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Uf(r,"lg")]},bq=pq;function Xf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ft(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}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 yq(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Xf(e),Xf(St(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}}}},Xf(St(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Cq=e=>{const{componentCls:t,selectorBg:n}=e;return {position:"relative",backgroundColor:n,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",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},qf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},Sq=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},wq=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Cq(e)),Sq(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ma),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ma),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},xa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},$q=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%"}}},wq(e),yq(e),bq(e),hq(e),{[`${t}-rtl`]:{direction:"rtl"}},qf(t,St(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),qf(`${t}-status-error`,St(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),qf(`${t}-status-warning`,St(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Vd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xq=Kt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=St(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [$q(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:v,colorBgContainerDisabled:g,colorTextDisabled:h}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightLG:r,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent"}}),Eq=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Iq(e,t){return e||Eq(t)}var Oq={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 Pq=Oq;var Rq=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:Pq}))};const Mq=m__namespace.forwardRef(Rq);var _q={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const Tq=_q;var Nq=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:Tq}))};const Gh=m__namespace.forwardRef(Nq);var kq={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 Aq=kq;var Lq=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:Aq}))};const Kh=m__namespace.forwardRef(Lq);function Dq(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const v=n??m__namespace.createElement(Gh,null),g=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let h=null;if(t!==void 0)h=g(t);else if(a)h=g(m__namespace.createElement(Th,{spin:!0}));else {const y=`${l}-suffix`;h=C=>{let{open:w,showSearch:x}=C;return g(w&&x?m__namespace.createElement(Kh,{className:y}):m__namespace.createElement(Fh,{className:y}))};}let p=null;r!==void 0?p=r:i?p=m__namespace.createElement(Mq,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(Gd,null),{clearIcon:v,suffixIcon:h,itemIcon:p,removeIcon:b}}function zq(e,t){return t!==void 0?t:e!==null}var jq=function(e,t){var n={};for(var r in 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 Fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Fq=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:v=24,size:g,disabled:h,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,direction:x,style:$,allowClear:S}=e,E=jq(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:O,renderEmpty:R,direction:M,virtual:k,popupMatchSelectWidth:A,popupOverflow:L,select:T}=m__namespace.useContext(rt),P=O("select",o),_=O(),z=x??M,{compactSize:j,compactItemClassnames:H}=Bi(P,z),[B,V]=xq(P),G=m__namespace.useMemo(()=>{const{mode:ze}=E;if(ze!=="combobox")return ze===Fx?"combobox":ze},[E.mode]),q=G==="multiple"||G==="tags",Y=zq(E.suffixIcon,E.showArrow),te=(n=w??C)!==null&&n!==void 0?n:A,{status:W,hasFeedback:Z,isFormItemInput:U,feedbackIcon:ue}=m__namespace.useContext(Ir),ie=Tl(W,b);let se;p!==void 0?se=p:G==="combobox"?se=null:se=(R==null?void 0:R("Select"))||m__namespace.createElement(xx,{componentName:"Select"});const{suffixIcon:ee,itemIcon:ce,removeIcon:Q,clearIcon:le}=Dq(Object.assign(Object.assign({},E),{multiple:q,hasFeedback:Z,feedbackIcon:ue,showSuffixIcon:Y,prefixCls:P,showArrow:E.showArrow,componentName:"Select"})),he=S===!0?{clearIcon:le}:S,ne=Fn(E,["suffixIcon","itemIcon"]),ae=K(c||u,{[`${P}-dropdown-${z}`]:z==="rtl"},s,V),me=nr(ze=>{var He;return (He=g??j)!==null&&He!==void 0?He:ze}),Ce=m__namespace.useContext(Ur),ke=h??Ce,We=K({[`${P}-lg`]:me==="large",[`${P}-sm`]:me==="small",[`${P}-rtl`]:z==="rtl",[`${P}-borderless`]:!a,[`${P}-in-form-item`]:U},jr(P,ie,Z),H,T==null?void 0:T.className,i,s,V),Ge=m__namespace.useMemo(()=>f!==void 0?f:z==="rtl"?"bottomRight":"bottomLeft",[f,z]),Me=Iq(y,L),[Xe]=pd("SelectLike",(r=E.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return B(m__namespace.createElement(Vh,Object.assign({ref:t,virtual:k,showSearch:T==null?void 0:T.showSearch},ne,{style:Object.assign(Object.assign({},T==null?void 0:T.style),$),dropdownMatchSelectWidth:te,builtinPlacements:Me,transitionName:bd(_,"slide-up",E.transitionName),listHeight:d,listItemHeight:v,mode:G,prefixCls:P,placement:Ge,direction:z,suffixIcon:ee,menuItemSelectedIcon:ce,removeIcon:Q,allowClear:he,notFoundContent:se,className:We,getPopupContainer:l||I,dropdownClassName:ae,disabled:ke,dropdownStyle:Object.assign(Object.assign({},E==null?void 0:E.dropdownStyle),{zIndex:Xe})})))},Gi=m__namespace.forwardRef(Fq),Bq=$h(Gi);Gi.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fx;Gi.Option=Wh;Gi.OptGroup=Hh;Gi._InternalPanelDoNotUseOrYouWillBeFired=Bq;const Nl=Gi,Bx=e=>m__namespace.createElement(Nl,Object.assign({},e,{showSearch:!0,size:"small"})),Hx=e=>m__namespace.createElement(Nl,Object.assign({},e,{showSearch:!0,size:"middle"}));Bx.Option=Nl.Option;Hx.Option=Nl.Option;const Wx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Vx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Nv=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),Uh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Vx(St(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Gx=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return {padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},Xh=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Ud=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},Nv(St(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},Nv(St(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},kl=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}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}`},Wx(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Vx(e)),"&:focus, &:focus-within":Object.assign({},Nv(e)),"&-disabled, &[disabled]":Object.assign({},Uh(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({},Gx(e)),"&-sm":Object.assign({},Xh(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Kx=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({},Gx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Xh(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.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${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.paddingInline}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"},Qm()),{[`${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}}}})}},Hq=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),kl(e)),Ud(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Wq=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`}}}},Vq=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kl(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{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}}}),Wq(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Ud(e,`${t}-affix-wrapper`))}},Gq=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ft(e)),Kx(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Uh(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}}}})}},Kq=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,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${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}}}}},Uq=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.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Xq=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function qh(e){return St(e,{inputAffixPadding:e.paddingXXS})}const Yh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:v,colorPrimary:g,controlOutlineWidth:h,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:g,hoverBorderColor:v,activeShadow:`0 0 0 ${h}px ${p}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:"",activeBg:""}},Qh=Kt("Input",e=>{const t=St(e,qh(e));return [Hq(t),Uq(t),Vq(t),Gq(t),Kq(t),Xq(t),Vd(t)]},Yh),qq=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Yq=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:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${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({},Xh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Qq=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"}}}}},Zq=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}}},[`
${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:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-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({},kl(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Jq=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{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,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},eY=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ft(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"}}),Jq(e)),Zq(e)),Qq(e)),Yq(e)),qq(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"}}},tY=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${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}}}}},nY=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ga(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},va(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},va(e))}}}},rY=Kt("Pagination",e=>{const t=St(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"},qh(e),Yh(e));return [eY(t),nY(t),e.wireframe&&tY(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 oY=function(e,t){var n={};for(var r in 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 aY=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=oY(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=I$(c),{getPrefixCls:v,direction:g,pagination:h={}}=m__namespace.useContext(rt),p=v("pagination",t),[b,y]=rY(p),C=u??h.showSizeChanger,w=m__namespace.useMemo(()=>{const M=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),k=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Ei,null):m__namespace.createElement(su,null)),A=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(su,null):m__namespace.createElement(Ei,null)),L=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(Py,{className:`${p}-item-link-icon`}):m__namespace.createElement(Oy,{className:`${p}-item-link-icon`}),M)),T=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(Oy,{className:`${p}-item-link-icon`}):m__namespace.createElement(Py,{className:`${p}-item-link-icon`}),M));return {prevIcon:k,nextIcon:A,jumpPrevIcon:L,jumpNextIcon:T}},[g,p]),[x]=ji("Pagination",yw),$=Object.assign(Object.assign({},x),s),S=nr(i),E=S==="small"||!!(f&&!S&&c),I=v("select",n),O=K({[`${p}-mini`]:E,[`${p}-rtl`]:g==="rtl"},h==null?void 0:h.className,r,o,y),R=Object.assign(Object.assign({},h==null?void 0:h.style),a);return b(m__namespace.createElement(Ex,Object.assign({},w,d,{style:R,prefixCls:p,selectPrefixCls:I,className:O,selectComponentClass:l||(E?Bx:Hx),locale:$,showSizeChanger:C})))},iY=aY;var sY={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 lY=sY;var cY=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:lY}))};const uY=m__namespace.forwardRef(cY);var dY=function(e,t){var n={};for(var r in 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 fY={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},mY=m__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===ge.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===ge.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=dY(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},fY)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),m__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),vY=mY,gY=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=K(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[f]=ji("Transfer",So.Transfer),v={className:u,title:d},g=m__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},v),g,m__namespace.createElement(vY,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(uY,null))):(v.onClick=a||r.disabled?void 0:h=>s(r,h),m__namespace.createElement("li",Object.assign({},v),m__namespace.createElement(xl,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),g))},hY=m__namespace.memo(gY),pY=["handleFilter","handleClear","checkedKeys"],bY=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),yY=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),v=m__namespace.useMemo(()=>s?bY(typeof s=="object"?s:{}):null,[s]),[g,h]=qt(10,{value:v==null?void 0:v.pageSize});m__namespace.useEffect(()=>{if(v){const S=Math.ceil(r.length/g);f(Math.min(d,S));}},[r,v,g]);const p=(S,E)=>{c(S.key,!o.includes(S.key),E);},b=S=>{u==null||u([S.key]);},y=S=>{f(S);},C=(S,E)=>{f(S),h(E);},w=m__namespace.useMemo(()=>v?r.slice((d-1)*g,d*g):r,[d,r,v,g]);m__namespace.useImperativeHandle(t,()=>({items:w}));const x=v?m__namespace.createElement(iY,{size:"small",disabled:a,simple:v.simple,pageSize:g,showLessItems:v.showLessItems,showSizeChanger:v.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,$=K(`${n}-content`,{[`${n}-content-show-remove`]:i});return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:$,onScroll:l},(w||[]).map(S=>{let{renderedEl:E,renderedText:I,item:O}=S;return m__namespace.createElement(hY,{key:O.key,item:O,renderedText:I,renderedEl:E,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(O.key),disabled:a||O.disabled})})),x)},CY=m__namespace.forwardRef(yY),SY=e=>{const{getPrefixCls:t,direction:n}=m.useContext(rt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=Qh(i),c=K(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=m.useContext(Ir),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m__namespace.createElement(Ir.Provider,{value:d},e.children)))},wY=SY;function Va(e){return !!(e.addonBefore||e.addonAfter)}function Yf(e){return !!(e.prefix||e.suffix||e.allowClear)}function fu(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.type!=="file"&&(e.value=r),n(o);return}n(o);}}function Ux(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);}}}}var Zh=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,f=t.disabled,v=t.readOnly,g=t.focused,h=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,w=t.classes,x=t.classNames,$=t.dataAttrs,S=t.styles,E=t.components,I=(E==null?void 0:E.affixWrapper)||"span",O=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",M=(E==null?void 0:E.groupAddon)||"span",k=m.useRef(null),A=function(Y){var te;(te=k.current)!==null&&te!==void 0&&te.contains(Y.target)&&(h==null||h());},L=function(){var Y;if(!p)return null;var te=!f&&!v&&b,W="".concat(a,"-clear-icon"),Z=ut(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:K(W,(Y={},F(Y,"".concat(W,"-hidden"),!te),F(Y,"".concat(W,"-has-suffix"),!!s),Y)),role:"button",tabIndex:-1},Z)},T=m.cloneElement(o,{value:b,hidden:C,className:K((n=o.props)===null||n===void 0?void 0:n.className,!Yf(t)&&!Va(t)&&u)||null,style:X(X({},(r=o.props)===null||r===void 0?void 0:r.style),!Yf(t)&&!Va(t)?d:{})});if(Yf(t)){var P,_="".concat(a,"-affix-wrapper"),z=K(_,(P={},F(P,"".concat(_,"-disabled"),f),F(P,"".concat(_,"-focused"),g),F(P,"".concat(_,"-readonly"),v),F(P,"".concat(_,"-input-with-clear-btn"),s&&p&&b),P),!Va(t)&&u,w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper),j=(s||p)&&m.createElement("span",{className:K("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:S==null?void 0:S.suffix},L(),s);T=m.createElement(I,Re({className:z,style:X(X({},Va(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!Va(t)&&C,onClick:A},$==null?void 0:$.affixWrapper,{ref:k}),i&&m.createElement("span",{className:K("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:S==null?void 0:S.prefix},i),m.cloneElement(o,{value:b,hidden:null}),j);}if(Va(t)){var H="".concat(a,"-group"),B="".concat(H,"-addon"),V=K("".concat(a,"-wrapper"),H,w==null?void 0:w.wrapper),G=K("".concat(a,"-group-wrapper"),u,w==null?void 0:w.group);return m.createElement(O,{className:G,style:d,hidden:C},m.createElement(R,{className:V},l&&m.createElement(M,{className:B},l),m.cloneElement(T,{hidden:null}),c&&m.createElement(M,{className:B},c)))}return T},$Y=["show"];function Xx(e,t){return m__namespace.useMemo(function(){var n={};t&&(n.show=ut(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,o=r.show,a=tt(r,$Y);return X(X({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var xY=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],EY=m.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,v=e.maxLength,g=e.suffix,h=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,w=e.classNames,x=e.styles,$=e.onCompositionStart,S=e.onCompositionEnd,E=tt(e,xY),I=m.useState(!1),O=J(I,2),R=O[0],M=O[1],k=m.useRef(!1),A=m.useRef(null),L=function(ae){A.current&&Ux(A.current,ae);},T=qt(e.defaultValue,{value:e.value}),P=J(T,2),_=P[0],z=P[1],j=_==null?"":String(_),H=m.useState(null),B=J(H,2),V=B[0],G=B[1],q=Xx(p,h),Y=q.max||v,te=q.strategy(j),W=!!Y&&te>Y;m.useImperativeHandle(t,function(){return {focus:L,blur:function(){var ae;(ae=A.current)===null||ae===void 0||ae.blur();},setSelectionRange:function(ae,me,Ce){var ke;(ke=A.current)===null||ke===void 0||ke.setSelectionRange(ae,me,Ce);},select:function(){var ae;(ae=A.current)===null||ae===void 0||ae.select();},input:A.current}}),m.useEffect(function(){M(function(ne){return ne&&u?!1:ne});},[u]);var Z=function(ae,me){var Ce=me;if(!k.current&&q.exceedFormatter&&q.max&&q.strategy(me)>q.max&&(Ce=q.exceedFormatter(me,{max:q.max}),me!==Ce)){var ke,We;G([((ke=A.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((We=A.current)===null||We===void 0?void 0:We.selectionEnd)||0]);}z(Ce),A.current&&fu(A.current,ae,r,Ce);};m.useEffect(function(){if(V){var ne;(ne=A.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,Ae(V));}},[V]);var U=function(ae){Z(ae,ae.target.value);},ue=function(ae){k.current=!1,Z(ae,ae.currentTarget.value),S==null||S(ae);},ie=function(ae){i&&ae.key==="Enter"&&i(ae),s==null||s(ae);},se=function(ae){M(!0),o==null||o(ae);},ee=function(ae){M(!1),a==null||a(ae);},ce=function(ae){z(""),L(),A.current&&fu(A.current,ae,r);},Q=W&&"".concat(c,"-out-of-range"),le=function(){var ae=Fn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return m.createElement("input",Re({autoComplete:n},ae,{onChange:U,onFocus:se,onBlur:ee,onKeyDown:ie,className:K(c,F({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:A,size:d,type:y,onCompositionStart:function(Ce){k.current=!0,$==null||$(Ce);},onCompositionEnd:ue}))},he=function(){var ae=Number(Y)>0;if(g||q.show){var me=q.showFormatter?q.showFormatter({value:j,count:te,maxLength:Y}):"".concat(te).concat(ae?" / ".concat(Y):"");return m.createElement(m.Fragment,null,q.show&&m.createElement("span",{className:K("".concat(c,"-show-count-suffix"),F({},"".concat(c,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:X({},x==null?void 0:x.count)},me),g)}return null};return m.createElement(Zh,Re({},E,{prefixCls:c,className:K(f,Q),inputElement:le(),handleReset:ce,value:j,focused:R,triggerFocus:L,suffix:he(),disabled:u,classes:C,classNames:w,styles:x}))});function qx(e,t){const n=m.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return m.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function IY(e){return !!(e.prefix||e.suffix||e.allowClear)}var OY=function(e,t){var n={};for(var r in 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 PY(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 RY=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:v,className:g,style:h,styles:p,rootClassName:b,onChange:y,classNames:C}=e,w=OY(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:$,input:S}=m.useContext(rt),E=x("input",r),I=m.useRef(null),[O,R]=Qh(E),{compactSize:M,compactItemClassnames:k}=Bi(E,$),A=nr(W=>{var Z;return (Z=i??M)!==null&&Z!==void 0?Z:W}),L=m.useContext(Ur),T=s??L,{status:P,hasFeedback:_,feedbackIcon:z}=m.useContext(Ir),j=Tl(P,a),H=IY(e)||!!_;m.useRef(H);const B=qx(I,!0),V=W=>{B(),l==null||l(W);},G=W=>{B(),c==null||c(W);},q=W=>{B(),y==null||y(W);},Y=(_||u)&&m.createElement(m.Fragment,null,u,_&&z);let te;return typeof d=="object"&&(d!=null&&d.clearIcon)?te=d:d&&(te={clearIcon:m.createElement(Gh,null)}),O(m.createElement(EY,Object.assign({ref:qn(t,I),prefixCls:E,autoComplete:S==null?void 0:S.autoComplete},w,{disabled:T,onBlur:V,onFocus:G,style:Object.assign(Object.assign({},S==null?void 0:S.style),h),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:Y,allowClear:te,className:K(g,b,k,S==null?void 0:S.className),onChange:q,addonAfter:f&&m.createElement(Ci,null,m.createElement(Hs,{override:!0,status:!0},f)),addonBefore:v&&m.createElement(Ci,null,m.createElement(Hs,{override:!0,status:!0},v)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:K({[`${E}-sm`]:A==="small",[`${E}-lg`]:A==="large",[`${E}-rtl`]:$==="rtl",[`${E}-borderless`]:!o},!H&&jr(E,j),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,R)}),classes:{affixWrapper:K({[`${E}-affix-wrapper-sm`]:A==="small",[`${E}-affix-wrapper-lg`]:A==="large",[`${E}-affix-wrapper-rtl`]:$==="rtl",[`${E}-affix-wrapper-borderless`]:!o},jr(`${E}-affix-wrapper`,j,_),R),wrapper:K({[`${E}-group-rtl`]:$==="rtl"},R),group:K({[`${E}-group-wrapper-sm`]:A==="small",[`${E}-group-wrapper-lg`]:A==="large",[`${E}-group-wrapper-rtl`]:$==="rtl",[`${E}-group-wrapper-disabled`]:T},jr(`${E}-group-wrapper`,j,_),R)}})))}),Jh=RY;var MY={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 _Y=MY;var TY=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:_Y}))};const NY=m__namespace.forwardRef(TY);var kY={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 AY=kY;var LY=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:AY}))};const DY=m__namespace.forwardRef(LY);var zY=function(e,t){var n={};for(var r in 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 jY=e=>e?m__namespace.createElement(DY,null):m__namespace.createElement(NY,null),FY={click:"onClick",hover:"onMouseOver"},BY=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=m.useState(()=>r?n.visible:!1),i=m.useRef(null);m__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=qx(i),l=()=>{const{disabled:x}=e;x||(o&&s(),a($=>{var S;const E=!$;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,E)),E}));},c=x=>{const{action:$="click",iconRender:S=jY}=e,E=FY[$]||"",I=S(o),O={[E]:l,className:`${x}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault();},onMouseUp:R=>{R.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(I)?I:m__namespace.createElement("span",null,I),O)},{className:u,prefixCls:d,inputPrefixCls:f,size:v}=e,g=zY(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=m__namespace.useContext(rt),p=h("input",f),b=h("input-password",d),y=n&&c(b),C=K(b,u,{[`${b}-${v}`]:!!v}),w=Object.assign(Object.assign({},Fn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return v&&(w.size=v),m__namespace.createElement(Jh,Object.assign({ref:qn(t,i)},w))}),HY=BY;var WY=function(e,t){var n={};for(var r in 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 VY=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:v,onCompositionEnd:g}=e,h=WY(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(rt),y=m__namespace.useRef(!1),C=p("input-search",n),w=p("input",r),{compactSize:x}=Bi(C,b),$=nr(j=>{var H;return (H=a??x)!==null&&H!==void 0?H:j}),S=m__namespace.useRef(null),E=j=>{j&&j.target&&j.type==="click"&&d&&d(j.target.value,j,{source:"clear"}),f&&f(j);},I=j=>{var H;document.activeElement===((H=S.current)===null||H===void 0?void 0:H.input)&&j.preventDefault();},O=j=>{var H,B;d&&d((B=(H=S.current)===null||H===void 0?void 0:H.input)===null||B===void 0?void 0:B.value,j,{source:"input"});},R=j=>{y.current||c||O(j);},M=typeof s=="boolean"?m__namespace.createElement(Kh,null):null,k=`${C}-button`;let A;const L=s||{},T=L.type&&L.type.__ANT_BUTTON===!0;T||L.type==="button"?A=Un(L,Object.assign({onMouseDown:I,onClick:j=>{var H,B;(B=(H=L==null?void 0:L.props)===null||H===void 0?void 0:H.onClick)===null||B===void 0||B.call(H,j),O(j);},key:"enterButton"},T?{className:k,size:$}:{})):A=m__namespace.createElement(Zt,{className:k,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:I,onClick:O,loading:c,icon:M},s),l&&(A=[A,Un(l,{key:"addonAfter"})]);const P=K(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!s},o),_=j=>{y.current=!0,v==null||v(j);},z=j=>{y.current=!1,g==null||g(j);};return m__namespace.createElement(Jh,Object.assign({ref:qn(S,t),onPressEnter:R},h,{size:$,onCompositionStart:_,onCompositionEnd:z,prefixCls:w,addonAfter:A,suffix:i,onChange:E,className:P,disabled:u}))}),GY=VY;var KY=`
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;
`,UY=["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"],Qf={},wr;function XY(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&&Qf[n])return Qf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=UY.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Qf[n]=l),l}function qY(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;wr||(wr=document.createElement("textarea"),wr.setAttribute("tab-index","-1"),wr.setAttribute("aria-hidden","true"),document.body.appendChild(wr)),e.getAttribute("wrap")?wr.setAttribute("wrap",e.getAttribute("wrap")):wr.removeAttribute("wrap");var o=XY(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;wr.setAttribute("style","".concat(l,";").concat(KY)),wr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=wr.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),n!==null||r!==null){wr.value=" ";var v=wr.scrollHeight-a;n!==null&&(c=v*n,s==="border-box"&&(c=c+a+i),f=Math.max(c,f)),r!==null&&(u=v*r,s==="border-box"&&(u=u+a+i),d=f>u?"":"hidden",f=Math.min(u,f));}var g={height:f,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var YY=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Zf=0,Jf=1,em=2,QY=m__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=tt(n,YY),v=qt(o,{value:a,postState:function(G){return G??""}}),g=J(v,2),h=g[0],p=g[1],b=function(G){p(G.target.value),d==null||d(G);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=m__namespace.useMemo(function(){return i&&ut(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=J(C,2),x=w[0],$=w[1],S=!!i,E=function(){try{if(document.activeElement===y.current){var G=y.current,q=G.selectionStart,Y=G.selectionEnd,te=G.scrollTop;y.current.setSelectionRange(q,Y),y.current.scrollTop=te;}}catch{}},I=m__namespace.useState(em),O=J(I,2),R=O[0],M=O[1],k=m__namespace.useState(),A=J(k,2),L=A[0],T=A[1],P=function(){M(Zf);};Xt(function(){S&&P();},[a,x,$,S]),Xt(function(){if(R===Zf)M(Jf);else if(R===Jf){var V=qY(y.current,!1,x,$);M(em),T(V);}else E();},[R]);var _=m__namespace.useRef(),z=function(){Rt.cancel(_.current);},j=function(G){R===em&&(s==null||s(G),i&&(z(),_.current=Rt(function(){P();})));};m__namespace.useEffect(function(){return z},[]);var H=S?L:null,B=X(X({},c),H);return (R===Zf||R===Jf)&&(B.overflowY="hidden",B.overflowX="hidden"),m__namespace.createElement(Er,{onResize:j,disabled:!(i||s)},m__namespace.createElement("textarea",Re({},f,{ref:y,style:B,className:K(r,l,F({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:b})))}),ZY=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],JY=m.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,p=e.classes,b=e.showCount,y=e.count,C=e.className,w=e.style,x=e.disabled,$=e.hidden,S=e.classNames,E=e.styles,I=e.onResize,O=tt(e,ZY),R=qt(o,{value:a,defaultValue:o}),M=J(R,2),k=M[0],A=M[1],L=k==null?"":String(k),T=m.useState(!1),P=J(T,2),_=P[0],z=P[1],j=m.useRef(!1),H=m.useState(null),B=J(H,2),V=B[0],G=B[1],q=m.useRef(null),Y=function(){var we;return (we=q.current)===null||we===void 0?void 0:we.textArea},te=function(){Y().focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:q.current,focus:te,blur:function(){Y().blur();}}}),m.useEffect(function(){z(function(Ie){return !x&&Ie});},[x]);var W=m.useState(null),Z=J(W,2),U=Z[0],ue=Z[1];m.useEffect(function(){if(U){var Ie;(Ie=Y()).setSelectionRange.apply(Ie,Ae(U));}},[U]);var ie=Xx(y,b),se=(n=ie.max)!==null&&n!==void 0?n:u,ee=Number(se)>0,ce=ie.strategy(L),Q=!!se&&ce>se,le=function(we,qe){var nt=qe;!j.current&&ie.exceedFormatter&&ie.max&&ie.strategy(qe)>ie.max&&(nt=ie.exceedFormatter(qe,{max:ie.max}),qe!==nt&&ue([Y().selectionStart||0,Y().selectionEnd||0])),A(nt),fu(we.currentTarget,we,l,nt);},he=function(we){j.current=!0,d==null||d(we);},ne=function(we){j.current=!1,le(we,we.currentTarget.value),f==null||f(we);},ae=function(we){le(we,we.target.value);},me=function(we){var qe=O.onPressEnter,nt=O.onKeyDown;we.key==="Enter"&&qe&&qe(we),nt==null||nt(we);},Ce=function(we){z(!0),i==null||i(we);},ke=function(we){z(!1),s==null||s(we);},We=function(we){A(""),te(),fu(Y(),we,l);},Ge=v,Me;ie.show&&(ie.showFormatter?Me=ie.showFormatter({value:L,count:ce,maxLength:se}):Me="".concat(ce).concat(ee?" / ".concat(se):""),Ge=m.createElement(m.Fragment,null,Ge,m.createElement("span",{className:K("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Me)));var Xe=function(we){var qe;I==null||I(we),(qe=Y())!==null&&qe!==void 0&&qe.style.height&&G(!0);},ze=!O.autoSize&&!b&&!c,He=m.createElement(Zh,{value:L,allowClear:c,handleReset:We,suffix:Ge,prefixCls:h,classes:{affixWrapper:K(p==null?void 0:p.affixWrapper,(r={},F(r,"".concat(h,"-show-count"),b),F(r,"".concat(h,"-textarea-allow-clear"),c),r))},disabled:x,focused:_,className:K(C,Q&&"".concat(h,"-out-of-range")),style:X(X({},w),V&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:$,inputElement:m.createElement(QY,Re({},O,{maxLength:u,onKeyDown:me,onChange:ae,onFocus:Ce,onBlur:ke,onCompositionStart:he,onCompositionEnd:ne,className:K(S==null?void 0:S.textarea),style:X(X({},E==null?void 0:E.textarea),{},{resize:w==null?void 0:w.resize}),disabled:x,prefixCls:h,onResize:Xe,ref:q}))});return He}),eQ=function(e,t){var n={};for(var r in 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 tQ=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,f=eQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:v,direction:g}=m__namespace.useContext(rt),h=nr(a),p=m__namespace.useContext(Ur),b=i??p,{status:y,hasFeedback:C,feedbackIcon:w}=m__namespace.useContext(Ir),x=Tl(y,s),$=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var R;return {resizableTextArea:(R=$.current)===null||R===void 0?void 0:R.resizableTextArea,focus:M=>{var k,A;PY((A=(k=$.current)===null||k===void 0?void 0:k.resizableTextArea)===null||A===void 0?void 0:A.textArea,M);},blur:()=>{var M;return (M=$.current)===null||M===void 0?void 0:M.blur()}}});const S=v("input",r);let E;typeof l=="object"&&(l!=null&&l.clearIcon)?E=l:l&&(E={clearIcon:m__namespace.createElement(Gh,null)});const[I,O]=Qh(S);return I(m__namespace.createElement(JY,Object.assign({},f,{disabled:b,allowClear:E,className:K(d,u),classes:{affixWrapper:K(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:g==="rtl",[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:h==="small",[`${S}-affix-wrapper-lg`]:h==="large",[`${S}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},jr(`${S}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:K({[`${S}-borderless`]:!o,[`${S}-sm`]:h==="small",[`${S}-lg`]:h==="large"},jr(S,x),O,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&m__namespace.createElement("span",{className:`${S}-textarea-suffix`},w),ref:$})))}),nQ=tQ,Al=Jh;Al.Group=wY;Al.Search=GY;Al.TextArea=nQ;Al.Password=HY;const Yx=Al,rQ=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=m__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return m__namespace.createElement(Yx,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Kh,null)})},Qx=rQ,oQ=()=>null;function aQ(e){return !!(e&&!Co(e)&&Object.prototype.toString.call(e)==="[object Object]")}function ls(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const iQ=e=>e!==void 0,sQ=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:f,removeAll:v,removeCurrent:g,showSelectAll:h=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:w,selectAllLabel:x,selectionsIcon:$,footer:S,renderList:E,onItemSelectAll:I,onItemRemove:O,handleFilter:R,handleClear:M,filterOption:k,render:A=oQ}=e,[L,T]=m.useState(""),P=m.useRef({}),_=Q=>{T(Q.target.value),R(Q);},z=()=>{T(""),M();},j=(Q,le)=>k?k(L,le,y):Q.includes(L),H=Q=>{let le=E?E(Object.assign(Object.assign({},Q),{onItemSelect:(ne,ae)=>Q.onItemSelect(ne,ae)})):null;const he=!!le;return he||(le=m.createElement(CY,Object.assign({ref:P},Q))),{customize:he,bodyContent:le}},B=Q=>{const le=A(Q),he=aQ(le);return {item:Q,renderedEl:he?le.label:le,renderedText:he?le.value:le}},V=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[G,q]=m.useMemo(()=>{const Q=[],le=[];return n.forEach(he=>{const ne=B(he);L&&!j(ne.renderedText,he)||(Q.push(he),le.push(ne));}),[Q,le]},[n,L]),Y=m.useMemo(()=>{if(o.length===0)return "none";const Q=du(o);return G.every(le=>Q.has(le.key)||!!le.disabled)?"all":"part"},[o,G]),te=m.useMemo(()=>{const Q=i?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(Qx,{prefixCls:`${t}-search`,onChange:_,handleClear:z,placeholder:l,value:L,disabled:a})):null,{customize:le,bodyContent:he}=H(Object.assign(Object.assign({},Fn(e,pY)),{filteredItems:G,filteredRenderItems:q,selectedKeys:o}));let ne;return le?ne=m.createElement("div",{className:`${t}-body-customize-wrapper`},he):ne=G.length?he:m.createElement("div",{className:`${t}-body-not-found`},V),m.createElement("div",{className:K(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},Q,ne)},[i,t,l,L,a,o,G,q,V]),W=m.createElement(xl,{disabled:n.length===0||a,checked:Y==="all",indeterminate:Y==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(G.filter(Q=>!Q.disabled).map(Q=>{let{key:le}=Q;return le}),Y!=="all");}}),Z=(Q,le)=>{if(x)return typeof x=="function"?x({selectedCount:Q,totalCount:le}):x;const he=le>1?C:w;return m.createElement(m.Fragment,null,(Q>0?`${Q}/`:"")+le," ",he)},U=S&&(S.length<2?S(e):S(e,{direction:y})),ue=K(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!U}),ie=U?m.createElement("div",{className:`${t}-footer`},U):null,se=!p&&!b&&W;let ee;p?ee=[b?{key:"removeCurrent",label:g,onClick(){var Q;const le=ls((((Q=P.current)===null||Q===void 0?void 0:Q.items)||[]).map(he=>he.item));O==null||O(le);}}:null,{key:"removeAll",label:v,onClick(){O==null||O(ls(G));}}].filter(Boolean):ee=[{key:"selectAll",label:u,onClick(){const Q=ls(G);I==null||I(Q,Q.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Q;const le=((Q=P.current)===null||Q===void 0?void 0:Q.items)||[];I==null||I(ls(le.map(he=>he.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var Q;const le=ls(b?(((Q=P.current)===null||Q===void 0?void 0:Q.items)||[]).map(ae=>ae.item):G),he=new Set(o),ne=[];le.forEach(ae=>{he.has(ae)||ne.push(ae);}),I==null||I(ne,"replace");}}];const ce=m.createElement(Lh,{className:`${t}-header-dropdown`,menu:{items:ee},disabled:a},iQ($)?$:m.createElement(Fh,null));return m.createElement("div",{className:ue,style:s},m.createElement("div",{className:`${t}-header`},h?m.createElement(m.Fragment,null,se,ce):null,m.createElement("span",{className:`${t}-header-selected`},Z(o.length,G.length)),m.createElement("span",{className:`${t}-header-title`},r)),te,ie)},kv=sQ,lQ=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Ei,null):m__namespace.createElement(su,null)},a),!d&&m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?m__namespace.createElement(su,null):m__namespace.createElement(Ei,null)},o))},Zx=lQ,cQ=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},Fy=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},uQ=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},Fy(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Fy(e,e.colorWarning))}},dQ=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:f,listWidthLG:v,fontSizeIcon:g,marginXS:h,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:$,colorBgContainer:S,colorText:E,controlItemBgActiveHover:I}=e;return {display:"flex",flexDirection:"column",width:f,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:E,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ma),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},xa()),{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:a,padding:`${l}px ${p}px`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ma),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`},"&-checkbox":{lineHeight:1}}},fQ=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:dQ(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},mQ=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},vQ=Kt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=St(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [fQ(i),cQ(i),uQ(i),mQ(i)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2}}),Xd=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:f,showSelectAll:v,oneWay:g,pagination:h,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:w,filterOption:x,render:$,footer:S,children:E,rowKey:I,onScroll:O,onChange:R,onSearch:M,onSelectChange:k}=e,{getPrefixCls:A,renderEmpty:L,direction:T,transfer:P}=m.useContext(rt),_=A("transfer",b),[z,j]=vQ(_),[H,B,V]=ZU(t,I,n),[G,q,Y,te]=eX(B,V,r),[W,Z]=Ey(fe=>fe.key),[U,ue]=Ey(fe=>fe.key),ie=m.useCallback((fe,oe)=>{if(fe==="left"){const ye=typeof oe=="function"?oe(G||[]):oe;Y(ye);}else {const ye=typeof oe=="function"?oe(q||[]):oe;te(ye);}},[G,q]),se=(fe,oe)=>{(fe==="left"?Z:ue)(oe);},ee=m.useCallback((fe,oe)=>{fe==="left"?k==null||k(oe,q):k==null||k(G,oe);},[G,q]),ce=fe=>{var oe;return (oe=c??fe.titles)!==null&&oe!==void 0?oe:[]},Q=fe=>{O==null||O("left",fe);},le=fe=>{O==null||O("right",fe);},he=fe=>{const oe=fe==="right"?G:q,ye=WU(H),de=oe.filter(lt=>!ye.has(lt)),pe=du(de),Le=fe==="right"?de.concat(n):n.filter(lt=>!pe.has(lt)),Ue=fe==="right"?"left":"right";ie(Ue,[]),ee(Ue,[]),R==null||R(Le,fe,de);},ne=()=>{he("left"),se("left",null);},ae=()=>{he("right"),se("right",null);},me=(fe,oe,ye)=>{ie(fe,de=>{let pe=[];if(ye==="replace")pe=oe;else if(ye)pe=Array.from(new Set([].concat(Ae(de),Ae(oe))));else {const Le=du(oe);pe=de.filter(Ue=>!Le.has(Ue));}return ee(fe,pe),pe}),se(fe,null);},Ce=(fe,oe)=>{me("left",fe,oe);},ke=(fe,oe)=>{me("right",fe,oe);},We=fe=>M==null?void 0:M("left",fe.target.value),Ge=fe=>M==null?void 0:M("right",fe.target.value),Me=()=>M==null?void 0:M("left",""),Xe=()=>M==null?void 0:M("right",""),ze=(fe,oe,ye,de,pe)=>{oe.has(ye)&&(oe.delete(ye),se(fe,null)),de&&(oe.add(ye),se(fe,pe));},He=(fe,oe,ye,de)=>{(fe==="left"?W:U)(de,oe,ye);},Ie=(fe,oe,ye,de)=>{const pe=fe==="left",Le=Ae(pe?G:q),Ue=new Set(Le),lt=Ae(pe?B:V).filter(wt=>!wt.disabled),it=lt.findIndex(wt=>wt.key===oe);de&&Le.length>0?He(fe,lt,Ue,it):ze(fe,Ue,oe,ye,it);const Et=Array.from(Ue);ee(fe,Et),e.selectedKeys||ie(fe,Et);},we=(fe,oe,ye)=>{Ie("left",fe,oe,ye==null?void 0:ye.shiftKey);},qe=(fe,oe,ye)=>{Ie("right",fe,oe,ye==null?void 0:ye.shiftKey);},nt=fe=>{ie("right",[]),R==null||R(n.filter(oe=>!fe.includes(oe)),"left",Ae(fe));},bt=fe=>typeof s=="function"?s({direction:fe}):s||{},Ze=m.useContext(Ir),{hasFeedback:Je,status:gt}=Ze,ht=fe=>Object.assign(Object.assign(Object.assign({},fe),{notFoundContent:(L==null?void 0:L("Transfer"))||m.createElement(xx,{componentName:"Transfer"})}),l),st=Tl(gt,p),dt=!E&&h,et=q.length>0,$e=G.length>0,xe=K(_,{[`${_}-disabled`]:u,[`${_}-customize-list`]:!!E,[`${_}-rtl`]:T==="rtl"},jr(_,st,Je),P==null?void 0:P.className,y,C,j),[_e]=ji("Transfer",So.Transfer),ve=ht(_e),[Te,Se]=ce(ve);return z(m.createElement("div",{className:xe,style:Object.assign(Object.assign({},P==null?void 0:P.style),i)},m.createElement(kv,Object.assign({prefixCls:`${_}-list`,titleText:Te,dataSource:B,filterOption:x,style:bt("left"),checkedKeys:G,handleFilter:We,handleClear:Me,onItemSelect:we,onItemSelectAll:Ce,render:$,showSearch:d,renderList:E,footer:S,onScroll:Q,disabled:u,direction:T==="rtl"?"right":"left",showSelectAll:v,selectAllLabel:o[0],pagination:dt,selectionsIcon:w},ve)),m.createElement(Zx,{className:`${_}-operation`,rightActive:$e,rightArrowText:a[0],moveToRight:ae,leftActive:et,leftArrowText:a[1],moveToLeft:ne,style:f,disabled:u,direction:T,oneWay:g}),m.createElement(kv,Object.assign({prefixCls:`${_}-list`,titleText:Se,dataSource:V,filterOption:x,style:bt("right"),checkedKeys:q,handleFilter:Ge,handleClear:Xe,onItemSelect:qe,onItemSelectAll:ke,onItemRemove:nt,render:$,showSearch:d,renderList:E,footer:S,onScroll:le,disabled:u,direction:T==="rtl"?"left":"right",showSelectAll:v,selectAllLabel:o[1],showRemove:g,pagination:dt,selectionsIcon:w},ve))))};Xd.List=kv;Xd.Search=Qx;Xd.Operation=Zx;const gQ=Xd;class ep{constructor(t=20){Ct(this,"returnQueue",[]);Ct(this,"bufferQueue",[]);Ct(this,"ps");this.ps=t;}sliceFromQueue(){if(this.bufferQueue.length){const t=this.bufferQueue.slice(0,this.ps);return this.bufferQueue=this.bufferQueue.slice(this.ps),this.doReturnItems(t)}}doReturnItems(t){return this.returnQueue.push(...t||[]),t}restore(){this.bufferQueue=[...this.returnQueue,...this.bufferQueue],this.returnQueue=[];}}function Jx(e){return `https://space.bilibili.com/${nd()}/favlist?fid=${e}`}const Ts=class Ts{constructor(){Ct(this,"useShuffle");Ct(this,"total",0);Ct(this,"allFolderServices",[]);Ct(this,"folderServices",[]);Ct(this,"qs",new ep(Ts.PAGE_SIZE));Ct(this,"foldersLoaded",!1);this.useShuffle=xt.shuffleForFav;}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.qs.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(bQ,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!!this.hasMore){if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const t=this.folderServices.find(r=>r.hasMore);if(!t)return;const n=await t.loadMore();return this.qs.doReturnItems(n)}if(this.qs.bufferQueue.length<Ts.PAGE_SIZE){for(;this.folderHasMore&&this.qs.bufferQueue.length<100;){const t=this.folderServices.filter(o=>o.hasMore),n=si(t).slice(0,5),r=(await Promise.all(n.map(async o=>await o.loadMore()||[]))).flat();this.qs.bufferQueue=[...this.qs.bufferQueue,...r];}this.qs.bufferQueue=si(this.qs.bufferQueue);}return this.qs.sliceFromQueue()}}async getAllFolders(){const t=await e2();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new hQ(n)),this.folderServices=this.allFolderServices.filter(n=>!xt.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};Ct(Ts,"PAGE_SIZE",20);let Av=Ts;async function e2(){return (await on.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:nd()}})).data.data.list}class hQ{constructor(t){Ct(this,"entry");Ct(this,"hasMore");Ct(this,"info");Ct(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await on.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(!Kr(n)){Ot(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 a;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var pQ={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function bQ({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=en(),r=Ll(),[o,a]=m.useState(!1),i=ot((u,d,f)=>{a(!0),zn({excludeFavFolderIds:u});}),s=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),l=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=ot(u=>{u?a(!1):o&&(r==null||r());});return be(It,{children:[D(zd,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(It,{children:D(gQ,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:be(To,{color:"success",css:pQ,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(_l,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:async u=>{zn({shuffleForFav:u}),await Dn(100),r==null||r();}})]})}var yQ=gg,CQ=ph,SQ=1,wQ=2;function $Q(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],u=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new yQ;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?CQ(u,c,SQ|wQ,r,d):f))return !1}}return !0}var xQ=$Q,EQ=co;function IQ(e){return e===e&&!EQ(e)}var t2=IQ,OQ=t2,PQ=il;function RQ(e){for(var t=PQ(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,OQ(o)];}return t}var MQ=RQ;function _Q(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var n2=_Q,TQ=xQ,NQ=MQ,kQ=n2;function AQ(e){var t=NQ(e);return t.length==1&&t[0][2]?kQ(t[0][0],t[0][1]):function(n){return n===e||TQ(n,e,t)}}var LQ=AQ,DQ=Ju;function zQ(e,t,n){var r=e==null?void 0:DQ(e,t);return r===void 0?n:r}var jQ=zQ,FQ=ph,BQ=jQ,HQ=UC,WQ=Rg,VQ=t2,GQ=n2,KQ=Di,UQ=1,XQ=2;function qQ(e,t){return WQ(e)&&VQ(t)?GQ(KQ(e),t):function(n){var r=BQ(n,e);return r===void 0&&r===t?HQ(n,e):FQ(t,r,UQ|XQ)}}var YQ=qQ;function QQ(e){return function(t){return t==null?void 0:t[e]}}var ZQ=QQ,JQ=Ju;function eZ(e){return function(t){return JQ(t,e)}}var tZ=eZ,nZ=ZQ,rZ=tZ,oZ=Rg,aZ=Di;function iZ(e){return oZ(e)?nZ(aZ(e)):rZ(e)}var sZ=iZ,lZ=LQ,cZ=YQ,uZ=HC,dZ=Gr,fZ=sZ;function mZ(e){return typeof e=="function"?e:e==null?uZ:typeof e=="object"?dZ(e)?cZ(e[0],e[1]):lZ(e):fZ(e)}var vZ=mZ;function gZ(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1}var hZ=gZ;function pZ(e){return e!==e}var bZ=pZ;function yZ(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var CZ=yZ,SZ=hZ,wZ=bZ,$Z=CZ;function xZ(e,t,n){return t===t?$Z(e,t,n):SZ(e,wZ,n)}var EZ=xZ,IZ=EZ;function OZ(e,t){var n=e==null?0:e.length;return !!n&&IZ(e,t,0)>-1}var PZ=OZ;function RZ(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 MZ=RZ;function _Z(){}var TZ=_Z,tm=TC,NZ=TZ,kZ=hh,AZ=1/0,LZ=tm&&1/kZ(new tm([,-0]))[1]==AZ?function(e){return new tm(e)}:NZ,DZ=LZ,zZ=Xw,jZ=PZ,FZ=MZ,BZ=qw,HZ=DZ,WZ=hh,VZ=200;function GZ(e,t,n){var r=-1,o=jZ,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=FZ;else if(a>=VZ){var c=t?null:HZ(e);if(c)return WZ(c);i=!1,o=BZ,l=new zZ;}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}var KZ=GZ,UZ=vZ,XZ=KZ;function qZ(e,t){return e&&e.length?XZ(e,UZ(t)):[]}var YZ=qZ;const Gs=xn(YZ),Mu=class Mu{constructor(){Ct(this,"page",0);Ct(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await on.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Mu.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Ot(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.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=Gs(r,a=>a.id),r.forEach(a=>{var i,s;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=a.rcmd_reason).content||(s.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};Ct(Mu,"PAGE_SIZE",14);let Ks=Mu;async function r2(e,t){const n=nd(),r=zi(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:QZ()}),csrf:r}),i=(await on.post("/x/relation/modify",o)).data,s=Kr(i);return s||Ot(i.message||"未知错误"),s}function QZ(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let 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 ZZ=Ca.extend("service:user:relations:blacklist"),JZ=i2("follow"),eJ=i2("remove"),o2={add:JZ,remove:eJ},a2=`${rn}-blacklist-mids`,tJ=(localStorage.getItem(a2)||"").split(","),$o=bh(tJ);td($o,e=>{localStorage.setItem(a2,Array.from(Ds($o)).join(","));});function nJ(e){const t=er($o);return e&&t.has(e)}function i2(e){const t=e==="follow"?5:6;return async function(r){const o=await r2(r,t);return o&&(e==="follow"?$o.add(r):e==="remove"&&$o.delete(r)),o}}async function rJ(){const t=async i=>{const l=(await on.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:i}})).data;if(!Kr(l))return;const c=l.data.total,u=l.data.list.map(d=>d.mid);return {total:c,mids:u}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let a=o;if(r){const i=Math.ceil(r/20);for(let s=2;s<=i;s++){const{mids:l=[]}=await t(s)||{};a=a.concat(l);}}return a}(async()=>{await F5();const e=await rJ();return e&&($o.clear(),e.forEach(t=>{$o.add(t.toString());})),ZZ("user blocklist fetched: %o",e),e})();class oJ{constructor(){Ct(this,"hasMore",!0);Ct(this,"page",1);Ct(this,"anonymous");this.anonymous=xt.anonymousForPopularGeneral;}async loadMore(){if(!this.hasMore)return;const n=(await on.get("/x/web-interface/popular",{params:{ps:20,pn:this.page++},withCredentials:!this.anonymous})).data;this.hasMore=!n.data.no_more;let r=(n.data.list||[]).map(o=>({...o,api:"popular-general",uniqId:o.bvid}));return r=r.filter(o=>!$o.has(o.owner.mid.toString())),r}get usageInfo(){return D(aJ,{})}}function aJ(){const{anonymousForPopularGeneral:e}=en(),t=Ll();return D(It,{children:D(_l,{style:{margin:"0 10px"},checked:e,onChange:async n=>{zn({anonymousForPopularGeneral:n}),await Dn(100),t==null||t();},checkedChildren:"匿名访问",unCheckedChildren:"登录(不可用)访问"})})}let uc=[],nm="";function By(){const e=Ho();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function iJ(){return uc.length&&nm&&nm===By()||(uc=(await on.get("/x/web-interface/popular/series/list")).data.data.list,nm=By()),uc}const Jo=class Jo{constructor(){Ct(this,"episodesLoaded",!1);Ct(this,"episodes",[]);Ct(this,"id");Ct(this,"useShuffle");Ct(this,"qs",new ep(Jo.PAGE_SIZE));this.id=Jo.id++,this.useShuffle=xt.shuffleForPopularWeekly;}get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:!0}async loadMore(){if(this.episodesLoaded||(this.episodes=await iJ(),this.episodesLoaded=!0,this.useShuffle&&(this.episodes=si(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=this.episodes[0].number,r=await Hy(n);return this.qs.bufferQueue=this.qs.bufferQueue.concat(r),this.episodes=this.episodes.slice(1),this.qs.sliceFromQueue()}const t=5;for(;this.qs.bufferQueue.length<Jo.PAGE_SIZE*t&&this.episodes.length;){this.episodes=si(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await Promise.all(n.map(o=>o.number).map(o=>Hy(o)));this.qs.bufferQueue=si([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get usageInfo(){return D(sJ,{})}};Ct(Jo,"id",0),Ct(Jo,"PAGE_SIZE",20);let Lv=Jo;const rm={};async function Hy(e){var n;if(!((n=rm[e])!=null&&n.length)){const a=((await on.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:"popular-weekly",uniqId:i.bvid}));rm[e]=a;}let t=rm[e];return t=t.filter(r=>!$o.has(r.owner.mid.toString())),t}function sJ(){const{shuffleForPopularWeekly:e}=en(),t=Ll();return D(It,{children:D(_l,{style:{marginLeft:"10px"},checked:e,onChange:async n=>{zn({shuffleForPopularWeekly:n}),await Dn(100),t==null||t();},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序"})})}const li=Jn({updatedAt:0,bvidSet:bh()});function lJ(e){return er(li).bvidSet.has(e)}ll()&&setTimeout(()=>{new mu().loadMore();});const _o=class _o{constructor(t){Ct(this,"qs",new ep(_o.PAGE_SIZE));Ct(this,"loaded",!1);Ct(this,"page",-1);Ct(this,"count",0);Ct(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await on.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>li.updatedAt&&(li.updatedAt=Date.now(),li.bvidSet=bh(r.map(i=>i.bvid)));const o=Ho().subtract(2,"days").unix(),a=r.findIndex(i=>i.add_at<o);if(a!==-1){const i=r.slice(0,a);let s=r.slice(a);this.keepOrder&&_o.LAST_BVID_ARR.length?(s=s.map(l=>({item:l,index:_o.LAST_BVID_ARR.findIndex(c=>l.bvid===c)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):xt.shuffleForWatchLater&&(r=[...i,...si(s)]);}return this.count=n.data.count,_o.LAST_BVID_ARR=r.map(i=>i.bvid),r}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(cJ,{count:t})}get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:!0}async loadMore(){if(this.hasMore){if(!this.loaded){const t=await this.fetch();this.qs.bufferQueue.push(...t),this.loaded=!0;}return this.qs.sliceFromQueue()}}};Ct(_o,"PAGE_SIZE",20),Ct(_o,"LAST_BVID_ARR",[]);let mu=_o;function cJ({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=en(),o=Ll();return be(It,{children:[be(To,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Ot(`稍后再看: ${n}`);},children:[e," / 100"]}),D(_l,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:async a=>{zn({shuffleForWatchLater:a}),await Dn(100),o==null||o();}})]})}const tp=m.createContext(void 0);function Ll(){return m.useContext(tp)}const Wy={"dynamic-feed":()=>new l2(no.upMid),watchlater:()=>new mu,fav:()=>new Av,"popular-general":()=>new oJ,"popular-weekly":()=>new Lv};function vu(e,t){return e[t]}function s2({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=wW(),l=xy(()=>({})),c=xy(()=>({})),[u,d]=m.useState(!0),[f,v]=m.useState([]);m.useEffect(()=>{try{unsafeWindow[`${XC}_gridItems`]=f;}catch{}},[f]);const[g,h]=m.useState(()=>Object.fromEntries(Object.entries(Wy).map(([T,P])=>[T,P()]))),[p,b]=m.useState(()=>new Ks),[y,C]=m.useState(!1),[w,x,$]=Zw(()=>Date.now()),[S,E]=m.useState(s),[I,O]=m.useState(()=>new AbortController),[R,M]=m.useState(!1),[k,A]=m.useState(void 0),L=ot(async(T=!1,P)=>{const _=performance.now();if(y)if(s===S){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",S,s),I.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const z=ee=>{C(ee),i==null||i(ee);};z(!0),x(Date.now()),E(s),v([]),A(void 0),d(!0),await(r==null?void 0:r());let j=[],H;const B=async()=>{try{j=await n(ue);}catch(ee){H=ee;}},V=T&&!!c.current[s],G=V&&(!!ru[s].swr||s==="fav"&&!g.fav.useShuffle&&!xt.shuffleForFav||s==="popular-weekly"&&!g["popular-weekly"].useShuffle&&!xt.shuffleForPopularWeekly);M(V);let q=!0;(s==="fav"||s==="popular-weekly")&&!G&&(q=!1);const Y=t?new Ks:p;t&&b(Y);const te={...g},W=ee=>{te[ee]=Wy[ee](),h(te);};s==="dynamic-feed"&&W(s),s==="watchlater"&&W(s),s==="fav"&&(V?G?W(s):g.fav.qs.restore():W(s)),s==="popular-general"&&W(s),s==="popular-weekly"&&(V?G?W(s):g["popular-weekly"].qs.restore():W(s));const Z=new AbortController,U=Z.signal;O(Z);const ue={tab:s,abortSignal:U,serviceMap:te,pcRecService:Y};if(e("refresh(): shouldReuse=%s swr=%s useGridCache=%s",V,G,q),V?G?(j=l.current[s]||[],v(j),await B()):q?j=l.current[s]||[]:(l.current[s]=[],await B()):(l.current[s]=[],await B()),U.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(z(!1),H){console.error(H),A(H);return}if(j.length&&(c.current[s]=!0,ru[s].swr||s==="fav"||s==="popular-weekly"?l.current[s]=j.slice(0,30):l.current[s]=j),await new Promise(ee=>requestIdleCallback(ee,{timeout:400})),U.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}v(j);const ie=vu(te,s);ie&&d(ie.hasMore),await j5(),await(o==null?void 0:o());const se=performance.now()-_;e("refresh(): [success] cost %s ms",se.toFixed(0));});return {items:f,itemsCache:l,setItems:v,error:k,refreshedAt:w,setRefreshedAt:x,getRefreshedAt:$,refreshing:y,setRefreshing:C,refreshFor:S,setRefreshFor:E,refreshAbortController:I,setRefreshAbortController:O,hasMore:u,setHasMore:d,swr:R,setSwr:M,pcRecService:p,serviceMap:g,setPcRecService:b,setServiceMap:h,refresh:L}}async function uJ(){const t=(await on.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class l2{constructor(t){Ct(this,"offset","");Ct(this,"page",0);Ct(this,"hasMore",!0);Ct(this,"upMid");this.upMid=t;}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),this.upMid&&(n.host_mid=this.upMid);const o=(await on.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.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return D(vJ,{})}}Ct(l2,"PAGE_SIZE",15);const dJ=location.hash;let c2,u2;if(dJ.includes("?")){const e=location.hash.slice(location.hash.indexOf("?")),t=new URLSearchParams(e);t.get("dyn-mid")&&(c2=Number(t.get("dyn-mid")),u2=t.get("dyn-mid")??void 0);}const no=Jn({upMid:c2,upName:u2,upList:[],upListUpdatedAt:0});setTimeout(()=>{no.upList.length||requestIdleCallback(()=>{d2();});},sl("5s"));async function d2(e=!1){if(!e&&no.upList.length&&no.upListUpdatedAt&&no.upListUpdatedAt-Date.now()<sl("5min"))return;const n=await uJ();no.upList=n,no.upListUpdatedAt=Date.now();}function f2(e){if(Object.assign(no,e),e.upMid){const t=no.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var fJ={name:"dhit8z",styles:"margin-left:15px"},mJ={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function vJ(){const e=Ll(),{upName:t,upList:n}=er(no);yl(()=>{d2();});const r=ot(async i=>{f2(i),await Dn(100),e==null||e();}),o=ot(()=>{r({upMid:void 0,upName:void 0});}),a=m.useMemo(()=>{const i={key:"all",icon:D(ou,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=D(ou,{size:"small",src:l.face});return l.has_update&&(c=D(UK,{dot:!0,children:c})),{key:l.mid,icon:c,label:D("span",{title:l.uname,css:mJ,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return D("div",{css:fJ,children:be(Rl,{children:[D(Lh,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:D(Zt,{children:t?`UP: ${t}`:"全部"})}),!!t&&be(Zt,{onClick:o,css:[Ml,"",""],children:[D(kt,{name:"Return",size:14,style:{marginRight:5,marginTop:-2}}),"清除"]})]})})}const om={removeFav:gJ,addFav:bJ,getVideoFavState:hJ};async function gJ(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:zi()}),o=(await on.post("/x/v3/fav/resource/batch-del",n)).data,a=Kr(o);return a||Ot(o.message||lS),a}async function hJ(e){if(!ll())return;const r=(await on.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:nd(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>Jx(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function pJ({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:zi()}),a=(await on.post("/x/v3/fav/resource/deal",r)).data,i=Kr(a);return i||Ot((a==null?void 0:a.message)||"fav deal api fail"),i}let am=0,Dv="";async function bJ(e){if(!am||!Dv){const t=await e2();am=t[0].id,Dv=t[0].title;}return await pJ({avid:e,add_media_ids:am.toString()})}const yJ=m2("follow"),CJ=m2("unfollow"),SJ={follow:yJ,unfollow:CJ};function m2(e){const t=e==="follow"?1:2;return async function(r){return await r2(r,t)}}function np(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 wJ="_bili-video-card_90sij_1",$J="_preview-card-wrapper_90sij_4",xJ="_preview-card-inner_90sij_17",EJ="_watch-later_90sij_21",IJ="_badge_90sij_24",OJ="_recommend-reason_90sij_33",PJ="_bangumi-desc_90sij_48",RJ="_btn-dislike_90sij_51",MJ="_btn-dislike-icon_90sij_66",_J="_btn-dislike-tip_90sij_73",TJ="_disliked-wrapper_90sij_88",NJ="_dislike-content-cover_90sij_102",kJ="_dislike-content-cover-inner_90sij_108",AJ="_dislike-icon_90sij_119",LJ="_dislike-reason_90sij_122",DJ="_dislike-desc_90sij_126",zJ="_dislike-content-action_90sij_130",jJ="_skeleton-active_90sij_156",FJ="_ant-skeleton-loading_90sij_1",Gt={biliVideoCard:wJ,previewCardWrapper:$J,previewCardInner:xJ,watchLater:EJ,badge:IJ,recommendReason:OJ,bangumiDesc:PJ,btnDislike:RJ,btnDislikeIcon:MJ,btnDislikeTip:_J,dislikedWrapper:TJ,dislikeContentCover:NJ,dislikeContentCoverInner:kJ,dislikeIcon:AJ,dislikeReason:LJ,dislikeDesc:DJ,dislikeContentAction:zJ,skeletonActive:jJ,antSkeletonLoading:FJ};function BJ(...e){for(const t of e)if(!isNaN(t))return t;return 0}function HJ({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=m.useRef(null),i=B9(a),[s,l]=m.useState(()=>({width:0,height:0}));yl(()=>{var f;const d=(f=a.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=BJ(i.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return D("div",{ref:a,className:K(Gt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(WJ,{...u})})}function WJ({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var x;const a=Math.floor((e||0)*o);let i=m.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let S=GJ($,a);return S!==-1?S:a>$[$.length-1]?(S=Math.floor($.length*o)-1,S<0&&(S=0),S):0},[t,a]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;i=i+1;const f=Math.floor(i/d),v=i-f*d,g=((x=t.image)==null?void 0:x[f])||"",h=Math.floor(v/s)+1,p=v-(h-1)*s,b=n*s,y=r*l,C=(h-1)*r,w=(p-1)*n;return D("div",{className:Gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${w}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:D(VJ,{progress:o})})}function VJ({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:Fr,height:"100%",width:`${e*100}%`}})})}function GJ(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const im={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},gu={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},KJ={bangumiFollow:1.3};function Vy(e){return gu[e]||gu[1]}const UJ="--video-card-border-radius",v2=`var(${UJ})`,g2={borderRadius:v2},mr="0";var bo=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}};bo.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";bo.TR={};bo.S=[11,10,3,8,4,6];bo.XOR=177451812;bo.ADD=8728348608;(()=>{const e=bo.TABEL.length;for(let t=0;t<e;t++)bo.TR[bo.TABEL[t]]=t;})();var Ii=bo;Ii.av2bv.bind(Ii);Ii.bv2av.bind(Ii);function h2(e,t){if(e.api==="pc")return t.pc(e);if(e.api==="app")return t.app(e);if(e.api==="dynamic")return t.dynamic(e);if(e.api==="watchlater")return t.watchlater(e);if(e.api==="fav")return t.fav(e);if(e.api==="popular-general")return t["popular-general"](e);if(e.api==="popular-weekly")return t["popular-weekly"](e);throw new Error("unknown api type")}function p2(e){const t=h2(e,{pc:QJ,app:XJ,dynamic:ZJ,watchlater:JJ,fav:eee,"popular-general":tee,"popular-weekly":nee});return t.authorFace&&(t.authorFace=Ib(t.authorFace)),t.cover=Ib(t.cover),t}function XJ(e){return e.device==="android"?qJ(e):YJ(e)}function qJ(e){var a,i,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:f}=e;if(c&&gu[c]===l)return ia(u);if(d&&gu[d]===l)return ia(f)},n=e.param,r=Ii.av2bv(Number(e.param)),o=(()=>{var l;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(`[${rn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:wa((i=e.player_args)==null?void 0:i.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,bangumiFollow:t("bangumiFollow"),statItems:[e.cover_left_text_1&&{field:Vy(e.cover_left_icon_1),value:e.cover_left_text_1},e.cover_left_text_2&&{field:Vy(e.cover_left_icon_2),value:e.cover_left_text_2}].filter(Boolean),authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function YJ(e){var f,v;const t=g=>{const{cover_left_text_1:h,cover_left_text_2:p,cover_left_text_3:b}=e,y=[h,p,b].filter(Boolean);if(g==="play"){const C=y.find(x=>/观看|播放$/.test(x));if(!C)return;const w=C.replace(/观看|播放$/,"");return ia(w)}if(g==="danmaku"){const C=y.find(x=>/弹幕$/.test(x));if(!C)return;const w=C.replace(/弹幕$/,"");return ia(w)}if(g==="bangumiFollow"){const C=y.find(x=>/追剧$/.test(x));if(!C)return;const w=C.replace(/追剧$/,"");return ia(w)}},n=e.param,r=e.bvid||Ii.av2bv(Number(e.param)),o=(()=>{var g;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(`[${rn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const h=(g=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:g[1];return h?`/read/cv${h}`:e.uri}return e.uri})(),a=t("play"),i=void 0,s=void 0,l=t("danmaku"),c=void 0,u=t("bangumiFollow"),d=[{field:"play",value:Gn(a)||mr},typeof l=="number"?{field:"danmaku",value:Gn(l)||mr}:{field:"bangumiFollow",value:Gn(u)||mr}];return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,desc:e.desc,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((f=e.player_args)==null?void 0:f.duration)||0,durationStr:wa((v=e.player_args)==null?void 0:v.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:i,coin:s,danmaku:l,favorite:c,bangumiFollow:u,statItems:d,authorName:e.args.up_name,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function QJ(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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:ro(e.pubdate),duration:e.duration,durationStr:wa(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,statItems:[{field:"play",value:Gn(e.stat.view)||mr},{field:"like",value:Gn(e.stat.like)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function ZJ(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Ho().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:ro(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,cover:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:B5(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:ia(t.stat.play),danmaku:ia(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function JJ(e){const t=V5(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Rd,{title:be(It,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:be("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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:ro(e.pubdate),pubdateDisplayTitle:`${ro(e.pubdate,!0)} 发布, ${ro(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:wa(e.duration),recommendReason:`${ro(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 eee(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:be(It,{children:["【",D(kt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Fr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,pubdateDisplay:ro(e.pubtime),duration:e.duration,durationStr:wa(e.duration),recommendReason:`${ro(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)}}function tee(e){var t;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:ro(e.pubdate),duration:e.duration,durationStr:wa(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,statItems:[{field:"play",value:Gn(e.stat.view)||mr},{field:"like",value:Gn(e.stat.like)||mr},{field:"danmaku",value:Gn(e.stat.danmaku)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function nee(e){return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:ro(e.pubdate),duration:e.duration,durationStr:wa(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:Gn(e.stat.view)||mr},{field:"like",value:Gn(e.stat.like)||mr},{field:"danmaku",value:Gn(e.stat.danmaku)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function ree({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=e$(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);Do("mouseenter",E=>{d.current=!0,n&&!g.current&&S(!0);},{target:a}),Do("mouseleave",E=>{d.current=!1;},{target:a}),Do("mousemove",E=>{u(!0),n||p();},{target:a});const v=G9(),g=m.useRef(void 0),h=ot(()=>{if(v.current)return !0;if(n){if(f.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ot((E=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,C]=Zw(!1),w=m.useRef(),x=ot(()=>{var E;if(!g.current){S();return}y(I=>!I),b&&((E=w.current)==null||E.call(w,s||0));}),$=ot(()=>s||0),S=ot((E=!1)=>{f.current=E,u(!1),y(!1),o(),p(!0),l(A=>typeof A>"u"?0:A);const I=8e3,O=()=>typeof xt.autoPreviewUpdateInterval=="number"?xt.autoPreviewUpdateInterval:400;let R=performance.now(),M=0;w.current=()=>{R=performance.now()-$()*I;};function k(A){if(h()){p();return}const L=()=>{const T=performance.now()-R,P=Math.min(T%I/I,1);l(P);};C()||(O()?(!M||performance.now()-M>=O())&&(M=performance.now(),L()):L()),g.current=requestAnimationFrame(k);}g.current=requestAnimationFrame(k);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:S,previewAnimationProgress:s}}function Gy(e){GM.setClipboard(e),Ot(`已复制: ${e}`);}const b2=np(),hu=m.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=pH((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&p2(r),[r]),v=nJ(f==null?void 0:f.authorMid);return D("div",{style:t,className:K("bili-video-card",Gt.biliVideoCard,n),...u,children:o?D(iee,{loading:o}):r&&f&&(d?D(see,{item:r,emitter:c,dislikedReason:d}):v?D(lee,{cardData:f}):D(hee,{item:r,cardData:f,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))})});var oee={name:"16dof6j",styles:"flex:1;margin-left:10px"},aee={name:"1po2nvr",styles:"width:32px;height:32px;border-radius:50%"};const iee=m.memo(function({loading:t}){const{styleFancy:n}=en();return be("div",{className:K("bili-video-card__skeleton",{hide:!t,[Gt.skeletonActive]:t}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:g2}),!n&&D("div",{className:"bili-video-card__skeleton--info",children:be("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"})]})}),n&&be("div",{className:"bili-video-card__skeleton--info",children:[D("div",{className:"bili-video-card__skeleton--avatar",css:aee}),be("div",{className:"bili-video-card__skeleton--right",css:oee,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"})]})]})]})}),see=m.memo(function({dislikedReason:t,item:n,emitter:r=b2}){const o=ot(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await sH(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),cS();a?Ot("已撤销"):uS(),a&&kd.delete(n.param);});return qa(r,"cancel-dislike",o),be("div",{className:K(Gt.dislikedWrapper),children:[D("div",{className:Gt.dislikeContentCover,children:be("div",{className:Gt.dislikeContentCoverInner,children:[D(kt,{name:"DistraughtFace",size:32,className:Gt.dislikeIcon}),D("div",{className:Gt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Gt.dislikeContentAction,children:be("button",{onClick:o,children:[D(kt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),lee=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=ot(async()=>{if(!n)return;await o2.remove(n)&&Ot(`已移出黑名单: ${o}`);});return be("div",{className:K(Gt.dislikedWrapper),children:[D("div",{className:Gt.dislikeContentCover,children:be("div",{className:Gt.dislikeContentCoverInner,children:[D(kt,{name:"PeopleDelete",size:32,className:Gt.dislikeIcon}),D("div",{className:Gt.dislikeReason,children:"已拉黑"}),be("div",{className:Gt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Gt.dislikeContentAction,children:be("button",{onClick:a,children:[D(kt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})});var cee={name:"putlsr",styles:"margin-top:4px;padding-left:0;max-width:100%"},uee={name:"s5xdrg",styles:"display:flex;align-items:center"},dee={name:"zmsypw",styles:"margin-top:4px;color:var(--text3);font-size:var(--subtitle-font-size)"},fee={name:"1ic5zs4",styles:"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;line-break:anywhere;color:var(--text1);font-size:var(--title-font-size);line-height:var(--title-line-height)"},mee={name:"t6djnl",styles:"flex:1;margin-left:10px;overflow:hidden"},vee={name:"1t32qz5",styles:"display:flex;margin-top:15px"},gee={name:"11ginrh",styles:"background-color:unset;position:static"};const hee=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=b2}){var oe,ye;t.api;const l=t.api==="app";t.api,t.api,t.api;const{styleFancy:c}=en();let{avid:u,bvid:d,goto:f,href:v,title:g,titleRender:h,desc:p,cover:b,pubdateDisplay:y,pubdateDisplayTitle:C,duration:w,durationStr:x,recommendReason:$,invalidReason:S,play:E,like:I,coin:O,danmaku:R,favorite:M,bangumiFollow:k,statItems:A,authorName:L,authorFace:T,authorMid:P,appBadge:_,appBadgeDesc:z}=n;const j=f==="av";["av","bangumi","picture"].includes(f)||console.warn(`[${rn}]: none (av,bangumi,picture) goto type %s`,f,t);const[H,B]=m.useState(null),V=m.useRef(!1),G=ot(async()=>{if(!H&&!V.current)try{V.current=!0,B(await aH(u));}finally{V.current=!1;}}),q=m.useRef(null),[Y,te]=m.useState(void 0);Do("mouseenter",de=>{var lt;const pe=(lt=q.current)==null?void 0:lt.getBoundingClientRect();if(!pe)return;const{x:Le}=pe,Ue=de.pageX-window.pageXOffset-Le;te(Ue);},{target:q});const W=Df(q),{autoPreviewWhenHover:Z}=en(),{onStartPreviewAnimation:U,onHotkeyPreviewAnimation:ue,previewAnimationProgress:ie}=ree({bvid:d,title:g,autoPreviewWhenHover:Z,active:r,tryFetchVideoData:G,videoPreviewWrapperRef:q});Zc(()=>{if(r){try{unsafeWindow[`${XC}_activeItem`]=t;}catch(de){console.warn("set unsafeWindow activeItem error"),console.warn(de.stack||de);}xt.autoPreviewWhenKeyboardSelect&&U();}},[r]);const se=m.useRef(null),ee=Df(se),ce=lJ(d),Q=W9(ns),{accessKey:le}=en(),he=!!le;m.useEffect(()=>{W&&G();},[W]);const ne=t.api!=="app"||t.api==="app"&&t.goto==="av",ae=m.useRef(!1),me=ot(async(de,pe)=>{if(de==null||de.preventDefault(),pe??(pe=ce?j0:ns),pe!==ns&&pe!==j0)throw new Error("unexpected usingAction provided");if(ae.current)return {success:!1};ae.current=!0;let Le=!1;try{Le=await pe(u);}finally{ae.current=!1;}const Ue=pe===ns;return Le&&(Ue?li.bvidSet.add(d):li.bvidSet.delete(d),t.api==="watchlater"?Ue||(await Dn(100),o==null||o(t,n)):Ot(`已${Ue?"添加":"移除"}稍后再看`)),{success:Le,targetState:Ue}}),Ce=m.useRef(null),ke=Df(Ce),We=ot(de=>{if(de==null||de.stopPropagation(),de==null||de.preventDefault(),!Ze)return t.api!=="app"?Ot("当前视频不支持提交「我不想看」"):he?void 0:Ot("请先获取 access_key");SH(t);}),Ge=m.useMemo(()=>Gn(E),[E]);m.useMemo(()=>Gn(I),[I]);const Me=m.useMemo(()=>Gn(R),[R]);m.useMemo(()=>Gn(M),[M]);const Xe=({text:de,iconSvgName:pe,iconSvgScale:Le})=>be("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:pe})}),D("span",{className:"bili-video-card__stats--text",style:{lineHeight:"calc(var(--icon-size) + 1px)"},children:de})]}),[ze,He]=m.useState(void 0),[Ie,we]=m.useState(void 0),qe=ot(async()=>{if(t.api!=="watchlater")return;const de=await om.getVideoFavState(u);if(de){const{favFolderNames:pe,favFolderUrls:Le}=de;He(pe),we(Le);}}),nt=ot(()=>{window.open(v,"_blank");}),bt=ot(()=>{GM.openInTab(v,{active:!1,insert:!0});});qa(s,"open",nt),qa(s,"toggle-watch-later",()=>me()),qa(s,"trigger-dislike",()=>We()),qa(s,"start-preview-animation",U),qa(s,"hotkey-preview-animation",ue);const Ze=l&&he&&!!((ye=(oe=t.three_point)==null?void 0:oe.dislike_reasons)!=null&&ye.length),Je=ot(()=>{let de=v;v.startsWith("/")&&(de=new URL(v,location.href).href),Gy(de);}),gt=ot(()=>{let de=v;t.api==="watchlater"&&(de=`/video/${t.bvid}`);const pe=new URL(de,location.href).href,Le=`iina://open?url=${encodeURIComponent(pe)}`;window.open(Le,"_self");}),ht=Il(),st=ht==="recommend-app"||ht==="recommend-pc"||ht==="popular-general"||ht==="popular-weekly",dt=ot(async()=>{if(!P)return Ot("UP mid 为空!");await o2.add(P)&&Ot(`已加入黑名单: ${L}`);}),et=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&$==="已关注",$e=ot(async()=>{if(!P)return;await SJ.unfollow(P)&&Ot("已取消关注");}),xe=t.api==="dynamic"&&!!i,_e=ot(async()=>{!P||!L||(f2({upMid:Number(P),upName:L}),await Dn(100),await(i==null?void 0:i()));}),ve=m.useMemo(()=>{const de=ce?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(kt,{name:"EfferentFour",size:15}),onClick:nt},{key:"open-link-in-background",label:"后台打开",icon:D(kt,{name:"Split",size:15}),onClick:bt},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(kt,{name:"Copy",size:15}),onClick:Je},{key:"copy-bvid",label:"复制 BVID",icon:D(kt,{name:"Copy",size:15}),onClick(){Gy(d);}},{type:"divider"},Ze&&{key:"dislike",label:"我不想看",icon:D(kt,{name:"DislikeTwo",size:15}),onClick(){We();}},xe&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:D(kt,{name:"PeopleSearch",size:15}),onClick:_e},et&&{key:"unfollow-up",label:"取消关注",icon:D(kt,{name:"PeopleMinus",size:15}),onClick:$e},st&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(kt,{name:"PeopleDelete",size:15}),onClick:dt},t.api==="watchlater"&&{key:"add-fav",icon:D(kt,{name:"Star",size:15,...ze!=null&&ze.length?{theme:"two-tone",fill:["currentColor",Fr]}:void 0}),label:ze!=null&&ze.length?`已收藏 ${ze.map(pe=>`「${pe}」`).join("")}`:"快速收藏",async onClick(){!!(ze!=null&&ze.length)?Ie==null||Ie.forEach(Le=>{window.open(Le,"_blank");}):await om.addFav(u)&&Ot(`已加入收藏夹「${Dv}」`);}},ne&&{key:"watchlater",label:de,icon:D(kt,{name:ce?"Delete":"FileCabinet",size:15}),onClick(){me();}},t.api==="watchlater"&&ce&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(kt,{name:"AddTwo",size:15}),async onClick(){const{success:pe}=await me(void 0,ns);pe&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(kt,{name:"EfferentFour",size:15}),onClick(){const{id:pe}=t.folder,Le=Jx(pe);window.open(Le,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(kt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await om.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...W8?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(kt,{name:"PlayTwo",size:15}),onClick:gt}]:[]].filter(Boolean)},[t,ne,ce,Ze,et,st,xe,ze,Ie]),Te=ot(de=>{de&&qe();}),Se=P?`https://space.bilibili.com/${P}`:v;p||(p=`${L}${y?` · ${y}`:""}`);const fe=L&&C?`${L} · ${C}`:p;return be("div",{"data-bvid":d||"",className:"bili-video-card__wrap __scale-wrap",css:gee,children:[D(Lh,{menu:{items:ve},trigger:["contextMenu"],onOpenChange:Te,children:D("a",{href:v,target:"_blank",children:be("div",{className:"bili-video-card__image __scale-player-wrap",ref:q,style:{...g2,aspectRatio:"16 / 9"},children:[be("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[be("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!fh&&D("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${b}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(W||typeof ie=="number")&&D(HJ,{videoDuration:w,pvideo:H==null?void 0:H.pvideoData,mouseEnterRelativeX:Y,previewAnimationProgress:ie}),ne&&be("div",{className:`bili-watch-later ${Gt.watchLater}`,style:{display:W||r?"flex":"none"},ref:se,onClick:me,children:[ce?D("svg",{className:"bili-watch-later__icon",viewBox:"0 0 200 200",children:D(framerMotion.m.path,{d:"M25,100 l48,48 a 8.5,8.5 0 0 0 10,0 l90,-90",strokeWidth:"20",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",...Q?void 0:{initial:{pathLength:0},animate:{pathLength:1}}})}):D("svg",{className:"bili-watch-later__icon",children:D("use",{href:"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ee?"block":"none"},children:ce?"移除稍后再看":"稍后再看"})]}),Ze&&be("div",{ref:Ce,className:Gt.btnDislike,onClick:We,style:{display:W?"flex":"none"},children:[D("svg",{className:Gt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Gt.btnDislikeTip,style:{display:ke?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:be("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:A!=null&&A.length?D(It,{children:A.map(({field:de,value:pe})=>D(m.Fragment,{children:Xe({text:pe,iconSvgName:im[de],iconSvgScale:KJ[de]})},de))}):be(It,{children:[Xe({text:Ge||mr,iconSvgName:im.play}),Xe({text:Me||mr,iconSvgName:im.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:j&&x})]})})]})})}),!c&&D("div",{className:"bili-video-card__info __scale-disable",children:be("div",{className:"bili-video-card__info--right",children:[D("a",{href:v,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:g,children:h??g})}),D("p",{className:"bili-video-card__info--bottom",children:j?be("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:fe,children:[$?D("span",{className:Gt.recommendReason,children:$}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:p})]}):_||z?be("a",{className:"bili-video-card__info--owner",href:v,target:"_blank",children:[D("span",{className:Gt.badge,children:_||""}),D("span",{className:Gt.bangumiDesc,children:z||""})]}):null})]})}),c&&be("div",{css:vee,children:[D("a",{href:Se,target:"_blank",children:T?D(ou,{src:T}):D(ou,{children:(L==null?void 0:L[0])||(z==null?void 0:z[0])||""})}),be("div",{css:mee,children:[D("a",{href:v,target:"_blank",children:D("h3",{title:g,css:fee,children:h??g})}),D("div",{css:dee,children:j?be(It,{children:[D("div",{css:uee,children:D("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:fe,children:D("span",{className:"bili-video-card__info--author",children:p})})}),!!$&&D("div",{className:Gt.recommendReason,css:cee,children:$})]}):_||z?be("a",{className:"bili-video-card__info--owner",href:v,target:"_blank",children:[!!_&&D("span",{className:Gt.badge,children:_}),!!z&&D("span",{className:Gt.bangumiDesc,children:z})]}):null})]})]})]})}),pee=()=>document.querySelector(".bili-header__bar");function bee(){const e=pee();return !!(e&&window.getComputedStyle(e).display==="none")}function zv(){if(!bee())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 pu=Jn({value:zv()});function yee(){return er(pu).value}function y2(){return pu.value}setTimeout(()=>{pu.value=zv();const e=new MutationObserver(()=>{pu.value=zv();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const rp="_video-grid_65653_8",C2="_video-grid-new-homepage_65653_16",Cee="_limit-two-lines_65653_19",S2="_video-grid-internal-testing_65653_51";const Ky="_video-grid-container_65653_79",See="_video-grid-fancy_65653_83",wee="_narrow-mode_65653_111";function $ee({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=ot(()=>!(!e||rd())),d=ot(()=>{var S;if(typeof l!="number"||!o.current)return !1;const x=a(),$=(S=o.current.querySelector(`.${ui.card}.${ui.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!x||!$||$.top-x.top<-(x.height+$.height)||$.top-x.top>x.height*2+$.height)}),f=x=>$=>{if(!u())return;$==null||$.preventDefault();const S=typeof x=="number"?x:x(),E=d()?l+S:p();if(E<n){w(n);return}if(E>r){w(r);return}c(E),w(E);};fn("leftarrow",f(-1),{exactMatch:!0}),fn("rightarrow",f(1),{exactMatch:!0}),fn("tab",f(1),{exactMatch:!0}),fn("shift.tab",f(-1),{exactMatch:!0});const v=()=>op(o.current);fn("uparrow",f(()=>-v()),{exactMatch:!0}),fn("downarrow",f(v),{exactMatch:!0});const g=()=>{u()&&c(void 0);},h=()=>{if(!(!u()||typeof l!="number"))return s[l]};fn("esc",g),fn("enter",()=>{var x;!u()||typeof l!="number"||(x=h())==null||x.emit("open");}),fn("backspace",()=>{var x;!u()||typeof l!="number"||(x=h())==null||x.emit("trigger-dislike");}),fn(["s","w"],()=>{var x;!u()||typeof l!="number"||(x=h())==null||x.emit("toggle-watch-later");},{exactMatch:!0}),fn(["period","p"],()=>{var x;!u()||typeof l!="number"||(x=h())==null||x.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const x=a();if(!x)return 0;const $=y();for(let S=0;S<$.length;S++)if($[S].getBoundingClientRect().top>=x.top)return S;return 0}const b=`.${ui.card}`;function y(){var x;return [...((x=o.current)==null?void 0:x.querySelectorAll(b))||[]]}function C(x){return y()[x]}function w(x){var I;const $=C(x);(I=$==null?void 0:$.scrollIntoViewIfNeeded)==null||I.call($,!1);const S=a(),E=$.getBoundingClientRect();if(!(!S||!E)){if(E.top<=S.top){const O=-(S.top-E.top+10);i==null||i({offset:O});return}if(S.bottom-E.bottom<10){const O=10-(S.bottom-E.bottom);i==null||i({offset:O});return}}}return {activeIndex:l,clearActiveIndex:g}}const xee=new Map,Eee=new Map;function op(e,t=!0){if(t&&xt.useNarrowMode)return 2;const n=xt.styleFancy?xee:Eee;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${rp}`)),!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 w2(e){return e==="keep-follow-only"||xt.filterEnabled&&(xt.filterMinDurationEnabled||xt.filterMinPlayCountEnabled||xt.filterOutGotoTypePicture)}function $2(e,t){return w2(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=p2(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const l=i==="av",c=i==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!xt.enableFilterForFollowedVideo?!0:!(xt.filterMinPlayCountEnabled&&xt.filterMinPlayCount&&typeof r=="number"&&r<xt.filterMinPlayCount||xt.filterMinDurationEnabled&&xt.filterMinDuration&&o&&o<xt.filterMinDuration)}function d(){return xt.filterOutGotoTypePicture?!!(s&&!xt.enableFilterForFollowedPicture):!0}}):e}var qd={exports:{}},ap={exports:{}},x2={exports:{}},mn=x2.exports={},Zr,Jr;function jv(){throw new Error("setTimeout has not been defined")}function Fv(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Zr=setTimeout:Zr=jv;}catch{Zr=jv;}try{typeof clearTimeout=="function"?Jr=clearTimeout:Jr=Fv;}catch{Jr=Fv;}})();function E2(e){if(Zr===setTimeout)return setTimeout(e,0);if((Zr===jv||!Zr)&&setTimeout)return Zr=setTimeout,setTimeout(e,0);try{return Zr(e,0)}catch{try{return Zr.call(null,e,0)}catch{return Zr.call(this,e,0)}}}function Iee(e){if(Jr===clearTimeout)return clearTimeout(e);if((Jr===Fv||!Jr)&&clearTimeout)return Jr=clearTimeout,clearTimeout(e);try{return Jr(e)}catch{try{return Jr.call(null,e)}catch{return Jr.call(this,e)}}}var ho=[],ci=!1,oa,Mc=-1;function Oee(){!ci||!oa||(ci=!1,oa.length?ho=oa.concat(ho):Mc=-1,ho.length&&I2());}function I2(){if(!ci){var e=E2(Oee);ci=!0;for(var t=ho.length;t;){for(oa=ho,ho=[];++Mc<t;)oa&&oa[Mc].run();Mc=-1,t=ho.length;}oa=null,ci=!1,Iee(e);}}mn.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];ho.push(new O2(e,t)),ho.length===1&&!ci&&E2(I2);};function O2(e,t){this.fun=e,this.array=t;}O2.prototype.run=function(){this.fun.apply(null,this.array);};mn.title="browser";mn.browser=!0;mn.env={};mn.argv=[];mn.version="";mn.versions={};function Eo(){}mn.on=Eo;mn.addListener=Eo;mn.once=Eo;mn.off=Eo;mn.removeListener=Eo;mn.removeAllListeners=Eo;mn.emit=Eo;mn.prependListener=Eo;mn.prependOnceListener=Eo;mn.listeners=function(e){return []};mn.binding=function(e){throw new Error("process.binding is not supported")};mn.cwd=function(){return "/"};mn.chdir=function(e){throw new Error("process.chdir is not supported")};mn.umask=function(){return 0};var Pee=x2.exports;const _c=xn(Pee);var Bv;typeof Object.create=="function"?Bv=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Bv=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const P2=Bv;var Ree=/%[sdj%]/g;function Oi(e){if(!zl(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(so(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(Ree,function(s){if(s==="%%")return "%";if(n>=o)return s;switch(s){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 s}}),i=r[n];n<o;i=r[++n])Dl(i)||!Ia(i)?a+=" "+i:a+=" "+so(i);return a}function ip(e,t){if(oo(global.process))return function(){return ip(e,t).apply(this,arguments)};if(_c.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(_c.throwDeprecation)throw new Error(t);_c.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var dc={},sm;function R2(e){if(oo(sm)&&(sm=_c.env.NODE_DEBUG||""),e=e.toUpperCase(),!dc[e])if(new RegExp("\\b"+e+"\\b","i").test(sm)){var t=0;dc[e]=function(){var n=Oi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else dc[e]=function(){};return dc[e]}function so(e,t){var n={seen:[],stylize:_ee};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Yd(t)?n.showHidden=t:t&&up(n,t),oo(n.showHidden)&&(n.showHidden=!1),oo(n.depth)&&(n.depth=2),oo(n.colors)&&(n.colors=!1),oo(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Mee),bu(n,e,n.depth)}so.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]};so.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Mee(e,t){var n=so.styles[t];return n?"\x1B["+so.colors[n][0]+"m"+e+"\x1B["+so.colors[n][1]+"m":e}function _ee(e,t){return e}function Tee(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function bu(e,t,n){if(e.customInspect&&t&&Is(t.inspect)&&t.inspect!==so&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return zl(r)||(r=bu(e,r,n)),r}var o=Nee(e,t);if(o)return o;var a=Object.keys(t),i=Tee(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Es(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return lm(t);if(a.length===0){if(Is(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(xs(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(yu(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Es(t))return lm(t)}var l="",c=!1,u=["{","}"];if(sp(t)&&(c=!0,u=["[","]"]),Is(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(xs(t)&&(l=" "+RegExp.prototype.toString.call(t)),yu(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Es(t)&&(l=" "+lm(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return xs(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=kee(e,t,n,i,a):f=a.map(function(v){return Hv(e,t,n,i,v,c)}),e.seen.pop(),Aee(f,l,u)}function Nee(e,t){if(oo(t))return e.stylize("undefined","undefined");if(zl(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(lp(t))return e.stylize(""+t,"number");if(Yd(t))return e.stylize(""+t,"boolean");if(Dl(t))return e.stylize("null","null")}function lm(e){return "["+Error.prototype.toString.call(e)+"]"}function kee(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)A2(t,String(i))?a.push(Hv(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(Hv(e,t,n,r,l,!0));}),a}function Hv(e,t,n,r,o,a){var i,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A2(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Dl(n)?s=bu(e,l.value,null):s=bu(e,l.value,n-1),s.indexOf(`
`)>-1&&(a?s=s.split(`
`).map(function(c){return " "+c}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(c){return " "+c}).join(`
`))):s=e.stylize("[Circular]","special")),oo(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+s}function Aee(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(`
`)>=0,o+a.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 sp(e){return Array.isArray(e)}function Yd(e){return typeof e=="boolean"}function Dl(e){return e===null}function M2(e){return e==null}function lp(e){return typeof e=="number"}function zl(e){return typeof e=="string"}function _2(e){return typeof e=="symbol"}function oo(e){return e===void 0}function xs(e){return Ia(e)&&cp(e)==="[object RegExp]"}function Ia(e){return typeof e=="object"&&e!==null}function yu(e){return Ia(e)&&cp(e)==="[object Date]"}function Es(e){return Ia(e)&&(cp(e)==="[object Error]"||e instanceof Error)}function Is(e){return typeof e=="function"}function T2(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function N2(e){return Buffer.isBuffer(e)}function cp(e){return Object.prototype.toString.call(e)}function cm(e){return e<10?"0"+e.toString(10):e.toString(10)}var Lee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Dee(){var e=new Date,t=[cm(e.getHours()),cm(e.getMinutes()),cm(e.getSeconds())].join(":");return [e.getDate(),Lee[e.getMonth()],t].join(" ")}function k2(){console.log("%s - %s",Dee(),Oi.apply(null,arguments));}function up(e,t){if(!t||!Ia(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function A2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const zee={inherits:P2,_extend:up,log:k2,isBuffer:N2,isPrimitive:T2,isFunction:Is,isError:Es,isDate:yu,isObject:Ia,isRegExp:xs,isUndefined:oo,isSymbol:_2,isString:zl,isNumber:lp,isNullOrUndefined:M2,isNull:Dl,isBoolean:Yd,isArray:sp,inspect:so,deprecate:ip,format:Oi,debuglog:R2},jee=Object.freeze(Object.defineProperty({__proto__:null,_extend:up,debuglog:R2,default:zee,deprecate:ip,format:Oi,inherits:P2,inspect:so,isArray:sp,isBoolean:Yd,isBuffer:N2,isDate:yu,isError:Es,isFunction:Is,isNull:Dl,isNullOrUndefined:M2,isNumber:lp,isObject:Ia,isPrimitive:T2,isRegExp:xs,isString:zl,isSymbol:_2,isUndefined:oo,log:k2},Symbol.toStringTag,{value:"Module"})),Fee=iI(jee);var Bee=Fee.format;function Hee(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Wee(e,t){return function(){var n=this,r=[].slice.call(arguments);Hee();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new L2(t);i(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),a(l);},function(l){clearTimeout(s),i(l);});})}}let L2=class D2 extends Error{constructor(t){super(),this.timeout=t,this.message=Bee("timeout of %sms exceed",t),Error.captureStackTrace(this,D2);}};ap.exports=Wee;ap.exports.TimeoutError=L2;var Vee=ap.exports;const z2=Vee,Gee=z2.TimeoutError;qd.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=z2(t,a));const i=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,f;try{d=await t.apply(s,l);}catch(v){f=v;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof Kee)throw f.originalError;c[u]=f,i&&i(f,u);}throw new j2({times:o,timeout:a,fn:r,errors:c})}};class j2 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);}}let Kee=class 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 Uee=qd.exports.RetryError=j2;qd.exports.TimeoutError=Gee;var Xee=qd.exports;const qee=xn(Xee);class dp extends Error{constructor(n){super();Ct(this,"json");Error.captureStackTrace(this,dp),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Yee(){var r;const t=(await ed.get(YC+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",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 dp(t);return Ot(`${rn}: 未知错误, 请联系开发者
code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Qee=qee(Yee,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",rn,t,e);}});async function Zee(){try{return await Qee()}catch(e){if(e instanceof Uee){console.error(e.errors);const t=[Oi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Oi(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);Ot(t,5e3);}throw e}}class Cu{constructor(){Ct(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(()=>Zee()))).flat();})(),n=n.filter(o=>!(o.goto.includes("ad")||o.card_goto.includes("ad")||o.ad_info)),n=Gs(n,o=>o.param),n.map(o=>({...o,api:"app",device:"ipad",uniqId:o.param+"-"+crypto.randomUUID()}))}}Ct(Cu,"PAGE_SIZE",10);const fc=Ca.extend("service"),Os=e=>h2(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,"popular-general":t=>t.bvid,"popular-weekly":t=>t.bvid});function Uy(e,t){const n=e.map(Os);return t=Gs(t,Os),e.concat(t.filter(r=>!n.includes(Os(r))))}const Wv=e=>e==="keep-follow-only"||e==="recommend-pc";async function F2(e,t,n=5){const{tab:r,abortSignal:o,pcRecService:a,serviceMap:i}=t,s=new Cu;let l=[],c=!0;const u=async d=>{let f=[];const v=vu(i,r);if(v){f=await v.loadMore(o)||[],c=v.hasMore,l=l.concat(f),l=Gs(l,Os);return}let g;if(r==="keep-follow-only")g=8,fc("getMinCount: addMore(restCount = %s) times=%s",d,g);else {const h=Wv(r)?Ks.PAGE_SIZE:Cu.PAGE_SIZE,p=w2(r)?n:1.2;g=Math.ceil(d*p/h),fc("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",d,p,h,g);}f=Wv(r)?await a.getRecommendTimes(g,o):await s.getRecommendTimes(g),f=$2(f,r),l=l.concat(f),l=Gs(l,Os);};for(await u(e);;){if(o!=null&&o.aborted){fc("getMinCount: break for abortSignal");break}if(!c){fc("getMinCount: break for tab=%s hasMore=false",r);break}if(l.length>=e)break;await u(e-l.length);}return l}async function Jee(e){let t=await F2(op(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function ete(e){return F2(op()*3+1,e,5)}async function tte(e,t,n){let r=Wv(t)?await n.getRecommendTimes(e):await new Cu().getRecommendTimes(e);return r=$2(r,t),r}var Vv=new Map,mc=new WeakMap,Xy=0,nte=void 0;function rte(e){return e?(mc.has(e)||(Xy+=1,mc.set(e,Xy.toString())),mc.get(e)):"0"}function ote(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?rte(e.root):e[t]}`).toString()}function ate(e){let t=ote(e),n=Vv.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},Vv.set(t,n);}return n}function ite(e,t,n={},r=nte){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:a,elements:i}=ate(n);let s=i.get(e)||[];return i.has(e)||i.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),Vv.delete(o));}}function ste({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),v=m__namespace.useRef(),[g,h]=m__namespace.useState({inView:!!s,entry:void 0});v.current=c,m__namespace.useEffect(()=>{if(i||!d)return;let C;return C=ite(d,(w,x)=>{h({inView:w,entry:x}),v.current&&v.current(w,x),x.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=g.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,h({inView:!!s,entry:void 0}));const y=[f,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const cs=Ca.extend("components:RecGrid"),ui={card:Hc({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:Hc("border-color:",Fr,";border-radius:",v2,";overflow:hidden;box-shadow:0px 0px 9px 4px ",Fr,";","")};var lte={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const B2=m.forwardRef(function({infiteScrollUseWindow:t,shortcutEnabled:n,onScrollToTop:r,className:o,scrollerRef:a,setRefreshing:i,setExtraInfo:s},l){const{useNarrowMode:c,styleFancy:u}=en(),d=Il(),[f,v]=m.useState(0),g=ot(async()=>{G(),p(d);}),h=ot(()=>{G(),v(1),p(d),P();}),p=ot(ee=>{var Q;const ce=((Q=vu(k,ee))==null?void 0:Q.usageInfo)??null;s==null||s(ce);}),{refresh:b,items:y,setItems:C,error:w,refreshing:x,refreshedAt:$,getRefreshedAt:S,swr:E,hasMore:I,setHasMore:O,refreshAbortController:R,pcRecService:M,serviceMap:k}=s2({tab:d,debug:cs,fetcher:ete,recreateService:!0,preAction:g,postAction:h,onScrollToTop:r,setUpperRefreshing:i});yl(b),m.useImperativeHandle(l,()=>({refresh:b}),[]);const A=m.useRef();Do("visibilitychange",ee=>{if(!(document.visibilityState==="visible")){A.current=Date.now();return}x||L.current[$]||d==="watchlater"&&A.current&&Date.now()-A.current>sl("1h")&&b(!0,{watchlaterKeepOrder:!0});},{target:document});const L=m.useRef({}),T=ot(async()=>{if(!I||x)return;const ee=$;if(L.current[ee])return;L.current={[ee]:!0};let ce=y,Q=!0;try{const le=vu(k,d);if(le){const he=await le.loadMore(R.signal)||[];ce=Uy(ce,he),Q=le.hasMore;}else for(;!(ce.length>y.length);){const ne=await tte(d==="keep-follow-only"?5:2,d,M);ce=Uy(ce,ne);}}catch(le){throw L.current[ee]=!1,le}if(ee!==S()){cs("loadMore: skip update for mismatch refreshedAt, %s != %s",ee,S());return}cs("loadMore: seq(%s) len %s -> %s",f+1,y.length,ce.length),O(Q),C(ce),v(le=>le+1),L.current[ee]=!1,P();}),P=ot(async()=>{await Dn(fh?100:50),cs("checkShouldLoadMore(): footerInView = %s",U.current),U.current&&T();}),_=m.useRef(null),z=ot(()=>{var ee;if(t){const ce=y2()+50;return new DOMRect(0,ce,window.innerWidth,window.innerHeight-ce)}else return (ee=a==null?void 0:a.current)==null?void 0:ee.getBoundingClientRect()}),j=yH(),H=m.useMemo(()=>new Map,[$]),B=m.useMemo(()=>y.map(({uniqId:ee})=>H.get(ee)||(()=>{const ce=np();return H.set(ee,ce),ce})()),[y]),{activeIndex:V,clearActiveIndex:G}=$ee({enabled:n&&!j,refresh:b,maxIndex:y.length-1,containerRef:_,getScrollerRect:z,videoCardEmitters:B,changeScrollY:t?function({offset:ee,absolute:ce}){const Q=document.documentElement;if(typeof ee=="number"){Q.scrollTop+=ee;return}if(typeof ce=="number"){Q.scrollTop=ce;return}}:void 0}),q=ha(),Y=ot((ee,ce)=>{C(Q=>{const le=Q.findIndex(ne=>ne.uniqId===ee.uniqId);if(le===-1)return Q;const he=Q.slice();return he.splice(le,1),Ot(`已移除: ${ce.title}`,4e3),d==="watchlater"&&(k.watchlater.count--,p(d)),d==="fav"&&(k.fav.total--,p(d)),he});}),te=ot((ee,ce)=>{C(Q=>{const le=Q.find(ae=>ae.uniqId===ee.uniqId);if(!le)return Q;const he=Q.indexOf(le),ne=Q.slice();return ne.splice(he,1),ne.unshift(le),ne});}),{ref:W,inView:Z}=ste({root:t?null:(a==null?void 0:a.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(ee){ee&&(cs("footerInView change to visible",ee),T());}}),U=Si(Z),ue=D("div",{ref:W,css:lte,children:!x&&D(It,{children:I?be(It,{children:[D(kt,{name:"Loading",fill:Fr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ie=K(`${rn}-video-grid`,rp,u?See:q?S2:C2,c&&wee,o);return !y.length||w||x&&!E?D("div",{className:Ky,children:D("div",{className:ie,children:new Array(28).fill(void 0).map((ee,ce)=>D(hu,{loading:!0,className:ui.card},ce))})}):be("div",{style:{minHeight:"100%"},className:Ky,children:[D("div",{ref:_,className:ie,children:y.map((ee,ce)=>{const Q=ce===V;return D(hu,{className:K(ui.card,{[ui.cardActive]:Q}),item:ee,active:Q,onRemoveCurrent:Y,onMoveToFirst:te,onRefresh:b,emitter:B[ce]},ee.uniqId)})}),ue]})});var Oa=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Gv(e,t,n){return (e-t)/(n-t)}function fp(e,t,n,r){var o=Gv(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function ni(e,t){return Array.isArray(e)?e[t]:e}var cte=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],ute=m__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=tt(e,cte),v=m__namespace.useContext(Oa),g=v.min,h=v.max,p=v.direction,b=v.disabled,y=v.keyboard,C=v.range,w=v.tabIndex,x=v.ariaLabelForHandle,$=v.ariaLabelledByForHandle,S=v.ariaValueTextFormatterForHandle,E=v.styles,I=v.classNames,O="".concat(o,"-handle"),R=function(T){b||s(T,i);},M=function(T){if(!b&&y){var P=null;switch(T.which||T.keyCode){case ge.LEFT:P=p==="ltr"||p==="btt"?-1:1;break;case ge.RIGHT:P=p==="ltr"||p==="btt"?1:-1;break;case ge.UP:P=p!=="ttb"?1:-1;break;case ge.DOWN:P=p!=="ttb"?-1:1;break;case ge.HOME:P="min";break;case ge.END:P="max";break;case ge.PAGE_UP:P=2;break;case ge.PAGE_DOWN:P=-2;break}P!==null&&(T.preventDefault(),d(P,i));}},k=fp(p,a,g,h),A=m__namespace.createElement("div",Re({ref:t,className:K(O,(n={},F(n,"".concat(O,"-").concat(i+1),C),F(n,"".concat(O,"-dragging"),u),n),I.handle),style:X(X(X({},k),l),E.handle),onMouseDown:R,onTouchStart:R,onKeyDown:M,tabIndex:b?null:ni(w,i),role:"slider","aria-valuemin":g,"aria-valuemax":h,"aria-valuenow":a,"aria-disabled":b,"aria-label":ni(x,i),"aria-labelledby":ni($,i),"aria-valuetext":(r=ni(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},f));return c&&(A=c(A,{index:i,prefixCls:o,value:a,dragging:u})),A}),dte=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],fte=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=tt(e,dte),u=m__namespace.useRef({});return m__namespace.useImperativeHandle(t,function(){return {focus:function(f){var v;(v=u.current[f])===null||v===void 0||v.focus();}}}),m__namespace.createElement(m__namespace.Fragment,null,i.map(function(d,f){return m__namespace.createElement(ute,Re({ref:function(g){g?u.current[f]=g:delete u.current[f];},dragging:l===f,prefixCls:n,style:ni(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:a,render:s},c))}))});function qy(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function mte(e,t,n,r,o,a,i,s,l){var c=m__namespace.useState(null),u=J(c,2),d=u[0],f=u[1],v=m__namespace.useState(-1),g=J(v,2),h=g[0],p=g[1],b=m__namespace.useState(n),y=J(b,2),C=y[0],w=y[1],x=m__namespace.useState(n),$=J(x,2),S=$[0],E=$[1],I=m__namespace.useRef(null),O=m__namespace.useRef(null);m__namespace.useEffect(function(){h===-1&&w(n);},[n,h]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current);}},[]);var R=function(P,_){C.some(function(z,j){return z!==P[j]})&&(_!==void 0&&f(_),w(P),i(P));},M=function(P,_){if(P===-1){var z=S[0],j=S[S.length-1],H=r-z,B=o-j,V=_*(o-r);V=Math.max(V,H),V=Math.min(V,B);var G=a(z+V);V=G-z;var q=S.map(function(Z){return Z+V});R(q);}else {var Y=(o-r)*_,te=Ae(C);te[P]=S[P];var W=l(te,Y,P,"dist");R(W.values,W.value);}},k=m__namespace.useRef(M);k.current=M;var A=function(P,_,z){P.stopPropagation();var j=z||n,H=j[_];p(_),f(H),E(j);var B=qy(P),V=B.pageX,G=B.pageY,q=function(W){W.preventDefault();var Z=qy(W),U=Z.pageX,ue=Z.pageY,ie=U-V,se=ue-G,ee=e.current.getBoundingClientRect(),ce=ee.width,Q=ee.height,le;switch(t){case"btt":le=-se/Q;break;case"ttb":le=se/Q;break;case"rtl":le=-ie/ce;break;default:le=ie/ce;}k.current(_,le);},Y=function te(W){W.preventDefault(),document.removeEventListener("mouseup",te),document.removeEventListener("mousemove",q),document.removeEventListener("touchend",te),document.removeEventListener("touchmove",q),I.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",Y),document.addEventListener("mousemove",q),document.addEventListener("touchend",Y),document.addEventListener("touchmove",q),I.current=q,O.current=Y;},L=m__namespace.useMemo(function(){var T=Ae(n).sort(function(_,z){return _-z}),P=Ae(C).sort(function(_,z){return _-z});return T.every(function(_,z){return _===P[z]})?C:n},[n,C]);return [h,d,L,A]}function vte(e,t,n,r,o,a){var i=m__namespace.useCallback(function(v){var g=isFinite(v)?v:e;return g=Math.min(t,v),g=Math.max(e,g),g},[e,t]),s=m__namespace.useCallback(function(v){if(n!==null){var g=e+Math.round((i(v)-e)/n)*n,h=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(h(n),h(t),h(e)),b=Number(g.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=m__namespace.useCallback(function(v){var g=i(v),h=r.map(function(y){return y.value});n!==null&&h.push(s(v)),h.push(e,t);var p=h[0],b=t-e;return h.forEach(function(y){var C=Math.abs(g-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function v(g,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof h=="number"){var y,C=g[p],w=C+h,x=[];r.forEach(function(O){x.push(O.value);}),x.push(e,t),x.push(s(C));var $=h>0?1:-1;b==="unit"?x.push(s(C+$*n)):x.push(s(w)),x=x.filter(function(O){return O!==null}).filter(function(O){return h<0?O<=C:O>=C}),b==="unit"&&(x=x.filter(function(O){return O!==C}));var S=b==="unit"?C:w;y=x[0];var E=Math.abs(y-S);if(x.forEach(function(O){var R=Math.abs(O-S);R<E&&(y=O,E=R);}),y===void 0)return h<0?e:t;if(b==="dist")return y;if(Math.abs(h)>1){var I=Ae(g);return I[p]=y,v(I,h-$,p,b)}return y}else {if(h==="min")return e;if(h==="max")return t}},u=function(g,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],C=c(g,h,p,b);return {value:C,changed:C!==y}},d=function(g){return a===null&&g===0||typeof a=="number"&&g<a},f=function(g,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),C=y[p],w=c(y,h,p,b);if(y[p]=w,o===!1){var x=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+x)),p<y.length-1&&y[p+1]!==C&&(y[p]=Math.min(y[p],y[p+1]-x));}else if(typeof a=="number"||a===null){for(var $=p+1;$<y.length;$+=1)for(var S=!0;d(y[$]-y[$-1])&&S;){var E=u(y,1,$);y[$]=E.value,S=E.changed;}for(var I=p;I>0;I-=1)for(var O=!0;d(y[I]-y[I-1])&&O;){var R=u(y,-1,I-1);y[I-1]=R.value,O=R.changed;}for(var M=y.length-1;M>0;M-=1)for(var k=!0;d(y[M]-y[M-1])&&k;){var A=u(y,-1,M-1);y[M-1]=A.value,k=A.changed;}for(var L=0;L<y.length-1;L+=1)for(var T=!0;d(y[L+1]-y[L])&&T;){var P=u(y,1,L+1);y[L+1]=P.value,T=P.changed;}}return {value:y[p],values:y}};return [l,f]}function gte(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=m__namespace.useContext(Oa),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,v="".concat(t,"-text"),g=fp(c,o,s,l);return m__namespace.createElement("span",{className:K(v,F({},"".concat(v,"-active"),f&&u<=o&&o<=d)),style:X(X({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function hte(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?m__namespace.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return m__namespace.createElement(gte,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function pte(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=m__namespace.useContext(Oa),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),v=c&&u<=n&&n<=d,g=X(X({},fp(l,n,i,s)),typeof r=="function"?r(n):r);return v&&(g=X(X({},g),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:K(f,F({},"".concat(f,"-active"),v)),style:g})}function bte(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=m__namespace.useContext(Oa),s=i.min,l=i.max,c=i.step,u=m__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(v){d.add(v.value);}),r&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,r,n]);return m__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return m__namespace.createElement(pte,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function Yy(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=m__namespace.useContext(Oa),u=c.direction,d=c.min,f=c.max,v=c.disabled,g=c.range,h=c.classNames,p="".concat(n,"-track"),b=Gv(o,d,f),y=Gv(a,d,f),C=function(S){!v&&s&&s(S,-1);},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");}var x=l||K(p,(t={},F(t,"".concat(p,"-").concat(i+1),i!==null&&g),F(t,"".concat(n,"-track-draggable"),s),t),h.track);return m__namespace.createElement("div",{className:x,style:X(X({},w),r),onMouseDown:C,onTouchStart:C})}function yte(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=m__namespace.useContext(Oa),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var g=o??c,h=r[0];return [{start:Math.min(g,h),end:Math.max(g,h)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,l,o,c]),v=null;return (d.tracks||u.tracks)&&(v=m__namespace.createElement(Yy,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:K(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?m__namespace.createElement(m__namespace.Fragment,null,v,f.map(function(g,h){var p=g.start,b=g.end;return m__namespace.createElement(Yy,{index:h,prefixCls:t,style:X(X({},ni(n,h)),u.track),start:p,end:b,key:h,onStartMove:a})})):null}var Cte=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,a=e.className,i=e.style,s=e.classNames,l=e.styles,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,f=d===void 0?!0:d,v=e.autoFocus,g=e.onFocus,h=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,w=e.step,x=w===void 0?1:w,$=e.value,S=e.defaultValue,E=e.range,I=e.count,O=e.onChange,R=e.onBeforeChange,M=e.onAfterChange,k=e.allowCross,A=k===void 0?!0:k,L=e.pushable,T=L===void 0?!1:L,P=e.draggableTrack,_=e.reverse,z=e.vertical,j=e.included,H=j===void 0?!0:j,B=e.startPoint,V=e.trackStyle,G=e.handleStyle,q=e.railStyle,Y=e.dotStyle,te=e.activeDotStyle,W=e.marks,Z=e.dots,U=e.handleRender,ue=e.tabIndex,ie=ue===void 0?0:ue,se=e.ariaLabelForHandle,ee=e.ariaLabelledByForHandle,ce=e.ariaValueTextFormatterForHandle,Q=m__namespace.useRef(),le=m__namespace.useRef(),he=m__namespace.useMemo(function(){return z?_?"ttb":"btt":_?"rtl":"ltr"},[_,z]),ne=m__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),ae=m__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),me=m__namespace.useMemo(function(){return x!==null&&x<=0?1:x},[x]),Ce=m__namespace.useMemo(function(){return typeof T=="boolean"?T?me:!1:T>=0?T:!1},[T,me]),ke=m__namespace.useMemo(function(){var ft=Object.keys(W||{});return ft.map(function(je){var Pe=W[je],Ee={value:Number(je)};return Pe&&ut(Pe)==="object"&&!m__namespace.isValidElement(Pe)&&("label"in Pe||"style"in Pe)?(Ee.style=Pe.style,Ee.label=Pe.label):Ee.label=Pe,Ee}).filter(function(je){var Pe=je.label;return Pe||typeof Pe=="number"}).sort(function(je,Pe){return je.value-Pe.value})},[W]),We=vte(ne,ae,me,ke,A,Ce),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=qt(S,{value:$}),He=J(ze,2),Ie=He[0],we=He[1],qe=m__namespace.useMemo(function(){var ft=Ie==null?[]:Array.isArray(Ie)?Ie:[Ie],je=J(ft,1),Pe=je[0],Ee=Pe===void 0?ne:Pe,Oe=Ie===null?[]:[Ee];if(E){if(Oe=Ae(ft),I||Ie===void 0){var Ve=I>=0?I+1:2;for(Oe=Oe.slice(0,Ve);Oe.length<Ve;){var mt;Oe.push((mt=Oe[Oe.length-1])!==null&&mt!==void 0?mt:ne);}}Oe.sort(function(_t,Mt){return _t-Mt});}return Oe.forEach(function(_t,Mt){Oe[Mt]=Me(_t);}),Oe},[Ie,E,ne,I,Me]),nt=m__namespace.useRef(qe);nt.current=qe;var bt=function(je){return E?je:je[0]},Ze=function(je){var Pe=Ae(je).sort(function(Ee,Oe){return Ee-Oe});O&&!dl(Pe,nt.current,!0)&&O(bt(Pe)),we(Pe);},Je=function(){M==null||M(bt(nt.current));},gt=mte(le,he,qe,ne,ae,Me,Ze,Je,Xe),ht=J(gt,4),st=ht[0],dt=ht[1],et=ht[2],$e=ht[3],xe=function(je,Pe){if(!u){var Ee=0,Oe=ae-ne;qe.forEach(function(mt,_t){var Mt=Math.abs(je-mt);Mt<=Oe&&(Oe=Mt,Ee=_t);});var Ve=Ae(qe);Ve[Ee]=je,E&&!qe.length&&I===void 0&&Ve.push(je),R==null||R(bt(Ve)),Ze(Ve),M==null||M(bt(Ve)),Pe&&$e(Pe,Ee,Ve);}},_e=function(je){je.preventDefault();var Pe=le.current.getBoundingClientRect(),Ee=Pe.width,Oe=Pe.height,Ve=Pe.left,mt=Pe.top,_t=Pe.bottom,Mt=Pe.right,vn=je.clientX,un=je.clientY,gn;switch(he){case"btt":gn=(_t-un)/Oe;break;case"ttb":gn=(un-mt)/Oe;break;case"rtl":gn=(Mt-vn)/Ee;break;default:gn=(vn-Ve)/Ee;}var Bn=ne+gn*(ae-ne);xe(Me(Bn),je);},ve=m__namespace.useState(null),Te=J(ve,2),Se=Te[0],fe=Te[1],oe=function(je,Pe){if(!u){var Ee=Xe(qe,je,Pe);R==null||R(bt(qe)),Ze(Ee.values),M==null||M(bt(Ee.values)),fe(Ee.value);}};m__namespace.useEffect(function(){if(Se!==null){var ft=qe.indexOf(Se);ft>=0&&Q.current.focus(ft);}fe(null);},[Se]);var ye=m__namespace.useMemo(function(){return P&&me===null?!1:P},[P,me]),de=function(je,Pe){$e(je,Pe),R==null||R(bt(nt.current));},pe=st!==-1;m__namespace.useEffect(function(){if(!pe){var ft=qe.lastIndexOf(dt);Q.current.focus(ft);}},[pe]);var Le=m__namespace.useMemo(function(){return Ae(et).sort(function(ft,je){return ft-je})},[et]),Ue=m__namespace.useMemo(function(){return E?[Le[0],Le[Le.length-1]]:[ne,Le[0]]},[Le,E,ne]),lt=J(Ue,2),it=lt[0],Et=lt[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){Q.current.focus(0);},blur:function(){var je=document,Pe=je.activeElement;le.current.contains(Pe)&&(Pe==null||Pe.blur());}}}),m__namespace.useEffect(function(){v&&Q.current.focus(0);},[]);var wt=m__namespace.useMemo(function(){return {min:ne,max:ae,direction:he,disabled:u,keyboard:f,step:me,included:H,includedStart:it,includedEnd:Et,range:E,tabIndex:ie,ariaLabelForHandle:se,ariaLabelledByForHandle:ee,ariaValueTextFormatterForHandle:ce,styles:l||{},classNames:s||{}}},[ne,ae,he,u,f,me,H,it,Et,E,ie,se,ee,ce,l,s]);return m__namespace.createElement(Oa.Provider,{value:wt},m__namespace.createElement("div",{ref:le,className:K(o,a,(n={},F(n,"".concat(o,"-disabled"),u),F(n,"".concat(o,"-vertical"),z),F(n,"".concat(o,"-horizontal"),!z),F(n,"".concat(o,"-with-marks"),ke.length),n)),style:i,onMouseDown:_e},m__namespace.createElement("div",{className:K("".concat(o,"-rail"),s==null?void 0:s.rail),style:X(X({},q),l==null?void 0:l.rail)}),m__namespace.createElement(yte,{prefixCls:o,style:V,values:Le,startPoint:B,onStartMove:ye?de:null}),m__namespace.createElement(bte,{prefixCls:o,marks:ke,dots:Z,style:Y,activeStyle:te}),m__namespace.createElement(fte,{ref:Q,prefixCls:o,style:G,values:et,draggingIndex:st,onStartMove:de,onOffsetChange:oe,onFocus:g,onBlur:h,handleRender:U}),m__namespace.createElement(hte,{prefixCls:o,marks:ke,onClick:xe})))});const Ste=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.useRef(null);function a(){Rt.cancel(o.current),o.current=null;}function i(){o.current=Rt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return m__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),m__namespace.createElement(ml,Object.assign({ref:qn(r,t)},e))}),wte=Ste,$te=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Ft(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::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 Jt(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"}})}},H2=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,f=(o-r)/2,v=t?{borderWidth:`${f}px 0`,transform:`translateY(-${f}px)`}:{borderWidth:`0 ${f}px`,transform:`translateX(-${f}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[c]:d},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-a)/2}}},xte=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},H2(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Ete=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},H2(e,!1)),{height:"100%"})}},Ite=Kt("Slider",e=>{const t=St(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [$te(t),xte(t),Ete(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,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 Ote=function(e,t){var n={};for(var r in 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 Pte(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Rte=m.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,v=Ote(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:h,getPrefixCls:p,getPopupContainer:b}=m.useContext(rt),y=m.useContext(Ur),C=s??y,[w,x]=m.useState({}),$=(T,P)=>{x(_=>Object.assign(Object.assign({},_),{[T]:P}));},S=(T,P)=>T||(P?g==="rtl"?"left":"right":"top"),E=p("slider",n),[I,O]=Ite(E),R=K(o,h==null?void 0:h.className,a,{[`${E}-rtl`]:g==="rtl"},O);g==="rtl"&&!v.vertical&&(v.reverse=!v.reverse);const[M,k]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(T,P)=>{var _;const{index:z,dragging:j}=P,{tooltip:H={},vertical:B}=e,V=Object.assign({},H),{open:G,placement:q,getPopupContainer:Y,prefixCls:te,formatter:W}=V,Z=Pte(W,c),U=Z?w[z]||j:!1,ue=(_=G??u)!==null&&_!==void 0?_:G===void 0&&U,ie=Object.assign(Object.assign({},T.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1),onFocus:se=>{var ee;$(z,!0),(ee=v.onFocus)===null||ee===void 0||ee.call(v,se);},onBlur:se=>{var ee;$(z,!1),(ee=v.onBlur)===null||ee===void 0||ee.call(v,se);}});return m.createElement(wte,Object.assign({},V,{prefixCls:p("tooltip",te??l),title:Z?Z(P.value):"",open:ue,placement:S(q??f,B),key:z,overlayClassName:`${E}-tooltip`,getPopupContainer:Y||d||b}),m.cloneElement(T,ie))},L=Object.assign(Object.assign({},h==null?void 0:h.style),i);return I(m.createElement(Cte,Object.assign({},v,{step:v.step,range:M,draggableTrack:k,className:R,style:L,disabled:C,ref:t,prefixCls:E,handleRender:A})))}),Mte=Rte;var _te={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 Tte=_te;var Nte=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:Tte}))};const W2=m__namespace.forwardRef(Nte);function Qy(e){return !!(e&&e.then)}const kte=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[v,g]=sa(!1),h=function(){a==null||a.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=f.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{Qy(y)&&(g(!0),y.then(function(){g(!1,!0),h.apply(void 0,arguments),d.current=!1;},C=>{if(g(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){h();return}let C;if(s){if(C=u(y),c&&!Qy(C)){d.current=!1,h(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){h();return}p(C);};return m__namespace.createElement(Zt,Object.assign({},ox(t),{onClick:b,loading:v,prefixCls:r},o,{ref:f}),n)},Ate=kte,Lte=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},V2=Kt("Popconfirm",e=>Lte(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var Dte=function(e,t){var n={};for(var r in 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 G2=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=m__namespace.createElement(W2,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:v,onPopupClick:g}=e,{getPrefixCls:h}=m__namespace.useContext(rt),[p]=ji("Popconfirm",So.Popconfirm),b=xi(o),y=xi(a);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},m__namespace.createElement("div",{className:`${t}-message`},c&&m__namespace.createElement("span",{className:`${t}-message-icon`},c),m__namespace.createElement("div",{className:`${t}-message-text`},b&&m__namespace.createElement("div",{className:K(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Zt,Object.assign({onClick:v,size:"small"},r),i??(p==null?void 0:p.cancelText)),m__namespace.createElement(Ate,{buttonProps:Object.assign(Object.assign({size:"small"},ox(l)),n),actionFn:f,close:d,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},zte=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=Dte(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=m__namespace.useContext(rt),s=i("popconfirm",t),[l]=V2(s);return l(m__namespace.createElement(M$,{placement:n,className:K(s,r),style:o,content:m__namespace.createElement(G2,Object.assign({prefixCls:s},a))}))},jte=zte;var Fte=function(e,t){var n={};for(var r in 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 K2=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:l=m__namespace.createElement(W2,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,v=Fte(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=m__namespace.useContext(rt),[h,p]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(O,R)=>{p(O,!0),f==null||f(O),d==null||d(O,R);},y=O=>{b(!1,O);},C=O=>{var R;return (R=e.onConfirm)===null||R===void 0?void 0:R.call(void 0,O)},w=O=>{var R;b(!1,O),(R=e.onCancel)===null||R===void 0||R.call(void 0,O);},x=O=>{O.keyCode===ge.ESC&&h&&b(!1,O);},$=O=>{const{disabled:R=!1}=e;R||b(O);},S=g("popconfirm",o),E=K(S,u),[I]=V2(S);return I(m__namespace.createElement(zd,Object.assign({},Fn(v,["title"]),{trigger:i,placement:a,onOpenChange:$,open:h,ref:t,overlayClassName:E,content:m__namespace.createElement(G2,Object.assign({okType:s,icon:l},e,{prefixCls:S,close:y,onConfirm:C,onCancel:w})),"data-popover-inject":!0}),Un(c,{onKeyDown:O=>{var R,M;m__namespace.isValidElement(c)&&((M=c==null?void 0:(R=c.props).onKeyDown)===null||M===void 0||M.call(R,O)),x(O);}})))});K2._InternalPanelDoNotUseOrYouWillBeFired=jte;const Zy=K2;var Bte={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 Hte=Bte;var Wte=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:Hte}))};const Vte=m__namespace.forwardRef(Wte);function Kv(){return typeof BigInt=="function"}function ua(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("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function mp(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Us(e){var t=String(e);if(mp(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(".")&&vp(t)?t.length-t.indexOf(".")-1:0}function Qd(e){var t=String(e);if(mp(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Kv()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Kv()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Us(t));}return ua(t).fullStr}function vp(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 U2(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var Gte=function(){function e(t){if(In(this,e),F(this,"origin",""),F(this,"number",void 0),F(this,"empty",void 0),U2(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return On(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 a=Math.max(Us(this.number),Us(r));return new e(o.toFixed(a))}},{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()?"":Qd(this.number):this.origin}}]),e}(),Kte=function(){function e(t){if(In(this,e),F(this,"origin",""),F(this,"negative",void 0),F(this,"integer",void 0),F(this,"decimal",void 0),F(this,"decimalLen",void 0),F(this,"empty",void 0),F(this,"nan",void 0),U2(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(mp(n)&&(n=Number(n)),n=typeof n=="string"?n:Qd(n),vp(n)){var r=ua(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return On(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),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),l=ua(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.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()?"":ua("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Nr(e){return Kv()?new Kte(e):new Gte(e)}function Tc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ua(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Nr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return Tc(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function Ute(e,t){var n=m.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[c-1],f=a.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(v){$n(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [r,o]}var Xte=function(){var t=m.useState(!1),n=J(t,2),r=n[0],o=n[1];return Xt(function(){o(gd());},[]),r},qte=200,Yte=600;function Qte(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,w){C.preventDefault(),u(),c.current(w);function x(){c.current(w),s.current=setTimeout(x,qte);}s.current=setTimeout(x,Yte);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Rt.cancel(y)});}},[]);var f=Xte();if(f)return null;var v="".concat(t,"-handler"),g=K(v,"".concat(v,"-up"),F({},"".concat(v,"-up-disabled"),o)),h=K(v,"".concat(v,"-down"),F({},"".concat(v,"-down-disabled"),a)),p=function(){return l.current.push(Rt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return m__namespace.createElement("div",{className:"".concat(v,"-wrap")},m__namespace.createElement("span",Re({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Re({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:h}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Jy(e){var t=typeof e=="number"?Qd(e):ua(e).fullStr,n=t.includes(".");return n?ua(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Zte=function(){var e=m.useRef(0),t=function(){Rt.cancel(e.current);};return m.useEffect(function(){return t},[]),function(n){t(),e.current=Rt(function(){n();});}};var Jte=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],ene=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],e1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},t1=function(t){var n=Nr(t);return n.isInvalidate()?null:n},tne=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,f=e.value,v=e.disabled,g=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.classNames,x=e.stringMode,$=e.parser,S=e.formatter,E=e.precision,I=e.decimalSeparator,O=e.onChange,R=e.onInput,M=e.onPressEnter,k=e.onStep,A=e.changeOnBlur,L=A===void 0?!0:A,T=tt(e,Jte),P="".concat(o,"-input"),_=m__namespace.useRef(null),z=m__namespace.useState(!1),j=J(z,2),H=j[0],B=j[1],V=m__namespace.useRef(!1),G=m__namespace.useRef(!1),q=m__namespace.useRef(!1),Y=m__namespace.useState(function(){return Nr(f??d)}),te=J(Y,2),W=te[0],Z=te[1];function U($e){f===void 0&&Z($e);}var ue=m__namespace.useCallback(function($e,xe){if(!xe)return E>=0?E:Math.max(Us($e),Us(u))},[E,u]),ie=m__namespace.useCallback(function($e){var xe=String($e);if($)return $(xe);var _e=xe;return I&&(_e=_e.replace(I,".")),_e.replace(/[^\w.-]+/g,"")},[$,I]),se=m__namespace.useRef(""),ee=m__namespace.useCallback(function($e,xe){if(S)return S($e,{userTyping:xe,input:String(se.current)});var _e=typeof $e=="number"?Qd($e):$e;if(!xe){var ve=ue(_e,xe);if(vp(_e)&&(I||ve>=0)){var Te=I||".";_e=Tc(_e,Te,ve);}}return _e},[S,ue,I]),ce=m__namespace.useState(function(){var $e=d??f;return W.isInvalidate()&&["string","number"].includes(ut($e))?Number.isNaN($e)?"":$e:ee(W.toString(),!1)}),Q=J(ce,2),le=Q[0],he=Q[1];se.current=le;function ne($e,xe){he(ee($e.isInvalidate()?$e.toString(!1):$e.toString(!xe),xe));}var ae=m__namespace.useMemo(function(){return t1(l)},[l,E]),me=m__namespace.useMemo(function(){return t1(s)},[s,E]),Ce=m__namespace.useMemo(function(){return !ae||!W||W.isInvalidate()?!1:ae.lessEquals(W)},[ae,W]),ke=m__namespace.useMemo(function(){return !me||!W||W.isInvalidate()?!1:W.lessEquals(me)},[me,W]),We=Ute(_.current,H),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=function(xe){return ae&&!xe.lessEquals(ae)?ae:me&&!me.lessEquals(xe)?me:null},He=function(xe){return !ze(xe)},Ie=function(xe,_e){var ve=xe,Te=He(ve)||ve.isEmpty();if(!ve.isEmpty()&&!_e&&(ve=ze(ve)||ve,Te=!0),!g&&!v&&Te){var Se=ve.toString(),fe=ue(Se,_e);return fe>=0&&(ve=Nr(Tc(Se,".",fe)),He(ve)||(ve=Nr(Tc(Se,".",fe,!0)))),ve.equals(W)||(U(ve),O==null||O(ve.isEmpty()?null:e1(x,ve)),f===void 0&&ne(ve,_e)),ve}return W},we=Zte(),qe=function $e(xe){if(Me(),se.current=xe,he(xe),!G.current){var _e=ie(xe),ve=Nr(_e);ve.isNaN()||Ie(ve,!0);}R==null||R(xe),we(function(){var Te=xe;$||(Te=xe.replace(/。/g,".")),Te!==xe&&$e(Te);});},nt=function(){G.current=!0;},bt=function(){G.current=!1,qe(_.current.value);},Ze=function(xe){qe(xe.target.value);},Je=function(xe){var _e;if(!(xe&&Ce||!xe&&ke)){V.current=!1;var ve=Nr(q.current?Jy(u):u);xe||(ve=ve.negate());var Te=(W||Nr(0)).add(ve.toString()),Se=Ie(Te,!1);k==null||k(e1(x,Se),{offset:q.current?Jy(u):u,type:xe?"up":"down"}),(_e=_.current)===null||_e===void 0||_e.focus();}},gt=function(xe){var _e=Nr(ie(le)),ve=_e;_e.isNaN()?ve=Ie(W,xe):ve=Ie(_e,xe),f!==void 0?ne(W,!1):ve.isNaN()||ne(ve,!1);},ht=function(){V.current=!0;},st=function(xe){var _e=xe.key,ve=xe.shiftKey;V.current=!0,q.current=ve,_e==="Enter"&&(G.current||(V.current=!1),gt(!1),M==null||M(xe)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_e)&&(Je(_e==="Up"||_e==="ArrowUp"),xe.preventDefault());},dt=function(){V.current=!1,q.current=!1;},et=function(){L&>(!1),B(!1),V.current=!1;};return oi(function(){W.isInvalidate()||ne(W,!1);},[E,S]),oi(function(){var $e=Nr(f);Z($e);var xe=Nr(ie(le));(!$e.equals(xe)||!V.current||S)&&ne($e,V.current);},[f]),oi(function(){S&&Xe();},[le]),m__namespace.createElement("div",{className:K(o,w==null?void 0:w.input,a,(n={},F(n,"".concat(o,"-focused"),H),F(n,"".concat(o,"-disabled"),v),F(n,"".concat(o,"-readonly"),g),F(n,"".concat(o,"-not-a-number"),W.isNaN()),F(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!He(W)),n)),style:i,onFocus:function(){B(!0);},onBlur:et,onKeyDown:st,onKeyUp:dt,onCompositionStart:nt,onCompositionEnd:bt,onBeforeInput:ht},C&&m__namespace.createElement(Qte,{prefixCls:o,upNode:h,downNode:p,upDisabled:Ce,downDisabled:ke,onStep:Je}),m__namespace.createElement("div",{className:"".concat(P,"-wrap")},m__namespace.createElement("input",Re({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},T,{ref:qn(_,t),className:P,value:le,onChange:Ze,disabled:v,readOnly:g}))))}),X2=m__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,v=tt(e,ene),g=m__namespace.useRef(null),h=function(b){g.current&&Ux(g.current,b);};return m__namespace.createElement(Zh,{inputElement:m__namespace.createElement(tne,Re({prefixCls:o,disabled:n,classNames:f,ref:qn(g,t)},v)),className:d,triggerFocus:h,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});X2.displayName="InputNumber";const n1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},nne=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:v,paddingInline:g,paddingBlock:h,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:w,controlWidth:x,handleVisible:$,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),kl(e)),Ud(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ft(e)),Kx(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},Uh(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{width:"100%",padding:`${h}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),Wx(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&: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:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:$===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${S}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},xa()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},n1(e,"lg")),n1(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},rne=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},kl(e)),Ud(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`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}}})}},one=Kt("InputNumber",e=>{const t=St(e,qh(e));return [nne(t),rne(t),Vd(t)]},e=>Object.assign(Object.assign({},Yh(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder}));var ane=function(e,t){var n={};for(var r in 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 q2=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(rt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:v=!0,readOnly:g,status:h,controls:p}=e,b=ane(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,w]=one(y),{compactSize:x,compactItemClassnames:$}=Bi(y,r);let S=m__namespace.createElement(Vte,{className:`${y}-handler-up-inner`}),E=m__namespace.createElement(Fh,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),E=typeof p.downIcon>"u"?E:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:O,status:R,isFormItemInput:M,feedbackIcon:k}=m__namespace.useContext(Ir),A=Tl(R,h),L=nr(B=>{var V;return (V=s??x)!==null&&V!==void 0?V:B}),T=m__namespace.useContext(Ur),P=l??T,_=K({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!v,[`${y}-in-form-item`]:M},jr(y,A),w),z=`${y}-group`,j=O&&m__namespace.createElement(m__namespace.Fragment,null,k),H=m__namespace.createElement(X2,Object.assign({ref:o,disabled:P,className:K(a,i,$),upHandler:S,downHandler:E,prefixCls:y,readOnly:g,controls:I,prefix:f,suffix:j,addonAfter:d&&m__namespace.createElement(Ci,null,m__namespace.createElement(Hs,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(Ci,null,m__namespace.createElement(Hs,{override:!0,status:!0},u)),classNames:{input:_},classes:{affixWrapper:K(jr(`${y}-affix-wrapper`,A,O),{[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!v},w),wrapper:K({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:P},w),group:K({[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},jr(`${y}-group-wrapper`,A,O),w)}},b));return C(H)}),Y2=q2,ine=e=>m__namespace.createElement(oh,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(q2,Object.assign({},e)));Y2._InternalPanelDoNotUseOrYouWillBeFired=ine;const Uv=Y2;var sne={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 lne=sne;var cne=function(t,n){return m__namespace.createElement(_n,Re({},t,{ref:n,icon:lne}))};const une=m__namespace.forwardRef(cne),Zd=m.createContext(null);var Q2=m__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return m__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:K(n,i&&"".concat(n,"-active"),r),ref:t},l)}),dne=["key","forceRender","style","className","destroyInactiveTabPane"];function fne(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=m__namespace.useContext(Zd),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:K("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:K("".concat(s,"-content"),"".concat(s,"-content-").concat(o),F({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,v=d.forceRender,g=d.style,h=d.className,p=d.destroyInactiveTabPane,b=tt(d,dne),y=f===n;return m__namespace.createElement(xo,Re({key:f,visible:y,forceRender:v,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,w){var x=C.style,$=C.className;return m__namespace.createElement(Q2,Re({},b,{prefixCls:u,id:t,tabKey:f,animated:c,active:y,style:X(X({},g),x),className:K(h,$),ref:w}))})})))}var mne=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=m.useState(),s=J(i,2),l=s[0],c=s[1],u=m.useRef(),d=function(g){return typeof a=="function"?a(g):typeof a=="number"?a:g};function f(){Rt.cancel(u.current);}return m.useEffect(function(){var v={};return n&&(r?(o?(v.right=n.right+n.width/2,v.transform="translateX(50%)"):(v.left=n.left+n.width/2,v.transform="translateX(-50%)"),v.width=d(n.width)):(v.top=n.top+n.height/2,v.transform="translateY(-50%)",v.height=d(n.height))),f(),u.current=Rt(function(){c(v);}),f},[n,r,o,a]),{style:l}},r1={width:0,height:0,left:0,top:0};function vne(e,t,n){return m.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||r1,i=a.left+a.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||r1;}var d=o.get(l)||X({},c);d.right=i-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function o1(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=J(r,2),a=o[1];function i(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({});}return [n.current,i]}var gne=.1,a1=.01,Nc=20,i1=Math.pow(.995,Nc);function hne(e,t){var n=m.useState(),r=J(n,2),o=r[0],a=r[1],i=m.useState(0),s=J(i,2),l=s[0],c=s[1],u=m.useState(0),d=J(u,2),f=d[0],v=d[1],g=m.useState(),h=J(g,2),p=h[0],b=h[1],y=m.useRef();function C(I){var O=I.touches[0],R=O.screenX,M=O.screenY;a({x:R,y:M}),window.clearInterval(y.current);}function w(I){if(o){I.preventDefault();var O=I.touches[0],R=O.screenX,M=O.screenY;a({x:R,y:M});var k=R-o.x,A=M-o.y;t(k,A);var L=Date.now();c(L),v(L-l),b({x:k,y:A});}}function x(){if(o&&(a(null),b(null),p)){var I=p.x/f,O=p.y/f,R=Math.abs(I),M=Math.abs(O);if(Math.max(R,M)<gne)return;var k=I,A=O;y.current=window.setInterval(function(){if(Math.abs(k)<a1&&Math.abs(A)<a1){window.clearInterval(y.current);return}k*=i1,A*=i1,t(k*Nc,A*Nc);},Nc);}}var $=m.useRef();function S(I){var O=I.deltaX,R=I.deltaY,M=0,k=Math.abs(O),A=Math.abs(R);k===A?M=$.current==="x"?O:R:k>A?(M=O,$.current="x"):(M=R,$.current="y"),t(-M,-M)&&I.preventDefault();}var E=m.useRef(null);E.current={onTouchStart:C,onTouchMove:w,onTouchEnd:x,onWheel:S},m__namespace.useEffect(function(){function I(k){E.current.onTouchStart(k);}function O(k){E.current.onTouchMove(k);}function R(k){E.current.onTouchEnd(k);}function M(k){E.current.onWheel(k);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",M),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",R);}},[]);}function Z2(e){var t=m.useState(0),n=J(t,2),r=n[0],o=n[1],a=m.useRef(0),i=m.useRef();return i.current=e,oi(function(){var s;(s=i.current)===null||s===void 0||s.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function pne(e){var t=m.useRef([]),n=m.useState({}),r=J(n,2),o=r[1],a=m.useRef(typeof e=="function"?e():e),i=Z2(function(){var l=a.current;t.current.forEach(function(c){l=c(l);}),t.current=[],a.current=l,o({});});function s(l){t.current.push(l),i();}return [a.current,s]}var s1={width:0,height:0,left:0,top:0,right:0};function bne(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,u,d,f;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,g=v,h=0;h<v;h+=1){var p=e.get(s[h].key)||s1;if(p[d]+p[u]>f+t){g=h-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var C=e.get(s[y].key)||s1;if(C[d]<f){b=y+1;break}}return b>=g?[0,0]:[b,g]},[e,t,r,o,a,f,l,s.map(function(v){return v.key}).join("_"),c])}function l1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var yne="TABS_DQ";function J2(e){return String(e).replace(/"/g,yne)}function eE(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function Cne(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:m__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const tE=m__namespace.forwardRef(Cne);var c1=m__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return ut(o)==="object"&&!m__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});function Sne(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=m.useState(!1),w=J(C,2),x=w[0],$=w[1],S=m.useState(null),E=J(S,2),I=E[0],O=E[1],R="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),k=I!==null?"".concat(R,"-").concat(I):null,A=a==null?void 0:a.dropdownAriaLabel;function L(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B});}var T=m__namespace.createElement(Vi,{onClick:function(V){var G=V.key,q=V.domEvent;p(G,q),$(!1);},prefixCls:"".concat(M,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[I],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(B){var V=B.closable,G=B.disabled,q=B.closeIcon,Y=B.key,te=B.label,W=eE(V,q,f,G);return m__namespace.createElement(Ol,{key:Y,id:"".concat(R,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:G},m__namespace.createElement("span",null,te),W&&m__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),L(U,Y);}},q||f.removeIcon||"×"))}));function P(B){for(var V=o.filter(function(W){return !W.disabled}),G=V.findIndex(function(W){return W.key===I})||0,q=V.length,Y=0;Y<q;Y+=1){G=(G+B+q)%q;var te=V[G];if(!te.disabled){O(te.key);return}}}function _(B){var V=B.which;if(!x){[ge.DOWN,ge.SPACE,ge.ENTER].includes(V)&&($(!0),B.preventDefault());return}switch(V){case ge.UP:P(-1),B.preventDefault();break;case ge.DOWN:P(1),B.preventDefault();break;case ge.ESC:$(!1);break;case ge.SPACE:case ge.ENTER:I!==null&&p(I,B);break}}m.useEffect(function(){var B=document.getElementById(k);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[I]),m.useEffect(function(){x||O(null);},[x]);var z=F({},g?"marginRight":"marginLeft",v);o.length||(z.visibility="hidden",z.order=1);var j=K(F({},"".concat(M,"-rtl"),g)),H=i?null:m__namespace.createElement(L$,{prefixCls:M,overlay:T,trigger:["hover"],visible:o.length?x:!1,transitionName:c,onVisibleChange:$,overlayClassName:K(j,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},m__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:_},l));return m__namespace.createElement("div",{className:K("".concat(n,"-nav-operations"),d),style:u,ref:t},H,m__namespace.createElement(tE,{prefixCls:n,locale:a,editable:f}))}const wne=m__namespace.memo(m__namespace.forwardRef(Sne),function(e,t){return t.tabMoving});function $ne(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,v=e.editable,g=e.onClick,h=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=eE(u,c,v,l);function C($){l||g($);}function w($){$.preventDefault(),$.stopPropagation(),v.onEdit("remove",{key:i,event:$});}var x=m__namespace.createElement("div",{key:i,"data-node-key":J2(i),className:K(b,(t={},F(t,"".concat(b,"-with-remove"),y),F(t,"".concat(b,"-active"),o),F(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:C},m__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(S){S.stopPropagation(),C(S);},onKeyDown:function(S){[ge.SPACE,ge.ENTER].includes(S.which)&&(S.preventDefault(),C(S));},onFocus:h},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(S){S.stopPropagation(),w(S);}},c||v.removeIcon||"×"));return d?d(x):x}var xne=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,o,i,a]},Ga=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return [l,c]}return [o,i]},vc=function(t,n){return t[n?0:1]};function Ene(e,t){var n,r=m__namespace.useContext(Zd),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,v=e.editable,g=e.locale,h=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,w=e.indicatorSize,x=m.useRef(),$=m.useRef(),S=m.useRef(),E=m.useRef(),I=m.useRef(),O=m.useRef(),R=m.useRef(),M=h==="top"||h==="bottom",k=o1(0,function(je,Pe){M&&C&&C({direction:je>Pe?"left":"right"});}),A=J(k,2),L=A[0],T=A[1],P=o1(0,function(je,Pe){!M&&C&&C({direction:je>Pe?"top":"bottom"});}),_=J(P,2),z=_[0],j=_[1],H=m.useState([0,0]),B=J(H,2),V=B[0],G=B[1],q=m.useState([0,0]),Y=J(q,2),te=Y[0],W=Y[1],Z=m.useState([0,0]),U=J(Z,2),ue=U[0],ie=U[1],se=m.useState([0,0]),ee=J(se,2),ce=ee[0],Q=ee[1],le=pne(new Map),he=J(le,2),ne=he[0],ae=he[1],me=vne(a,ne,te[0]),Ce=vc(V,M),ke=vc(te,M),We=vc(ue,M),Ge=vc(ce,M),Me=Ce<ke+We,Xe=Me?Ce-Ge:Ce-We,ze="".concat(o,"-nav-operations-hidden"),He=0,Ie=0;M&&d?(He=0,Ie=Math.max(0,ke-Xe)):(He=Math.min(0,Xe-ke),Ie=0);function we(je){return je<He?He:je>Ie?Ie:je}var qe=m.useRef(),nt=m.useState(),bt=J(nt,2),Ze=bt[0],Je=bt[1];function gt(){Je(Date.now());}function ht(){window.clearTimeout(qe.current);}hne(E,function(je,Pe){function Ee(Oe,Ve){Oe(function(mt){var _t=we(mt+Ve);return _t});}return Me?(M?Ee(T,je):Ee(j,Pe),ht(),gt(),!0):!1}),m.useEffect(function(){return ht(),Ze&&(qe.current=window.setTimeout(function(){Je(0);},100)),ht},[Ze]);var st=bne(me,Xe,M?L:z,ke,We,Ge,X(X({},e),{},{tabs:a})),dt=J(st,2),et=dt[0],$e=dt[1],xe=An(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Pe=me.get(je)||{width:0,height:0,left:0,right:0,top:0};if(M){var Ee=L;d?Pe.right<L?Ee=Pe.right:Pe.right+Pe.width>L+Xe&&(Ee=Pe.right+Pe.width-Xe):Pe.left<-L?Ee=-Pe.left:Pe.left+Pe.width>-L+Xe&&(Ee=-(Pe.left+Pe.width-Xe)),j(0),T(we(Ee));}else {var Oe=z;Pe.top<-z?Oe=-Pe.top:Pe.top+Pe.height>-z+Xe&&(Oe=-(Pe.top+Pe.height-Xe)),T(0),j(we(Oe));}}),_e={};h==="top"||h==="bottom"?_e[d?"marginRight":"marginLeft"]=p:_e.marginTop=p;var ve=a.map(function(je,Pe){var Ee=je.key;return m__namespace.createElement($ne,{id:l,prefixCls:o,key:Ee,tab:je,style:Pe===0?void 0:_e,closable:je.closable,editable:v,active:Ee===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(Ve){y(Ee,Ve);},onFocus:function(){xe(Ee),gt(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0);}})}),Te=function(){return ae(function(){var Pe,Ee=new Map,Oe=(Pe=I.current)===null||Pe===void 0?void 0:Pe.getBoundingClientRect();return a.forEach(function(Ve){var mt,_t=Ve.key,Mt=(mt=I.current)===null||mt===void 0?void 0:mt.querySelector('[data-node-key="'.concat(J2(_t),'"]'));if(Mt){var vn=xne(Mt,Oe),un=J(vn,4),gn=un[0],Bn=un[1],Sn=un[2],Xr=un[3];Ee.set(_t,{width:gn,height:Bn,left:Sn,top:Xr});}}),Ee})};m.useEffect(function(){Te();},[a.map(function(je){return je.key}).join("_")]);var Se=Z2(function(){var je=Ga(x),Pe=Ga($),Ee=Ga(S);G([je[0]-Pe[0]-Ee[0],je[1]-Pe[1]-Ee[1]]);var Oe=Ga(R);ie(Oe);var Ve=Ga(O);Q(Ve);var mt=Ga(I);W([mt[0]-Oe[0],mt[1]-Oe[1]]),Te();}),fe=a.slice(0,et),oe=a.slice($e+1),ye=[].concat(Ae(fe),Ae(oe)),de=me.get(u),pe=mne({activeTabOffset:de,horizontal:M,rtl:d,indicatorSize:w}),Le=pe.style;m.useEffect(function(){xe();},[u,He,Ie,l1(de),l1(me),M]),m.useEffect(function(){Se();},[d]);var Ue=!!ye.length,lt="".concat(o,"-nav-wrap"),it,Et,wt,ft;return M?d?(Et=L>0,it=L!==Ie):(it=L<0,Et=L!==He):(wt=z<0,ft=z!==He),m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{ref:$a(t,x),role:"tablist",className:K("".concat(o,"-nav"),i),style:s,onKeyDown:function(){gt();}},m__namespace.createElement(c1,{ref:$,position:"left",extra:f,prefixCls:o}),m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{className:K(lt,(n={},F(n,"".concat(lt,"-ping-left"),it),F(n,"".concat(lt,"-ping-right"),Et),F(n,"".concat(lt,"-ping-top"),wt),F(n,"".concat(lt,"-ping-bottom"),ft),n)),ref:E},m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(z,"px)"),transition:Ze?"none":void 0}},ve,m__namespace.createElement(tE,{ref:R,prefixCls:o,locale:g,editable:v,style:X(X({},ve.length===0?void 0:_e),{},{visibility:Ue?"hidden":null})}),m__namespace.createElement("div",{className:K("".concat(o,"-ink-bar"),F({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Le}))))),m__namespace.createElement(wne,Re({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:O,prefixCls:o,tabs:ye,className:!Ue&&ze,tabMoving:!!Ze})),m__namespace.createElement(c1,{ref:S,position:"right",extra:f,prefixCls:o})))}const u1=m__namespace.forwardRef(Ene);var Ine=["renderTabBar"],One=["label","key"];function Pne(e){var t=e.renderTabBar,n=tt(e,Ine),r=m__namespace.useContext(Zd),o=r.tabs;if(t){var a=X(X({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=tt(i,One);return m__namespace.createElement(Q2,Re({tab:s,key:l,tabKey:l},c))})});return t(a,u1)}return m__namespace.createElement(u1,n)}function Rne(){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=X({inkBar:!0},ut(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Mne=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],d1=0;function _ne(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,g=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,$=e.renderTabBar,S=e.onChange,E=e.onTabClick,I=e.onTabScroll,O=e.getPopupContainer,R=e.popupClassName,M=e.indicatorSize,k=tt(e,Mne),A=m__namespace.useMemo(function(){return (s||[]).filter(function(Q){return Q&&ut(Q)==="object"&&"key"in Q})},[s]),L=l==="rtl",T=Rne(f),P=m.useState(!1),_=J(P,2),z=_[0],j=_[1];m.useEffect(function(){j(gd());},[]);var H=qt(function(){var Q;return (Q=A[0])===null||Q===void 0?void 0:Q.key},{value:c,defaultValue:u}),B=J(H,2),V=B[0],G=B[1],q=m.useState(function(){return A.findIndex(function(Q){return Q.key===V})}),Y=J(q,2),te=Y[0],W=Y[1];m.useEffect(function(){var Q=A.findIndex(function(he){return he.key===V});if(Q===-1){var le;Q=Math.max(0,Math.min(te,A.length-1)),G((le=A[Q])===null||le===void 0?void 0:le.key);}W(Q);},[A.map(function(Q){return Q.key}).join("_"),V,te]);var Z=qt(null,{value:r}),U=J(Z,2),ue=U[0],ie=U[1];m.useEffect(function(){r||(ie("rc-tabs-".concat(d1)),d1+=1);},[]);function se(Q,le){E==null||E(Q,le);var he=Q!==V;G(Q),he&&(S==null||S(Q));}var ee={id:ue,activeKey:V,animated:T,tabPosition:g,rtl:L,mobile:z},ce=X(X({},ee),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:h,onTabClick:se,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:O,popupClassName:R,indicatorSize:M});return m__namespace.createElement(Zd.Provider,{value:{tabs:A,prefixCls:a}},m__namespace.createElement("div",Re({ref:t,id:r,className:K(a,"".concat(a,"-").concat(g),(n={},F(n,"".concat(a,"-mobile"),z),F(n,"".concat(a,"-editable"),d),F(n,"".concat(a,"-rtl"),L),n),i)},k),m__namespace.createElement(Pne,Re({},ce,{renderTabBar:$})),m__namespace.createElement(fne,Re({destroyInactiveTabPane:x},ee,{animated:T}))))}var Tne=m__namespace.forwardRef(_ne);const Nne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function kne(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({},Nne),{motionName:bd(e,"switch")})),n}var Ane=function(e,t){var n={};for(var r in 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 Lne(e){return e.filter(t=>t)}function Dne(e,t){if(e)return e;const n=vr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=Ane(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return Lne(n)}const zne=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}`}}}}},[Fo(e,"slide-up"),Fo(e,"slide-down")]]},jne=zne,Fne=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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}}}}}}},Bne=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Ft(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({},ma),{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"}}})}})}},Hne=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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}}}}}},Wne=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${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}}}}}},Vne=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ga(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},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},Gne=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"}}}}},Kne=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(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} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ga(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Vne(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"}}}}}},Une=Kt("Tabs",e=>{const t=St(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 [Wne(t),Gne(t),Hne(t),Bne(t),Fne(t),Kne(t),jne(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`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Xne=()=>null,qne=Xne;var Yne=function(e,t){var n={};for(var r in 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 nE=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:v,indicatorSize:g}=e,h=Yne(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=m__namespace.createElement(Mh,null)}=h,{direction:y,tabs:C,getPrefixCls:w,getPopupContainer:x}=m__namespace.useContext(rt),$=w("tabs",p),[S,E]=Une($);let I;t==="editable-card"&&(I={onEdit:(L,T)=>{let{key:P,event:_}=T;a==null||a(L==="add"?_:P,L);},removeIcon:m__namespace.createElement(Gd,null),addIcon:l||m__namespace.createElement(une,null),showAdd:i!==!0});const O=w(),R=Dne(d,u),M=kne($,f),k=nr(o),A=Object.assign(Object.assign({},C==null?void 0:C.style),v);return S(m__namespace.createElement(Tne,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},h,{items:R,className:K({[`${$}-${k}`]:k,[`${$}-card`]:["card","editable-card"].includes(t),[`${$}-editable-card`]:t==="editable-card",[`${$}-centered`]:s},C==null?void 0:C.className,n,r,E),popupClassName:K(c,E),style:A,editable:I,moreIcon:b,prefixCls:$,animated:M,indicatorSize:g??(C==null?void 0:C.indicatorSize)})))};nE.TabPane=qne;const Qne=nE;class Zne extends Error{constructor(t){super(t),this.name="TimeoutError";}}class Jne extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}}const f1=e=>globalThis.DOMException===void 0?new Jne(e):new DOMException(e),m1=e=>{const t=e.reason===void 0?f1("This operation was aborted."):e.reason;return t instanceof Error?t:f1(t)};function ere(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:f}=t;f.aborted&&u(m1(f)),f.addEventListener("abort",()=>{u(m1(f));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new Zne;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(f){u(f);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(f){u(f);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const tre=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function nre(e,t,n){let r;const o=new Promise((a,i)=>{var v;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(v=n.signal)==null||v.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=tre(e),d=(...g)=>{const h=n.multiArgs?g:g[0];n.filter&&!n.filter(h)||(l.push(h),n.count===l.length&&(r(),a(l)));},f=g=>{r(),i(g);};r=()=>{for(const g of s)u(g,d);for(const g of n.rejectionEvents)u(g,f);};for(const g of s)c(g,d);for(const g of n.rejectionEvents)c(g,f);n.signal&&n.signal.addEventListener("abort",()=>{f(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=ere(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function rre(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=nre(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var ore=Object.defineProperty,Su=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,oE=Object.prototype.propertyIsEnumerable,v1=(e,t,n)=>t in e?ore(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,are=(e,t)=>{for(var n in t||(t={}))rE.call(t,n)&&v1(e,n,t[n]);if(Su)for(var n of Su(t))oE.call(t,n)&&v1(e,n,t[n]);return e},ire=(e,t)=>{var n={};for(var r in e)rE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Su)for(var r of Su(e))t.indexOf(r)<0&&oE.call(e,r)&&(n[r]=e[r]);return n};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var pa;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const v=this.addEccAndInterleave(u);if(this.drawCodewords(v),d==-1){let g=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const p=this.getPenaltyScore();p<g&&(d=h,g=p),this.applyMask(h);}}a(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[];}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,f=-1,v=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,h;for(g=u;;g++){const C=t.getNumDataCodewords(g,c)*8,w=s.getTotalBits(l,g);if(w<=C){h=w;break}if(g>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])v&&h<=t.getNumDataCodewords(g,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(g),p);for(const w of C.getData())p.push(w);}a(p.length==h);const b=t.getNumDataCodewords(g,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.length<b;C^=253)r(C,8,p);let y=[];for(;y.length*8<p.length;)y.push(0);return p.forEach((C,w)=>y[w>>>3]|=C<<7-(w&7)),new t(g,c,y,f)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion();}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,o(d,f));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,o(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,o(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,o(d,f));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),f=this.size-11+u%3,v=Math.floor(u/3);this.setFunctionModule(f,v,d),this.setFunctionModule(v,f,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),v=l+d,g=c+u;0<=v&&v<this.size&&0<=g&&g<this.size&&this.setFunctionModule(v,g,f!=2&&f!=4);}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1);}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0;}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=t.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],f=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],v=Math.floor(t.getNumRawDataModules(c)/8),g=d-v%d,h=Math.floor(v/d);let p=[];const b=t.reedSolomonComputeDivisor(f);for(let C=0,w=0;C<d;C++){let x=l.slice(w,w+h-f+(C<g?0:1));w+=x.length;const $=t.reedSolomonComputeRemainder(x,b);C<g&&x.push(0),p.push(x.concat($));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach((w,x)=>{(C!=h-f||x>=g)&&y.push(w[C]);});return a(y.length==v),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const v=u-f,h=(u+1&2)==0?this.size-1-d:d;!this.isFunction[h][v]&&c<l.length*8&&(this.modules[h][v]=o(l[c>>>3],7-(c&7)),c++);}}a(c==l.length*8);}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u]);}}getPenaltyScore(){let l=0;for(let f=0;f<this.size;f++){let v=!1,g=0,h=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[f][p]==v?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,h),v||(l+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),v=this.modules[f][p],g=1);l+=this.finderPenaltyTerminateAndCount(v,g,h)*t.PENALTY_N3;}for(let f=0;f<this.size;f++){let v=!1,g=0,h=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][f]==v?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,h),v||(l+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),v=this.modules[p][f],g=1);l+=this.finderPenaltyTerminateAndCount(v,g,h)*t.PENALTY_N3;}for(let f=0;f<this.size-1;f++)for(let v=0;v<this.size-1;v++){const g=this.modules[f][v];g==this.modules[f][v+1]&&g==this.modules[f+1][v]&&g==this.modules[f+1][v+1]&&(l+=t.PENALTY_N2);}let c=0;for(const f of this.modules)c=f.reduce((v,g)=>v+(g?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return [];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let f=0;f<c.length;f++)c[f]=t.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((v,g)=>u[g]^=t.reedSolomonMultiply(v,f));}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return (u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1);}function o(l,c){return (l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new i(i.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);r(parseInt(l.substr(u,d),10),d*3+1,c),u+=d;}return new i(i.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!i.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),r(d,11,c);}return u<l.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new i(i.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:i.isNumeric(l)?[i.makeNumeric(l)]:i.isAlphanumeric(l)?[i.makeAlphanumeric(l)]:[i.makeBytes(i.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)r(l,8,c);else if(l<16384)r(2,2,c),r(l,14,c);else if(l<1e6)r(6,3,c),r(l,21,c);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,c)}static isNumeric(l){return i.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return i.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+d.bitData.length;}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substr(u+1,2),16)),u+=2);return c}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s;})(pa||(pa={}));(e=>{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(pa||(pa={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(pa||(pa={}));var vs=pa;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var sre={L:vs.QrCode.Ecc.LOW,M:vs.QrCode.Ecc.MEDIUM,Q:vs.QrCode.Ecc.QUARTILE,H:vs.QrCode.Ecc.HIGH},lre=128,cre="L",ure="#FFFFFF",dre="#000000",fre=!1,aE=4,mre=.1;function vre(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,s){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!i)return;a===null?n.push(`M${s+t},${o+t} h1v1H${s+t}z`):n.push(`M${a+t},${o+t} h${s+1-a}v1H${a+t}z`);return}i&&a===null&&(a=s);});}),n.join("")}function gre(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function hre(e,t,n,r){if(r==null)return null;const o=n?aE:0,a=e.length+o*2,i=Math.floor(t*mre),s=a/t,l=(r.width||i)*s,c=(r.height||i)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let v=Math.floor(u),g=Math.floor(d),h=Math.ceil(l+u-v),p=Math.ceil(c+d-g);f={x:v,y:g,w:h,h:p};}return {x:u,y:d,h:c,w:l,excavation:f}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function pre(e){const t=e,{value:n,size:r=lre,level:o=cre,bgColor:a=ure,fgColor:i=dre,includeMargin:s=fre,imageSettings:l}=t,c=ire(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=vs.QrCode.encodeText(n,sre[o]).getModules();const d=s?aE:0,f=u.length+d*2,v=hre(u,r,s,l);let g=null;l!=null&&v!=null&&(v.excavation!=null&&(u=gre(u,v.excavation)),g=m.createElement("image",{xlinkHref:l.src,height:v.h,width:v.w,x:v.x+d,y:v.y+d,preserveAspectRatio:"none"}));const h=vre(u,d);return m.createElement("svg",are({height:r,width:r,viewBox:`0 0 ${f} ${f}`},c),m.createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),m.createElement("path",{fill:i,d:h,shapeRendering:"crispEdges"}),g)}const iE=e=>{const t=rS(e,mi.appkey,mi.appsec);return new URLSearchParams({...e,sign:t})};async function bre(){const t=(await on.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",iE({appkey:mi.appkey,local_id:"0",ts:"0"}))).data;if(!Kr(t)){Ot((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function yre(e){const n=(await on.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",iE({appkey:mi.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Kr(n)){const a=n.code.toString(),i=n.message||r[a]||"未知错误";return a==="86038"?{success:!1,message:i,action:"refresh"}:a==="86039"||a==="86090"?{success:!1,message:i,action:"wait"}:{success:!1,message:i,action:void 0}}return {success:!0,accessKey:n.data.access_token,message:"获取成功"}}async function Cre(e){const n=(await on.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:zi()}))).data;if(!Kr(n)){const r=n.message||"未知错误";return Ot(r)}}const gp={show:!1,qrcode:"",auth_code:"",message:""},Xs=Jn({...gp}),Ka=Xs;function Ps(e){Pre(),Object.assign(Xs,e);}function Sre(e){Ps({...gp,...e,show:!0});}function sE(){lE.emit("hide"),Ps({...gp});}const lE=np();function wre(){return rre(lE,"hide")}async function $re(){Xs.auth_code&&await Cre(Xs.auth_code);}var xre={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},Ere={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},Ire={name:"1azakc",styles:"text-align:center"};function Ore(){const{qrcode:e,show:t,message:n}=er(Xs),r=sE,{runAsync:o,loading:a}=Gw($re,{manual:!0});return be(Td,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[be("div",{className:fr.modalHeader,children:[D("div",{className:fr.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),D("div",{className:"space",style:{flex:1}}),D(Nd,{onClick:r})]}),be("div",{className:fr.modalBody,children:[be("div",{className:"wrapper",css:Ire,children:[D("div",{css:Ere,children:n||""}),e?D(pre,{value:e,size:200}):D("div",{className:"qrcode-placeholder"})]}),D("div",{css:xre,children:D(Rd,{title:"可能会导致桌面端掉登录(不可用), 谨慎使用",children:D(Zt,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const Pre=_w(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Sa),document.body.appendChild(t),hl(t).render(D(vh,{children:D(Ore,{})}));});async function g1(){const e=await bre();if(e)return Sre({qrcode:e.url,auth_code:e.auth_code}),!0}async function Rre(){if(!await g1())return;let t,n=Ka.auth_code;function r(){if(!Ka.show||!Ka.auth_code||n!==Ka.auth_code)return !0}for(;;){if(r())return;const o=Dn(1500),a=wre();if(await Promise.race([o,a]),a.cancel(),r())return;t=await yre(Ka.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(Ps({message:l}),i)return await Dn(1e3),sE(),s;if(c==="refresh"){await Dn(2e3),await g1(),n=Ka.auth_code,Ps({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;Ps({message:l}),Ot(l);return}}}async function Mre(){const e=await Rre();if(e)return xt.accessKey=e,Ot("获取成功"),e}function _re(){xt.accessKey="",Ot("已删除 access_key");}const h1=D(Zt,{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 cE({style:e,className:t}){const{runAsync:n,loading:r}=Gw(Mre,{manual:!0}),{accessKey:o}=en();return D(Rl,{size:"small",style:e,className:t,children:o?be(It,{children:[D(Zt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})}),D(Zt,{onClick:_re,children:D("span",{children:"删除 access_key"})}),h1]}):be(It,{children:[D(Zt,{onClick:n,disabled:r,children:D("span",{children:"获取 access_key"})}),h1]})})}function Tre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(o=>o(r));},t)}const Jd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ki(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function hp(e){return "nodeType"in e}function rr(e){var t,n;return e?Ki(e)?e:hp(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function pp(e){const{Document:t}=rr(e);return e instanceof t}function jl(e){return Ki(e)?!1:e instanceof rr(e).HTMLElement}function uE(e){return e instanceof rr(e).SVGElement}function Ui(e){return e?Ki(e)?e.document:hp(e)?pp(e)?e:jl(e)||uE(e)?e.ownerDocument:document:document:document}const Hr=Jd?m.useLayoutEffect:m.useEffect;function bp(e){const t=m.useRef(e);return Hr(()=>{t.current=e;}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Nre(){const e=m.useRef(null),t=m.useCallback((r,o)=>{e.current=setInterval(r,o);},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null);},[]);return [t,n]}function qs(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return Hr(()=>{n.current!==e&&(n.current=e);},t),n}function Fl(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function wu(e){const t=bp(e),n=m.useRef(null),r=m.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o;},[]);return [n,r]}function Xv(e){const t=m.useRef();return m.useEffect(()=>{t.current=e;},[e]),t.current}let um={};function Bl(e,t){return m.useMemo(()=>{if(t)return t;const n=um[e]==null?0:um[e]+1;return um[e]=n,e+"-"+n},[e,t])}function dE(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((a,i)=>{const s=Object.entries(i);for(const[l,c]of s){const u=a[l];u!=null&&(a[l]=u+e*c);}return a},{...t})}}const di=dE(1),$u=dE(-1);function kre(e){return "clientX"in e&&"clientY"in e}function yp(e){if(!e)return !1;const{KeyboardEvent:t}=rr(e.target);return t&&e instanceof t}function Are(e){if(!e)return !1;const{TouchEvent:t}=rr(e.target);return t&&e instanceof t}function qv(e){if(Are(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return {x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return {x:t,y:n}}}return kre(e)?{x:e.clientX,y:e.clientY}:null}const Ys=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return "translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return "scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return [Ys.Translate.toString(e),Ys.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),p1="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Lre(e){return e.matches(p1)?e:e.querySelector(p1)}const Dre={display:"none"};function zre(e){let{id:t,value:n}=e;return m.createElement("div",{id:t,style:Dre},n)}function jre(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return m.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Fre(){const[e,t]=m.useState("");return {announce:m.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const fE=m.createContext(null);function Bre(e){const t=m.useContext(fE);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function Hre(){const[e]=m.useState(()=>new Set),t=m.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return [m.useCallback(r=>{let{type:o,event:a}=r;e.forEach(i=>{var s;return (s=i[o])==null?void 0:s.call(i,a)});},[e]),t]}const Wre={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},Vre={onDragStart(e){let{active:t}=e;return "Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return "Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Gre(e){let{announcements:t=Vre,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Wre}=e;const{announce:a,announcement:i}=Fre(),s=Bl("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0);},[]),Bre(m.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}));},onDragMove(d){let{active:f,over:v}=d;t.onDragMove&&a(t.onDragMove({active:f,over:v}));},onDragOver(d){let{active:f,over:v}=d;a(t.onDragOver({active:f,over:v}));},onDragEnd(d){let{active:f,over:v}=d;a(t.onDragEnd({active:f,over:v}));},onDragCancel(d){let{active:f,over:v}=d;a(t.onDragCancel({active:f,over:v}));}}),[a,t])),!l)return null;const u=m.createElement(m.Fragment,null,m.createElement(zre,{id:r,value:o.draggable}),m.createElement(jre,{id:s,announcement:i}));return n?V1.createPortal(u,n):u}var bn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable";})(bn||(bn={}));function xu(){}function Kre(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ure(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Wr=Object.freeze({x:0,y:0});function Xre(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qre(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Yre(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Qre(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function b1(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zre=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=b1(t,t.left,t.top),a=[];for(const i of r){const{id:s}=i,l=n.get(s);if(l){const c=Xre(b1(l),o);a.push({id:s,data:{droppableContainer:i,value:c}});}}return a.sort(qre)};function Jre(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,s=a-n;if(r<o&&n<a){const l=t.width*t.height,c=e.width*e.height,u=i*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const eoe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const a of r){const{id:i}=a,s=n.get(i);if(s){const l=Jre(s,t);l>0&&o.push({id:i,data:{droppableContainer:a,value:l}});}}return o.sort(Yre)};function toe(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function mE(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wr}function noe(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return o.reduce((i,s)=>({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const roe=noe(1);function ooe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return {x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return {x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function aoe(e,t,n){const r=ooe(t);if(!r)return e;const{scaleX:o,scaleY:a,x:i,y:s}=r,l=e.left-i-(1-o)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=a?e.height/a:e.height;return {width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const ioe={ignoreTransform:!1};function Xi(e,t){t===void 0&&(t=ioe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=rr(e).getComputedStyle(e);c&&(n=aoe(n,c,u));}const{top:r,left:o,width:a,height:i,bottom:s,right:l}=n;return {top:r,left:o,width:a,height:i,bottom:s,right:l}}function y1(e){return Xi(e,{ignoreTransform:!0})}function soe(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function loe(e,t){return t===void 0&&(t=rr(e).getComputedStyle(e)),t.position==="fixed"}function coe(e,t){t===void 0&&(t=rr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return ["overflow","overflowX","overflowY"].some(o=>{const a=t[o];return typeof a=="string"?n.test(a):!1})}function Cp(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(pp(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!jl(o)||uE(o)||n.includes(o))return n;const a=rr(e).getComputedStyle(o);return o!==e&&coe(o,a)&&n.push(o),loe(o,a)?n:r(o.parentNode)}return e?r(e):n}function vE(e){const[t]=Cp(e,1);return t??null}function dm(e){return !Jd||!e?null:Ki(e)?e:hp(e)?pp(e)||e===Ui(e).scrollingElement?window:jl(e)?e:null:null}function gE(e){return Ki(e)?e.scrollX:e.scrollLeft}function hE(e){return Ki(e)?e.scrollY:e.scrollTop}function Yv(e){return {x:gE(e),y:hE(e)}}var wn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(wn||(wn={}));function pE(e){return !Jd||!e?!1:e===document.scrollingElement}function bE(e){const t={x:0,y:0},n=pE(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return {isTop:o,isLeft:a,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const uoe={x:.2,y:.2};function doe(e,t,n,r,o){let{top:a,left:i,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=uoe);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=bE(e),v={x:0,y:0},g={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return !c&&a<=t.top+h.height?(v.y=wn.Backward,g.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&l>=t.bottom-h.height&&(v.y=wn.Forward,g.y=r*Math.abs((t.bottom-h.height-l)/h.height)),!f&&s>=t.right-h.width?(v.x=wn.Forward,g.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&i<=t.left+h.width&&(v.x=wn.Backward,g.x=r*Math.abs((t.left+h.width-i)/h.width)),{direction:v,speed:g}}function foe(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:i}=window;return {top:0,left:0,right:a,bottom:i,width:a,height:i}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return {top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function yE(e){return e.reduce((t,n)=>di(t,Yv(n)),Wr)}function moe(e){return e.reduce((t,n)=>t+gE(n),0)}function voe(e){return e.reduce((t,n)=>t+hE(n),0)}function goe(e,t){if(t===void 0&&(t=Xi),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);vE(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const hoe=[["x",["left","right"],moe],["y",["top","bottom"],voe]];class Sp{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Cp(n),o=yE(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,i,s]of hoe)for(const l of i)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1});}}class Rs{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return (r=this.target)==null?void 0:r.removeEventListener(...n)});},this.target=t;}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r]);}}function poe(e){const{EventTarget:t}=rr(e);return e instanceof t?e:Ui(e)}function fm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var xr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(xr||(xr={}));function C1(e){e.preventDefault();}function boe(e){e.stopPropagation();}var jt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter";})(jt||(jt={}));const CE={start:[jt.Space,jt.Enter],cancel:[jt.Esc],end:[jt.Space,jt.Enter]},yoe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case jt.Right:return {...n,x:n.x+25};case jt.Left:return {...n,x:n.x-25};case jt.Down:return {...n,y:n.y+25};case jt.Up:return {...n,y:n.y-25}}};class SE{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Rs(Ui(n)),this.windowListeners=new Rs(rr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xr.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&goe(r),n(Wr);}handleKeyDown(t){if(yp(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:a=CE,coordinateGetter:i=yoe,scrollBehavior:s="smooth"}=o,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Wr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=$u(d,u),v={x:0,y:0},{scrollableAncestors:g}=r.current;for(const h of g){const p=t.code,{isTop:b,isRight:y,isLeft:C,isBottom:w,maxScroll:x,minScroll:$}=bE(h),S=foe(h),E={x:Math.min(p===jt.Right?S.right-S.width/2:S.right,Math.max(p===jt.Right?S.left:S.left+S.width/2,d.x)),y:Math.min(p===jt.Down?S.bottom-S.height/2:S.bottom,Math.max(p===jt.Down?S.top:S.top+S.height/2,d.y))},I=p===jt.Right&&!y||p===jt.Left&&!C,O=p===jt.Down&&!w||p===jt.Up&&!b;if(I&&E.x!==d.x){const R=h.scrollLeft+f.x,M=p===jt.Right&&R<=x.x||p===jt.Left&&R>=$.x;if(M&&!f.y){h.scrollTo({left:R,behavior:s});return}M?v.x=h.scrollLeft-R:v.x=p===jt.Right?h.scrollLeft-x.x:h.scrollLeft-$.x,v.x&&h.scrollBy({left:-v.x,behavior:s});break}else if(O&&E.y!==d.y){const R=h.scrollTop+f.y,M=p===jt.Down&&R<=x.y||p===jt.Up&&R>=$.y;if(M&&!f.x){h.scrollTo({top:R,behavior:s});return}M?v.y=h.scrollTop-R:v.y=p===jt.Down?h.scrollTop-x.y:h.scrollTop-$.y,v.y&&h.scrollBy({top:-v.y,behavior:s});break}}this.handleMove(t,di($u(d,this.referenceCoordinates),v));}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n);}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n();}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}SE.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=CE,onActivation:o}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return !1}}];function S1(e){return !!(e&&"distance"in e)}function w1(e){return !!(e&&"delay"in e)}class wp{constructor(t,n,r){var o;r===void 0&&(r=poe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:i}=a;this.props=t,this.events=n,this.document=Ui(i),this.documentListeners=new Rs(this.document),this.listeners=new Rs(r),this.windowListeners=new Rs(rr(i)),this.initialCoordinates=(o=qv(a))!=null?o:Wr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.DragStart,C1),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),this.windowListeners.add(xr.ContextMenu,C1),this.documentListeners.add(xr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(w1(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(S1(n))return}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xr.Click,boe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xr.SelectionChange,this.removeTextSelection),n(t));}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:a}=this,{onMove:i,options:{activationConstraint:s}}=a;if(!o)return;const l=(n=qv(t))!=null?n:Wr,c=$u(o,l);if(!r&&s){if(S1(s)){if(s.tolerance!=null&&fm(c,s.tolerance))return this.handleCancel();if(fm(c,s.distance))return this.handleStart()}return w1(s)&&fm(c,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(l);}handleEnd(){const{onEnd:t}=this.props;this.detach(),t();}handleCancel(){const{onCancel:t}=this.props;this.detach(),t();}handleKeydown(t){t.code===jt.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const Coe={move:{name:"pointermove"},end:{name:"pointerup"}};class $p extends wp{constructor(t){const{event:n}=t,r=Ui(n.target);super(t,Coe,r);}}$p.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return !n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Soe={move:{name:"mousemove"},end:{name:"mouseup"}};var Qv;(function(e){e[e.RightClick=2]="RightClick";})(Qv||(Qv={}));class woe extends wp{constructor(t){super(t,Soe,Ui(t.event.target));}}woe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Qv.RightClick?!1:(r==null||r({event:n}),!0)}}];const mm={move:{name:"touchmove"},end:{name:"touchend"}};class $oe extends wp{constructor(t){super(t,mm);}static setup(){return window.addEventListener(mm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(mm.move.name,t);};function t(){}}}$oe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Ms;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})(Ms||(Ms={}));var Eu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(Eu||(Eu={}));function xoe(e){let{acceleration:t,activator:n=Ms.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:s=Eu.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const v=Ioe({delta:d,disabled:!a}),[g,h]=Nre(),p=m.useRef({x:0,y:0}),b=m.useRef({x:0,y:0}),y=m.useMemo(()=>{switch(n){case Ms.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Ms.DraggableRect:return o}},[n,o,l]),C=m.useRef(null),w=m.useCallback(()=>{const $=C.current;if(!$)return;const S=p.current.x*b.current.x,E=p.current.y*b.current.y;$.scrollBy(S,E);},[]),x=m.useMemo(()=>s===Eu.TreeOrder?[...c].reverse():c,[s,c]);m.useEffect(()=>{if(!a||!c.length||!y){h();return}for(const $ of x){if((r==null?void 0:r($))===!1)continue;const S=c.indexOf($),E=u[S];if(!E)continue;const{direction:I,speed:O}=doe($,E,y,t,f);for(const R of ["x","y"])v[R][I[R]]||(O[R]=0,I[R]=0);if(O.x>0||O.y>0){h(),C.current=$,g(w,i),p.current=O,b.current=I;return}}p.current={x:0,y:0},b.current={x:0,y:0},h();},[t,w,r,h,a,i,JSON.stringify(y),JSON.stringify(v),g,c,x,u,JSON.stringify(f)]);}const Eoe={x:{[wn.Backward]:!1,[wn.Forward]:!1},y:{[wn.Backward]:!1,[wn.Forward]:!1}};function Ioe(e){let{delta:t,disabled:n}=e;const r=Xv(t);return Fl(o=>{if(n||!r||!o)return Eoe;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[wn.Backward]:o.x[wn.Backward]||a.x===-1,[wn.Forward]:o.x[wn.Forward]||a.x===1},y:{[wn.Backward]:o.y[wn.Backward]||a.y===-1,[wn.Forward]:o.y[wn.Forward]||a.y===1}}},[n,t,r])}function Ooe(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Fl(o=>{var a;return t===null?null:(a=r??o)!=null?a:null},[r,t])}function Poe(e,t){return m.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,a=o.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return [...n,...a]},[]),[e,t])}var Qs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(Qs||(Qs={}));var Zv;(function(e){e.Optimized="optimized";})(Zv||(Zv={}));const $1=new Map;function Roe(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=m.useState(null),{frequency:s,measure:l,strategy:c}=o,u=m.useRef(e),d=p(),f=qs(d),v=m.useCallback(function(b){b===void 0&&(b=[]),!f.current&&i(y=>y===null?b:y.concat(b.filter(C=>!y.includes(C))));},[f]),g=m.useRef(null),h=Fl(b=>{if(d&&!n)return $1;if(!b||b===$1||u.current!==e||a!=null){const y=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){y.set(C.id,C.rect.current);continue}const w=C.node.current,x=w?new Sp(l(w),w):null;C.rect.current=x,x&&y.set(C.id,x);}return y}return b},[e,a,n,d,l]);return m.useEffect(()=>{u.current=e;},[e]),m.useEffect(()=>{d||v();},[n,d]),m.useEffect(()=>{a&&a.length>0&&i(null);},[JSON.stringify(a)]),m.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{v(),g.current=null;},s));},[s,d,v,...r]),{droppableRects:h,measureDroppableContainers:v,measuringScheduled:a!=null};function p(){switch(c){case Qs.Always:return !1;case Qs.BeforeDragging:return n;default:return !n}}}function wE(e,t){return Fl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Moe(e,t){return wE(e,t)}function _oe(e){let{callback:t,disabled:n}=e;const r=bp(t),o=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function ef(e){let{callback:t,disabled:n}=e;const r=bp(t),o=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Toe(e){return new Sp(Xi(e),e)}function x1(e,t,n){t===void 0&&(t=Toe);const[r,o]=m.useReducer(s,null),a=_oe({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),i=ef({callback:o});return Hr(()=>{o(),e?(i==null||i.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),a==null||a.disconnect());},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return (c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u}}function Noe(e){const t=wE(e);return mE(e,t)}const E1=[];function koe(e){const t=m.useRef(e),n=Fl(r=>e?r&&r!==E1&&e&&t.current&&e.parentNode===t.current.parentNode?r:Cp(e):E1,[e]);return m.useEffect(()=>{t.current=e;},[e]),n}function Aoe(e){const[t,n]=m.useState(null),r=m.useRef(e),o=m.useCallback(a=>{const i=dm(a.target);i&&n(s=>s?(s.set(i,Yv(i)),new Map(s)):null);},[]);return m.useEffect(()=>{const a=r.current;if(e!==a){i(a);const s=e.map(l=>{const c=dm(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,Yv(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e;}return ()=>{i(e),i(a);};function i(s){s.forEach(l=>{const c=dm(l);c==null||c.removeEventListener("scroll",o);});}},[o,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>di(a,i),Wr):yE(e):Wr,[e,t])}function I1(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null;},t),m.useEffect(()=>{const r=e!==Wr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?$u(e,n.current):Wr}function Loe(e){m.useEffect(()=>{if(!Jd)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return ()=>{for(const n of t)n==null||n();}},e.map(t=>{let{sensor:n}=t;return n}));}function Doe(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:a}=r;return n[o]=i=>{a(i,t);},n},{}),[e,t])}function $E(e){return m.useMemo(()=>e?soe(e):null,[e])}const vm=[];function zoe(e,t){t===void 0&&(t=Xi);const[n]=e,r=$E(n?rr(n):null),[o,a]=m.useReducer(s,vm),i=ef({callback:a});return e.length>0&&o===vm&&a(),Hr(()=>{e.length?e.forEach(l=>i==null?void 0:i.observe(l)):(i==null||i.disconnect(),a());},[e]),o;function s(){return e.length?e.map(l=>pE(l)?r:new Sp(t(l),l)):vm}}function joe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return jl(t)?t:e}function Foe(e){let{measure:t}=e;const[n,r]=m.useState(null),o=m.useCallback(c=>{for(const{target:u}of c)if(jl(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=ef({callback:o}),i=m.useCallback(c=>{const u=joe(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null);},[t,a]),[s,l]=wu(i);return m.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const Boe=[{sensor:$p,options:{}},{sensor:SE,options:{}}],Hoe={current:{}},kc={draggable:{measure:y1},droppable:{measure:y1,strategy:Qs.WhileDragging,frequency:Zv.Optimized},dragOverlay:{measure:Xi}};class _s extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return !n})}getNodeFor(t){var n,r;return (n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Woe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _s,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:xu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:kc,measureDroppableContainers:xu,windowRect:null,measuringScheduled:!1},Voe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:xu,draggableNodes:new Map,over:null,measureDroppableContainers:xu},tf=m.createContext(Voe),xE=m.createContext(Woe);function Goe(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _s}}}function Koe(e,t){switch(t.type){case bn.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case bn.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case bn.DragEnd:case bn.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case bn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new _s(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case bn.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new _s(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case bn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new _s(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Uoe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=m.useContext(tf),a=Xv(r),i=Xv(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&a&&i!=null){if(!yp(a)||document.activeElement===a.target)return;const s=o.get(i);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of [l.current,c.current]){if(!u)continue;const d=Lre(u);if(d){d.focus();break}}});}},[r,t,o,i,a]),null}function Xoe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...r}),n):n}function qoe(e){return m.useMemo(()=>({draggable:{...kc.draggable,...e==null?void 0:e.draggable},droppable:{...kc.droppable,...e==null?void 0:e.droppable},dragOverlay:{...kc.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Yoe(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=m.useRef(!1),{x:i,y:s}=typeof o=="boolean"?{x:o,y:o}:o;Hr(()=>{if(!i&&!s||!t){a.current=!1;return}if(a.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=mE(u,r);if(i||(d.x=0),s||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vE(c);f&&f.scrollBy({top:d.y,left:d.x});}},[t,i,s,r,n]);}const EE=m.createContext({...Wr,scaleX:1,scaleY:1});var Mo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Mo||(Mo={}));const Qoe=m.memo(function(t){var n,r,o,a;let{id:i,accessibility:s,autoScroll:l=!0,children:c,sensors:u=Boe,collisionDetection:d=eoe,measuring:f,modifiers:v,...g}=t;const h=m.useReducer(Koe,void 0,Goe),[p,b]=h,[y,C]=Hre(),[w,x]=m.useState(Mo.Uninitialized),$=w===Mo.Initialized,{draggable:{active:S,nodes:E,translate:I},droppable:{containers:O}}=p,R=S?E.get(S):null,M=m.useRef({initial:null,translated:null}),k=m.useMemo(()=>{var et;return S!=null?{id:S,data:(et=R==null?void 0:R.data)!=null?et:Hoe,rect:M}:null},[S,R]),A=m.useRef(null),[L,T]=m.useState(null),[P,_]=m.useState(null),z=qs(g,Object.values(g)),j=Bl("DndDescribedBy",i),H=m.useMemo(()=>O.getEnabled(),[O]),B=qoe(f),{droppableRects:V,measureDroppableContainers:G,measuringScheduled:q}=Roe(H,{dragging:$,dependencies:[I.x,I.y],config:B.droppable}),Y=Ooe(E,S),te=m.useMemo(()=>P?qv(P):null,[P]),W=dt(),Z=Moe(Y,B.draggable.measure);Yoe({activeNode:S?E.get(S):null,config:W.layoutShiftCompensation,initialRect:Z,measure:B.draggable.measure});const U=x1(Y,B.draggable.measure,Z),ue=x1(Y?Y.parentElement:null),ie=m.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=O.getNodeFor((n=ie.current.over)==null?void 0:n.id),ee=Foe({measure:B.dragOverlay.measure}),ce=(r=ee.nodeRef.current)!=null?r:Y,Q=$?(o=ee.rect)!=null?o:U:null,le=!!(ee.nodeRef.current&&ee.rect),he=Noe(le?null:U),ne=$E(ce?rr(ce):null),ae=koe($?se??Y:null),me=zoe(ae),Ce=Xoe(v,{transform:{x:I.x-he.x,y:I.y-he.y,scaleX:1,scaleY:1},activatorEvent:P,active:k,activeNodeRect:U,containerNodeRect:ue,draggingNodeRect:Q,over:ie.current.over,overlayNodeRect:ee.rect,scrollableAncestors:ae,scrollableAncestorRects:me,windowRect:ne}),ke=te?di(te,I):null,We=Aoe(ae),Ge=I1(We),Me=I1(We,[U]),Xe=di(Ce,Ge),ze=Q?roe(Q,Ce):null,He=k&&ze?d({active:k,collisionRect:ze,droppableRects:V,droppableContainers:H,pointerCoordinates:ke}):null,Ie=Qre(He,"id"),[we,qe]=m.useState(null),nt=le?Ce:di(Ce,Me),bt=toe(nt,(a=we==null?void 0:we.rect)!=null?a:null,U),Ze=m.useCallback((et,$e)=>{let{sensor:xe,options:_e}=$e;if(A.current==null)return;const ve=E.get(A.current);if(!ve)return;const Te=et.nativeEvent,Se=new xe({active:A.current,activeNode:ve,event:Te,options:_e,context:ie,onStart(oe){const ye=A.current;if(ye==null)return;const de=E.get(ye);if(!de)return;const{onDragStart:pe}=z.current,Le={active:{id:ye,data:de.data,rect:M}};V1.unstable_batchedUpdates(()=>{pe==null||pe(Le),x(Mo.Initializing),b({type:bn.DragStart,initialCoordinates:oe,active:ye}),y({type:"onDragStart",event:Le});});},onMove(oe){b({type:bn.DragMove,coordinates:oe});},onEnd:fe(bn.DragEnd),onCancel:fe(bn.DragCancel)});V1.unstable_batchedUpdates(()=>{T(Se),_(et.nativeEvent);});function fe(oe){return async function(){const{active:de,collisions:pe,over:Le,scrollAdjustedTranslate:Ue}=ie.current;let lt=null;if(de&&Ue){const{cancelDrop:it}=z.current;lt={activatorEvent:Te,active:de,collisions:pe,delta:Ue,over:Le},oe===bn.DragEnd&&typeof it=="function"&&await Promise.resolve(it(lt))&&(oe=bn.DragCancel);}A.current=null,V1.unstable_batchedUpdates(()=>{b({type:oe}),x(Mo.Uninitialized),qe(null),T(null),_(null);const it=oe===bn.DragEnd?"onDragEnd":"onDragCancel";if(lt){const Et=z.current[it];Et==null||Et(lt),y({type:it,event:lt});}});}}},[E]),Je=m.useCallback((et,$e)=>(xe,_e)=>{const ve=xe.nativeEvent,Te=E.get(_e);if(A.current!==null||!Te||ve.dndKit||ve.defaultPrevented)return;const Se={active:Te};et(xe,$e.options,Se)===!0&&(ve.dndKit={capturedBy:$e.sensor},A.current=_e,Ze(xe,$e));},[E,Ze]),gt=Poe(u,Je);Loe(u),Hr(()=>{U&&w===Mo.Initializing&&x(Mo.Initialized);},[U,w]),m.useEffect(()=>{const{onDragMove:et}=z.current,{active:$e,activatorEvent:xe,collisions:_e,over:ve}=ie.current;if(!$e||!xe)return;const Te={active:$e,activatorEvent:xe,collisions:_e,delta:{x:Xe.x,y:Xe.y},over:ve};V1.unstable_batchedUpdates(()=>{et==null||et(Te),y({type:"onDragMove",event:Te});});},[Xe.x,Xe.y]),m.useEffect(()=>{const{active:et,activatorEvent:$e,collisions:xe,droppableContainers:_e,scrollAdjustedTranslate:ve}=ie.current;if(!et||A.current==null||!$e||!ve)return;const{onDragOver:Te}=z.current,Se=_e.get(Ie),fe=Se&&Se.rect.current?{id:Se.id,rect:Se.rect.current,data:Se.data,disabled:Se.disabled}:null,oe={active:et,activatorEvent:$e,collisions:xe,delta:{x:ve.x,y:ve.y},over:fe};V1.unstable_batchedUpdates(()=>{qe(fe),Te==null||Te(oe),y({type:"onDragOver",event:oe});});},[Ie]),Hr(()=>{ie.current={activatorEvent:P,active:k,activeNode:Y,collisionRect:ze,collisions:He,droppableRects:V,draggableNodes:E,draggingNode:ce,draggingNodeRect:Q,droppableContainers:O,over:we,scrollableAncestors:ae,scrollAdjustedTranslate:Xe},M.current={initial:Q,translated:ze};},[k,Y,He,ze,E,ce,Q,V,O,we,ae,Xe]),xoe({...W,delta:I,draggingRect:ze,pointerCoordinates:ke,scrollableAncestors:ae,scrollableAncestorRects:me});const ht=m.useMemo(()=>({active:k,activeNode:Y,activeNodeRect:U,activatorEvent:P,collisions:He,containerNodeRect:ue,dragOverlay:ee,draggableNodes:E,droppableContainers:O,droppableRects:V,over:we,measureDroppableContainers:G,scrollableAncestors:ae,scrollableAncestorRects:me,measuringConfiguration:B,measuringScheduled:q,windowRect:ne}),[k,Y,U,P,He,ue,ee,E,O,V,we,G,ae,me,B,q,ne]),st=m.useMemo(()=>({activatorEvent:P,activators:gt,active:k,activeNodeRect:U,ariaDescribedById:{draggable:j},dispatch:b,draggableNodes:E,over:we,measureDroppableContainers:G}),[P,gt,k,U,b,j,E,we,G]);return m.createElement(fE.Provider,{value:C},m.createElement(tf.Provider,{value:st},m.createElement(xE.Provider,{value:ht},m.createElement(EE.Provider,{value:bt},c)),m.createElement(Uoe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),m.createElement(Gre,{...s,hiddenTextDescribedById:j}));function dt(){const et=(L==null?void 0:L.autoScrollEnabled)===!1,$e=typeof l=="object"?l.enabled===!1:l===!1,xe=$&&!et&&!$e;return typeof l=="object"?{...l,enabled:xe}:{enabled:xe}}}),Zoe=m.createContext(null),O1="button",Joe="Droppable";function eae(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=Bl(Joe),{activators:i,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext(tf),{role:v=O1,roleDescription:g="draggable",tabIndex:h=0}=o??{},p=(l==null?void 0:l.id)===t,b=m.useContext(p?EE:Zoe),[y,C]=wu(),[w,x]=wu(),$=Doe(i,t),S=qs(n);Hr(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:w,data:S}),()=>{const I=d.get(t);I&&I.key===a&&d.delete(t);}),[d,t]);const E=m.useMemo(()=>({role:v,tabIndex:h,"aria-disabled":r,"aria-pressed":p&&v===O1?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,v,h,p,g,u.draggable]);return {active:l,activatorEvent:s,activeNodeRect:c,attributes:E,isDragging:p,listeners:r?void 0:$,node:y,over:f,setNodeRef:C,setActivatorNodeRef:x,transform:b}}function tae(){return m.useContext(xE)}const nae="Droppable",rae={timeout:25};function oae(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=Bl(nae),{active:i,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext(tf),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),v=m.useRef(null),{disabled:g,updateMeasurementsFor:h,timeout:p}={...rae,...o},b=qs(h??r),y=m.useCallback(()=>{if(!d.current){d.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),v.current=null;},p);},[p]),C=ef({callback:y,disabled:g||!i}),w=m.useCallback((E,I)=>{C&&(I&&(C.unobserve(I),d.current=!1),E&&C.observe(E));},[C]),[x,$]=wu(w),S=qs(t);return m.useEffect(()=>{!C||!x.current||(C.disconnect(),d.current=!1,C.observe(x.current));},[x,C]),Hr(()=>(s({type:bn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:S}}),()=>s({type:bn.UnregisterDroppable,key:a,id:r})),[r]),m.useEffect(()=>{n!==u.current.disabled&&(s({type:bn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n);},[r,a,n,s]),{active:i,rect:f,isOver:(l==null?void 0:l.id)===r,node:x,over:l,setNodeRef:$}}function aae(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const iae=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:aae(r,n,t)},sae=e=>{let{transform:t}=e;return {...t,x:0}};function IE(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function lae(e,t){return e.reduce((n,r,o)=>{const a=t.get(r);return a&&(n[o]=a),n},Array(e.length))}function gc(e){return e!==null&&e>=0}function cae(e,t){if(e===t)return !0;if(e.length!==t.length)return !1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}function uae(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const OE=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=IE(t,r,n),i=t[o],s=a[o];return !s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},hc={scaleX:1,scaleY:1},dae=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:a,overIndex:i}=e;const s=(t=a[n])!=null?t:r;if(!s)return null;if(o===n){const c=a[i];return c?{x:0,y:n<i?c.top+c.height-(s.top+s.height):c.top-s.top,...hc}:null}const l=fae(a,o,n);return o>n&&o<=i?{x:0,y:-s.height-l,...hc}:o<n&&o>=i?{x:0,y:s.height+l,...hc}:{x:0,y:0,...hc}};function fae(e,t,n){const r=e[t],o=e[t-1],a=e[t+1];return r?n<t?o?r.top-(o.top+o.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const PE="Sortable",RE=m.createContext({activeIndex:-1,containerId:PE,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:OE,disabled:{draggable:!1,droppable:!1}});function mae(e){let{children:t,id:n,items:r,strategy:o=OE,disabled:a=!1}=e;const{active:i,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=tae(),d=Bl(PE,n),f=s.rect!==null,v=m.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=i!=null,h=i?v.indexOf(i.id):-1,p=c?v.indexOf(c.id):-1,b=m.useRef(v),y=!cae(v,b.current),C=p!==-1&&h===-1||y,w=uae(a);Hr(()=>{y&&g&&u(v);},[y,v,g,u]),m.useEffect(()=>{b.current=v;},[v]);const x=m.useMemo(()=>({activeIndex:h,containerId:d,disabled:w,disableTransforms:C,items:v,overIndex:p,useDragOverlay:f,sortedRects:lae(v,l),strategy:o}),[h,d,w.draggable,w.droppable,C,v,p,l,f,o]);return m.createElement(RE.Provider,{value:x},t)}const vae=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return IE(n,r,o).indexOf(t)},gae=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:a,newIndex:i,previousItems:s,previousContainerId:l,transition:c}=e;return !c||!r||s!==a&&o===i?!1:n?!0:i!==o&&t===l},hae={duration:200,easing:"ease"},ME="transform",pae=Ys.Transition.toString({property:ME,duration:0,easing:"linear"}),bae={roleDescription:"sortable"};function yae(e){let{disabled:t,index:n,node:r,rect:o}=e;const[a,i]=m.useState(null),s=m.useRef(n);return Hr(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=Xi(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&i(u);}}n!==s.current&&(s.current=n);},[t,n,r,o]),m.useEffect(()=>{a&&i(null);},[a]),a}function Cae(e){let{animateLayoutChanges:t=gae,attributes:n,disabled:r,data:o,getNewIndex:a=vae,id:i,strategy:s,resizeObserverConfig:l,transition:c=hae}=e;const{items:u,containerId:d,activeIndex:f,disabled:v,disableTransforms:g,sortedRects:h,overIndex:p,useDragOverlay:b,strategy:y}=m.useContext(RE),C=Sae(r,v),w=u.indexOf(i),x=m.useMemo(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),$=m.useMemo(()=>u.slice(u.indexOf(i)),[u,i]),{rect:S,node:E,isOver:I,setNodeRef:O}=oae({id:i,data:x,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:R,activatorEvent:M,activeNodeRect:k,attributes:A,setNodeRef:L,listeners:T,isDragging:P,over:_,setActivatorNodeRef:z,transform:j}=eae({id:i,data:x,attributes:{...bae,...n},disabled:C.draggable}),H=Tre(O,L),B=!!R,V=B&&!g&&gc(f)&&gc(p),G=!b&&P,q=G&&V?j:null,te=V?q??(s??y)({rects:h,activeNodeRect:k,activeIndex:f,overIndex:p,index:w}):null,W=gc(f)&&gc(p)?a({id:i,items:u,activeIndex:f,overIndex:p}):w,Z=R==null?void 0:R.id,U=m.useRef({activeId:Z,items:u,newIndex:W,containerId:d}),ue=u!==U.current.items,ie=t({active:R,containerId:d,isDragging:P,isSorting:B,id:i,index:w,items:u,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:c,wasDragging:U.current.activeId!=null}),se=yae({disabled:!ie,index:w,node:E,rect:S});return m.useEffect(()=>{B&&U.current.newIndex!==W&&(U.current.newIndex=W),d!==U.current.containerId&&(U.current.containerId=d),u!==U.current.items&&(U.current.items=u);},[B,W,d,u]),m.useEffect(()=>{if(Z===U.current.activeId)return;if(Z&&!U.current.activeId){U.current.activeId=Z;return}const ce=setTimeout(()=>{U.current.activeId=Z;},50);return ()=>clearTimeout(ce)},[Z]),{active:R,activeIndex:f,attributes:A,data:x,rect:S,index:w,newIndex:W,items:u,isOver:I,isSorting:B,isDragging:P,listeners:T,node:E,overIndex:p,over:_,setNodeRef:H,setActivatorNodeRef:z,setDroppableNodeRef:O,setDraggableNodeRef:L,transform:se??te,transition:ee()};function ee(){if(se||ue&&U.current.newIndex===w)return pae;if(!(G&&!yp(M)||!c)&&(B||ie))return Ys.Transition.toString({...c,property:ME})}}function Sae(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}jt.Down,jt.Right,jt.Up,jt.Left;const wae="_config-icon_1xtyf_1",$ae="_settings-group_1xtyf_6",xae="_settings-group-title_1xtyf_9",Eae="_settings-group-sub-title_1xtyf_14",Iae="_settings-group-content_1xtyf_20",Oae="_row_1xtyf_26",Pae="_check_1xtyf_34",Rae="_setting-tabs_1xtyf_39",Mae="_tab-pane_1xtyf_42",Ye={configIcon:wae,settingsGroup:$ae,settingsGroupTitle:xae,settingsGroupSubTitle:Eae,settingsGroupContent:Iae,row:Oae,check:Pae,settingTabs:Rae,tabPane:Mae},_ae=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},Ft(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,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:`${i*100}%`},"&::after":{width:`${100-i*100}%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`${100-i*100}%`},"&::after":{width:`${i*100}%`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-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}}})}},Tae=Kt("Divider",e=>{const t=St(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [_ae(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var Nae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 kae=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(rt),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:v}=e,g=Nae(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),h=t("divider",o),[p,b]=Tae(h),y=i.length>0?`-${i}`:i,C=!!u,w=i==="left"&&s!=null,x=i==="right"&&s!=null,$=K(h,r==null?void 0:r.className,b,`${h}-${a}`,{[`${h}-with-text`]:C,[`${h}-with-text${y}`]:C,[`${h}-dashed`]:!!d,[`${h}-plain`]:!!f,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:w,[`${h}-no-default-orientation-margin-right`]:x},l,c),S=m__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),E=Object.assign(Object.assign({},w&&{marginLeft:S}),x&&{marginRight:S});return p(m__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)},g,{role:"separator"}),u&&a!=="vertical"&&m__namespace.createElement("span",{className:`${h}-inner-text`,style:E},u)))},Aae=kae;var Lae=["b"],Dae=["v"],gm=function(t){return Math.round(Number(t||0))},zae=function(t){if(t&&ut(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=tt(n,Lae);return X(X({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Iu=function(e){Vo(n,e);var t=Go(n);function n(r){return In(this,n),t.call(this,zae(r))}return On(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=gm(o.s*100),i=gm(o.b*100),s=gm(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();ut(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=tt(a,Dae);return X(X({},i),{},{b:o.v})}}]),n}(Jt),jae="rc-color-picker",zo=function(t){return t instanceof Iu?t:new Iu(t)},Fae=zo("#1677ff"),_E=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,f=u.height,v=d/2,g=f/2,h=(n.x+v)/l,p=1-(n.y+g)/c,b=a.toHsb(),y=h,C=(n.x+v)/l*360;if(i)switch(i){case"hue":return zo(X(X({},b),{},{h:C<=0?0:C}));case"alpha":return zo(X(X({},b),{},{a:y<=0?0:y}))}return zo({h:b.h,s:h<=0?0:h,b:p>=1?1:p,a:b.a})},TE=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,f=u/2,v=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:v.h/360*i-d,y:-f/3};case"alpha":return {x:v.a/1*i-d,y:-f/3}}return {x:v.s*i-d,y:(1-v.b)*s-f}}},xp=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:K(s,o),style:a,onClick:i},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Bae(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 NE(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=m.useState(t||{x:0,y:0}),d=J(u,2),f=d[0],v=d[1],g=m.useRef(null),h=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var x=s==null?void 0:s(r);x&&v(x);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null;}},[]);var b=function($){var S=Bae($),E=S.pageX,I=S.pageY,O=r.current.getBoundingClientRect(),R=O.x,M=O.y,k=O.width,A=O.height,L=n.current.getBoundingClientRect(),T=L.width,P=L.height,_=T/2,z=P/2,j=Math.max(0,Math.min(E-R,k))-_,H=Math.max(0,Math.min(I-M,A))-z,B={x:j,y:o==="x"?f.y:H};if(T===0&&P===0||T!==P)return !1;v(B),a==null||a(B);},y=function($){$.preventDefault(),b($);},C=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,i==null||i();},w=function($){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!c&&(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),g.current=y,h.current=C);};return [f,w]}var kE=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return m.createElement("div",{className:K("".concat(a,"-handler"),F({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},AE=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:X({position:"relative"},r)},n)},LE=m.forwardRef(function(e,t){var n=e.children,r=e.offset;return m.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Hae=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=NE({color:n,containerRef:s,targetRef:l,calculate:function(h){return TE(h,l,n)},onDragChange:function(h){var p=_E({offset:h,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=J(u,2),f=d[0],v=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:v,onTouchStart:v},m.createElement(AE,{prefixCls:o},m.createElement(LE,{offset:f,ref:l},m.createElement(kE,{color:n.toRgbString(),prefixCls:o})),m.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))"}})))},Wae=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=m.useMemo(function(){return n.map(function(c,u){var d=zo(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},P1=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,f=m.useRef(),v=m.useRef(),g=m.useRef(i),h=NE({color:i,targetRef:v,containerRef:f,calculate:function(w){return TE(w,v,i,a)},onDragChange:function(w){var x=_E({offset:w,targetRef:v,containerRef:f,color:i,type:a});g.current=x,l(x);},onDragChangeComplete:function(){c==null||c(g.current,a);},direction:"x",disabledDrag:u}),p=J(h,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:K("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},m.createElement(AE,{prefixCls:d},m.createElement(LE,{offset:b,ref:v},m.createElement(kE,{size:"small",color:s,prefixCls:d})),m.createElement(Wae,{colors:n,direction:r,type:a,prefixCls:d})))};function R1(e){return e!==void 0}var Vae=function(t,n){var r=n.defaultValue,o=n.value,a=m.useState(function(){var c;return R1(o)?c=o:R1(r)?c=r:c=t,zo(c)}),i=J(a,2),s=i[0],l=i[1];return m.useEffect(function(){o&&l(zo(o));},[o]),[s,l]},Gae=["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 Kae=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?jae:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,v=e.disabled,g=v===void 0?!1:v,h=Vae(Fae,{value:n,defaultValue:r}),p=J(h,2),b=p[0],y=p[1],C=m.useMemo(function(){var E=zo(b.toRgbString());return E.setAlpha(1),E.toRgbString()},[b]),w=K("".concat(a,"-panel"),l,F({},"".concat(a,"-panel-disabled"),g)),x={prefixCls:a,onChangeComplete:s,disabled:g},$=function(I,O){n||y(I),i==null||i(I,O);},S=m.createElement(m.Fragment,null,m.createElement(Hae,Re({color:b,onChange:$},x)),m.createElement("div",{className:"".concat(a,"-slider-container")},m.createElement("div",{className:K("".concat(a,"-slider-group"),F({},"".concat(a,"-slider-group-disabled-alpha"),f))},m.createElement(P1,Re({gradientColors:Gae,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return $(I,"hue")}},x)),!f&&m.createElement(P1,Re({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return $(I,"alpha")}},x))),m.createElement(xp,{color:b.toRgbString(),prefixCls:a})));return m.createElement("div",{className:w,style:c,ref:t},typeof u=="function"?u(S):S)}),DE=m.createContext({}),zE=m.createContext({}),{Provider:Uae}=DE,{Provider:Xae}=zE,Ac=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",qae=(e,t)=>e?Ac(e,t):"";let M1=function(){function e(t){In(this,e),this.metaColor=new Iu(t),t||this.metaColor.setAlpha(0);}return On(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qae(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 Yae="ant-color-picker",jn=e=>e instanceof M1?e:new M1(e),Lc=e=>Math.round(Number(e||0)),Ou=e=>Lc(e.toHsb().a*100),hm=(e,t)=>{const n=e.toHsb();return n.a=t||1,jn(n)},Qae=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const s=jn(i);o==null||o(s);}};return m.createElement("div",{className:`${t}-clear`,onClick:a})},jE=Qae;var po;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(po||(po={}));const Zae=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const l=`${t}-steppers`,[c,u]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(Uv,{className:K(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},da=Zae,Jae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=m.useState(jn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=jn(c);n||i(u),r==null||r(u);};return m.createElement(da,{value:Ou(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},eie=Jae,tie=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,_1=e=>tie.test(`#${e}`),nie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();_1(l)&&n&&i(Ac(l));},[n]);const s=l=>{const c=l.target.value;i(Ac(c)),_1(Ac(c,!0))&&(r==null||r(jn(c)));};return m.createElement(Yx,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},rie=nie,oie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=m.useState(jn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=jn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(da,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Lc(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(da,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Lc(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(da,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Lc(l||0)}%`,onChange:l=>s(Number(l),"b")}))},aie=oie,iie=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=m.useState(jn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=jn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(da,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(da,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(da,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},sie=iie,lie=[po.hex,po.hsb,po.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),cie=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=qt(po.hex,{value:n,onChange:a}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(s){case po.hsb:return m.createElement(aie,Object.assign({},f));case po.rgb:return m.createElement(sie,Object.assign({},f));case po.hex:default:return m.createElement(rie,Object.assign({},f))}},[s,t,r,i]);return m.createElement("div",{className:`${c}-container`},m.createElement(Nl,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:lie}),m.createElement("div",{className:c},d),!o&&m.createElement(eie,{prefixCls:t,value:r,onChange:i}))},uie=cie;var die=function(e,t){var n={};for(var r in 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 fie=()=>{const e=m.useContext(DE),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=die(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(jE,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),m.createElement(Kae,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),m.createElement(uie,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},T1=fie;var FE=m.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=m.useState(l||o),d=J(u,2),f=d[0],v=d[1];return m.useEffect(function(){(o||l)&&v(!0);},[o,l]),f?m.createElement("div",{ref:t,className:K("".concat(r,"-content"),(n={},F(n,"".concat(r,"-content-active"),l),F(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});FE.displayName="PanelContent";var mie=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],BE=m.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,v=e.accordion,g=e.panelKey,h=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,w=e.children,x=tt(e,mie),$=f==="disabled",S=f==="header",E=f==="icon",I=h!=null&&typeof h!="boolean",O=function(){l==null||l(g);},R=function(P){(P.key==="Enter"||P.keyCode===ge.ENTER||P.which===ge.ENTER)&&O();},M=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});M&&(M=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},M));var k=K((n={},F(n,"".concat(d,"-item"),!0),F(n,"".concat(d,"-item-active"),s),F(n,"".concat(d,"-item-disabled"),$),n),u),A=K(i,(r={},F(r,"".concat(d,"-header"),!0),F(r,"".concat(d,"-header-collapsible-only"),S),F(r,"".concat(d,"-icon-collapsible-only"),E),r)),L={className:A,"aria-expanded":s,"aria-disabled":$,onKeyDown:R};return !S&&!E&&(L.onClick=O,L.role=v?"tab":"button",L.tabIndex=$?-1:0),m.createElement("div",Re({},x,{ref:t,className:k}),m.createElement("div",L,a&&M,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?O:void 0},p),I&&m.createElement("div",{className:"".concat(d,"-extra")},h)),m.createElement(xo,Re({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(T,P){var _=T.className,z=T.style;return m.createElement(FE,{ref:P,prefixCls:d,className:_,style:z,isActive:s,forceRender:c,role:v?"tabpanel":void 0},w)}))}),vie=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],gie=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,f){var v=d.children,g=d.label,h=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=tt(d,vie),w=String(h??f),x=p??a,$=y??i,S=function(O){x!=="disabled"&&(s(O),b==null||b(O));},E=!1;return o?E=l[0]===w:E=l.indexOf(w)>-1,m.createElement(BE,Re({},C,{prefixCls:r,key:w,panelKey:w,isActive:E,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:x,onItemClick:S,destroyInactivePanel:$}),v)})},hie=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,f=t.key||String(n),v=t.props,g=v.header,h=v.headerClass,p=v.destroyInactivePanel,b=v.collapsible,y=v.onItemClick,C=!1;a?C=c[0]===f:C=c.indexOf(f)>-1;var w=b??i,x=function(E){w!=="disabled"&&(l(E),y==null||y(E));},$={key:f,panelKey:f,header:g,headerClass:h,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:w};return typeof t.type=="string"?t:(Object.keys($).forEach(function(S){typeof $[S]>"u"&&delete $[S];}),m.cloneElement(t,$))};function pie(e,t,n){return Array.isArray(e)?gie(e,n):vr(t).map(function(r,o){return hie(r,o,n)})}function bie(e){var t=e;if(!Array.isArray(t)){var n=ut(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var yie=m.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,v=e.activeKey,g=e.defaultActiveKey,h=e.onChange,p=e.items,b=K(r,l),y=qt([],{value:v,onChange:function(I){return h==null?void 0:h(I)},defaultValue:g,postState:bie}),C=J(y,2),w=C[0],x=C[1],$=function(I){return x(function(){if(s)return w[0]===I?[]:[I];var O=w.indexOf(I),R=O>-1;return R?w.filter(function(M){return M!==I}):[].concat(Ae(w),[I])})};$n(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=pie(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:$,activeKey:w});return m.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const Ep=Object.assign(yie,{Panel:BE});Ep.Panel;const Cie=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(rt),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=K({[`${i}-no-arrow`]:!a},o);return m__namespace.createElement(Ep.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),Sie=Cie,wie=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:v,colorTextDisabled:g,fontSize:h,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:w,paddingXS:x,motionDurationSlow:$,fontSizeIcon:S,contentPadding:E}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Ft(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:v,lineHeight:b,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},xa()),{fontSize:S,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:C-x}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},$ie=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},xie=e=>{const{componentCls:t,headerBg: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}}}},Eie=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}}}}}},Iie=Kt("Collapse",e=>{const t=St(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [wie(t),xie(t),Eie(t),$ie(t),Ow(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),Oie=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(rt),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:v,expandIcon:g}=e,h=nr(I=>{var O;return (O=d??I)!==null&&O!==void 0?O:"middle"}),p=n("collapse",a),b=n(),[y,C]=Iie(p),w=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),x=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const O=g?g(I):m__namespace.createElement(Ei,{rotate:I.isActive?90:void 0});return Un(O,()=>({className:K(O.props.className,`${p}-arrow`)}))},$=K(`${p}-icon-position-${w}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${h}`]:h!=="middle"},o==null?void 0:o.className,i,s,C),S=Object.assign(Object.assign({},fw(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),E=m__namespace.useMemo(()=>v?vr(v).map((I,O)=>{var R,M;if(!((R=I.props)===null||R===void 0)&&R.disabled){const k=(M=I.key)!==null&&M!==void 0?M:String(O),{disabled:A,collapsible:L}=I.props,T=Object.assign(Object.assign({},Fn(I.props,["disabled"])),{key:k,collapsible:L??(A?"disabled":void 0)});return Un(I,T)}return I}):null,[v]);return y(m__namespace.createElement(Ep,Object.assign({ref:t,openMotion:S},Fn(e,["rootClassName"]),{expandIcon:x,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),E))}),Pie=Object.assign(Oie,{Panel:Sie}),pm=e=>e.map(t=>(t.colors=t.colors.map(jn),t)),Rie=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Iu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},N1=e=>{let{label:t}=e;return `panel-${t}`},Mie=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=ji("ColorPicker"),[,i]=tr(),[s]=qt(pm(n),{value:pm(n),postState:pm}),l=`${t}-presets`,c=m.useMemo(()=>s.reduce((f,v)=>{const{defaultOpen:g=!0}=v;return g&&f.push(N1(v)),f},[]),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var v;return {key:N1(f),label:m.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((v=f.colors)===null||v===void 0?void 0:v.length)>0?f.colors.map((g,h)=>m.createElement(xp,{key:`preset-${h}-${g.toHexString()}`,color:jn(g).toRgbString(),prefixCls:t,className:K(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Rie(g,i.colorBgElevated)}),onClick:()=>u(g)})):m.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(Pie,{defaultActiveKey:c,ghost:!0,items:d}))},_ie=Mie,Tie=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(zE);return Array.isArray(n)?m.createElement(_ie,{value:t,presets:n,prefixCls:e,onChange:r}):null},k1=Tie;var Nie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 kie=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=Nie(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=m.createElement(m.Fragment,null,m.createElement(T1,null),Array.isArray(n)&&m.createElement(Aae,{className:`${l}-divider`}),m.createElement(k1,null));return m.createElement(Uae,{value:c},m.createElement(Xae,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:T1,Presets:k1}}):d)))},Aie=kie;var Lie=function(e,t){var n={};for(var r in 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 Die=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=Lie(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>a?m.createElement(jE,{prefixCls:r}):m.createElement(xp,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),v=()=>{const h=n.toHexString().toUpperCase(),p=Ou(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${h.slice(0,7)},${p}%`:h}},g=()=>{if(typeof c=="function")return c(n);if(c)return v()};return m.createElement("div",Object.assign({ref:t,className:K(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),f,c&&m.createElement("div",{className:`${d}-text`},g()))}),zie=Die;function A1(e){return e!==void 0}const jie=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=m.useState(()=>{let i;return A1(r)?i=r:A1(n)?i=n:i=e,jn(i||"")});return m.useEffect(()=>{r&&a(jn(r));},[r]),[o,a]},Fie=jie,HE=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Bie=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},HE("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},L1=Bie,Hie=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:v,lineWidth:g}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:v}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${a}px`,marginInlineStart:i},[`${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:u+i,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*g}px`},[`${n}-input-prefix`]:{color:f}}}}}},Wie=Hie,Vie=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":HE(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},Gie=Vie,Kie=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:v,paddingXS:g}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:v},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:v*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:a+4*c,height:a+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:a/13*5,height:a/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:f,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:i,color:r}}}},Uie=Kie,Jv=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),Xie=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},D1=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${a}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},qie=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Jv(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Jv(e,r,s))}}},Yie=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l}}}},Qie=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:f,controlHeightSM:v,colorBgTextActive:g,colorPickerPresetColorSize:h,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:w,colorPrimaryHover:x,controlOutline:$}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},Gie(e))},L1(e,p)),Wie(e)),Uie(e)),D1(e,h,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,height:f,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:a,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:w,color:s},"&:hover":{borderColor:x},[`&${t}-trigger-active`]:Object.assign({},Jv(e,r,$)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:i}}},D1(e,v)),L1(e,v)),qie(e)),Yie(e))},Xie(e))}]},Zie=Kt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=St(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 [Qie(o)]});var Jie=function(e,t){var n={};for(var r in 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 Ip=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:l="click",open:c,disabled:u,placement:d="bottomLeft",arrow:f=!0,panelRender:v,showText:g,style:h,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:w=!1,onFormatChange:x,onChange:$,onClear:S,onOpenChange:E,onChangeComplete:I,getPopupContainer:O,autoAdjustOverflow:R=!0,destroyTooltipOnHide:M}=e,k=Jie(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:A,direction:L,colorPicker:T}=m.useContext(rt),P=m.useContext(Ur),_=u??P,[,z]=tr(),[j,H]=Fie(z.colorPrimary,{value:t,defaultValue:n}),[B,V]=qt(!1,{value:c,postState:Ge=>!_&&Ge,onChange:E}),[G,q]=qt(r,{value:r,defaultValue:o,onChange:x}),[Y,te]=m.useState(!1),W=A("color-picker",Yae),Z=m.useMemo(()=>Ou(j)<100,[j]),{status:U}=m.useContext(Ir),ue=nr(b),[ie,se]=Zie(W),ee={[`${W}-rtl`]:L},ce=K(y,ee),Q=K(jr(W,U),{[`${W}-sm`]:ue==="small",[`${W}-lg`]:ue==="large"},T==null?void 0:T.className,ce,p,se),le=K(W,ee),he=m.useRef(!0),ne=(Ge,Me,Xe)=>{let ze=jn(Ge);(Y||(t===null||!t&&n===null))&&(te(!1),Ou(j)===0&&Me!=="alpha"&&(ze=hm(ze))),w&&Z&&(ze=hm(ze)),Xe?he.current=!1:I==null||I(ze),H(ze),$==null||$(ze,ze.toHexString());},ae=()=>{te(!0),S==null||S();},me=Ge=>{he.current=!0;let Me=jn(Ge);w&&Z&&(Me=hm(Ge)),I==null||I(Me);},Ce={open:B,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:O,autoAdjustOverflow:R,destroyTooltipOnHide:M},ke={prefixCls:W,color:j,allowClear:a,colorCleared:Y,disabled:_,disabledAlpha:w,presets:i,panelRender:v,format:G,onFormatChange:q,onChangeComplete:me},We=Object.assign(Object.assign({},T==null?void 0:T.style),h);return ie(m.createElement(zd,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:Ge=>{he.current&&!_&&V(Ge);},content:m.createElement(Hs,{override:!0,status:!0},m.createElement(Aie,Object.assign({},ke,{onChange:ne,onChangeComplete:me,onClear:ae}))),overlayClassName:le},Ce),s||m.createElement(zie,Object.assign({open:B,className:Q,style:We,color:t?jn(t):j,prefixCls:W,disabled:_,colorCleared:Y,showText:g,format:G},k))))},ese=$h(Ip,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Ip._InternalPanelDoNotUseOrYouWillBeFired=ese;const tse=Ip;var nse={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},rse={name:"snnttx",styles:"aspect-ratio:1;width:50px;border:2px solid transparent;border-radius:6px;margin:0 auto"},ose={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function ase(){const e=Tg().id,{colorPickerThemeSelectedColor:t}=en(),[n,r]=m.useState(t||Bc.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:sS.map(({name:a,themes:i,tooltip:s})=>be(m.Fragment,{children:[be("div",{css:ose,children:[a,D(El,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),D("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:zr("aspect-ratio:1;width:42px;background-color:",u?o:l.colorPrimary,";border-radius:6px;","")});let f=D("div",{className:"preview-wrapper",css:[rse,Ml,c&&zr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=D(tse,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||zn({colorPickerThemeSelectedColor:o});},children:f})),be("div",{css:nse,onClick:v=>{zn({theme:l.id});},children:[f,l.name]},l.id)})})]},a))})}async function Op(){Ot("即将刷新网页"),await Dn(500),location.reload();}function ise(){return eD(),Op()}async function sse(){const e=await K5(),t=_g(e||{},pS);return Object.keys(t).length?(zL(!0),zn({...t}),Op()):Ot("备份不存在或没有有效的配置")}function pc(e,t,n){return fn(e,r=>{if(rd())return;xt[t]=!xt[t];const o=!xt[t];Ot(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}const z1=Jn({tab:"basic"});var lse={name:"1a2afmv",styles:"margin-left:10px"};function cse({show:e,onHide:t}){const{filterEnabled:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:s}=en();pc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),pc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),pc(["shift.c"],"useNarrowMode","居中模式"),pc(["shift.y"],"styleFancy","Fancy Style");const{tab:l}=er(z1);return be(Td,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[be("div",{className:fr.modalHeader,children:[be("div",{className:fr.modalTitle,children:[D(kt,{name:"Config",className:Ye.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Nd,{onClick:t})]}),D("main",{className:fr.modalBody,style:{overflow:"hidden"},children:D(Qne,{tabPosition:"left",size:"middle",className:Ye.settingTabs,activeKey:l,onChange:c=>z1.tab=c,items:[{label:"常规设置",key:"basic",children:D(use,{})},{label:"内容过滤",key:"filter",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["内容过滤",D(El,{iconProps:{name:"Tips"},tooltip:be(It,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})}),D(_l,{css:lse,checked:n,onChange:c=>{zn({filterEnabled:c});}})]}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.settingsGroupSubTitle,children:"视频"}),be("div",{className:Ye.row,children:[D(Rn,{disabled:!n,configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(It,{children:"不显示播放量很少的视频"})}),D(Uv,{size:"small",min:1,step:1e3,value:r,onChange:c=>c&&zn({filterMinPlayCount:c}),disabled:!n||!o})]}),be("div",{className:Ye.row,style:{marginTop:3},children:[D(Rn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(It,{children:"不显示短视频"}),disabled:!n}),D(Uv,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:c=>c&&zn({filterMinDuration:c}),disabled:!n||!i})]}),D(Rn,{className:Ye.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(It,{children:"默认不过滤「已关注」"}),disabled:!n}),D("div",{className:Ye.settingsGroupSubTitle,children:"图文"}),D(Rn,{className:Ye.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(It,{children:"过滤掉图文推荐"}),disabled:!n}),D(Rn,{className:Ye.row,disabled:!n||!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(It,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.row,children:D(Rn,{configKey:"styleFancy",label:"Fancy Style",tooltip:be(It,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"视频卡片会显示头像",D("br",{}),"切换设置快捷键: ",D(To,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ye.row,style:{marginTop:5},children:D(Rn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:K(Ye.settingsGroupContent),children:D(ase,{})})]})})},{label:"Tab 设置",key:"video-source-tab-config",children:D(vse,{})},{label:"高级设置",key:"advance",children:D(dse,{})}]})})]})}function use(){return be("div",{className:Ye.tabPane,children:[be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["access_key",D(El,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:be(It,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,style:{marginTop:5},children:D(cE,{})})})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"开关"}),be("div",{className:K(Ye.settingsGroupContent,Ye.row),children:[D(Rn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:be(It,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ye.check,extraAction:Op}),D(Rn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ye.check,extraAction:e=>{e&&Ot("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(Rn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:be(It,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(To,{color:"green",children:"shift+c"})]}),className:Ye.check})]})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"预览"}),be("div",{className:K(Ye.settingsGroupContent,Ye.row),children:[D(Rn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ye.check,tooltip:be(It,{children:["手动预览快捷键: ",D(To,{color:"green",children:"."})," or ",D(To,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(To,{color:"green",children:"shift+p"})]})}),D(Rn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ye.check,tooltip:be(It,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(To,{color:"green",children:"shift+m"})]})})]})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"帮助"}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,children:be(Rl,{size:"small",children:[D(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Zt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Zt,{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(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Zt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}function dse(){const{autoPreviewUpdateInterval:e}=en();return D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"设置项"}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,children:D(Zy,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:ise,children:D(Zt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),be("div",{className:K(Ye.settingsGroupContent),children:[be("div",{className:Ye.row,children:[D(Rn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${rn}`}),be("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(kt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ye.row,style:{marginTop:5},children:D(Zy,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:sse,children:D(Zt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.row,children:D(Rn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(It,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ye.row,children:D(Rn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"预览"}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(Mte,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:t=>xt.autoPreviewUpdateInterval=t,value:e}),be("span",{style:{width:"65px"},children:["(",e,"ms)"]})]})]})})}var fse={name:"b1rfuh",styles:"display:block;line-height:unset"},mse={name:"18ji2p4",styles:"width:300px"};function vse(){const e=yW(),t=CW(),n=Ure(Kre($p)),r=ot(o=>{const{over:a,active:i}=o;if(!(a!=null&&a.id)||a.id===i.id)return;const s=t.indexOf(i.id.toString()),l=t.indexOf(a.id.toString()),c=t[s],u=t.slice();u.splice(s,1),u.splice(l,0,c),zn({customTabKeysOrder:u});});return D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["Tab 设置",D(El,{iconProps:{name:"Tips",style:{marginLeft:5,marginRight:20}},tooltip:D(It,{children:"勾选显示, 拖动排序"})}),D(Zt,{onClick:()=>{zn({hidingTabKeys:[],customTabKeysOrder:[]});},children:"重置"})]}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{css:mse,children:D(xl.Group,{css:fse,value:e,onChange:o=>{if(!o.length)return Ot("至少选择一项!");zn({hidingTabKeys:ii.filter(a=>!o.includes(a))});},children:D(Qoe,{sensors:n,collisionDetection:Zre,onDragEnd:r,modifiers:[sae,iae],children:D(mae,{items:t,strategy:dae,children:t.map(o=>D(Cse,{id:o},o))})})})})})]})})}var gse={name:"1slew38",styles:"cursor:grab;font-size:0;padding:5px 10px"},hse={name:"82a6rk",styles:"flex:1"},pse={name:"fhwcsu",styles:"margin:0 5px 0 10px"},bse={name:"8irbms",styles:"display:inline-flex;align-items:center"},yse={name:"1j52s8s",styles:"display:flex;align-items:center;justify-content:flex-start;height:35px;padding-left:20px;border:1px solid #ddd;border-radius:6px;margin-top:6px"};function Cse({id:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:a,setActivatorNodeRef:i}=Cae({id:e}),s={transform:Ys.Transform.toString(o),transition:a},{label:l,desc:c,icon:u,iconProps:d}=ru[e];return be("div",{ref:r,style:s,...t,css:yse,children:[D(xl,{value:e}),be(Rd,{title:c,css:bse,children:[D(kt,{name:u,...d,size:(d==null?void 0:d.size)||18,css:pse}),l]}),D("div",{css:hse}),D("div",{...n,ref:i,css:gse,children:D(kt,{name:"Drag",size:18})})]},e)}function Sse(){const e=m.useRef(null),[t,n]=m.useState(!1);return m.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}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 wse="_expand-btn_wdzp9_1",$se="_expanded_wdzp9_12",j1={expandBtn:wse,expanded:$se},xse=m.forwardRef(function({children:t},n){const[r,o]=Kw(!1);m.useImperativeHandle(n,()=>o,[o]);const a=D("button",{className:K("primary-btn",j1.expandBtn),onClick:o.toggle,children:D("svg",{className:K({[j1.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return be(It,{children:[a,r&&t]})}),Ese="_modal-mask_7bwzz_1",Ise="_narrow-mode_7bwzz_1",Ose="_modal_7bwzz_1",Pse="_modal-header_7bwzz_18",Rse="_modal-body_7bwzz_19",Mse="_btn-refresh_7bwzz_22",us={modalMask:Ese,narrowMode:Ise,modal:Ose,modalHeader:Pse,modalBody:Rse,btnRefresh:Mse};var _se={name:"1q4vxyr",styles:"margin-left:8px"};const Tse=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:a}=en(),i=m.useMemo(()=>({[us.narrowMode]:a}),[a]),s=ot((...h)=>{var p;return (p=o.current)==null?void 0:p.refresh(...h)}),[l,c]=m.useState(null),u=ot(()=>{r.current&&(r.current.scrollTop=0);}),d=uh(),f=m.useMemo(()=>d?{border:`1px solid ${Fr}`}:void 0,[d]),[v,g]=m.useState(!1);return D(Td,{show:t,onHide:n,clsModalMask:K(i),clsModal:K(us.modal,i),styleModal:{...f},children:be(tp.Provider,{value:s,children:[be("div",{className:K(fr.modalHeader,us.modalHeader),children:[D(S$,{onRefresh:s}),l,D("div",{className:"space",style:{flex:1}}),D(xse,{children:D(mW,{})}),D(VE,{css:_se,refreshing:v,onRefresh:s,className:us.btnRefresh,refreshHotkeyEnabled:t}),D(Nd,{onClick:n})]}),D("div",{className:K(fr.modalBody,us.modalBody),ref:r,children:D(B2,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:g,setExtraInfo:c})})]})})}),Nse=Ca.extend("RecHeader"),F1={btn:zr`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${Ml}
`,icon:zr`
svg {
width: 14px;
height: 14px;
}
`},jo=Jn({modalFeedVisible:xt.initialShowMore,modalConfigVisible:!1}),kse=function(){return er(jo)},Ase=()=>{jo.modalFeedVisible=!0;},Lse=()=>{jo.modalFeedVisible=!1;},Dse=()=>{jo.modalConfigVisible=!0;},zse=()=>{jo.modalConfigVisible=!1;},WE=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s,styleFancy:l}=en(),{modalFeedVisible:c,modalConfigVisible:u}=er(jo);fn(["shift.comma"],p=>{rd()||(jo.modalConfigVisible=!jo.modalConfigVisible);},{exactMatch:!0});const[d,f]=Sse(),v=ot(()=>{var C;if(!s)return;const p=(C=d.current)==null?void 0:C.parentElement;if(!p)return;const b=p.getBoundingClientRect(),y=y2();if(b.top<y){const w=y-b.top+1;Nse("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",b.top,y,w),document.documentElement.scrollTop-=w;}});m.useImperativeHandle(a,()=>({scroll:v}));const g=yee(),h=ha();return D(It,{children:be(tp.Provider,{value:t,children:[be("div",{ref:d,className:"area-header",css:[zr`
margin-bottom: 0;
height: 50px;
`,s&&zr`
position: sticky;
top: ${g-1}px; // 有缝隙, 故 -1 px
z-index: 1000;
`,s&&f&&zr`
background-color: var(--${l?"bg2":"bg1"}_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[be("div",{className:"left",children:[!s&&!h&&D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(S$,{onRefresh:t}),r]}),D("div",{className:"right",children:be(Rl,{size:"small",children:[o,!i&&D(cE,{style:{marginLeft:5}}),D(Zt,{onClick:Dse,css:F1.btn,children:D(kt,{name:"Config",css:F1.icon})}),D(VE,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(u||c)}),!s&&be(Zt,{css:Ml,onClick:Ase,children:[D("span",{children:"查看更多"}),D("svg",{css:zr`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(Tse,{show:c,onHide:Lse}),D(cse,{show:u,onHide:zse})]})})}),VE=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0),m.useState(0);const i=m.useRef(null),s=ot(()=>{i.current&&(i.current.disabled||i.current.click());});m.useImperativeHandle(a,()=>({click:s}),[]),fn("r",()=>{rd()||r&&s();},{exactMatch:!0});const l=Il(),{shuffleForFav:c,shuffleForWatchLater:u,shuffleForPopularWeekly:d}=en(),f=l==="dynamic-feed"||l==="watchlater"&&!u||l==="fav"&&!c||l==="popular-general"||l==="popular-weekly"&&!d?"刷新":"换一换",[v,g]=framerMotion.useAnimate(),h=ot(p=>(g(v.current,{rotate:[0,360]},{duration:.5,type:"tween"}),e==null?void 0:e()));return be(Zt,{disabled:o,className:t,style:n,css:zr`
${Ml}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:i,onClick:h,children:[D("svg",{ref:v,style:{width:"11px",height:"11px",marginRight:5},children:D("use",{href:"#widget-roll"})}),D("span",{children:f})]})}),jse={grid:zr`
/* card=360 col-gap=16 */
width: ${360*2+20}px;
margin: 0 auto;
`};function Fse(){const{useNarrowMode:e}=en(),{modalFeedVisible:t,modalConfigVisible:n}=kse(),r=m.useRef(null),o=m.useRef(null),a=ot((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),i=ot(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return be("section",{"data-area":"推荐",children:[D(WE,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),D(B2,{ref:o,css:[e&&jse.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const Bse=Ca.extend("components:SectionRecommend");function Hse(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ha(),n=Il(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=s2({tab:n,debug:Bse,fetcher:Jee,recreateService:!1});yl(a);const l=!o.length||i||r&&!s;return be("section",{"data-area":"推荐",children:[D(WE,{refreshing:r,onRefresh:a}),D("div",{className:K(rp,Cee,t?S2:C2),style:{marginBottom:t?30:0},children:l?e.map(c=>D(hu,{},c)):o.map(c=>D(hu,{item:c},c.uniqId))})]})}Ho.extend(nD);const GE=(location.hash||"").startsWith(`#/${rn}/`);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return Wse()})();async function Wse(){if(Qa(".adblock-tips"),hs("html.gray",e=>e.classList.remove("gray")),!GE&&document.documentElement.classList.contains("bewly-design")){console.warn(`${rn}: quit for using bewly-design`);return}return xt.pureRecommend?Gse():Vse()}async function Vse(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const a=document.querySelector(".bili-layout > section.bili-grid");n=i=>a==null?void 0:a.insertAdjacentElement("afterend",i);break}if(ha()&&document.querySelector(".bili-feed4-layout")){n=a=>{var i;return (i=document.querySelector(".bili-feed4-layout"))==null?void 0:i.insertAdjacentElement("afterbegin",a)};break}await Dn(200);}if(!n){console.error(`[${rn}]: init fail`);return}const r=document.createElement("section");r.classList.add(Sa),n(r),hl(r).render(D(vh,{injectGlobalStyle:!0,children:D(Hse,{})})),ha()&&Qa(".bili-feed4 .header-channel");}async function Gse(){var a,i;fh&&await Dn(500),ha()?((a=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||a.remove(),Qa(".bili-feed4 .header-channel"),Qa(".palette-button-wrap .flexible-roll-btn"),hs(".palette-button-wrap .storage-box",s=>s.classList.remove("hidden")),hs(".palette-button-wrap .top-btn-wrap .top-btn",s=>s.classList.add("visible")),hs(".palette-button-wrap",s=>{s.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Qa(".bili-footer"),Qa(".palette-button-wrap > .primary-btn",s=>s.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(s=>{s.classList.remove("hidden"),s.classList.contains("top-btn")&&s.classList.remove("top-btn");});}));let e;const t=document.querySelector(".bili-header");if(t?e=s=>t.insertAdjacentElement("afterend",s):GE&&(e=s=>document.body.appendChild(s)),!e){console.error(`[${rn}]: init fail, no .bili-header found`);return}const n=document.createElement("div");n.classList.add(ha()?"bili-feed4-layout":"bili-layout","pure-recommend"),e(n);const r=document.createElement("section");r.classList.add(Sa),n.appendChild(r),hl(r).render(D(vh,{injectGlobalStyle:!0,children:D(Fse,{})}));}
})(React, axios, axiosGmxhrAdapter, ReactDOM, ResizeObserver, UAParser, Motion);