// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.15.1
// @author magicdawn
// @description 为B站首页添加像App一样的推荐
// @license MIT
// @icon https://www.bilibili.com/favicon.ico
// @homepageURL https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues
// @match https://www.bilibili.com/
// @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match https://www.bilibili.com/index.html
// @match https://www.bilibili.com/?*
// @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match https://www.bilibili.com/index.html?*
// @require https://unpkg.com/[email protected]/dist/axios.min.js
// @require https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require https://unpkg.com/[email protected]/umd/react.production.min.js
// @require https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @require https://unpkg.com/[email protected]/dist/ua-parser.min.js
// @connect app.bilibili.com
// @connect passport.bilibili.com
// @connect link.acg.tv
// @connect www.mcbbs.net
// @grant GM.deleteValue
// @grant GM.getValue
// @grant GM.setClipboard
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant unsafeWindow
// ==/UserScript==
(t=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=t,document.head.append(e)})(" .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}._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}._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_12ujg_1{position:relative}._preview-card-wrapper_12ujg_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_12ujg_4 ._preview-card-inner_12ujg_17{width:100%;height:100%}._watch-later_12ujg_21{z-index:5}._badge_12ujg_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_12ujg_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_12ujg_48{color:default}._btn-dislike_12ujg_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_12ujg_51 ._btn-dislike-icon_12ujg_66{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_12ujg_51 ._btn-dislike-tip_12ujg_73{pointer-events: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_12ujg_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_12ujg_88{border:1px solid #333}._disliked-wrapper_12ujg_88 ._dislike-content-cover_12ujg_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_12ujg_88 ._dislike-content-cover_12ujg_102 ._dislike-content-cover-inner_12ujg_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_12ujg_88 ._dislike-content-cover_12ujg_102 ._dislike-content-cover-inner_12ujg_108 ._dislike-icon_12ujg_119{margin-bottom:5px}._disliked-wrapper_12ujg_88 ._dislike-content-cover_12ujg_102 ._dislike-content-cover-inner_12ujg_108 ._dislike-reason_12ujg_122{font-size:20px;text-align:center}._disliked-wrapper_12ujg_88 ._dislike-content-cover_12ujg_102 ._dislike-content-cover-inner_12ujg_108 ._dislike-desc_12ujg_126{font-size:16px;text-align:center}._disliked-wrapper_12ujg_88 ._dislike-content-action_12ujg_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_12ujg_88 ._dislike-content-action_12ujg_130{border-top:1px solid #333}._disliked-wrapper_12ujg_88 ._dislike-content-action_12ujg_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_12ujg_147 .bili-video-card__skeleton--cover,._skeleton-active_12ujg_147 .bili-video-card__skeleton--text,._skeleton-active_12ujg_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_12ujg_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_12ujg_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_1qaxg_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_1qaxg_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_1qaxg_17._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 15){display:none!important}}._video-grid-internal-testing_1qaxg_52{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(1n + 5){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_1qaxg_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_1qaxg_52._limit-one-line_1qaxg_59>*:nth-of-type(1n + 6){display:none!important}._video-grid-internal-testing_1qaxg_52._limit-two-lines_1qaxg_20>*:nth-of-type(1n + 11){display:none!important}}._video-grid-container_1qaxg_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_1qaxg_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_1qaxg_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_1qaxg_112{grid-template-columns:repeat(2,1fr)!important}._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 (u, cp, r1, Pf, o1) {
'use strict';
function _interopNamespaceDefault(e) {
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
if (e) {
for (const k in e) {
if (k !== 'default') {
const d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: () => e[k]
});
}
}
}
n.default = e;
return Object.freeze(n);
}
const u__namespace = /*#__PURE__*/_interopNamespaceDefault(u);
const cp__namespace = /*#__PURE__*/_interopNamespaceDefault(cp);
var YS=Object.defineProperty;var qS=(e,t,n)=>t in e?YS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var at=(e,t,n)=>(qS(e,typeof t!="symbol"?t+"":t,n),n),Cu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var D=(e,t,n)=>(Cu(e,t,"read from private field"),n?n.call(e):t.get(e)),ut=(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);},Ge=(e,t,n,r)=>(Cu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fs=(e,t,n,r)=>({set _(o){Ge(e,t,o,n);},get _(){return D(e,t,r)}}),ke=(e,t,n)=>(Cu(e,t,"access private method"),n);var dp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return 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 fp={exports:{}},hc={};/**
* @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 a1=u,s1=Symbol.for("react.element"),l1=Symbol.for("react.fragment"),c1=Object.prototype.hasOwnProperty,u1=a1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d1={key:!0,ref:!0,__self:!0,__source:!0};function mp(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)c1.call(t,r)&&!d1.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:s1,type:e,key:i,ref:a,props:o,_owner:u1.current}}hc.Fragment=l1;hc.jsx=mp;hc.jsxs=mp;fp.exports=hc;var qa=fp.exports;function f1(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 m1(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 h1=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(m1(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=f1(o);try{i.insertRule(r,i.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),yn="-ms-",Tl="-moz-",Et="-webkit-",hp="comm",Rf="rule",Tf="decl",v1="@import",vp="@keyframes",g1="@layer",p1=Math.abs,vc=String.fromCharCode,b1=Object.assign;function y1(e,t){return hn(e,0)^45?(((t<<2^hn(e,0))<<2^hn(e,1))<<2^hn(e,2))<<2^hn(e,3):0}function gp(e){return e.trim()}function C1(e,t){return (e=t.exec(e))?e[0]:e}function Ot(e,t,n){return e.replace(t,n)}function vd(e,t){return e.indexOf(t)}function hn(e,t){return e.charCodeAt(t)|0}function Za(e,t,n){return e.slice(t,n)}function _r(e){return e.length}function Mf(e){return e.length}function Ws(e,t){return t.push(e),e}function S1(e,t){return e.map(t).join("")}var gc=1,Bi=1,pp=0,Pn=0,rn=0,oa="";function pc(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:gc,column:Bi,length:a,return:""}}function Ca(e,t){return b1(pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function w1(){return rn}function $1(){return rn=Pn>0?hn(oa,--Pn):0,Bi--,rn===10&&(Bi=1,gc--),rn}function Gn(){return rn=Pn<pp?hn(oa,Pn++):0,Bi++,rn===10&&(Bi=1,gc++),rn}function Tr(){return hn(oa,Pn)}function dl(){return Pn}function ps(e,t){return Za(oa,e,t)}function Qa(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 bp(e){return gc=Bi=1,pp=_r(oa=e),Pn=0,[]}function yp(e){return oa="",e}function fl(e){return gp(ps(Pn-1,gd(e===91?e+2:e===40?e+1:e)))}function x1(e){for(;(rn=Tr())&&rn<33;)Gn();return Qa(e)>2||Qa(rn)>3?"":" "}function E1(e,t){for(;--t&&Gn()&&!(rn<48||rn>102||rn>57&&rn<65||rn>70&&rn<97););return ps(e,dl()+(t<6&&Tr()==32&&Gn()==32))}function gd(e){for(;Gn();)switch(rn){case e:return Pn;case 34:case 39:e!==34&&e!==39&&gd(rn);break;case 40:e===41&&gd(e);break;case 92:Gn();break}return Pn}function O1(e,t){for(;Gn()&&e+rn!==47+10;)if(e+rn===42+42&&Tr()===47)break;return "/*"+ps(t,Pn-1)+"*"+vc(e===47?e:Gn())}function I1(e){for(;!Qa(Tr());)Gn();return ps(e,Pn)}function Cp(e){return yp(ml("",null,null,null,[""],e=bp(e),0,[0],e))}function ml(e,t,n,r,o,i,a,s,l){for(var c=0,f=0,d=a,m=0,h=0,v=0,g=1,p=1,b=1,C=0,$="",x=o,y=i,S=r,w=$;p;)switch(v=C,C=Gn()){case 40:if(v!=108&&hn(w,d-1)==58){vd(w+=Ot(fl(C),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=fl(C);break;case 9:case 10:case 13:case 32:w+=x1(v);break;case 92:w+=E1(dl()-1,7);continue;case 47:switch(Tr()){case 42:case 47:Ws(_1(O1(Gn(),dl()),t,n),l);break;default:w+="/";}break;case 123*g:s[c++]=_r(w)*b;case 125*g:case 59:case 0:switch(C){case 0:case 125:p=0;case 59+f:b==-1&&(w=Ot(w,/\f/g,"")),h>0&&_r(w)-d&&Ws(h>32?Ch(w+";",r,n,d-1):Ch(Ot(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Ws(S=yh(w,t,n,c,f,o,s,$,x=[],y=[],d),i),C===123)if(f===0)ml(w,t,S,S,x,i,d,s,y);else switch(m===99&&hn(w,3)===110?100:m){case 100:case 108:case 109:case 115:ml(e,S,S,r&&Ws(yh(e,S,S,0,0,o,s,$,o,x=[],d),y),o,y,d,s,r?x:y);break;default:ml(w,S,S,S,[""],y,0,s,y);}}c=f=h=0,g=b=1,$=w="",d=a;break;case 58:d=1+_r(w),h=v;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&$1()==125)continue}switch(w+=vc(C),C*g){case 38:b=f>0?1:(w+="\f",-1);break;case 44:s[c++]=(_r(w)-1)*b,b=1;break;case 64:Tr()===45&&(w+=fl(Gn())),m=Tr(),f=d=_r($=w+=I1(dl())),C++;break;case 45:v===45&&_r(w)==2&&(g=0);}}return i}function yh(e,t,n,r,o,i,a,s,l,c,f){for(var d=o-1,m=o===0?i:[""],h=Mf(m),v=0,g=0,p=0;v<r;++v)for(var b=0,C=Za(e,d+1,d=p1(g=a[v])),$=e;b<h;++b)($=gp(g>0?m[b]+" "+C:Ot(C,/&\f/g,m[b])))&&(l[p++]=$);return pc(e,t,n,o===0?Rf:s,l,c,f)}function _1(e,t,n){return pc(e,t,n,hp,vc(w1()),Za(e,2,-2),0)}function Ch(e,t,n,r){return pc(e,t,n,Tf,Za(e,0,r),Za(e,r+1,-1),r)}function Wo(e,t){for(var n="",r=Mf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Sp(e,t,n,r){switch(e.type){case g1:if(e.children.length)break;case v1:case Tf:return e.return=e.return||e.value;case hp:return "";case vp:return e.return=e.value+"{"+Wo(e.children,r)+"}";case Rf:e.value=e.props.join(",");}return _r(n=Wo(e.children,r))?e.return=e.value+"{"+n+"}":""}function P1(e){var t=Mf(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function R1(e){return function(t){t.root||(t=t.return)&&e(t);}}function T1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var M1=function(t,n,r){for(var o=0,i=0;o=i,i=Tr(),o===38&&i===12&&(n[r]=1),!Qa(i);)Gn();return ps(t,Pn)},N1=function(t,n){var r=-1,o=44;do switch(Qa(o)){case 0:o===38&&Tr()===12&&(n[r]=1),t[r]+=M1(Pn-1,n,r);break;case 2:t[r]+=fl(o);break;case 4:if(o===44){t[++r]=Tr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=vc(o);}while(o=Gn());return t},A1=function(t,n){return yp(N1(bp(t),n))},Sh=new WeakMap,k1=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&&!Sh.get(r))&&!o){Sh.set(t,!0);for(var i=[],a=A1(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var f=0;f<s.length;f++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l];}}},D1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function wp(e,t){switch(y1(e,t)){case 5103:return Et+"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 Et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Et+e+Tl+e+yn+e+e;case 6828:case 4268:return Et+e+yn+e+e;case 6165:return Et+e+yn+"flex-"+e+e;case 5187:return Et+e+Ot(e,/(\w+).+(:[^]+)/,Et+"box-$1$2"+yn+"flex-$1$2")+e;case 5443:return Et+e+yn+"flex-item-"+Ot(e,/flex-|-self/,"")+e;case 4675:return Et+e+yn+"flex-line-pack"+Ot(e,/align-content|flex-|-self/,"")+e;case 5548:return Et+e+yn+Ot(e,"shrink","negative")+e;case 5292:return Et+e+yn+Ot(e,"basis","preferred-size")+e;case 6060:return Et+"box-"+Ot(e,"-grow","")+Et+e+yn+Ot(e,"grow","positive")+e;case 4554:return Et+Ot(e,/([^-])(transform)/g,"$1"+Et+"$2")+e;case 6187:return Ot(Ot(Ot(e,/(zoom-|grab)/,Et+"$1"),/(image-set)/,Et+"$1"),e,"")+e;case 5495:case 3959:return Ot(e,/(image-set\([^]*)/,Et+"$1$`$1");case 4968:return Ot(Ot(e,/(.+:)(flex-)?(.*)/,Et+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Et+e+e;case 4095:case 3583:case 4068:case 2532:return Ot(e,/(.+)-inline(.+)/,Et+"$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(_r(e)-1-t>6)switch(hn(e,t+1)){case 109:if(hn(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+Tl+(hn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~vd(e,"stretch")?wp(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(hn(e,t+1)!==115)break;case 6444:switch(hn(e,_r(e)-3-(~vd(e,"!important")&&10))){case 107:return Ot(e,":",":"+Et)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Et+(hn(e,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+yn+"$2box$3")+e}break;case 5936:switch(hn(e,t+11)){case 114:return Et+e+yn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Et+e+yn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Et+e+yn+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Et+e+yn+e+e}return e}var L1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Tf:t.return=wp(t.value,t.length);break;case vp:return Wo([Ca(t,{value:Ot(t.value,"@","@"+Et)})],o);case Rf:if(t.length)return S1(t.props,function(i){switch(C1(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wo([Ca(t,{props:[Ot(i,/:(read-\w+)/,":"+Tl+"$1")]})],o);case"::placeholder":return Wo([Ca(t,{props:[Ot(i,/:(plac\w+)/,":"+Et+"input-$1")]}),Ca(t,{props:[Ot(i,/:(plac\w+)/,":"+Tl+"$1")]}),Ca(t,{props:[Ot(i,/:(plac\w+)/,yn+"input-$1")]})],o)}return ""})}},z1=[L1],$p=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""));});}var o=t.stylisPlugins||z1,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(g);});var l,c=[k1,D1];{var f,d=[Sp,R1(function(g){f.insert(g);})],m=P1(c.concat(o,d)),h=function(p){return Wo(Cp(p),m)};l=function(p,b,C,$){f=C,h(p?p+"{"+b.styles+"}":b.styles),$&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new h1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function ye(){return ye=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},ye.apply(this,arguments)}var xp={exports:{}},Nt={};/** @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 fn=typeof Symbol=="function"&&Symbol.for,Nf=fn?Symbol.for("react.element"):60103,Af=fn?Symbol.for("react.portal"):60106,bc=fn?Symbol.for("react.fragment"):60107,yc=fn?Symbol.for("react.strict_mode"):60108,Cc=fn?Symbol.for("react.profiler"):60114,Sc=fn?Symbol.for("react.provider"):60109,wc=fn?Symbol.for("react.context"):60110,kf=fn?Symbol.for("react.async_mode"):60111,$c=fn?Symbol.for("react.concurrent_mode"):60111,xc=fn?Symbol.for("react.forward_ref"):60112,Ec=fn?Symbol.for("react.suspense"):60113,j1=fn?Symbol.for("react.suspense_list"):60120,Oc=fn?Symbol.for("react.memo"):60115,Ic=fn?Symbol.for("react.lazy"):60116,H1=fn?Symbol.for("react.block"):60121,B1=fn?Symbol.for("react.fundamental"):60117,F1=fn?Symbol.for("react.responder"):60118,W1=fn?Symbol.for("react.scope"):60119;function Un(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nf:switch(e=e.type,e){case kf:case $c:case bc:case Cc:case yc:case Ec:return e;default:switch(e=e&&e.$$typeof,e){case wc:case xc:case Ic:case Oc:case Sc:return e;default:return t}}case Af:return t}}}function Ep(e){return Un(e)===$c}Nt.AsyncMode=kf;Nt.ConcurrentMode=$c;Nt.ContextConsumer=wc;Nt.ContextProvider=Sc;Nt.Element=Nf;Nt.ForwardRef=xc;Nt.Fragment=bc;Nt.Lazy=Ic;Nt.Memo=Oc;Nt.Portal=Af;Nt.Profiler=Cc;Nt.StrictMode=yc;Nt.Suspense=Ec;Nt.isAsyncMode=function(e){return Ep(e)||Un(e)===kf};Nt.isConcurrentMode=Ep;Nt.isContextConsumer=function(e){return Un(e)===wc};Nt.isContextProvider=function(e){return Un(e)===Sc};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nf};Nt.isForwardRef=function(e){return Un(e)===xc};Nt.isFragment=function(e){return Un(e)===bc};Nt.isLazy=function(e){return Un(e)===Ic};Nt.isMemo=function(e){return Un(e)===Oc};Nt.isPortal=function(e){return Un(e)===Af};Nt.isProfiler=function(e){return Un(e)===Cc};Nt.isStrictMode=function(e){return Un(e)===yc};Nt.isSuspense=function(e){return Un(e)===Ec};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bc||e===$c||e===Cc||e===yc||e===Ec||e===j1||typeof e=="object"&&e!==null&&(e.$$typeof===Ic||e.$$typeof===Oc||e.$$typeof===Sc||e.$$typeof===wc||e.$$typeof===xc||e.$$typeof===B1||e.$$typeof===F1||e.$$typeof===W1||e.$$typeof===H1)};Nt.typeOf=Un;xp.exports=Nt;var Df=xp.exports,Op=Df,V1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},G1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ip={};Ip[Op.ForwardRef]=V1;Ip[Op.Memo]=G1;var K1=!0;function Lf(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var _p=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||K1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Pp=function(t,n,r){_p(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function U1(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 X1={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},Y1=/[A-Z]|^ms/g,q1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rp=function(t){return t.charCodeAt(1)===45},wh=function(t){return t!=null&&typeof t!="boolean"},wu=T1(function(e){return Rp(e)?e:e.replace(Y1,"-$&").toLowerCase()}),$h=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q1,function(r,o,i){return Pr={name:o,styles:i,next:Pr},o})}return X1[t]!==1&&!Rp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ja(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 Pr={name:n.name,styles:n.styles,next:Pr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Pr={name:r.name,styles:r.styles,next:Pr},r=r.next;var o=n.styles+";";return o}return Z1(e,t,n)}case"function":{if(e!==void 0){var i=Pr,a=n(e);return Pr=i,Ja(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Z1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ja(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":wh(a)&&(r+=wu(i)+":"+$h(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wh(a[s])&&(r+=wu(i)+":"+$h(i,a[s])+";");else {var l=Ja(e,t,a);switch(i){case"animation":case"animationName":{r+=wu(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var xh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pr,Da=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Pr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Ja(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Ja(r,n,t[s]),o&&(i+=a[s]);xh.lastIndex=0;for(var l="",c;(c=xh.exec(i))!==null;)l+="-"+c[1];var f=U1(i)+l;return {name:f,styles:i,next:Pr}},Q1=function(t){return t()},J1=u__namespace["useInsertionEffect"]?u__namespace["useInsertionEffect"]:!1,ew=J1||Q1,_c={}.hasOwnProperty,Tp=u__namespace.createContext(typeof HTMLElement<"u"?$p({key:"css"}):null);Tp.Provider;var tw=function(t){return u.forwardRef(function(n,r){var o=u.useContext(Tp);return t(n,o,r)})},nw=u__namespace.createContext({}),pd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mp=function(t,n){var r={};for(var o in n)_c.call(n,o)&&(r[o]=n[o]);return r[pd]=t,r},rw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return _p(n,r,o),ew(function(){return Pp(n,r,o)}),null},ow=tw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[pd],i=[r],a="";typeof e.className=="string"?a=Lf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Da(i,void 0,u__namespace.useContext(nw));a+=t.key+"-"+s.name;var l={};for(var c in e)_c.call(e,c)&&c!=="css"&&c!==pd&&(l[c]=e[c]);return l.ref=n,l.className=a,u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(rw,{cache:t,serialized:s,isStringTag:typeof o=="string"}),u__namespace.createElement(o,l))}),Np=ow,Lt=qa.Fragment;function H(e,t,n){return _c.call(t,"css")?qa.jsx(Np,Mp(e,t),n):qa.jsx(e,t,n)}function ge(e,t,n){return _c.call(t,"css")?qa.jsxs(Np,Mp(e,t),n):qa.jsxs(e,t,n)}var iw=Array.isArray;const tr=iw;var aw=typeof global=="object"&&global&&global.Object===Object&&global;const Ap=aw;var sw=typeof self=="object"&&self&&self.Object===Object&&self,lw=Ap||sw||Function("return this")();const br=lw;var cw=br.Symbol;const nr=cw;var kp=Object.prototype,uw=kp.hasOwnProperty,dw=kp.toString,Sa=nr?nr.toStringTag:void 0;function fw(e){var t=uw.call(e,Sa),n=e[Sa];try{e[Sa]=void 0;var r=!0;}catch{}var o=dw.call(e);return r&&(t?e[Sa]=n:delete e[Sa]),o}var mw=Object.prototype,hw=mw.toString;function vw(e){return hw.call(e)}var gw="[object Null]",pw="[object Undefined]",Eh=nr?nr.toStringTag:void 0;function ia(e){return e==null?e===void 0?pw:gw:Eh&&Eh in Object(e)?fw(e):vw(e)}function So(e){return e!=null&&typeof e=="object"}var bw="[object Symbol]";function Pc(e){return typeof e=="symbol"||So(e)&&ia(e)==bw}var yw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cw=/^\w*$/;function zf(e,t){if(tr(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Pc(e)?!0:Cw.test(e)||!yw.test(e)||t!=null&&e in Object(t)}function rr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sw="[object AsyncFunction]",ww="[object Function]",$w="[object GeneratorFunction]",xw="[object Proxy]";function Dp(e){if(!rr(e))return !1;var t=ia(e);return t==ww||t==$w||t==Sw||t==xw}var Ew=br["__core-js_shared__"];const $u=Ew;var Oh=function(){var e=/[^.]+$/.exec($u&&$u.keys&&$u.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ow(e){return !!Oh&&Oh in e}var Iw=Function.prototype,_w=Iw.toString;function Jo(e){if(e!=null){try{return _w.call(e)}catch{}try{return e+""}catch{}}return ""}var Pw=/[\\^$.*+?()[\]{}|]/g,Rw=/^\[object .+?Constructor\]$/,Tw=Function.prototype,Mw=Object.prototype,Nw=Tw.toString,Aw=Mw.hasOwnProperty,kw=RegExp("^"+Nw.call(Aw).replace(Pw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dw(e){if(!rr(e)||Ow(e))return !1;var t=Dp(e)?kw:Rw;return t.test(Jo(e))}function Lw(e,t){return e==null?void 0:e[t]}function ei(e,t){var n=Lw(e,t);return Dw(n)?n:void 0}var zw=ei(Object,"create");const es=zw;function jw(){this.__data__=es?es(null):{},this.size=0;}function Hw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bw="__lodash_hash_undefined__",Fw=Object.prototype,Ww=Fw.hasOwnProperty;function Vw(e){var t=this.__data__;if(es){var n=t[e];return n===Bw?void 0:n}return Ww.call(t,e)?t[e]:void 0}var Gw=Object.prototype,Kw=Gw.hasOwnProperty;function Uw(e){var t=this.__data__;return es?t[e]!==void 0:Kw.call(t,e)}var Xw="__lodash_hash_undefined__";function Yw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=es&&t===void 0?Xw:t,this}function Yo(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]);}}Yo.prototype.clear=jw;Yo.prototype.delete=Hw;Yo.prototype.get=Vw;Yo.prototype.has=Uw;Yo.prototype.set=Yw;function qw(){this.__data__=[],this.size=0;}function jf(e,t){return e===t||e!==e&&t!==t}function Rc(e,t){for(var n=e.length;n--;)if(jf(e[n][0],t))return n;return -1}var Zw=Array.prototype,Qw=Zw.splice;function Jw(e){var t=this.__data__,n=Rc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():Qw.call(t,n,1),--this.size,!0}function e$(e){var t=this.__data__,n=Rc(t,e);return n<0?void 0:t[n][1]}function t$(e){return Rc(this.__data__,e)>-1}function n$(e,t){var n=this.__data__,r=Rc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ro(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]);}}ro.prototype.clear=qw;ro.prototype.delete=Jw;ro.prototype.get=e$;ro.prototype.has=t$;ro.prototype.set=n$;var r$=ei(br,"Map");const ts=r$;function o$(){this.size=0,this.__data__={hash:new Yo,map:new(ts||ro),string:new Yo};}function i$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tc(e,t){var n=e.__data__;return i$(t)?n[typeof t=="string"?"string":"hash"]:n.map}function a$(e){var t=Tc(this,e).delete(e);return this.size-=t?1:0,t}function s$(e){return Tc(this,e).get(e)}function l$(e){return Tc(this,e).has(e)}function c$(e,t){var n=Tc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oo(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]);}}oo.prototype.clear=o$;oo.prototype.delete=a$;oo.prototype.get=s$;oo.prototype.has=l$;oo.prototype.set=c$;var u$="Expected a function";function Hf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u$);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Hf.Cache||oo),n}Hf.Cache=oo;var d$=500;function f$(e){var t=Hf(e,function(r){return n.size===d$&&n.clear(),r}),n=t.cache;return t}var m$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h$=/\\(\\)?/g,v$=f$(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m$,function(n,r,o,i){t.push(o?i.replace(h$,"$1"):r||n);}),t});const g$=v$;function Lp(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 p$=1/0,Ih=nr?nr.prototype:void 0,_h=Ih?Ih.toString:void 0;function zp(e){if(typeof e=="string")return e;if(tr(e))return Lp(e,zp)+"";if(Pc(e))return _h?_h.call(e):"";var t=e+"";return t=="0"&&1/e==-p$?"-0":t}function b$(e){return e==null?"":zp(e)}function Mc(e,t){return tr(e)?e:zf(e,t)?[e]:g$(b$(e))}var y$=1/0;function bs(e){if(typeof e=="string"||Pc(e))return e;var t=e+"";return t=="0"&&1/e==-y$?"-0":t}function Bf(e,t){t=Mc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bs(t[n++])];return n&&n==r?e:void 0}var C$=function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ml=C$;function jp(e,t,n){t=="__proto__"&&Ml?Ml(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var S$=Object.prototype,w$=S$.hasOwnProperty;function Ff(e,t,n){var r=e[t];(!(w$.call(e,t)&&jf(r,n))||n===void 0&&!(t in e))&&jp(e,t,n);}var $$=9007199254740991,x$=/^(?:0|[1-9]\d*)$/;function Wf(e,t){var n=typeof e;return t=t??$$,!!t&&(n=="number"||n!="symbol"&&x$.test(e))&&e>-1&&e%1==0&&e<t}function E$(e,t,n,r){if(!rr(e))return e;t=Mc(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=bs(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var f=s[l];c=r?r(f,l,s):void 0,c===void 0&&(c=rr(f)?f:Wf(t[o+1])?[]:{});}Ff(s,l,c),s=s[l];}return e}function O$(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Bf(e,a);n(s,a)&&E$(i,Mc(a,e),s);}return i}function I$(e,t){return e!=null&&t in Object(e)}var _$="[object Arguments]";function Ph(e){return So(e)&&ia(e)==_$}var Hp=Object.prototype,P$=Hp.hasOwnProperty,R$=Hp.propertyIsEnumerable,T$=Ph(function(){return arguments}())?Ph:function(e){return So(e)&&P$.call(e,"callee")&&!R$.call(e,"callee")};const Vf=T$;var M$=9007199254740991;function Gf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=M$}function N$(e,t,n){t=Mc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=bs(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a];}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Gf(o)&&Wf(a,o)&&(tr(e)||Vf(e)))}function Bp(e,t){return e!=null&&N$(e,t,I$)}function A$(e,t){return O$(e,t,function(n,r){return Bp(e,r)})}function Kf(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Rh=nr?nr.isConcatSpreadable:void 0;function k$(e){return tr(e)||Vf(e)||!!(Rh&&e&&e[Rh])}function Fp(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=k$),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Fp(s,t-1,n,r,o):Kf(o,s):r||(o[o.length]=s);}return o}function D$(e){var t=e==null?0:e.length;return t?Fp(e,1):[]}function L$(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 Th=Math.max;function z$(e,t,n){return t=Th(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Th(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),L$(e,this,s)}}function j$(e){return function(){return e}}function Wp(e){return e}var H$=Ml?function(e,t){return Ml(e,"toString",{configurable:!0,enumerable:!1,value:j$(t),writable:!0})}:Wp;const B$=H$;var F$=800,W$=16,V$=Date.now;function G$(e){var t=0,n=0;return function(){var r=V$(),o=W$-(r-n);if(n=r,o>0){if(++t>=F$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var K$=G$(B$);const U$=K$;function X$(e){return U$(z$(e,void 0,D$),e+"")}var Y$=X$(function(e,t){return e==null?{}:A$(e,t)});const Vp=Y$;var bd={exports:{}},xu,Mh;function q$(){if(Mh)return xu;Mh=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;xu=function(f,d){d=d||{};var m=typeof f;if(m==="string"&&f.length>0)return a(f);if(m==="number"&&isFinite(f))return d.long?l(f):s(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function a(f){if(f=String(f),!(f.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(f);if(d){var m=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function s(f){var d=Math.abs(f);return d>=r?Math.round(f/r)+"d":d>=n?Math.round(f/n)+"h":d>=t?Math.round(f/t)+"m":d>=e?Math.round(f/e)+"s":f+"ms"}function l(f){var d=Math.abs(f);return d>=r?c(f,d,r,"day"):d>=n?c(f,d,n,"hour"):d>=t?c(f,d,t,"minute"):d>=e?c(f,d,e,"second"):f+" ms"}function c(f,d,m,h){var v=d>=m*1.5;return Math.round(f/m)+" "+h+(v?"s":"")}return xu}function Z$(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=q$(),n.destroy=c,Object.keys(e).forEach(f=>{n[f]=e[f];}),n.names=[],n.skips=[],n.formatters={};function t(f){let d=0;for(let m=0;m<f.length;m++)d=(d<<5)-d+f.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(f){let d,m=null,h,v;function g(...p){if(!g.enabled)return;const b=g,C=Number(new Date),$=C-(d||C);b.diff=$,b.prev=d,b.curr=C,d=C,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let x=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(S,w)=>{if(S==="%%")return "%";x++;const I=n.formatters[w];if(typeof I=="function"){const E=p[x];S=I.call(b,E),p.splice(x,1),x--;}return S}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return g.namespace=f,g.useColors=n.useColors(),g.color=n.selectColor(f),g.extend=r,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,v=n.enabled(f)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(g),g}function r(f,d){const m=n(this.namespace+(typeof d>"u"?":":d)+f);return m.log=this.log,m}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let d;const m=(typeof f=="string"?f:"").split(/[\s,]+/),h=m.length;for(d=0;d<h;d++)m[d]&&(f=m[d].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.slice(1)+"$")):n.names.push(new RegExp("^"+f+"$")));}function i(){const f=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),f}function a(f){if(f[f.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d<m;d++)if(n.skips[d].test(f))return !1;for(d=0,m=n.names.length;d<m;d++)if(n.names[d].test(f))return !0;return !1}function s(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function l(f){return f instanceof Error?f.stack||f.message:f}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 Q$=Z$;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let f=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(f++,m==="%c"&&(d=f));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Q$(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(bd,bd.exports);var J$=bd.exports;const ex=no(J$),io="bilibili-app-recommend",tx="bilibili_app_recommend",ys=ex(io),nx=Symbol(),Uf=Symbol(),wa="a",hl="w";let rx=(e,t)=>new Proxy(e,t);const yd=Object.getPrototypeOf,Cd=new WeakMap,Gp=e=>e&&(Cd.has(e)?Cd.get(e):yd(e)===Object.prototype||yd(e)===Array.prototype),Nh=e=>typeof e=="object"&&e!==null,ox=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(yd(e),t)},Kp=e=>e[Uf]||e,Up=(e,t,n,r)=>{if(!Gp(e))return e;let o=r&&r.get(e);if(!o){const l=Kp(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(f=>!f.configurable&&!f.writable))(l)?[l,ox(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const f={f:c};let d=!1;const m=(v,g)=>{if(!d){let p=f[wa].get(l);if(p||(p={},f[wa].set(l,p)),v===hl)p[hl]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===Uf?l:(m("k",g),Up(Reflect.get(v,g),f[wa],f.c,f.t)),has:(v,g)=>g===nx?(d=!0,f[wa].delete(l),!0):(m("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(m(hl),Reflect.ownKeys(v))};return c&&(h.set=h.deleteProperty=()=>!1),[h,f]})(i,!!a),s[1].p=rx(a||i,s[0]),n&&n.set(i,s)),s[1][wa]=t,s[1].c=n,s[1].t=r,s[1].p},Xp=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Nh(e)||!Nh(t))return !0;const o=n.get(Kp(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[hl]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((f,d)=>f!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=Xp(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},ix=e=>Gp(e)&&e[Uf]||null,Ah=(e,t=!0)=>{Cd.set(e,t);};const Eu=e=>typeof e=="object"&&e!==null,ho=new WeakMap,Vs=new WeakSet,ax=(e=Object.is,t=(c,f)=>new Proxy(c,f),n=c=>Eu(c)&&!Vs.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,f,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===f)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Ah(h,!0),o.set(c,[f,h]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(h,v))return;const g=Reflect.get(c,v),p={value:g,enumerable:!0,configurable:!0};if(Vs.has(g))Ah(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>d(g);else if(ho.has(g)){const[b,C]=ho.get(g);p.value=i(b,C(),d);}Object.defineProperty(h,v,p);}),h},a=new WeakMap,s=[1,1],l=c=>{if(!Eu(c))throw new Error("object required");const f=a.get(c);if(f)return f;let d=s[0];const m=new Set,h=(E,O=++s[0])=>{d!==O&&(d=O,m.forEach(N=>N(E,O)));};let v=s[1];const g=(E=++s[1])=>(v!==E&&!m.size&&(v=E,b.forEach(([O])=>{const N=O[1](E);N>d&&(d=N);})),d),p=E=>(O,N)=>{const R=[...O];R[1]=[E,...R[1]],h(R,N);},b=new Map,C=(E,O)=>{if(m.size){const N=O[3](p(E));b.set(E,[O,N]);}else b.set(E,[O]);},$=E=>{var O;const N=b.get(E);N&&(b.delete(E),(O=N[1])==null||O.call(N));},x=E=>(m.add(E),m.size===1&&b.forEach(([N,R],P)=>{const _=N[3](p(P));b.set(P,[N,_]);}),()=>{m.delete(E),m.size===0&&b.forEach(([N,R],P)=>{R&&(R(),b.set(P,[N]));});}),y=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),w=t(y,{deleteProperty(E,O){const N=Reflect.get(E,O);$(O);const R=Reflect.deleteProperty(E,O);return R&&h(["delete",[O],N]),R},set(E,O,N,R){const P=Reflect.has(E,O),_=Reflect.get(E,O,R);if(P&&(e(_,N)||a.has(N)&&e(_,a.get(N))))return !0;$(O),Eu(N)&&(N=ix(N)||N);let T=N;if(N instanceof Promise)N.then(A=>{N.status="fulfilled",N.value=A,h(["resolve",[O],A]);}).catch(A=>{N.status="rejected",N.reason=A,h(["reject",[O],A]);});else {!ho.has(N)&&n(N)&&(T=l(N));const A=!Vs.has(T)&&ho.get(T);A&&C(O,A);}return Reflect.set(E,O,T,R),h(["set",[O],N,_]),!0}});a.set(c,w);const I=[y,g,i,x];return ho.set(w,I),Reflect.ownKeys(c).forEach(E=>{const O=Object.getOwnPropertyDescriptor(c,E);"value"in O&&(w[E]=c[E],delete O.value,delete O.writable),Object.defineProperty(y,E,O);}),w})=>[l,ho,Vs,e,t,n,r,o,i,a,s],[sx]=ax();function ti(e={}){return sx(e)}function Yp(e,t,n){const r=ho.get(e);let o;const i=[],a=r[3];let s=!1;const c=a(f=>{if(i.push(f),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function kh(e,t){const n=ho.get(e),[r,o,i]=n;return i(r,o(),t)}var qp={exports:{}},Zp={};/**
* @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 Fi=u;function lx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cx=typeof Object.is=="function"?Object.is:lx,ux=Fi.useState,dx=Fi.useEffect,fx=Fi.useLayoutEffect,mx=Fi.useDebugValue;function hx(e,t){var n=t(),r=ux({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return fx(function(){o.value=n,o.getSnapshot=t,Ou(o)&&i({inst:o});},[e,n,t]),dx(function(){return Ou(o)&&i({inst:o}),e(function(){Ou(o)&&i({inst:o});})},[e]),mx(n),n}function Ou(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !cx(e,n)}catch{return !0}}function vx(e,t){return t()}var gx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vx:hx;Zp.useSyncExternalStore=Fi.useSyncExternalStore!==void 0?Fi.useSyncExternalStore:gx;qp.exports=Zp;var px=qp.exports;const bx=no(px),{use:Dh}=u,{useSyncExternalStore:yx}=bx;const Cx=new WeakMap;function $o(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const a=yx(u.useCallback(c=>{const f=Yp(e,c,n);return c(),f},[e,n]),()=>{const c=kh(e,Dh);try{if(!i&&r.current&&o.current&&!Xp(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>kh(e,Dh));i=!1;const s=new WeakMap;u.useEffect(()=>{r.current=a,o.current=s;});const l=u.useMemo(()=>new WeakMap,[]);return Up(a,s,l,Cx)}const Xf={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",videoSourceTab:"recommend-app",shuffleForWatchLater:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1},wt=ti({...Xf}),Qp=Object.keys(Xf),Kn=function(){return $o(wt)},Sx=io,Jp=`${Sx}.settings`;async function wx(){const e=await GM.getValue(Jp);e&&typeof e=="object"&&Object.assign(wt,Vp(e,Qp)),Yp(wt,()=>{$x();});}function $x(){const e=Vp(wt,Qp);return GM.setValue(Jp,e)}function qo(e){Object.assign(wt,e);}function xx(){return qo(Xf)}(await wx());var eb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(dp,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",f="week",d="month",m="quarter",h="year",v="date",g="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,C={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(P){var _=["th","st","nd","rd"],T=P%100;return "["+P+(_[(T-20)%10]||_[T]||_[0])+"]"}},$=function(P,_,T){var A=String(P);return !A||A.length>=_?P:""+Array(_+1-A.length).join(T)+P},x={s:$,z:function(P){var _=-P.utcOffset(),T=Math.abs(_),A=Math.floor(T/60),M=T%60;return (_<=0?"+":"-")+$(A,2,"0")+":"+$(M,2,"0")},m:function P(_,T){if(_.date()<T.date())return -P(T,_);var A=12*(T.year()-_.year())+(T.month()-_.month()),M=_.clone().add(A,d),k=T-M<0,z=_.clone().add(A+(k?-1:1),d);return +(-(A+(T-M)/(k?M-z:z-M))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return {M:d,y:h,w:f,d:c,D:v,h:l,m:s,s:a,ms:i,Q:m}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},y="en",S={};S[y]=C;var w=function(P){return P instanceof N},I=function P(_,T,A){var M;if(!_)return y;if(typeof _=="string"){var k=_.toLowerCase();S[k]&&(M=k),T&&(S[k]=T,M=k);var z=_.split("-");if(!M&&z.length>1)return P(z[0])}else {var B=_.name;S[B]=_,M=B;}return !A&&M&&(y=M),M||!A&&y},E=function(P,_){if(w(P))return P.clone();var T=typeof _=="object"?_:{};return T.date=P,T.args=arguments,new N(T)},O=x;O.l=I,O.i=w,O.w=function(P,_){return E(P,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var N=function(){function P(T){this.$L=I(T.locale,null,!0),this.parse(T);}var _=P.prototype;return _.parse=function(T){this.$d=function(A){var M=A.date,k=A.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var z=M.match(p);if(z){var B=z[2]-1||0,W=(z[7]||"0").substring(0,3);return k?new Date(Date.UTC(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(M)}(T),this.$x=T.x||{},this.init();},_.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();},_.$utils=function(){return O},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(T,A){var M=E(T);return this.startOf(A)<=M&&M<=this.endOf(A)},_.isAfter=function(T,A){return E(T)<this.startOf(A)},_.isBefore=function(T,A){return this.endOf(A)<E(T)},_.$g=function(T,A,M){return O.u(T)?this[A]:this.set(M,T)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(T,A){var M=this,k=!!O.u(A)||A,z=O.p(T),B=function(Y,J){var ie=O.w(M.$u?Date.UTC(M.$y,J,Y):new Date(M.$y,J,Y),M);return k?ie:ie.endOf(c)},W=function(Y,J){return O.w(M.toDate()[Y].apply(M.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(J)),M)},j=this.$W,G=this.$M,F=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case h:return k?B(1,0):B(31,11);case d:return k?B(1,G):B(0,G+1);case f:var re=this.$locale().weekStart||0,Z=(j<re?j+7:j)-re;return B(k?F-Z:F+(6-Z),G);case c:case v:return W(K+"Hours",0);case l:return W(K+"Minutes",1);case s:return W(K+"Seconds",2);case a:return W(K+"Milliseconds",3);default:return this.clone()}},_.endOf=function(T){return this.startOf(T,!1)},_.$set=function(T,A){var M,k=O.p(T),z="set"+(this.$u?"UTC":""),B=(M={},M[c]=z+"Date",M[v]=z+"Date",M[d]=z+"Month",M[h]=z+"FullYear",M[l]=z+"Hours",M[s]=z+"Minutes",M[a]=z+"Seconds",M[i]=z+"Milliseconds",M)[k],W=k===c?this.$D+(A-this.$W):A;if(k===d||k===h){var j=this.clone().set(v,1);j.$d[B](W),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d;}else B&&this.$d[B](W);return this.init(),this},_.set=function(T,A){return this.clone().$set(T,A)},_.get=function(T){return this[O.p(T)]()},_.add=function(T,A){var M,k=this;T=Number(T);var z=O.p(A),B=function(G){var F=E(k);return O.w(F.date(F.date()+Math.round(G*T)),k)};if(z===d)return this.set(d,this.$M+T);if(z===h)return this.set(h,this.$y+T);if(z===c)return B(1);if(z===f)return B(7);var W=(M={},M[s]=r,M[l]=o,M[a]=n,M)[z]||1,j=this.$d.getTime()+T*W;return O.w(j,this)},_.subtract=function(T,A){return this.add(-1*T,A)},_.format=function(T){var A=this,M=this.$locale();if(!this.isValid())return M.invalidDate||g;var k=T||"YYYY-MM-DDTHH:mm:ssZ",z=O.z(this),B=this.$H,W=this.$m,j=this.$M,G=M.weekdays,F=M.months,K=function(J,ie,ae,de){return J&&(J[ie]||J(A,k))||ae[ie].slice(0,de)},re=function(J){return O.s(B%12||12,J,"0")},Z=M.meridiem||function(J,ie,ae){var de=J<12?"AM":"PM";return ae?de.toLowerCase():de},Y={YY:String(this.$y).slice(-2),YYYY:O.s(this.$y,4,"0"),M:j+1,MM:O.s(j+1,2,"0"),MMM:K(M.monthsShort,j,F,3),MMMM:K(F,j),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:K(M.weekdaysMin,this.$W,G,2),ddd:K(M.weekdaysShort,this.$W,G,3),dddd:G[this.$W],H:String(B),HH:O.s(B,2,"0"),h:re(1),hh:re(2),a:Z(B,W,!0),A:Z(B,W,!1),m:String(W),mm:O.s(W,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:z};return k.replace(b,function(J,ie){return ie||Y[J]||z.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(T,A,M){var k,z=O.p(A),B=E(T),W=(B.utcOffset()-this.utcOffset())*r,j=this-B,G=O.m(this,B);return G=(k={},k[h]=G/12,k[d]=G,k[m]=G/3,k[f]=(j-W)/6048e5,k[c]=(j-W)/864e5,k[l]=j/o,k[s]=j/r,k[a]=j/n,k)[z]||j,M?G:O.a(G)},_.daysInMonth=function(){return this.endOf(d).$D},_.$locale=function(){return S[this.$L]},_.locale=function(T,A){if(!T)return this.$L;var M=this.clone(),k=I(T,A,!0);return k&&(M.$L=k),M},_.clone=function(){return O.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},P}(),R=N.prototype;return E.prototype=R,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach(function(P){R[P[1]]=function(_){return this.$g(_,P[0],P[1])};}),E.extend=function(P,_){return P.$i||(P(_,N,E),P.$i=!0),E},E.locale=I,E.isDayjs=w,E.unix=function(P){return E(1e3*P)},E.en=S[y],E.Ls=S,E.p={},E});})(eb);var Ex=eb.exports;const aa=no(Ex);var tb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(dp,function(){var n,r,o=1e3,i=6e4,a=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,f=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:f,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function(y){return y instanceof x},v=function(y,S,w){return new x(y,w,S.$l)},g=function(y){return r.p(y)+"s"},p=function(y){return y<0},b=function(y){return p(y)?Math.ceil(y):Math.floor(y)},C=function(y){return Math.abs(y)},$=function(y,S){return y?p(y)?{negative:!0,format:""+C(y)+S}:{negative:!1,format:""+y+S}:{negative:!1,format:""}},x=function(){function y(w,I,E){var O=this;if(this.$d={},this.$l=E,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return v(w*m[g(I)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach(function(P){O.$d[g(P)]=w[P];}),this.calMilliseconds(),this;if(typeof w=="string"){var N=w.match(d);if(N){var R=N.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=R[0],this.$d.months=R[1],this.$d.weeks=R[2],this.$d.days=R[3],this.$d.hours=R[4],this.$d.minutes=R[5],this.$d.seconds=R[6],this.calMilliseconds(),this}}return this}var S=y.prototype;return S.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce(function(I,E){return I+(w.$d[E]||0)*m[E]},0);},S.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=b(w/c),w%=c,this.$d.months=b(w/f),w%=f,this.$d.days=b(w/s),w%=s,this.$d.hours=b(w/a),w%=a,this.$d.minutes=b(w/i),w%=i,this.$d.seconds=b(w/o),w%=o,this.$d.milliseconds=w;},S.toISOString=function(){var w=$(this.$d.years,"Y"),I=$(this.$d.months,"M"),E=+this.$d.days||0;this.$d.weeks&&(E+=7*this.$d.weeks);var O=$(E,"D"),N=$(this.$d.hours,"H"),R=$(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var _=$(P,"S"),T=w.negative||I.negative||O.negative||N.negative||R.negative||_.negative,A=N.format||R.format||_.format?"T":"",M=(T?"-":"")+"P"+w.format+I.format+O.format+A+N.format+R.format+_.format;return M==="P"||M==="-P"?"P0D":M},S.toJSON=function(){return this.toISOString()},S.format=function(w){var I=w||"YYYY-MM-DDTHH:mm:ss",E={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(O,N){return N||String(E[O])})},S.as=function(w){return this.$ms/m[g(w)]},S.get=function(w){var I=this.$ms,E=g(w);return E==="milliseconds"?I%=1e3:I=E==="weeks"?b(I/m[E]):this.$d[E],I===0?0:I},S.add=function(w,I,E){var O;return O=I?w*m[g(I)]:h(w)?w.$ms:v(w,this).$ms,v(this.$ms+O*(E?-1:1),this)},S.subtract=function(w,I){return this.add(w,I,!0)},S.locale=function(w){var I=this.clone();return I.$l=w,I},S.clone=function(){return v(this.$ms,this)},S.humanize=function(w){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},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")},y}();return function(y,S,w){n=w,r=w().$utils(),w.duration=function(O,N){var R=w.locale();return v(O,{$l:R},N)},w.isDuration=h;var I=S.prototype.add,E=S.prototype.subtract;S.prototype.add=function(O,N){return h(O)&&(O=O.asMilliseconds()),I.bind(this)(O,N)},S.prototype.subtract=function(O,N){return h(O)&&(O=O.asMilliseconds()),E.bind(this)(O,N)};}});})(tb);var Ox=tb.exports;const Ix=no(Ox);var nb={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s);}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(nb);var _x=nb.exports;const V=no(_x);function ft(e){"@babel/helpers - typeof";return ft=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},ft(e)}function Px(e,t){if(ft(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ft(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function rb(e){var t=Px(e,"string");return ft(t)==="symbol"?t:String(t)}function q(e,t,n){return t=rb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lh(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?Lh(Object(n),!0).forEach(function(r){q(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Rx(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Je(e,t){if(e==null)return {};var n=Rx(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function ob(e){if(Array.isArray(e))return e}function Tx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,o=f;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Sd(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 Yf(e,t){if(e){if(typeof e=="string")return Sd(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 Sd(e,t)}}function ib(){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 U(e,t){return ob(e)||Tx(e,t)||Yf(e,t)||ib()}function Rn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var wd={},Mx=function(t){};function Nx(e,t){}function Ax(e,t){}function kx(){wd={};}function ab(e,t,n){!t&&!wd[n]&&(e(!1,n),wd[n]=!0);}function zr(e,t){ab(Nx,e,t);}function Dx(e,t){ab(Ax,e,t);}zr.preMessage=Mx;zr.resetWarned=kx;zr.noteOnce=Dx;function Cs(e,t,n){var r=u__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function qf(e,t){typeof e=="function"?e(t):ft(e)==="object"&&e&&"current"in e&&(e.current=t);}function Mn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){qf(i,o);});}}function Ss(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cs(function(){return Mn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function ni(e){var t,n,r=Df.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var sb=u__namespace.createContext(null);function Lx(e){if(Array.isArray(e))return Sd(e)}function lb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zx(){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 qe(e){return Lx(e)||lb(e)||Yf(e)||zx()}var Gt=Rn()?u__namespace.useLayoutEffect:u__namespace.useEffect,Ri=function(t,n){var r=u__namespace.useRef(!0);Gt(function(){if(!r.current)return t()},n),Gt(function(){return r.current=!1,function(){r.current=!0;}},[]);},zh=[];function jx(e,t){var n=u__namespace.useState(function(){if(!Rn())return null;var v=document.createElement("div");return v}),r=U(n,1),o=r[0],i=u__namespace.useRef(!1),a=u__namespace.useContext(sb),s=u__namespace.useState(zh),l=U(s,2),c=l[0],f=l[1],d=a||(i.current?void 0:function(v){f(function(g){var p=[v].concat(qe(g));return p});});function m(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1;}return Gt(function(){return e?a?a(m):m():h(),h},[e]),Gt(function(){c.length&&(c.forEach(function(v){return v()}),f(zh));},[c]),[o,d]}function Hx(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 jh="data-rc-order",Bx="rc-util-key",$d=new Map;function cb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Bx}function Nc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Fx(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ub(e){return Array.from(($d.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function db(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Rn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(jh,Fx(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Nc(t),a=i.firstChild;if(r){if(r==="queue"){var s=ub(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(jh))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function fb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Nc(t);return ub(n).find(function(r){return r.getAttribute(cb(t))===e})}function Nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fb(e,t);if(n){var r=Nc(t);r.removeChild(n);}}function Wx(e,t){var n=$d.get(e);if(!n||!Hx(document,n)){var r=db("",t),o=r.parentNode;$d.set(e,o),e.removeChild(r);}}function Wi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Nc(n);Wx(r,n);var o=fb(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=db(e,n);return l.setAttribute(cb(n),t),l}var Iu;function Vx(e){if(typeof document>"u")return 0;if(e||Iu===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Iu=o-i;}return Iu}function Gx(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Kx="rc-util-locker-".concat(Date.now()),Hh=0;function Ux(e){var t=!!e,n=u__namespace.useState(function(){return Hh+=1,"".concat(Kx,"_").concat(Hh)}),r=U(n,1),o=r[0];Gt(function(){if(t){var i=Vx(),a=Gx();Wi(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else Nl(o);return function(){Nl(o);}},[t,o]);}var Bh=!1;function Xx(e){return typeof e=="boolean"&&(Bh=e),Bh}var Fh=function(t){return t===!1?!1:!Rn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},mb=u__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=u__namespace.useState(n),c=U(l,2),f=c[0],d=c[1],m=f||n;u__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=u__namespace.useState(function(){return Fh(o)}),v=U(h,2),g=v[0],p=v[1];u__namespace.useEffect(function(){var N=Fh(o);p(N??null);});var b=jx(m&&!g),C=U(b,2),$=C[0],x=C[1],y=g??$;Ux(r&&n&&Rn()&&(y===$||y===document.body));var S=null;if(s&&ni(s)&&t){var w=s;S=w.ref;}var I=Ss(S,t);if(!m||!Rn()||g===void 0)return null;var E=y===!1||Xx(),O=s;return t&&(O=u__namespace.cloneElement(s,{ref:I})),u__namespace.createElement(sb.Provider,{value:x},E?O:cp.createPortal(O,y))});function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return u.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):Df.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r));}),n}function Al(e){return e instanceof HTMLElement||e instanceof SVGElement}function kl(e){return Al(e)?e:e instanceof u.Component?cp.findDOMNode(e):null}var hb=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),xd=typeof window<"u"&&typeof document<"u"&&window.document===document,Dl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Yx=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Dl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),qx=2;function Zx(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){Yx(i);}function s(){var l=Date.now();if(n){if(l-o<qx)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var Qx=20,Jx=["top","right","bottom","left","width","height","size","weight"],eE=typeof MutationObserver<"u",tE=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zx(this.refresh.bind(this),Qx);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!xd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eE?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!xd||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Jx.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},Vi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Dl},gb=Ac(0,0,0,0);function Ll(e){return parseFloat(e)||0}function Wh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Ll(i)},0)}function nE(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Ll(a);}return n}function rE(e){var t=e.getBBox();return Ac(0,0,t.width,t.height)}function oE(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return gb;var r=Vi(e).getComputedStyle(e),o=nE(r),i=o.left+o.right,a=o.top+o.bottom,s=Ll(r.width),l=Ll(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Wh(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Wh(r,"top","bottom")+a)),!aE(e)){var c=Math.round(s+i)-t,f=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(f)!==1&&(l-=f);}return Ac(o.left,o.top,s,l)}var iE=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Vi(e).SVGGraphicsElement}:function(e){return e instanceof Vi(e).SVGElement&&typeof e.getBBox=="function"}}();function aE(e){return e===Vi(e).document.documentElement}function sE(e){return xd?iE(e)?rE(e):oE(e):gb}function lE(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return vb(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Ac(e,t,n,r){return {x:e,y:t,width:n,height:r}}var cE=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ac(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=sE(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),uE=function(){function e(t,n){var r=lE(n);vb(this,{target:t,contentRect:r});}return e}(),dE=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new hb,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Vi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new cE(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Vi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new uE(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pb=typeof WeakMap<"u"?new WeakMap:new hb,bb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=tE.getInstance(),r=new dE(t,n,this);pb.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){bb.prototype[e]=function(){var t;return (t=pb.get(this))[e].apply(t,arguments)};});var fE=function(){return typeof Dl.ResizeObserver<"u"?Dl.ResizeObserver:bb}(),go=new Map;function mE(e){e.forEach(function(t){var n,r=t.target;(n=go.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var yb=new fE(mE);function hE(e,t){go.has(e)||(go.set(e,new Set),yb.observe(e)),go.get(e).add(t);}function vE(e,t){go.has(e)&&(go.get(e).delete(t),go.get(e).size||(yb.unobserve(e),go.delete(e)));}function Nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rb(r.key),r);}}function An(e,t,n){return t&&Vh(e.prototype,t),n&&Vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ed(e,t)}function sa(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&&Ed(e,t);}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zl(e)}function gE(){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 Od(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pE(e,t){if(t&&(ft(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Od(e)}function la(e){var t=gE();return function(){var r=zl(e),o;if(t){var i=zl(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return pE(this,o)}}var bE=function(e){sa(n,e);var t=la(n);function n(){return Nn(this,n),t.apply(this,arguments)}return An(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component),Id=u__namespace.createContext(null);function yE(e){var t=e.children,n=e.onBatchResize,r=u__namespace.useRef(0),o=u__namespace.useRef([]),i=u__namespace.useContext(Id),a=u__namespace.useCallback(function(s,l,c){r.current+=1;var f=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return u__namespace.createElement(Id.Provider,{value:a},t)}function CE(e,t){var n=e.children,r=e.disabled,o=u__namespace.useRef(null),i=u__namespace.useRef(null),a=u__namespace.useContext(Id),s=typeof n=="function",l=s?n(o):n,c=u__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&u__namespace.isValidElement(l)&&ni(l),d=f?l.ref:null,m=u__namespace.useMemo(function(){return Mn(d,o)},[d,o]),h=function(){return kl(o.current)||kl(i.current)};u__namespace.useImperativeHandle(t,function(){return h()});var v=u__namespace.useRef(e);v.current=e;var g=u__namespace.useCallback(function(p){var b=v.current,C=b.onResize,$=b.data,x=p.getBoundingClientRect(),y=x.width,S=x.height,w=p.offsetWidth,I=p.offsetHeight,E=Math.floor(y),O=Math.floor(S);if(c.current.width!==E||c.current.height!==O||c.current.offsetWidth!==w||c.current.offsetHeight!==I){var N={width:E,height:O,offsetWidth:w,offsetHeight:I};c.current=N;var R=w===Math.round(y)?y:w,P=I===Math.round(S)?S:I,_=X(X({},N),{},{offsetWidth:R,offsetHeight:P});a==null||a(_,p,$),C&&Promise.resolve().then(function(){C(_,p);});}},[]);return u__namespace.useEffect(function(){var p=h();return p&&!r&&hE(p,g),function(){return vE(p,g)}},[o.current,r]),u__namespace.createElement(bE,{ref:i},f?u__namespace.cloneElement(l,{ref:m}):l)}var SE=u__namespace.forwardRef(CE),wE="rc-observer-key";function $E(e,t){var n=e.children,r=typeof n=="function"?[n]:vr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(wE,"-").concat(i);return u__namespace.createElement(SE,ye({},e,{key:a,ref:i===0?t:void 0}),o)})}var Jr=u__namespace.forwardRef($E);Jr.Collection=yE;function Vn(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function xE(){var e=X({},u__namespace);return e.useId}var Gh=0;function EE(e){var t=u__namespace.useState("ssr-id"),n=U(t,2),r=n[0],o=n[1],i=xE(),a=i==null?void 0:i();return u__namespace.useEffect(function(){if(!i){var s=Gh;Gh+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const kc=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 Kh=u__namespace.createContext(null);function Uh(e){return e?Array.isArray(e)?e:[e]:[]}function OE(e,t,n,r){return u__namespace.useMemo(function(){var o=Uh(n??t),i=Uh(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}const Zf=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1};function IE(){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 _E(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(IE((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Xh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ws(e){return e.ownerDocument.defaultView}function _d(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ws(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function $a(e){return ns(parseFloat(e),0)}function Yh(e,t){var n=X({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=ws(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,f=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=$a(s),b=$a(l),C=$a(c),$=$a(f),x=ns(Math.round(d.width/v*1e3)/1e3),y=ns(Math.round(d.height/m*1e3)/1e3),S=(v-g-C-$)*x,w=(m-h-p-b)*y,I=p*y,E=b*y,O=C*x,N=$*x,R=0,P=0;if(i==="clip"){var _=$a(a);R=_*x,P=_*y;}var T=d.x+O-R,A=d.y+I-P,M=T+d.width+2*R-O-N-S,k=A+d.height+2*P-I-E-w;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,k);}}),n}function qh(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 Zh(e,t){var n=t||[],r=U(n,2),o=r[0],i=r[1];return [qh(e.width,o),qh(e.height,i)]}function Qh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ci(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function so(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 PE(e,t,n,r,o,i,a){var s=u__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=U(s,2),c=l[0],f=l[1],d=u__namespace.useRef(0),m=u__namespace.useMemo(function(){return t?_d(t):[]},[t]),h=u__namespace.useRef({}),v=function(){h.current={};};e||v();var g=Vn(function(){if(t&&n&&e){let rt=function(gt,_t){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q,ir=O.x+gt,bn=O.y+_t,Sr=ir+j,qn=bn+W,Ro=Math.max(ir,Yt.left),js=Math.max(bn,Yt.top),ba=Math.min(Sr,Yt.right),Hs=Math.min(qn,Yt.bottom);return Math.max(0,(ba-Ro)*(Hs-js))},Ct=function(){Ce=O.y+Fe,xe=Ce+W,Ye=O.x+Xe,mt=Ye+j;};var C=t,$=C.style.left,x=C.style.top,y=C.ownerDocument,S=ws(C),w=X(X({},o[r]),i);C.style.left="0",C.style.top="0";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else {var E=n.getBoundingClientRect();I={x:E.x,y:E.y,width:E.width,height:E.height};}var O=C.getBoundingClientRect(),N=S.getComputedStyle(C),R=N.width,P=N.height,_=y.documentElement,T=_.clientWidth,A=_.clientHeight,M=_.scrollWidth,k=_.scrollHeight,z=_.scrollTop,B=_.scrollLeft,W=O.height,j=O.width,G=I.height,F=I.width,K={left:0,top:0,right:T,bottom:A},re={left:-B,top:-z,right:M-B,bottom:k-z},Z=w.htmlRegion,Y="visible",J="visibleFirst";Z!=="scroll"&&Z!==J&&(Z=Y);var ie=Z===J,ae=Yh(re,m),de=Yh(K,m),Q=Z===Y?de:ae,ne=ie?de:Q;C.style.left=$,C.style.top=x;var ce=ns(Math.round(j/parseFloat(R)*1e3)/1e3),se=ns(Math.round(W/parseFloat(P)*1e3)/1e3);if(ce===0||se===0||Al(n)&&!Zf(n))return;var me=w.offset,oe=w.targetOffset,he=Zh(O,me),ue=U(he,2),fe=ue[0],_e=ue[1],et=Zh(I,oe),Ue=U(et,2),De=Ue[0],Qe=Ue[1];I.x-=De,I.y-=Qe;var it=w.points||[],Ze=U(it,2),Ve=Ze[0],Re=Ze[1],be=Qh(Re),je=Qh(Ve),He=ci(I,be),pe=ci(O,je),$e=X({},w),Xe=He.x-pe.x+fe,Fe=He.y-pe.y+_e,dt=rt(Xe,Fe),Ee=rt(Xe,Fe,de),Oe=ci(I,["t","l"]),Le=ci(O,["t","l"]),Pe=ci(I,["b","r"]),tt=ci(O,["b","r"]),St=w.overflow||{},kt=St.adjustX,At=St.adjustY,Ne=St.shiftX,ve=St.shiftY,le=function(_t){return typeof _t=="boolean"?_t:_t>=0},Ce,xe,Ye,mt;Ct();var bt=le(At),Ut=je[0]===be[0];if(bt&&je[0]==="t"&&(xe>ne.bottom||h.current.bt)){var Bt=Fe;Ut?Bt-=W-G:Bt=Oe.y-tt.y-_e;var Ae=rt(Xe,Bt),We=rt(Xe,Bt,de);Ae>dt||Ae===dt&&(!ie||We>=Ee)?(h.current.bt=!0,Fe=Bt,$e.points=[so(je,0),so(be,0)]):h.current.bt=!1;}if(bt&&je[0]==="b"&&(Ce<ne.top||h.current.tb)){var Te=Fe;Ut?Te+=W-G:Te=Pe.y-Le.y-_e;var yt=rt(Xe,Te),vt=rt(Xe,Te,de);yt>dt||yt===dt&&(!ie||vt>=Ee)?(h.current.tb=!0,Fe=Te,$e.points=[so(je,0),so(be,0)]):h.current.tb=!1;}var Qt=le(kt),Me=je[1]===be[1];if(Qt&&je[1]==="l"&&(mt>ne.right||h.current.rl)){var Be=Xe;Me?Be-=j-F:Be=Oe.x-tt.x-fe;var ct=rt(Be,Fe),xt=rt(Be,Fe,de);ct>dt||ct===dt&&(!ie||xt>=Ee)?(h.current.rl=!0,Xe=Be,$e.points=[so(je,1),so(be,1)]):h.current.rl=!1;}if(Qt&&je[1]==="r"&&(Ye<ne.left||h.current.lr)){var Xt=Xe;Me?Xt+=j-F:Xt=Pe.x-Le.x-fe;var zt=rt(Xt,Fe),pn=rt(Xt,Fe,de);zt>dt||zt===dt&&(!ie||pn>=Ee)?(h.current.lr=!0,Xe=Xt,$e.points=[so(je,1),so(be,1)]):h.current.lr=!1;}Ct();var In=Ne===!0?0:Ne;typeof In=="number"&&(Ye<Q.left&&(Xe-=Ye-Q.left,I.x+F<Q.left+In&&(Xe+=I.x-Q.left+F-In)),mt>Q.right&&(Xe-=mt-Q.right,I.x>Q.right-In&&(Xe+=I.x-Q.right+In)));var or=ve===!0?0:ve;typeof or=="number"&&(Ce<Q.top&&(Fe-=Ce-Q.top,I.y+G<Q.top+or&&(Fe+=I.y-Q.top+G-or)),xe>Q.bottom&&(Fe-=xe-Q.bottom,I.y>Q.bottom-or&&(Fe+=I.y-Q.bottom+or)));var jr=O.x+Xe,Cr=jr+j,Yn=O.y+Fe,$n=Yn+W,Hr=I.x,Oo=Hr+F,Br=I.y,Fr=Br+G,Wr=Math.max(jr,Hr),Io=Math.min(Cr,Oo),_o=(Wr+Io)/2,Po=_o-jr,Vr=Math.max(Yn,Br),It=Math.min($n,Fr),we=(Vr+It)/2,Se=we-Yn;a==null||a(t,$e),f({ready:!0,offsetX:Xe/ce,offsetY:Fe/se,arrowX:Po/ce,arrowY:Se/se,scaleX:ce,scaleY:se,align:$e});}}),p=function(){d.current+=1;var $=d.current;Promise.resolve().then(function(){d.current===$&&g();});},b=function(){f(function($){return X(X({},$),{},{ready:!1})});};return Gt(b,[r]),Gt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function RE(e,t,n,r){Gt(function(){if(e&&t&&n){let f=function(){r();};var o=t,i=n,a=_d(o),s=_d(i),l=ws(i),c=new Set([l].concat(qe(a),qe(s)));return c.forEach(function(d){d.addEventListener("scroll",f,{passive:!0});}),l.addEventListener("resize",f,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",f),l.removeEventListener("resize",f);});}}},[e,t,n]);}var TE=["children"],Cb=u__namespace.createContext({});function ME(e){var t=e.children,n=Je(e,TE);return u__namespace.createElement(Cb.Provider,{value:n},t)}var NE=function(e){sa(n,e);var t=la(n);function n(){return Nn(this,n),t.apply(this,arguments)}return An(n,[{key:"render",value:function(){return this.props.children}}]),n}(u__namespace.Component);function Vo(e){var t=u__namespace.useRef(!1),n=u__namespace.useState(e),r=U(n,2),o=r[0],i=r[1];u__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}var Mo="none",Gs="appear",Ks="enter",Us="leave",Jh="none",mr="prepare",$i="start",xi="active",Qf="end",Sb="prepared";function ev(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 AE(e,t){var n={animationend:ev("Animation","AnimationEnd"),transitionend:ev("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var kE=AE(Rn(),typeof window<"u"?window:{}),wb={};if(Rn()){var DE=document.createElement("div");wb=DE.style;}var Xs={};function $b(e){if(Xs[e])return Xs[e];var t=kE[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in wb)return Xs[e]=t[i],Xs[e]}return ""}var xb=$b("animationend"),Eb=$b("transitionend"),Ob=!!(xb&&Eb),tv=xb||"animationend",nv=Eb||"transitionend";function rv(e,t){if(!e)return null;if(ft(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const LE=function(e){var t=u.useRef(),n=u.useRef(e);n.current=e;var r=u__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(nv,r),a.removeEventListener(tv,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(nv,r),a.addEventListener(tv,r),t.current=a);}return u__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var Ib=Rn()?u.useLayoutEffect:u.useEffect,_b=function(t){return +setTimeout(t,16)},Pb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(_b=function(t){return window.requestAnimationFrame(t)},Pb=function(t){return window.cancelAnimationFrame(t)});var ov=0,Jf=new Map;function Rb(e){Jf.delete(e);}var Mt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ov+=1;var r=ov;function o(i){if(i===0)Rb(r),t();else {var a=_b(function(){o(i-1);});Jf.set(r,a);}}return o(n),r};Mt.cancel=function(e){var t=Jf.get(e);return Rb(t),Pb(t)};const zE=function(){var e=u__namespace.useRef(null);function t(){Mt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Mt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return u__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var jE=[mr,$i,xi,Qf],HE=[mr,Sb],Tb=!1,BE=!0;function Mb(e){return e===xi||e===Qf}const FE=function(e,t,n){var r=Vo(Jh),o=U(r,2),i=o[0],a=o[1],s=zE(),l=U(s,2),c=l[0],f=l[1];function d(){a(mr,!0);}var m=t?HE:jE;return Ib(function(){if(i!==Jh&&i!==Qf){var h=m.indexOf(i),v=m[h+1],g=n(i);g===Tb?a(v,!0):v&&c(function(p){function b(){p.isCanceled()||a(v,!0);}g===!0?b():Promise.resolve(g).then(b);});}},[e,i]),u__namespace.useEffect(function(){return function(){f();}},[]),[d,i]};function WE(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,f=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,C=r.onAppearActive,$=r.onEnterActive,x=r.onLeaveActive,y=r.onAppearEnd,S=r.onEnterEnd,w=r.onLeaveEnd,I=r.onVisibleChanged,E=Vo(),O=U(E,2),N=O[0],R=O[1],P=Vo(Mo),_=U(P,2),T=_[0],A=_[1],M=Vo(null),k=U(M,2),z=k[0],B=k[1],W=u.useRef(!1),j=u.useRef(null);function G(){return n()}var F=u.useRef(!1);function K(){A(Mo,!0),B(null,!0);}function re(he){var ue=G();if(!(he&&!he.deadline&&he.target!==ue)){var fe=F.current,_e;T===Gs&&fe?_e=y==null?void 0:y(ue,he):T===Ks&&fe?_e=S==null?void 0:S(ue,he):T===Us&&fe&&(_e=w==null?void 0:w(ue,he)),T!==Mo&&fe&&_e!==!1&&K();}}var Z=LE(re),Y=U(Z,1),J=Y[0],ie=function(ue){var fe,_e,et;switch(ue){case Gs:return fe={},q(fe,mr,m),q(fe,$i,g),q(fe,xi,C),fe;case Ks:return _e={},q(_e,mr,h),q(_e,$i,p),q(_e,xi,$),_e;case Us:return et={},q(et,mr,v),q(et,$i,b),q(et,xi,x),et;default:return {}}},ae=u__namespace.useMemo(function(){return ie(T)},[T]),de=FE(T,!e,function(he){if(he===mr){var ue=ae[mr];return ue?ue(G()):Tb}if(ce in ae){var fe;B(((fe=ae[ce])===null||fe===void 0?void 0:fe.call(ae,G(),null))||null);}return ce===xi&&(J(G()),f>0&&(clearTimeout(j.current),j.current=setTimeout(function(){re({deadline:!0});},f))),ce===Sb&&K(),BE}),Q=U(de,2),ne=Q[0],ce=Q[1],se=Mb(ce);F.current=se,Ib(function(){R(t);var he=W.current;W.current=!0;var ue;!he&&t&&s&&(ue=Gs),he&&t&&i&&(ue=Ks),(he&&!t&&c||!he&&d&&!t&&c)&&(ue=Us);var fe=ie(ue);ue&&(e||fe[mr])?(A(ue),ne()):A(Mo);},[t]),u.useEffect(function(){(T===Gs&&!s||T===Ks&&!i||T===Us&&!c)&&A(Mo);},[s,i,c]),u.useEffect(function(){return function(){W.current=!1,clearTimeout(j.current);}},[]);var me=u__namespace.useRef(!1);u.useEffect(function(){N&&(me.current=!0),N!==void 0&&T===Mo&&((me.current||N)&&(I==null||I(N)),me.current=!0);},[N,T]);var oe=z;return ae[mr]&&ce===$i&&(oe=X({transition:"none"},oe)),[T,ce,oe,N??t]}function VE(e){var t=e;ft(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=u__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,f=o.forceRender,d=o.children,m=o.motionName,h=o.leavedClassName,v=o.eventProps,g=u__namespace.useContext(Cb),p=g.motion,b=n(o,p),C=u.useRef(),$=u.useRef();function x(){try{return C.current instanceof HTMLElement?C.current:kl($.current)}catch{return null}}var y=WE(b,s,x,o),S=U(y,4),w=S[0],I=S[1],E=S[2],O=S[3],N=u__namespace.useRef(O);O&&(N.current=!0);var R=u__namespace.useCallback(function(B){C.current=B,qf(i,B);},[i]),P,_=X(X({},v),{},{visible:s});if(!d)P=null;else if(w===Mo)O?P=d(X({},_),R):!c&&N.current&&h?P=d(X(X({},_),{},{className:h}),R):f||!c&&!h?P=d(X(X({},_),{},{style:{display:"none"}}),R):P=null;else {var T,A;I===mr?A="prepare":Mb(I)?A="active":I===$i&&(A="start");var M=rv(m,"".concat(w,"-").concat(A));P=d(X(X({},_),{},{className:V(rv(m,w),(T={},q(T,M,M&&A),q(T,m,typeof m=="string"),T)),style:E}),R);}if(u__namespace.isValidElement(P)&&ni(P)){var k=P,z=k.ref;z||(P=u__namespace.cloneElement(P,{ref:R}));}return u__namespace.createElement(NE,{ref:$},P)});return r.displayName="CSSMotion",r}const xo=VE(Ob);var Pd="add",Rd="keep",Td="remove",_u="removed";function GE(e){var t;return e&&ft(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function Md(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(GE)}function KE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Md(e),a=Md(t);i.forEach(function(c){for(var f=!1,d=r;d<o;d+=1){var m=a[d];if(m.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(h){return X(X({},h),{},{status:Pd})})),r=d),n.push(X(X({},m),{},{status:Rd})),r+=1,f=!0;break}}f||n.push(X(X({},c),{},{status:Td}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return X(X({},c),{},{status:Pd})})));var s={};n.forEach(function(c){var f=c.key;s[f]=(s[f]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(f){var d=f.key,m=f.status;return d!==c||m!==Td}),n.forEach(function(f){f.key===c&&(f.status=Rd);});}),n}var UE=["component","children","onVisibleChanged","onAllRemoved"],XE=["status"],YE=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xo,n=function(r){sa(i,r);var o=la(i);function i(){var a;Nn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),q(Od(a),"state",{keyEntities:[]}),q(Od(a),"removeKey",function(f){var d=a.state.keyEntities,m=d.map(function(h){return h.key!==f?h:X(X({},h),{},{status:_u})});return a.setState({keyEntities:m}),m.filter(function(h){var v=h.status;return v!==_u}).length}),a}return An(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,f=c.component,d=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,v=Je(c,UE),g=f||u__namespace.Fragment,p={};return YE.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,u__namespace.createElement(g,v,l.map(function(b){var C=b.status,$=Je(b,XE),x=C===Pd||C===Rd;return u__namespace.createElement(t,ye({},p,{key:$.key,visible:x,eventProps:$,onVisibleChanged:function(S){if(m==null||m(S,{key:$.key}),!S){var w=s.removeKey($.key);w===0&&h&&h();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,f=l.keyEntities,d=Md(c),m=KE(f,d);return {keyEntities:m.filter(function(h){var v=f.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===_u&&h.status===Td)})}}}]),i}(u__namespace.Component);return q(n,"defaultProps",{component:"div"}),n}qE(Ob);function ZE(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,f=o.y,d=f===void 0?0:f,m=u__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],g=n.points[1],p=v[0],b=v[1],C=g[0],$=g[1];p===C||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===$||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return u__namespace.createElement("div",{ref:m,className:V("".concat(t,"-arrow"),a),style:h},s)}function QE(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u__namespace.createElement(xo,ye({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return u__namespace.createElement("div",{style:{zIndex:r},className:V("".concat(t,"-mask"),s)})}):null}var JE=u__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),e2=u__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,f=e.onClick,d=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,g=e.motion,p=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,$=e.autoDestroy,x=e.portal,y=e.zIndex,S=e.onMouseEnter,w=e.onMouseLeave,I=e.ready,E=e.offsetX,O=e.offsetY,N=e.onAlign,R=e.onPrepare,P=e.stretch,_=e.targetWidth,T=e.targetHeight,A=typeof n=="function"?n():n,M=l||c,k=(C==null?void 0:C.length)>0,z=u__namespace.useState(!C||!k),B=U(z,2),W=B[0],j=B[1];if(Gt(function(){!W&&k&&a&&j(!0);},[W,k,a]),!W)return null;var G=I||!l?{left:E,top:O}:{left:"-1000vw",top:"-1000vh"},F={};return P&&(P.includes("height")&&T?F.height=T:P.includes("minHeight")&&T&&(F.minHeight=T),P.includes("width")&&_?F.width=_:P.includes("minWidth")&&_&&(F.minWidth=_)),l||(F.pointerEvents="none"),u__namespace.createElement(x,{open:b||M,getContainer:C&&function(){return C(a)},autoDestroy:$},u__namespace.createElement(QE,{prefixCls:o,open:l,zIndex:y,mask:d,motion:p}),u__namespace.createElement(Jr,{onResize:N,disabled:!l},function(K){return u__namespace.createElement(xo,ye({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:R,onEnterPrepare:R,visible:l,onVisibleChanged:function(Z){var Y;g==null||(Y=g.onVisibleChanged)===null||Y===void 0||Y.call(g,Z),s(Z);}}),function(re,Z){var Y=re.className,J=re.style,ie=V(o,Y,r);return u__namespace.createElement("div",{ref:Mn(K,t,Z),className:ie,style:X(X(X(X({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),F),J),{},{boxSizing:"border-box",zIndex:y},i),onMouseEnter:S,onMouseLeave:w,onClick:f},m&&u__namespace.createElement(ZE,{prefixCls:o,arrow:m,arrowPos:h,align:v}),u__namespace.createElement(JE,{cache:!l},A))})}))}),t2=u__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ni(n),i=u__namespace.useCallback(function(s){qf(t,r?r(s):s);},[r]),a=Ss(i,n.ref);return o?u__namespace.cloneElement(n,{ref:a}):n}),n2=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function r2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mb,t=u__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,f=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,g=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,C=n.focusDelay,$=n.blurDelay,x=n.mask,y=n.maskClosable,S=y===void 0?!0:y,w=n.getPopupContainer,I=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,N=n.popup,R=n.popupClassName,P=n.popupStyle,_=n.popupPlacement,T=n.builtinPlacements,A=T===void 0?{}:T,M=n.popupAlign,k=n.zIndex,z=n.stretch,B=n.getPopupClassNameFromAlign,W=n.alignPoint,j=n.onPopupClick,G=n.onPopupAlign,F=n.arrow,K=n.popupMotion,re=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,J=n.maskTransitionName,ie=n.maskAnimation,ae=n.className,de=n.getTriggerDOMNode,Q=Je(n,n2),ne=E||O||!1,ce=u__namespace.useState(!1),se=U(ce,2),me=se[0],oe=se[1];Gt(function(){oe(kc());},[]);var he=u__namespace.useRef({}),ue=u__namespace.useContext(Kh),fe=u__namespace.useMemo(function(){return {registerSubPopup:function(ot,Tt){he.current[ot]=Tt,ue==null||ue.registerSubPopup(ot,Tt);}}},[ue]),_e=EE(),et=u__namespace.useState(null),Ue=U(et,2),De=Ue[0],Qe=Ue[1],it=Vn(function(ze){Al(ze)&&De!==ze&&Qe(ze),ue==null||ue.registerSubPopup(_e,ze);}),Ze=u__namespace.useState(null),Ve=U(Ze,2),Re=Ve[0],be=Ve[1],je=Vn(function(ze){Al(ze)&&Re!==ze&&be(ze);}),He=u__namespace.Children.only(a),pe=(He==null?void 0:He.props)||{},$e={},Xe=Vn(function(ze){var ot,Tt,Dt=Re;return (Dt==null?void 0:Dt.contains(ze))||(Dt==null||(ot=Dt.getRootNode())===null||ot===void 0?void 0:ot.host)===ze||ze===Dt||(De==null?void 0:De.contains(ze))||(De==null||(Tt=De.getRootNode())===null||Tt===void 0?void 0:Tt.host)===ze||ze===De||Object.values(he.current).some(function(Pt){return (Pt==null?void 0:Pt.contains(ze))||ze===Pt})}),Fe=Xh(i,K,Y,Z),dt=Xh(i,re,ie,J),Ee=u__namespace.useState(m||!1),Oe=U(Ee,2),Le=Oe[0],Pe=Oe[1],tt=d??Le,St=Vn(function(ze){d===void 0&&Pe(ze);});Gt(function(){Pe(d||!1);},[d]);var kt=u__namespace.useRef(tt);kt.current=tt;var At=Vn(function(ze){tt!==ze&&(St(ze),h==null||h(ze));}),Ne=u__namespace.useRef(),ve=function(){clearTimeout(Ne.current);},le=function(ot){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ve(),Tt===0?At(ot):Ne.current=setTimeout(function(){At(ot);},Tt*1e3);};u__namespace.useEffect(function(){return ve},[]);var Ce=u__namespace.useState(!1),xe=U(Ce,2),Ye=xe[0],mt=xe[1],bt=u__namespace.useRef(!0);Gt(function(){(!bt.current||tt)&&mt(!0),bt.current=!0;},[tt]);var Ut=u__namespace.useState(null),Bt=U(Ut,2),Ae=Bt[0],We=Bt[1],Te=u__namespace.useState([0,0]),yt=U(Te,2),vt=yt[0],Qt=yt[1],Me=function(ot){Qt([ot.clientX,ot.clientY]);},Be=PE(tt,De,W?vt:Re,_,A,M,G),ct=U(Be,9),xt=ct[0],Xt=ct[1],zt=ct[2],pn=ct[3],In=ct[4],or=ct[5],jr=ct[6],Cr=ct[7],Yn=ct[8],$n=Vn(function(){Ye||Yn();});RE(tt,Re,De,$n),Gt(function(){$n();},[vt,_]),Gt(function(){tt&&!(A!=null&&A[_])&&$n();},[JSON.stringify(M)]);var Hr=u__namespace.useMemo(function(){var ze=_E(A,i,Cr,W);return V(ze,B==null?void 0:B(Cr))},[Cr,B,A,i,W]);u__namespace.useImperativeHandle(r,function(){return {forceAlign:$n}});var Oo=function(ot){mt(!1),Yn(),v==null||v(ot);},Br=function(){return new Promise(function(ot){We(function(){return ot});})};Gt(function(){Ae&&(Yn(),Ae(),We(null));},[Ae]);var Fr=u__namespace.useState(0),Wr=U(Fr,2),Io=Wr[0],_o=Wr[1],Po=u__namespace.useState(0),Vr=U(Po,2),It=Vr[0],we=Vr[1],Se=function(ot,Tt){if($n(),z){var Dt=Tt.getBoundingClientRect();_o(Dt.width),we(Dt.height);}},rt=OE(me,l,c,f),Ct=U(rt,2),gt=Ct[0],_t=Ct[1],Yt=function(ot,Tt,Dt,Pt){$e[ot]=function(ya){var si;Pt==null||Pt(ya),le(Tt,Dt);for(var To=arguments.length,li=new Array(To>1?To-1:0),Bs=1;Bs<To;Bs++)li[Bs-1]=arguments[Bs];(si=pe[ot])===null||si===void 0||si.call.apply(si,[pe,ya].concat(li));};},ir=gt.has("click"),bn=_t.has("click")||_t.has("contextMenu");(ir||bn)&&($e.onClick=function(ze){var ot;kt.current&&bn?le(!1):!kt.current&&ir&&(Me(ze),le(!0));for(var Tt=arguments.length,Dt=new Array(Tt>1?Tt-1:0),Pt=1;Pt<Tt;Pt++)Dt[Pt-1]=arguments[Pt];(ot=pe.onClick)===null||ot===void 0||ot.call.apply(ot,[pe,ze].concat(Dt));}),u__namespace.useEffect(function(){if(bn&&De&&(!x||S)){var ze=!1,ot=function(To){var li=To.target;ze=Xe(li);},Tt=function(To){var li=To.target;kt.current&&!ze&&!Xe(li)&&le(!1);},Dt=ws(De),Pt=Re==null?void 0:Re.getRootNode();Dt.addEventListener("mousedown",ot),Dt.addEventListener("click",Tt);var ya=Pt&&Pt!==Re.ownerDocument;return ya&&(Pt.addEventListener("mousedown",ot),Pt.addEventListener("click",Tt)),function(){Dt.removeEventListener("mousedown",ot),Dt.removeEventListener("click",Tt),ya&&(Pt.removeEventListener("mousedown",ot),Pt.removeEventListener("click",Tt));}}},[bn,Re,De,x,S]);var Sr=gt.has("hover"),qn=_t.has("hover"),Ro,js;Sr&&(Yt("onMouseEnter",!0,g,function(ze){Me(ze);}),Ro=function(){le(!0,g);},W&&($e.onMouseMove=function(ze){var ot;(ot=pe.onMouseMove)===null||ot===void 0||ot.call(pe,ze);})),qn&&(Yt("onMouseLeave",!1,b),js=function(){le(!1,b);}),gt.has("focus")&&Yt("onFocus",!0,C),_t.has("focus")&&Yt("onBlur",!1,$),gt.has("contextMenu")&&($e.onContextMenu=function(ze){var ot;Me(ze),le(!0),ze.preventDefault();for(var Tt=arguments.length,Dt=new Array(Tt>1?Tt-1:0),Pt=1;Pt<Tt;Pt++)Dt[Pt-1]=arguments[Pt];(ot=pe.onContextMenu)===null||ot===void 0||ot.call.apply(ot,[pe,ze].concat(Dt));}),ae&&($e.className=V(pe.className,ae));var ba=X(X({},pe),$e),Hs={},GS=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];GS.forEach(function(ze){Q[ze]&&(Hs[ze]=function(){for(var ot,Tt=arguments.length,Dt=new Array(Tt),Pt=0;Pt<Tt;Pt++)Dt[Pt]=arguments[Pt];(ot=ba[ze])===null||ot===void 0||ot.call.apply(ot,[ba].concat(Dt)),Q[ze].apply(Q,Dt);});});var KS=u__namespace.cloneElement(He,X(X({},ba),Hs)),US={x:pn,y:In},XS=F?X({},F!==!0?F:{}):null;return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement(Jr,{disabled:!tt,ref:je,onResize:Se},u__namespace.createElement(t2,{getTriggerDOMNode:de},KS)),u__namespace.createElement(Kh.Provider,{value:fe},u__namespace.createElement(e2,{portal:e,ref:it,prefixCls:i,popup:N,className:V(R,Hr),style:P,target:Re,onMouseEnter:Ro,onMouseLeave:js,zIndex:k,open:tt,keepDom:Ye,onClick:j,mask:x,motion:Fe,maskMotion:dt,onVisibleChanged:Oo,onPrepare:Br,forceRender:I,autoDestroy:ne,getPopupContainer:w,align:Cr,arrow:XS,arrowPos:US,ready:xt,offsetX:Xt,offsetY:zt,onAlign:$n,stretch:z,targetWidth:Io/or,targetHeight:It/jr})))});return t}const Dc=r2(mb);var ui={shiftX:64,adjustY:1},di={adjustX:1,shiftY:!0},Zn=[0,0],o2={left:{points:["cr","cl"],overflow:di,offset:[-4,0],targetOffset:Zn},right:{points:["cl","cr"],overflow:di,offset:[4,0],targetOffset:Zn},top:{points:["bc","tc"],overflow:ui,offset:[0,-4],targetOffset:Zn},bottom:{points:["tc","bc"],overflow:ui,offset:[0,4],targetOffset:Zn},topLeft:{points:["bl","tl"],overflow:ui,offset:[0,-4],targetOffset:Zn},leftTop:{points:["tr","tl"],overflow:di,offset:[-4,0],targetOffset:Zn},topRight:{points:["br","tr"],overflow:ui,offset:[0,-4],targetOffset:Zn},rightTop:{points:["tl","tr"],overflow:di,offset:[4,0],targetOffset:Zn},bottomRight:{points:["tr","br"],overflow:ui,offset:[0,4],targetOffset:Zn},rightBottom:{points:["bl","br"],overflow:di,offset:[4,0],targetOffset:Zn},bottomLeft:{points:["tl","bl"],overflow:ui,offset:[0,4],targetOffset:Zn},leftBottom:{points:["br","bl"],overflow:di,offset:[-4,0],targetOffset:Zn}};function em(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return u__namespace.createElement("div",{className:V("".concat(n,"-content"),i),style:a},u__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var i2=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],a2=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,f=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,b=t.animation,C=t.motion,$=t.placement,x=$===void 0?"right":$,y=t.align,S=y===void 0?{}:y,w=t.destroyTooltipOnHide,I=w===void 0?!1:w,E=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,P=t.id,_=t.showArrow,T=_===void 0?!0:_,A=Je(t,i2),M=u.useRef(null);u.useImperativeHandle(n,function(){return M.current});var k=X({},A);"visible"in t&&(k.popupVisible=t.visible);var z=function(){return u__namespace.createElement(em,{key:"content",prefixCls:m,id:P,overlayInnerStyle:N},R)};return u__namespace.createElement(Dc,ye({popupClassName:r,prefixCls:m,popup:z,action:i,builtinPlacements:o2,popupPlacement:x,ref:M,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:C,defaultPopupVisible:E,autoDestroy:I,mouseLeaveDelay:c,popupStyle:f,mouseEnterDelay:s,arrow:T},k),h)};const s2=u.forwardRef(a2);function Pu(e){return e!==void 0}function Zt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Vo(function(){return Pu(o)?o:Pu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=U(s,2),c=l[0],f=l[1],d=o!==void 0?o:c,m=a?a(d):d,h=Vn(i),v=Vo([d]),g=U(v,2),p=g[0],b=g[1];Ri(function(){var $=p[0];c!==$&&h(c,$);},[p]),Ri(function(){Pu(o)||f(o);},[o]);var C=Vn(function($,x){f($,x),b([d],x);});return [m,C]}const Ru=()=>({height:0,opacity:0}),iv=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},l2=e=>({height:e?e.offsetHeight:0}),Tu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Nb=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ru,onEnterStart:Ru,onAppearActive:iv,onEnterActive:iv,onLeaveStart:l2,onLeaveActive:Ru,onAppearEnd:Tu,onEnterEnd:Tu,onLeaveEnd:Tu,motionDeadline:500}},c2=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Lc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,u2=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),f=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-f,h=d,v=2*i-l,g=c,p=2*i-a,b=s,C=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=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(${$}px 100%, 50% ${$}px, ${2*i-$}px 100%, ${$}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${f} ${d} A ${t} ${t} 0 0 1 ${m} ${h} L ${v} ${g} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:C,height:C,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"}}},Ab=8;function tm(e){const t=Ab,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Ys(e,t){return e?t:{}}function nm(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:f=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=tm({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"},u2(r,o,i,s,a)),{"&:before":{background:s}})]},Ys(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Ys(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Ys(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),Ys(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function d2(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const av={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"]}},f2={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"]}},m2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function kb(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(av).forEach(c=>{const f=r&&f2[c]||av[c],d=Object.assign(Object.assign({},f),{offset:[0,0]});switch(l[c]=d,m2.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 m=tm({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=d2(c,m,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Zo}=u__namespace;function Db(e){return e&&Zo(e)&&e.type===u__namespace.Fragment}function h2(e,t,n){return Zo(e)?u__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function En(e,t){return h2(e,e,t)}function rm(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 zc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(zr(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var f=0;f<i.length;f++)if(!o(i[f],a[f],c))return !1;return !0}if(i&&a&&ft(i)==="object"&&ft(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(m){return o(i[m],a[m],c)})}return !1}return o(e,t)}var v2=function(){function e(t){Nn(this,e),q(this,"instanceId",void 0),q(this,"cache",new Map),this.instanceId=t;}return An(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a);}}]),e}(),Nd="data-token-hash",Ti="data-css-hash",Ei="__cssinjs_instance__";function g2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ti,"]"))||[],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(Ti,"]"))).forEach(function(o){var i=o.getAttribute(Ti);if(r[i]){if(o[Ei]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new v2(e)}var p2=u__namespace.createContext({hashPriority:"low",cache:g2(),defaultCache:!0});const om=p2;function jl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&ft(r)==="object"?t+=jl(r):t+=r;}),t}function b2(e,t){return rm("".concat(t,"_").concat(jl(e)))}var La="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Lb="903px";function y2(e,t){if(Rn()){var n;Wi(e,La);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===Lb;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),Nl(La),o}return !1}var Mu=void 0;function C2(){return Mu===void 0&&(Mu=y2("@layer ".concat(La," { .").concat(La," { width: ").concat(Lb,"!important; } }"),function(e){e.className=La;})),Mu}function zb(e,t,n,r){var o=u__namespace.useContext(om),i=o.cache,a=[e].concat(qe(t));return u__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=U(l,2),f=c[0],d=f===void 0?0:f,m=c[1],h=m,v=h||n();return [d+1,v]});},[a.join("_")]),u__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=U(l,2),f=c[0],d=f===void 0?0:f,m=c[1],h=d-1;return h===0?(r==null||r(m,!1),null):[d-1,m]});}},a),i.get(a)[1]}var S2={},w2="css",ko=new Map;function $2(e){ko.set(e,(ko.get(e)||0)+1);}function x2(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Nd,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ei]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function E2(e,t){ko.set(e,(ko.get(e)||0)-1);var n=Array.from(ko.keys()),r=n.filter(function(o){var i=ko.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){x2(o,t),ko.delete(o);});}var jb=function(t,n,r,o){var i=r.getDerivativeToken(t),a=X(X({},i),n);return o&&(a=o(a)),a};function O2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(om),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?S2:s,c=n.formatToken,f=u__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(qe(t)))},[t]),d=u__namespace.useMemo(function(){return jl(f)},[f]),m=u__namespace.useMemo(function(){return jl(l)},[l]),h=zb("token",[a,e.id,d,m],function(){var v=jb(f,l,e,c),g=b2(v,a);v._tokenKey=g,$2(g);var p="".concat(w2,"-").concat(rm(g));return v._hashId=p,[v,p]},function(v){E2(v[0]._tokenKey,o);});return h}var I2={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},sv=Rn(),_2="_skip_check_",Hb="_multi_value_";function lv(e){var t=Wo(Cp(e),Sp);return t.replace(/\{%%%\:[^;];}/g,";")}function P2(e){return ft(e)==="object"&&e&&(_2 in e||Hb in e)}function R2(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",f=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(f).concat(o).concat(c.slice(f.length)),[c].concat(qe(l.slice(1))).join(" ")});return i.join(",")}var T2=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,f=n.transformers,d=f===void 0?[]:f;n.linters;var m="",h={};function v($){var x=$.getName(s);if(!h[x]){var y=e($.style,n,{root:!1,parentSelectors:a}),S=U(y,1),w=S[0];h[x]="@keyframes ".concat($.getName(s)).concat(w);}}function g($){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(y){Array.isArray(y)?g(y,x):y&&x.push(y);}),x}var p=g(Array.isArray(t)?t:[t]);if(p.forEach(function($){var x=typeof $=="string"&&!o?{}:$;if(typeof x=="string")m+="".concat(x,`
`);else if(x._keyframe)v(x);else {var y=d.reduce(function(S,w){var I;return (w==null||(I=w.visit)===null||I===void 0?void 0:I.call(w,S))||S},x);Object.keys(y).forEach(function(S){var w=y[S];if(ft(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!P2(w)){var I=!1,E=S.trim(),O=!1;(o||i)&&s?E.startsWith("@")?I=!0:E=R2(S,s,c):o&&!s&&(E==="&"||E==="")&&(E="",O=!0);var N=e(w,n,{root:O,injectHash:I,parentSelectors:[].concat(qe(a),[E])}),R=U(N,2),P=R[0],_=R[1];h=X(X({},h),_),m+="".concat(E).concat(P);}else {let M=function(k,z){var B=k.replace(/[A-Z]/g,function(j){return "-".concat(j.toLowerCase())}),W=z;!I2[k]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),k==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(v(z),W=z.getName(s)),m+="".concat(B,":").concat(W,";");};var T,A=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;ft(w)==="object"&&w!==null&&w!==void 0&&w[Hb]&&Array.isArray(A)?A.forEach(function(k){M(S,k);}):M(S,A);}});}}),!o)m="{".concat(m,"}");else if(l&&C2()){var b=l.split(","),C=b[b.length-1].trim();m="@layer ".concat(C," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,h]};function M2(e,t){return rm("".concat(e.join("%")).concat(t))}function N2(){return null}function Ad(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=u__namespace.useContext(om),l=s.autoClear;s.mock;var c=s.defaultCache,f=s.hashPriority,d=s.container,m=s.ssrInline,h=s.transformers,v=s.linters,g=s.cache,p=n._tokenKey,b=[p].concat(qe(r)),C=sv,$=zb("style",b,function(){var I=t(),E=T2(I,{hashId:o,hashPriority:f,layer:i,path:r.join("-"),transformers:h,linters:v}),O=U(E,2),N=O[0],R=O[1],P=lv(N),_=M2(b,P);if(C){var T={mark:Ti,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(T.csp={nonce:A});var M=Wi(P,_,T);M[Ei]=g.instanceId,M.setAttribute(Nd,p),Object.keys(R).forEach(function(k){Wi(lv(R[k]),"_effect-".concat(k),T);});}return [P,p,_]},function(I,E){var O=U(I,3),N=O[2];(E||l)&&sv&&Nl(N,{mark:Ti});}),x=U($,3),y=x[0],S=x[1],w=x[2];return function(I){var E;if(!m||C||!c)E=u__namespace.createElement(N2,null);else {var O;E=u__namespace.createElement("style",ye({},(O={},q(O,Nd,S),q(O,Ti,w),O),{dangerouslySetInnerHTML:{__html:y}}));}return u__namespace.createElement(u__namespace.Fragment,null,E,I)}}var Rt=function(){function e(t,n){Nn(this,e),q(this,"name",void 0),q(this,"style",void 0),q(this,"_keyframe",!0),this.name=t,this.style=n;}return An(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 A2(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 im=function(){function e(){Nn(this,e),q(this,"cache",void 0),q(this,"keys",void 0),q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return An(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,f){var d=U(c,2),m=d[1];return o.internalGet(f)[1]<m?[f,o.internalGet(f)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=U(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,f){if(f===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 i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !A2(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();q(im,"MAX_CACHE_SIZE",20);q(im,"MAX_CACHE_OFFSET",5);var cv=0,k2=function(){function e(t){Nn(this,e),q(this,"derivatives",void 0),q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=cv,t.length===0&&(t.length>0,void 0),cv+=1;}return An(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Nu=new im;function Hl(e){var t=Array.isArray(e)?e:[e];return Nu.has(t)||Nu.set(t,new k2(t)),Nu.get(t)}function fi(e){return e.notSplit=!0,e}fi(["borderTop","borderBottom"]),fi(["borderTop"]),fi(["borderBottom"]),fi(["borderLeft","borderRight"]),fi(["borderLeft"]),fi(["borderRight"]);var D2=u.createContext({});const am=D2;function Bb(e){return ob(e)||lb(e)||Yf(e)||ib()}function kd(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function Fb(e,t,n,r){if(!t.length)return n;var o=Bb(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=qe(e):s=X({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Fb(s[i],a,n,r),s}function Au(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!kd(e,t.slice(0,-1))?e:Fb(e,t,n,r)}function L2(e){return ft(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function uv(e){return Array.isArray(e)?[]:{}}function z2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=uv(t[0]),o=new Set;return t.forEach(function(i){function a(s){var l=kd(i,s),c=Array.isArray(l);if(c||L2(l)){if(!o.has(l)){o.add(l);var f=kd(r,s);c?r=Au(r,s,[]):(!f||ft(f)!=="object")&&(r=Au(r,s,uv(l))),Object.keys(l).forEach(function(d){a([].concat(qe(s),[d]));});}}else r=Au(r,s,l);}a([]);}),r}const j2=u.createContext(void 0),H2={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 B2={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 F2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Wb=F2,W2={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"]},B2),timePickerLocale:Object.assign({},Wb)},dv=W2,Dn="${label} is not a valid ${type}",V2={locale:"en",Pagination:H2,DatePicker:dv,TimePicker:Wb,Calendar:dv,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:Dn,method:Dn,array:Dn,object:Dn,number:Dn,date:Dn,boolean:Dn,integer:Dn,float:Dn,regexp:Dn,email:Dn,url:Dn,hex:Dn},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"}},Gi=V2;let ku=Object.assign({},Gi.Modal);function fv(e){e?ku=Object.assign(Object.assign({},ku),e):ku=Object.assign({},Gi.Modal);}const G2=u.createContext(void 0),sm=G2,K2=(e,t)=>{const n=u__namespace.useContext(sm),r=u__namespace.useMemo(()=>{var i;const a=t||Gi[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=u__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Gi.locale:i},[n]);return [r,o]},lm=K2,U2="internalMark",X2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u__namespace.useEffect(()=>(fv(t&&t.Modal),()=>{fv();}),[t]);const o=u__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u__namespace.createElement(sm.Provider,{value:o},n)},Y2=X2,q2="5.6.2",rs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function gn(e,t){Z2(e)&&(e="100%");var n=Q2(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 qs(e){return Math.min(1,Math.max(0,e))}function Z2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Q2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Zs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function zo(e){return e.length===1?"0"+e:String(e)}function J2(e,t,n){return {r:gn(e,255)*255,g:gn(t,255)*255,b:gn(n,255)*255}}function mv(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6;}return {h:i,s:a,l:s}}function Du(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 eO(e,t,n){var r,o,i;if(e=gn(e,360),t=gn(t,100),n=gn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Du(s,a,e+1/3),o=Du(s,a,e),i=Du(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Dd(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6;}return {h:i,s:l,v:a}}function tO(e,t,n){e=gn(e,360)*6,t=gn(t,100),n=gn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],f=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:f*255,b:d*255}}function Ld(e,t,n,r){var o=[zo(Math.round(e).toString(16)),zo(Math.round(t).toString(16)),zo(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 nO(e,t,n,r,o){var i=[zo(Math.round(e).toString(16)),zo(Math.round(t).toString(16)),zo(Math.round(n).toString(16)),zo(rO(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function rO(e){return Math.round(parseFloat(e)*255).toString(16)}function hv(e){return zn(e)/255}function zn(e){return parseInt(e,16)}function oO(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var zd={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 Si(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=sO(e)),typeof e=="object"&&(Gr(e.r)&&Gr(e.g)&&Gr(e.b)?(t=J2(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gr(e.h)&&Gr(e.s)&&Gr(e.v)?(r=Zs(e.s),o=Zs(e.v),t=tO(e.h,r,o),a=!0,s="hsv"):Gr(e.h)&&Gr(e.s)&&Gr(e.l)&&(r=Zs(e.s),i=Zs(e.l),t=eO(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Vb(n),{ok:a,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 iO="[-\\+]?\\d+%?",aO="[-\\+]?\\d*\\.\\d+%?",po="(?:".concat(aO,")|(?:").concat(iO,")"),Lu="[\\s|\\(]+(".concat(po,")[,|\\s]+(").concat(po,")[,|\\s]+(").concat(po,")\\s*\\)?"),zu="[\\s|\\(]+(".concat(po,")[,|\\s]+(").concat(po,")[,|\\s]+(").concat(po,")[,|\\s]+(").concat(po,")\\s*\\)?"),ar={CSS_UNIT:new RegExp(po),rgb:new RegExp("rgb"+Lu),rgba:new RegExp("rgba"+zu),hsl:new RegExp("hsl"+Lu),hsla:new RegExp("hsla"+zu),hsv:new RegExp("hsv"+Lu),hsva:new RegExp("hsva"+zu),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 sO(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(zd[e])e=zd[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=ar.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ar.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ar.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ar.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ar.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ar.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ar.hex8.exec(e),n?{r:zn(n[1]),g:zn(n[2]),b:zn(n[3]),a:hv(n[4]),format:t?"name":"hex8"}:(n=ar.hex6.exec(e),n?{r:zn(n[1]),g:zn(n[2]),b:zn(n[3]),format:t?"name":"hex"}:(n=ar.hex4.exec(e),n?{r:zn(n[1]+n[1]),g:zn(n[2]+n[2]),b:zn(n[3]+n[3]),a:hv(n[4]+n[4]),format:t?"name":"hex8"}:(n=ar.hex3.exec(e),n?{r:zn(n[1]+n[1]),g:zn(n[2]+n[2]),b:zn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Gr(e){return !!ar.CSS_UNIT.exec(String(e))}var qt=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=oO(t)),this.originalInput=t;var o=Si(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),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=Vb(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=Dd(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=Dd(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=mv(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=mv(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),Ld(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),nO(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(gn(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(gn(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="#"+Ld(this.r,this.g,this.b,!1),n=0,r=Object.entries(zd);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=qs(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=qs(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=qs(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=qs(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Qs=2,vv=.16,lO=.05,cO=.05,uO=.15,Gb=5,Kb=4,dO=[{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 gv(e){var t=e.r,n=e.g,r=e.b,o=Dd(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function Js(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Ld(t,n,r,!1))}function fO(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 pv(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Qs*t:Math.round(e.h)+Qs*t:r=n?Math.round(e.h)+Qs*t:Math.round(e.h)-Qs*t,r<0?r+=360:r>=360&&(r-=360),r}function bv(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-vv*t:t===Kb?r=e.s+vv:r=e.s+lO*t,r>1&&(r=1),n&&t===Gb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function yv(e,t,n){var r;return n?r=e.v+cO*t:r=e.v-uO*t,r>1&&(r=1),Number(r.toFixed(2))}function eo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Si(e),o=Gb;o>0;o-=1){var i=gv(r),a=Js(Si({h:pv(i,o,!0),s:bv(i,o,!0),v:yv(i,o,!0)}));n.push(a);}n.push(Js(r));for(var s=1;s<=Kb;s+=1){var l=gv(r),c=Js(Si({h:pv(l,s),s:bv(l,s),v:yv(l,s)}));n.push(c);}return t.theme==="dark"?dO.map(function(f){var d=f.index,m=f.opacity,h=Js(fO(Si(t.backgroundColor||"#141414"),Si(n[d]),m*100));return h}):n}var ju={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"},vl={},Hu={};Object.keys(ju).forEach(function(e){vl[e]=eo(ju[e]),vl[e].primary=vl[e][5],Hu[e]=eo(ju[e],{theme:"dark",backgroundColor:"#141414"}),Hu[e].primary=Hu[e][5];});var mO=vl.blue;const hO=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Ub=hO;function vO(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 cm={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"},$s=Object.assign(Object.assign({},cm),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Xb(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:f}=e,d=n(l),m=n(o),h=n(i),v=n(a),g=n(s),p=r(c,f);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:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const gO=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},pO=gO;function bO(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},pO(r))}const Kr=(e,t)=>new qt(e).setAlpha(t).toRgbString(),xa=(e,t)=>new qt(e).darken(t).toHexString(),yO=e=>{const t=eo(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]}},CO=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Kr(r,.88),colorTextSecondary:Kr(r,.65),colorTextTertiary:Kr(r,.45),colorTextQuaternary:Kr(r,.25),colorFill:Kr(r,.15),colorFillSecondary:Kr(r,.06),colorFillTertiary:Kr(r,.04),colorFillQuaternary:Kr(r,.02),colorBgLayout:xa(n,4),colorBgContainer:xa(n,0),colorBgElevated:xa(n,0),colorBgSpotlight:Kr(r,.85),colorBorder:xa(n,15),colorBorderSecondary:xa(n,6)}};function SO(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const wO=e=>{const t=SO(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]}},Yb=wO;function xs(e){const t=Object.keys(cm).map(n=>{const r=eo(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xb(e,{generateColorPalettes:yO,generateNeutralColorPalettes:CO})),Yb(e.fontSize)),vO(e)),Ub(e)),bO(e))}function Bu(e){return e>=0&&e<=255}function el(e,t){const{r:n,g:r,b:o,a:i}=new qt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new qt(t).toRgb();for(let c=.01;c<=1;c+=.01){const f=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Bu(f)&&Bu(d)&&Bu(m))return new qt({r:f,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new qt({r:n,g:r,b:o,a:1}).toRgbString()}var $O=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qb(e){const{override:t}=e,n=$O(e,["override"]),r=Object.assign({},t);Object.keys($s).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,f=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:el(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:el(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:el(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:el(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new qt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new qt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new qt("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)}const Zb="anticon",xO=(e,t)=>t||(e?`ant-${e}`:"ant"),lt=u__namespace.createContext({getPrefixCls:xO,iconPrefixCls:Zb}),Go={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Kt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),ca=()=>({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"}}),jd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),EO=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active,
&:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),OO=(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"}}}}},Es=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),os=e=>({"&:focus-visible":Object.assign({},Es(e))});function on(e,t,n,r){return o=>{const[i,a,s]=ri(),{getPrefixCls:l,iconPrefixCls:c,csp:f}=u.useContext(lt),d=l(),m={theme:i,token:a,hashId:s,nonce:()=>f==null?void 0:f.nonce};return Ad(Object.assign(Object.assign({},m),{path:["Shared",d]}),()=>[{"&":EO(a)}]),[Ad(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:v}=_O(a),g=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:y}=r;y.forEach(S=>{let[w,I]=S;var E;(g!=null&&g[w]||g!=null&&g[I])&&((E=g[I])!==null&&E!==void 0||(g[I]=g==null?void 0:g[w]));});}const p=typeof n=="function"?n($t(h,g??{})):n,b=Object.assign(Object.assign({},p),g),C=`.${o}`,$=$t(h,{componentCls:C,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),x=t($,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:g});return v(e,b),[(r==null?void 0:r.resetStyle)===!1?null:OO(a,o),x]}),s]}}const Qb=typeof CSSINJS_STATISTIC<"u";let Hd=!0;function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Qb)return Object.assign.apply(Object,[{}].concat(t));Hd=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),Hd=!0,r}function IO(){}function _O(e){let t,n=e,r=IO;return Qb&&(t=new Set,n=new Proxy(e,{get(o,i){return Hd&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Jb(e,t){return rs.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const PO=Hl(xs),Bl={token:$s,hashed:!0},e0=u.createContext(Bl);function ri(){const{token:e,hashed:t,theme:n,components:r}=u.useContext(e0),o=`${q2}-${t||""}`,i=n||PO,[a,s]=O2(i,[$s,e],{salt:o,override:Object.assign({override:e},r),formatToken:qb});return [i,a,t?s:""]}const RO=`-ant-${Date.now()}-${Math.random()}`;function TO(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new qt(a),c=eo(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 a=new qt(t.primaryColor),s=eo(a.toRgbString());s.forEach((c,f)=>{n[`primary-${f+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new qt(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(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function MO(e,t){const n=TO(e,t);Rn()&&Wi(n,`${RO}-dynamic-theme`);}const Bd=u__namespace.createContext(!1),NO=e=>{let{children:t,disabled:n}=e;const r=u__namespace.useContext(Bd);return u__namespace.createElement(Bd.Provider,{value:n??r},t)},Eo=Bd,AO=e=>{const t=u.useContext(jc);return u.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},yr=AO,t0=u__namespace.createContext(void 0),kO=e=>{let{children:t,size:n}=e;const r=yr(n);return u__namespace.createElement(t0.Provider,{value:r},t)},jc=t0;function DO(){const e=u.useContext(Eo),t=u.useContext(jc);return {componentDisabled:e,componentSize:t}}function LO(e,t){const n=e||{},r=n.inherit===!1||!t?Bl:t;return Cs(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((s,l)=>{const c=a[l];return !zc(s,c,!0)}))}function zO(e){const{children:t}=e,[,n]=ri(),{motion:r}=n,o=u__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?u__namespace.createElement(ME,{motion:r},t):t}const jO=(e,t)=>{const[n,r]=ri();return Ad({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ca()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},HO=jO;var BO=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FO=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],WO="ant";let n0;function VO(){return n0||WO}function GO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const KO=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(n0=t),r&&GO(r)&&MO(VO(),r);},UO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:f,popupMatchSelectWidth:d,popupOverflow:m,legacyLocale:h,parentContext:v,iconPrefixCls:g,theme:p,componentDisabled:b}=e,C=u__namespace.useCallback((T,A)=>{const{prefixCls:M}=e;if(A)return A;const k=M||v.getPrefixCls("");return T?`${k}-${T}`:k},[v.getPrefixCls,e.prefixCls]),$=g||v.iconPrefixCls||Zb,x=$!==v.iconPrefixCls,y=n||v.csp,S=HO($,y),w=LO(p,v.theme),I={csp:y,autoInsertSpaceInButton:r,locale:i||h,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??f,popupOverflow:m,getPrefixCls:C,iconPrefixCls:$,theme:w},E=Object.assign({},v);Object.keys(I).forEach(T=>{I[T]!==void 0&&(E[T]=I[T]);}),FO.forEach(T=>{const A=e[T];A&&(E[T]=A);});const O=Cs(()=>E,E,(T,A)=>{const M=Object.keys(T),k=Object.keys(A);return M.length!==k.length||M.some(z=>T[z]!==A[z])}),N=u__namespace.useMemo(()=>({prefixCls:$,csp:y}),[$,y]);let R=x?S(t):t;const P=u__namespace.useMemo(()=>{var T,A,M;return z2(((T=Gi.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((M=(A=O.locale)===null||A===void 0?void 0:A.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[O,o==null?void 0:o.validateMessages]);Object.keys(P).length>0&&(R=u__namespace.createElement(j2.Provider,{value:P},t)),i&&(R=u__namespace.createElement(Y2,{locale:i,_ANT_MARK__:U2},R)),($||y)&&(R=u__namespace.createElement(am.Provider,{value:N},R)),a&&(R=u__namespace.createElement(kO,{size:a},R)),R=u__namespace.createElement(zO,null,R);const _=u__namespace.useMemo(()=>{const T=w||{},{algorithm:A,token:M}=T,k=BO(T,["algorithm","token"]),z=A&&(!Array.isArray(A)||A.length>0)?Hl(A):void 0;return Object.assign(Object.assign({},k),{theme:z,token:Object.assign(Object.assign({},$s),M)})},[w]);return p&&(R=u__namespace.createElement(e0.Provider,{value:_},R)),b!==void 0&&(R=u__namespace.createElement(NO,{disabled:b},R)),u__namespace.createElement(lt.Provider,{value:O},R)},ua=e=>{const t=u__namespace.useContext(lt),n=u__namespace.useContext(sm);return u__namespace.createElement(UO,Object.assign({parentContext:t,legacyLocale:n},e))};ua.ConfigContext=lt;ua.SizeContext=jc;ua.config=KO;ua.useConfig=DO;Object.defineProperty(ua,"SizeContext",{get:()=>jc});const um=ua,XO=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},YO=XO,qO=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"}}}},r0=on("Space",e=>[qO(e),YO(e)],()=>({}),{resetStyle:!1});var o0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hc=u__namespace.createContext(null),da=(e,t)=>{const n=u__namespace.useContext(Hc),r=u__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return V({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${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}},Ki=e=>{let{children:t}=e;return u__namespace.createElement(Hc.Provider,{value:null},t)},ZO=e=>{var{children:t}=e,n=o0(e,["children"]);return u__namespace.createElement(Hc.Provider,{value:n},t)},QO=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(lt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,f=o0(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=yr($=>{var x;return (x=r??$)!==null&&x!==void 0?x:"middle"}),m=t("space-compact",a),[h,v]=r0(m),g=V(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),p=u__namespace.useContext(Hc),b=vr(c),C=u__namespace.useMemo(()=>b.map(($,x)=>{const y=$&&$.key||`${m}-item-${x}`;return u__namespace.createElement(ZO,{key:y,compactSize:d,compactDirection:o,isFirstItem:x===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:x===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},$)}),[r,b,p]);return b.length===0?null:h(u__namespace.createElement("div",Object.assign({className:g},f),C))},JO=QO,eI=e=>{const t=e!=null&&e.algorithm?Hl(e.algorithm):Hl(xs),n=Object.assign(Object.assign({},$s),e==null?void 0:e.token);return jb(n,{override:e==null?void 0:e.token},t,qb)},tI=eI;function nI(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 rI=(e,t)=>{const n=t??xs(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),nI(t??e)),Yb(r)),{controlHeight:o}),Ub(Object.assign(Object.assign({},n),{controlHeight:o})))},oI=rI,lo=(e,t)=>new qt(e).setAlpha(t).toRgbString(),mi=(e,t)=>new qt(e).lighten(t).toHexString(),iI=e=>{const t=eo(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]}},aI=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:lo(r,.85),colorTextSecondary:lo(r,.65),colorTextTertiary:lo(r,.45),colorTextQuaternary:lo(r,.25),colorFill:lo(r,.18),colorFillSecondary:lo(r,.12),colorFillTertiary:lo(r,.08),colorFillQuaternary:lo(r,.04),colorBgElevated:mi(n,12),colorBgContainer:mi(n,8),colorBgLayout:mi(n,0),colorBgSpotlight:mi(n,26),colorBorder:mi(n,26),colorBorderSecondary:mi(n,19)}},sI=(e,t)=>{const n=Object.keys(cm).map(o=>{const i=eo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??xs(e);return Object.assign(Object.assign(Object.assign({},r),n),Xb(e,{generateColorPalettes:iI,generateNeutralColorPalettes:aI}))},lI=sI;function cI(){const[e,t,n]=ri();return {theme:e,token:t,hashId:n}}const Ui={defaultConfig:Bl,defaultSeed:Bl.token,useToken:cI,defaultAlgorithm:xs,darkAlgorithm:lI,compactAlgorithm:oI,getDesignToken:tI},uI=e=>({animationDuration:e,animationFillMode:"both"}),dI=e=>({animationDuration:e,animationFillMode:"both"}),dm=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
${i}${e}-enter,
${i}${e}-appear
`]:Object.assign(Object.assign({},uI(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},dI(r)),{animationPlayState:"paused"}),[`
${i}${e}-enter${e}-enter-active,
${i}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},fI=new Rt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mI=new Rt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),hI=new Rt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vI=new Rt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gI=new Rt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pI=new Rt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bI=new Rt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yI=new Rt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),CI={"move-up":{inKeyframes:bI,outKeyframes:yI},"move-down":{inKeyframes:fI,outKeyframes:mI},"move-left":{inKeyframes:hI,outKeyframes:vI},"move-right":{inKeyframes:gI,outKeyframes:pI}},Fl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=CI[t];return [dm(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fm=new Rt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),mm=new Rt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),hm=new Rt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),vm=new Rt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),SI=new Rt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),wI=new Rt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),$I=new Rt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xI=new Rt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EI={"slide-up":{inKeyframes:fm,outKeyframes:mm},"slide-down":{inKeyframes:hm,outKeyframes:vm},"slide-left":{inKeyframes:SI,outKeyframes:wI},"slide-right":{inKeyframes:$I,outKeyframes:xI}},wo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=EI[t];return [dm(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},OI=new Rt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),II=new Rt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cv=new Rt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sv=new Rt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),_I=new Rt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PI=new Rt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),RI=new Rt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),TI=new Rt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),MI=new Rt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),NI=new Rt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),AI=new Rt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),kI=new Rt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),DI={zoom:{inKeyframes:OI,outKeyframes:II},"zoom-big":{inKeyframes:Cv,outKeyframes:Sv},"zoom-big-fast":{inKeyframes:Cv,outKeyframes:Sv},"zoom-left":{inKeyframes:RI,outKeyframes:TI},"zoom-right":{inKeyframes:MI,outKeyframes:NI},"zoom-up":{inKeyframes:_I,outKeyframes:PI},"zoom-down":{inKeyframes:AI,outKeyframes:kI}},Bc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DI[t];return [dm(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},LI=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`}}}),i0=LI,zI=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:f,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${f}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Ab)}},[`${t}-content`]:{position:"relative"}}),Jb(e,(m,h)=>{let{darkColor:v}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},nm($t(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},a0=(e,t)=>on("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=$t(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [zI(l),Bc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),jI=rs.map(e=>`${e}-inverse`),HI=["success","processing","error","default","warning"];function s0(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(qe(jI),qe(rs)).includes(e):rs.includes(e)}function BI(e){return HI.includes(e)}function l0(e,t){const n=s0(t),r=V({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function FI(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=u__namespace.useContext(lt),l=s("tooltip",t),[c,f]=a0(l,!0),d=l0(l,i),m=Object.assign(Object.assign({},a),d.overlayStyle),h=d.arrowStyle;return c(u__namespace.createElement("div",{className:V(f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:h},u__namespace.createElement("div",{className:`${l}-arrow`}),u__namespace.createElement(em,Object.assign({},e,{className:f,prefixCls:l,overlayInnerStyle:m}),o)))}var WI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:VI}=Ui,GI=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function KI(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=GI(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=En(e,{style:a,className:null});return u__namespace.createElement("span",{style:i,className:V(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const c0=u__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:f,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:C=!1,autoAdjustOverflow:$=!0}=e,x=!!v,{token:y}=VI(),{getPopupContainer:S,getPrefixCls:w,direction:I}=u__namespace.useContext(lt),E=u__namespace.useRef(null),O=()=>{var oe;(oe=E.current)===null||oe===void 0||oe.forceAlign();};u__namespace.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{O();}}));const[N,R]=Zt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!g&&!p&&g!==0,_=oe=>{var he,ue;R(P?!1:oe),P||((he=e.onOpenChange)===null||he===void 0||he.call(e,oe),(ue=e.onVisibleChange)===null||ue===void 0||ue.call(e,oe));},T=u__namespace.useMemo(()=>{var oe,he;let ue=C;return typeof v=="object"&&(ue=(he=(oe=v.pointAtCenter)!==null&&oe!==void 0?oe:v.arrowPointAtCenter)!==null&&he!==void 0?he:C),b||kb({arrowPointAtCenter:ue,autoAdjustOverflow:$,arrowWidth:x?y.sizePopupArrow:0,borderRadius:y.borderRadius,offset:y.marginXXS,visibleFirst:!0})},[C,v,b,y]),A=u__namespace.useMemo(()=>g===0?g:p||g||"",[p,g]),M=u__namespace.createElement(Ki,null,typeof A=="function"?A():A),{getPopupContainer:k,placement:z="top",mouseEnterDelay:B=.1,mouseLeaveDelay:W=.1,overlayStyle:j,rootClassName:G}=e,F=WI(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=w("tooltip",o),re=w(),Z=e["data-popover-inject"];let Y=N;!("open"in e)&&!("visible"in e)&&P&&(Y=!1);const J=KI(Zo(f)&&!Db(f)?f:u__namespace.createElement("span",null,f),K),ie=J.props,ae=!ie.className||typeof ie.className=="string"?V(ie.className,{[i||`${K}-open`]:!0}):ie.className,[de,Q]=a0(K,!Z),ne=l0(K,l),ce=Object.assign(Object.assign({},c),ne.overlayStyle),se=ne.arrowStyle,me=V(s,{[`${K}-rtl`]:I==="rtl"},ne.className,G,Q);return de(u__namespace.createElement(s2,Object.assign({},F,{showArrow:x,placement:z,mouseEnterDelay:B,mouseLeaveDelay:W,prefixCls:K,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},se),j),getTooltipContainer:k||a||S,ref:E,builtinPlacements:T,overlay:M,visible:Y,onVisibleChange:_,afterVisibleChange:d??m,overlayInnerStyle:ce,arrowContent:u__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Lc(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Y?En(J,{className:ae}):J))});c0._InternalPanelDoNotUseOrYouWillBeFired=FI;const Os=c0;var UI=/\s/;function XI(e){for(var t=e.length;t--&&UI.test(e.charAt(t)););return t}var YI=/^\s+/;function qI(e){return e&&e.slice(0,XI(e)+1).replace(YI,"")}var wv=0/0,ZI=/^[-+]0x[0-9a-f]+$/i,QI=/^0b[01]+$/i,JI=/^0o[0-7]+$/i,e_=parseInt;function Fd(e){if(typeof e=="number")return e;if(Pc(e))return wv;if(rr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=rr(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=qI(e);var n=QI.test(e);return n||JI.test(e)?e_(e.slice(2),n?2:8):ZI.test(e)?wv:+e}var $v=1/0,t_=17976931348623157e292;function n_(e){if(!e)return e===0?e:0;if(e=Fd(e),e===$v||e===-$v){var t=e<0?-1:1;return t*t_}return e===e?e:0}function r_(e){var t=n_(e),n=t%1;return t===t?n?t-n:t:0}var o_="Expected a function";function i_(e,t){var n;if(typeof t!="function")throw new TypeError(o_);return e=r_(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function a_(e){return i_(2,e)}const Xi=a_(()=>!!document.querySelectorAll(".bili-feed4").length),u0=()=>document.body.classList.contains("dark"),d0=ti({value:u0()});function gm(){return $o(d0).value}const f0=new MutationObserver(function(){d0.value=u0();});f0.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{f0.disconnect();});const m0=r1();var ip;const s_=((ip=m0.os.name)==null?void 0:ip.toLowerCase())==="mac os";var ap;const pm=((ap=m0.browser.name)==null?void 0:ap.toLowerCase())==="safari";var Fc={},h0={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;})(h0);var bm=h0.exports,Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.default=void 0;var l_={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:"页码"};Wc.default=l_;var Vc={},Is={},Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.default=void 0;var c_={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:"下一世纪"},u_=c_;Gc.default=u_;var _s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.default=void 0;const d_={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var f_=d_;_s.default=f_;var v0=bm.default;Object.defineProperty(Is,"__esModule",{value:!0});Is.default=void 0;var m_=v0(Gc),h_=v0(_s);const g0={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},m_.default),timePickerLocale:Object.assign({},h_.default)};g0.lang.ok="确定";var v_=g0;Is.default=v_;var g_=bm.default;Object.defineProperty(Vc,"__esModule",{value:!0});Vc.default=void 0;var p_=g_(Is),b_=p_.default;Vc.default=b_;var Kc=bm.default;Object.defineProperty(Fc,"__esModule",{value:!0});Fc.default=void 0;var y_=Kc(Wc),C_=Kc(Vc),S_=Kc(Is),w_=Kc(_s);const Ln="${label}不是一个有效的${type}",$_={locale:"zh-cn",Pagination:y_.default,DatePicker:S_.default,TimePicker:w_.default,Calendar:C_.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:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var x_=$_;Fc.default=x_;var E_=Fc;const O_=no(E_);function ym(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=u__namespace.useRef(null),[c,f]=u__namespace.useState(0),[d,m]=u__namespace.useState(0),[h,v]=Zt(!1,{value:i.open}),{getPrefixCls:g}=u__namespace.useContext(lt),p=g(t||"select",a);u__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(x=>{const y=x[0].target;f(y.offsetHeight+8),m(y.offsetWidth);}),$=setInterval(()=>{var x;const y=n?`.${n(p)}`:`.${p}-dropdown`,S=(x=l.current)===null||x===void 0?void 0:x.querySelector(y);S&&(clearInterval($),C.observe(S));},10);return ()=>{clearInterval($),C.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(b=r(b)),u__namespace.createElement(um,{theme:{token:{motion:!1}}},u__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},u__namespace.createElement(e,Object.assign({},b))))}}const Yi=e=>e?typeof e=="function"?e():e:null,I_=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:f,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Kt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:f,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},nm(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},__=e=>{const{componentCls:t}=e;return {[t]:rs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},P_=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,f=a-Math.round(s*l),d=f/2,m=f/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},p0=on("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=$t(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [I_(o),__(o),r&&P_(o),Bc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var R_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const T_=(e,t,n)=>{if(!(!t&&!n))return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${e}-title`},Yi(t)),u__namespace.createElement("div",{className:`${e}-inner-content`},Yi(n)))};function M_(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return u__namespace.createElement("div",{className:V(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},u__namespace.createElement("div",{className:`${n}-arrow`}),u__namespace.createElement(em,Object.assign({},e,{className:t,prefixCls:n}),l||T_(n,a,s)))}function b0(e){const{prefixCls:t}=e,n=R_(e,["prefixCls"]),{getPrefixCls:r}=u__namespace.useContext(lt),o=r("popover",t),[i,a]=p0(o);return i(u__namespace.createElement(M_,Object.assign({},n,{prefixCls:o,hashId:a})))}var N_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A_=e=>{let{title:t,content:n,prefixCls:r}=e;return u__namespace.createElement(u__namespace.Fragment,null,t&&u__namespace.createElement("div",{className:`${r}-title`},Yi(t)),u__namespace.createElement("div",{className:`${r}-inner-content`},Yi(n)))},y0=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:f={}}=e,d=N_(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=u__namespace.useContext(lt),h=m("popover",n),[v,g]=p0(h),p=m(),b=V(i,g);return v(u__namespace.createElement(Os,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:f},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?u__namespace.createElement(A_,{prefixCls:h,title:r,content:o}):null,transitionName:Lc(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});y0._InternalPanelDoNotUseOrYouWillBeFired=b0;const C0=y0;var k_=["v"],Wl=function(e){sa(n,e);var t=la(n);function n(r){return Nn(this,n),t.call(this,z_(r))}return An(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Ko(o.s*100),a=Ko(o.b*100),s=Ko(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:f}},{key:"toHsb",value:function(){var o=this.toHsv();ft(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Je(i,k_);return X(X({},a),{},{b:o.v})}}]),n}(qt),D_=["b"],L_="rc-color-picker",Ko=function(t){return Math.round(Number(t||0))},z_=function(t){if(t&&ft(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,D_);return X(X({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},bo=function(t){return t instanceof Wl?t:new Wl(t)},j_=bo("#1677ff"),S0=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,f=r.current.getBoundingClientRect(),d=f.width,m=f.height,h=d/2,v=m/2,g=(n.x+h)/l,p=1-(n.y+v)/c,b=i.toHsb(),C=g,$=(n.x+h)/l*360;if(a)switch(a){case"hue":return bo(X(X({},b),{},{h:$<=0?0:$}));case"alpha":return bo(X(X({},b),{},{a:C<=0?0:C}))}return bo({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},w0=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,f=l.height,d=c/2,m=f/2,h=r.toHsb();if(!(c===0&&f===0||c!==f)){if(o)switch(o){case"hue":return {x:h.h/360*a-d,y:-m/3};case"alpha":return {x:h.a/1*a-d,y:-m/3}}return {x:h.s*a-d,y:(1-h.b)*s-m}}},Cm=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return u.createElement("div",{className:V(s,o),style:i,onClick:a},u.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function H_(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 $0(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,f=u.useState(t||{x:0,y:0}),d=U(f,2),m=d[0],h=d[1],v=u.useRef(null),g=u.useRef(null),p=u.useRef({flag:!1});u.useEffect(function(){if(p.current.flag===!1){var y=s==null?void 0:s(r);y&&h(y);}},[l,r]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null;}},[]);var b=function(S){var w=H_(S),I=w.pageX,E=w.pageY,O=r.current.getBoundingClientRect(),N=O.x,R=O.y,P=O.width,_=O.height,T=n.current.getBoundingClientRect(),A=T.width,M=T.height,k=A/2,z=M/2,B=Math.max(0,Math.min(I-N,P))-k,W=Math.max(0,Math.min(E-R,_))-z,j={x:B,y:o==="x"?m.y:W};if(A===0&&M===0||A!==M)return !1;h(j),i==null||i(j);},C=function(S){S.preventDefault(),b(S);},$=function(S){S.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null,a==null||a();},x=function(S){c||(b(S),p.current.flag=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",$),document.addEventListener("touchmove",C),document.addEventListener("touchend",$),v.current=C,g.current=$);};return [m,x]}var x0=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return u.createElement("div",{className:V("".concat(i,"-handler"),q({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},E0=function(t){var n=t.children,r=t.style,o=t.prefixCls;return u.createElement("div",{className:"".concat(o,"-palette"),style:X({position:"relative"},r)},n)},O0=u.forwardRef(function(e,t){var n=e.children,r=e.offset;return u.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),B_=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=u.useRef(),l=u.useRef(),c=$0({color:n,containerRef:s,targetRef:l,calculate:function(v){return w0(v,l,n)},onDragChange:function(v){return r(S0({offset:v,targetRef:l,containerRef:s,color:n}))},onDragChangeComplete:i,disabledDrag:a}),f=U(c,2),d=f[0],m=f[1];return u.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},u.createElement(E0,{prefixCls:o},u.createElement(O0,{offset:d,ref:l},u.createElement(x0,{color:n.toRgbString(),prefixCls:o})),u.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},F_=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=u.useMemo(function(){return n.map(function(c,f){var d=bo(c);return a==="alpha"&&f===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return u.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},xv=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,f=t.disabled,d=t.prefixCls,m=u.useRef(),h=u.useRef(),v=$0({color:a,targetRef:h,containerRef:m,calculate:function($){return w0($,h,a,i)},onDragChange:function($){l(S0({offset:$,targetRef:h,containerRef:m,color:a,type:i}));},onDragChangeComplete:function(){c==null||c(i);},direction:"x",disabledDrag:f}),g=U(v,2),p=g[0],b=g[1];return u.createElement("div",{ref:m,className:V("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},u.createElement(E0,{prefixCls:d},u.createElement(O0,{offset:p,ref:h},u.createElement(x0,{size:"small",color:s,prefixCls:d})),u.createElement(F_,{colors:n,direction:r,type:i,prefixCls:d})))};function Ev(e){return e!==void 0}var W_=function(t,n){var r=n.defaultValue,o=n.value,i=u.useState(function(){var c;return Ev(o)?c=o:Ev(r)?c=r:c=t,bo(c)}),a=U(i,2),s=a[0],l=a[1];return u.useEffect(function(){o&&l(bo(o));},[o]),[s,l]},V_=["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 G_=u.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?L_:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,f=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,h=e.disabled,v=h===void 0?!1:h,g=W_(j_,{value:n,defaultValue:r}),p=U(g,2),b=p[0],C=p[1],$=u.useMemo(function(){var I=bo(b.toRgbString());return I.setAlpha(1),I.toRgbString()},[b]),x=V("".concat(i,"-panel"),l,q({},"".concat(i,"-panel-disabled"),v)),y={prefixCls:i,onChangeComplete:s,disabled:v},S=function(E,O){n||C(E),a==null||a(E,O);},w=u.createElement(u.Fragment,null,u.createElement(B_,ye({color:b,onChange:S},y)),u.createElement("div",{className:"".concat(i,"-slider-container")},u.createElement("div",{className:V("".concat(i,"-slider-group"),q({},"".concat(i,"-slider-group-disabled-alpha"),m))},u.createElement(xv,ye({gradientColors:V_,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(E){return S(E,"hue")}},y)),!m&&u.createElement(xv,ye({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",$],color:b,value:b.toRgbString(),onChange:function(E){return S(E,"alpha")}},y))),u.createElement(Cm,{color:b.toRgbString(),prefixCls:i})));return u.createElement("div",{className:x,style:c,ref:t},typeof f=="function"?f(w):w)}),K_=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Kt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},U_=on("Divider",e=>{const t=$t(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [K_(t)]},{sizePaddingEdgeHorizontal:0});var X_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y_=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(lt),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:f,plain:d}=e,m=X_(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),h=t("divider",r),[v,g]=U_(h),p=i.length>0?`-${i}`:i,b=!!c,C=i==="left"&&a!=null,$=i==="right"&&a!=null,x=V(h,g,`${h}-${o}`,{[`${h}-with-text`]:b,[`${h}-with-text${p}`]:b,[`${h}-dashed`]:!!f,[`${h}-plain`]:!!d,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:C,[`${h}-no-default-orientation-margin-right`]:$},s,l),y=u__namespace.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),S=Object.assign(Object.assign({},C&&{marginLeft:y}),$&&{marginRight:y});return v(u__namespace.createElement("div",Object.assign({className:x},m,{role:"separator"}),c&&o!=="vertical"&&u__namespace.createElement("span",{className:`${h}-inner-text`,style:S},c)))},q_=Y_;let Ov=function(){function e(t){Nn(this,e),this.metaColor=new Wl(t);}return An(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return J_(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 Z_="ant-color-picker",Tn=e=>e instanceof Ov?e:new Ov(e),Q_=e=>Ko(e.toHsb().a*100),gl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",J_=(e,t)=>e?gl(e,t):"",eP=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const s=Tn(a);o==null||o(s);}};return u.createElement("div",{className:`${t}-clear`,onClick:i})},I0=eP;var ee={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>=ee.F1&&n<=ee.F12)return !1;switch(n){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ee.ZERO&&t<=ee.NINE||t>=ee.NUM_ZERO&&t<=ee.NUM_MULTIPLY||t>=ee.A&&t<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},_0=u__namespace.createContext(null);function tP(){return u__namespace.useContext(_0)}function nP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u__namespace.useState(!1),n=U(t,2),r=n[0],o=n[1],i=u__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};u__namespace.useEffect(function(){return a},[]);var s=function(c,f){a(),i.current=window.setTimeout(function(){o(c),f&&f();},e);};return [r,s,a]}function P0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u__namespace.useRef(null),n=u__namespace.useRef(null);u__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function rP(e,t,n,r){var o=u__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.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",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var oP=`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`,iP=`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`,aP="".concat(oP," ").concat(iP).split(/[\s\n]+/),sP="aria-",lP="data-";function Iv(e,t){return e.indexOf(t)===0}function is(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"||Iv(o,sP))||n.data&&Iv(o,lP)||n.attr&&aP.includes(o))&&(r[o]=e[o]);}),r}var cP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],hi=void 0;function uP(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,f=e.className,d=e.style,m=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Je(e,cP),C=a&&!h;function $(I){l(c,I);}u__namespace.useEffect(function(){return function(){$(null);}},[]);var x=i&&o!==hi?i(o):m,y;r||(y={opacity:C?0:1,height:C?0:hi,overflowY:C?"hidden":hi,order:a?v:hi,pointerEvents:C?"none":hi,position:C?"absolute":hi});var S={};C&&(S["aria-hidden"]=!0);var w=u__namespace.createElement(p,ye({className:V(!r&&n,f),style:X(X({},y),d)},S,b,{ref:t}),x);return a&&(w=u__namespace.createElement(Jr,{onResize:function(E){var O=E.offsetWidth;$(O);},disabled:s},w)),w}var za=u__namespace.forwardRef(uP);za.displayName="Item";function dP(e){if(typeof MessageChannel>"u")Mt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function fP(){var e=u__namespace.useRef(null),t=function(r){e.current||(e.current=[],dP(function(){cp.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ea(e,t){var n=u__namespace.useState(t),r=U(n,2),o=r[0],i=r[1],a=Vn(function(s){e(function(){i(s);});});return [o,a]}var mP=["component"],hP=["className"],vP=["className"],gP=function(t,n){var r=u__namespace.useContext(Vl);if(!r){var o=t.component,i=o===void 0?"div":o,a=Je(t,mP);return u__namespace.createElement(i,ye({},a,{ref:n}))}var s=r.className,l=Je(r,hP),c=t.className,f=Je(t,vP);return u__namespace.createElement(Vl.Provider,{value:null},u__namespace.createElement(za,ye({ref:n,className:V(s,c)},l,f)))},R0=u__namespace.forwardRef(gP);R0.displayName="RawItem";var pP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Vl=u__namespace.createContext(null),T0="responsive",M0="invalidate";function bP(e){return "+ ".concat(e.length," ...")}function yP(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,f=c===void 0?10:c,d=e.ssr,m=e.style,h=e.className,v=e.maxCount,g=e.renderRest,p=e.renderRawRest,b=e.suffix,C=e.component,$=C===void 0?"div":C,x=e.itemComponent,y=e.onVisibleChange,S=Je(e,pP),w=d==="full",I=fP(),E=Ea(I,null),O=U(E,2),N=O[0],R=O[1],P=N||0,_=Ea(I,new Map),T=U(_,2),A=T[0],M=T[1],k=Ea(I,0),z=U(k,2),B=z[0],W=z[1],j=Ea(I,0),G=U(j,2),F=G[0],K=G[1],re=Ea(I,0),Z=U(re,2),Y=Z[0],J=Z[1],ie=u.useState(null),ae=U(ie,2),de=ae[0],Q=ae[1],ne=u.useState(null),ce=U(ne,2),se=ce[0],me=ce[1],oe=u__namespace.useMemo(function(){return se===null&&w?Number.MAX_SAFE_INTEGER:se||0},[se,N]),he=u.useState(!1),ue=U(he,2),fe=ue[0],_e=ue[1],et="".concat(r,"-item"),Ue=Math.max(B,F),De=v===T0,Qe=i.length&&De,it=v===M0,Ze=Qe||typeof v=="number"&&i.length>v,Ve=u.useMemo(function(){var Ne=i;return Qe?N===null&&w?Ne=i:Ne=i.slice(0,Math.min(i.length,P/f)):typeof v=="number"&&(Ne=i.slice(0,v)),Ne},[i,f,N,v,Qe]),Re=u.useMemo(function(){return Qe?i.slice(oe+1):i.slice(Ve.length)},[i,Ve,Qe,oe]),be=u.useCallback(function(Ne,ve){var le;return typeof l=="function"?l(Ne):(le=l&&(Ne==null?void 0:Ne[l]))!==null&&le!==void 0?le:ve},[l]),je=u.useCallback(a||function(Ne){return Ne},[a]);function He(Ne,ve,le){se===Ne&&(ve===void 0||ve===de)||(me(Ne),le||(_e(Ne<i.length-1),y==null||y(Ne)),ve!==void 0&&Q(ve));}function pe(Ne,ve){R(ve.clientWidth);}function $e(Ne,ve){M(function(le){var Ce=new Map(le);return ve===null?Ce.delete(Ne):Ce.set(Ne,ve),Ce});}function Xe(Ne,ve){K(ve),W(F);}function Fe(Ne,ve){J(ve);}function dt(Ne){return A.get(be(Ve[Ne],Ne))}Gt(function(){if(P&&typeof Ue=="number"&&Ve){var Ne=Y,ve=Ve.length,le=ve-1;if(!ve){He(0,null);return}for(var Ce=0;Ce<ve;Ce+=1){var xe=dt(Ce);if(w&&(xe=xe||0),xe===void 0){He(Ce-1,void 0,!0);break}if(Ne+=xe,le===0&&Ne<=P||Ce===le-1&&Ne+dt(le)<=P){He(le,null);break}else if(Ne+Ue>P){He(Ce-1,Ne-xe-Y+F);break}}b&&dt(0)+Y>P&&Q(null);}},[P,A,F,Y,be,Ve]);var Ee=fe&&!!Re.length,Oe={};de!==null&&Qe&&(Oe={position:"absolute",left:de,top:0});var Le={prefixCls:et,responsive:Qe,component:x,invalidate:it},Pe=s?function(Ne,ve){var le=be(Ne,ve);return u__namespace.createElement(Vl.Provider,{key:le,value:X(X({},Le),{},{order:ve,item:Ne,itemKey:le,registerSize:$e,display:ve<=oe})},s(Ne,ve))}:function(Ne,ve){var le=be(Ne,ve);return u__namespace.createElement(za,ye({},Le,{order:ve,key:le,item:Ne,renderItem:je,itemKey:le,registerSize:$e,display:ve<=oe}))},tt,St={order:Ee?oe:Number.MAX_SAFE_INTEGER,className:"".concat(et,"-rest"),registerSize:Xe,display:Ee};if(p)p&&(tt=u__namespace.createElement(Vl.Provider,{value:X(X({},Le),St)},p(Re)));else {var kt=g||bP;tt=u__namespace.createElement(za,ye({},Le,St),typeof kt=="function"?kt(Re):kt);}var At=u__namespace.createElement($,ye({className:V(!it&&r,h),style:m,ref:t},S),Ve.map(Pe),Ze?tt:null,b&&u__namespace.createElement(za,ye({},Le,{responsive:De,responsiveDisabled:!Qe,order:oe,className:"".concat(et,"-suffix"),registerSize:Fe,display:!0,style:Oe}),b));return De&&(At=u__namespace.createElement(Jr,{onResize:pe,disabled:!Qe},At)),At}var Mr=u__namespace.forwardRef(yP);Mr.displayName="Overflow";Mr.Item=R0;Mr.RESPONSIVE=T0;Mr.INVALIDATE=M0;var Gl=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,u__namespace.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),i&&i(f);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:u__namespace.createElement("span",{className:V(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},CP=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,f=t.autoFocus,d=t.autoComplete,m=t.editable,h=t.activeDescendantId,v=t.value,g=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,C=t.onChange,$=t.onPaste,x=t.onCompositionStart,y=t.onCompositionEnd,S=t.open,w=t.attrs,I=s||u__namespace.createElement("input",null),E=I,O=E.ref,N=E.props,R=N.onKeyDown,P=N.onChange,_=N.onMouseDown,T=N.onCompositionStart,A=N.onCompositionEnd,M=N.style;return "maxLength"in I.props,I=u__namespace.cloneElement(I,X(X(X({type:"search"},N),{},{id:a,ref:Mn(n,O),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:f,className:V("".concat(i,"-selection-search-input"),(r=I)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},w),{},{value:m?v:"",maxLength:g,readOnly:!m,unselectable:m?null:"on",style:X(X({},M),{},{opacity:m?null:0}),onKeyDown:function(z){p(z),R&&R(z);},onMouseDown:function(z){b(z),_&&_(z);},onChange:function(z){C(z),P&&P(z);},onCompositionStart:function(z){x(z),T&&T(z);},onCompositionEnd:function(z){y(z),A&&A(z);},onPaste:$})),I},Sm=u__namespace.forwardRef(CP);Sm.displayName="Input";function N0(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var SP=typeof window<"u"&&window.document&&window.document.documentElement,wP=SP;function $P(e){return e!=null}function _v(e){return ["string","number"].includes(ft(e))}function A0(e){var t=void 0;return e&&(_v(e.title)?t=e.title.toString():_v(e.label)&&(t=e.label.toString())),t}function xP(e,t){wP?u__namespace.useLayoutEffect(e,t):u__namespace.useEffect(e,t);}function EP(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Pv=function(t){t.preventDefault(),t.stopPropagation();},OP=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,f=t.disabled,d=t.mode,m=t.showSearch,h=t.autoFocus,v=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,C=t.maxTagCount,$=t.maxTagTextLength,x=t.maxTagPlaceholder,y=x===void 0?function(Q){return "+ ".concat(Q.length," ...")}:x,S=t.tagRender,w=t.onToggleOpen,I=t.onRemove,E=t.onInputChange,O=t.onInputPaste,N=t.onInputKeyDown,R=t.onInputMouseDown,P=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=u__namespace.useRef(null),A=u.useState(0),M=U(A,2),k=M[0],z=M[1],B=u.useState(!1),W=U(B,2),j=W[0],G=W[1],F="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",re=d==="tags"||d==="multiple"&&s===!1||m&&(i||j);xP(function(){z(T.current.scrollWidth);},[K]);function Z(Q,ne,ce,se,me){return u__namespace.createElement("span",{className:V("".concat(F,"-item"),q({},"".concat(F,"-item-disabled"),ce)),title:A0(Q)},u__namespace.createElement("span",{className:"".concat(F,"-item-content")},ne),se&&u__namespace.createElement(Gl,{className:"".concat(F,"-item-remove"),onMouseDown:Pv,onClick:me,customizeIcon:b},"×"))}function Y(Q,ne,ce,se,me){var oe=function(ue){Pv(ue),w(!i);};return u__namespace.createElement("span",{onMouseDown:oe},S({label:ne,value:Q,disabled:ce,closable:se,onClose:me}))}function J(Q){var ne=Q.disabled,ce=Q.label,se=Q.value,me=!f&&!ne,oe=ce;if(typeof $=="number"&&(typeof ce=="string"||typeof ce=="number")){var he=String(oe);he.length>$&&(oe="".concat(he.slice(0,$),"..."));}var ue=function(_e){_e&&_e.stopPropagation(),I(Q);};return typeof S=="function"?Y(se,oe,ne,me,ue):Z(Q,oe,ne,me,ue)}function ie(Q){var ne=typeof y=="function"?y(Q):y;return Z({title:ne},ne,!1)}var ae=u__namespace.createElement("div",{className:"".concat(F,"-search"),style:{width:k},onFocus:function(){G(!0);},onBlur:function(){G(!1);}},u__namespace.createElement(Sm,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:h,autoComplete:v,editable:re,activeDescendantId:g,value:K,onKeyDown:N,onMouseDown:R,onChange:E,onPaste:O,onCompositionStart:P,onCompositionEnd:_,tabIndex:p,attrs:is(t,!0)}),u__namespace.createElement("span",{ref:T,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},K," ")),de=u__namespace.createElement(Mr,{prefixCls:"".concat(F,"-overflow"),data:o,renderItem:J,renderRest:ie,suffix:ae,itemKey:EP,maxCount:C});return u__namespace.createElement(u__namespace.Fragment,null,de,!o.length&&!K&&u__namespace.createElement("span",{className:"".concat(F,"-placeholder")},c))},IP=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,f=t.mode,d=t.open,m=t.values,h=t.placeholder,v=t.tabIndex,g=t.showSearch,p=t.searchValue,b=t.activeValue,C=t.maxLength,$=t.onInputKeyDown,x=t.onInputMouseDown,y=t.onInputChange,S=t.onInputPaste,w=t.onInputCompositionStart,I=t.onInputCompositionEnd,E=t.title,O=u__namespace.useState(!1),N=U(O,2),R=N[0],P=N[1],_=f==="combobox",T=_||g,A=m[0],M=p||"";_&&b&&!R&&(M=b),u__namespace.useEffect(function(){_&&P(!1);},[_,b]);var k=f!=="combobox"&&!d&&!g?!1:!!M,z=E===void 0?A0(A):E,B=function(){if(A)return null;var j=k?{visibility:"hidden"}:void 0;return u__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j},h)};return u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("span",{className:"".concat(r,"-selection-search")},u__namespace.createElement(Sm,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:M,onKeyDown:$,onMouseDown:x,onChange:function(j){P(!0),y(j);},onPaste:S,onCompositionStart:w,onCompositionEnd:I,tabIndex:v,attrs:is(t,!0),maxLength:_?C:void 0})),!_&&A?u__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:k?{visibility:"hidden"}:void 0},A.label):null,B())};function _P(e){return ![ee.ESC,ee.SHIFT,ee.BACKSPACE,ee.TAB,ee.WIN_KEY,ee.ALT,ee.META,ee.WIN_KEY_RIGHT,ee.CTRL,ee.SEMICOLON,ee.EQUALS,ee.CAPS_LOCK,ee.CONTEXT_MENU,ee.F1,ee.F2,ee.F3,ee.F4,ee.F5,ee.F6,ee.F7,ee.F8,ee.F9,ee.F10,ee.F11,ee.F12].includes(e)}var PP=function(t,n){var r=u.useRef(null),o=u.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,f=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,g=t.domRef;u__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=P0(0),b=U(p,2),C=b[0],$=b[1],x=function(M){var k=M.which;(k===ee.UP||k===ee.DOWN)&&M.preventDefault(),v&&v(M),k===ee.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(M.target.value)),_P(k)&&h(!0);},y=function(){$(!0);},S=u.useRef(null),w=function(M){d(M,!0,o.current)!==!1&&h(!0);},I=function(){o.current=!0;},E=function(M){o.current=!1,s!=="combobox"&&w(M.target.value);},O=function(M){var k=M.target.value;if(c&&S.current&&/[\r\n]/.test(S.current)){var z=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");k=k.replace(z,S.current);}S.current=null,w(k);},N=function(M){var k=M.clipboardData,z=k.getData("text");S.current=z;},R=function(M){var k=M.target;if(k!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},P=function(M){var k=C();M.target!==r.current&&!k&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!k)||!a)&&(a&&f!==!1&&d("",!0,!1),h());},_={inputRef:r,onInputKeyDown:x,onInputMouseDown:y,onInputChange:O,onInputPaste:N,onInputCompositionStart:I,onInputCompositionEnd:E},T=s==="multiple"||s==="tags"?u__namespace.createElement(OP,ye({},t,_)):u__namespace.createElement(IP,ye({},t,_));return u__namespace.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:R,onMouseDown:P},T)},k0=u__namespace.forwardRef(PP);k0.displayName="Selector";var RP=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],TP=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"}}},MP=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,f=t.dropdownStyle,d=t.dropdownClassName,m=t.direction,h=m===void 0?"ltr":m,v=t.placement,g=t.builtinPlacements,p=t.dropdownMatchSelectWidth,b=t.dropdownRender,C=t.dropdownAlign,$=t.getPopupContainer,x=t.empty,y=t.getTriggerDOMNode,S=t.onPopupVisibleChange,w=t.onPopupMouseEnter,I=Je(t,RP),E="".concat(r,"-dropdown"),O=a;b&&(O=b(a));var N=u__namespace.useMemo(function(){return g||TP(p)},[g,p]),R=l?"".concat(E,"-").concat(l):c,P=u__namespace.useRef(null);u__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return P.current}}});var _=X({minWidth:s},f);return typeof p=="number"?_.width=p:p&&(_.width=s),u__namespace.createElement(Dc,ye({},I,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:v||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:E,popupTransitionName:R,popup:u__namespace.createElement("div",{ref:P,onMouseEnter:w},O),popupAlign:C,popupVisible:o,getPopupContainer:$,popupClassName:V(d,q({},"".concat(E,"-empty"),x)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:S}),i)},D0=u__namespace.forwardRef(MP);D0.displayName="SelectTrigger";function Rv(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 L0(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function NP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=L0(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function f(d,m){d.forEach(function(h){if(m||!(l in h)){var v=h[s];o.push({key:Rv(h,o.length),groupOption:m,data:h,label:h[a],value:v});}else {var g=h[c];g===void 0&&r&&(g=h.label),o.push({key:Rv(h,o.length),group:!0,data:h,label:g}),f(h[l],!0);}});}return f(e,!1),o}function Wd(e){var t=X({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return zr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function AP(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=Bb(a),l=s[0],c=s.slice(1);if(!l)return [i];var f=i.split(l);return n=n||f.length>1,f.reduce(function(d,m){return [].concat(qe(d),qe(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var kP=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DP=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Vd(e){return e==="tags"||e==="multiple"}var LP=u__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,f=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,p=e.onClear,b=e.mode,C=e.disabled,$=e.loading,x=e.getInputElement,y=e.getRawInputElement,S=e.open,w=e.defaultOpen,I=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,N=e.activeDescendantId,R=e.searchValue,P=e.autoClearSearchValue,_=e.onSearch,T=e.onSearchSplit,A=e.tokenSeparators,M=e.allowClear,k=e.showArrow,z=e.inputIcon,B=e.clearIcon,W=e.OptionList,j=e.animation,G=e.transitionName,F=e.dropdownStyle,K=e.dropdownClassName,re=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,J=e.placement,ie=e.builtinPlacements,ae=e.getPopupContainer,de=e.showAction,Q=de===void 0?[]:de,ne=e.onFocus,ce=e.onBlur,se=e.onKeyUp,me=e.onKeyDown,oe=e.onMouseDown,he=Je(e,kP),ue=Vd(b),fe=(s!==void 0?s:ue)||b==="combobox",_e=X({},he);DP.forEach(function(we){delete _e[we];}),f==null||f.forEach(function(we){delete _e[we];});var et=u__namespace.useState(!1),Ue=U(et,2),De=Ue[0],Qe=Ue[1];u__namespace.useEffect(function(){Qe(kc());},[]);var it=u__namespace.useRef(null),Ze=u__namespace.useRef(null),Ve=u__namespace.useRef(null),Re=u__namespace.useRef(null),be=u__namespace.useRef(null),je=nP(),He=U(je,3),pe=He[0],$e=He[1],Xe=He[2];u__namespace.useImperativeHandle(t,function(){var we,Se;return {focus:(we=Re.current)===null||we===void 0?void 0:we.focus,blur:(Se=Re.current)===null||Se===void 0?void 0:Se.blur,scrollTo:function(Ct){var gt;return (gt=be.current)===null||gt===void 0?void 0:gt.scrollTo(Ct)}}});var Fe=u__namespace.useMemo(function(){var we;if(b!=="combobox")return R;var Se=(we=d[0])===null||we===void 0?void 0:we.value;return typeof Se=="string"||typeof Se=="number"?String(Se):""},[R,b,d]),dt=b==="combobox"&&typeof x=="function"&&x()||null,Ee=typeof y=="function"&&y(),Oe=Ss(Ze,Ee==null||(n=Ee.props)===null||n===void 0?void 0:n.ref),Le=u__namespace.useState(!1),Pe=U(Le,2),tt=Pe[0],St=Pe[1];Gt(function(){St(!0);},[]);var kt=Zt(!1,{defaultValue:w,value:S}),At=U(kt,2),Ne=At[0],ve=At[1],le=tt?Ne:!1,Ce=!g&&h;(C||Ce&&le&&b==="combobox")&&(le=!1);var xe=Ce?!1:le,Ye=u__namespace.useCallback(function(we){var Se=we!==void 0?we:!le;C||(ve(Se),le!==Se&&(I==null||I(Se)));},[C,le,ve,I]),mt=u__namespace.useMemo(function(){return (A||[]).some(function(we){return [`
`,`\r
`].includes(we)})},[A]),bt=function(Se,rt,Ct){var gt=!0,_t=Se;O==null||O(null);var Yt=Ct?null:AP(Se,A);return b!=="combobox"&&Yt&&(_t="",T==null||T(Yt),Ye(!1),gt=!1),_&&Fe!==_t&&_(_t,{source:rt?"typing":"effect"}),gt},Ut=function(Se){!Se||!Se.trim()||_(Se,{source:"submit"});};u__namespace.useEffect(function(){!le&&!ue&&b!=="combobox"&&bt("",!1,!1);},[le]),u__namespace.useEffect(function(){Ne&&C&&ve(!1),C&&$e(!1);},[C]);var Bt=P0(),Ae=U(Bt,2),We=Ae[0],Te=Ae[1],yt=function(Se){var rt=We(),Ct=Se.which;if(Ct===ee.ENTER&&(b!=="combobox"&&Se.preventDefault(),le||Ye(!0)),Te(!!Fe),Ct===ee.BACKSPACE&&!rt&&ue&&!Fe&&d.length){for(var gt=qe(d),_t=null,Yt=gt.length-1;Yt>=0;Yt-=1){var ir=gt[Yt];if(!ir.disabled){gt.splice(Yt,1),_t=ir;break}}_t&&m(gt,{type:"remove",values:[_t]});}for(var bn=arguments.length,Sr=new Array(bn>1?bn-1:0),qn=1;qn<bn;qn++)Sr[qn-1]=arguments[qn];if(le&&be.current){var Ro;(Ro=be.current).onKeyDown.apply(Ro,[Se].concat(Sr));}me==null||me.apply(void 0,[Se].concat(Sr));},vt=function(Se){for(var rt=arguments.length,Ct=new Array(rt>1?rt-1:0),gt=1;gt<rt;gt++)Ct[gt-1]=arguments[gt];if(le&&be.current){var _t;(_t=be.current).onKeyUp.apply(_t,[Se].concat(Ct));}se==null||se.apply(void 0,[Se].concat(Ct));},Qt=function(Se){var rt=d.filter(function(Ct){return Ct!==Se});m(rt,{type:"remove",values:[Se]});},Me=u__namespace.useRef(!1),Be=function(){$e(!0),C||(ne&&!Me.current&&ne.apply(void 0,arguments),Q.includes("focus")&&Ye(!0)),Me.current=!0;},ct=function(){$e(!1,function(){Me.current=!1,Ye(!1);}),!C&&(Fe&&(b==="tags"?_(Fe,{source:"submit"}):b==="multiple"&&_("",{source:"blur"})),ce&&ce.apply(void 0,arguments));},xt=[];u__namespace.useEffect(function(){return function(){xt.forEach(function(we){return clearTimeout(we)}),xt.splice(0,xt.length);}},[]);var Xt=function(Se){var rt,Ct=Se.target,gt=(rt=Ve.current)===null||rt===void 0?void 0:rt.getPopupElement();if(gt&>.contains(Ct)){var _t=setTimeout(function(){var Sr=xt.indexOf(_t);if(Sr!==-1&&xt.splice(Sr,1),Xe(),!De&&!gt.contains(document.activeElement)){var qn;(qn=Re.current)===null||qn===void 0||qn.focus();}});xt.push(_t);}for(var Yt=arguments.length,ir=new Array(Yt>1?Yt-1:0),bn=1;bn<Yt;bn++)ir[bn-1]=arguments[bn];oe==null||oe.apply(void 0,[Se].concat(ir));},zt=u__namespace.useState(null),pn=U(zt,2),In=pn[0],or=pn[1],jr=u__namespace.useState({}),Cr=U(jr,2),Yn=Cr[1];function $n(){Yn({});}Gt(function(){if(xe){var we,Se=Math.ceil((we=it.current)===null||we===void 0?void 0:we.offsetWidth);In!==Se&&!Number.isNaN(Se)&&or(Se);}},[xe]);var Hr;Ee&&(Hr=function(Se){Ye(Se);}),rP(function(){var we;return [it.current,(we=Ve.current)===null||we===void 0?void 0:we.getPopupElement()]},xe,Ye,!!Ee);var Oo=u__namespace.useMemo(function(){return X(X({},e),{},{notFoundContent:g,open:le,triggerOpen:xe,id:o,showSearch:fe,multiple:ue,toggleOpen:Ye})},[e,g,xe,le,o,fe,ue,Ye]),Br=k!==void 0?k:$||!ue&&b!=="combobox",Fr;Br&&(Fr=u__namespace.createElement(Gl,{className:V("".concat(i,"-arrow"),q({},"".concat(i,"-arrow-loading"),$)),customizeIcon:z,customizeIconProps:{loading:$,searchValue:Fe,open:le,focused:pe,showSearch:fe}}));var Wr,Io=function(){var Se;p==null||p(),(Se=Re.current)===null||Se===void 0||Se.focus(),m([],{type:"clear",values:d}),bt("",!1,!1);};!C&&M&&(d.length||Fe)&&!(b==="combobox"&&Fe==="")&&(Wr=u__namespace.createElement(Gl,{className:"".concat(i,"-clear"),onMouseDown:Io,customizeIcon:B},"×"));var _o=u__namespace.createElement(W,{ref:be}),Po=V(i,a,(r={},q(r,"".concat(i,"-focused"),pe),q(r,"".concat(i,"-multiple"),ue),q(r,"".concat(i,"-single"),!ue),q(r,"".concat(i,"-allow-clear"),M),q(r,"".concat(i,"-show-arrow"),Br),q(r,"".concat(i,"-disabled"),C),q(r,"".concat(i,"-loading"),$),q(r,"".concat(i,"-open"),le),q(r,"".concat(i,"-customize-input"),dt),q(r,"".concat(i,"-show-search"),fe),r)),Vr=u__namespace.createElement(D0,{ref:Ve,disabled:C,prefixCls:i,visible:xe,popupElement:_o,containerWidth:In,animation:j,transitionName:G,dropdownStyle:F,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:re,dropdownRender:Z,dropdownAlign:Y,placement:J,builtinPlacements:ie,getPopupContainer:ae,empty:h,getTriggerDOMNode:function(){return Ze.current},onPopupVisibleChange:Hr,onPopupMouseEnter:$n},Ee?u__namespace.cloneElement(Ee,{ref:Oe}):u__namespace.createElement(k0,ye({},e,{domRef:Ze,prefixCls:i,inputElement:dt,ref:Re,id:o,showSearch:fe,autoClearSearchValue:P,mode:b,activeDescendantId:N,tagRender:l,values:d,open:le,onToggleOpen:Ye,activeValue:E,searchValue:Fe,onSearch:bt,onSearchSubmit:Ut,onRemove:Qt,tokenWithEnter:mt}))),It;return Ee?It=Vr:It=u__namespace.createElement("div",ye({className:Po},_e,{ref:it,onMouseDown:Xt,onKeyDown:yt,onKeyUp:vt,onFocus:Be,onBlur:ct}),pe&&!le&&u__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(we){var Se=we.label,rt=we.value;return ["number","string"].includes(ft(Se))?Se:rt}).join(", "))),Vr,Fr,Wr),u__namespace.createElement(_0.Provider,{value:Oo},It)});const zP=function(e,t){var n=u__namespace.useRef({values:new Map,options:new Map}),r=u__namespace.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var m;return X(X({},d),{},{label:(m=a.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,f=new Map;return l.forEach(function(d){c.set(d.value,d),f.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=f,l},[e,t]),o=u__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function Fu(e,t){return N0(e).join("").toUpperCase().includes(t)}const jP=function(e,t,n,r,o){return u__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",f=n.toUpperCase(),d=c?r:function(h,v){return o?Fu(v[o],f):v[i]?Fu(v[a!=="children"?a:"label"],f):Fu(v[s],f)},m=c?function(h){return Wd(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var v=d(n,m(h));if(v)l.push(h);else {var g=h[i].filter(function(p){return d(n,m(p))});g.length&&l.push(X(X({},h),{},q({},i,g)));}return}d(n,m(h))&&l.push(h);}),l},[e,r,o,n,t])};var Tv=0,HP=Rn();function BP(){var e;return HP?(e=Tv,Tv+=1):e="TEST_OR_SSR",e}function FP(e){var t=u__namespace.useState(),n=U(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){o("rc_select_".concat(BP()));},[]),e||r}var WP=["children","value"],VP=["children"];function GP(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Je(r,WP);return X({key:n,value:i!==void 0?i:n,children:o},a)}function z0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(e).map(function(n,r){if(!u__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Je(s,VP);return t||!i?GP(n):X(X({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:z0(l)})}).filter(function(n){return n})}function KP(e,t,n,r,o){return u__namespace.useMemo(function(){var i=e,a=!e;a&&(i=z0(t));var s=new Map,l=new Map,c=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h);};function f(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var v=d[h];!v[n.options]||m?(s.set(v[n.value],v),c(l,v,n.label),c(l,v,r),c(l,v,o)):f(v[n.options],!0);}}return f(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Mv(e){var t=u__namespace.useRef();t.current=e;var n=u__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var wm=function(){return null};wm.isSelectOptGroup=!0;var $m=function(){return null};$m.isSelectOption=!0;function On(e,t){var n=X({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}var j0=u__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=X(X({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),u__namespace.createElement("div",{style:l},u__namespace.createElement(Jr,{onResize:function(d){var m=d.offsetHeight;m&&a&&a();}},u__namespace.createElement("div",ye({style:c,className:V(q({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});j0.displayName="Filler";var UP=20;function Nv(e){return "touches"in e?e.touches[0].pageY:e.pageY}var XP=function(e){sa(n,e);var t=la(n);function n(){var r;Nn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=u__namespace.createRef(),r.thumbRef=u__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),Mt.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:Nv(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,f=l.pageY,d=l.startTop,m=r.props.onScroll;if(Mt.cancel(r.moveRaf),c){var h=Nv(s)-f,v=d+h,g=r.getEnableScrollRange(),p=r.getEnableHeightRange(),b=p?v/p:0,C=Math.ceil(b*g);r.moveRaf=Mt(function(){m(C);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,f=l/c*10;return f=Math.max(f,UP),f=Math.min(f,l/2),Math.floor(f)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var f=s/l;return f*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return An(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,f=this.getSpinHeight(),d=this.getTop(),m=this.showScroll(),h=m&&a,v=c==="rtl"?{left:0}:{right:0};return u__namespace.createElement("div",{ref:this.scrollbarRef,className:V("".concat(l,"-scrollbar"),q({},"".concat(l,"-scrollbar-show"),m)),style:X(X({width:8,top:0,bottom:0},v),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},u__namespace.createElement("div",{ref:this.thumbRef,className:V("".concat(l,"-scrollbar-thumb"),q({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:f,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(u__namespace.Component);function YP(e){var t=e.children,n=e.setRef,r=u__namespace.useCallback(function(o){n(o);},[]);return u__namespace.cloneElement(t,{ref:r})}function qP(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,f=o(s,c,{}),d=a(s);return u__namespace.createElement(YP,{key:d,setRef:function(h){return r(s,h)}},f)})}var ZP=function(){function e(){Nn(this,e),this.maps=void 0,this.maps=Object.create(null);}return An(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function QP(e,t,n){var r=u__namespace.useState(0),o=U(r,2),i=o[0],a=o[1],s=u.useRef(new Map),l=u.useRef(new ZP),c=u.useRef();function f(){Mt.cancel(c.current);}function d(){f(),c.current=Mt(function(){s.current.forEach(function(h,v){if(h&&h.offsetParent){var g=kl(h),p=g.offsetHeight;l.current.get(v)!==p&&l.current.set(v,g.offsetHeight);}}),a(function(h){return h+1});});}function m(h,v){var g=e(h),p=s.current.get(g);v?(s.current.set(g,v),d()):s.current.delete(g),!p!=!v&&(v?t==null||t(h):n==null||n(h));}return u.useEffect(function(){return f},[]),[m,d,l.current,i]}function JP(e,t,n,r,o,i,a,s){var l=u__namespace.useRef();return function(c){if(c==null){s();return}if(Mt.cancel(l.current),typeof c=="number")a(c);else if(c&&ft(c)==="object"){var f,d=c.align;"index"in c?f=c.index:f=t.findIndex(function(g){return o(g)===c.key});var m=c.offset,h=m===void 0?0:m,v=function g(p,b){if(!(p<0||!e.current)){var C=e.current.clientHeight,$=!1,x=b;if(C){for(var y=b||d,S=0,w=0,I=0,E=Math.min(t.length,f),O=0;O<=E;O+=1){var N=o(t[O]);w=S;var R=n.get(N);I=w+(R===void 0?r:R),S=I,O===f&&R===void 0&&($=!0);}var P=null;switch(y){case"top":P=w-h;break;case"bottom":P=I-C+h;break;default:{var _=e.current.scrollTop,T=_+C;w<_?x="top":I>T&&(x="bottom");}}P!==null&&P!==e.current.scrollTop&&a(P);}l.current=Mt(function(){$&&i(),g(p-1,x);},2);}};v(3);}}}function eR(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(v){return v!==void 0?n(v):s}for(var c=null,f=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var m=l(i[d]),h=l(a[d]);if(m!==h){c=d,f=f||m!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:f}}function tR(e,t,n){var r=u__namespace.useState(e),o=U(r,2),i=o[0],a=o[1],s=u__namespace.useState(null),l=U(s,2),c=l[0],f=l[1];return u__namespace.useEffect(function(){var d=eR(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),f(e[d.index])),a(e);},[e]),[c]}var nR=(typeof navigator>"u"?"undefined":ft(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const H0=function(e,t){var n=u.useRef(!1),r=u.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=u.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function rR(e,t,n,r){var o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),s=u.useRef(!1),l=H0(t,n);function c(d){if(e){Mt.cancel(i.current);var m=d.deltaY;o.current+=m,a.current=m,!l(m)&&(nR||d.preventDefault(),i.current=Mt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function f(d){e&&(s.current=d.detail===a.current);}return [c,f]}var oR=14/15;function iR(e,t,n){var r=u.useRef(!1),o=u.useRef(0),i=u.useRef(null),a=u.useRef(null),s,l=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),v=o.current-h;o.current=h,n(v)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){v*=oR,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},f=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Gt(function(){return e&&t.current.addEventListener("touchstart",f),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),s(),clearInterval(a.current);}},[e]);}var aR=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],sR=[],lR={overflowY:"auto",overflowAnchor:"none"};function cR(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,f=e.data,d=e.children,m=e.itemKey,h=e.virtual,v=e.direction,g=e.component,p=g===void 0?"div":g,b=e.onScroll,C=e.onVisibleChange,$=e.innerProps,x=Je(e,aR),y=!!(h!==!1&&i&&a),S=y&&f&&a*f.length>i,w=u.useState(0),I=U(w,2),E=I[0],O=I[1],N=u.useState(!1),R=U(N,2),P=R[0],_=R[1],T=V(r,q({},"".concat(r,"-rtl"),v==="rtl"),o),A=f||sR,M=u.useRef(),k=u.useRef(),z=u.useRef(),B=u__namespace.useCallback(function(pe){return typeof m=="function"?m(pe):pe==null?void 0:pe[m]},[m]),W={getKey:B};function j(pe){O(function($e){var Xe;typeof pe=="function"?Xe=pe($e):Xe=pe;var Fe=fe(Xe);return M.current.scrollTop=Fe,Fe});}var G=u.useRef({start:0,end:A.length}),F=u.useRef(),K=tR(A,B),re=U(K,1),Z=re[0];F.current=Z;var Y=QP(B,null,null),J=U(Y,4),ie=J[0],ae=J[1],de=J[2],Q=J[3],ne=u__namespace.useMemo(function(){if(!y)return {scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!S){var pe;return {scrollHeight:((pe=k.current)===null||pe===void 0?void 0:pe.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var $e=0,Xe,Fe,dt,Ee=A.length,Oe=0;Oe<Ee;Oe+=1){var Le=A[Oe],Pe=B(Le),tt=de.get(Pe),St=$e+(tt===void 0?a:tt);St>=E&&Xe===void 0&&(Xe=Oe,Fe=$e),St>E+i&&dt===void 0&&(dt=Oe),$e=St;}return Xe===void 0&&(Xe=0,Fe=0,dt=Math.ceil(i/a)),dt===void 0&&(dt=A.length-1),dt=Math.min(dt+1,A.length),{scrollHeight:$e,start:Xe,end:dt,offset:Fe}},[S,y,E,A,Q,i]),ce=ne.scrollHeight,se=ne.start,me=ne.end,oe=ne.offset;G.current.start=se,G.current.end=me;var he=ce-i,ue=u.useRef(he);ue.current=he;function fe(pe){var $e=pe;return Number.isNaN(ue.current)||($e=Math.min($e,ue.current)),$e=Math.max($e,0),$e}var _e=E<=0,et=E>=he,Ue=H0(_e,et);function De(pe){var $e=pe;j($e);}function Qe(pe){var $e=pe.currentTarget.scrollTop;$e!==E&&j($e),b==null||b(pe);}var it=rR(y,_e,et,function(pe){j(function($e){var Xe=$e+pe;return Xe});}),Ze=U(it,2),Ve=Ze[0],Re=Ze[1];iR(y,M,function(pe,$e){return Ue(pe,$e)?!1:(Ve({preventDefault:function(){},deltaY:pe}),!0)}),Gt(function(){function pe($e){y&&$e.preventDefault();}return M.current.addEventListener("wheel",Ve),M.current.addEventListener("DOMMouseScroll",Re),M.current.addEventListener("MozMousePixelScroll",pe),function(){M.current&&(M.current.removeEventListener("wheel",Ve),M.current.removeEventListener("DOMMouseScroll",Re),M.current.removeEventListener("MozMousePixelScroll",pe));}},[y]);var be=JP(M,A,de,a,B,ae,j,function(){var pe;(pe=z.current)===null||pe===void 0||pe.delayHidden();});u__namespace.useImperativeHandle(t,function(){return {scrollTo:be}}),Gt(function(){if(C){var pe=A.slice(se,me+1);C(pe,A);}},[se,me,A]);var je=qP(A,se,me,ie,d,W),He=null;return i&&(He=X(q({},l?"height":"maxHeight",i),lR),y&&(He.overflowY="hidden",P&&(He.pointerEvents="none"))),u__namespace.createElement("div",ye({style:X(X({},c),{},{position:"relative"}),className:T},x),u__namespace.createElement(p,{className:"".concat(r,"-holder"),style:He,ref:M,onScroll:Qe},u__namespace.createElement(j0,{prefixCls:r,height:ce,offset:oe,onInnerResize:ae,ref:k,innerProps:$},je)),y&&u__namespace.createElement(XP,{ref:z,prefixCls:r,scrollTop:E,height:i,scrollHeight:ce,count:A.length,direction:v,onScroll:De,onStartMove:function(){_(!0);},onStopMove:function(){_(!1);}}))}var B0=u__namespace.forwardRef(cR);B0.displayName="List";var F0=u__namespace.createContext(null);function uR(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var dR=["disabled","title","children","style","className"];function Av(e){return typeof e=="string"||typeof e=="number"}var fR=function(t,n){var r=tP(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,f=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=u__namespace.useContext(F0),v=h.flattenOptions,g=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,C=h.menuItemSelectedIcon,$=h.rawValues,x=h.fieldNames,y=h.virtual,S=h.direction,w=h.listHeight,I=h.listItemHeight,E="".concat(o,"-item"),O=Cs(function(){return v},[a,v],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),N=u__namespace.useRef(null),R=function(Y){Y.preventDefault();},P=function(Y){N.current&&N.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},_=function(Y){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=O.length,ae=0;ae<ie;ae+=1){var de=(Y+ae*J+ie)%ie,Q=O[de],ne=Q.group,ce=Q.data;if(!ne&&!ce.disabled)return de}return -1},T=u__namespace.useState(function(){return _(0)}),A=U(T,2),M=A[0],k=A[1],z=function(Y){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;k(Y);var ie={source:J?"keyboard":"mouse"},ae=O[Y];if(!ae){g(null,-1,ie);return}g(ae.value,Y,ie);};u.useEffect(function(){z(p!==!1?_(0):-1);},[O.length,c]);var B=u__namespace.useCallback(function(Z){return $.has(Z)&&l!=="combobox"},[l,qe($).toString(),$.size]);u.useEffect(function(){var Z=setTimeout(function(){if(!s&&a&&$.size===1){var J=Array.from($)[0],ie=O.findIndex(function(ae){var de=ae.data;return de.value===J});ie!==-1&&(z(ie),P(ie));}});if(a){var Y;(Y=N.current)===null||Y===void 0||Y.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[a,c,v.length]);var W=function(Y){Y!==void 0&&b(Y,{selected:!$.has(Y)}),s||f(!1);};if(u__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var J=Y.which,ie=Y.ctrlKey;switch(J){case ee.N:case ee.P:case ee.UP:case ee.DOWN:{var ae=0;if(J===ee.UP?ae=-1:J===ee.DOWN?ae=1:uR()&&ie&&(J===ee.N?ae=1:J===ee.P&&(ae=-1)),ae!==0){var de=_(M+ae,ae);P(de),z(de,!0);}break}case ee.ENTER:{var Q=O[M];Q&&!Q.data.disabled?W(Q.value):W(void 0),a&&Y.preventDefault();break}case ee.ESC:f(!1),a&&Y.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Y){P(Y);}}}),O.length===0)return u__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(E,"-empty"),onMouseDown:R},d);var j=Object.keys(x).map(function(Z){return x[Z]}),G=function(Y){return Y.label};function F(Z,Y){var J=Z.group;return {role:J?"presentation":"option",id:"".concat(i,"_list_").concat(Y)}}var K=function(Y){var J=O[Y];if(!J)return null;var ie=J.data||{},ae=ie.value,de=J.group,Q=is(ie,!0),ne=G(J);return J?u__namespace.createElement("div",ye({"aria-label":typeof ne=="string"&&!de?ne:null},Q,{key:Y},F(J,Y),{"aria-selected":B(ae)}),ae):null},re={role:"listbox",id:"".concat(i,"_list")};return u__namespace.createElement(u__namespace.Fragment,null,y&&u__namespace.createElement("div",ye({},re,{style:{height:0,width:0,overflow:"hidden"}}),K(M-1),K(M),K(M+1)),u__namespace.createElement(B0,{itemKey:"key",ref:N,data:O,height:w,itemHeight:I,fullHeight:!1,onMouseDown:R,onScroll:m,virtual:y,direction:S,innerProps:y?null:re},function(Z,Y){var J,ie=Z.group,ae=Z.groupOption,de=Z.data,Q=Z.label,ne=Z.value,ce=de.key;if(ie){var se,me=(se=de.title)!==null&&se!==void 0?se:Av(Q)?Q.toString():void 0;return u__namespace.createElement("div",{className:V(E,"".concat(E,"-group")),title:me},Q!==void 0?Q:ce)}var oe=de.disabled,he=de.title;de.children;var ue=de.style,fe=de.className,_e=Je(de,dR),et=On(_e,j),Ue=B(ne),De="".concat(E,"-option"),Qe=V(E,De,fe,(J={},q(J,"".concat(De,"-grouped"),ae),q(J,"".concat(De,"-active"),M===Y&&!oe),q(J,"".concat(De,"-disabled"),oe),q(J,"".concat(De,"-selected"),Ue),J)),it=G(Z),Ze=!C||typeof C=="function"||Ue,Ve=typeof it=="number"?it:it||ne,Re=Av(Ve)?Ve.toString():void 0;return he!==void 0&&(Re=he),u__namespace.createElement("div",ye({},is(et),y?{}:F(Z,Y),{"aria-selected":Ue,className:Qe,title:Re,onMouseMove:function(){M===Y||oe||z(Y);},onClick:function(){oe||W(ne);},style:ue}),u__namespace.createElement("div",{className:"".concat(De,"-content")},Ve),u__namespace.isValidElement(C)||Ue,Ze&&u__namespace.createElement(Gl,{className:"".concat(E,"-option-state"),customizeIcon:C,customizeIconProps:{isSelected:Ue}},Ue?"✓":null))}))},W0=u__namespace.forwardRef(fR);W0.displayName="OptionList";var mR=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],hR=["inputValue"];function vR(e){return !e||ft(e)!=="object"}var gR=u__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,f=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,h=e.onSelect,v=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,b=e.filterOption,C=e.filterSort,$=e.optionFilterProp,x=e.optionLabelProp,y=e.options,S=e.children,w=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,E=e.virtual,O=e.direction,N=e.listHeight,R=N===void 0?200:N,P=e.listItemHeight,_=P===void 0?20:P,T=e.value,A=e.defaultValue,M=e.labelInValue,k=e.onChange,z=Je(e,mR),B=FP(n),W=Vd(r),j=!!(!y&&S),G=u__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),F=u__namespace.useMemo(function(){return L0(s,j)},[JSON.stringify(s),j]),K=Zt("",{value:c!==void 0?c:l,postState:function(le){return le||""}}),re=U(K,2),Z=re[0],Y=re[1],J=KP(y,S,F,$,x),ie=J.valueOptions,ae=J.labelOptions,de=J.options,Q=u__namespace.useCallback(function(ve){var le=N0(ve);return le.map(function(Ce){var xe,Ye,mt,bt,Ut;if(vR(Ce))xe=Ce;else {var Bt;mt=Ce.key,Ye=Ce.label,xe=(Bt=Ce.value)!==null&&Bt!==void 0?Bt:mt;}var Ae=ie.get(xe);if(Ae){var We;Ye===void 0&&(Ye=Ae==null?void 0:Ae[x||F.label]),mt===void 0&&(mt=(We=Ae==null?void 0:Ae.key)!==null&&We!==void 0?We:xe),bt=Ae==null?void 0:Ae.disabled,Ut=Ae==null?void 0:Ae.title;}return {label:Ye,value:xe,key:mt,disabled:bt,title:Ut}})},[F,x,ie]),ne=Zt(A,{value:T}),ce=U(ne,2),se=ce[0],me=ce[1],oe=u__namespace.useMemo(function(){var ve,le=Q(se);return r==="combobox"&&!((ve=le[0])!==null&&ve!==void 0&&ve.value)?[]:le},[se,Q,r]),he=zP(oe,ie),ue=U(he,2),fe=ue[0],_e=ue[1],et=u__namespace.useMemo(function(){if(!r&&fe.length===1){var ve=fe[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return []}return fe.map(function(le){var Ce;return X(X({},le),{},{label:(Ce=le.label)!==null&&Ce!==void 0?Ce:le.value})})},[r,fe]),Ue=u__namespace.useMemo(function(){return new Set(fe.map(function(ve){return ve.value}))},[fe]);u__namespace.useEffect(function(){if(r==="combobox"){var ve,le=(ve=fe[0])===null||ve===void 0?void 0:ve.value;Y($P(le)?String(le):"");}},[fe]);var De=Mv(function(ve,le){var Ce,xe=le??ve;return Ce={},q(Ce,F.value,ve),q(Ce,F.label,xe),Ce}),Qe=u__namespace.useMemo(function(){if(r!=="tags")return de;var ve=qe(de),le=function(xe){return ie.has(xe)};return qe(fe).sort(function(Ce,xe){return Ce.value<xe.value?-1:1}).forEach(function(Ce){var xe=Ce.value;le(xe)||ve.push(De(xe,Ce.label));}),ve},[De,de,ie,fe,r]),it=jP(Qe,F,Z,G,$),Ze=u__namespace.useMemo(function(){return r!=="tags"||!Z||it.some(function(ve){return ve[$||"value"]===Z})?it:[De(Z)].concat(qe(it))},[De,$,r,it,Z]),Ve=u__namespace.useMemo(function(){return C?qe(Ze).sort(function(ve,le){return C(ve,le)}):Ze},[Ze,C]),Re=u__namespace.useMemo(function(){return NP(Ve,{fieldNames:F,childrenAsData:j})},[Ve,F,j]),be=function(le){var Ce=Q(le);if(me(Ce),k&&(Ce.length!==fe.length||Ce.some(function(mt,bt){var Ut;return ((Ut=fe[bt])===null||Ut===void 0?void 0:Ut.value)!==(mt==null?void 0:mt.value)}))){var xe=M?Ce:Ce.map(function(mt){return mt.value}),Ye=Ce.map(function(mt){return Wd(_e(mt.value))});k(W?xe:xe[0],W?Ye:Ye[0]);}},je=u__namespace.useState(null),He=U(je,2),pe=He[0],$e=He[1],Xe=u__namespace.useState(0),Fe=U(Xe,2),dt=Fe[0],Ee=Fe[1],Oe=w!==void 0?w:r!=="combobox",Le=u__namespace.useCallback(function(ve,le){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=Ce.source,Ye=xe===void 0?"keyboard":xe;Ee(le),a&&r==="combobox"&&ve!==null&&Ye==="keyboard"&&$e(String(ve));},[a,r]),Pe=function(le,Ce,xe){var Ye=function(){var Qt,Me=_e(le);return [M?{label:Me==null?void 0:Me[F.label],value:le,key:(Qt=Me==null?void 0:Me.key)!==null&&Qt!==void 0?Qt:le}:le,Wd(Me)]};if(Ce&&h){var mt=Ye(),bt=U(mt,2),Ut=bt[0],Bt=bt[1];h(Ut,Bt);}else if(!Ce&&v&&xe!=="clear"){var Ae=Ye(),We=U(Ae,2),Te=We[0],yt=We[1];v(Te,yt);}},tt=Mv(function(ve,le){var Ce,xe=W?le.selected:!0;xe?Ce=W?[].concat(qe(fe),[ve]):[ve]:Ce=fe.filter(function(Ye){return Ye.value!==ve}),be(Ce),Pe(ve,xe),r==="combobox"?$e(""):(!Vd||m)&&(Y(""),$e(""));}),St=function(le,Ce){be(le);var xe=Ce.type,Ye=Ce.values;(xe==="remove"||xe==="clear")&&Ye.forEach(function(mt){Pe(mt.value,!1,xe);});},kt=function(le,Ce){if(Y(le),$e(null),Ce.source==="submit"){var xe=(le||"").trim();if(xe){var Ye=Array.from(new Set([].concat(qe(Ue),[xe])));be(Ye),Pe(xe,!0),Y("");}return}Ce.source!=="blur"&&(r==="combobox"&&be(le),f==null||f(le));},At=function(le){var Ce=le;r!=="tags"&&(Ce=le.map(function(Ye){var mt=ae.get(Ye);return mt==null?void 0:mt.value}).filter(function(Ye){return Ye!==void 0}));var xe=Array.from(new Set([].concat(qe(Ue),qe(Ce))));be(xe),xe.forEach(function(Ye){Pe(Ye,!0);});},Ne=u__namespace.useMemo(function(){var ve=E!==!1&&p!==!1;return X(X({},J),{},{flattenOptions:Re,onActiveValue:Le,defaultActiveFirstOption:Oe,onSelect:tt,menuItemSelectedIcon:I,rawValues:Ue,fieldNames:F,virtual:ve,direction:O,listHeight:R,listItemHeight:_,childrenAsData:j})},[J,Re,Le,Oe,tt,I,Ue,F,E,p,R,_,j]);return u__namespace.createElement(F0.Provider,{value:Ne},u__namespace.createElement(LP,ye({},z,{id:B,prefixCls:i,ref:t,omitDomProps:hR,mode:r,displayValues:et,onDisplayValuesChange:St,direction:O,searchValue:Z,onSearch:kt,autoClearSearchValue:m,onSearchSplit:At,dropdownMatchSelectWidth:p,OptionList:W0,emptyOptions:!Re.length,activeValue:pe,activeDescendantId:"".concat(B,"_list_").concat(dt)})))}),xm=gR;xm.Option=$m;xm.OptGroup=wm;function Qr(e,t,n){return V({[`${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 Uc=(e,t)=>t||e,pR=()=>{const[,e]=ri(),n=new qt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},u__namespace.createElement("g",{transform:"translate(24 31.67)"},u__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u__namespace.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u__namespace.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u__namespace.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u__namespace.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u__namespace.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bR=pR,yR=()=>{const[,e]=ri(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=u.useMemo(()=>({borderColor:new qt(t).onBackground(o).toHexShortString(),shadowColor:new qt(n).onBackground(o).toHexShortString(),contentColor:new qt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),u__namespace.createElement("g",{fillRule:"nonzero",stroke:i},u__namespace.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u__namespace.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},CR=yR,SR=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},wR=on("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=$t(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [SR(r)]});var $R=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const V0=u__namespace.createElement(bR,null),G0=u__namespace.createElement(CR,null),Em=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=V0,description:i,children:a,imageStyle:s}=e,l=$R(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:f}=u__namespace.useContext(lt),d=c("empty",r),[m,h]=wR(d),[v]=lm("Empty"),g=typeof i<"u"?i:v==null?void 0:v.description,p=typeof g=="string"?g:"empty";let b=null;return typeof o=="string"?b=u__namespace.createElement("img",{alt:p,src:o}):b=o,m(u__namespace.createElement("div",Object.assign({className:V(h,d,{[`${d}-normal`]:o===G0,[`${d}-rtl`]:f==="rtl"},t,n)},l),u__namespace.createElement("div",{className:`${d}-image`,style:s},b),g&&u__namespace.createElement("div",{className:`${d}-description`},g),a&&u__namespace.createElement("div",{className:`${d}-footer`},a)))};Em.PRESENTED_IMAGE_DEFAULT=V0;Em.PRESENTED_IMAGE_SIMPLE=G0;const Oa=Em,xR=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(lt),r=n("empty");switch(t){case"Table":case"List":return u.createElement(Oa,{image:Oa.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return u.createElement(Oa,{image:Oa.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return u.createElement(Oa,null)}},ER=xR;function as(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */as=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(R,P,_){R[P]=_.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(R,P,_){return Object.defineProperty(R,P,{value:_,enumerable:!0,configurable:!0,writable:!0}),R[P]}try{l({},"");}catch{l=function(_,T,A){return _[T]=A};}function c(R,P,_,T){var A=P&&P.prototype instanceof m?P:m,M=Object.create(A.prototype),k=new E(T||[]);return r(M,"_invoke",{value:y(R,_,k)}),M}function f(R,P,_){try{return {type:"normal",arg:R.call(P,_)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function m(){}function h(){}function v(){}var g={};l(g,i,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(O([])));b&&b!==t&&n.call(b,i)&&(g=b);var C=v.prototype=m.prototype=Object.create(g);function $(R){["next","throw","return"].forEach(function(P){l(R,P,function(_){return this._invoke(P,_)});});}function x(R,P){function _(A,M,k,z){var B=f(R[A],R,M);if(B.type!=="throw"){var W=B.arg,j=W.value;return j&&ft(j)=="object"&&n.call(j,"__await")?P.resolve(j.__await).then(function(G){_("next",G,k,z);},function(G){_("throw",G,k,z);}):P.resolve(j).then(function(G){W.value=G,k(W);},function(G){return _("throw",G,k,z)})}z(B.arg);}var T;r(this,"_invoke",{value:function(M,k){function z(){return new P(function(B,W){_(M,k,B,W);})}return T=T?T.then(z,z):z()}});}function y(R,P,_){var T="suspendedStart";return function(A,M){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(A==="throw")throw M;return N()}for(_.method=A,_.arg=M;;){var k=_.delegate;if(k){var z=S(k,_);if(z){if(z===d)continue;return z}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(T==="suspendedStart")throw T="completed",_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);T="executing";var B=f(R,P,_);if(B.type==="normal"){if(T=_.done?"completed":"suspendedYield",B.arg===d)continue;return {value:B.arg,done:_.done}}B.type==="throw"&&(T="completed",_.method="throw",_.arg=B.arg);}}}function S(R,P){var _=P.method,T=R.iterator[_];if(T===void 0)return P.delegate=null,_==="throw"&&R.iterator.return&&(P.method="return",P.arg=void 0,S(R,P),P.method==="throw")||_!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+_+"' method")),d;var A=f(T,R.iterator,P.arg);if(A.type==="throw")return P.method="throw",P.arg=A.arg,P.delegate=null,d;var M=A.arg;return M?M.done?(P[R.resultName]=M.value,P.next=R.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,d):M:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d)}function w(R){var P={tryLoc:R[0]};1 in R&&(P.catchLoc=R[1]),2 in R&&(P.finallyLoc=R[2],P.afterLoc=R[3]),this.tryEntries.push(P);}function I(R){var P=R.completion||{};P.type="normal",delete P.arg,R.completion=P;}function E(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(w,this),this.reset(!0);}function O(R){if(R){var P=R[i];if(P)return P.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var _=-1,T=function A(){for(;++_<R.length;)if(n.call(R,_))return A.value=R[_],A.done=!1,A;return A.value=void 0,A.done=!0,A};return T.next=T}}return {next:N}}function N(){return {value:void 0,done:!0}}return h.prototype=v,r(C,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(R){var P=typeof R=="function"&&R.constructor;return !!P&&(P===h||(P.displayName||P.name)==="GeneratorFunction")},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,v):(R.__proto__=v,l(R,s,"GeneratorFunction")),R.prototype=Object.create(C),R},e.awrap=function(R){return {__await:R}},$(x.prototype),l(x.prototype,a,function(){return this}),e.AsyncIterator=x,e.async=function(R,P,_,T,A){A===void 0&&(A=Promise);var M=new x(c(R,P,_,T),A);return e.isGeneratorFunction(P)?M:M.next().then(function(k){return k.done?k.value:M.next()})},$(C),l(C,s,"Generator"),l(C,i,function(){return this}),l(C,"toString",function(){return "[object Generator]"}),e.keys=function(R){var P=Object(R),_=[];for(var T in P)_.push(T);return _.reverse(),function A(){for(;_.length;){var M=_.pop();if(M in P)return A.value=M,A.done=!1,A}return A.done=!0,A}},e.values=O,E.prototype={constructor:E,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!P)for(var _ in this)_.charAt(0)==="t"&&n.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=void 0);},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 T(W,j){return k.type="throw",k.arg=P,_.next=W,j&&(_.method="next",_.arg=void 0),!!j}for(var A=this.tryEntries.length-1;A>=0;--A){var M=this.tryEntries[A],k=M.completion;if(M.tryLoc==="root")return T("end");if(M.tryLoc<=this.prev){var z=n.call(M,"catchLoc"),B=n.call(M,"finallyLoc");if(z&&B){if(this.prev<M.catchLoc)return T(M.catchLoc,!0);if(this.prev<M.finallyLoc)return T(M.finallyLoc)}else if(z){if(this.prev<M.catchLoc)return T(M.catchLoc,!0)}else {if(!B)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return T(M.finallyLoc)}}}},abrupt:function(P,_){for(var T=this.tryEntries.length-1;T>=0;--T){var A=this.tryEntries[T];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var M=A;break}}M&&(P==="break"||P==="continue")&&M.tryLoc<=_&&_<=M.finallyLoc&&(M=null);var k=M?M.completion:{};return k.type=P,k.arg=_,M?(this.method="next",this.next=M.finallyLoc,d):this.complete(k)},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=_),d},finish:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===P)return this.complete(T.completion,T.afterLoc),I(T),d}},catch:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===P){var A=T.completion;if(A.type==="throw"){var M=A.arg;I(T);}return M}}throw new Error("illegal catch attempt")},delegateYield:function(P,_,T){return this.delegate={iterator:O(P),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function kv(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function K0(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){kv(i,r,o,a,s,"next",l);}function s(l){kv(i,r,o,a,s,"throw",l);}a(void 0);})}}const Dr=u__namespace.createContext({}),Kl=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(Dr),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u__namespace.createElement(Dr.Provider,{value:i},t)};function OR(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function IR(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 Xc(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({},OR(e,r,t)),IR(n,r,t))}}const _R=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},PR=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Kt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
`]:{animationName:fm},[`
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
`]:{animationName:hm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:mm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:vm},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},_R(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(Object.assign({flex:"auto"},Go),{"> *":Object.assign({},Go)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},wo(e,"slide-up"),wo(e,"slide-down"),Fl(e,"move-up"),Fl(e,"move-down")]},RR=PR,vi=2,U0=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function Wu(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=U0(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",padding:`${a-vi}px ${vi*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${vi}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:vi,marginBottom:vi,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:vi*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ca()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[`
&-input,
&-mirror
`]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const TR=e=>{const{componentCls:t}=e,n=$t(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$t(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=U0(e);return [Wu(e),Wu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Wu(r,"lg")]},MR=TR;function Vu(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Kt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function NR(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Vu(e),Vu($t(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}}}},Vu($t(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const AR=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},Gu=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},kR=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},DR=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Kt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},AR(e)),kR(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Go),{"> *":Object.assign({lineHeight:"inherit"},Go)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Go),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},ca()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},LR=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%"}}},DR(e),NR(e),MR(e),RR(e),{[`${t}-rtl`]:{direction:"rtl"}},Gu(t,$t(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Gu(`${t}-status-error`,$t(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Gu(`${t}-status-warning`,$t(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Xc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},zR=on("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=$t(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [LR(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),jR=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible"};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 HR(e,t){return e||jR(t)}function BR(e){return e??!0}var FR={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 WR=FR;function X0(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function VR(e){return X0(e)!==(e==null?void 0:e.ownerDocument)}function GR(e){return VR(e)?X0(e):null}function KR(e,t){zr(e,"[@ant-design/icons] ".concat(t));}function Dv(e){return ft(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ft(e.icon)==="object"||typeof e.icon=="function")}function Lv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function Gd(e,t,n){return n?u.createElement(e.tag,X(X({key:t},Lv(e.attrs)),n),(e.children||[]).map(function(r,o){return Gd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):u.createElement(e.tag,X({key:t},Lv(e.attrs)),(e.children||[]).map(function(r,o){return Gd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Y0(e){return eo(e)[0]}function q0(e){return e?Array.isArray(e)?e:[e]:[]}var UR=`
.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);
}
}
`,XR=function(t){var n=u.useContext(am),r=n.csp,o=n.prefixCls,i=UR;o&&(i=i.replace(/anticon/g,o)),u.useEffect(function(){var a=t.current,s=GR(a);Wi(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},YR=["icon","className","onClick","style","primaryColor","secondaryColor"],ja={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qR(e){var t=e.primaryColor,n=e.secondaryColor;ja.primaryColor=t,ja.secondaryColor=n||Y0(t),ja.calculated=!!n;}function ZR(){return X({},ja)}var Yc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Je(t,YR),c=u__namespace.useRef(),f=ja;if(a&&(f={primaryColor:a,secondaryColor:s||Y0(a)}),XR(c),KR(Dv(n),"icon should be icon definiton, but got ".concat(n)),!Dv(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=X(X({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),Gd(d.icon,"svg-".concat(d.name),X(X({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Yc.displayName="IconReact";Yc.getTwoToneColors=ZR;Yc.setTwoToneColors=qR;const Om=Yc;function Z0(e){var t=q0(e),n=U(t,2),r=n[0],o=n[1];return Om.setTwoToneColors({primaryColor:r,secondaryColor:o})}function QR(){var e=Om.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var JR=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Z0(mO.primary);var qc=u__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,f=Je(e,JR),d=u__namespace.useContext(am),m=d.prefixCls,h=m===void 0?"anticon":m,v=d.rootClassName,g=V(v,h,(n={},q(n,"".concat(h,"-").concat(o.name),!!o.name),q(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=q0(c),$=U(C,2),x=$[0],y=$[1];return u__namespace.createElement("span",ye({role:"img","aria-label":o.name},f,{ref:t,tabIndex:p,onClick:l,className:g}),u__namespace.createElement(Om,{icon:o,primaryColor:x,secondaryColor:y,style:b}))});qc.displayName="AntdIcon";qc.getTwoToneColor=QR;qc.setTwoToneColor=Z0;const Xn=qc;var eT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:WR}))};const tT=u__namespace.forwardRef(eT);var nT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const rT=nT;var oT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:rT}))};const Im=u__namespace.forwardRef(oT);var iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const aT=iT;var sT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:aT}))};const _m=u__namespace.forwardRef(sT);var lT={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 cT=lT;var uT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:cT}))};const Q0=u__namespace.forwardRef(uT);var dT={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 fT=dT;var mT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:fT}))};const J0=u__namespace.forwardRef(mT);var hT={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 vT=hT;var gT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:vT}))};const ey=u__namespace.forwardRef(gT);function pT(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:f}=e;const d=n??u__namespace.createElement(Im,null),m=p=>u__namespace.createElement(u__namespace.Fragment,null,c!==!1&&p,s&&f);let h=null;if(t!==void 0)h=m(t);else if(i)h=m(u__namespace.createElement(J0,{spin:!0}));else {const p=`${l}-suffix`;h=b=>{let{open:C,showSearch:$}=b;return m(C&&$?u__namespace.createElement(ey,{className:p}):u__namespace.createElement(Q0,{className:p}))};}let v=null;r!==void 0?v=r:a?v=u__namespace.createElement(tT,null):v=null;let g=null;return o!==void 0?g=o:g=u__namespace.createElement(_m,null),{clearIcon:d,suffixIcon:h,itemIcon:v,removeIcon:g}}var bT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ty="SECRET_COMBOBOX_MODE_DO_NOT_USE",yT=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:f=256,placement:d,listItemHeight:m=24,size:h,disabled:v,notFoundContent:g,status:p,showArrow:b,builtinPlacements:C,dropdownMatchSelectWidth:$,popupMatchSelectWidth:x,direction:y}=e,S=bT(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:w,getPrefixCls:I,renderEmpty:E,direction:O,virtual:N,popupMatchSelectWidth:R,popupOverflow:P,select:_}=u__namespace.useContext(lt),T=I("select",r),A=I(),M=y??O,{compactSize:k,compactItemClassnames:z}=da(T,M),[B,W]=zR(T),j=u__namespace.useMemo(()=>{const{mode:Ue}=S;if(Ue!=="combobox")return Ue===ty?"combobox":Ue},[S.mode]),G=j==="multiple"||j==="tags",F=BR(b),K=(n=x??$)!==null&&n!==void 0?n:R,{status:re,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:J}=u__namespace.useContext(Dr),ie=Uc(re,p);let ae;g!==void 0?ae=g:j==="combobox"?ae=null:ae=(E==null?void 0:E("Select"))||u__namespace.createElement(ER,{componentName:"Select"});const{suffixIcon:de,itemIcon:Q,removeIcon:ne,clearIcon:ce}=pT(Object.assign(Object.assign({},S),{multiple:G,hasFeedback:Z,feedbackIcon:J,showArrow:F,prefixCls:T})),se=On(S,["suffixIcon","itemIcon"]),me=V(l||c,{[`${T}-dropdown-${M}`]:M==="rtl"},a,W),oe=yr(Ue=>{var De;return (De=k??h)!==null&&De!==void 0?De:Ue}),he=u__namespace.useContext(Eo),ue=v??he,fe=V({[`${T}-lg`]:oe==="large",[`${T}-sm`]:oe==="small",[`${T}-rtl`]:M==="rtl",[`${T}-borderless`]:!o,[`${T}-in-form-item`]:Y},Qr(T,ie,Z),z,i,a,W),_e=u__namespace.useMemo(()=>d!==void 0?d:M==="rtl"?"bottomRight":"bottomLeft",[d,M]),et=HR(C,P);return B(u__namespace.createElement(xm,Object.assign({ref:t,virtual:N,showSearch:_==null?void 0:_.showSearch},se,{dropdownMatchSelectWidth:K,builtinPlacements:et,transitionName:Lc(A,c2(d),S.transitionName),listHeight:f,listItemHeight:m,mode:j,prefixCls:T,placement:_e,direction:M,inputIcon:de,menuItemSelectedIcon:Q,removeIcon:ne,clearIcon:ce,notFoundContent:ae,className:fe,getPopupContainer:s||w,dropdownClassName:me,showArrow:Z||F,disabled:ue})))},fa=u__namespace.forwardRef(yT),CT=ym(fa);fa.SECRET_COMBOBOX_MODE_DO_NOT_USE=ty;fa.Option=$m;fa.OptGroup=wm;fa._InternalPanelDoNotUseOrYouWillBeFired=CT;const ST=fa;var qr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(qr||(qr={}));var wT={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 $T=wT;var xT=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:$T}))};const ET=u__namespace.forwardRef(xT);function Kd(){return typeof BigInt=="function"}function Uo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function Pm(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ss(e){var t=String(e);if(Pm(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(".")&&Rm(t)?t.length-t.indexOf(".")-1:0}function Zc(e){var t=String(e);if(Pm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Kd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Kd()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ss(t));}return Uo(t).fullStr}function Rm(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 ny(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var OT=function(){function e(t){if(Nn(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),ny(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return An(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(ss(this.number),ss(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Zc(this.number):this.origin}}]),e}(),IT=function(){function e(t){if(Nn(this,e),q(this,"origin",""),q(this,"negative",void 0),q(this,"integer",void 0),q(this,"decimal",void 0),q(this,"decimalLen",void 0),q(this,"empty",void 0),q(this,"nan",void 0),ny(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Pm(n)&&(n=Number(n)),n=typeof n=="string"?n:Zc(n),Rm(n)){var r=Uo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return An(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=Uo(s),c=l.negativeStr,f=l.trimStr,d="".concat(c).concat(f.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()?"":Uo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function sr(e){return Kd()?new IT(e):new OT(e)}function pl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Uo(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var f=Number(s[n]);if(f>=5&&!r){var d=sr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-f));return pl(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)}var _T=function(){var t=u.useState(!1),n=U(t,2),r=n[0],o=n[1];return Gt(function(){o(kc());},[]),r},PT=200,RT=600;function TT(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=u__namespace.useRef(),l=u__namespace.useRef();l.current=a;var c=function(b,C){b.preventDefault(),l.current(C);function $(){l.current(C),s.current=setTimeout($,PT);}s.current=setTimeout($,RT);},f=function(){clearTimeout(s.current);};u__namespace.useEffect(function(){return f},[]);var d=_T();if(d)return null;var m="".concat(t,"-handler"),h=V(m,"".concat(m,"-up"),q({},"".concat(m,"-up-disabled"),o)),v=V(m,"".concat(m,"-down"),q({},"".concat(m,"-down-disabled"),i)),g={unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f};return u__namespace.createElement("div",{className:"".concat(m,"-wrap")},u__namespace.createElement("span",ye({},g,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u__namespace.createElement("span",ye({},g,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||u__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function zv(e){var t=typeof e=="number"?Zc(e):Uo(e).fullStr,n=t.includes(".");return n?Uo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function MT(e,t){var n=u.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,f=i.length;if(i.endsWith(l))f=i.length-n.current.afterTxt.length;else if(i.startsWith(s))f=s.length;else {var d=s[c-1],m=i.indexOf(d,c-1);m!==-1&&(f=m+1);}e.setSelectionRange(f,f);}catch(h){zr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}const NT=function(){var e=u.useRef(0),t=function(){Mt.cancel(e.current);};return u.useEffect(function(){return t},[]),function(n){t(),e.current=Mt(function(){n();});}};var AT=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],jv=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Hv=function(t){var n=sr(t);return n.isInvalidate()?null:n},ry=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,f=c===void 0?1:c,d=e.defaultValue,m=e.value,h=e.disabled,v=e.readOnly,g=e.upHandler,p=e.downHandler,b=e.keyboard,C=e.controls,$=C===void 0?!0:C,x=e.stringMode,y=e.parser,S=e.formatter,w=e.precision,I=e.decimalSeparator,E=e.onChange,O=e.onInput,N=e.onPressEnter,R=e.onStep,P=Je(e,AT),_="".concat(o,"-input"),T=u__namespace.useRef(null),A=u__namespace.useState(!1),M=U(A,2),k=M[0],z=M[1],B=u__namespace.useRef(!1),W=u__namespace.useRef(!1),j=u__namespace.useRef(!1),G=u__namespace.useState(function(){return sr(m??d)}),F=U(G,2),K=F[0],re=F[1];function Z(Ee){m===void 0&&re(Ee);}var Y=u__namespace.useCallback(function(Ee,Oe){if(!Oe)return w>=0?w:Math.max(ss(Ee),ss(f))},[w,f]),J=u__namespace.useCallback(function(Ee){var Oe=String(Ee);if(y)return y(Oe);var Le=Oe;return I&&(Le=Le.replace(I,".")),Le.replace(/[^\w.-]+/g,"")},[y,I]),ie=u__namespace.useRef(""),ae=u__namespace.useCallback(function(Ee,Oe){if(S)return S(Ee,{userTyping:Oe,input:String(ie.current)});var Le=typeof Ee=="number"?Zc(Ee):Ee;if(!Oe){var Pe=Y(Le,Oe);if(Rm(Le)&&(I||Pe>=0)){var tt=I||".";Le=pl(Le,tt,Pe);}}return Le},[S,Y,I]),de=u__namespace.useState(function(){var Ee=d??m;return K.isInvalidate()&&["string","number"].includes(ft(Ee))?Number.isNaN(Ee)?"":Ee:ae(K.toString(),!1)}),Q=U(de,2),ne=Q[0],ce=Q[1];ie.current=ne;function se(Ee,Oe){ce(ae(Ee.isInvalidate()?Ee.toString(!1):Ee.toString(!Oe),Oe));}var me=u__namespace.useMemo(function(){return Hv(l)},[l,w]),oe=u__namespace.useMemo(function(){return Hv(s)},[s,w]),he=u__namespace.useMemo(function(){return !me||!K||K.isInvalidate()?!1:me.lessEquals(K)},[me,K]),ue=u__namespace.useMemo(function(){return !oe||!K||K.isInvalidate()?!1:K.lessEquals(oe)},[oe,K]),fe=MT(T.current,k),_e=U(fe,2),et=_e[0],Ue=_e[1],De=function(Oe){return me&&!Oe.lessEquals(me)?me:oe&&!oe.lessEquals(Oe)?oe:null},Qe=function(Oe){return !De(Oe)},it=function(Oe,Le){var Pe=Oe,tt=Qe(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!Le&&(Pe=De(Pe)||Pe,tt=!0),!v&&!h&&tt){var St=Pe.toString(),kt=Y(St,Le);return kt>=0&&(Pe=sr(pl(St,".",kt)),Qe(Pe)||(Pe=sr(pl(St,".",kt,!0)))),Pe.equals(K)||(Z(Pe),E==null||E(Pe.isEmpty()?null:jv(x,Pe)),m===void 0&&se(Pe,Le)),Pe}return K},Ze=NT(),Ve=function Ee(Oe){if(et(),ce(Oe),!W.current){var Le=J(Oe),Pe=sr(Le);Pe.isNaN()||it(Pe,!0);}O==null||O(Oe),Ze(function(){var tt=Oe;y||(tt=Oe.replace(/。/g,".")),tt!==Oe&&Ee(tt);});},Re=function(){W.current=!0;},be=function(){W.current=!1,Ve(T.current.value);},je=function(Oe){Ve(Oe.target.value);},He=function(Oe){var Le;if(!(Oe&&he||!Oe&&ue)){B.current=!1;var Pe=sr(j.current?zv(f):f);Oe||(Pe=Pe.negate());var tt=(K||sr(0)).add(Pe.toString()),St=it(tt,!1);R==null||R(jv(x,St),{offset:j.current?zv(f):f,type:Oe?"up":"down"}),(Le=T.current)===null||Le===void 0||Le.focus();}},pe=function(Oe){var Le=sr(J(ne)),Pe=Le;Le.isNaN()?Pe=K:Pe=it(Le,Oe),m!==void 0?se(K,!1):Pe.isNaN()||se(Pe,!1);},$e=function(){B.current=!0;},Xe=function(Oe){var Le=Oe.which,Pe=Oe.shiftKey;B.current=!0,Pe?j.current=!0:j.current=!1,Le===ee.ENTER&&(W.current||(B.current=!1),pe(!1),N==null||N(Oe)),b!==!1&&!W.current&&[ee.UP,ee.DOWN].includes(Le)&&(He(ee.UP===Le),Oe.preventDefault());},Fe=function(){B.current=!1,j.current=!1;},dt=function(){pe(!1),z(!1),B.current=!1;};return Ri(function(){K.isInvalidate()||se(K,!1);},[w]),Ri(function(){var Ee=sr(m);re(Ee);var Oe=sr(J(ne));(!Ee.equals(Oe)||!B.current||S)&&se(Ee,B.current);},[m]),Ri(function(){S&&Ue();},[ne]),u__namespace.createElement("div",{className:V(o,i,(n={},q(n,"".concat(o,"-focused"),k),q(n,"".concat(o,"-disabled"),h),q(n,"".concat(o,"-readonly"),v),q(n,"".concat(o,"-not-a-number"),K.isNaN()),q(n,"".concat(o,"-out-of-range"),!K.isInvalidate()&&!Qe(K)),n)),style:a,onFocus:function(){z(!0);},onBlur:dt,onKeyDown:Xe,onKeyUp:Fe,onCompositionStart:Re,onCompositionEnd:be,onBeforeInput:$e},$&&u__namespace.createElement(TT,{prefixCls:o,upNode:g,downNode:p,upDisabled:he,downDisabled:ue,onStep:He}),u__namespace.createElement("div",{className:"".concat(_,"-wrap")},u__namespace.createElement("input",ye({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:f},P,{ref:Mn(T,t),className:_,value:ne,onChange:je,disabled:h,readOnly:v}))))});ry.displayName="InputNumber";const oy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ps=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Ul=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Tm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ps($t(e,{inputBorderHoverColor:e.colorBorder})))}),iy=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},ay=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Qc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},Ul($t(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Ul($t(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Jc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},oy(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ps(e)),"&:focus, &-focused":Object.assign({},Ul(e)),"&-disabled, &[disabled]":Object.assign({},Tm(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({},iy(e)),"&-sm":Object.assign({},ay(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),sy=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({},iy(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ay(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},jd()),{[`${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}}}})}},kT=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),Jc(e)),Qc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},DT=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`}}}},LT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jc(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ps(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),DT(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Qc(e,`${t}-affix-wrapper`))}},zT=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Kt(e)),sy(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Tm(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}}}})}},jT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function ly(e){return $t(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const HT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Mm=on("Input",e=>{const t=ly(e);return [kT(t),HT(t),LT(t),zT(t),jT(t),Xc(t)]}),BT=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:f,colorTextDescription:d,motionDurationMid:m,colorPrimary:h,controlHeight:v,inputPaddingHorizontal:g,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:C,borderRadiusLG:$,controlWidth:x,handleVisible:y}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),Jc(e)),Qc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:$,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${f}px`}},"&:hover":Object.assign({},Ps(e)),"&-focused":Object.assign({},Ul(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Kt(e)),sy(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},Tm(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),{width:"100%",height:v-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),oy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:y===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${m} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ca()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},FT=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Jc(e)),Qc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ps(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding: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:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},WT=on("InputNumber",e=>{const t=ly(e);return [BT(t),FT(t),Xc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var VT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cy=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(lt),[o,i]=u__namespace.useState(!1),a=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:f,prefixCls:d,addonBefore:m,addonAfter:h,prefix:v,bordered:g=!0,readOnly:p,status:b,controls:C}=e,$=VT(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),x=n("input-number",d),[y,S]=WT(x),{compactSize:w,compactItemClassnames:I}=da(x,r);let E=u__namespace.createElement(ET,{className:`${x}-handler-up-inner`}),O=u__namespace.createElement(Q0,{className:`${x}-handler-down-inner`});const N=typeof C=="boolean"?C:void 0;typeof C=="object"&&(E=typeof C.upIcon>"u"?E:u__namespace.createElement("span",{className:`${x}-handler-up-inner`},C.upIcon),O=typeof C.downIcon>"u"?O:u__namespace.createElement("span",{className:`${x}-handler-down-inner`},C.downIcon));const{hasFeedback:R,status:P,isFormItemInput:_,feedbackIcon:T}=u__namespace.useContext(Dr),A=Uc(P,b),M=yr(F=>{var K;return (K=w??c)!==null&&K!==void 0?K:F}),k=v!=null||R,z=!!(m||h),B=u__namespace.useContext(Eo),W=f??B,j=V({[`${x}-lg`]:M==="large",[`${x}-sm`]:M==="small",[`${x}-rtl`]:r==="rtl",[`${x}-borderless`]:!g,[`${x}-in-form-item`]:_},Qr(x,A),I,S,s,!k&&!z&&l);let G=u__namespace.createElement(ry,Object.assign({ref:a,disabled:W,className:j,upHandler:E,downHandler:O,prefixCls:x,readOnly:p,controls:N},$));if(k){const F=V(`${x}-affix-wrapper`,Qr(`${x}-affix-wrapper`,A,R),{[`${x}-affix-wrapper-focused`]:o,[`${x}-affix-wrapper-disabled`]:e.disabled,[`${x}-affix-wrapper-sm`]:M==="small",[`${x}-affix-wrapper-lg`]:M==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-readonly`]:p,[`${x}-affix-wrapper-borderless`]:!g},!z&&s,!z&&l,S);G=u__namespace.createElement("div",{className:F,style:e.style,onMouseUp:()=>a.current.focus()},v&&u__namespace.createElement("span",{className:`${x}-prefix`},v),En(G,{style:null,value:e.value,onFocus:K=>{var re;i(!0),(re=e.onFocus)===null||re===void 0||re.call(e,K);},onBlur:K=>{var re;i(!1),(re=e.onBlur)===null||re===void 0||re.call(e,K);}}),R&&u__namespace.createElement("span",{className:`${x}-suffix`},T));}if(z){const F=`${x}-group`,K=`${F}-addon`,re=m?u__namespace.createElement("div",{className:K},m):null,Z=h?u__namespace.createElement("div",{className:K},h):null,Y=V(`${x}-wrapper`,F,S,{[`${F}-rtl`]:r==="rtl",[`${x}-wrapper-disabled`]:W}),J=V(`${x}-group-wrapper`,{[`${x}-group-wrapper-sm`]:M==="small",[`${x}-group-wrapper-lg`]:M==="large",[`${x}-group-wrapper-rtl`]:r==="rtl"},Qr(`${x}-group-wrapper`,A,R),S,s,l);G=u__namespace.createElement("div",{className:J,style:e.style},u__namespace.createElement("div",{className:Y},re&&u__namespace.createElement(Ki,null,u__namespace.createElement(Kl,{status:!0,override:!0},re)),En(G,{style:null,disabled:W}),Z&&u__namespace.createElement(Ki,null,u__namespace.createElement(Kl,{status:!0,override:!0},Z))));}return y(G)}),uy=cy,GT=e=>u__namespace.createElement(um,{theme:{components:{InputNumber:{handleVisible:!0}}}},u__namespace.createElement(cy,Object.assign({},e)));uy._InternalPanelDoNotUseOrYouWillBeFired=GT;const Ud=uy,KT=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,f]=u.useState(o);return u.useEffect(()=>{Number.isNaN(o)||f(o);},[o]),u.createElement(Ud,{className:V(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||f(d||0),i==null||i(d);}})},Xo=KT,UT=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=u.useState(Tn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const f=Tn(c);n||a(f),r==null||r(f);};return u.createElement(Xo,{value:Q_(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},XT=UT,YT=e=>{const{getPrefixCls:t,direction:n}=u.useContext(lt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=Mm(a),c=V(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),f=u.useContext(Dr),d=u.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(u__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u__namespace.createElement(Dr.Provider,{value:d},e.children)))},qT=YT;function gi(e){return !!(e.addonBefore||e.addonAfter)}function Ku(e){return !!(e.prefix||e.suffix||e.allowClear)}function Ha(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function ZT(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function Xd(e){return typeof e>"u"||e===null?"":String(e)}var dy=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,f=t.className,d=t.style,m=t.disabled,h=t.readOnly,v=t.focused,g=t.triggerFocus,p=t.allowClear,b=t.value,C=t.handleReset,$=t.hidden,x=t.classes,y=t.classNames,S=t.dataAttrs,w=t.styles,I=u.useRef(null),E=function(W){var j;(j=I.current)!==null&&j!==void 0&&j.contains(W.target)&&(g==null||g());},O=function(){var W;if(!p)return null;var j=!m&&!h&&b,G="".concat(i,"-clear-icon"),F=ft(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return u.createElement("span",{onClick:C,onMouseDown:function(re){return re.preventDefault()},className:V(G,(W={},q(W,"".concat(G,"-hidden"),!j),q(W,"".concat(G,"-has-suffix"),!!s),W)),role:"button",tabIndex:-1},F)},N=u.cloneElement(o,{value:b,hidden:$,className:V((n=o.props)===null||n===void 0?void 0:n.className,!Ku(t)&&!gi(t)&&f)||null,style:X(X({},(r=o.props)===null||r===void 0?void 0:r.style),!Ku(t)&&!gi(t)?d:{})});if(Ku(t)){var R,P="".concat(i,"-affix-wrapper"),_=V(P,(R={},q(R,"".concat(P,"-disabled"),m),q(R,"".concat(P,"-focused"),v),q(R,"".concat(P,"-readonly"),h),q(R,"".concat(P,"-input-with-clear-btn"),s&&p&&b),R),!gi(t)&&f,x==null?void 0:x.affixWrapper),T=(s||p)&&u.createElement("span",{className:V("".concat(i,"-suffix"),y==null?void 0:y.suffix),style:w==null?void 0:w.suffix},O(),s);N=u.createElement("span",ye({className:_,style:gi(t)?void 0:d,hidden:!gi(t)&&$,onClick:E},S==null?void 0:S.affixWrapper,{ref:I}),a&&u.createElement("span",{className:V("".concat(i,"-prefix"),y==null?void 0:y.prefix),style:w==null?void 0:w.prefix},a),u.cloneElement(o,{value:b,hidden:null}),T);}if(gi(t)){var A="".concat(i,"-group"),M="".concat(A,"-addon"),k=V("".concat(i,"-wrapper"),A,x==null?void 0:x.wrapper),z=V("".concat(i,"-group-wrapper"),f,x==null?void 0:x.group);return u.createElement("span",{className:z,style:d,hidden:$},u.createElement("span",{className:k},l&&u.createElement("span",{className:M},l),u.cloneElement(N,{hidden:null}),c&&u.createElement("span",{className:M},c)))}return N},QT=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],JT=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,f=e.disabled,d=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,p=e.type,b=p===void 0?"text":p,C=e.classes,$=e.classNames,x=e.styles,y=Je(e,QT),S=Zt(e.defaultValue,{value:e.value}),w=U(S,2),I=w[0],E=w[1],O=u.useState(!1),N=U(O,2),R=N[0],P=N[1],_=u.useRef(null),T=function(F){_.current&&ZT(_.current,F);};u.useImperativeHandle(t,function(){return {focus:T,blur:function(){var F;(F=_.current)===null||F===void 0||F.blur();},setSelectionRange:function(F,K,re){var Z;(Z=_.current)===null||Z===void 0||Z.setSelectionRange(F,K,re);},select:function(){var F;(F=_.current)===null||F===void 0||F.select();},input:_.current}}),u.useEffect(function(){P(function(G){return G&&f?!1:G});},[f]);var A=function(F){e.value===void 0&&E(F.target.value),_.current&&Ha(_.current,F,r);},M=function(F){a&&F.key==="Enter"&&a(F),s==null||s(F);},k=function(F){P(!0),o==null||o(F);},z=function(F){P(!1),i==null||i(F);},B=function(F){E(""),T(),_.current&&Ha(_.current,F,r);},W=function(){var F=On(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return u.createElement("input",ye({autoComplete:n},F,{onChange:A,onFocus:k,onBlur:z,onKeyDown:M,className:V(c,q({},"".concat(c,"-disabled"),f),$==null?void 0:$.input),style:x==null?void 0:x.input,ref:_,size:d,type:b}))},j=function(){var F=Number(h)>0;if(v||g){var K=Xd(I),re=qe(K).length,Z=ft(g)==="object"?g.formatter({value:K,count:re,maxLength:h}):"".concat(re).concat(F?" / ".concat(h):"");return u.createElement(u.Fragment,null,!!g&&u.createElement("span",{className:V("".concat(c,"-show-count-suffix"),q({},"".concat(c,"-show-count-has-suffix"),!!v),$==null?void 0:$.count),style:X({},x==null?void 0:x.count)},Z),v)}return null};return u.createElement(dy,ye({},y,{prefixCls:c,className:m,inputElement:W(),handleReset:B,value:Xd(I),focused:R,triggerFocus:T,suffix:j(),disabled:f,classes:C,classNames:$,styles:x}))});function fy(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function eM(e){return !!(e.prefix||e.suffix||e.allowClear)}var tM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nM(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 rM=u.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:f,addonAfter:d,addonBefore:m,className:h,rootClassName:v,onChange:g,classNames:p}=e,b=tM(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:C,direction:$,input:x}=u.useContext(lt),y=C("input",n),S=u.useRef(null),[w,I]=Mm(y),{compactSize:E,compactItemClassnames:O}=da(y,$),N=yr(re=>{var Z;return (Z=E??i)!==null&&Z!==void 0?Z:re}),R=u.useContext(Eo),P=a??R,{status:_,hasFeedback:T,feedbackIcon:A}=u.useContext(Dr),M=Uc(_,o),k=eM(e)||!!T,z=u.useRef(k);u.useEffect(()=>{k&&z.current,z.current=k;},[k]);const B=fy(S,!0),W=re=>{B(),s==null||s(re);},j=re=>{B(),l==null||l(re);},G=re=>{B(),g==null||g(re);},F=(T||c)&&u.createElement(u.Fragment,null,c,T&&A);let K;return typeof f=="object"&&(f!=null&&f.clearIcon)?K=f:f&&(K={clearIcon:u.createElement(Im,null)}),w(u.createElement(JT,Object.assign({ref:Mn(t,S),prefixCls:y,autoComplete:x==null?void 0:x.autoComplete},b,{disabled:P,onBlur:W,onFocus:j,suffix:F,allowClear:K,className:V(h,v,O),onChange:G,addonAfter:d&&u.createElement(Ki,null,u.createElement(Kl,{override:!0,status:!0},d)),addonBefore:m&&u.createElement(Ki,null,u.createElement(Kl,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign({},p),{input:V({[`${y}-sm`]:N==="small",[`${y}-lg`]:N==="large",[`${y}-rtl`]:$==="rtl",[`${y}-borderless`]:!r},!k&&Qr(y,M),p==null?void 0:p.input,I)}),classes:{affixWrapper:V({[`${y}-affix-wrapper-sm`]:N==="small",[`${y}-affix-wrapper-lg`]:N==="large",[`${y}-affix-wrapper-rtl`]:$==="rtl",[`${y}-affix-wrapper-borderless`]:!r},Qr(`${y}-affix-wrapper`,M,T),I),wrapper:V({[`${y}-group-rtl`]:$==="rtl"},I),group:V({[`${y}-group-wrapper-sm`]:N==="small",[`${y}-group-wrapper-lg`]:N==="large",[`${y}-group-wrapper-rtl`]:$==="rtl",[`${y}-group-wrapper-disabled`]:P},Qr(`${y}-group-wrapper`,M,T),I)}})))}),Nm=rM;var oM={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 iM=oM;var aM=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:iM}))};const sM=u__namespace.forwardRef(aM);var lM={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 cM=lM;var uM=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:cM}))};const dM=u__namespace.forwardRef(uM);var fM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mM=e=>e?u__namespace.createElement(dM,null):u__namespace.createElement(sM,null),hM={click:"onClick",hover:"onMouseOver"},vM=u__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=u.useState(()=>r?n.visible:!1),a=u.useRef(null);u__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=fy(a),l=()=>{const{disabled:y}=e;y||(o&&s(),i(S=>{var w;const I=!S;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,I)),I}));},c=y=>{const{action:S="click",iconRender:w=mM}=e,I=hM[S]||"",E=w(o),O={[I]:l,className:`${y}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault();},onMouseUp:N=>{N.preventDefault();}};return u__namespace.cloneElement(u__namespace.isValidElement(E)?E:u__namespace.createElement("span",null,E),O)},{className:f,prefixCls:d,inputPrefixCls:m,size:h}=e,v=fM(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=u__namespace.useContext(lt),p=g("input",m),b=g("input-password",d),C=n&&c(b),$=V(b,f,{[`${b}-${h}`]:!!h}),x=Object.assign(Object.assign({},On(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:$,prefixCls:p,suffix:C});return h&&(x.size=h),u__namespace.createElement(Nm,Object.assign({ref:Mn(t,a)},x))}),gM=vM,pM=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}}}}},bM=on("Wave",e=>[pM(e)]);var Rs=X({},cp__namespace),yM=Rs.version,CM=Rs.render,SM=Rs.unmountComponentAtNode,eu;try{var wM=Number((yM||"").split(".")[0]);wM>=18&&(eu=Rs.createRoot);}catch{}function Bv(e){var t=Rs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ft(t)==="object"&&(t.usingClientEntryPoint=e);}var Xl="__rc_react_root__";function $M(e,t){Bv(!0);var n=t[Xl]||eu(t);Bv(!1),n.render(e),t[Xl]=n;}function xM(e,t){CM(e,t);}function EM(e,t){if(eu){$M(e,t);return}xM(e,t);}function OM(e){return Yd.apply(this,arguments)}function Yd(){return Yd=K0(as().mark(function e(t){return as().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Xl])===null||o===void 0||o.unmount(),delete t[Xl];}));case 1:case"end":return r.stop()}},e)})),Yd.apply(this,arguments)}function IM(e){SM(e);}function _M(e){return qd.apply(this,arguments)}function qd(){return qd=K0(as().mark(function e(t){return as().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(eu===void 0){r.next=2;break}return r.abrupt("return",OM(t));case 2:IM(t);case 3:case"end":return r.stop()}},e)})),qd.apply(this,arguments)}function PM(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 Uu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&PM(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function RM(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Uu(t)?t:Uu(n)?n:Uu(r)?r:null}function Xu(e){return Number.isNaN(e)?0:e}const TM=e=>{const{className:t,target:n}=e,r=u__namespace.useRef(null),[o,i]=u__namespace.useState(null),[a,s]=u__namespace.useState([]),[l,c]=u__namespace.useState(0),[f,d]=u__namespace.useState(0),[m,h]=u__namespace.useState(0),[v,g]=u__namespace.useState(0),[p,b]=u__namespace.useState(!1),C={left:l,top:f,width:m,height:v,borderRadius:a.map(x=>`${x}px`).join(" ")};o&&(C["--wave-color"]=o);function $(){const x=getComputedStyle(n);i(RM(n));const y=x.position==="static",{borderLeftWidth:S,borderTopWidth:w}=x;c(y?n.offsetLeft:Xu(-parseFloat(S))),d(y?n.offsetTop:Xu(-parseFloat(w))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:E,borderBottomLeftRadius:O,borderBottomRightRadius:N}=x;s([I,E,N,O].map(R=>Xu(parseFloat(R))));}return u__namespace.useEffect(()=>{if(n){const x=Mt(()=>{$(),b(!0);});let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver($),y.observe(n)),()=>{Mt.cancel(x),y==null||y.disconnect();}}},[]),p?u__namespace.createElement(xo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,y)=>{var S;if(y.deadline||y.propertyName==="opacity"){const w=(S=r.current)===null||S===void 0?void 0:S.parentElement;_M(w).then(()=>{w==null||w.remove();});}return !1}},x=>{let{className:y}=x;return u__namespace.createElement("div",{ref:r,className:V(t,y),style:C})}):null};function MM(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),EM(u__namespace.createElement(TM,{target:e,className:t}),n);}function NM(e,t){function n(){const r=e.current;MM(r,t);}return n}const AM=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=u.useContext(lt),o=u.useRef(null),i=r("wave"),[,a]=bM(i),s=NM(o,V(i,a));if(u.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const f=d=>{d.target.tagName==="INPUT"||!Zf(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",f,!0),()=>{c.removeEventListener("click",f,!0);}},[n]),!u.isValidElement(t))return t??null;const l=ni(t)?Mn(t.ref,o):o;return En(t,{ref:l})},my=AM,kM=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=V(`${i}-icon`,n);return u.createElement("span",{ref:t,className:a,style:r},o)}),hy=kM,Fv=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=V(`${n}-loading-icon`,r);return u.createElement(hy,{prefixCls:n,className:a,style:o,ref:t},u.createElement(J0,{className:i}))}),Yu=()=>({width:0,opacity:0,transform:"scale(0)"}),qu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),DM=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?u.createElement(Fv,{prefixCls:t,className:o,style:i}):u.createElement(xo,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:qu,onEnterStart:Yu,onEnterActive:qu,onLeaveStart:qu,onLeaveActive:Yu},(s,l)=>{let{className:c,style:f}=s;return u.createElement(Fv,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),f),ref:l,iconClassName:c})})},LM=DM;var zM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vy=u__namespace.createContext(void 0),jM=e=>{const{getPrefixCls:t,direction:n}=u__namespace.useContext(lt),{prefixCls:r,size:o,className:i}=e,a=zM(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ri();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const f=V(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return u__namespace.createElement(vy.Provider,{value:o},u__namespace.createElement("div",Object.assign({},a,{className:f})))},HM=jM,Wv=/^[\u4e00-\u9fa5]{2}$/,Zd=Wv.test.bind(Wv);function BM(e){return typeof e=="string"}function Zu(e){return e==="text"||e==="link"}function FM(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&BM(e.type)&&Zd(e.props.children)?En(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Zd(e)?u.createElement("span",null,e.split("").join(n)):u.createElement("span",null,e):Db(e)?u.createElement("span",null,e):e}function WM(e,t){let n=!1;const r=[];return u.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),u.Children.map(r,o=>FM(o,t))}function VM(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function KM(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 UM(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},VM(e,t)),KM(e.componentCls,t))}}const Vv=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),XM=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
&:focus,
&:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Vv(`${t}-primary`,o),Vv(`${t}-danger`,i)]}},YM=XM,qM=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},os(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},to=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),ZM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Qd=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Yl=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},to(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Am=e=>({"&:disabled":Object.assign({},Qd(e))}),gy=e=>Object.assign({},Am(e)),ql=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),py=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gy(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),to({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Yl(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},to({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Am(e))}),JM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gy(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),to({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Yl(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},to({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Yl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Am(e))}),eN=e=>Object.assign(Object.assign({},py(e)),{borderStyle:"dashed"}),tN=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},to({color:e.colorLinkHover},{color:e.colorLinkActive})),ql(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},to({color:e.colorErrorHover},{color:e.colorErrorActive})),ql(e))}),nN=e=>Object.assign(Object.assign(Object.assign({},to({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ql(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ql(e)),to({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),rN=e=>Object.assign(Object.assign({},Qd(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Qd(e))}),oN=e=>{const{componentCls:t}=e;return {[`${t}-default`]:py(e),[`${t}-primary`]:JM(e),[`${t}-dashed`]:eN(e),[`${t}-link`]:tN(e),[`${t}-text`]:nN(e),[`${t}-disabled`]:rN(e)}},km=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,f=Math.max(0,(r-o*i)/2-a),d=l-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${f}px ${d}px`,borderRadius:s,[`&${m}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:ZM(e)},{[`${n}${n}-round${t}`]:QM(e)}]},iN=e=>km(e),aN=e=>{const t=$t(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return km(t,`${e.componentCls}-sm`)},sN=e=>{const t=$t(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return km(t,`${e.componentCls}-lg`)},lN=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},cN=on("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=$t(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [qM(r),aN(r),iN(r),sN(r),lN(r),oN(r),YM(r),Xc(e),UM(e)]});var uN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function by(e){return e==="danger"?{danger:!0}:{type:e}}function dN(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const fN=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:f,disabled:d,className:m,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:C="button",classNames:$,style:x={}}=e,y=uN(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:w,direction:I,button:E}=u.useContext(lt),O=S("btn",i),[N,R]=cN(O),P=u.useContext(Eo),_=d??P,T=u.useContext(vy),A=u.useMemo(()=>dN(o),[o]),[M,k]=u.useState(A.loading),[z,B]=u.useState(!1),j=Mn(t,u.createRef()),G=u.Children.count(v)===1&&!g&&!Zu(a);u.useEffect(()=>{let fe=null;A.delay>0?fe=setTimeout(()=>{fe=null,k(!0);},A.delay):k(A.loading);function _e(){fe&&(clearTimeout(fe),fe=null);}return _e},[A]),u.useEffect(()=>{if(!j||!j.current||w===!1)return;const fe=j.current.textContent;G&&Zd(fe)?z||B(!0):z&&B(!1);},[j]);const F=fe=>{const{onClick:_e}=e;if(M||_){fe.preventDefault();return}_e==null||_e(fe);},K=w!==!1,{compactSize:re,compactItemClassnames:Z}=da(O,I),Y={large:"lg",small:"sm",middle:void 0},J=yr(fe=>{var _e,et;return (et=(_e=re??T)!==null&&_e!==void 0?_e:c)!==null&&et!==void 0?et:fe}),ie=J&&Y[J]||"",ae=M?"loading":g,de=On(y,["navigate"]),Q=de.href!==void 0&&_,ne=V(O,R,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${a}`]:a,[`${O}-${ie}`]:ie,[`${O}-icon-only`]:!v&&v!==0&&!!ae,[`${O}-background-ghost`]:p&&!Zu(a),[`${O}-loading`]:M,[`${O}-two-chinese-chars`]:z&&K&&!M,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:I==="rtl",[`${O}-disabled`]:Q},Z,m,h,E==null?void 0:E.className),ce=Object.assign(Object.assign({},E==null?void 0:E.style),x),se=V($==null?void 0:$.icon,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((r=E==null?void 0:E.styles)===null||r===void 0?void 0:r.icon)||{}),oe=g&&!M?u.createElement(hy,{prefixCls:O,className:se,style:me},g):u.createElement(LM,{existIcon:!!g,prefixCls:O,loading:!!M}),he=v||v===0?WM(v,G&&K):null;if(de.href!==void 0)return N(u.createElement("a",Object.assign({},de,{className:ne,style:ce,onClick:F,ref:j}),oe,he));let ue=u.createElement("button",Object.assign({},y,{type:C,className:ne,style:ce,onClick:F,disabled:_,ref:j}),oe,he);return Zu(a)||(ue=u.createElement(my,{disabled:!!M},ue)),N(ue)},Dm=u.forwardRef(fN);Dm.Group=HM;Dm.__ANT_BUTTON=!0;const dn=Dm;var mN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hN=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:f,onSearch:d,onChange:m,onCompositionStart:h,onCompositionEnd:v}=e,g=mN(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=u__namespace.useContext(lt),C=u__namespace.useRef(!1),$=p("input-search",n),x=p("input",r),{compactSize:y}=da($,b),S=yr(B=>{var W;return (W=y??i)!==null&&W!==void 0?W:B}),w=u__namespace.useRef(null),I=B=>{B&&B.target&&B.type==="click"&&d&&d(B.target.value,B),m&&m(B);},E=B=>{var W;document.activeElement===((W=w.current)===null||W===void 0?void 0:W.input)&&B.preventDefault();},O=B=>{var W,j;d&&d((j=(W=w.current)===null||W===void 0?void 0:W.input)===null||j===void 0?void 0:j.value,B);},N=B=>{C.current||c||O(B);},R=typeof s=="boolean"?u__namespace.createElement(ey,null):null,P=`${$}-button`;let _;const T=s||{},A=T.type&&T.type.__ANT_BUTTON===!0;A||T.type==="button"?_=En(T,Object.assign({onMouseDown:E,onClick:B=>{var W,j;(j=(W=T==null?void 0:T.props)===null||W===void 0?void 0:W.onClick)===null||j===void 0||j.call(W,B),O(B);},key:"enterButton"},A?{className:P,size:S}:{})):_=u__namespace.createElement(dn,{className:P,type:s?"primary":void 0,size:S,disabled:f,key:"enterButton",onMouseDown:E,onClick:O,loading:c,icon:R},s),l&&(_=[_,En(l,{key:"addonAfter"})]);const M=V($,{[`${$}-rtl`]:b==="rtl",[`${$}-${S}`]:!!S,[`${$}-with-button`]:!!s},o),k=B=>{C.current=!0,h==null||h(B);},z=B=>{C.current=!1,v==null||v(B);};return u__namespace.createElement(Nm,Object.assign({ref:Mn(w,t),onPressEnter:N},g,{size:S,onCompositionStart:k,onCompositionEnd:z,prefixCls:x,addonAfter:_,suffix:a,onChange:I,className:M,disabled:f}))}),vN=hN;var gN=`
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;
`,pN=["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"],Qu={},Qn;function bN(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&&Qu[n])return Qu[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=pN.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Qu[n]=l),l}function yN(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;Qn||(Qn=document.createElement("textarea"),Qn.setAttribute("tab-index","-1"),Qn.setAttribute("aria-hidden","true"),document.body.appendChild(Qn)),e.getAttribute("wrap")?Qn.setAttribute("wrap",e.getAttribute("wrap")):Qn.removeAttribute("wrap");var o=bN(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Qn.setAttribute("style","".concat(l,";").concat(gN)),Qn.value=e.value||e.placeholder||"";var c=void 0,f=void 0,d,m=Qn.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){Qn.value=" ";var h=Qn.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(f=h*r,s==="border-box"&&(f=f+i+a),d=m>f?"":"hidden",m=Math.min(f,m));}var v={height:m,overflowY:d,resize:"none"};return c&&(v.minHeight=c),f&&(v.maxHeight=f),v}var CN=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ju=0,ed=1,td=2,SN=u__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,f=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Je(n,CN),h=Zt(o,{value:i,postState:function(F){return F??""}}),v=U(h,2),g=v[0],p=v[1],b=function(F){p(F.target.value),d==null||d(F);},C=u__namespace.useRef();u__namespace.useImperativeHandle(t,function(){return {textArea:C.current}});var $=u__namespace.useMemo(function(){return a&&ft(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),x=U($,2),y=x[0],S=x[1],w=!!a,I=function(){try{if(document.activeElement===C.current){var F=C.current,K=F.selectionStart,re=F.selectionEnd,Z=F.scrollTop;C.current.setSelectionRange(K,re),C.current.scrollTop=Z;}}catch{}},E=u__namespace.useState(td),O=U(E,2),N=O[0],R=O[1],P=u__namespace.useState(),_=U(P,2),T=_[0],A=_[1],M=function(){R(Ju);};Gt(function(){w&&M();},[i,y,S,w]),Gt(function(){if(N===Ju)R(ed);else if(N===ed){var G=yN(C.current,!1,y,S);R(td),A(G);}else I();},[N]);var k=u__namespace.useRef(),z=function(){Mt.cancel(k.current);},B=function(F){N===td&&(s==null||s(F),a&&(z(),k.current=Mt(function(){M();})));};u__namespace.useEffect(function(){return z},[]);var W=w?T:null,j=X(X({},c),W);return (N===Ju||N===ed)&&(j.overflowY="hidden",j.overflowX="hidden"),u__namespace.createElement(Jr,{onResize:B,disabled:!(a||s)},u__namespace.createElement("textarea",ye({},m,{ref:C,style:j,className:V(r,l,q({},"".concat(r,"-disabled"),f)),disabled:f,value:g,onChange:b})))}),wN=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function yy(e,t){return qe(e||"").slice(0,t).join("")}function Gv(e,t,n,r){var o=n;return e?o=yy(n,r):qe(t||"").length<n.length&&qe(n||"").length>r&&(o=t),o}var $N=u.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,f=e.onCompositionStart,d=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=e.classes,p=e.showCount,b=e.className,C=e.style,$=e.disabled,x=e.hidden,y=e.classNames,S=e.styles,w=Je(e,wN),I=Zt(r,{value:o,defaultValue:r}),E=U(I,2),O=E[0],N=E[1],R=u.useRef(null),P=u.useState(!1),_=U(P,2),T=_[0],A=_[1],M=u.useState(!1),k=U(M,2),z=k[0],B=k[1],W=u.useRef(),j=u.useRef(0),G=function(){R.current.textArea.focus();};u.useImperativeHandle(t,function(){return {resizableTextArea:R.current,focus:G,blur:function(){R.current.textArea.blur();}}}),u.useEffect(function(){A(function(me){return !$&&me});},[$]);var F=Number(c)>0,K=function(oe){B(!0),W.current=O,j.current=oe.currentTarget.selectionStart,f==null||f(oe);},re=function(oe){B(!1);var he=oe.currentTarget.value;if(F){var ue,fe=j.current>=c+1||j.current===((ue=W.current)===null||ue===void 0?void 0:ue.length);he=Gv(fe,W.current,he,c);}he!==O&&(N(he),Ha(oe.currentTarget,oe,s,he)),d==null||d(oe);},Z=function(oe){var he=oe.target.value;if(!z&&F){var ue=oe.target.selectionStart>=c+1||oe.target.selectionStart===he.length||!oe.target.selectionStart;he=Gv(ue,O,he,c);}N(he),Ha(oe.currentTarget,oe,s,he);},Y=function(oe){var he=w.onPressEnter,ue=w.onKeyDown;oe.key==="Enter"&&he&&he(oe),ue==null||ue(oe);},J=function(oe){A(!0),i==null||i(oe);},ie=function(oe){A(!1),a==null||a(oe);},ae=function(oe){N(""),G(),Ha(R.current.textArea,oe,s);},de=Xd(O);!z&&F&&o==null&&(de=yy(de,c));var Q=m,ne;if(p){var ce=qe(de).length;ft(p)==="object"?ne=p.formatter({value:de,count:ce,maxLength:c}):ne="".concat(ce).concat(F?" / ".concat(c):""),Q=u.createElement(u.Fragment,null,Q,u.createElement("span",{className:V("".concat(v,"-data-count"),y==null?void 0:y.count),style:S==null?void 0:S.count},ne));}var se=u.createElement(dy,{value:de,allowClear:l,handleReset:ae,suffix:Q,prefixCls:v,classes:{affixWrapper:V(g==null?void 0:g.affixWrapper,(n={},q(n,"".concat(v,"-show-count"),p),q(n,"".concat(v,"-textarea-allow-clear"),l),n))},disabled:$,focused:T,className:b,style:C,dataAttrs:{affixWrapper:{"data-count":typeof ne=="string"?ne:void 0}},hidden:x,inputElement:u.createElement(SN,ye({},w,{onKeyDown:Y,onChange:Z,onFocus:J,onBlur:ie,onCompositionStart:K,onCompositionEnd:re,className:y==null?void 0:y.textarea,style:X(X({},S==null?void 0:S.textarea),{},{resize:C==null?void 0:C.resize}),disabled:$,prefixCls:v,ref:R}))});return se}),xN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EN=u.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,f=xN(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:m}=u__namespace.useContext(lt),h=yr(o),v=u__namespace.useContext(Eo),g=i??v,{status:p,hasFeedback:b,feedbackIcon:C}=u__namespace.useContext(Dr),$=Uc(p,a),x=u__namespace.useRef(null);u__namespace.useImperativeHandle(t,()=>{var E;return {resizableTextArea:(E=x.current)===null||E===void 0?void 0:E.resizableTextArea,focus:O=>{var N,R;nM((R=(N=x.current)===null||N===void 0?void 0:N.resizableTextArea)===null||R===void 0?void 0:R.textArea,O);},blur:()=>{var O;return (O=x.current)===null||O===void 0?void 0:O.blur()}}});const y=d("input",n);let S;typeof s=="object"&&(s!=null&&s.clearIcon)?S=s:s&&(S={clearIcon:u__namespace.createElement(Im,null)});const[w,I]=Mm(y);return w(u__namespace.createElement($N,Object.assign({},f,{disabled:g,allowClear:S,classes:{affixWrapper:V(`${y}-textarea-affix-wrapper`,{[`${y}-affix-wrapper-rtl`]:m==="rtl",[`${y}-affix-wrapper-borderless`]:!r,[`${y}-affix-wrapper-sm`]:h==="small",[`${y}-affix-wrapper-lg`]:h==="large",[`${y}-textarea-show-count`]:l},Qr(`${y}-affix-wrapper`,$),I)},classNames:Object.assign(Object.assign({},c),{textarea:V({[`${y}-borderless`]:!r,[`${y}-sm`]:h==="small",[`${y}-lg`]:h==="large"},Qr(y,$),I,c==null?void 0:c.textarea)}),prefixCls:y,suffix:b&&u__namespace.createElement("span",{className:`${y}-textarea-suffix`},C),showCount:l,ref:x})))}),ON=EN,Ts=Nm;Ts.Group=qT;Ts.Search=vN;Ts.TextArea=ON;Ts.Password=gM;const IN=Ts,_N=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Kv=e=>_N.test(`#${e}`),PN=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=u.useState(n==null?void 0:n.toHex());u.useEffect(()=>{const l=n==null?void 0:n.toHex();Kv(l)&&n&&a(gl(l));},[n]);const s=l=>{const c=l.target.value;a(gl(c)),Kv(gl(c,!0))&&(r==null||r(Tn(c)));};return u.createElement(IN,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},RN=PN,TN=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=u.useState(Tn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const f=i.toHsb();f[c]=c==="h"?l:(l||0)/100;const d=Tn(f);n||a(d),r==null||r(d);};return u.createElement("div",{className:o},u.createElement(Xo,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>Ko(l||0).toString(),onChange:l=>s(Number(l),"h")}),u.createElement(Xo,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Ko(l||0)}%`,onChange:l=>s(Number(l),"s")}),u.createElement(Xo,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Ko(l||0)}%`,onChange:l=>s(Number(l),"b")}))},MN=TN,NN=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=u.useState(Tn(n||"#000"));u.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const f=i.toRgb();f[c]=l||0;const d=Tn(f);n||a(d),r==null||r(d);};return u.createElement("div",{className:o},u.createElement(Xo,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),u.createElement(Xo,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),u.createElement(Xo,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},AN=NN,kN=[qr.hex,qr.hsb,qr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),DN=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=Zt(qr.hex,{value:n,onChange:o}),l=`${t}-input`,c=d=>{s(d);},f=u.useMemo(()=>{const d={value:r,prefixCls:t,onChange:i};switch(a){case qr.hsb:return u.createElement(MN,Object.assign({},d));case qr.rgb:return u.createElement(AN,Object.assign({},d));case qr.hex:default:return u.createElement(RN,Object.assign({},d))}},[a,t,r,i]);return u.createElement("div",{className:`${l}-container`},u.createElement(ST,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:kN}),u.createElement("div",{className:l},f),u.createElement(XT,{prefixCls:t,value:r,onChange:i}))},LN=DN;var zN={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 jN=zN;var HN=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:jN}))};const Cy=u__namespace.forwardRef(HN);var Sy=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,f=u.useState(l||o),d=U(f,2),m=d[0],h=d[1];return u.useEffect(function(){(o||l)&&h(!0);},[o,l]),m?u.createElement("div",{ref:t,className:V("".concat(r,"-content"),(n={},q(n,"".concat(r,"-content-active"),l),q(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},u.createElement("div",{className:"".concat(r,"-content-box")},s)):null});Sy.displayName="PanelContent";var BN=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],wy=u.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,f=e.className,d=e.prefixCls,m=e.collapsible,h=e.accordion,v=e.panelKey,g=e.extra,p=e.header,b=e.expandIcon,C=e.openMotion,$=e.destroyInactivePanel,x=e.children,y=Je(e,BN),S=m==="disabled",w=m==="header",I=m==="icon",E=g!=null&&typeof g!="boolean",O=function(){l==null||l(v);},N=function(M){(M.key==="Enter"||M.keyCode===ee.ENTER||M.which===ee.ENTER)&&O();},R=typeof b=="function"?b(e):u.createElement("i",{className:"arrow"});R&&(R=u.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},R));var P=V((n={},q(n,"".concat(d,"-item"),!0),q(n,"".concat(d,"-item-active"),s),q(n,"".concat(d,"-item-disabled"),S),n),f),_=V((r={},q(r,"".concat(d,"-header"),!0),q(r,"headerClass",a),q(r,"".concat(d,"-header-collapsible-only"),w),q(r,"".concat(d,"-icon-collapsible-only"),I),r)),T={className:_,"aria-expanded":s,"aria-disabled":S,onKeyDown:N};return !w&&!I&&(T.onClick=O,T.role=h?"tab":"button",T.tabIndex=S?-1:0),u.createElement("div",ye({},y,{ref:t,className:P}),u.createElement("div",T,i&&R,u.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?O:void 0},p),E&&u.createElement("div",{className:"".concat(d,"-extra")},g)),u.createElement(xo,ye({visible:s,leavedClassName:"".concat(d,"-content-hidden")},C,{forceRender:c,removeOnLeave:$}),function(A,M){var k=A.className,z=A.style;return u.createElement(Sy,{ref:M,prefixCls:d,className:k,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},x)}))}),FN=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],WN=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,f=n.expandIcon;return t.map(function(d,m){var h=d.children,v=d.label,g=d.key,p=d.collapsible,b=d.onItemClick,C=d.destroyInactivePanel,$=Je(d,FN),x=String(g??m),y=p??i,S=C??a,w=function(O){y!=="disabled"&&(s(O),b==null||b(O));},I=!1;return o?I=l[0]===x:I=l.indexOf(x)>-1,u.createElement(wy,ye({},$,{prefixCls:r,key:x,panelKey:x,isActive:I,accordion:o,openMotion:c,expandIcon:f,header:v,collapsible:y,onItemClick:w,destroyInactivePanel:S}),h)})},VN=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,f=r.openMotion,d=r.expandIcon,m=t.key||String(n),h=t.props,v=h.header,g=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,C=h.onItemClick,$=!1;i?$=c[0]===m:$=c.indexOf(m)>-1;var x=b??a,y=function(I){x!=="disabled"&&(l(I),C==null||C(I));},S={key:m,panelKey:m,header:v,headerClass:g,isActive:$,prefixCls:o,destroyInactivePanel:p??s,openMotion:f,accordion:i,children:t.props.children,onItemClick:y,expandIcon:d,collapsible:x};return typeof t.type=="string"?t:(Object.keys(S).forEach(function(w){typeof S[w]>"u"&&delete S[w];}),u.cloneElement(t,S))};function GN(e,t,n){return Array.isArray(e)?WN(e,n):vr(t).map(function(r,o){return VN(r,o,n)})}function KN(e){var t=e;if(!Array.isArray(t)){var n=ft(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var UN=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,f=e.collapsible,d=e.openMotion,m=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,p=e.items,b=V(r,l),C=Zt([],{value:h,onChange:function(E){return g==null?void 0:g(E)},defaultValue:v,postState:KN}),$=U(C,2),x=$[0],y=$[1],S=function(E){return y(function(){if(s)return x[0]===E?[]:[E];var O=x.indexOf(E),N=O>-1;return N?x.filter(function(R){return R!==E}):[].concat(qe(x),[E])})};zr(!c,"`children` will be removed in next major version. Please use `items` instead.");var w=GN(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:f,destroyInactivePanel:i,onItemClick:S,activeKey:x});return u.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},w)});const Lm=Object.assign(UN,{Panel:wy});Lm.Panel;const XN=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(lt),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=V({[`${a}-no-arrow`]:!i},o);return u__namespace.createElement(Lm.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),YN=XN,qN=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:f,lineType:d,colorBorder:m,colorText:h,colorTextHeading:v,colorTextDisabled:g,fontSize:p,fontSizeLG:b,lineHeight:C,marginSM:$,paddingSM:x,paddingLG:y,paddingXS:S,motionDurationSlow:w,fontSizeIcon:I}=e,E=`${f}px ${d} ${m}`;return {[t]:Object.assign(Object.assign({},Kt(e)),{backgroundColor:i,border:E,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,["&:last-child"]:{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:x,color:v,lineHeight:C,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*C,display:"flex",alignItems:"center",paddingInlineEnd:$,marginInlineStart:r-x},[`${t}-arrow`]:Object.assign(Object.assign({},ca()),{fontSize:I,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:x-S}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},["&-large"]:{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*C,marginInlineStart:y-r}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
&,
& > .arrow
`]:{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},ZN=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},QN=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},JN=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}}}}}},eA=on("Collapse",e=>{const t=$t(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [qN(t),QN(t),JN(t),ZN(t),i0(t)]}),tA=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(lt),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:f="start",children:d,expandIcon:m}=e,h=yr(w=>{var I;return (I=c??w)!==null&&I!==void 0?I:"middle"}),v=n("collapse",o),g=n(),[p,b]=eA(v),C=u__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),$=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const I=m?m(w):u__namespace.createElement(Cy,{rotate:w.isActive?90:void 0});return En(I,()=>({className:V(I.props.className,`${v}-arrow`)}))},x=V(`${v}-icon-position-${C}`,{[`${v}-borderless`]:!s,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!l,[`${v}-${h}`]:h!=="middle"},i,a,b),y=Object.assign(Object.assign({},Nb(g)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),S=u__namespace.useMemo(()=>d?vr(d).map((w,I)=>{var E,O;if(!((E=w.props)===null||E===void 0)&&E.disabled){const N=(O=w.key)!==null&&O!==void 0?O:String(I),{disabled:R,collapsible:P}=w.props,_=Object.assign(Object.assign({},On(w.props,["disabled"])),{key:N,collapsible:P??(R?"disabled":void 0)});return En(w,_)}return w}):null,[d]);return p(u__namespace.createElement(Lm,Object.assign({ref:t,openMotion:y},On(e,["rootClassName"]),{expandIcon:$,prefixCls:v,className:x}),S))}),nA=Object.assign(tA,{Panel:YN}),nd=e=>e.map(t=>(t.colors=t.colors.map(Tn),t)),rA=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Wl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},oA=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=lm("ColorPicker"),{token:{colorBgElevated:a}}=Ui.useToken(),[s]=Zt(nd(n),{value:nd(n),postState:nd}),l=`${t}-presets`,c=u.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),f=m=>{o==null||o(m);},d=s.map(m=>{var h;return {key:`panel-${m.label}`,label:u.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:u.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map(v=>u.createElement(Cm,{key:`preset-${v.toHexString()}`,color:Tn(v).toRgbString(),prefixCls:t,className:V(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:rA(v,a)}),onClick:()=>f(v)})):u.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return u.createElement("div",{className:l},u.createElement(nA,{defaultActiveKey:c,ghost:!0,items:d}))},iA=oA;var aA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sA=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,onChangeComplete:a,color:s,colorCleared:l}=e,c=aA(e,["prefixCls","allowClear","presets","onChange","onClear","onChangeComplete","color","colorCleared"]),f=`${t}-inner-panel`,d=m=>u.createElement("div",{className:f},n&&u.createElement(I0,Object.assign({prefixCls:t,value:s,colorCleared:l,onChange:h=>{o==null||o(h),i==null||i();}},c)),m,u.createElement(LN,Object.assign({value:s,onChange:o,prefixCls:t},c)),Array.isArray(r)&&u.createElement(u.Fragment,null,u.createElement(q_,{className:`${f}-divider`}),u.createElement(iA,{value:s,presets:r,prefixCls:t,onChange:o})));return u.createElement(G_,{prefixCls:t,value:s==null?void 0:s.toHsb(),onChange:(m,h)=>o==null?void 0:o(m,h,!0),panelRender:d,onChangeComplete:a})},lA=sA;var cA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uA=u.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=cA(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,f=u.useMemo(()=>i?u.createElement(I0,{prefixCls:r}):u.createElement(Cm,{prefixCls:r,color:n.toRgbString()}),[n,i,r]);return u.createElement("div",Object.assign({ref:t,className:V(c,s,{[`${c}-active`]:o,[`${c}-disabled`]:a})},l),f)}),dA=uA;function Uv(e){return e!==void 0}const fA=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=u.useState(()=>{let a;return Uv(r)?a=r:Uv(n)?a=n:a=e,Tn(a||"")});return u.useEffect(()=>{r&&i(Tn(r));},[r]),[o,i]},mA=fA,$y=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),hA=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},$y("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},xy=hA,vA=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:f,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:v}=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:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:f+a,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:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${l-2*v}px`},[`${n}-input-prefix`]:{color:m}}}}}},gA=vA,pA=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:f,colorPickerSliderHeight:d,colorPickerPreviewSize:m}=e;return Object.assign({[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:f,height:f}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":$y(`${d}px`,e.colorFillSecondary),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},xy(e,m))},bA=pA,yA=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:f,colorFill:d,colorWhite:m,marginXXS:h,paddingXS:v}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${v}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:f,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:"22.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},CA=yA,SA=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),wA=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Xv=(e,t)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:o,colorSplit:i,red6:a}=e;return {[`${n}-clear`]:{width:t,height:t,borderRadius:r,border:`${o}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden","&::after":{content:'""',position:"absolute",insetInlineEnd:o,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:a}}}},$A=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:f,controlHeight:d,controlHeightSM:m,colorBgTextActive:h,colorPickerPresetColorSize:v,lineWidth:g,colorBorder:p}=e;return [{[t]:Object.assign({[`${t}-panel`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,[`${t}-inner-panel`]:{[`${t}-clear`]:{marginInlineStart:"auto",marginBottom:c},"&-divider":{margin:`${f}px 0 ${c}px`}}},bA(e)),gA(e)),CA(e)),Xv(e,v)),"&-trigger":Object.assign(Object.assign({width:d,height:d,borderRadius:l,border:`${g}px solid ${p}`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,"&-active":Object.assign(Object.assign({},SA(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:h}}},Xv(e,m)),xy(e,m))},wA(e))}]},xA=on("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=$t(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 [$A(o)]}),zm=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:f="bottomLeft",arrow:d=!0,style:m,className:h,rootClassName:v,styles:g,onFormatChange:p,onChange:b,onClear:C,onOpenChange:$,getPopupContainer:x,autoAdjustOverflow:y=!0}=e,{getPrefixCls:S,direction:w}=u.useContext(lt),{token:I}=Ui.useToken(),[E,O]=mA(I.colorPrimary,{value:t,defaultValue:n}),[N,R]=Zt(!1,{value:l,postState:Y=>!c&&Y,onChange:$}),[P,_]=u.useState(!1),T=S("color-picker",Z_),[A,M]=xA(T),k={[`${T}-rtl`]:w},z=V(v,k),B=V(z,h,M),W=V(T,k),j=u.useRef(!0),G=(Y,J,ie)=>{let ae=Tn(Y);if(P){_(!1);const de=ae.toHsb();E.toHsb().a===0&&J!=="alpha"&&(de.a=1,ae=Tn(de));}t||O(ae),ie&&(j.current=!1),b==null||b(ae,ae.toHexString());},F=()=>{_(!0),C==null||C();},K=()=>{j.current=!0;},re={open:N,trigger:s,placement:f,arrow:d,rootClassName:v,getPopupContainer:x,autoAdjustOverflow:y},Z={prefixCls:T,color:E,allowClear:o,colorCleared:P,disabled:c,presets:i,format:r,onFormatChange:p};return A(u.createElement(C0,Object.assign({style:g==null?void 0:g.popup,onOpenChange:Y=>{j.current&&R(Y);},content:u.createElement(lA,Object.assign({},Z,{onChange:G,onChangeComplete:K,onClear:F})),overlayClassName:W},re),a||u.createElement(dA,{open:N,className:B,style:m,color:E,prefixCls:T,disabled:c,colorCleared:P})))},EA=ym(zm,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));zm._InternalPanelDoNotUseOrYouWillBeFired=EA;const OA=zm;var IA=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Ey=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,f=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,h=e.title,v=e.onChange,g=Je(e,IA),p=u.useRef(null),b=Zt(f,{value:s}),C=U(b,2),$=C[0],x=C[1];u.useImperativeHandle(t,function(){return {focus:function(){var I;(I=p.current)===null||I===void 0||I.focus();},blur:function(){var I;(I=p.current)===null||I===void 0||I.blur();},input:p.current}});var y=V(o,i,(n={},q(n,"".concat(o,"-checked"),$),q(n,"".concat(o,"-disabled"),l),n)),S=function(I){l||("checked"in e||x(I.target.checked),v==null||v({target:X(X({},e),{},{type:m,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation();},preventDefault:function(){I.preventDefault();},nativeEvent:I.nativeEvent}));};return u__namespace.createElement("span",{className:y,title:h,style:a},u__namespace.createElement("input",ye({},g,{className:"".concat(o,"-input"),ref:p,onChange:S,disabled:l,checked:!!$,type:m})),u__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const _A=new Rt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),PA=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Kt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Kt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Kt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Es(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}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&: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}:hover ${t}:after`]:{visibility:"visible"},[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:_A,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${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 RA(e,t){const n=$t(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [PA(n)]}const Oy=on("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [RA(n,e)]});var TA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Iy=u__namespace.createContext(null),MA=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,f=TA(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:m}=u__namespace.useContext(lt),[h,v]=u__namespace.useState(f.value||n||[]),[g,p]=u__namespace.useState([]);u__namespace.useEffect(()=>{"value"in f&&v(f.value||[]);},[f.value]);const b=()=>o.map(R=>typeof R=="string"||typeof R=="number"?{label:R,value:R}:R),C=R=>{p(P=>P.filter(_=>_!==R));},$=R=>{p(P=>[].concat(qe(P),[R]));},x=R=>{const P=h.indexOf(R.value),_=qe(h);P===-1?_.push(R.value):_.splice(P,1),"value"in f||v(_);const T=b();c==null||c(_.filter(A=>g.includes(A)).sort((A,M)=>{const k=T.findIndex(B=>B.value===A),z=T.findIndex(B=>B.value===M);return k-z}));},y=d("checkbox",i),S=`${y}-group`,[w,I]=Oy(y),E=On(f,["value","disabled"]);o&&o.length>0&&(r=b().map(R=>u__namespace.createElement(_y,{prefixCls:y,key:R.value.toString(),disabled:"disabled"in R?R.disabled:f.disabled,value:R.value,checked:h.includes(R.value),onChange:R.onChange,className:`${S}-item`,style:R.style,title:R.title},R.label)));const O={toggleOption:x,value:h,disabled:f.disabled,name:f.name,registerValue:$,cancelValue:C},N=V(S,{[`${S}-rtl`]:m==="rtl"},a,s,I);return w(u__namespace.createElement("div",Object.assign({className:N,style:l},E,{ref:t}),u__namespace.createElement(Iy.Provider,{value:O},r)))},NA=u__namespace.forwardRef(MA),AA=u__namespace.memo(NA);var kA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DA=(e,t)=>{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:f,skipGroup:d=!1,disabled:m}=e,h=kA(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:g}=u__namespace.useContext(lt),p=u__namespace.useContext(Iy),{isFormItemInput:b}=u__namespace.useContext(Dr),C=u__namespace.useContext(Eo),$=(n=(p==null?void 0:p.disabled)||m)!==null&&n!==void 0?n:C,x=u__namespace.useRef(h.value);u__namespace.useEffect(()=>{p==null||p.registerValue(h.value);},[]),u__namespace.useEffect(()=>{if(!d)return h.value!==x.current&&(p==null||p.cancelValue(x.current),p==null||p.registerValue(h.value),x.current=h.value),()=>p==null?void 0:p.cancelValue(h.value)},[h.value]);const y=v("checkbox",r),[S,w]=Oy(y),I=Object.assign({},h);p&&!d&&(I.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),p.toggleOption&&p.toggleOption({label:a,value:h.value});},I.name=p.name,I.checked=p.value.includes(h.value));const E=V({[`${y}-wrapper`]:!0,[`${y}-rtl`]:g==="rtl",[`${y}-wrapper-checked`]:I.checked,[`${y}-wrapper-disabled`]:$,[`${y}-wrapper-in-form-item`]:b},o,i,w),O=V({[`${y}-indeterminate`]:s},w),N=s?"mixed":void 0;return S(u__namespace.createElement("label",{className:E,style:l,onMouseEnter:c,onMouseLeave:f},u__namespace.createElement(Ey,Object.assign({"aria-checked":N},I,{prefixCls:y,className:O,disabled:$,ref:t})),a!==void 0&&u__namespace.createElement("span",null,a)))},LA=u__namespace.forwardRef(DA),_y=LA,jm=_y;jm.Group=AA;jm.__ANT_CHECKBOX=!0;const zA=jm;var jA=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Yv(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 qv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yv(Object(n),!0).forEach(function(r){HA(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BA(e,t){if(e==null)return {};var n=FA(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function FA(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var WA={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 VA(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function GA(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var Py=u.createContext(WA);Py.Provider;function kn(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,f=r.className,d=r.spin,m=BA(r,jA),h=u.useContext(Py),v=u.useMemo(VA,[]),g=GA(v,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),d&&p.push(h.prefix+"-icon-spin"),f&&p.push(f),u.createElement("span",qv(qv({},m),{},{className:p.join(" ")}),n(g))}}const KA=kn("file-cabinet",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),UA=kn("tumblr",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),XA=kn("concern",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),u.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),YA=kn("iphone",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qA=kn("computer",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),u.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZA=kn("tips",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),QA=kn("return",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),JA=kn("loading-three",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ek=kn("loading",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),tk=kn("info",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),u.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),nk=kn("help",!0,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),rk=kn("distraught-face",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ok=kn("config",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),ik=kn("close",!1,function(e){return u.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},u.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),u.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ak={Close:ik,Config:ok,DistraughtFace:rk,Help:nk,Info:tk,Loading:ek,LoadingThree:JA,Return:QA,Tips:ZA,Computer:qA,Iphone:YA,Concern:XA,Tumblr:UA,FileCabinet:KA};function gr({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=ak[e];return H(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function jn({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!Kn()[e],s=u.useCallback(c=>{const f=c.target.checked;qo({[e]:f}),r==null||r(f);},[]);let l=H("span",{style:{userSelect:"none"},children:t||e});return o&&(l=H(Os,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),H(zA,{className:n,checked:a,onChange:s,children:l})}var sk={name:"1qkltea",styles:"margin-left:5px"};const lk=function(){const e=sk;return ge(Lt,{children:[H(jn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),H(jn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Zl({tooltip:e,iconProps:t}){return H(Lt,{children:e&&H(Ay,{title:e,children:H(gr,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Da(t)}const ck=[{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)"}],qi={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Hm={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function uk(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 Ry="UP长期洗涤",dk=uk(Ry,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),Ty=[{name:"App",themes:[qi,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},Hm]},{name:"LX Themes",themes:ck,tooltip:ge(Lt,{children:["提取自"," ",H("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),H("br",{}),"Apache License 2.0"]})},{name:Ry,themes:dk,tooltip:ge(Lt,{children:["提取自"," ",H("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",H("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],My=Ty.map(e=>e.themes).flat();function fk(){const e=My.find(t=>t.id===(wt.theme||qi.id))||qi;return e.id===Hm.id&&wt.colorPickerThemeSelectedColor&&(e.colorPrimary=wt.colorPickerThemeSelectedColor),e}function ma(){let{theme:e,colorPickerThemeSelectedColor:t}=Kn();return e||(e=qi.id),u.useMemo(()=>{const n=My.find(r=>r.id===e)||qi;return n.id===Hm.id&&t&&(n.colorPrimary=t),n},[e,t])}var mk={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},hk={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},vk={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function gk(){const e=ma().id,{colorPickerThemeSelectedColor:t}=Kn(),[n,r]=u.useState(t||qi.colorPrimary),o=u.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return H("div",{children:Ty.map(({name:i,themes:a,tooltip:s})=>ge(u.Fragment,{children:[ge("div",{css:vk,children:[i,H(Zl,{tooltip:s,iconProps:{name:"Tips",size:16}})]}),H("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,f=l.isCustom,d=H("div",{className:"preview",css:er("width:100%;height:100%;background-color:",f?o:l.colorPrimary,";border-radius:5px;","")});let m=H("div",{className:"preview-wrapper",css:[hk,c&&er("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=H(OA,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||qo({colorPickerThemeSelectedColor:o});},children:m})),ge("div",{css:mk,onClick:h=>{qo({theme:l.id});},children:[m,l.name]},l.id)})})]},i))})}function Ny({children:e}){const t=gm(),{colorPrimary:n}=ma();return H(um,{locale:O_,theme:{algorithm:t?Ui.darkAlgorithm:Ui.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:e})}function Ay(e){return H(Os,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}const Zv=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},pk=new WeakMap;function bk({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Zv());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(Zv());},f=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,h)=>{a=()=>{f(),m(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),pk.set(d,()=>{l(i),i=null,a();}),d}}const oi=bk(),yk=ys.extend("utility:dom"),Ck=10*1e3,Sk=200;async function Ba(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+Ck;for(;!r.length&&performance.now()<a;)await oi(Sk),o();if(!r.length){console.warn(`[${io}]: tryAction timeout, selector = %s`,e);return}yk("tryAction: selector=%s count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Fa(e,t,n){return typeof n=="number"&&await oi(n),Ba(e,r=>r.remove(),t)}function tu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var nu,Qv=cp;nu=Qv.createRoot,Qv.hydrateRoot;function Jv(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function eg(e,t,n){var r=[],o=Lf(e,r,n);return r.length<2?n:o+t(r)}var wk=function(t){var n=$p(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var d=Da(c,n.registered,void 0);return Pp(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var d=Da(c,n.registered),m="animation-"+d.name;return Jv(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},i=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var d=Da(c,n.registered);Jv(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return eg(n.registered,r,$k(c))};return {css:r,cx:a,injectGlobal:i,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:Lf.bind(null,n.registered),merge:eg.bind(null,n.registered,r)}},$k=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else {i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a);}break}default:i=o;}i&&(n&&(n+=" "),n+=i);}}return n},xk=wk({key:"css"}),tg=xk.css,ky=function(e){return function(t,n){var r=u.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},hr=function(){return hr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},hr.apply(this,arguments)};function Dy(e,t){var n={};for(var r in 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 Ek(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i);})}return new(n||(n=Promise))(function(i,a){function s(f){try{c(r.next(f));}catch(d){a(d);}}function l(f){try{c(r.throw(f));}catch(d){a(d);}}function c(f){f.done?i(f.value):o(f.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function Ok(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(f){c=[6,f],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Jd(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 Jt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function wn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ha=function(e){return typeof e=="function"},Ik=function(e){return typeof e=="string"},Ly=function(e){return typeof e=="number"};function pt(e){var t=u.useRef(e);t.current=u.useMemo(function(){return e},[e]);var n=u.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const Ql=ky(u.useEffect);var zy=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,i=t.defaultParams,a=i===void 0?[]:i,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,f=u.useRef(!1);return f.current=!1,Ql(function(){!n&&o&&(f.current=!0,e.run.apply(e,wn([],Jt(a),!1)));},[o]),Ql(function(){f.current||n||(f.current=!0,c?c():e.refresh());},wn([],Jt(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};zy.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const Pk=zy;function ef(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 jy(e,t){var n=u.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!ef(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Zi(e){var t=u.useRef(e);return t.current=e,t}var Rk=function(e){var t=Zi(e);u.useEffect(function(){return function(){t.current();}},[]);};const Ms=Rk;var bl=new Map,Tk=function(e,t,n){var r=bl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){bl.delete(e);},t)),bl.set(e,hr(hr({},n),{timer:o}));},Mk=function(e){return bl.get(e)},yl=new Map,Nk=function(e){return yl.get(e)},Ak=function(e,t){yl.set(e,t),t.then(function(n){return yl.delete(e),n}).catch(function(){yl.delete(e);});},Do={},kk=function(e,t){Do[e]&&Do[e].forEach(function(n){return n(t)});},rd=function(e,t){return Do[e]||(Do[e]=[]),Do[e].push(t),function(){var r=Do[e].indexOf(t);Do[e].splice(r,1);}},Dk=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=u.useRef(),f=u.useRef(),d=function(h,v){s?s(v):Tk(h,o,v),kk(h,v.data);},m=function(h,v){return v===void 0&&(v=[]),l?l(v):Mk(h)};return jy(function(){if(n){var h=m(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(e.state.loading=!1)),c.current=rd(n,function(v){e.setState({data:v});});}},[]),Ms(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var v=m(n,h);return !v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(h,v){var g=Nk(n);return g&&g!==f.current?{servicePromise:g}:(g=h.apply(void 0,wn([],Jt(v),!1)),f.current=g,Ak(n,g),{servicePromise:g})},onSuccess:function(h,v){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:v,time:new Date().getTime()}),c.current=rd(n,function(p){e.setState({data:p});}));},onMutate:function(h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=rd(n,function(g){e.setState({data:g});}));}}:{}};const Lk=Dk;var zk=function(){return br.Date.now()};const od=zk;var jk="Expected a function",Hk=Math.max,Bk=Math.min;function Hy(e,t,n){var r,o,i,a,s,l,c=0,f=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(jk);t=Fd(t)||0,rr(n)&&(f=!!n.leading,d="maxWait"in n,i=d?Hk(Fd(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h(S){var w=r,I=o;return r=o=void 0,c=S,a=e.apply(I,w),a}function v(S){return c=S,s=setTimeout(b,t),f?h(S):a}function g(S){var w=S-l,I=S-c,E=t-w;return d?Bk(E,i-I):E}function p(S){var w=S-l,I=S-c;return l===void 0||w>=t||w<0||d&&I>=i}function b(){var S=od();if(p(S))return C(S);s=setTimeout(b,g(S));}function C(S){return s=void 0,m&&r?h(S):(r=o=void 0,a)}function $(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function x(){return s===void 0?a:C(od())}function y(){var S=od(),w=p(S);if(r=arguments,o=this,l=S,w){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return y.cancel=$,y.flush=x,y}var Fk=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=u.useRef(),s=u.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return u.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=Hy(function(c){c();},n,s),e.runAsync=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return new Promise(function(d,m){var h;(h=a.current)===null||h===void 0||h.call(a,function(){l.apply(void 0,wn([],Jt(c),!1)).then(d).catch(m);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const Wk=Fk;var Vk=function(e,t){var n=t.loadingDelay,r=t.ready,o=u.useRef();if(!n)return {};var i=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return i(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){i();},onCancel:function(){i();}}};const Gk=Vk;var Kk=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ns=Kk;function Bm(){return Ns?document.visibilityState!=="hidden":!0}var Wa=[];function Uk(e){return Wa.push(e),function(){var n=Wa.indexOf(e);Wa.splice(n,1);}}if(Ns){var Xk=function(){if(Bm())for(var e=0;e<Wa.length;e++){var t=Wa[e];t();}};window.addEventListener("visibilitychange",Xk,!1);}var Yk=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,i=t.pollingErrorRetryCount,a=i===void 0?-1:i,s=u.useRef(),l=u.useRef(),c=u.useRef(0),f=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Ql(function(){n||f();},[n]),n?{onBefore:function(){f();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!Bm()?l.current=Uk(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){f();}}:{}};const qk=Yk;function Zk(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,wn([],Jt(r),!1)),setTimeout(function(){n=!1;},t));}}function Qk(){return Ns&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Va=[];function Jk(e){return Va.push(e),function(){var n=Va.indexOf(e);n>-1&&Va.splice(n,1);}}if(Ns){var ng=function(){if(!(!Bm()||!Qk()))for(var e=0;e<Va.length;e++){var t=Va[e];t();}};window.addEventListener("visibilitychange",ng,!1),window.addEventListener("focus",ng,!1);}var e3=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=u.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return u.useEffect(function(){if(n){var s=Zk(e.refresh.bind(e),o);i.current=Jk(function(){s();});}return function(){a();}},[n,o]),Ms(function(){a();}),{}};const t3=e3;var n3=function(e,t){var n=t.retryInterval,r=t.retryCount,o=u.useRef(),i=u.useRef(0),a=u.useRef(!1);return r?{onBefore:function(){a.current||(i.current=0),a.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){i.current=0;},onError:function(){if(i.current+=1,r===-1||i.current<=r){var s=n??Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else i.current=0;},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current);}}:{}};const r3=n3;var o3="Expected a function";function i3(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(o3);return rr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Hy(e,t,{leading:r,maxWait:t,trailing:o})}var a3=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=u.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),u.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=i3(function(l){l();},n,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(f,d){var m;(m=i.current)===null||m===void 0||m.call(i,function(){s.apply(void 0,wn([],Jt(l),!1)).then(f).catch(d);});})},function(){var l;e.runAsync=s,(l=i.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel();}}:{}};const s3=a3;var l3=function(e){u.useEffect(function(){e==null||e();},[]);};const ou=l3;var c3=function(){var e=Jt(u.useState({}),2),t=e[1];return u.useCallback(function(){return t({})},[])};const u3=c3;var d3=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=hr(hr(hr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=hr(hr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(i){var a;return (a=i[t])===null||a===void 0?void 0:a.call.apply(a,wn([i],Jt(n),!1))}).filter(Boolean);return Object.assign.apply(Object,wn([{}],Jt(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,f,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return Ek(this,void 0,void 0,function(){var h,v,g,p,b,C,$,x,y,S,w;return Ok(this,function(I){switch(I.label){case 0:if(this.count+=1,h=this.count,v=this.runPluginHandler("onBefore",d),g=v.stopNow,p=g===void 0?!1:g,b=v.returnNow,C=b===void 0?!1:b,$=Dy(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(hr({loading:!0,params:d},$)),C)return [2,Promise.resolve($.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),I.label=1;case 1:return I.trys.push([1,3,,4]),x=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,x||(x=(w=this.serviceRef).current.apply(w,wn([],Jt(d),!1))),[4,x];case 2:return y=I.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:y,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,y,d),this.runPluginHandler("onSuccess",y,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,y,void 0),h===this.count&&this.runPluginHandler("onFinally",d,y,void 0),[2,y]);case 3:if(S=I.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:S,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,S,d),this.runPluginHandler("onError",S,d),(f=(c=this.options).onFinally)===null||f===void 0||f.call(c,d,void 0,S),h===this.count&&this.runPluginHandler("onFinally",d,void 0,S),S;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,wn([],Jt(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,wn([],Jt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,wn([],Jt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=ha(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const f3=d3;function m3(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=Dy(t,["manual"]);var a=hr({manual:o},i),s=Zi(e),l=u3(),c=jy(function(){var f=n.map(function(d){var m;return (m=d==null?void 0:d.onInit)===null||m===void 0?void 0:m.call(d,a)}).filter(Boolean);return new f3(s,a,l,Object.assign.apply(Object,wn([{}],Jt(f),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(f){return f(c,a)}),ou(function(){if(!o){var f=c.state.params||t.defaultParams||[];c.run.apply(c,wn([],Jt(f),!1));}}),Ms(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:pt(c.cancel.bind(c)),refresh:pt(c.refresh.bind(c)),refreshAsync:pt(c.refreshAsync.bind(c)),run:pt(c.run.bind(c)),runAsync:pt(c.runAsync.bind(c)),mutate:pt(c.mutate.bind(c))}}function h3(e,t,n){return m3(e,t,wn(wn([],Jt(n||[]),!1),[Wk,Gk,qk,t3,s3,Pk,Lk,r3],!1))}function By(e,t){e===void 0&&(e=!1);var n=Jt(u.useState(e),2),r=n[0],o=n[1],i=u.useMemo(function(){var a=t===void 0?!e:t,s=function(){return o(function(d){return d===e?a:e})},l=function(d){return o(d)},c=function(){return o(e)},f=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:f}},[]);return [r,i]}function v3(e){e===void 0&&(e=!1);var t=Jt(By(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=u.useMemo(function(){var s=function(){return i(!0)},l=function(){return i(!1)};return {toggle:o,set:function(c){return i(!!c)},setTrue:s,setFalse:l}},[]);return [n,a]}function iu(e,t){if(Ns){if(!e)return t;var n;return ha(e)?n=e():"current"in e?n=e.current:n=e,n}}var g3=function(e){var t=function(n,r,o){var i=u.useRef(!1),a=u.useRef([]),s=u.useRef([]),l=u.useRef();e(function(){var c,f=Array.isArray(o)?o:[o],d=f.map(function(m){return iu(m)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!ef(d,a.current)||!ef(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),Ms(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const p3=g3;var b3=p3(u.useEffect);const Fy=b3;function y3(){this.__data__=new ro,this.size=0;}function C3(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function S3(e){return this.__data__.get(e)}function w3(e){return this.__data__.has(e)}var $3=200;function x3(e,t){var n=this.__data__;if(n instanceof ro){var r=n.__data__;if(!ts||r.length<$3-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oo(r);}return n.set(e,t),this.size=n.size,this}function Nr(e){var t=this.__data__=new ro(e);this.size=t.size;}Nr.prototype.clear=y3;Nr.prototype.delete=C3;Nr.prototype.get=S3;Nr.prototype.has=w3;Nr.prototype.set=x3;var E3="__lodash_hash_undefined__";function O3(e){return this.__data__.set(e,E3),this}function I3(e){return this.__data__.has(e)}function ls(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oo;++t<n;)this.add(e[t]);}ls.prototype.add=ls.prototype.push=O3;ls.prototype.has=I3;function _3(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}function Wy(e,t){return e.has(t)}var P3=1,R3=2;function Vy(e,t,n,r,o,i){var a=n&P3,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var d=-1,m=!0,h=n&R3?new ls:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var p=a?r(g,v,d,t,e,i):r(v,g,d,e,t,i);if(p!==void 0){if(p)continue;m=!1;break}if(h){if(!_3(t,function(b,C){if(!Wy(h,C)&&(v===b||o(v,b,n,r,i)))return h.push(C)})){m=!1;break}}else if(!(v===g||o(v,g,n,r,i))){m=!1;break}}return i.delete(e),i.delete(t),m}var T3=br.Uint8Array;const Jl=T3;function M3(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Fm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var N3=1,A3=2,k3="[object Boolean]",D3="[object Date]",L3="[object Error]",z3="[object Map]",j3="[object Number]",H3="[object RegExp]",B3="[object Set]",F3="[object String]",W3="[object Symbol]",V3="[object ArrayBuffer]",G3="[object DataView]",rg=nr?nr.prototype:void 0,id=rg?rg.valueOf:void 0;function K3(e,t,n,r,o,i,a){switch(n){case G3:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case V3:return !(e.byteLength!=t.byteLength||!i(new Jl(e),new Jl(t)));case k3:case D3:case j3:return jf(+e,+t);case L3:return e.name==t.name&&e.message==t.message;case H3:case F3:return e==t+"";case z3:var s=M3;case B3:var l=r&N3;if(s||(s=Fm),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=A3,a.set(e,t);var f=Vy(s(e),s(t),r,o,i,a);return a.delete(e),f;case W3:if(id)return id.call(e)==id.call(t)}return !1}function Gy(e,t,n){var r=t(e);return tr(e)?r:Kf(r,n(e))}function U3(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a);}return i}function Ky(){return []}var X3=Object.prototype,Y3=X3.propertyIsEnumerable,og=Object.getOwnPropertySymbols,q3=og?function(e){return e==null?[]:(e=Object(e),U3(og(e),function(t){return Y3.call(e,t)}))}:Ky;const Wm=q3;function Z3(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Q3(){return !1}var Uy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ig=Uy&&typeof module=="object"&&module&&!module.nodeType&&module,J3=ig&&ig.exports===Uy,ag=J3?br.Buffer:void 0,e4=ag?ag.isBuffer:void 0,t4=e4||Q3;const ec=t4;var n4="[object Arguments]",r4="[object Array]",o4="[object Boolean]",i4="[object Date]",a4="[object Error]",s4="[object Function]",l4="[object Map]",c4="[object Number]",u4="[object Object]",d4="[object RegExp]",f4="[object Set]",m4="[object String]",h4="[object WeakMap]",v4="[object ArrayBuffer]",g4="[object DataView]",p4="[object Float32Array]",b4="[object Float64Array]",y4="[object Int8Array]",C4="[object Int16Array]",S4="[object Int32Array]",w4="[object Uint8Array]",$4="[object Uint8ClampedArray]",x4="[object Uint16Array]",E4="[object Uint32Array]",Wt={};Wt[p4]=Wt[b4]=Wt[y4]=Wt[C4]=Wt[S4]=Wt[w4]=Wt[$4]=Wt[x4]=Wt[E4]=!0;Wt[n4]=Wt[r4]=Wt[v4]=Wt[o4]=Wt[g4]=Wt[i4]=Wt[a4]=Wt[s4]=Wt[l4]=Wt[c4]=Wt[u4]=Wt[d4]=Wt[f4]=Wt[m4]=Wt[h4]=!1;function O4(e){return So(e)&&Gf(e.length)&&!!Wt[ia(e)]}function Vm(e){return function(t){return e(t)}}var Xy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ga=Xy&&typeof module=="object"&&module&&!module.nodeType&&module,I4=Ga&&Ga.exports===Xy,ad=I4&&Ap.process,_4=function(){try{var e=Ga&&Ga.require&&Ga.require("util").types;return e||ad&&ad.binding&&ad.binding("util")}catch{}}();const Qi=_4;var sg=Qi&&Qi.isTypedArray,P4=sg?Vm(sg):O4;const Yy=P4;var R4=Object.prototype,T4=R4.hasOwnProperty;function qy(e,t){var n=tr(e),r=!n&&Vf(e),o=!n&&!r&&ec(e),i=!n&&!r&&!o&&Yy(e),a=n||r||o||i,s=a?Z3(e.length,String):[],l=s.length;for(var c in e)(t||T4.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wf(c,l)))&&s.push(c);return s}var M4=Object.prototype;function Gm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||M4;return e===n}function Zy(e,t){return function(n){return e(t(n))}}var N4=Zy(Object.keys,Object);const A4=N4;var k4=Object.prototype,D4=k4.hasOwnProperty;function L4(e){if(!Gm(e))return A4(e);var t=[];for(var n in Object(e))D4.call(e,n)&&n!="constructor"&&t.push(n);return t}function Qy(e){return e!=null&&Gf(e.length)&&!Dp(e)}function As(e){return Qy(e)?qy(e):L4(e)}function tf(e){return Gy(e,As,Wm)}var z4=1,j4=Object.prototype,H4=j4.hasOwnProperty;function B4(e,t,n,r,o,i){var a=n&z4,s=tf(e),l=s.length,c=tf(t),f=c.length;if(l!=f&&!a)return !1;for(var d=l;d--;){var m=s[d];if(!(a?m in t:H4.call(t,m)))return !1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var g=!0;i.set(e,t),i.set(t,e);for(var p=a;++d<l;){m=s[d];var b=e[m],C=t[m];if(r)var $=a?r(C,b,m,t,e,i):r(b,C,m,e,t,i);if(!($===void 0?b===C||o(b,C,n,r,i):$)){g=!1;break}p||(p=m=="constructor");}if(g&&!p){var x=e.constructor,y=t.constructor;x!=y&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof y=="function"&&y instanceof y)&&(g=!1);}return i.delete(e),i.delete(t),g}var F4=ei(br,"DataView");const nf=F4;var W4=ei(br,"Promise");const rf=W4;var V4=ei(br,"Set");const Mi=V4;var G4=ei(br,"WeakMap");const of=G4;var lg="[object Map]",K4="[object Object]",cg="[object Promise]",ug="[object Set]",dg="[object WeakMap]",fg="[object DataView]",U4=Jo(nf),X4=Jo(ts),Y4=Jo(rf),q4=Jo(Mi),Z4=Jo(of),No=ia;(nf&&No(new nf(new ArrayBuffer(1)))!=fg||ts&&No(new ts)!=lg||rf&&No(rf.resolve())!=cg||Mi&&No(new Mi)!=ug||of&&No(new of)!=dg)&&(No=function(e){var t=ia(e),n=t==K4?e.constructor:void 0,r=n?Jo(n):"";if(r)switch(r){case U4:return fg;case X4:return lg;case Y4:return cg;case q4:return ug;case Z4:return dg}return t});const cs=No;var Q4=1,mg="[object Arguments]",hg="[object Array]",tl="[object Object]",J4=Object.prototype,vg=J4.hasOwnProperty;function eD(e,t,n,r,o,i){var a=tr(e),s=tr(t),l=a?hg:cs(e),c=s?hg:cs(t);l=l==mg?tl:l,c=c==mg?tl:c;var f=l==tl,d=c==tl,m=l==c;if(m&&ec(e)){if(!ec(t))return !1;a=!0,f=!1;}if(m&&!f)return i||(i=new Nr),a||Yy(e)?Vy(e,t,n,r,o,i):K3(e,t,l,n,r,o,i);if(!(n&Q4)){var h=f&&vg.call(e,"__wrapped__"),v=d&&vg.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,p=v?t.value():t;return i||(i=new Nr),o(g,p,n,r,i)}}return m?(i||(i=new Nr),B4(e,t,n,r,o,i)):!1}function au(e,t,n,r,o){return e===t?!0:e==null||t==null||!So(e)&&!So(t)?e!==e&&t!==t:eD(e,t,n,r,au,o)}function tD(e,t){return au(e,t)}function yo(e,t,n){n===void 0&&(n={});var r=Zi(t);Fy(function(){var o=iu(n.target,window);if(o!=null&&o.addEventListener){var i=function(a){return r.current(a)};return o.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,i,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function Jy(e){var t=Jt(u.useState(e),2),n=t[0],r=t[1],o=u.useRef(n);o.current=n;var i=u.useCallback(function(){return o.current},[]);return [n,r,i]}const sd=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=Jt(v3(!1),2),s=a[0],l=a[1],c=l.setTrue,f=l.setFalse;return yo("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),yo("mouseleave",function(){o==null||o(),f(),i==null||i(!1);},{target:e}),s};var nD=function(e,t){return t===void 0&&(t=[]),tD(e,t)},rD=function(e,t,n){var r=u.useRef(),o=u.useRef(0);nD(t,r.current)||(r.current=t,o.current+=1),Fy(e,[o.current],n);};const oD=rD;var iD=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const aD=iD;var eC={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:aD?[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},af={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"?eC.meta.includes(e.keyCode):e.metaKey}};function sD(e){var t=Object.keys(af).reduce(function(n,r){return af[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function gg(e,t,n){var r,o;if(!e.key)return !1;if(Ly(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Jd(i),l=s.next();!l.done;l=s.next()){var c=l.value,f=af[c],d=eC[c.toLowerCase()];(f&&f(e)||d&&d===e.keyCode)&&a++;}}catch(m){r={error:m};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?a===i.length&&sD(e)===i.length:a===i.length}function lD(e,t){return ha(e)?e:Ik(e)||Ly(e)?function(n){return gg(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return gg(n,r,t)})}:function(){return !!e}}var cD=["keydown"];function en(e,t,n){var r=n||{},o=r.events,i=o===void 0?cD:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,f=c===void 0?!1:c,d=Zi(t),m=Zi(e);oD(function(){var h,v,g,p=iu(a,window);if(p){var b=function(y){var S,w=lD(m.current,l);if(w(y))return (S=d.current)===null||S===void 0?void 0:S.call(d,y)};try{for(var C=Jd(i),$=C.next();!$.done;$=C.next()){var x=$.value;(g=p==null?void 0:p.addEventListener)===null||g===void 0||g.call(p,x,b,f);}}catch(y){h={error:y};}finally{try{$&&!$.done&&(v=C.return)&&v.call(C);}finally{if(h)throw h.error}}return function(){var y,S,w;try{for(var I=Jd(i),E=I.next();!E.done;E=I.next()){var O=E.value;(w=p==null?void 0:p.removeEventListener)===null||w===void 0||w.call(p,O,b,f);}}catch(N){y={error:N};}finally{try{E&&!E.done&&(S=I.return)&&S.call(I);}finally{if(y)throw y.error}}}}},[i],a);}function tC(e){var t=u.useRef(0),n=Jt(u.useState(e),2),r=n[0],o=n[1],i=u.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return Ms(function(){cancelAnimationFrame(t.current);}),[r,i]}var uD={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 dD=function(e){var t=Jt(tC(uD),2),n=t[0],r=t[1];return yo("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,f=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:f,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=iu(e);if(m){var h=m.getBoundingClientRect(),v=h.left,g=h.top,p=h.width,b=h.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=g+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=f-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var fD=Zy(Object.getPrototypeOf,Object);const nC=fD;var mD=function(){var e=u.useRef(!1);return u.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const hD=mD,vD=ky(u.useLayoutEffect),gD="_modal-mask_1j5wc_1",pD="_modal_1j5wc_1",bD="_modal-header_1j5wc_23",yD="_modal-body_1j5wc_30",CD="_modal-title_1j5wc_35",SD="_btn-close_1j5wc_42",Ar={modalMask:gD,modal:pD,modalHeader:bD,modalBody:yD,modalTitle:CD,btnClose:SD};let Ma=0;const wD=()=>{Ma++,document.body.style.overflow="hidden";},$D=()=>{Ma--,Ma<0&&(Ma=0),Ma===0&&(document.body.style.overflow="");};function Km({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){u.useLayoutEffect(()=>{e?wD():$D();},[e]);const f=u.useRef(null),d=gm(),{bg:m,c:h}=u.useMemo(()=>{const C=window.getComputedStyle(document.body)["background-color"],$=window.getComputedStyle(document.body).color;return {bg:C,c:$}},[d]),v=u.useMemo(()=>d?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,d]),g=u.useId(),p=u.useMemo(()=>{const C=document.createElement("div");return C.setAttribute("data-id","base-modal-"+g),document.body.appendChild(C),C},[]),b=pt(C=>{var x;const $=C.target;(x=f.current)!=null&&x.contains($)||$.closest('.ant-tooltip-inner[role="tooltip"]')||$.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return en("esc",C=>{e&&c&&(C.preventDefault(),C.stopImmediatePropagation(),setTimeout(t));}),e?cp.createPortal(H("div",{className:V(Ar.modalMask,o),style:r,onClick:b,children:H("div",{className:V(Ar.modal,a),style:{...v,width:s,...i},ref:f,children:n})}),p):null}const Um=e=>H(gr,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),xD="_toast-container_185m9_1",ED="_single-line_185m9_17";function tn(e,t=2e3){const n=document.createElement("div");n.className=xD,n.innerText=e;const{colorPrimary:r}=fk();n.style.backgroundColor=r,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(ED),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const OD="请求失败, 请重试 !!!",ID="操作失败, 请重试 !!!";function rC(){return tn(OD)}function oC(){return tn(ID)}function _D(e){const t=ti({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const iC="27eb53fc9058f8c3";async function PD(){var c,f;const t=(await Pf.get("https://passport.bilibili.com/login/app/third",{params:{appkey:iC,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录(不可用)B站之后才能使用授权",json:t};if(!((f=t==null?void 0:t.data)!=null&&f.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const m=h=>{if(h.origin!="https://www.mcbbs.net"||!h.data)return;const v=h.data.match(/access_key=([0-9a-z]{32})/);if(!v||!v[1])return d({errmsg:"没有获得匹配的密钥"});d({access_key:v[1]});};window.addEventListener("message",m),o=()=>window.removeEventListener("message",m),r=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=n,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function RD(){const e=await PD();if(!e.access_key)return tn(e.errmsg||"");const t=e.access_key;return wt.accessKey=t,tn("获取成功"),t}function TD(){wt.accessKey="",tn("已删除 access_key");}const MD="https://api.bilibili.com",aC="https://app.bilibili.com",va=Pf.create({baseURL:MD,withCredentials:!0});va.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const su=Pf.create({adapter:o1});su.interceptors.request.use(function(e){return e.params={appkey:iC,access_key:wt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});su.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});function sC(){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 ND(){const e=sC().bili_jct;if(!e)throw tn("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function Xm(){return !!sC().DedeUserID}const sf=ti({cookie:document.cookie,logined:Xm()});function AD(){return Object.assign(sf,{cookie:document.cookie,logined:Xm()}),sf.logined}function lC(){return $o(sf).logined}const Ia=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,cC=new Set,lf=typeof process=="object"&&process?process:{},uC=(e,t,n,r)=>{typeof lf.emitWarning=="function"?lf.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let tc=globalThis.AbortController,pg=globalThis.AbortSignal;var sp;if(typeof tc>"u"){pg=class{constructor(){at(this,"onabort");at(this,"_onabort",[]);at(this,"reason");at(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},tc=class{constructor(){at(this,"signal",new pg);t();}abort(r){var o,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const a of this.signal._onabort)a(r);(i=(o=this.signal).onabort)==null||i.call(o,r);}}};let e=((sp=lf.env)==null?void 0:sp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,uC("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const kD=e=>!cC.has(e),co=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),dC=e=>co(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Cl:null:null;class Cl extends Array{constructor(t){super(t),this.fill(0);}}var Di;const Pi=class{constructor(t,n){at(this,"heap");at(this,"length");if(!D(Pi,Di))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=dC(t);if(!n)return [];Ge(Pi,Di,!0);const r=new Pi(t,n);return Ge(Pi,Di,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Sl=Pi;Di=new WeakMap,ut(Sl,Di,!1);var lr,Hn,xr,cr,Li,an,ur,sn,Ft,st,xn,Bn,Cn,cn,dr,mn,Ur,Xr,fr,Er,vo,_n,fs,uf,Ho,Yr,ms,Fn,fc,fC,Bo,zi,hs,Or,uo,Ir,fo,vs,df,ji,wl,Hi,$l,jt,Vt,gs,ff,Fo,Na;const ph=class{constructor(t){ut(this,fs);ut(this,fc);ut(this,Or);ut(this,Ir);ut(this,vs);ut(this,ji);ut(this,Hi);ut(this,jt);ut(this,gs);ut(this,Fo);ut(this,lr,void 0);ut(this,Hn,void 0);ut(this,xr,void 0);ut(this,cr,void 0);ut(this,Li,void 0);at(this,"ttl");at(this,"ttlResolution");at(this,"ttlAutopurge");at(this,"updateAgeOnGet");at(this,"updateAgeOnHas");at(this,"allowStale");at(this,"noDisposeOnSet");at(this,"noUpdateTTL");at(this,"maxEntrySize");at(this,"sizeCalculation");at(this,"noDeleteOnFetchRejection");at(this,"noDeleteOnStaleGet");at(this,"allowStaleOnFetchAbort");at(this,"allowStaleOnFetchRejection");at(this,"ignoreFetchAbort");ut(this,an,void 0);ut(this,ur,void 0);ut(this,sn,void 0);ut(this,Ft,void 0);ut(this,st,void 0);ut(this,xn,void 0);ut(this,Bn,void 0);ut(this,Cn,void 0);ut(this,cn,void 0);ut(this,dr,void 0);ut(this,mn,void 0);ut(this,Ur,void 0);ut(this,Xr,void 0);ut(this,fr,void 0);ut(this,Er,void 0);ut(this,vo,void 0);ut(this,_n,void 0);ut(this,Ho,()=>{});ut(this,Yr,()=>{});ut(this,ms,()=>{});ut(this,Fn,()=>!1);ut(this,Bo,t=>{});ut(this,zi,(t,n,r)=>{});ut(this,hs,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:m,maxSize:h=0,maxEntrySize:v=0,sizeCalculation:g,fetchMethod:p,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:x,ignoreFetchAbort:y}=t;if(n!==0&&!co(n))throw new TypeError("max option must be a nonnegative integer");const S=n?dC(n):Array;if(!S)throw new Error("invalid max value: "+n);if(Ge(this,lr,n),Ge(this,Hn,h),this.maxEntrySize=v||D(this,Hn),this.sizeCalculation=g,this.sizeCalculation){if(!D(this,Hn)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ge(this,Li,p),Ge(this,vo,!!p),Ge(this,sn,new Map),Ge(this,Ft,new Array(n).fill(void 0)),Ge(this,st,new Array(n).fill(void 0)),Ge(this,xn,new S(n)),Ge(this,Bn,new S(n)),Ge(this,Cn,0),Ge(this,cn,0),Ge(this,dr,Sl.create(n)),Ge(this,an,0),Ge(this,ur,0),typeof c=="function"&&Ge(this,xr,c),typeof f=="function"?(Ge(this,cr,f),Ge(this,mn,[])):(Ge(this,cr,void 0),Ge(this,mn,void 0)),Ge(this,Er,!!D(this,xr)),Ge(this,_n,!!D(this,cr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!y,this.maxEntrySize!==0){if(D(this,Hn)!==0&&!co(D(this,Hn)))throw new TypeError("maxSize must be a positive integer if specified");if(!co(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ke(this,fc,fC).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=co(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!co(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ke(this,fs,uf).call(this);}if(D(this,lr)===0&&this.ttl===0&&D(this,Hn)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!D(this,lr)&&!D(this,Hn)){const w="LRU_CACHE_UNBOUNDED";kD(w)&&(cC.add(w),uC("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",w,ph));}}static unsafeExposeInternals(t){return {starts:D(t,Xr),ttls:D(t,fr),sizes:D(t,Ur),keyMap:D(t,sn),keyList:D(t,Ft),valList:D(t,st),next:D(t,xn),prev:D(t,Bn),get head(){return D(t,Cn)},get tail(){return D(t,cn)},free:D(t,dr),isBackgroundFetch:n=>{var r;return ke(r=t,jt,Vt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return ke(a=t,Hi,$l).call(a,n,r,o,i)},moveToTail:n=>{var r;return ke(r=t,Fo,Na).call(r,n)},indexes:n=>{var r;return ke(r=t,Or,uo).call(r,n)},rindexes:n=>{var r;return ke(r=t,Ir,fo).call(r,n)},isStale:n=>{var r;return D(r=t,Fn).call(r,n)}}}get max(){return D(this,lr)}get maxSize(){return D(this,Hn)}get calculatedSize(){return D(this,ur)}get size(){return D(this,an)}get fetchMethod(){return D(this,Li)}get dispose(){return D(this,xr)}get disposeAfter(){return D(this,cr)}getRemainingTTL(t){return D(this,sn).has(t)?1/0:0}*entries(){for(const t of ke(this,Or,uo).call(this))D(this,st)[t]!==void 0&&D(this,Ft)[t]!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield [D(this,Ft)[t],D(this,st)[t]]);}*rentries(){for(const t of ke(this,Ir,fo).call(this))D(this,st)[t]!==void 0&&D(this,Ft)[t]!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield [D(this,Ft)[t],D(this,st)[t]]);}*keys(){for(const t of ke(this,Or,uo).call(this)){const n=D(this,Ft)[t];n!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield n);}}*rkeys(){for(const t of ke(this,Ir,fo).call(this)){const n=D(this,Ft)[t];n!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield n);}}*values(){for(const t of ke(this,Or,uo).call(this))D(this,st)[t]!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield D(this,st)[t]);}*rvalues(){for(const t of ke(this,Ir,fo).call(this))D(this,st)[t]!==void 0&&!ke(this,jt,Vt).call(this,D(this,st)[t])&&(yield D(this,st)[t]);}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of ke(this,Or,uo).call(this)){const o=D(this,st)[r],i=ke(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,D(this,Ft)[r],this))return this.get(D(this,Ft)[r],n)}}forEach(t,n=this){for(const r of ke(this,Or,uo).call(this)){const o=D(this,st)[r],i=ke(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,D(this,Ft)[r],this);}}rforEach(t,n=this){for(const r of ke(this,Ir,fo).call(this)){const o=D(this,st)[r],i=ke(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,D(this,Ft)[r],this);}}purgeStale(){let t=!1;for(const n of ke(this,Ir,fo).call(this,{allowStale:!0}))D(this,Fn).call(this,n)&&(this.delete(D(this,Ft)[n]),t=!0);return t}dump(){const t=[];for(const n of ke(this,Or,uo).call(this,{allowStale:!0})){const r=D(this,Ft)[n],o=D(this,st)[n],i=ke(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(D(this,fr)&&D(this,Xr)){a.ttl=D(this,fr)[n];const s=Ia.now()-D(this,Xr)[n];a.start=Math.floor(Date.now()-s);}D(this,Ur)&&(a.size=D(this,Ur)[n]),t.unshift([r,a]);}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const o=Date.now()-r.start;r.start=Ia.now()-o;}this.set(n,r.value,r);}}set(t,n,r={}){var m,h,v;if(n===void 0)return this.delete(t),this;const{ttl:o=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const f=D(this,hs).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=D(this,an)===0?void 0:D(this,sn).get(t);if(d===void 0)d=D(this,an)===0?D(this,cn):D(this,dr).length!==0?D(this,dr).pop():D(this,an)===D(this,lr)?ke(this,ji,wl).call(this,!1):D(this,an),D(this,Ft)[d]=t,D(this,st)[d]=n,D(this,sn).set(t,d),D(this,xn)[D(this,cn)]=d,D(this,Bn)[d]=D(this,cn),Ge(this,cn,d),Fs(this,an)._++,D(this,zi).call(this,d,f,l),l&&(l.set="add"),c=!1;else {ke(this,Fo,Na).call(this,d);const g=D(this,st)[d];if(n!==g){if(D(this,vo)&&ke(this,jt,Vt).call(this,g)?g.__abortController.abort(new Error("replaced")):a||(D(this,Er)&&((m=D(this,xr))==null||m.call(this,g,t,"set")),D(this,_n)&&((h=D(this,mn))==null||h.push([g,t,"set"]))),D(this,Bo).call(this,d),D(this,zi).call(this,d,f,l),D(this,st)[d]=n,l){l.set="replace";const p=g&&ke(this,jt,Vt).call(this,g)?g.__staleWhileFetching:g;p!==void 0&&(l.oldValue=p);}}else l&&(l.set="update");}if(o!==0&&!D(this,fr)&&ke(this,fs,uf).call(this),D(this,fr)&&(c||D(this,ms).call(this,d,o,i),l&&D(this,Yr).call(this,l,d)),!a&&D(this,_n)&&D(this,mn)){const g=D(this,mn);let p;for(;p=g==null?void 0:g.shift();)(v=D(this,cr))==null||v.call(this,...p);}return this}pop(){var t;try{for(;D(this,an);){const n=D(this,st)[D(this,Cn)];if(ke(this,ji,wl).call(this,!0),ke(this,jt,Vt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(D(this,_n)&&D(this,mn)){const n=D(this,mn);let r;for(;r=n==null?void 0:n.shift();)(t=D(this,cr))==null||t.call(this,...r);}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,i=D(this,sn).get(t);if(i!==void 0){const a=D(this,st)[i];if(ke(this,jt,Vt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(D(this,Fn).call(this,i))o&&(o.has="stale",D(this,Yr).call(this,o,i));else return r&&D(this,Ho).call(this,i),o&&(o.has="hit",D(this,Yr).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,o=D(this,sn).get(t);if(o!==void 0&&(r||!D(this,Fn).call(this,o))){const i=D(this,st)[o];return ke(this,jt,Vt).call(this,i)?i.__staleWhileFetching:i}}async fetch(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:h=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:g,forceRefresh:p=!1,status:b,signal:C}=n;if(!D(this,vo))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const $={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:f,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:v,ignoreFetchAbort:h,status:b,signal:C};let x=D(this,sn).get(t);if(x===void 0){b&&(b.fetch="miss");const y=ke(this,Hi,$l).call(this,t,x,$,g);return y.__returned=y}else {const y=D(this,st)[x];if(ke(this,jt,Vt).call(this,y)){const O=r&&y.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",O&&(b.returnedStale=!0)),O?y.__staleWhileFetching:y.__returned=y}const S=D(this,Fn).call(this,x);if(!p&&!S)return b&&(b.fetch="hit"),ke(this,Fo,Na).call(this,x),o&&D(this,Ho).call(this,x),b&&D(this,Yr).call(this,b,x),y;const w=ke(this,Hi,$l).call(this,t,x,$,g),E=w.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=S?"stale":"refresh",E&&S&&(b.returnedStale=!0)),E?w.__staleWhileFetching:w.__returned=w}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,s=D(this,sn).get(t);if(s!==void 0){const l=D(this,st)[s],c=ke(this,jt,Vt).call(this,l);return a&&D(this,Yr).call(this,a,s),D(this,Fn).call(this,s)?(a&&(a.get="stale"),c?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(i||this.delete(t),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(ke(this,Fo,Na).call(this,s),o&&D(this,Ho).call(this,s),l))}else a&&(a.get="miss");}delete(t){var r,o,i,a;let n=!1;if(D(this,an)!==0){const s=D(this,sn).get(t);if(s!==void 0)if(n=!0,D(this,an)===1)this.clear();else {D(this,Bo).call(this,s);const l=D(this,st)[s];ke(this,jt,Vt).call(this,l)?l.__abortController.abort(new Error("deleted")):(D(this,Er)||D(this,_n))&&(D(this,Er)&&((r=D(this,xr))==null||r.call(this,l,t,"delete")),D(this,_n)&&((o=D(this,mn))==null||o.push([l,t,"delete"]))),D(this,sn).delete(t),D(this,Ft)[s]=void 0,D(this,st)[s]=void 0,s===D(this,cn)?Ge(this,cn,D(this,Bn)[s]):s===D(this,Cn)?Ge(this,Cn,D(this,xn)[s]):(D(this,xn)[D(this,Bn)[s]]=D(this,xn)[s],D(this,Bn)[D(this,xn)[s]]=D(this,Bn)[s]),Fs(this,an)._--,D(this,dr).push(s);}}if(D(this,_n)&&((i=D(this,mn))!=null&&i.length)){const s=D(this,mn);let l;for(;l=s==null?void 0:s.shift();)(a=D(this,cr))==null||a.call(this,...l);}return n}clear(){var t,n,r;for(const o of ke(this,Ir,fo).call(this,{allowStale:!0})){const i=D(this,st)[o];if(ke(this,jt,Vt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=D(this,Ft)[o];D(this,Er)&&((t=D(this,xr))==null||t.call(this,i,a,"delete")),D(this,_n)&&((n=D(this,mn))==null||n.push([i,a,"delete"]));}}if(D(this,sn).clear(),D(this,st).fill(void 0),D(this,Ft).fill(void 0),D(this,fr)&&D(this,Xr)&&(D(this,fr).fill(0),D(this,Xr).fill(0)),D(this,Ur)&&D(this,Ur).fill(0),Ge(this,Cn,0),Ge(this,cn,0),D(this,dr).length=0,Ge(this,ur,0),Ge(this,an,0),D(this,_n)&&D(this,mn)){const o=D(this,mn);let i;for(;i=o==null?void 0:o.shift();)(r=D(this,cr))==null||r.call(this,...i);}}};let cf=ph;lr=new WeakMap,Hn=new WeakMap,xr=new WeakMap,cr=new WeakMap,Li=new WeakMap,an=new WeakMap,ur=new WeakMap,sn=new WeakMap,Ft=new WeakMap,st=new WeakMap,xn=new WeakMap,Bn=new WeakMap,Cn=new WeakMap,cn=new WeakMap,dr=new WeakMap,mn=new WeakMap,Ur=new WeakMap,Xr=new WeakMap,fr=new WeakMap,Er=new WeakMap,vo=new WeakMap,_n=new WeakMap,fs=new WeakSet,uf=function(){const t=new Cl(D(this,lr)),n=new Cl(D(this,lr));Ge(this,fr,t),Ge(this,Xr,n),Ge(this,ms,(i,a,s=Ia.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{D(this,Fn).call(this,i)&&this.delete(D(this,Ft)[i]);},a+1);l.unref&&l.unref();}}),Ge(this,Ho,i=>{n[i]=t[i]!==0?Ia.now():0;}),Ge(this,Yr,(i,a)=>{if(t[a]){const s=t[a],l=n[a];i.ttl=s,i.start=l,i.now=r||o();const c=i.now-l;i.remainingTTL=s-c;}});let r=0;const o=()=>{const i=Ia.now();if(this.ttlResolution>0){r=i;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref();}return i};this.getRemainingTTL=i=>{const a=D(this,sn).get(i);if(a===void 0)return 0;const s=t[a],l=n[a];if(s===0||l===0)return 1/0;const c=(r||o())-l;return s-c},Ge(this,Fn,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},Ho=new WeakMap,Yr=new WeakMap,ms=new WeakMap,Fn=new WeakMap,fc=new WeakSet,fC=function(){const t=new Cl(D(this,lr));Ge(this,ur,0),Ge(this,Ur,t),Ge(this,Bo,n=>{Ge(this,ur,D(this,ur)-t[n]),t[n]=0;}),Ge(this,hs,(n,r,o,i)=>{if(ke(this,jt,Vt).call(this,r))return 0;if(!co(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!co(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ge(this,zi,(n,r,o)=>{if(t[n]=r,D(this,Hn)){const i=D(this,Hn)-t[n];for(;D(this,ur)>i;)ke(this,ji,wl).call(this,!0);}Ge(this,ur,D(this,ur)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=D(this,ur));});},Bo=new WeakMap,zi=new WeakMap,hs=new WeakMap,Or=new WeakSet,uo=function*({allowStale:t=this.allowStale}={}){if(D(this,an))for(let n=D(this,cn);!(!ke(this,vs,df).call(this,n)||((t||!D(this,Fn).call(this,n))&&(yield n),n===D(this,Cn)));)n=D(this,Bn)[n];},Ir=new WeakSet,fo=function*({allowStale:t=this.allowStale}={}){if(D(this,an))for(let n=D(this,Cn);!(!ke(this,vs,df).call(this,n)||((t||!D(this,Fn).call(this,n))&&(yield n),n===D(this,cn)));)n=D(this,xn)[n];},vs=new WeakSet,df=function(t){return t!==void 0&&D(this,sn).get(D(this,Ft)[t])===t},ji=new WeakSet,wl=function(t){var i,a;const n=D(this,Cn),r=D(this,Ft)[n],o=D(this,st)[n];return D(this,vo)&&ke(this,jt,Vt).call(this,o)?o.__abortController.abort(new Error("evicted")):(D(this,Er)||D(this,_n))&&(D(this,Er)&&((i=D(this,xr))==null||i.call(this,o,r,"evict")),D(this,_n)&&((a=D(this,mn))==null||a.push([o,r,"evict"]))),D(this,Bo).call(this,n),t&&(D(this,Ft)[n]=void 0,D(this,st)[n]=void 0,D(this,dr).push(n)),D(this,an)===1?(Ge(this,Cn,Ge(this,cn,0)),D(this,dr).length=0):Ge(this,Cn,D(this,xn)[n]),D(this,sn).delete(r),Fs(this,an)._--,n},Hi=new WeakSet,$l=function(t,n,r,o){const i=n===void 0?void 0:D(this,st)[n];if(ke(this,jt,Vt).call(this,i))return i;const a=new tc,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:o},c=(g,p=!1)=>{const{aborted:b}=a.signal,C=r.ignoreFetchAbort&&g!==void 0;if(r.status&&(b&&!p?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,C&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!C&&!p)return d(a.signal.reason);const $=h;return D(this,st)[n]===h&&(g===void 0?$.__staleWhileFetching?D(this,st)[n]=$.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,g,l.options))),g},f=g=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=g),d(g)),d=g=>{const{aborted:p}=a.signal,b=p&&r.allowStaleOnFetchAbort,C=b||r.allowStaleOnFetchRejection,$=C||r.noDeleteOnFetchRejection,x=h;if(D(this,st)[n]===h&&(!$||x.__staleWhileFetching===void 0?this.delete(t):b||(D(this,st)[n]=x.__staleWhileFetching)),C)return r.status&&x.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw g},m=(g,p)=>{var C;const b=(C=D(this,Li))==null?void 0:C.call(this,t,i,l);b&&b instanceof Promise&&b.then($=>g($),p),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(g(),r.allowStaleOnFetchAbort&&(g=$=>c($,!0)));});};r.status&&(r.status.fetchDispatched=!0);const h=new Promise(m).then(c,f),v=Object.assign(h,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return n===void 0?(this.set(t,v,{...l.options,status:void 0}),n=D(this,sn).get(t)):D(this,st)[n]=v,v},jt=new WeakSet,Vt=function(t){if(!D(this,vo))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof tc},gs=new WeakSet,ff=function(t,n){D(this,Bn)[n]=t,D(this,xn)[t]=n;},Fo=new WeakSet,Na=function(t){t!==D(this,cn)&&(t===D(this,Cn)?Ge(this,Cn,D(this,xn)[t]):ke(this,gs,ff).call(this,D(this,Bn)[t],D(this,xn)[t]),ke(this,gs,ff).call(this,D(this,cn),t),Ge(this,cn,t));};async function DD(e){return (await va.get("/pvideo",{params:{aid:e}})).data.data}async function LD(e){return []}const ld=new cf({max:200});async function zD(e){if(ld.has(e))return ld.get(e);const[t,n]=await Promise.all([DD(e),LD()]);return ld.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function mC(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",ND());const i=(await va.post("/x/v2/history/toview/"+e,r,{withCredentials:!0})).data,a=(i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0";return a||tn((i==null?void 0:i.message)||"出错了"),a}}const nl=mC("add"),bg=mC("del"),hC=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await su.get(aC+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0"}},jD=hC("dislike"),HD=hC("cancel"),BD="_modal_1rloz_1",FD="_title-desc_1rloz_4",WD="_reason-list_1rloz_8",VD="_reason_1rloz_8",GD="_active_1rloz_29",KD="_reason-no_1rloz_33",UD="_tips-container_1rloz_47",XD="_tips_1rloz_47",Jn={modal:BD,titleDesc:FD,reasonList:WD,reason:VD,active:GD,reasonNo:KD,tipsContainer:UD,tips:XD},lu=_D();function YD(){return $o(lu)}function qD(e){const t=YD();if(e)return t.get(e)}function ZD({show:e,onHide:t,item:n}){const[r,o]=u.useState(!1),i=pt(async v=>{if(!n)return;let g=!1,p;try{o(!0),g=await jD(n,v.id);}catch(b){p=b;}finally{o(!1);}if(p)return console.error(p.stack||p),rC();g?tn("已标记不想看"):oC(),g&&(lu.set(n.param,{...v}),t());}),a=u.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"];en(l,v=>{if(!s()||!l.includes(v.key))return;const g=Number(v.key)-1;f(g);const p=document.querySelectorAll(`.${Jn.reason}`)[g]||null;p==null||p.click();});const[c,f]=u.useState(a.length-1);vD(()=>{f(a.length-1);},[a]);const d=v=>()=>{if(!s())return;const g=c+v;g<0||g>a.length-1||f(g);};en("leftarrow",d(-1)),en("rightarrow",d(1)),en("uparrow",d(-2)),en("downarrow",d(2)),en("enter",v=>{var g;s()&&(c<0||c>a.length-1||(v.preventDefault(),v.stopImmediatePropagation(),(g=document.querySelector(`.${Jn.reason}.${Jn.active}`))==null||g.click()));});const m=u.useMemo(()=>{var v;return ((v=a[c])==null?void 0:v.name)||""},[a,c]),{colorPrimary:h}=ma();return ge(Km,{show:e,onHide:t,clsModal:Jn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ge("div",{className:Ar.modalHeader,children:[ge("div",{className:Ar.modalTitle,children:["我不想看",H("span",{className:Jn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),H("div",{className:"space",style:{flex:1}}),H(Um,{onClick:t})]}),ge("div",{className:Ar.modalBody,children:[H("div",{className:Jn.reasonList,children:a.map((v,g)=>ge("button",{className:V(Jn.reason,{[Jn.active]:g===c}),style:{...g===c&&{borderColor:h}},"data-id":v.id,onClick:()=>{f(g),i(v);},disabled:r,children:[H("span",{className:Jn.reasonNo,style:{backgroundColor:h},children:g+1}),v.name]},v.id))}),ge("div",{className:Jn.tipsContainer,children:[ge("div",{className:Jn.tips,children:[H(gr,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),m&&ge("div",{className:Jn.tips,children:[H(gr,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const xl={show:!1,onHide:gC,item:null},vC=ti({value:xl.show}),QD=function(){return $o(vC).value};function gC(){setTimeout(()=>{pC({show:!1,item:null});});}function pC(e){Object.assign(xl,e),vC.value=xl.show,JD().render(H(ZD,{...xl,onHide:gC}));}let cd;function JD(){if(!cd){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),cd=nu(e);}return cd}function eL(e){e!=null&&e.param&&lu.has(e.param)||pC({show:!0,item:e});}const bC=u__namespace.createContext(null),tL=bC.Provider,yC=u__namespace.createContext(null),nL=yC.Provider,rL=new Rt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),oL=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Kt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},iL=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:f,lineWidth:d,dotSize:m,colorBgContainerDisabled:h,colorTextDisabled:v,paddingXS:g,dotColorDisabled:p,lineType:b,radioDotDisabledSize:C,wireframe:$,colorWhite:x}=e,y=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Kt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:rL,animationDuration:i,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Kt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Es(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:$?r:x,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:f,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:$?c:r,"&::after":{transform:`scale(${m/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:h,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${C/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},aL=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:f,buttonBg:d,fontSizeLG:m,controlHeightLG:h,controlHeightSM:v,paddingXS:g,borderRadius:p,borderRadiusSM:b,borderRadiusLG:C,buttonCheckedBg:$,buttonSolidCheckedColor:x,colorTextDisabled:y,colorBgContainerDisabled:S,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:I,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:N}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:f,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${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:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${r}-group-small &`]:{height:v,paddingInline:g-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Es(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:E,background:$,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:E,borderColor:E,"&:hover":{color:x,background:O,borderColor:O},"&:active":{color:x,background:N,borderColor:N}},"&-disabled":{color:y,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:y,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:w,borderColor:a,boxShadow:"none"}}}},yg=e=>e-4*2,CC=on("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=yg(r),s=$t(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [oL(s),iL(s),aL(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:f}=e,d=4,m=i,h=t?yg(m):m-(d+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:f,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var sL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lL=(e,t)=>{var n,r;const o=u__namespace.useContext(bC),i=u__namespace.useContext(yC),{getPrefixCls:a,direction:s}=u__namespace.useContext(lt),l=u__namespace.useRef(null),c=Mn(t,l),{isFormItemInput:f}=u__namespace.useContext(Dr),d=E=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,E),(N=o==null?void 0:o.onChange)===null||N===void 0||N.call(o,E);},{prefixCls:m,className:h,rootClassName:v,children:g,style:p}=e,b=sL(e,["prefixCls","className","rootClassName","children","style"]),C=a("radio",m),$=((o==null?void 0:o.optionType)||i)==="button"?`${C}-button`:C,[x,y]=CC(C),S=Object.assign({},b),w=u__namespace.useContext(Eo);o&&(S.name=o.name,S.onChange=d,S.checked=e.value===o.value,S.disabled=(n=S.disabled)!==null&&n!==void 0?n:o.disabled),S.disabled=(r=S.disabled)!==null&&r!==void 0?r:w;const I=V(`${$}-wrapper`,{[`${$}-wrapper-checked`]:S.checked,[`${$}-wrapper-disabled`]:S.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f},h,v,y);return x(u__namespace.createElement("label",{className:I,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},u__namespace.createElement(Ey,Object.assign({},S,{type:"radio",prefixCls:$,ref:c})),g!==void 0?u__namespace.createElement("span",null,g):null))},cL=u__namespace.forwardRef(lL),nc=cL,uL=u__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u__namespace.useContext(lt),[o,i]=Zt(e.defaultValue,{value:e.value}),a=R=>{const P=o,_=R.target.value;"value"in e||i(_);const{onChange:T}=e;T&&_!==P&&T(R);},{prefixCls:s,className:l,rootClassName:c,options:f,buttonStyle:d="outline",disabled:m,children:h,size:v,style:g,id:p,onMouseEnter:b,onMouseLeave:C,onFocus:$,onBlur:x}=e,y=n("radio",s),S=`${y}-group`,[w,I]=CC(y);let E=h;f&&f.length>0&&(E=f.map(R=>typeof R=="string"||typeof R=="number"?u__namespace.createElement(nc,{key:R.toString(),prefixCls:y,disabled:m,value:R,checked:o===R},R):u__namespace.createElement(nc,{key:`radio-group-value-options-${R.value}`,prefixCls:y,disabled:R.disabled||m,value:R.value,checked:o===R.value,title:R.title,style:R.style},R.label)));const O=yr(v),N=V(S,`${S}-${d}`,{[`${S}-${O}`]:O,[`${S}-rtl`]:r==="rtl"},l,c,I);return w(u__namespace.createElement("div",Object.assign({},is(e,{aria:!0,data:!0}),{className:N,style:g,onMouseEnter:b,onMouseLeave:C,onFocus:$,onBlur:x,id:p,ref:t}),u__namespace.createElement(tL,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},E)))}),dL=u__namespace.memo(uL);var fL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mL=(e,t)=>{const{getPrefixCls:n}=u__namespace.useContext(lt),{prefixCls:r}=e,o=fL(e,["prefixCls"]),i=n("radio",r);return u__namespace.createElement(nL,{value:"button"},u__namespace.createElement(nc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},hL=u__namespace.forwardRef(mL),cu=nc;cu.Button=hL;cu.Group=dL;cu.__ANT_RADIO=!0;const Cg=cu,vL={name:"asqtts",styles:"margin-right:4px;vertical-align:middle;margin-top:-2px"},gL={name:"18tea8a",styles:"margin-right:4px;margin-top:-4px;vertical-align:middle"},rc=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"onlyFollow",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic",icon:"Tumblr",iconSize:16,label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconSize:15,label:"稍后再看",desc:"默认随机乱序, 可在设置-高级设置中关闭乱序",swr:!0}],Sg=rc.reduce((e,t)=>({...e,[t.key]:t}),{}),pL=rc.map(e=>e.key);function SC(e,t){return pL.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function uu(){return SC(Kn().videoSourceTab,lC())}function bL(){return SC(wt.videoSourceTab,Xm())}function yL(){return tn("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const CL={name:"1scmkf3",styles:"height:26px;line-height:26px;&:has(:focus-visible){outline:none;outline-offset:unset;}"},SL={name:"sd1tqo",styles:"height:32px;line-height:32px"};function wC({onRefresh:e}){const t=lC(),n=uu(),{styleUseStandardVideoSourceTab:r}=Kn();return ge(Lt,{children:[H(Cg.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:o=>{o.target.blur();},onChange:o=>{const i=o.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!AD())return yL();qo({videoSourceTab:i}),setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:rc.map(({key:o,label:i,icon:a,iconSize:s})=>ge(Cg.Button,{css:[CL,r&&SL,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:[H(gr,{name:a,size:s||18,css:vL}),i]},o))}),H(Zl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:H(Lt,{children:rc.map(({key:o,label:i,icon:a,iconSize:s,desc:l})=>ge(u.Fragment,{children:[H(gr,{name:a,size:s||18,css:gL}),i,": ",l,H("br",{})]},o))})})]})}var wL=ee.ESC,$L=ee.TAB;function xL(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u__namespace.useRef(!1),s=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case wL:s();break;case $L:{var m=!1;a.current||(m=l()),m?d.preventDefault():s();break}}};u__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Mt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var EL=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Mn(t,i==null?void 0:i.ref);return u.createElement(u.Fragment,null,r&&u.createElement("div",{className:"".concat(o,"-arrow")}),u.cloneElement(i,{ref:ni(i)?a:void 0}))}),pi={adjustX:1,adjustY:1},bi=[0,0],OL={topLeft:{points:["bl","tl"],overflow:pi,offset:[0,-4],targetOffset:bi},top:{points:["bc","tc"],overflow:pi,offset:[0,-4],targetOffset:bi},topRight:{points:["br","tr"],overflow:pi,offset:[0,-4],targetOffset:bi},bottomLeft:{points:["tl","bl"],overflow:pi,offset:[0,4],targetOffset:bi},bottom:{points:["tc","bc"],overflow:pi,offset:[0,4],targetOffset:bi},bottomRight:{points:["tr","br"],overflow:pi,offset:[0,4],targetOffset:bi}},IL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _L(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,m=e.placements,h=m===void 0?OL:m,v=e.getPopupContainer,g=e.showAction,p=e.hideAction,b=e.overlayClassName,C=e.overlayStyle,$=e.visible,x=e.trigger,y=x===void 0?["hover"]:x,S=e.autoFocus,w=e.overlay,I=e.children,E=e.onVisibleChange,O=Je(e,IL),N=u.useState(),R=U(N,2),P=R[0],_=R[1],T="visible"in e?$:P,A=u.useRef(null),M=u.useRef(null),k=u.useRef(null);u.useImperativeHandle(t,function(){return A.current});var z=function(Y){_(Y),E==null||E(Y);};xL({visible:T,triggerRef:k,onVisibleChange:z,autoFocus:S,overlayRef:M});var B=function(Y){var J=e.onOverlayClick;_(!1),J&&J(Y);},W=function(){return u.createElement(EL,{ref:M,overlay:w,prefixCls:a,arrow:o})},j=function(){return typeof w=="function"?W:W()},G=function(){var Y=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!J},F=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},K=u.cloneElement(I,{className:V((n=I.props)===null||n===void 0?void 0:n.className,T&&F()),ref:ni(I)?Mn(k,I.ref):void 0}),re=p;return !re&&y.indexOf("contextMenu")!==-1&&(re=["click"]),u.createElement(Dc,ye({builtinPlacements:h},O,{prefixCls:a,ref:A,popupClassName:V(b,q({},"".concat(a,"-show-arrow"),o)),popupStyle:C,action:y,showAction:g,hideAction:re,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:G()?"minWidth":"",popup:j(),onPopupVisibleChange:z,onPopupClick:B,getPopupContainer:v}),K)}const $C=u.forwardRef(_L);var xC=u__namespace.createContext(null);function Ym(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function EC(e){var t=u__namespace.useContext(xC);return Ym(t,e)}var PL=["children","locked"],pr=u__namespace.createContext(null);function RL(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 us(e){var t=e.children,n=e.locked,r=Je(e,PL),o=u__namespace.useContext(pr),i=Cs(function(){return RL(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!zc(a[1],s[1],!0))});return u__namespace.createElement(pr.Provider,{value:i},t)}var TL=[],OC=u__namespace.createContext(null);function du(){return u__namespace.useContext(OC)}var IC=u__namespace.createContext(TL);function ga(e){var t=u__namespace.useContext(IC);return u__namespace.useMemo(function(){return e!==void 0?[].concat(qe(t),[e]):t},[t,e])}var _C=u__namespace.createContext(null),qm=u__namespace.createContext({});function wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Zf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function ML(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=qe(e.querySelectorAll("*")).filter(function(r){return wg(r,t)});return wg(e,t)&&n.unshift(e),n}var mf=ee.LEFT,hf=ee.RIGHT,vf=ee.UP,El=ee.DOWN,Ol=ee.ENTER,PC=ee.ESC,_a=ee.HOME,Pa=ee.END,$g=[vf,El,mf,hf];function NL(e,t,n,r){var o,i,a,s,l="prev",c="next",f="children",d="parent";if(e==="inline"&&r===Ol)return {inlineTrigger:!0};var m=(o={},q(o,vf,l),q(o,El,c),o),h=(i={},q(i,mf,n?c:l),q(i,hf,n?l:c),q(i,El,f),q(i,Ol,f),i),v=(a={},q(a,vf,l),q(a,El,c),q(a,Ol,f),q(a,PC,d),q(a,mf,n?f:d),q(a,hf,n?d:f),a),g={inline:m,horizontal:h,vertical:v,inlineSub:m,horizontalSub:v,verticalSub:v},p=(s=g["".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 f:return {offset:1,sibling:!1};default:return null}}function AL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function kL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function RC(e,t){var n=ML(e,!0);return n.filter(function(r){return t.has(r)})}function xg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=RC(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function DL(e,t,n,r,o,i,a,s,l,c){var f=u__namespace.useRef(),d=u__namespace.useRef();d.current=t;var m=function(){Mt.cancel(f.current);};return u__namespace.useEffect(function(){return function(){m();}},[]),function(h){var v=h.which;if([].concat($g,[Ol,PC,_a,Pa]).includes(v)){var g,p,b,C=function(){g=new Set,p=new Map,b=new Map;var T=i();return T.forEach(function(A){var M=document.querySelector("[data-menu-id='".concat(Ym(r,A),"']"));M&&(g.add(M),b.set(M,A),p.set(A,M));}),g};C();var $=p.get(t),x=kL($,g),y=b.get(x),S=NL(e,a(y,!0).length===1,n,v);if(!S&&v!==_a&&v!==Pa)return;($g.includes(v)||[_a,Pa].includes(v))&&h.preventDefault();var w=function(T){if(T){var A=T,M=T.querySelector("a");M!=null&&M.getAttribute("href")&&(A=M);var k=b.get(T);s(k),m(),f.current=Mt(function(){d.current===k&&A.focus();});}};if([_a,Pa].includes(v)||S.sibling||!x){var I;!x||e==="inline"?I=o.current:I=AL(x);var E,O=RC(I,g);v===_a?E=O[0]:v===Pa?E=O[O.length-1]:E=xg(I,g,x,S.offset),w(E);}else if(S.inlineTrigger)l(y);else if(S.offset>0)l(y,!0),m(),f.current=Mt(function(){C();var _=x.getAttribute("aria-controls"),T=document.getElementById(_),A=xg(T,g);w(A);},5);else if(S.offset<0){var N=a(y,!0),R=N[N.length-2],P=p.get(R);l(R,!1),w(P);}}c==null||c(h);}}function LL(e){Promise.resolve().then(e);}var Zm="__RC_UTIL_PATH_SPLIT__",Eg=function(t){return t.join(Zm)},zL=function(t){return t.split(Zm)},gf="rc-menu-more";function jL(){var e=u__namespace.useState({}),t=U(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u__namespace.useState([]),a=U(i,2),s=a[0],l=a[1],c=u.useRef(0),f=u.useRef(!1),d=function(){f.current||n({});},m=u.useCallback(function($,x){var y=Eg(x);o.current.set(y,$),r.current.set($,y),c.current+=1;var S=c.current;LL(function(){S===c.current&&d();});},[]),h=u.useCallback(function($,x){var y=Eg(x);o.current.delete(y),r.current.delete($);},[]),v=u.useCallback(function($){l($);},[]),g=u.useCallback(function($,x){var y=r.current.get($)||"",S=zL(y);return x&&s.includes(S[0])&&S.unshift(gf),S},[s]),p=u.useCallback(function($,x){return $.some(function(y){var S=g(y,!0);return S.includes(x)})},[g]),b=function(){var x=qe(r.current.keys());return s.length&&x.push(gf),x},C=u.useCallback(function($){var x="".concat(r.current.get($)).concat(Zm),y=new Set;return qe(o.current.keys()).forEach(function(S){S.startsWith(x)&&y.add(o.current.get(S));}),y},[]);return u__namespace.useEffect(function(){return function(){f.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:C}}function Aa(e){var t=u__namespace.useRef(e);t.current=e;var n=u__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var HL=Math.random().toFixed(5).toString().slice(2),Og=0;function BL(e){var t=Zt(e,{value:e}),n=U(t,2),r=n[0],o=n[1];return u__namespace.useEffect(function(){Og+=1;var i="".concat(HL,"-").concat(Og);o("rc-menu-uuid-".concat(i));},[]),r}function TC(e,t,n,r){var o=u__namespace.useContext(pr),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function MC(e){var t=u__namespace.useContext(pr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function NC(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=u__namespace.createElement(t,X({},n)):o=t,o||r||null}var FL=["item"];function oc(e){var t=e.item,n=Je(e,FL);return Object.defineProperty(n,"item",{get:function(){return zr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var WL=["title","attribute","elementRef"],VL=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],GL=["active"],KL=function(e){sa(n,e);var t=la(n);function n(){return Nn(this,n),t.apply(this,arguments)}return An(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Je(o,WL),c=On(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return zr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u__namespace.createElement(Mr.Item,ye({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(u__namespace.Component),UL=u__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,f=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Je(e,VL),p=EC(i),b=u__namespace.useContext(pr),C=b.prefixCls,$=b.onItemClick,x=b.disabled,y=b.overflowDisabled,S=b.itemIcon,w=b.selectedKeys,I=b.onActive,E=u__namespace.useContext(qm),O=E._internalRenderMenuItem,N="".concat(C,"-item"),R=u__namespace.useRef(),P=u__namespace.useRef(),_=x||a,T=Ss(t,P),A=ga(i),M=function(ie){return {key:i,keyPath:qe(A).reverse(),item:R.current,domEvent:ie}},k=s||S,z=TC(i,_,f,d),B=z.active,W=Je(z,GL),j=w.includes(i),G=MC(A.length),F=function(ie){if(!_){var ae=M(ie);m==null||m(oc(ae)),$(ae);}},K=function(ie){if(h==null||h(ie),ie.which===ee.ENTER){var ae=M(ie);m==null||m(oc(ae)),$(ae);}},re=function(ie){I(i),v==null||v(ie);},Z={};e.role==="option"&&(Z["aria-selected"]=j);var Y=u__namespace.createElement(KL,ye({ref:R,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":y&&p?null:p},g,W,Z,{component:"li","aria-disabled":a,style:X(X({},G),r),className:V(N,(n={},q(n,"".concat(N,"-active"),B),q(n,"".concat(N,"-selected"),j),q(n,"".concat(N,"-disabled"),_),n),o),onClick:F,onKeyDown:K,onFocus:re}),l,u__namespace.createElement(NC,{props:X(X({},e),{},{isSelected:j}),icon:k}));return O&&(Y=O(Y,e,{selected:j})),Y});function XL(e,t){var n=e.eventKey,r=du(),o=ga(n);return u__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:u__namespace.createElement(UL,ye({},e,{ref:t}))}const ks=u__namespace.forwardRef(XL);var YL=["className","children"],qL=function(t,n){var r=t.className,o=t.children,i=Je(t,YL),a=u__namespace.useContext(pr),s=a.prefixCls,l=a.mode,c=a.rtl;return u__namespace.createElement("ul",ye({className:V(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Qm=u__namespace.forwardRef(qL);Qm.displayName="SubMenuList";var ZL=["label","children","key","type"];function Jm(e,t){return vr(e).map(function(n,r){if(u__namespace.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(qe(t),[r]).join("-")));var c={key:s,eventKey:s};return u__namespace.cloneElement(n,c)}return n})}function pf(e){return (e||[]).map(function(t,n){if(t&&ft(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=Je(r,ZL),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?u__namespace.createElement(mu,ye({key:c},l,{title:o}),pf(i)):u__namespace.createElement(fu,ye({key:c},l,{title:o}),pf(i)):s==="divider"?u__namespace.createElement(eh,ye({key:c},l)):u__namespace.createElement(ks,ye({key:c},l),o)}return null}).filter(function(t){return t})}function QL(e,t,n){var r=e;return t&&(r=pf(t)),Jm(r,n)}var Sn={adjustX:1,adjustY:1},JL={topLeft:{points:["bl","tl"],overflow:Sn},topRight:{points:["br","tr"],overflow:Sn},bottomLeft:{points:["tl","bl"],overflow:Sn},bottomRight:{points:["tr","br"],overflow:Sn},leftTop:{points:["tr","tl"],overflow:Sn},leftBottom:{points:["br","bl"],overflow:Sn},rightTop:{points:["tl","tr"],overflow:Sn},rightBottom:{points:["bl","br"],overflow:Sn}},e5={topLeft:{points:["bl","tl"],overflow:Sn},topRight:{points:["br","tr"],overflow:Sn},bottomLeft:{points:["tl","bl"],overflow:Sn},bottomRight:{points:["tr","br"],overflow:Sn},rightTop:{points:["tr","tl"],overflow:Sn},rightBottom:{points:["br","bl"],overflow:Sn},leftTop:{points:["tl","tr"],overflow:Sn},leftBottom:{points:["bl","br"],overflow:Sn}};function AC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var t5={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n5(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,f=u__namespace.useContext(pr),d=f.getPopupContainer,m=f.rtl,h=f.subMenuOpenDelay,v=f.subMenuCloseDelay,g=f.builtinPlacements,p=f.triggerSubMenuAction,b=f.forceSubMenuRender,C=f.rootClassName,$=f.motion,x=f.defaultMotions,y=u__namespace.useState(!1),S=U(y,2),w=S[0],I=S[1],E=X(m?X({},e5):X({},JL),g),O=t5[l],N=AC(l,$,x),R=u__namespace.useRef(N);l!=="inline"&&(R.current=N);var P=X(X({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=u__namespace.useRef();return u__namespace.useEffect(function(){return _.current=Mt(function(){I(n);}),function(){Mt.cancel(_.current);}},[n]),u__namespace.createElement(Dc,{prefixCls:t,popupClassName:V("".concat(t,"-popup"),q({},"".concat(t,"-rtl"),m),i,C),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:E,popupPlacement:O,popupVisible:w,popup:o,popupAlign:a&&{offset:a},action:s?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:c,forceRender:b,popupMotion:P},r)}function r5(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=u__namespace.useContext(pr),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,f=a.defaultMotions,d=a.mode,m=u__namespace.useRef(!1);m.current=d===i;var h=u__namespace.useState(!m.current),v=U(h,2),g=v[0],p=v[1],b=m.current?n:!1;u__namespace.useEffect(function(){m.current&&p(!1);},[d]);var C=X({},AC(i,c,f));r.length>1&&(C.motionAppear=!1);var $=C.onVisibleChanged;return C.onVisibleChanged=function(x){return !m.current&&!x&&p(!0),$==null?void 0:$(x)},g?null:u__namespace.createElement(us,{mode:i,locked:!m.current},u__namespace.createElement(xo,ye({visible:b},C,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var y=x.className,S=x.style;return u__namespace.createElement(Qm,{id:t,className:y,style:S},o)}))}var o5=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],i5=["active"],a5=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,f=t.itemIcon,d=t.expandIcon,m=t.popupClassName,h=t.popupOffset,v=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,C=t.onTitleMouseEnter,$=t.onTitleMouseLeave,x=Je(t,o5),y=EC(a),S=u__namespace.useContext(pr),w=S.prefixCls,I=S.mode,E=S.openKeys,O=S.disabled,N=S.overflowDisabled,R=S.activeKey,P=S.selectedKeys,_=S.itemIcon,T=S.expandIcon,A=S.onItemClick,M=S.onOpenChange,k=S.onActive,z=u__namespace.useContext(qm),B=z._internalRenderSubMenuItem,W=u__namespace.useContext(_C),j=W.isSubPathKey,G=ga(),F="".concat(w,"-submenu"),K=O||s,re=u__namespace.useRef(),Z=u__namespace.useRef(),Y=f||_,J=d||T,ie=E.includes(a),ae=!N&&ie,de=j(P,a),Q=TC(a,K,C,$),ne=Q.active,ce=Je(Q,i5),se=u__namespace.useState(!1),me=U(se,2),oe=me[0],he=me[1],ue=function($e){K||he($e);},fe=function($e){ue(!0),g==null||g({key:a,domEvent:$e});},_e=function($e){ue(!1),p==null||p({key:a,domEvent:$e});},et=u__namespace.useMemo(function(){return ne||(I!=="inline"?oe||j([R],a):!1)},[I,ne,R,oe,a,j]),Ue=MC(G.length),De=function($e){K||(b==null||b({key:a,domEvent:$e}),I==="inline"&&M(a,!ie));},Qe=Aa(function(pe){v==null||v(oc(pe)),A(pe);}),it=function($e){I!=="inline"&&M(a,$e);},Ze=function(){k(a);},Ve=y&&"".concat(y,"-popup"),Re=u__namespace.createElement("div",ye({role:"menuitem",style:Ue,className:"".concat(F,"-title"),tabIndex:K?null:-1,ref:re,title:typeof i=="string"?i:null,"data-menu-id":N&&y?null:y,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ve,"aria-disabled":K,onClick:De,onFocus:Ze},ce),i,u__namespace.createElement(NC,{icon:I!=="horizontal"?J:null,props:X(X({},t),{},{isOpen:ae,isSubMenu:!0})},u__namespace.createElement("i",{className:"".concat(F,"-arrow")}))),be=u__namespace.useRef(I);if(I!=="inline"&&G.length>1?be.current="vertical":be.current=I,!N){var je=be.current;Re=u__namespace.createElement(n5,{mode:je,prefixCls:F,visible:!l&&ae&&I!=="inline",popupClassName:m,popupOffset:h,popup:u__namespace.createElement(us,{mode:je==="horizontal"?"vertical":je},u__namespace.createElement(Qm,{id:Ve,ref:Z},c)),disabled:K,onVisibleChange:it},Re);}var He=u__namespace.createElement(Mr.Item,ye({role:"none"},x,{component:"li",style:r,className:V(F,"".concat(F,"-").concat(I),o,(n={},q(n,"".concat(F,"-open"),ae),q(n,"".concat(F,"-active"),et),q(n,"".concat(F,"-selected"),de),q(n,"".concat(F,"-disabled"),K),n)),onMouseEnter:fe,onMouseLeave:_e}),Re,!N&&u__namespace.createElement(r5,{id:Ve,open:ae,keyPath:G},c));return B&&(He=B(He,t,{selected:de,active:et,open:ae,disabled:K})),u__namespace.createElement(us,{onItemClick:Qe,mode:I==="horizontal"?"vertical":I,itemIcon:Y,expandIcon:J},He)};function fu(e){var t=e.eventKey,n=e.children,r=ga(t),o=Jm(n,r),i=du();u__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=u__namespace.createElement(a5,e,o),u__namespace.createElement(IC.Provider,{value:r},a)}var s5=["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"],yi=[],l5=u__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,f=o.tabIndex,d=f===void 0?0:f,m=o.items,h=o.children,v=o.direction,g=o.id,p=o.mode,b=p===void 0?"vertical":p,C=o.inlineCollapsed,$=o.disabled,x=o.disabledOverflow,y=o.subMenuOpenDelay,S=y===void 0?.1:y,w=o.subMenuCloseDelay,I=w===void 0?.1:w,E=o.forceSubMenuRender,O=o.defaultOpenKeys,N=o.openKeys,R=o.activeKey,P=o.defaultActiveFirst,_=o.selectable,T=_===void 0?!0:_,A=o.multiple,M=A===void 0?!1:A,k=o.defaultSelectedKeys,z=o.selectedKeys,B=o.onSelect,W=o.onDeselect,j=o.inlineIndent,G=j===void 0?24:j,F=o.motion,K=o.defaultMotions,re=o.triggerSubMenuAction,Z=re===void 0?"hover":re,Y=o.builtinPlacements,J=o.itemIcon,ie=o.expandIcon,ae=o.overflowedIndicator,de=ae===void 0?"...":ae,Q=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ce=o.onClick,se=o.onOpenChange,me=o.onKeyDown;o.openAnimation,o.openTransitionName;var oe=o._internalRenderMenuItem,he=o._internalRenderSubMenuItem,ue=Je(o,s5),fe=u__namespace.useMemo(function(){return QL(h,m,yi)},[h,m]),_e=u__namespace.useState(!1),et=U(_e,2),Ue=et[0],De=et[1],Qe=u__namespace.useRef(),it=BL(g),Ze=v==="rtl",Ve=Zt(O,{value:N,postState:function(we){return we||yi}}),Re=U(Ve,2),be=Re[0],je=Re[1],He=function(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rt(){je(we),se==null||se(we);}Se?cp.flushSync(rt):rt();},pe=u__namespace.useState(be),$e=U(pe,2),Xe=$e[0],Fe=$e[1],dt=u__namespace.useRef(!1),Ee=u__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&C?["vertical",C]:[b,!1]},[b,C]),Oe=U(Ee,2),Le=Oe[0],Pe=Oe[1],tt=Le==="inline",St=u__namespace.useState(Le),kt=U(St,2),At=kt[0],Ne=kt[1],ve=u__namespace.useState(Pe),le=U(ve,2),Ce=le[0],xe=le[1];u__namespace.useEffect(function(){Ne(Le),xe(Pe),dt.current&&(tt?je(Xe):He(yi));},[Le,Pe]);var Ye=u__namespace.useState(0),mt=U(Ye,2),bt=mt[0],Ut=mt[1],Bt=bt>=fe.length-1||At!=="horizontal"||x;u__namespace.useEffect(function(){tt&&Fe(be);},[be]),u__namespace.useEffect(function(){return dt.current=!0,function(){dt.current=!1;}},[]);var Ae=jL(),We=Ae.registerPath,Te=Ae.unregisterPath,yt=Ae.refreshOverflowKeys,vt=Ae.isSubPathKey,Qt=Ae.getKeyPath,Me=Ae.getKeys,Be=Ae.getSubPathKeys,ct=u__namespace.useMemo(function(){return {registerPath:We,unregisterPath:Te}},[We,Te]),xt=u__namespace.useMemo(function(){return {isSubPathKey:vt}},[vt]);u__namespace.useEffect(function(){yt(Bt?yi:fe.slice(bt+1).map(function(It){return It.key}));},[bt,Bt]);var Xt=Zt(R||P&&((n=fe[0])===null||n===void 0?void 0:n.key),{value:R}),zt=U(Xt,2),pn=zt[0],In=zt[1],or=Aa(function(It){In(It);}),jr=Aa(function(){In(void 0);});u.useImperativeHandle(t,function(){return {list:Qe.current,focus:function(we){var Se,rt=pn??((Se=fe.find(function(Yt){return !Yt.props.disabled}))===null||Se===void 0?void 0:Se.key);if(rt){var Ct,gt,_t;(Ct=Qe.current)===null||Ct===void 0||(gt=Ct.querySelector("li[data-menu-id='".concat(Ym(it,rt),"']")))===null||gt===void 0||(_t=gt.focus)===null||_t===void 0||_t.call(gt,we);}}}});var Cr=Zt(k||[],{value:z,postState:function(we){return Array.isArray(we)?we:we==null?yi:[we]}}),Yn=U(Cr,2),$n=Yn[0],Hr=Yn[1],Oo=function(we){if(T){var Se=we.key,rt=$n.includes(Se),Ct;M?rt?Ct=$n.filter(function(_t){return _t!==Se}):Ct=[].concat(qe($n),[Se]):Ct=[Se],Hr(Ct);var gt=X(X({},we),{},{selectedKeys:Ct});rt?W==null||W(gt):B==null||B(gt);}!M&&be.length&&At!=="inline"&&He(yi);},Br=Aa(function(It){ce==null||ce(oc(It)),Oo(It);}),Fr=Aa(function(It,we){var Se=be.filter(function(Ct){return Ct!==It});if(we)Se.push(It);else if(At!=="inline"){var rt=Be(It);Se=Se.filter(function(Ct){return !rt.has(Ct)});}zc(be,Se,!0)||He(Se,!0);}),Wr=function(we,Se){var rt=Se??!be.includes(we);Fr(we,rt);},Io=DL(At,pn,Ze,it,Qe,Me,Qt,In,Wr,me);u__namespace.useEffect(function(){De(!0);},[]);var _o=u__namespace.useMemo(function(){return {_internalRenderMenuItem:oe,_internalRenderSubMenuItem:he}},[oe,he]),Po=At!=="horizontal"||x?fe:fe.map(function(It,we){return u__namespace.createElement(us,{key:It.key,overflowDisabled:we>bt},It)}),Vr=u__namespace.createElement(Mr,ye({id:g,ref:Qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ks,className:V(a,"".concat(a,"-root"),"".concat(a,"-").concat(At),c,(r={},q(r,"".concat(a,"-inline-collapsed"),Ce),q(r,"".concat(a,"-rtl"),Ze),r),s),dir:v,style:l,role:"menu",tabIndex:d,data:Po,renderRawItem:function(we){return we},renderRawRest:function(we){var Se=we.length,rt=Se?fe.slice(-Se):null;return u__namespace.createElement(fu,{eventKey:gf,title:de,disabled:Bt,internalPopupClose:Se===0,popupClassName:Q},rt)},maxCount:At!=="horizontal"||x?Mr.INVALIDATE:Mr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(we){Ut(we);},onKeyDown:Io},ue));return u__namespace.createElement(qm.Provider,{value:_o},u__namespace.createElement(xC.Provider,{value:it},u__namespace.createElement(us,{prefixCls:a,rootClassName:s,mode:At,openKeys:be,rtl:Ze,disabled:$,motion:Ue?F:null,defaultMotions:Ue?K:null,activeKey:pn,onActive:or,onInactive:jr,selectedKeys:$n,inlineIndent:G,subMenuOpenDelay:S,subMenuCloseDelay:I,forceSubMenuRender:E,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:ne,itemIcon:J,expandIcon:ie,onItemClick:Br,onOpenChange:Fr},u__namespace.createElement(_C.Provider,{value:xt},Vr),u__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},u__namespace.createElement(OC.Provider,{value:ct},fe)))))}),c5=["className","title","eventKey","children"],u5=["children"],d5=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Je(t,c5),a=u__namespace.useContext(pr),s=a.prefixCls,l="".concat(s,"-item-group");return u__namespace.createElement("li",ye({role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:V(l,n)}),u__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),u__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function mu(e){var t=e.children,n=Je(e,u5),r=ga(n.eventKey),o=Jm(t,r),i=du();return i?o:u__namespace.createElement(d5,On(n,["warnKey"]),o)}function eh(e){var t=e.className,n=e.style,r=u__namespace.useContext(pr),o=r.prefixCls,i=du();return i?null:u__namespace.createElement("li",{className:V("".concat(o,"-item-divider"),t),style:n})}var pa=l5;pa.Item=ks;pa.SubMenu=fu;pa.ItemGroup=mu;pa.Divider=eh;var f5={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 m5=f5;var h5=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:m5}))};const th=u__namespace.forwardRef(h5),v5=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ic=v5;var g5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ac=u__namespace.createContext(null),p5=u__namespace.forwardRef((e,t)=>{const{children:n}=e,r=g5(e,["children"]),o=u__namespace.useContext(ac),i=u__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return u__namespace.createElement(ac.Provider,{value:i},u__namespace.createElement(Ki,null,u__namespace.cloneElement(n,{ref:t})))});var b5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y5=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=b5(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=u__namespace.useContext(lt),a=i("menu",t),s=V({[`${a}-item-divider-dashed`]:!!r},n);return u__namespace.createElement(eh,Object.assign({className:s},o))},kC=y5;const DC=u__namespace.createContext({}),C5=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:f,inlineCollapsed:d}=u__namespace.useContext(ic),m=C=>{const $=u__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Zo(r)&&r.type==="span")&&r&&C&&l&&typeof r=="string"?u__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):$},{siderCollapsed:h}=u__namespace.useContext(DC);let v=i;typeof i>"u"?v=l?r:"":i===!1&&(v="");const g={title:v};!h&&!d&&(g.title=null,g.open=!1);const p=vr(r).length;let b=u__namespace.createElement(ks,Object.assign({},On(e,["title","icon","danger"]),{className:V({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),En(o,{className:V(Zo(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return f||(b=u__namespace.createElement(Os,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},LC=C5,S5=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=u__namespace.useContext(ic),{prefixCls:s,inlineCollapsed:l,theme:c}=a,f=ga();let d;if(!r)d=l&&!f.length&&o&&typeof o=="string"?u__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):u__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=Zo(o)&&o.type==="span";d=u__namespace.createElement(u__namespace.Fragment,null,En(r,{className:V(Zo(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:u__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=u__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return u__namespace.createElement(ic.Provider,{value:m},u__namespace.createElement(fu,Object.assign({},On(e,["icon"]),{title:d,popupClassName:V(s,n,`${s}-${i||c}`)})))},zC=S5;var w5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bf(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=w5(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?u__namespace.createElement(mu,Object.assign({key:c},l,{title:o}),bf(i)):u__namespace.createElement(zC,Object.assign({key:c},l,{title:o}),bf(i)):s==="divider"?u__namespace.createElement(kC,Object.assign({key:c},l)):u__namespace.createElement(LC,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function $5(e){return u__namespace.useMemo(()=>e&&bf(e),[e])}const x5=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline: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"}}}},E5=x5,O5=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})`}}}}},I5=O5,Ig=e=>Object.assign({},Es(e)),_5=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:f,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:v,menuItemPaddingInline:g,motionDurationMid:p,itemHoverColor:b,lineType:C,colorSplit:$,itemDisabledColor:x,dangerItemColor:y,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:I,dangerItemSelectedBg:E,itemHoverBg:O,menuSubMenuBg:N,horizontalItemSelectedColor:R,horizontalItemSelectedBg:P,horizontalItemBorderRadius:_,horizontalItemHoverBg:T}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Ig(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:y,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Ig(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},["&:hover, &-active, &-open"]:{background:T,"&::after":{borderBottomWidth:c,borderBottomColor:R}},["&-selected"]:{color:R,backgroundColor:P,"&::after":{borderBottomWidth:c,borderBottomColor:R}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${C} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&f?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},_g=_5,Pg=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:s}=e,l=o+i+a;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock: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}}},P5=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:f,fontSizeLG:d,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:v}=e,g={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Pg(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Pg(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${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 - ${f}px)`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,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({},Go),{paddingInline:h})}}]},R5=P5,Rg=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:a,iconCls:s,controlHeightSM:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${i}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${a}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ca()),[`&${t}-item-only-child`]:{[`> ${s}, > ${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"}}}},Tg=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},T5=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:c,colorSplit:f,lineWidth:d,zIndexPopup:m,borderRadiusLG:h,subMenuItemBorderRadius:v,menuArrowSize:g,menuArrowOffset:p,lineType:b,menuPanelMaskInset:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},jd()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),jd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:r,lineHeight:s,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Rg(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${C}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:C},[`
&-placement-leftTop,
&-placement-bottomRight,
`]:{transformOrigin:"100% 0"},[`
&-placement-leftBottom,
&-placement-topRight,
`]:{transformOrigin:"100% 100%"},[`
&-placement-rightBottom,
&-placement-topLeft,
`]:{transformOrigin:"0 100%"},[`
&-placement-bottomLeft,
&-placement-rightTop,
`]:{transformOrigin:"0 0"},[`
&-placement-leftTop,
&-placement-leftBottom
`]:{paddingInlineEnd:e.paddingXS},[`
&-placement-rightTop,
&-placement-rightBottom
`]:{paddingInlineStart:e.paddingXS},[`
&-placement-topRight,
&-placement-topLeft
`]:{paddingBottom:e.paddingXS},[`
&-placement-bottomRight,
&-placement-bottomLeft
`]:{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},Rg(e)),Tg(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Tg(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${p})`},"&::after":{transform:`rotate(45deg) translateX(-${p})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${p})`},"&::before":{transform:`rotate(45deg) translateX(${p})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},M5=(e,t)=>on("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return [];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:c,colorTextLightSolid:f,controlHeightLG:d,fontSize:m}=r,h=m/7*5,v=$t(r,{menuItemHeight:d,menuItemPaddingInline:r.margin,menuArrowSize:h,menuHorizontalHeight:d*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),g=new qt(f).setAlpha(.65).toRgbString(),p=$t(v,{itemColor:g,itemHoverColor:f,groupTitleColor:g,itemSelectedColor:f,itemBg:"#001529",subMenuItemBg:"#000c17",itemActiveBg:"transparent",itemSelectedBg:s,activeBarWidth:0,activeBarHeight:0,activeBarBorderWidth:0,itemDisabledColor:new qt(f).setAlpha(.25).toRgbString(),dangerItemColor:l,dangerItemHoverColor:c,dangerItemSelectedColor:f,dangerItemActiveBg:l,dangerItemSelectedBg:l,menuSubMenuBg:"#001529",horizontalItemSelectedColor:f,horizontalItemSelectedBg:s},Object.assign({},i));return [T5(v),E5(v),R5(v),_g(v,"light"),_g(p,"dark"),I5(v),i0(v),wo(v,"slide-up"),wo(v,"slide-down"),Bc(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:f,colorFillAlter:d,colorFillContent:m,lineWidth:h,lineWidthBold:v,controlItemBgActive:g,colorBgTextHover:p}=r;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:f,itemBg:f,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent"}},{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"]]})(e);var N5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A5=u.forwardRef((e,t)=>{var n,r;const o=u__namespace.useContext(ac),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l}=u__namespace.useContext(lt),c=a(),{prefixCls:f,className:d,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:g,siderCollapsed:p,items:b,children:C,rootClassName:$,mode:x,selectable:y,onClick:S,overflowedIndicatorPopupClassName:w}=e,I=N5(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),E=On(I,["collapsedWidth"]),O=$5(b)||C;(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const N=Vn(function(){var j;S==null||S.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i);}),R=i.mode||x,P=y??i.selectable,_=u__namespace.useMemo(()=>p!==void 0?p:g,[g,p]),T={horizontal:{motionName:`${c}-slide-up`},inline:Nb(c),other:{motionName:`${c}-zoom-big`}},A=a("menu",f||i.prefixCls),[M,k]=M5(A,!o),z=V(`${A}-${m}`,d);let B;if(typeof h=="function")B=h;else {const j=h||i.expandIcon;B=En(j,{className:V(`${A}-submenu-expand-icon`,(r=j==null?void 0:j.props)===null||r===void 0?void 0:r.className)});}const W=u__namespace.useMemo(()=>({prefixCls:A,inlineCollapsed:_||!1,direction:l,firstLevel:!0,theme:m,mode:R,disableMenuItemTitleTooltip:v}),[A,_,l,v,m]);return M(u__namespace.createElement(ac.Provider,{value:null},u__namespace.createElement(ic.Provider,{value:W},u__namespace.createElement(pa,Object.assign({getPopupContainer:s,overflowedIndicator:u__namespace.createElement(th,null),overflowedIndicatorPopupClassName:V(A,`${A}-${m}`,w),mode:R,selectable:P,onClick:N},E,{inlineCollapsed:_,className:z,prefixCls:A,direction:l,defaultMotions:T,expandIcon:B,ref:t,rootClassName:V($,k)}),O))))}),k5=A5,Ds=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u__namespace.useContext(DC);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),u__namespace.createElement(k5,Object.assign({ref:n},e,r))});Ds.Item=LC;Ds.SubMenu=zC;Ds.Divider=kC;Ds.ItemGroup=mu;const D5=Ds,L5=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},z5=L5,j5=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:f,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:g}=e;return [{[t]:Object.assign(Object.assign({},Kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},[`
&-hidden,
&-menu-hidden,
&-menu-submenu-hidden
`]:{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:fm},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:hm},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:mm},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:vm}})},nm(e,{colorBg:g,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:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},os(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${v}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,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 ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},os(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[wo(e,"slide-up"),wo(e,"slide-down"),Fl(e,"move-up"),Fl(e,"move-down"),Bc(e,"zoom-big")]]},jC=on("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:f}=e,d=(i-a*s)/2,{dropdownArrowOffset:m}=tm({contentRadius:f}),h=$t(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [j5(h),z5(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),nh=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:f,open:d,onOpenChange:m,visible:h,onVisibleChange:v,mouseEnterDelay:g=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:C="",overlay:$,transitionName:x}=e,{getPopupContainer:y,getPrefixCls:S,direction:w}=u__namespace.useContext(lt),I=u__namespace.useMemo(()=>{const K=S();return x!==void 0?x:C.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[S,C,x]),E=u__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:w==="rtl"?"bottomRight":"bottomLeft",[C,w]),O=S("dropdown",r),[N,R]=jC(O),{token:P}=Ui.useToken(),_=u__namespace.Children.only(o),T=En(_,{className:V(`${O}-trigger`,{[`${O}-rtl`]:w==="rtl"},_.props.className),disabled:a}),A=a?[]:i;let M;A&&A.includes("contextMenu")&&(M=!0);const[k,z]=Zt(!1,{value:d??h}),B=Vn(K=>{m==null||m(K),v==null||v(K),z(K);}),W=V(c,f,R,{[`${O}-rtl`]:w==="rtl"}),j=kb({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),G=u__namespace.useCallback(()=>{z(!1);},[]),F=()=>{let K;return t!=null&&t.items?K=u__namespace.createElement(D5,Object.assign({},t)):typeof $=="function"?K=$():K=$,s&&(K=s(K)),K=u__namespace.Children.only(typeof K=="string"?u__namespace.createElement("span",null,K):K),u__namespace.createElement(p5,{prefixCls:`${O}-menu`,expandIcon:u__namespace.createElement("span",{className:`${O}-menu-submenu-arrow`},u__namespace.createElement(Cy,{className:`${O}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:re=>{}},K)};return N(u__namespace.createElement($C,Object.assign({alignPoint:M},On(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:k,builtinPlacements:j,arrow:!!n,overlayClassName:W,prefixCls:O,getPopupContainer:l||y,transitionName:I,trigger:A,overlay:F,placement:E,onVisibleChange:B}),T))};function H5(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const B5=ym(nh,"dropdown",e=>e,H5),F5=e=>u__namespace.createElement(B5,Object.assign({},e),u__namespace.createElement("span",null));nh._InternalPanelDoNotUseOrYouWillBeFired=F5;const HC=nh,W5=()=>Rn()&&window.document.documentElement;let rl;const V5=()=>{if(!W5())return !1;if(rl!==void 0)return rl;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),rl=e.scrollHeight===1,document.body.removeChild(e),rl},G5=()=>{const[e,t]=u__namespace.useState(!1);return u__namespace.useEffect(()=>{t(V5());},[]),e},BC=u.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),K5=BC.Provider;function U5(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:f,latestIndex:d,supportFlexGap:m}=u__namespace.useContext(BC);let h={};return m||(n==="vertical"?r<d&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<d&&{[o]:c/(a?2:1)}),s&&{paddingBottom:f})),i==null?null:u__namespace.createElement(u__namespace.Fragment,null,u__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),l)},i),r<d&&a&&u__namespace.createElement("span",{className:`${t}-split`,style:h},a))}var X5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y5={small:8,middle:16,large:24};function q5(e){return typeof e=="string"?Y5[e]:e||0}const Z5=u__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=u__namespace.useContext(lt),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:f,children:d,direction:m="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:C}=e,$=X5(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),x=G5(),[y,S]=u__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(z=>q5(z)),[s]),w=vr(d,{keepEmpty:!0}),I=l===void 0&&m==="horizontal"?"center":l,E=o("space",h),[O,N]=r0(E),R=V(E,N,`${E}-${m}`,{[`${E}-rtl`]:a==="rtl",[`${E}-align-${I}`]:I},c??(i==null?void 0:i.className),f),P=V(`${E}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),_=a==="rtl"?"marginLeft":"marginRight";let T=0;const A=w.map((z,B)=>{var W,j;z!=null&&(T=B);const G=z&&z.key||`${P}-${B}`;return u__namespace.createElement(U5,{className:P,key:G,direction:m,index:B,marginDirection:_,split:v,wrap:p,style:(W=C==null?void 0:C.item)!==null&&W!==void 0?W:(j=i==null?void 0:i.styles)===null||j===void 0?void 0:j.item},z)}),M=u__namespace.useMemo(()=>({horizontalSize:y,verticalSize:S,latestIndex:T,supportFlexGap:x}),[y,S,T,x]);if(w.length===0)return null;const k={};return p&&(k.flexWrap="wrap",x||(k.marginBottom=-S)),x&&(k.columnGap=y,k.rowGap=S),O(u__namespace.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},k),i==null?void 0:i.style),g)},$),u__namespace.createElement(K5,{value:M},A)))}),FC=Z5;FC.Compact=JO;const hu=FC;var Q5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u__namespace.useContext(lt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:f,children:d,className:m,menu:h,arrow:v,autoFocus:g,overlay:p,trigger:b,align:C,open:$,onOpenChange:x,placement:y,getPopupContainer:S,href:w,icon:I=u__namespace.createElement(th,null),title:E,buttonsRender:O=ie=>ie,mouseEnterDelay:N,mouseLeaveDelay:R,overlayClassName:P,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:A}=e,M=Q5(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"]),k=n("dropdown",o),z=`${k}-button`,[B,W]=jC(k),j={menu:h,arrow:v,autoFocus:g,align:C,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:R,overlayClassName:P,overlayStyle:_,destroyPopupOnHide:T,dropdownRender:A},{compactSize:G,compactItemClassnames:F}=da(k,r),K=V(z,F,m,W);"overlay"in e&&(j.overlay=p),"open"in e&&(j.open=$),"placement"in e?j.placement=y:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const re=u__namespace.createElement(dn,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:f,href:w,title:E},d),Z=u__namespace.createElement(dn,{type:i,danger:a,icon:I}),[Y,J]=O([re,Z]);return B(u__namespace.createElement(hu.Compact,Object.assign({className:K,size:G,block:!0},M),Y,u__namespace.createElement(HC,Object.assign({},j),J)))};WC.__ANT_BUTTON=!0;const J5=WC,VC=HC;VC.Button=J5;const ez=VC;function wi(e,t,n){const r=pt(n);u.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}function tz(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,i,a)=>o+i*t[a],0)}function rh(e){return e||(e=0),aa.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function ud(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function sc(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const nz=aa().format("YYYY");function Oi(e,t=!1){if(!e)return "";const n=aa.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===nz?n.format("M-D"+r):n.format("YY-M-D"+r)}const rz={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function oz(e){if(!(typeof e>"u")&&!(e>=0))return rz[e]}function GC(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 iz="_bili-video-card_12ujg_1",az="_preview-card-wrapper_12ujg_4",sz="_preview-card-inner_12ujg_17",lz="_watch-later_12ujg_21",cz="_badge_12ujg_24",uz="_recommend-reason_12ujg_33",dz="_bangumi-desc_12ujg_48",fz="_btn-dislike_12ujg_51",mz="_btn-dislike-icon_12ujg_66",hz="_btn-dislike-tip_12ujg_73",vz="_disliked-wrapper_12ujg_88",gz="_dislike-content-cover_12ujg_102",pz="_dislike-content-cover-inner_12ujg_108",bz="_dislike-icon_12ujg_119",yz="_dislike-reason_12ujg_122",Cz="_dislike-desc_12ujg_126",Sz="_dislike-content-action_12ujg_130",wz="_skeleton-active_12ujg_147",$z="_ant-skeleton-loading_12ujg_1",un={biliVideoCard:iz,previewCardWrapper:az,previewCardInner:sz,watchLater:lz,badge:cz,recommendReason:uz,bangumiDesc:dz,btnDislike:fz,btnDislikeIcon:mz,btnDislikeTip:hz,dislikedWrapper:vz,dislikeContentCover:gz,dislikeContentCoverInner:pz,dislikeIcon:bz,dislikeReason:yz,dislikeDesc:Cz,dislikeContentAction:Sz,skeletonActive:wz,antSkeletonLoading:$z};function xz(...e){for(const t of e)if(!isNaN(t))return t;return 0}function Ez({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=u.useRef(null),a=dD(i),[s,l]=u.useState(()=>({width:0,height:0}));ou(()=>{var m;const d=(m=i.current)==null?void 0:m.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=xz(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const f={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return H("div",{ref:i,className:V(un.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&H(Oz,{...f})})}function Oz({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var y;const i=Math.floor((e||0)*o);let a=u.useMemo(()=>{const S=(t==null?void 0:t.index)||[];let w=_z(S,i);return w!==-1?w:i>S[S.length-1]?(w=Math.floor(S.length*o)-1,w<0&&(w=0),w):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:f}=t,d=l*s;a=a+1;const m=Math.floor(a/d),h=a-m*d,v=((y=t.image)==null?void 0:y[m])||"",g=Math.floor(h/s)+1,p=h-(g-1)*s,b=n*s,C=r*l,$=(g-1)*r,x=(p-1)*n;return H("div",{className:un.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${x}px -${$}px`,backgroundSize:`${b}px ${C}px`},children:H(Iz,{progress:o})})}function Iz({progress:e}){const{colorPrimary:t}=ma();return H("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:H("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function _z(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 i=e[o],a=e[o+1]??0;return i<t&&t<a?o:-1}const ka={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},ds={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Pz={bangumiFollow:1.3},Rz=e=>{const t=ds[e]||ds[1];return ka[t]},Tz=e=>{const t=ds[e];if(t)return Pz[t]};function Mg(e){return {iconSvgName:Rz(e),iconSvgScale:Tz(e)}}const Ya=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}};let mo=Ya;at(mo,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),at(mo,"TR",{}),at(mo,"S",[11,10,3,8,4,6]),at(mo,"XOR",177451812),at(mo,"ADD",8728348608),(()=>{const t=Ya.TABEL.length;for(let n=0;n<t;n++)Ya.TR[Ya.TABEL[n]]=n;})();function KC(e){const t=e.api==="pc",n=e.api==="app",r=e.api==="dynamic";e.api;function o(i){return t?i.pc(e):n?i.app(e):r?i.dynamic(e):i.watchlater(e)}return o({pc:Mz,app:Nz,dynamic:Az,watchlater:kz})}function Mz(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Oi(e.pubdate),duration:e.duration,durationStr:rh(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Nz(e){var i,a,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:f,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&ds[c]===l)return sc(f);if(d&&ds[d]===l)return sc(m)},n=e.param,r=mo.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(`[${io}]: 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,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:rh((a=e.player_args)==null?void 0:a.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function Az(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=aa().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:Oi(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:tz(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:sc(t.stat.play),danmaku:sc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function kz(e){const t=oz(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?H(Ay,{title:ge(Lt,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:ge("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Oi(e.pubdate),pubdateDisplayTitle:`${Oi(e.pubdate,!0)} 发布, ${Oi(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:rh(e.duration),recommendReason:`${Oi(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)}}const Dz=e=>(e||"").replace(/^http:\/\//,"https://");function Ng(e){GM.setClipboard(e),tn(`已复制: ${e}`);}const UC=GC(),XC={borderRadius:"var(--video-card-border-radius)"},lc=u.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:s,emitter:l,...c}){o=o??!r;const f=ge("div",{className:V("bili-video-card__skeleton",{hide:!o,[un.skeletonActive]:o}),children:[H("div",{className:"bili-video-card__skeleton--cover",style:XC}),H("div",{className:"bili-video-card__skeleton--info",children:ge("div",{className:"bili-video-card__skeleton--right",children:[H("p",{className:"bili-video-card__skeleton--text"}),H("p",{className:"bili-video-card__skeleton--text short"}),H("p",{className:"bili-video-card__skeleton--light"})]})})]}),d=qD((r==null?void 0:r.api)==="app"&&r.param);return ge("div",{style:t,className:V("bili-video-card",un.biliVideoCard,n),...c,children:[f,!o&&r&&(d?H(Lz,{item:r,emitter:l,dislikedReason:d}):H(zz,{item:r,active:i,emitter:l,onRemoveCurrent:a,onMoveToFirst:s}))]})}),Lz=u.memo(function({dislikedReason:t,item:n,emitter:r=UC}){const o=pt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await HD(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),rC();i?tn("已撤销"):oC(),i&&lu.delete(n.param);});return wi(r,"cancel-dislike",o),ge("div",{className:V(un.dislikedWrapper),children:[H("div",{className:un.dislikeContentCover,children:ge("div",{className:un.dislikeContentCoverInner,children:[H(gr,{name:"DistraughtFace",size:32,className:un.dislikeIcon}),H("div",{className:un.dislikeReason,children:t==null?void 0:t.name}),H("div",{className:un.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),H("div",{className:un.dislikeContentAction,children:ge("button",{onClick:o,children:[H(gr,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),zz=u.memo(function({item:t,active:n=!1,onRemoveCurrent:r,onMoveToFirst:o,emitter:i=UC}){const a=t.api==="pc",s=t.api==="app",l=t.api==="dynamic",c=t.api==="watchlater",f=u.useMemo(()=>KC(t),[t]),{avid:d,bvid:m,goto:h,href:v,title:g,titleRender:p,coverRaw:b,pubdateDisplay:C,pubdateDisplayTitle:$,duration:x,durationStr:y,recommendReason:S,invalidReason:w,play:I,like:E,coin:O,danmaku:N,favorite:R,authorName:P,authorFace:_,authorMid:T,appBadge:A,appBadgeDesc:M}=f,k=l||c||t.goto==="av";["av","bangumi","picture"].includes(h)||console.warn(`[${io}]: none (av,bangumi,picture) goto type %s`,h,t);const z=u.useMemo(()=>Dz(b),[b]),[B,W]=u.useState(null),j=u.useRef(!1),G=pt(async()=>{if(!B&&!j.current)try{j.current=!0,W(await zD(d));}finally{j.current=!1;}}),F=u.useRef(null),[K,re]=u.useState(void 0);yo("mouseenter",be=>{var $e;const je=($e=F.current)==null?void 0:$e.getBoundingClientRect();if(!je)return;const{x:He}=je,pe=be.pageX-window.pageXOffset-He;re(pe);},{target:F});const Z=sd(F),{autoPreviewWhenHover:Y}=Kn(),{onStartPreviewAnimation:J,onHotkeyPreviewAnimation:ie,previewAnimationProgress:ae}=jz({bvid:m,title:g,autoPreviewWhenHover:Y,active:n,tryFetchVideoData:G,videoPreviewWrapperRef:F});Ql(()=>{if(n){try{unsafeWindow[`${tx}_activeItem`]=t;}catch(be){console.warn("set unsafeWindow activeItem error"),console.warn(be.stack||be);}wt.autoPreviewWhenKeyboardSelect&&J();}},[n]);const de=u.useRef(null),Q=sd(de),[ne,ce]=u.useState(t.api==="watchlater"),{accessKey:se}=Kn(),me=!!se;u.useEffect(()=>{Z&&G();},[Z]);const oe=u.useRef(!1),he=pt(async(be,je)=>{if(be==null||be.preventDefault(),je??(je=ne?bg:nl),je!==nl&&je!==bg)throw new Error("unexpected usingAction provided");if(oe.current)return;oe.current=!0;let He=!1;try{He=await je(d);}finally{oe.current=!1;}if(He){const pe=je===nl;ce(pe),t.api==="watchlater"&&pe===!1&&(await oi(100),r==null||r(t,f));}return He}),ue=u.useRef(null),fe=sd(ue),_e=pt(be=>{if(be==null||be.stopPropagation(),be==null||be.preventDefault(),!Ve)return t.api!=="app"?tn("当前视频不支持提交「我不想看」"):me?void 0:tn("请先获取 access_key");eL(t);}),et=u.useMemo(()=>ud(I),[I]),Ue=u.useMemo(()=>ud(E),[E]),De=u.useMemo(()=>ud(R),[R]),Qe=a?Ue:De,it=({text:be,iconSvgName:je,iconSvgScale:He})=>ge("span",{className:"bili-video-card__stats--item",children:[H("svg",{className:"bili-video-card__stats--icon",style:{transform:He?`scale(${He})`:void 0},children:H("use",{href:je})}),H("span",{className:"bili-video-card__stats--text",children:be})]}),Ze=pt(()=>{window.open(v,"_blank");});wi(i,"open",Ze),wi(i,"toggle-watch-later",()=>he()),wi(i,"trigger-dislike",()=>_e()),wi(i,"start-preview-animation",J),wi(i,"hotkey-preview-animation",ie);const Ve=s&&me,Re=[{key:"open-link",label:"打开",onClick:Ze},{type:"divider"},{key:"copy-link",label:"复制视频链接",onClick(){let be=v;v.startsWith("/")&&(be=new URL(v,location.href).href),Ng(be);}},{key:"copy-bvid",label:"复制 BVID",onClick(){Ng(m);}},{type:"divider"},Ve&&{key:"dislike",label:"我不想看",onClick(){_e();}},{key:"watchlater",label:ne?"移除稍后再看":"稍后再看",onClick(){he();}},t.api==="watchlater"&&ne&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",async onClick(){await he(void 0,nl)&&(o==null||o(t,f));}},...s_?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",onClick(){let be=v;t.api==="watchlater"&&(be=`/video/${t.bvid}`);const je=new URL(be,location.href).href,He=`iina://open?url=${encodeURIComponent(je)}`;window.open(He,"_self");}}]:[]].filter(Boolean);return ge("div",{className:"bili-video-card__wrap __scale-wrap",children:[H(ez,{menu:{items:Re},trigger:["contextMenu"],children:H("a",{href:v,target:"_blank",children:ge("div",{className:"bili-video-card__image __scale-player-wrap",ref:F,style:{...XC},children:[ge("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[ge("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!pm&&H("source",{srcSet:`${z}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),H("source",{srcSet:`${z}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),H("img",{src:`${z}@672w_378h_1c_!web-home-common-cover`,alt:g,loading:"eager"})]}),(Z||typeof ae=="number")&&H(Ez,{videoDuration:x,pvideo:B==null?void 0:B.pvideoData,mouseEnterRelativeX:K,previewAnimationProgress:ae}),ge("div",{className:`bili-watch-later ${un.watchLater}`,style:{display:Z||n?"flex":"none"},ref:de,onClick:he,children:[H("svg",{className:"bili-watch-later__icon",children:H("use",{href:ne?"#widget-watch-save":"#widget-watch-later"})}),H("span",{className:"bili-watch-later__tip",style:{display:Q?"block":"none"},children:ne?"移除稍后再看":"稍后再看"})]}),Ve&&ge("div",{ref:ue,className:un.btnDislike,onClick:_e,style:{display:Z?"flex":"none"},children:[H("svg",{className:un.btnDislikeIcon,children:H("use",{href:"#widget-close"})}),H("span",{className:un.btnDislikeTip,style:{display:fe?"block":"none"},children:"我不想看"})]})]}),H("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:ge("div",{className:"bili-video-card__stats",children:[H("div",{className:"bili-video-card__stats--left",children:a?ge(Lt,{children:[it({text:et,iconSvgName:ka.play}),it({text:h==="av"?Ue:Qe,iconSvgName:ka.like})]}):s?ge(Lt,{children:[t.cover_left_text_1&&it({...Mg(t.cover_left_icon_1),text:h==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&it({...Mg(t.cover_left_icon_2),text:h==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):ge(Lt,{children:[it({text:et,iconSvgName:ka.play}),it({text:(N||0).toString(),iconSvgName:ka.danmaku})]})}),H("span",{className:"bili-video-card__stats__duration",children:k&&y})]})})]})})}),H("div",{className:"bili-video-card__info __scale-disable",children:ge("div",{className:"bili-video-card__info--right",children:[H("a",{href:v,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:H("h3",{className:"bili-video-card__info--tit",title:g,children:p??g})}),H("p",{className:"bili-video-card__info--bottom",children:k?ge("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${T}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${P} ${$||C}`,children:[S?H("span",{className:un.recommendReason,children:S}):H("svg",{className:"bili-video-card__info--owner__up",children:H("use",{href:"#widget-up"})}),H("span",{className:"bili-video-card__info--author",children:P}),C&&ge("span",{className:"bili-video-card__info--date",children:["· ",C]})]}):A||M?ge("a",{className:"bili-video-card__info--owner",href:v,target:"_blank",children:[H("span",{className:un.badge,children:A||""}),H("span",{className:un.bangumiDesc,children:M||""})]}):null})]})})]})});function jz({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=tC(void 0),[c,f]=u.useState(!1),d=u.useRef(!1),m=u.useRef(!1);yo("mouseenter",I=>{d.current=!0,n&&!v.current&&w(!0);},{target:i}),yo("mouseleave",I=>{d.current=!1;},{target:i}),yo("mousemove",I=>{f(!0),n||p();},{target:i});const h=hD(),v=u.useRef(void 0),g=pt(()=>{if(h.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=pt((I=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),C(!1);}),[b,C,$]=Jy(!1),x=u.useRef(),y=pt(()=>{var I;if(!v.current){w();return}C(E=>!E),b&&((I=x.current)==null||I.call(x,s||0));}),S=pt(()=>s||0),w=pt((I=!1)=>{m.current=I,f(!1),C(!1),o(),p(!0),l(_=>typeof _>"u"?0:_);const E=8e3,O=()=>typeof wt.autoPreviewUpdateInterval=="number"?wt.autoPreviewUpdateInterval:400;let N=performance.now(),R=0;x.current=()=>{N=performance.now()-S()*E;};function P(_){if(g()){p();return}const T=()=>{const A=performance.now()-N,M=Math.min(A%E/E,1);l(M);};$()||(O()?(!R||performance.now()-R>=O())&&(R=performance.now(),T()):T()),v.current=requestAnimationFrame(P);}v.current=requestAnimationFrame(P);});return {onHotkeyPreviewAnimation:y,onStartPreviewAnimation:w,previewAnimationProgress:s}}const Ag=()=>document.querySelector(".bili-header__bar");function Hz(){return !!(Ag()&&window.getComputedStyle(Ag()).display==="none")}function yf(){if(!Hz())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 cc=ti({value:yf()});function Bz(){return $o(cc).value}function YC(){return cc.value}setTimeout(()=>{cc.value=yf();const e=new MutationObserver(()=>{cc.value=yf();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);var Fz=1,Wz=2;function Vz(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],f=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new Nr;if(r)var m=r(c,f,l,e,t,d);if(!(m===void 0?au(f,c,Fz|Wz,r,d):m))return !1}}return !0}function qC(e){return e===e&&!rr(e)}function Gz(e){for(var t=As(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,qC(o)];}return t}function ZC(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Kz(e){var t=Gz(e);return t.length==1&&t[0][2]?ZC(t[0][0],t[0][1]):function(n){return n===e||Vz(n,e,t)}}function Uz(e,t,n){var r=e==null?void 0:Bf(e,t);return r===void 0?n:r}var Xz=1,Yz=2;function qz(e,t){return zf(e)&&qC(t)?ZC(bs(e),t):function(n){var r=Uz(n,e);return r===void 0&&r===t?Bp(n,e):au(t,r,Xz|Yz)}}function Zz(e){return function(t){return t==null?void 0:t[e]}}function Qz(e){return function(t){return Bf(t,e)}}function Jz(e){return zf(e)?Zz(bs(e)):Qz(e)}function ej(e){return typeof e=="function"?e:e==null?Wp:typeof e=="object"?tr(e)?qz(e[0],e[1]):Kz(e):Jz(e)}function tj(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function nj(e){return e!==e}function rj(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function oj(e,t,n){return t===t?rj(e,t,n):tj(e,nj,n)}function ij(e,t){var n=e==null?0:e.length;return !!n&&oj(e,t,0)>-1}function aj(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}function sj(){}var lj=1/0,cj=Mi&&1/Fm(new Mi([,-0]))[1]==lj?function(e){return new Mi(e)}:sj;const uj=cj;var dj=200;function fj(e,t,n){var r=-1,o=ij,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=aj;else if(i>=dj){var c=t?null:uj(e);if(c)return Fm(c);a=!1,o=Wy,l=new ls;}else l=t?[]:s;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(f);}else o(l,d,n)||(l!==s&&l.push(d),s.push(f));}return s}function vu(e,t){return e&&e.length?fj(e,ej(t)):[]}const oh="_video-grid_1qaxg_9",QC="_video-grid-new-homepage_1qaxg_17",mj="_limit-two-lines_1qaxg_20",JC="_video-grid-internal-testing_1qaxg_52";const kg="_video-grid-container_1qaxg_80",hj="_video-grid-youtube-like_1qaxg_84",vj="_narrow-mode_1qaxg_112";function gj({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardEmitters:s}){const[l,c]=u.useState(void 0),f=pt(()=>!(!e||tu())),d=pt(()=>{var w;if(typeof l!="number"||!o.current)return !1;const y=i(),S=(w=o.current.querySelector(`.${ki.card}.${ki.cardActive}`))==null?void 0:w.getBoundingClientRect();return !(!y||!S||S.top-y.top<-(y.height+S.height)||S.top-y.top>y.height*2+S.height)}),m=y=>S=>{if(!f())return;S==null||S.preventDefault();let w=typeof y=="number"?y:y();const I=d()?l+w:p();if(I<n){x(n);return}if(I>r){x(r);return}c(I),x(I);};en("leftarrow",m(-1),{exactMatch:!0}),en("rightarrow",m(1),{exactMatch:!0}),en("tab",m(1),{exactMatch:!0}),en("shift.tab",m(-1),{exactMatch:!0});const h=()=>ih(o.current);en("uparrow",m(()=>-h()),{exactMatch:!0}),en("downarrow",m(h),{exactMatch:!0});const v=()=>{f()&&c(void 0);},g=()=>{if(!(!f()||typeof l!="number"))return s[l]};en("esc",v),en("enter",()=>{var y;!f()||typeof l!="number"||(y=g())==null||y.emit("open");}),en("backspace",()=>{var y;!f()||typeof l!="number"||(y=g())==null||y.emit("trigger-dislike");}),en(["s","w"],()=>{var y;!f()||typeof l!="number"||(y=g())==null||y.emit("toggle-watch-later");},{exactMatch:!0}),en(["period","p"],()=>{var y;!f()||typeof l!="number"||(y=g())==null||y.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const y=i();if(!y)return 0;const S=C();for(let w=0;w<S.length;w++)if(S[w].getBoundingClientRect().top>=y.top)return w;return 0}const b=`.${ki.card}`;function C(){var y;return [...((y=o.current)==null?void 0:y.querySelectorAll(b))||[]]}function $(y){return C()[y]}function x(y){var E;const S=$(y);(E=S==null?void 0:S.scrollIntoViewIfNeeded)==null||E.call(S,!1);const w=i(),I=S.getBoundingClientRect();if(!(!w||!I)){if(I.top<=w.top){const O=-(w.top-I.top+10);a==null||a({offset:O});return}if(w.bottom-I.bottom<10){const O=10-(w.bottom-I.bottom);a==null||a({offset:O});return}}}return {activeIndex:l,clearActiveIndex:v}}const pj=new Map,bj=new Map;function ih(e,t=!0){if(t&&wt.useNarrowMode)return 2;const n=wt.styleUseYoutubeLikeCard?pj:bj;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${oh}`)),!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 eS(e){return wt.filterMinDurationEnabled||wt.filterMinPlayCountEnabled||e==="onlyFollow"}function tS(e,t){return eS(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i}=KC(n),a=i==="已关注"||(i==null?void 0:i.includes("关注"));return t==="onlyFollow"?a:!wt.enableFilterForFollowed&&a?!0:!(typeof r=="number"&&wt.filterMinPlayCountEnabled&&wt.filterMinPlayCount&&r<wt.filterMinPlayCount||o&&wt.filterMinDurationEnabled&&wt.filterMinDuration&&o<wt.filterMinDuration)}):e}var gu={exports:{}},ah={exports:{}},nS={exports:{}},nn=nS.exports={},wr,$r;function Cf(){throw new Error("setTimeout has not been defined")}function Sf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?wr=setTimeout:wr=Cf;}catch{wr=Cf;}try{typeof clearTimeout=="function"?$r=clearTimeout:$r=Sf;}catch{$r=Sf;}})();function rS(e){if(wr===setTimeout)return setTimeout(e,0);if((wr===Cf||!wr)&&setTimeout)return wr=setTimeout,setTimeout(e,0);try{return wr(e,0)}catch{try{return wr.call(null,e,0)}catch{return wr.call(this,e,0)}}}function yj(e){if($r===clearTimeout)return clearTimeout(e);if(($r===Sf||!$r)&&clearTimeout)return $r=clearTimeout,clearTimeout(e);try{return $r(e)}catch{try{return $r.call(null,e)}catch{return $r.call(this,e)}}}var Zr=[],Ni=!1,jo,Il=-1;function Cj(){!Ni||!jo||(Ni=!1,jo.length?Zr=jo.concat(Zr):Il=-1,Zr.length&&oS());}function oS(){if(!Ni){var e=rS(Cj);Ni=!0;for(var t=Zr.length;t;){for(jo=Zr,Zr=[];++Il<t;)jo&&jo[Il].run();Il=-1,t=Zr.length;}jo=null,Ni=!1,yj(e);}}nn.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];Zr.push(new iS(e,t)),Zr.length===1&&!Ni&&rS(oS);};function iS(e,t){this.fun=e,this.array=t;}iS.prototype.run=function(){this.fun.apply(null,this.array);};nn.title="browser";nn.browser=!0;nn.env={};nn.argv=[];nn.version="";nn.versions={};function ao(){}nn.on=ao;nn.addListener=ao;nn.once=ao;nn.off=ao;nn.removeListener=ao;nn.removeAllListeners=ao;nn.emit=ao;nn.prependListener=ao;nn.prependOnceListener=ao;nn.listeners=function(e){return []};nn.binding=function(e){throw new Error("process.binding is not supported")};nn.cwd=function(){return "/"};nn.chdir=function(e){throw new Error("process.chdir is not supported")};nn.umask=function(){return 0};var Sj=nS.exports;const dd=no(Sj);var wf;typeof Object.create=="function"?wf=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:wf=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const aS=wf;var wj=/%[sdj%]/g;function Ji(e){if(!zs(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(kr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(wj,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}}),a=r[n];n<o;a=r[++n])Ls(a)||!ii(a)?i+=" "+a:i+=" "+kr(a);return i}function sh(e,t){if(Rr(global.process))return function(){return sh(e,t).apply(this,arguments)};if(dd.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(dd.throwDeprecation)throw new Error(t);dd.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var ol={},fd;function sS(e){if(Rr(fd)&&(fd={}.NODE_DEBUG||""),e=e.toUpperCase(),!ol[e])if(new RegExp("\\b"+e+"\\b","i").test(fd)){var t=0;ol[e]=function(){var n=Ji.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else ol[e]=function(){};return ol[e]}function kr(e,t){var n={seen:[],stylize:xj};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),pu(t)?n.showHidden=t:t&&dh(n,t),Rr(n.showHidden)&&(n.showHidden=!1),Rr(n.depth)&&(n.depth=2),Rr(n.colors)&&(n.colors=!1),Rr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=$j),uc(n,e,n.depth)}kr.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]};kr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function $j(e,t){var n=kr.styles[t];return n?"\x1B["+kr.colors[n][0]+"m"+e+"\x1B["+kr.colors[n][1]+"m":e}function xj(e,t){return e}function Ej(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function uc(e,t,n){if(e.customInspect&&t&&Xa(t.inspect)&&t.inspect!==kr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return zs(r)||(r=uc(e,r,n)),r}var o=Oj(e,t);if(o)return o;var i=Object.keys(t),a=Ej(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Ua(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return md(t);if(i.length===0){if(Xa(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ka(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ua(t))return md(t)}var l="",c=!1,f=["{","}"];if(lh(t)&&(c=!0,f=["[","]"]),Xa(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ka(t)&&(l=" "+RegExp.prototype.toString.call(t)),dc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ua(t)&&(l=" "+md(t)),i.length===0&&(!c||t.length==0))return f[0]+l+f[1];if(n<0)return Ka(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=Ij(e,t,n,a,i):m=i.map(function(h){return $f(e,t,n,a,h,c)}),e.seen.pop(),_j(m,l,f)}function Oj(e,t){if(Rr(t))return e.stylize("undefined","undefined");if(zs(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(ch(t))return e.stylize(""+t,"number");if(pu(t))return e.stylize(""+t,"boolean");if(Ls(t))return e.stylize("null","null")}function md(e){return "["+Error.prototype.toString.call(e)+"]"}function Ij(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)mS(t,String(a))?i.push($f(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push($f(e,t,n,r,l,!0));}),i}function $f(e,t,n,r,o,i){var a,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")),mS(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Ls(n)?s=uc(e,l.value,null):s=uc(e,l.value,n-1),s.indexOf(`
`)>-1&&(i?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")),Rr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function _j(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(`
`)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
`)+" "+e.join(`,
`)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function lh(e){return Array.isArray(e)}function pu(e){return typeof e=="boolean"}function Ls(e){return e===null}function lS(e){return e==null}function ch(e){return typeof e=="number"}function zs(e){return typeof e=="string"}function cS(e){return typeof e=="symbol"}function Rr(e){return e===void 0}function Ka(e){return ii(e)&&uh(e)==="[object RegExp]"}function ii(e){return typeof e=="object"&&e!==null}function dc(e){return ii(e)&&uh(e)==="[object Date]"}function Ua(e){return ii(e)&&(uh(e)==="[object Error]"||e instanceof Error)}function Xa(e){return typeof e=="function"}function uS(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function dS(e){return Buffer.isBuffer(e)}function uh(e){return Object.prototype.toString.call(e)}function hd(e){return e<10?"0"+e.toString(10):e.toString(10)}var Pj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rj(){var e=new Date,t=[hd(e.getHours()),hd(e.getMinutes()),hd(e.getSeconds())].join(":");return [e.getDate(),Pj[e.getMonth()],t].join(" ")}function fS(){console.log("%s - %s",Rj(),Ji.apply(null,arguments));}function dh(e,t){if(!t||!ii(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function mS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const Tj={inherits:aS,_extend:dh,log:fS,isBuffer:dS,isPrimitive:uS,isFunction:Xa,isError:Ua,isDate:dc,isObject:ii,isRegExp:Ka,isUndefined:Rr,isSymbol:cS,isString:zs,isNumber:ch,isNullOrUndefined:lS,isNull:Ls,isBoolean:pu,isArray:lh,inspect:kr,deprecate:sh,format:Ji,debuglog:sS},Mj=Object.freeze(Object.defineProperty({__proto__:null,_extend:dh,debuglog:sS,default:Tj,deprecate:sh,format:Ji,inherits:aS,inspect:kr,isArray:lh,isBoolean:pu,isBuffer:dS,isDate:dc,isError:Ua,isFunction:Xa,isNull:Ls,isNullOrUndefined:lS,isNumber:ch,isObject:ii,isPrimitive:uS,isRegExp:Ka,isString:zs,isSymbol:cS,isUndefined:Rr,log:fS},Symbol.toStringTag,{value:"Module"})),Nj=i1(Mj);var Aj=Nj.format;function kj(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Dj(e,t){return function(){var n=this,r=[].slice.call(arguments);kj();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new hS(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let hS=class vS extends Error{constructor(t){super(),this.timeout=t,this.message=Aj("timeout of %sms exceed",t),Error.captureStackTrace(this,vS);}};ah.exports=Dj;ah.exports.TimeoutError=hS;var Lj=ah.exports;const gS=Lj,zj=gS.TimeoutError;gu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=gS(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let f=0;f<o;f++){let d,m;try{d=await t.apply(s,l);}catch(h){m=h;}if(!m)return d;if(m instanceof TypeError)throw m;if(m instanceof jj)throw m.originalError;c[f]=m,a&&a(m,f);}throw new pS({times:o,timeout:i,fn:r,errors:c})}};class pS extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class jj 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 Hj=gu.exports.RetryError=pS;gu.exports.TimeoutError=zj;var Bj=gu.exports;const Fj=no(Bj);class fh extends Error{constructor(n){super();at(this,"json");Error.captureStackTrace(this,fh),this.json=n,this.message=n.message||JSON.stringify(n);}}const Wj=10;async function Vj(){var r;const t=(await su.get(aC+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new fh(t);return tn(`${io}: 未知错误, 请联系开发者
code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Gj=Fj(Vj,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",io,t,e);}});async function Kj(){try{return await Gj()}catch(e){if(e instanceof Hj){console.error(e.errors);const t=[Ji("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Ji(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);tn(t,5e3);}throw e}}async function bS(e){let t=[];return await(async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>Kj()))).flat();})(),t=vu(t,r=>r.param),t.map(r=>({...r,api:"app",uniqId:r.param+"-"+crypto.randomUUID()}))}const bh=class{constructor(){at(this,"page",0);}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await va.get("/x/web-interface/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:bh.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||tn(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=vu(r,i=>i.id),r.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};let Ai=bh;at(Ai,"PAGE_SIZE",14);const il=ys.extend("service"),_l=e=>e.api==="pc"?e.id:e.api==="app"?e.param:e.api==="dynamic"?e.modules.module_dynamic.major.archive.aid:e.bvid;function Uj(e,t){const n=e.map(_l);return t=vu(t,_l),e.concat(t.filter(r=>!n.includes(_l(r))))}const xf=e=>e==="onlyFollow"||e==="recommend-pc";async function yS(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,tab:a,abortSignal:s}=t;let l=[],c=!0;const f=async d=>{let m=[];if(a==="dynamic"){m=await o.loadMore(s)||[],c=o.hasMore,l=l.concat(m);return}if(a==="watchlater"){m=await i.loadMore()||[],c=i.hasMore,l=l.concat(m);return}let h;if(a==="onlyFollow")h=8,il("getMinCount: addMore(restCount = %s) times=%s",d,h);else {const v=xf(a)?Ai.PAGE_SIZE:Wj,g=eS(a)?n:1.2;h=Math.ceil(d*g/v),il("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",d,g,v,h);}m=xf(a)?await r.getRecommendTimes(h,s):await bS(h),m=tS(m,a),l=l.concat(m),l=vu(l,_l);};for(await f(e);;){if(s!=null&&s.aborted){il("getMinCount: break for abortSignal");break}if(!c){il("getMinCount: break for tab=%s hasMore=false",a);break}if(l.length>=e)break;await f(e-l.length);}return l}async function Xj(e){let t=await yS(ih(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Yj(e){return yS(ih()*3+1,e,5)}async function qj(e,t,n){let r=xf(t)?await n.getRecommendTimes(e):await bS(e);return r=tS(r,t),r}var ea=1e3,ta=ea*60,na=ta*60,Qo=na*24,Zj=Qo*7,Qj=Qo*365.25,Jj=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return e6(e);if(n==="number"&&isFinite(e))return t.long?n6(e):t6(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function e6(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*Qj;case"weeks":case"week":case"w":return n*Zj;case"days":case"day":case"d":return n*Qo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*na;case"minutes":case"minute":case"mins":case"min":case"m":return n*ta;case"seconds":case"second":case"secs":case"sec":case"s":return n*ea;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function t6(e){var t=Math.abs(e);return t>=Qo?Math.round(e/Qo)+"d":t>=na?Math.round(e/na)+"h":t>=ta?Math.round(e/ta)+"m":t>=ea?Math.round(e/ea)+"s":e+"ms"}function n6(e){var t=Math.abs(e);return t>=Qo?al(e,t,Qo,"day"):t>=na?al(e,t,na,"hour"):t>=ta?al(e,t,ta,"minute"):t>=ea?al(e,t,ea,"second"):e+" ms"}function al(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const r6=no(Jj);var Ef=new Map,sl=new WeakMap,Dg=0,o6=void 0;function i6(e){return e?(sl.has(e)||(Dg+=1,sl.set(e,Dg.toString())),sl.get(e)):"0"}function a6(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?i6(e.root):e[t]}`).toString()}function s6(e){let t=a6(e),n=Ef.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var c;const l=s.isIntersecting&&o.some(f=>s.intersectionRatio>=f);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=l),(c=r.get(s.target))==null||c.forEach(f=>{f(l,s);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Ef.set(t,n);}return n}function l6(e,t,n={},r=o6){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:i,elements:a}=s6(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),Ef.delete(o));}}function c6({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:c}={}){var C;const[f,d]=u__namespace.useState(null),m=u__namespace.useRef(),[h,v]=u__namespace.useState({inView:!!s,entry:void 0});m.current=c,u__namespace.useEffect(()=>{if(a||!f)return;let $;return $=l6(f,(x,y)=>{v({inView:x,entry:y}),m.current&&m.current(x,y),y.isIntersecting&&i&&$&&($(),$=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{$&&$();}},[Array.isArray(e)?e.toString():e,f,o,r,i,a,n,l,t]);const g=(C=h.entry)==null?void 0:C.target,p=u__namespace.useRef();!f&&g&&!i&&!a&&p.current!==g&&(p.current=g,v({inView:!!s,entry:void 0}));const b=[d,h.inView,h.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}function u6(e){const t=u.useRef(null);return t.current||(t.current=e()),t}class Of{constructor(){at(this,"offset");at(this,"page",0);at(this,"hasMore",!0);}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await va.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}}at(Of,"PAGE_SIZE",15);function d6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function bu(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?jp(n,s,l):Ff(n,s,l);}return n}function f6(e,t){return e&&bu(t,As(t),e)}function m6(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var h6=Object.prototype,v6=h6.hasOwnProperty;function g6(e){if(!rr(e))return m6(e);var t=Gm(e),n=[];for(var r in e)r=="constructor"&&(t||!v6.call(e,r))||n.push(r);return n}function mh(e){return Qy(e)?qy(e,!0):g6(e)}function p6(e,t){return e&&bu(t,mh(t),e)}var CS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lg=CS&&typeof module=="object"&&module&&!module.nodeType&&module,b6=Lg&&Lg.exports===CS,zg=b6?br.Buffer:void 0,jg=zg?zg.allocUnsafe:void 0;function y6(e,t){if(t)return e.slice();var n=e.length,r=jg?jg(n):new e.constructor(n);return e.copy(r),r}function SS(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function C6(e,t){return bu(e,Wm(e),t)}var S6=Object.getOwnPropertySymbols,w6=S6?function(e){for(var t=[];e;)Kf(t,Wm(e)),e=nC(e);return t}:Ky;const wS=w6;function $6(e,t){return bu(e,wS(e),t)}function x6(e){return Gy(e,mh,wS)}var E6=Object.prototype,O6=E6.hasOwnProperty;function I6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&O6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function hh(e){var t=new e.constructor(e.byteLength);return new Jl(t).set(new Jl(e)),t}function _6(e,t){var n=t?hh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var P6=/\w*$/;function R6(e){var t=new e.constructor(e.source,P6.exec(e));return t.lastIndex=e.lastIndex,t}var Hg=nr?nr.prototype:void 0,Bg=Hg?Hg.valueOf:void 0;function T6(e){return Bg?Object(Bg.call(e)):{}}function M6(e,t){var n=t?hh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var N6="[object Boolean]",A6="[object Date]",k6="[object Map]",D6="[object Number]",L6="[object RegExp]",z6="[object Set]",j6="[object String]",H6="[object Symbol]",B6="[object ArrayBuffer]",F6="[object DataView]",W6="[object Float32Array]",V6="[object Float64Array]",G6="[object Int8Array]",K6="[object Int16Array]",U6="[object Int32Array]",X6="[object Uint8Array]",Y6="[object Uint8ClampedArray]",q6="[object Uint16Array]",Z6="[object Uint32Array]";function Q6(e,t,n){var r=e.constructor;switch(t){case B6:return hh(e);case N6:case A6:return new r(+e);case F6:return _6(e,n);case W6:case V6:case G6:case K6:case U6:case X6:case Y6:case q6:case Z6:return M6(e,n);case k6:return new r;case D6:case j6:return new r(e);case L6:return R6(e);case z6:return new r;case H6:return T6(e)}}var Fg=Object.create,J6=function(){function e(){}return function(t){if(!rr(t))return {};if(Fg)return Fg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const e8=J6;function t8(e){return typeof e.constructor=="function"&&!Gm(e)?e8(nC(e)):{}}var n8="[object Map]";function r8(e){return So(e)&&cs(e)==n8}var Wg=Qi&&Qi.isMap,o8=Wg?Vm(Wg):r8;const i8=o8;var a8="[object Set]";function s8(e){return So(e)&&cs(e)==a8}var Vg=Qi&&Qi.isSet,l8=Vg?Vm(Vg):s8;const c8=l8;var u8=1,d8=2,f8=4,$S="[object Arguments]",m8="[object Array]",h8="[object Boolean]",v8="[object Date]",g8="[object Error]",xS="[object Function]",p8="[object GeneratorFunction]",b8="[object Map]",y8="[object Number]",ES="[object Object]",C8="[object RegExp]",S8="[object Set]",w8="[object String]",$8="[object Symbol]",x8="[object WeakMap]",E8="[object ArrayBuffer]",O8="[object DataView]",I8="[object Float32Array]",_8="[object Float64Array]",P8="[object Int8Array]",R8="[object Int16Array]",T8="[object Int32Array]",M8="[object Uint8Array]",N8="[object Uint8ClampedArray]",A8="[object Uint16Array]",k8="[object Uint32Array]",Ht={};Ht[$S]=Ht[m8]=Ht[E8]=Ht[O8]=Ht[h8]=Ht[v8]=Ht[I8]=Ht[_8]=Ht[P8]=Ht[R8]=Ht[T8]=Ht[b8]=Ht[y8]=Ht[ES]=Ht[C8]=Ht[S8]=Ht[w8]=Ht[$8]=Ht[M8]=Ht[N8]=Ht[A8]=Ht[k8]=!0;Ht[g8]=Ht[xS]=Ht[x8]=!1;function Pl(e,t,n,r,o,i){var a,s=t&u8,l=t&d8,c=t&f8;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!rr(e))return e;var f=tr(e);if(f){if(a=I6(e),!s)return SS(e,a)}else {var d=cs(e),m=d==xS||d==p8;if(ec(e))return y6(e,s);if(d==ES||d==$S||m&&!o){if(a=l||m?{}:t8(e),!s)return l?$6(e,p6(a,e)):C6(e,f6(a,e))}else {if(!Ht[d])return o?e:{};a=Q6(e,d,s);}}i||(i=new Nr);var h=i.get(e);if(h)return h;i.set(e,a),c8(e)?e.forEach(function(p){a.add(Pl(p,t,n,p,e,i));}):i8(e)&&e.forEach(function(p,b){a.set(b,Pl(p,t,n,b,e,i));});var v=c?l?x6:tf:l?mh:As,g=f?void 0:v(e);return d6(g||e,function(p,b){g&&(b=p,p=e[b]),Ff(a,b,Pl(p,t,n,b,e,i));}),a}var D8=1,L8=4;function z8(e){return Pl(e,D8|L8)}var j8=Math.floor,H8=Math.random;function B8(e,t){return e+j8(H8()*(t-e+1))}function OS(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=B8(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function F8(e){return OS(SS(e))}function W8(e,t){return Lp(t,function(n){return e[n]})}function V8(e){return e==null?[]:W8(e,As(e))}function G8(e){return OS(V8(e))}function K8(e){var t=tr(e)?F8:G8;return t(e)}function U8(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const ll=(e,t,n)=>{const r=U8(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},X8=e=>Jb(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Y8=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Kt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},IS=on("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=$t(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [Y8(i),X8(i),ll(i,"success","Success"),ll(i,"processing","Info"),ll(i,"error","Error"),ll(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var q8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z8=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=q8(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=u__namespace.useContext(lt),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[f,d]=IS(c),m=V(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return f(u__namespace.createElement("span",Object.assign({},a,{className:m,onClick:l})))},Q8=Z8;var J8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eH=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:f,closable:d=!1,bordered:m=!0}=e,h=J8(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g}=u__namespace.useContext(lt),[p,b]=u__namespace.useState(!0);u__namespace.useEffect(()=>{"visible"in h&&b(h.visible);},[h.visible]);const C=s0(l)||BI(l),$=Object.assign({backgroundColor:l&&!C?l:void 0},i),x=v("tag",n),[y,S]=IS(x),w=V(x,{[`${x}-${l}`]:C,[`${x}-has-color`]:l&&!C,[`${x}-hidden`]:!p,[`${x}-rtl`]:g==="rtl",[`${x}-borderless`]:!m},r,o,S),I=_=>{_.stopPropagation(),c==null||c(_),!_.defaultPrevented&&b(!1);},E=u__namespace.useMemo(()=>d?f?u__namespace.createElement("span",{className:`${x}-close-icon`,onClick:I},f):u__namespace.createElement(_m,{className:`${x}-close-icon`,onClick:I}):null,[d,f,x,I]),O=typeof h.onClick=="function"||a&&a.type==="a",N=s||null,R=N?u__namespace.createElement(u__namespace.Fragment,null,N,u__namespace.createElement("span",null,a)):a,P=u__namespace.createElement("span",Object.assign({},h,{ref:t,className:w,style:$}),R,E);return y(O?u__namespace.createElement(my,null,P):P)},_S=u__namespace.forwardRef(eH);_S.CheckableTag=Q8;const Ao=_S,Lo=class{constructor(t){at(this,"loaded",!1);at(this,"page",-1);at(this,"hasMore",!0);at(this,"count");at(this,"items",[]);at(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await va.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));const o=aa().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at<o);if(i!==-1){const a=r.slice(0,i);let s=r.slice(i);this.keepOrder&&Lo.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:Lo.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...a,...s]):wt.shuffleForWatchLater&&(r=[...a,...K8(s)]);}this.count=n.data.count,this.items=r,Lo.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this,n=t<=90?"success":t<100?"warning":"error",r=`${n!=="success"?"快满了~ ":""}已使用 ${t} / 100`;return ge(Ao,{color:n,style:{marginLeft:20,marginTop:1,cursor:"pointer"},title:r,onClick:()=>{tn(`稍后再看: ${r}`);},children:[t," / 100"]})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Lo.PAGE_SIZE,n=t+Lo.PAGE_SIZE,r=z8(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};let Ii=Lo;at(Ii,"PAGE_SIZE",15),at(Ii,"LAST_ITEMS",[]);function PS({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const s=bL(),l=u6(()=>({})),[c,f]=u.useState(!0),[d,m]=u.useState([]),[h,v]=u.useState(()=>new Ai),[g,p]=u.useState(()=>new Of),[b,C]=u.useState(()=>new Ii),[$,x]=u.useState(!1),[y,S,w]=Jy(()=>Date.now()),[I,E]=u.useState(s),[O,N]=u.useState(()=>new AbortController),[R,P]=u.useState(!1),[_,T]=u.useState(void 0),A=pt(async(M=!1,k)=>{var Q;const z=performance.now();if($)if(s===I){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",I,s),O.abort();else e("refresh(): [start] tab = %s",s);await(i==null?void 0:i());const B=ne=>{x(ne),a==null||a(ne);};B(!0),S(Date.now()),E(s),m([]),T(void 0),f(!0),await(r==null?void 0:r());const W=t?new Ai:h,j=t?new Of:g;t&&(v(W),p(j));const G=new Ii(k==null?void 0:k.watchlaterKeepOrder);C(G);const F=new AbortController,K=F.signal;N(F);const re={tab:s,pcRecService:W,dynamicFeedService:j,watchLaterService:G,abortSignal:K};let Z=[],Y;const J=!!(M&&((Q=l.current[s])!=null&&Q.length)),ie=!!(J&&Sg[s].swr);P(ie);const ae=async()=>{try{Z=await n(re);}catch(ne){Y=ne;}};if(e("refresh(): shouldReuse=%s swr=%s",J,ie),J?(Z=l.current[s]||[],m(Z),ie&&await ae()):(l.current[s]=[],await ae()),K.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),Y){console.error(Y),T(Y);return}m(Z),Sg[s].swr?l.current[s]=Z.slice(0,30):l.current[s]=Z,s==="dynamic"&&f(j.hasMore),s==="watchlater"&&f(G.hasMore),await(o==null?void 0:o());const de=performance.now()-z;e("refresh(): [success] cost %s ms",de.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:_,refreshedAt:y,setRefreshedAt:S,getRefreshedAt:w,refreshing:$,setRefreshing:x,refreshFor:I,setRefreshFor:E,refreshAbortController:O,setRefreshAbortController:N,hasMore:c,setHasMore:f,swr:R,setSwr:P,pcRecService:h,dynamicFeedService:g,watchLaterService:b,setPcRecService:v,setDynamicFeedService:p,setWatchLaterService:C,refresh:A}}const Ra=ys.extend("components:RecGrid"),ki={card:tg`
border: 2px solid transparent;
/* global class under .card */
.bili-video-card__info {
padding-left: 2px;
padding-bottom: 1px;
margin-top: calc(var(--info-margin-top) - 1px);
}
`,cardActive:tg`
border-color: #fb7299;
border-radius: 6px;
overflow: hidden;
`};var tH={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const RS=u.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=Kn(),f=uu(),[d,m]=u.useState(0),h=pt(async()=>{j(),a==null||a();}),v=pt(()=>{j(),m(1),f==="watchlater"&&(a==null||a(N.usageInfo)),T();}),{refresh:g,items:p,setItems:b,error:C,refreshing:$,refreshedAt:x,getRefreshedAt:y,swr:S,hasMore:w,setHasMore:I,pcRecService:E,dynamicFeedService:O,watchLaterService:N}=PS({tab:f,debug:Ra,fetcher:Yj,recreateService:!0,preAction:h,postAction:v,onScrollToTop:n,setUpperRefreshing:i});ou(g),u.useImperativeHandle(s,()=>({refresh:g}),[]);const R=u.useRef();yo("visibilitychange",Q=>{if(!(document.visibilityState==="visible")){R.current=Date.now();return}$||P.current[x]||f==="watchlater"&&R.current&&Date.now()-R.current>r6("1h")&&g(!0,{watchlaterKeepOrder:!0});},{target:document});const P=u.useRef({}),_=pt(async()=>{if(!w||$)return;const Q=x;if(P.current[Q])return;P.current={[Q]:!0};let ne=p,ce=!0;try{if(f==="dynamic")ne=ne.concat(await O.loadMore()||[]),ce=O.hasMore;else if(f==="watchlater")ne=ne.concat(await N.loadMore()||[]),ce=N.hasMore;else for(;!(ne.length>p.length);){const me=await qj(f==="onlyFollow"?5:2,f,E);ne=Uj(ne,me);}}catch(se){throw P.current[Q]=!1,se}if(Q!==y()){Ra("loadMore: skip update for mismatch refreshedAt, %s != %s",Q,y());return}Ra("loadMore: seq(%s) len %s -> %s",d+1,p.length,ne.length),I(ce),b(ne),m(se=>se+1),P.current[Q]=!1,T();}),T=pt(async()=>{await oi(pm?100:0),Ra("checkShouldLoadMore(): footerInView = %s",J.current),J.current&&_();}),A=u.useRef(null),M=pt(()=>{var Q;if(e){const ne=YC()+50;return new DOMRect(0,ne,window.innerWidth,window.innerHeight-ne)}else return (Q=o==null?void 0:o.current)==null?void 0:Q.getBoundingClientRect()}),k=QD(),z=u.useMemo(()=>new Map,[x]),B=u.useMemo(()=>p.map(({uniqId:Q})=>z.get(Q)||(()=>{const ne=GC();return z.set(Q,ne),ne})()),[p]),{activeIndex:W,clearActiveIndex:j}=gj({enabled:t&&!k,refresh:g,maxIndex:p.length-1,containerRef:A,getScrollerRect:M,videoCardEmitters:B,changeScrollY:e?function({offset:Q,absolute:ne}){const ce=document.documentElement;if(typeof Q=="number"){ce.scrollTop+=Q;return}if(typeof ne=="number"){ce.scrollTop=ne;return}}:void 0}),G=Xi(),{colorPrimary:F}=ma(),K=pt((Q,ne)=>{b(ce=>{const se=ce.findIndex(oe=>oe.uniqId===Q.uniqId);if(se===-1)return ce;let me=ce.slice();return me.splice(se,1),tn(`已移除: ${ne.title}`,4e3),f==="watchlater"&&(N.count--,a==null||a(N.usageInfo)),me});}),re=pt((Q,ne)=>{b(ce=>{const se=ce.find(he=>he.uniqId===Q.uniqId);if(!se)return ce;const me=ce.indexOf(se),oe=ce.slice();return oe.splice(me,1),oe.unshift(se),oe});}),{ref:Z,inView:Y}=c6({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Q){Q&&(Ra("footerInView change to visible",Q),_());}}),J=Zi(Y),ie=H("div",{ref:Z,css:tH,children:!$&&H(Lt,{children:w?ge(Lt,{children:[H(gr,{name:"Loading",fill:F,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ae=V(`${io}-video-grid`,oh,c?hj:G?JC:QC,l&&vj,r);return C||$&&!S?H("div",{className:kg,children:H("div",{className:ae,children:new Array(28).fill(void 0).map((Q,ne)=>H(lc,{loading:!0,className:ki.card},ne))})}):ge("div",{style:{minHeight:"100%"},className:kg,children:[H("div",{ref:A,className:ae,children:p.map((Q,ne)=>{const ce=ne===W;return H(lc,{className:V(ki.card,{[ki.cardActive]:ce}),css:[ce&&er("border-color:",F,";",""),"",""],item:Q,active:ce,onRemoveCurrent:K,onMoveToFirst:re,emitter:B[ne]},Q.uniqId)})}),ie]})});var nH={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 rH=nH;var oH=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:rH}))};const TS=u__namespace.forwardRef(oH);function Gg(e){return !!(e&&e.then)}const iH=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,f=u__namespace.useRef(!1),d=u__namespace.useRef(null),[m,h]=Vo(!1),v=function(){i==null||i.apply(void 0,arguments);};u__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var C;(C=d.current)===null||C===void 0||C.focus();})),()=>{b&&clearTimeout(b);}},[]);const g=b=>{Gg(b)&&(h(!0),b.then(function(){h(!1,!0),v.apply(void 0,arguments),f.current=!1;},C=>(h(!1,!0),f.current=!1,Promise.reject(C))));},p=b=>{if(f.current)return;if(f.current=!0,!c){v();return}let C;if(s){if(C=c(b),l&&!Gg(C)){f.current=!1,v(b);return}}else if(c.length)C=c(i),f.current=!1;else if(C=c(),!C){v();return}g(C);};return u__namespace.createElement(dn,Object.assign({},by(t),{onClick:p,loading:m,prefixCls:r},o,{ref:d}),n)},aH=iH,sH=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c,colorTextHeading:f}=e;return {[t]:{zIndex:r,color:o,[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},MS=on("Popconfirm",e=>sH(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var lH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NS=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=u__namespace.createElement(TS,null),showCancel:f=!0,close:d,onConfirm:m,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=u__namespace.useContext(lt),[p]=lm("Popconfirm",Gi.Popconfirm),b=Yi(o),C=Yi(i);return u__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},u__namespace.createElement("div",{className:`${t}-message`},c&&u__namespace.createElement("span",{className:`${t}-message-icon`},c),u__namespace.createElement("div",{className:`${t}-message-text`},b&&u__namespace.createElement("div",{className:V(`${t}-title`)},b),C&&u__namespace.createElement("div",{className:`${t}-description`},C))),u__namespace.createElement("div",{className:`${t}-buttons`},f&&u__namespace.createElement(dn,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),u__namespace.createElement(aH,{buttonProps:Object.assign(Object.assign({size:"small"},by(l)),n),actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))};function cH(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=lH(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=u__namespace.useContext(lt),s=a("popconfirm",t),[l]=MS(s);return l(u__namespace.createElement(b0,{placement:n,className:V(s,r),style:o,content:u__namespace.createElement(NS,Object.assign({prefixCls:s},i))}))}var uH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AS=u__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=u__namespace.createElement(TS,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:f}=e,d=uH(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=u__namespace.useContext(lt),[h,v]=Zt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(I,E)=>{v(I,!0),f==null||f(I),c==null||c(I,E);},p=I=>{g(!1,I);},b=I=>{var E;return (E=e.onConfirm)===null||E===void 0?void 0:E.call(globalThis,I)},C=I=>{var E;g(!1,I),(E=e.onCancel)===null||E===void 0||E.call(globalThis,I);},$=I=>{I.keyCode===ee.ESC&&h&&g(!1,I);},x=I=>{const{disabled:E=!1}=e;E||g(I);},y=m("popconfirm",n),S=V(y,l),[w]=MS(y);return w(u__namespace.createElement(C0,Object.assign({},On(d,["title"]),{trigger:o,placement:r,onOpenChange:x,open:h,ref:t,overlayClassName:S,content:u__namespace.createElement(NS,Object.assign({okType:i,icon:a},e,{prefixCls:y,close:p,onConfirm:b,onCancel:C})),"data-popover-inject":!0}),En(s,{onKeyDown:I=>{var E,O;u__namespace.isValidElement(s)&&((O=s==null?void 0:(E=s.props).onKeyDown)===null||O===void 0||O.call(E,I)),$(I);}})))});AS._InternalPanelDoNotUseOrYouWillBeFired=cH;const dH=AS;var ai=u__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function If(e,t,n){return (e-t)/(n-t)}function vh(e,t,n,r){var o=If(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function _i(e,t){return Array.isArray(e)?e[t]:e}var fH=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],mH=u__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,f=e.dragging,d=e.onOffsetChange,m=Je(e,fH),h=u__namespace.useContext(ai),v=h.min,g=h.max,p=h.direction,b=h.disabled,C=h.keyboard,$=h.range,x=h.tabIndex,y=h.ariaLabelForHandle,S=h.ariaLabelledByForHandle,w=h.ariaValueTextFormatterForHandle,I="".concat(o,"-handle"),E=function(_){b||s(_,a);},O=function(_){if(!b&&C){var T=null;switch(_.which||_.keyCode){case ee.LEFT:T=p==="ltr"||p==="btt"?-1:1;break;case ee.RIGHT:T=p==="ltr"||p==="btt"?1:-1;break;case ee.UP:T=p!=="ttb"?1:-1;break;case ee.DOWN:T=p!=="ttb"?-1:1;break;case ee.HOME:T="min";break;case ee.END:T="max";break;case ee.PAGE_UP:T=2;break;case ee.PAGE_DOWN:T=-2;break}T!==null&&(_.preventDefault(),d(T,a));}},N=vh(p,i,v,g),R=u__namespace.createElement("div",ye({ref:t,className:V(I,(n={},q(n,"".concat(I,"-").concat(a+1),$),q(n,"".concat(I,"-dragging"),f),n)),style:X(X({},N),l),onMouseDown:E,onTouchStart:E,onKeyDown:O,tabIndex:b?null:_i(x,a),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":_i(y,a),"aria-labelledby":_i(S,a),"aria-valuetext":(r=_i(w,a))===null||r===void 0?void 0:r(i)},m));return c&&(R=c(R,{index:a,prefixCls:o,value:i,dragging:f})),R}),hH=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],vH=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Je(e,hH),f=u__namespace.useRef({});return u__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=f.current[m])===null||h===void 0||h.focus();}}}),u__namespace.createElement(u__namespace.Fragment,null,a.map(function(d,m){return u__namespace.createElement(mH,ye({ref:function(v){v?f.current[m]=v:delete f.current[m];},dragging:l===m,prefixCls:n,style:_i(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:i,render:s},c))}))});function Kg(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function gH(e,t,n,r,o,i,a,s,l){var c=u__namespace.useState(null),f=U(c,2),d=f[0],m=f[1],h=u__namespace.useState(-1),v=U(h,2),g=v[0],p=v[1],b=u__namespace.useState(n),C=U(b,2),$=C[0],x=C[1],y=u__namespace.useState(n),S=U(y,2),w=S[0],I=S[1],E=u__namespace.useRef(null),O=u__namespace.useRef(null);u__namespace.useEffect(function(){g===-1&&x(n);},[n,g]),u__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",O.current);}},[]);var N=function(M,k){$.some(function(z,B){return z!==M[B]})&&(k!==void 0&&m(k),x(M),a(M));},R=function(M,k){if(M===-1){var z=w[0],B=w[w.length-1],W=r-z,j=o-B,G=k*(o-r);G=Math.max(G,W),G=Math.min(G,j);var F=i(z+G);G=F-z;var K=w.map(function(J){return J+G});N(K);}else {var re=(o-r)*k,Z=qe($);Z[M]=w[M];var Y=l(Z,re,M,"dist");N(Y.values,Y.value);}},P=u__namespace.useRef(R);P.current=R;var _=function(M,k){M.stopPropagation();var z=n[k];p(k),m(z),I(n);var B=Kg(M),W=B.pageX,j=B.pageY,G=function(re){re.preventDefault();var Z=Kg(re),Y=Z.pageX,J=Z.pageY,ie=Y-W,ae=J-j,de=e.current.getBoundingClientRect(),Q=de.width,ne=de.height,ce;switch(t){case"btt":ce=-ae/ne;break;case"ttb":ce=ae/ne;break;case"rtl":ce=-ie/Q;break;default:ce=ie/Q;}P.current(k,ce);},F=function K(re){re.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",G),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",G),E.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",F),document.addEventListener("mousemove",G),document.addEventListener("touchend",F),document.addEventListener("touchmove",G),E.current=G,O.current=F;},T=u__namespace.useMemo(function(){var A=qe(n).sort(function(k,z){return k-z}),M=qe($).sort(function(k,z){return k-z});return A.every(function(k,z){return k===M[z]})?$:n},[n,$]);return [g,d,T,_]}function pH(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=u__namespace.useContext(ai),l=s.direction,c=s.min,f=s.max,d=s.disabled,m=s.range,h="".concat(t,"-track"),v=If(r,c,f),g=If(o,c,f),p=function($){!d&&a&&a($,-1);},b={};switch(l){case"rtl":b.right="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");break;case"btt":b.bottom="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;case"ttb":b.top="".concat(v*100,"%"),b.height="".concat(g*100-v*100,"%");break;default:b.left="".concat(v*100,"%"),b.width="".concat(g*100-v*100,"%");}return u__namespace.createElement("div",{className:V(h,m&&"".concat(h,"-").concat(i+1)),style:X(X({},b),n),onMouseDown:p,onTouchStart:p})}function bH(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=u__namespace.useContext(ai),s=a.included,l=a.range,c=a.min,f=u__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,m=r[0];return [{start:Math.min(d,m),end:Math.max(d,m)}]}for(var h=[],v=0;v<r.length-1;v+=1)h.push({start:r[v],end:r[v+1]});return h},[r,l,o,c]);return s?f.map(function(d,m){var h=d.start,v=d.end;return u__namespace.createElement(pH,{index:m,prefixCls:t,style:_i(n,m),start:h,end:v,key:m,onStartMove:i})}):null}function yH(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=u__namespace.useContext(ai),s=a.min,l=a.max,c=a.direction,f=a.includedStart,d=a.includedEnd,m=a.included,h="".concat(t,"-text"),v=vh(c,o,s,l);return u__namespace.createElement("span",{className:V(h,q({},"".concat(h,"-active"),m&&f<=o&&o<=d)),style:X(X({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function CH(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?u__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return u__namespace.createElement(yH,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function SH(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=u__namespace.useContext(ai),a=i.min,s=i.max,l=i.direction,c=i.included,f=i.includedStart,d=i.includedEnd,m="".concat(t,"-dot"),h=c&&f<=n&&n<=d,v=X(X({},vh(l,n,a,s)),typeof r=="function"?r(n):r);return h&&(v=X(X({},v),typeof o=="function"?o(n):o)),u__namespace.createElement("span",{className:V(m,q({},"".concat(m,"-active"),h)),style:v})}function wH(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=u__namespace.useContext(ai),s=a.min,l=a.max,c=a.step,f=u__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var m=s;m<=l;)d.add(m),m+=c;return Array.from(d)},[s,l,c,r,n]);return u__namespace.createElement("div",{className:"".concat(t,"-step")},f.map(function(d){return u__namespace.createElement(SH,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function $H(e,t,n,r,o,i){var a=u__namespace.useCallback(function(h){var v=isFinite(h)?h:e;return v=Math.min(t,h),v=Math.max(e,v),v},[e,t]),s=u__namespace.useCallback(function(h){if(n!==null){var v=e+Math.round((a(h)-e)/n)*n,g=function($){return (String($).split(".")[1]||"").length},p=Math.max(g(n),g(t),g(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,a]),l=u__namespace.useCallback(function(h){var v=a(h),g=r.map(function(C){return C.value});n!==null&&g.push(s(h)),g.push(e,t);var p=g[0],b=t-e;return g.forEach(function(C){var $=Math.abs(v-C);$<=b&&(p=C,b=$);}),p},[e,t,r,n,a,s]),c=function h(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var C,$=v[p],x=$+g,y=[];r.forEach(function(O){y.push(O.value);}),y.push(e,t),y.push(s($));var S=g>0?1:-1;b==="unit"?y.push(s($+S*n)):y.push(s(x)),y=y.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=$:O>=$}),b==="unit"&&(y=y.filter(function(O){return O!==$}));var w=b==="unit"?$:x;C=y[0];var I=Math.abs(C-w);if(y.forEach(function(O){var N=Math.abs(O-w);N<I&&(C=O,I=N);}),C===void 0)return g<0?e:t;if(b==="dist")return C;if(Math.abs(g)>1){var E=qe(v);return E[p]=C,h(E,g-S,p,b)}return C}else {if(g==="min")return e;if(g==="max")return t}},f=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=v[p],$=c(v,g,p,b);return {value:$,changed:$!==C}},d=function(v){return i===null&&v===0||typeof i=="number"&&v<i},m=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=v.map(l),$=C[p],x=c(C,g,p,b);if(C[p]=x,o===!1){var y=i||0;p>0&&C[p-1]!==$&&(C[p]=Math.max(C[p],C[p-1]+y)),p<C.length-1&&C[p+1]!==$&&(C[p]=Math.min(C[p],C[p+1]-y));}else if(typeof i=="number"||i===null){for(var S=p+1;S<C.length;S+=1)for(var w=!0;d(C[S]-C[S-1])&&w;){var I=f(C,1,S);C[S]=I.value,w=I.changed;}for(var E=p;E>0;E-=1)for(var O=!0;d(C[E]-C[E-1])&&O;){var N=f(C,-1,E-1);C[E-1]=N.value,O=N.changed;}for(var R=C.length-1;R>0;R-=1)for(var P=!0;d(C[R]-C[R-1])&&P;){var _=f(C,-1,R-1);C[R-1]=_.value,P=_.changed;}for(var T=0;T<C.length-1;T+=1)for(var A=!0;d(C[T+1]-C[T])&&A;){var M=f(C,1,T+1);C[T+1]=M.value,A=M.changed;}}return {value:C[p],values:C}};return [l,m]}var xH=u__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,i=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,f=c===void 0?!0:c,d=e.autoFocus,m=e.onFocus,h=e.onBlur,v=e.min,g=v===void 0?0:v,p=e.max,b=p===void 0?100:p,C=e.step,$=C===void 0?1:C,x=e.value,y=e.defaultValue,S=e.range,w=e.count,I=e.onChange,E=e.onBeforeChange,O=e.onAfterChange,N=e.allowCross,R=N===void 0?!0:N,P=e.pushable,_=P===void 0?!1:P,T=e.draggableTrack,A=e.reverse,M=e.vertical,k=e.included,z=k===void 0?!0:k,B=e.startPoint,W=e.trackStyle,j=e.handleStyle,G=e.railStyle,F=e.dotStyle,K=e.activeDotStyle,re=e.marks,Z=e.dots,Y=e.handleRender,J=e.tabIndex,ie=J===void 0?0:J,ae=e.ariaLabelForHandle,de=e.ariaLabelledByForHandle,Q=e.ariaValueTextFormatterForHandle,ne=u__namespace.useRef(),ce=u__namespace.useRef(),se=u__namespace.useMemo(function(){return M?A?"ttb":"btt":A?"rtl":"ltr"},[A,M]),me=u__namespace.useMemo(function(){return isFinite(g)?g:0},[g]),oe=u__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),he=u__namespace.useMemo(function(){return $!==null&&$<=0?1:$},[$]),ue=u__namespace.useMemo(function(){return _===!0?he:_>=0?_:!1},[_,he]),fe=u__namespace.useMemo(function(){var Ae=Object.keys(re||{});return Ae.map(function(We){var Te=re[We],yt={value:Number(We)};return Te&&ft(Te)==="object"&&!u__namespace.isValidElement(Te)&&("label"in Te||"style"in Te)?(yt.style=Te.style,yt.label=Te.label):yt.label=Te,yt}).filter(function(We){var Te=We.label;return Te||typeof Te=="number"}).sort(function(We,Te){return We.value-Te.value})},[re]),_e=$H(me,oe,he,fe,R,ue),et=U(_e,2),Ue=et[0],De=et[1],Qe=Zt(y,{value:x}),it=U(Qe,2),Ze=it[0],Ve=it[1],Re=u__namespace.useMemo(function(){var Ae=Ze==null?[]:Array.isArray(Ze)?Ze:[Ze],We=U(Ae,1),Te=We[0],yt=Te===void 0?me:Te,vt=Ze===null?[]:[yt];if(S){if(vt=qe(Ae),w||Ze===void 0){var Qt=w>=0?w+1:2;for(vt=vt.slice(0,Qt);vt.length<Qt;){var Me;vt.push((Me=vt[vt.length-1])!==null&&Me!==void 0?Me:me);}}vt.sort(function(Be,ct){return Be-ct});}return vt.forEach(function(Be,ct){vt[ct]=Ue(Be);}),vt},[Ze,S,me,w,Ue]),be=u__namespace.useRef(Re);be.current=Re;var je=function(We){return S?We:We[0]},He=function(We){var Te=qe(We).sort(function(yt,vt){return yt-vt});I&&!zc(Te,be.current,!0)&&I(je(Te)),Ve(Te);},pe=function(We){if(!l){var Te=0,yt=oe-me;Re.forEach(function(Qt,Me){var Be=Math.abs(We-Qt);Be<=yt&&(yt=Be,Te=Me);});var vt=qe(Re);vt[Te]=We,S&&!Re.length&&w===void 0&&vt.push(We),E==null||E(je(vt)),He(vt),O==null||O(je(vt));}},$e=function(We){We.preventDefault();var Te=ce.current.getBoundingClientRect(),yt=Te.width,vt=Te.height,Qt=Te.left,Me=Te.top,Be=Te.bottom,ct=Te.right,xt=We.clientX,Xt=We.clientY,zt;switch(se){case"btt":zt=(Be-Xt)/vt;break;case"ttb":zt=(Xt-Me)/vt;break;case"rtl":zt=(ct-xt)/yt;break;default:zt=(xt-Qt)/yt;}var pn=me+zt*(oe-me);pe(Ue(pn));},Xe=u__namespace.useState(null),Fe=U(Xe,2),dt=Fe[0],Ee=Fe[1],Oe=function(We,Te){if(!l){var yt=De(Re,We,Te);E==null||E(je(Re)),He(yt.values),O==null||O(je(yt.values)),Ee(yt.value);}};u__namespace.useEffect(function(){if(dt!==null){var Ae=Re.indexOf(dt);Ae>=0&&ne.current.focus(Ae);}Ee(null);},[dt]);var Le=u__namespace.useMemo(function(){return T&&he===null?!1:T},[T,he]),Pe=function(){O==null||O(je(be.current));},tt=gH(ce,se,Re,me,oe,Ue,He,Pe,De),St=U(tt,4),kt=St[0],At=St[1],Ne=St[2],ve=St[3],le=function(We,Te){ve(We,Te),E==null||E(je(be.current));},Ce=kt!==-1;u__namespace.useEffect(function(){if(!Ce){var Ae=Re.lastIndexOf(At);ne.current.focus(Ae);}},[Ce]);var xe=u__namespace.useMemo(function(){return qe(Ne).sort(function(Ae,We){return Ae-We})},[Ne]),Ye=u__namespace.useMemo(function(){return S?[xe[0],xe[xe.length-1]]:[me,xe[0]]},[xe,S,me]),mt=U(Ye,2),bt=mt[0],Ut=mt[1];u__namespace.useImperativeHandle(t,function(){return {focus:function(){ne.current.focus(0);},blur:function(){var We=document,Te=We.activeElement;ce.current.contains(Te)&&(Te==null||Te.blur());}}}),u__namespace.useEffect(function(){d&&ne.current.focus(0);},[]);var Bt=u__namespace.useMemo(function(){return {min:me,max:oe,direction:se,disabled:l,keyboard:f,step:he,included:z,includedStart:bt,includedEnd:Ut,range:S,tabIndex:ie,ariaLabelForHandle:ae,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:Q}},[me,oe,se,l,f,he,z,bt,Ut,S,ie,ae,de,Q]);return u__namespace.createElement(ai.Provider,{value:Bt},u__namespace.createElement("div",{ref:ce,className:V(o,i,(n={},q(n,"".concat(o,"-disabled"),l),q(n,"".concat(o,"-vertical"),M),q(n,"".concat(o,"-horizontal"),!M),q(n,"".concat(o,"-with-marks"),fe.length),n)),style:a,onMouseDown:$e},u__namespace.createElement("div",{className:"".concat(o,"-rail"),style:G}),u__namespace.createElement(bH,{prefixCls:o,style:W,values:xe,startPoint:B,onStartMove:Le?le:null}),u__namespace.createElement(wH,{prefixCls:o,marks:fe,dots:Z,style:F,activeStyle:K}),u__namespace.createElement(vH,{ref:ne,prefixCls:o,style:j,values:Ne,draggingIndex:kt,onStartMove:le,onOffsetChange:Oe,onFocus:m,onBlur:h,handleRender:Y}),u__namespace.createElement(CH,{prefixCls:o,marks:fe,onClick:pe})))});const EH=u__namespace.forwardRef((e,t)=>{const{open:n}=e,r=u.useRef(null),o=u.useRef(null);function i(){Mt.cancel(o.current),o.current=null;}function a(){o.current=Mt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return u__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),u__namespace.createElement(Os,Object.assign({ref:Mn(r,t)},e))}),OH=EH,IH=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},Kt(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,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.colorPrimary}`,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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,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 qt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
`]:{cursor:"not-allowed !important"}}})}},kS=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},_H=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},kS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},PH=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},kS(e,!1)),{height:"100%"})}},RH=on("Slider",e=>{const t=$t(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [IH(t),_H(t),PH(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}});var TH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const MH=e=>typeof e=="number"?e.toString():"",NH=u.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:f}=e,d=TH(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:m,direction:h,getPopupContainer:v}=u.useContext(lt),[g,p]=u.useState({}),b=(O,N)=>{p(R=>Object.assign(Object.assign({},R),{[O]:N}));},C=(O,N)=>O||(N?h==="rtl"?"left":"right":"top"),$=m("slider",n),[x,y]=RH($),S=V(o,i,{[`${$}-rtl`]:h==="rtl"},y);h==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[w,I]=u.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),E=(O,N)=>{var R;const{index:P,dragging:_}=N,{tooltip:T={},vertical:A}=e,M=Object.assign({},T),{open:k,placement:z,getPopupContainer:B,prefixCls:W,formatter:j}=M;let G;j||j===null?G=j:s||s===null?G=s:G=MH;const F=G?g[P]||_:!1,K=(R=k??l)!==null&&R!==void 0?R:k===void 0&&F,re=Object.assign(Object.assign({},O.props),{onMouseEnter:()=>b(P,!0),onMouseLeave:()=>b(P,!1)}),Z=m("tooltip",W??a);return u.createElement(OH,{prefixCls:Z,title:G?G(N.value):"",open:K,placement:C(z??f,A),key:P,overlayClassName:`${$}-tooltip`,getPopupContainer:B||c||v},u.cloneElement(O,re))};return x(u.createElement(xH,Object.assign({},d,{step:d.step,range:w,draggableTrack:I,className:S,ref:t,prefixCls:$,handleRender:E})))}),AH=NH;var kH={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 DH=kH;var LH=function(t,n){return u__namespace.createElement(Xn,ye({},t,{ref:n,icon:DH}))};const zH=u__namespace.forwardRef(LH),yu=u.createContext(null);var DS=u__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return u__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:V(n,a&&"".concat(n,"-active"),r),ref:t},l)}),jH=["key","forceRender","style","className"];function HH(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=u__namespace.useContext(yu),s=a.prefixCls,l=a.tabs,c=r.tabPane,f="".concat(s,"-tabpane");return u__namespace.createElement("div",{className:V("".concat(s,"-content-holder"))},u__namespace.createElement("div",{className:V("".concat(s,"-content"),"".concat(s,"-content-").concat(o),q({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,h=d.forceRender,v=d.style,g=d.className,p=Je(d,jH),b=m===n;return u__namespace.createElement(xo,ye({key:m,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(f,"-hidden")},r.tabPaneMotion),function(C,$){var x=C.style,y=C.className;return u__namespace.createElement(DS,ye({},p,{prefixCls:f,id:t,tabKey:m,animated:c,active:b,style:X(X({},v),x),className:V(g,y),ref:$}))})})))}var Ug={width:0,height:0,left:0,top:0};function BH(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ug,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var f;c=t.get((f=e[s-1])===null||f===void 0?void 0:f.key)||Ug;}var d=o.get(l)||X({},c);d.right=a-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Xg(e,t){var n=u__namespace.useRef(e),r=u__namespace.useState({}),o=U(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({});}return [n.current,a]}var FH=.1,Yg=.01,Rl=20,qg=Math.pow(.995,Rl);function WH(e,t){var n=u.useState(),r=U(n,2),o=r[0],i=r[1],a=u.useState(0),s=U(a,2),l=s[0],c=s[1],f=u.useState(0),d=U(f,2),m=d[0],h=d[1],v=u.useState(),g=U(v,2),p=g[0],b=g[1],C=u.useRef();function $(E){var O=E.touches[0],N=O.screenX,R=O.screenY;i({x:N,y:R}),window.clearInterval(C.current);}function x(E){if(o){E.preventDefault();var O=E.touches[0],N=O.screenX,R=O.screenY;i({x:N,y:R});var P=N-o.x,_=R-o.y;t(P,_);var T=Date.now();c(T),h(T-l),b({x:P,y:_});}}function y(){if(o&&(i(null),b(null),p)){var E=p.x/m,O=p.y/m,N=Math.abs(E),R=Math.abs(O);if(Math.max(N,R)<FH)return;var P=E,_=O;C.current=window.setInterval(function(){if(Math.abs(P)<Yg&&Math.abs(_)<Yg){window.clearInterval(C.current);return}P*=qg,_*=qg,t(P*Rl,_*Rl);},Rl);}}var S=u.useRef();function w(E){var O=E.deltaX,N=E.deltaY,R=0,P=Math.abs(O),_=Math.abs(N);P===_?R=S.current==="x"?O:N:P>_?(R=O,S.current="x"):(R=N,S.current="y"),t(-R,-R)&&E.preventDefault();}var I=u.useRef(null);I.current={onTouchStart:$,onTouchMove:x,onTouchEnd:y,onWheel:w},u__namespace.useEffect(function(){function E(P){I.current.onTouchStart(P);}function O(P){I.current.onTouchMove(P);}function N(P){I.current.onTouchEnd(P);}function R(P){I.current.onWheel(P);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",N,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",R),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",N);}},[]);}function LS(e){var t=u.useState(0),n=U(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,Ri(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function VH(e){var t=u.useRef([]),n=u.useState({}),r=U(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=LS(function(){var l=i.current;t.current.forEach(function(c){l=c(l);}),t.current=[],i.current=l,o({});});function s(l){t.current.push(l),a();}return [i.current,s]}var Zg={width:0,height:0,left:0,top:0,right:0};function GH(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,f,d,m;return ["top","bottom"].includes(l)?(f="width",d=c?"right":"left",m=Math.abs(n)):(f="height",d="top",m=-n),u.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,v=h,g=0;g<h;g+=1){var p=e.get(s[g].key)||Zg;if(p[d]+p[f]>m+t){v=g-1;break}}for(var b=0,C=h-1;C>=0;C-=1){var $=e.get(s[C].key)||Zg;if($[d]<m){b=C+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,i,m,l,s.map(function(h){return h.key}).join("_"),c])}function Qg(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var KH="TABS_DQ";function zS(e){return String(e).replace(/"/g,KH)}function UH(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:u__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const jS=u__namespace.forwardRef(UH);var Jg=u__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return ft(o)==="object"&&!u__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function XH(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,f=e.style,d=e.className,m=e.editable,h=e.tabBarGutter,v=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,C=e.popupClassName,$=u.useState(!1),x=U($,2),y=x[0],S=x[1],w=u.useState(null),I=U(w,2),E=I[0],O=I[1],N="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),P=E!==null?"".concat(N,"-").concat(E):null,_=i==null?void 0:i.dropdownAriaLabel;function T(j,G){j.preventDefault(),j.stopPropagation(),m.onEdit("remove",{key:G,event:j});}var A=u__namespace.createElement(pa,{onClick:function(G){var F=G.key,K=G.domEvent;p(F,K),S(!1);},prefixCls:"".concat(R,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(j){var G=m&&j.closable!==!1&&!j.disabled;return u__namespace.createElement(ks,{key:j.key,id:"".concat(N,"-").concat(j.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(j.key),disabled:j.disabled},u__namespace.createElement("span",null,j.label),G&&u__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(K){K.stopPropagation(),T(K,j.key);}},j.closeIcon||m.removeIcon||"×"))}));function M(j){for(var G=o.filter(function(Y){return !Y.disabled}),F=G.findIndex(function(Y){return Y.key===E})||0,K=G.length,re=0;re<K;re+=1){F=(F+j+K)%K;var Z=G[F];if(!Z.disabled){O(Z.key);return}}}function k(j){var G=j.which;if(!y){[ee.DOWN,ee.SPACE,ee.ENTER].includes(G)&&(S(!0),j.preventDefault());return}switch(G){case ee.UP:M(-1),j.preventDefault();break;case ee.DOWN:M(1),j.preventDefault();break;case ee.ESC:S(!1);break;case ee.SPACE:case ee.ENTER:E!==null&&p(E,j);break}}u.useEffect(function(){var j=document.getElementById(P);j&&j.scrollIntoView&&j.scrollIntoView(!1);},[E]),u.useEffect(function(){y||O(null);},[y]);var z=q({},v?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var B=V(q({},"".concat(R,"-rtl"),v)),W=a?null:u__namespace.createElement($C,{prefixCls:R,overlay:A,trigger:["hover"],visible:o.length?y:!1,transitionName:c,onVisibleChange:S,overlayClassName:V(B,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},u__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":y,onKeyDown:k},l));return u__namespace.createElement("div",{className:V("".concat(n,"-nav-operations"),d),style:f,ref:t},W,u__namespace.createElement(jS,{prefixCls:n,locale:i,editable:m}))}const YH=u__namespace.memo(u__namespace.forwardRef(XH),function(e,t){return t.tabMoving});function qH(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,f=e.closable,d=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),C=h&&f!==!1&&!l;function $(S){l||v(S);}function x(S){S.preventDefault(),S.stopPropagation(),h.onEdit("remove",{key:a,event:S});}var y=u__namespace.createElement("div",{key:a,"data-node-key":zS(a),className:V(b,(t={},q(t,"".concat(b,"-with-remove"),C),q(t,"".concat(b,"-active"),o),q(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:$},u__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(w){w.stopPropagation(),$(w);},onKeyDown:function(w){[ee.SPACE,ee.ENTER].includes(w.which)&&(w.preventDefault(),$(w));},onFocus:g},s),C&&u__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(w){w.stopPropagation(),x(w);}},c||h.removeIcon||"×"));return d?d(y):y}var Ci=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return [o,a]},cl=function(t,n){return t[n?0:1]};function ZH(e,t){var n,r=u__namespace.useContext(yu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,f=e.activeKey,d=e.rtl,m=e.extra,h=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,C=e.onTabClick,$=e.onTabScroll,x=u.useRef(),y=u.useRef(),S=u.useRef(),w=u.useRef(),I=u.useRef(),E=u.useRef(),O=u.useRef(),N=g==="top"||g==="bottom",R=Xg(0,function(Me,Be){N&&$&&$({direction:Me>Be?"left":"right"});}),P=U(R,2),_=P[0],T=P[1],A=Xg(0,function(Me,Be){!N&&$&&$({direction:Me>Be?"top":"bottom"});}),M=U(A,2),k=M[0],z=M[1],B=u.useState([0,0]),W=U(B,2),j=W[0],G=W[1],F=u.useState([0,0]),K=U(F,2),re=K[0],Z=K[1],Y=u.useState([0,0]),J=U(Y,2),ie=J[0],ae=J[1],de=u.useState([0,0]),Q=U(de,2),ne=Q[0],ce=Q[1],se=VH(new Map),me=U(se,2),oe=me[0],he=me[1],ue=BH(i,oe,re[0]),fe=cl(j,N),_e=cl(re,N),et=cl(ie,N),Ue=cl(ne,N),De=fe<_e+et,Qe=De?fe-Ue:fe-et,it="".concat(o,"-nav-operations-hidden"),Ze=0,Ve=0;N&&d?(Ze=0,Ve=Math.max(0,_e-Qe)):(Ze=Math.min(0,Qe-_e),Ve=0);function Re(Me){return Me<Ze?Ze:Me>Ve?Ve:Me}var be=u.useRef(),je=u.useState(),He=U(je,2),pe=He[0],$e=He[1];function Xe(){$e(Date.now());}function Fe(){window.clearTimeout(be.current);}WH(w,function(Me,Be){function ct(xt,Xt){xt(function(zt){var pn=Re(zt+Xt);return pn});}return De?(N?ct(T,Me):ct(z,Be),Fe(),Xe(),!0):!1}),u.useEffect(function(){return Fe(),pe&&(be.current=window.setTimeout(function(){$e(0);},100)),Fe},[pe]);var dt=GH(ue,Qe,N?_:k,_e,et,Ue,X(X({},e),{},{tabs:i})),Ee=U(dt,2),Oe=Ee[0],Le=Ee[1],Pe=Vn(function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,Be=ue.get(Me)||{width:0,height:0,left:0,right:0,top:0};if(N){var ct=_;d?Be.right<_?ct=Be.right:Be.right+Be.width>_+Qe&&(ct=Be.right+Be.width-Qe):Be.left<-_?ct=-Be.left:Be.left+Be.width>-_+Qe&&(ct=-(Be.left+Be.width-Qe)),z(0),T(Re(ct));}else {var xt=k;Be.top<-k?xt=-Be.top:Be.top+Be.height>-k+Qe&&(xt=-(Be.top+Be.height-Qe)),T(0),z(Re(xt));}}),tt={};g==="top"||g==="bottom"?tt[d?"marginRight":"marginLeft"]=p:tt.marginTop=p;var St=i.map(function(Me,Be){var ct=Me.key;return u__namespace.createElement(qH,{id:l,prefixCls:o,key:ct,tab:Me,style:Be===0?void 0:tt,closable:Me.closable,editable:h,active:ct===f,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(Xt){C(ct,Xt);},onFocus:function(){Pe(ct),Xe(),w.current&&(d||(w.current.scrollLeft=0),w.current.scrollTop=0);}})}),kt=function(){return he(function(){var Be=new Map;return i.forEach(function(ct){var xt,Xt=ct.key,zt=(xt=I.current)===null||xt===void 0?void 0:xt.querySelector('[data-node-key="'.concat(zS(Xt),'"]'));zt&&Be.set(Xt,{width:zt.offsetWidth,height:zt.offsetHeight,left:zt.offsetLeft,top:zt.offsetTop});}),Be})};u.useEffect(function(){kt();},[i.map(function(Me){return Me.key}).join("_")]);var At=LS(function(){var Me=Ci(x),Be=Ci(y),ct=Ci(S);G([Me[0]-Be[0]-ct[0],Me[1]-Be[1]-ct[1]]);var xt=Ci(O);ae(xt);var Xt=Ci(E);ce(Xt);var zt=Ci(I);Z([zt[0]-xt[0],zt[1]-xt[1]]),kt();}),Ne=i.slice(0,Oe),ve=i.slice(Le+1),le=[].concat(qe(Ne),qe(ve)),Ce=u.useState(),xe=U(Ce,2),Ye=xe[0],mt=xe[1],bt=ue.get(f),Ut=u.useRef();function Bt(){Mt.cancel(Ut.current);}u.useEffect(function(){var Me={};return bt&&(N?(d?Me.right=bt.right:Me.left=bt.left,Me.width=bt.width):(Me.top=bt.top,Me.height=bt.height)),Bt(),Ut.current=Mt(function(){mt(Me);}),Bt},[bt,N,d]),u.useEffect(function(){Pe();},[f,Ze,Ve,Qg(bt),Qg(ue),N]),u.useEffect(function(){At();},[d]);var Ae=!!le.length,We="".concat(o,"-nav-wrap"),Te,yt,vt,Qt;return N?d?(yt=_>0,Te=_!==Ve):(Te=_<0,yt=_!==Ze):(vt=k<0,Qt=k!==Ze),u__namespace.createElement(Jr,{onResize:At},u__namespace.createElement("div",{ref:Ss(t,x),role:"tablist",className:V("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Xe();}},u__namespace.createElement(Jg,{ref:y,position:"left",extra:m,prefixCls:o}),u__namespace.createElement("div",{className:V(We,(n={},q(n,"".concat(We,"-ping-left"),Te),q(n,"".concat(We,"-ping-right"),yt),q(n,"".concat(We,"-ping-top"),vt),q(n,"".concat(We,"-ping-bottom"),Qt),n)),ref:w},u__namespace.createElement(Jr,{onResize:At},u__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(k,"px)"),transition:pe?"none":void 0}},St,u__namespace.createElement(jS,{ref:O,prefixCls:o,locale:v,editable:h,style:X(X({},St.length===0?void 0:tt),{},{visibility:Ae?"hidden":null})}),u__namespace.createElement("div",{className:V("".concat(o,"-ink-bar"),q({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ye})))),u__namespace.createElement(YH,ye({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:E,prefixCls:o,tabs:le,className:!Ae&&it,tabMoving:!!pe})),u__namespace.createElement(Jg,{ref:S,position:"right",extra:m,prefixCls:o})))}const ep=u__namespace.forwardRef(ZH);var QH=["renderTabBar"],JH=["label","key"];function eB(e){var t=e.renderTabBar,n=Je(e,QH),r=u__namespace.useContext(yu),o=r.tabs;if(t){var i=X(X({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Je(a,JH);return u__namespace.createElement(DS,ye({tab:s,key:l,tabKey:l},c))})});return t(i,ep)}return u__namespace.createElement(ep,n)}function tB(){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},ft(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var nB=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],tp=0;function rB(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,f=e.defaultActiveKey,d=e.editable,m=e.animated,h=e.tabPosition,v=h===void 0?"top":h,g=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,C=e.locale,$=e.moreIcon,x=e.moreTransitionName,y=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,I=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,N=e.popupClassName,R=Je(e,nB),P=u__namespace.useMemo(function(){return (s||[]).filter(function(se){return se&&ft(se)==="object"&&"key"in se})},[s]),_=l==="rtl",T=tB(m),A=u.useState(!1),M=U(A,2),k=M[0],z=M[1];u.useEffect(function(){z(kc());},[]);var B=Zt(function(){var se;return (se=P[0])===null||se===void 0?void 0:se.key},{value:c,defaultValue:f}),W=U(B,2),j=W[0],G=W[1],F=u.useState(function(){return P.findIndex(function(se){return se.key===j})}),K=U(F,2),re=K[0],Z=K[1];u.useEffect(function(){var se=P.findIndex(function(oe){return oe.key===j});if(se===-1){var me;se=Math.max(0,Math.min(re,P.length-1)),G((me=P[se])===null||me===void 0?void 0:me.key);}Z(se);},[P.map(function(se){return se.key}).join("_"),j,re]);var Y=Zt(null,{value:r}),J=U(Y,2),ie=J[0],ae=J[1];u.useEffect(function(){r||(ae("rc-tabs-".concat(tp)),tp+=1);},[]);function de(se,me){I==null||I(se,me);var oe=se!==j;G(se),oe&&(w==null||w(se));}var Q={id:ie,activeKey:j,animated:T,tabPosition:v,rtl:_,mobile:k},ne,ce=X(X({},Q),{},{editable:d,locale:C,moreIcon:$,moreTransitionName:x,tabBarGutter:g,onTabClick:de,onTabScroll:E,extra:b,style:p,panes:null,getPopupContainer:O,popupClassName:N});return u__namespace.createElement(yu.Provider,{value:{tabs:P,prefixCls:i}},u__namespace.createElement("div",ye({ref:t,id:r,className:V(i,"".concat(i,"-").concat(v),(n={},q(n,"".concat(i,"-mobile"),k),q(n,"".concat(i,"-editable"),d),q(n,"".concat(i,"-rtl"),_),n),a)},R),ne,u__namespace.createElement(eB,ye({},ce,{renderTabBar:S})),u__namespace.createElement(HH,ye({destroyInactiveTabPane:y},Q,{animated:T}))))}var oB=u__namespace.forwardRef(rB);const iB=()=>null,aB=iB,sB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function lB(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({},sB),{motionName:Lc(e,"switch")})),n}var cB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function uB(e){return e.filter(t=>t)}function dB(e,t){if(e)return e;const n=vr(t).map(r=>{if(u__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=cB(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return uB(n)}const fB=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}`}}}}},[wo(e,"slide-up"),wo(e,"slide-down")]]},mB=fB,hB=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},vB=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Kt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Go),{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"}}})}})}},gB=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},pB=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},bB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return {[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},os(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},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},yB=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"}}}}},CB=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${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:i},"&:active, &:focus:not(:focus-visible)":{color:a}},os(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),bB(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"}}}}}},SB=on("Tabs",e=>{const t=$t(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 [pB(t),yB(t),gB(t),vB(t),hB(t),CB(t),mB(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var wB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function HS(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:f,items:d,animated:m}=e,h=wB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:v,moreIcon:g=u__namespace.createElement(th,null)}=h,{direction:p,getPrefixCls:b,getPopupContainer:C}=u__namespace.useContext(lt),$=b("tabs",v),[x,y]=SB($);let S;t==="editable-card"&&(S={onEdit:(N,R)=>{let{key:P,event:_}=R;i==null||i(N==="add"?_:P,N);},removeIcon:u__namespace.createElement(_m,null),addIcon:l||u__namespace.createElement(zH,null),showAdd:a!==!0});const w=b(),I=dB(d,f),E=lB($,m),O=yr(o);return x(u__namespace.createElement(oB,Object.assign({direction:p,getPopupContainer:C,moreTransitionName:`${w}-slide-up`},h,{items:I,className:V({[`${$}-${O}`]:O,[`${$}-card`]:["card","editable-card"].includes(t),[`${$}-editable-card`]:t==="editable-card",[`${$}-centered`]:s},n,r,y),popupClassName:V(c,y),editable:S,moreIcon:g,prefixCls:$,animated:E})))}HS.TabPane=aB;const np=H(dn,{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 BS({style:e,className:t}){const{runAsync:n,loading:r}=h3(RD,{manual:!0}),{accessKey:o}=Kn();return H(hu,{size:"small",style:e,className:t,children:o?ge(Lt,{children:[H(dn,{onClick:n,disabled:r,children:H("span",{children:"重新获取 access_key"})}),H(dn,{onClick:TD,children:H("span",{children:"删除 access_key"})}),np]}):ge(Lt,{children:[H(dn,{onClick:n,disabled:r,size:"middle",children:H("span",{children:"获取 access_key"})}),np]})})}const $B="_config-icon_1xtyf_1",xB="_settings-group_1xtyf_6",EB="_settings-group-title_1xtyf_9",OB="_settings-group-sub-title_1xtyf_14",IB="_settings-group-content_1xtyf_20",_B="_row_1xtyf_26",PB="_check_1xtyf_34",RB="_setting-tabs_1xtyf_39",TB="_tab-pane_1xtyf_42",Ke={configIcon:$B,settingsGroup:xB,settingsGroupTitle:EB,settingsGroupSubTitle:OB,settingsGroupContent:IB,row:_B,check:PB,settingTabs:RB,tabPane:TB};async function FS(){tn("即将刷新网页"),await oi(500),location.reload();}function MB(){return xx(),FS()}function ul(e,t,n){return en(e,r=>{if(tu())return;wt[t]=!wt[t];const o=!wt[t];tn(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function NB({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a}=Kn();return ul(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),ul(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),ul(["shift.c"],"useNarrowMode","居中模式"),ul(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),ge(Km,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ge("div",{className:Ar.modalHeader,children:[ge("div",{className:Ar.modalTitle,children:[H(gr,{name:"Config",className:Ke.configIcon}),"设置项"]}),H("div",{className:"space",style:{flex:1}}),H(Um,{onClick:t})]}),H("main",{className:Ar.modalBody,style:{overflow:"hidden"},children:H(HS,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Ke.settingTabs,items:[{label:"常规设置",key:"normal",children:ge("div",{className:Ke.tabPane,children:[ge("div",{className:Ke.settingsGroup,children:[ge("div",{className:Ke.settingsGroupTitle,children:["access_key",H(Zl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:ge(Lt,{children:["用于「推荐」Tab",H("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),H("div",{className:V(Ke.settingsGroupContent),children:H("div",{className:Ke.row,style:{marginTop:5},children:H(BS,{})})})]}),ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,children:"开关"}),ge("div",{className:V(Ke.settingsGroupContent,Ke.row),children:[H(jn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ge(Lt,{children:["首页只保留推荐",H("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:FS}),H(jn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Ke.check,extraAction:s=>{s&&tn("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),H(jn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ge(Lt,{children:["居中两列",H("br",{}),"切换设置快捷键: ",H(Ao,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,children:"预览"}),ge("div",{className:V(Ke.settingsGroupContent,Ke.row),children:[H(jn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:ge(Lt,{children:["手动预览快捷键: ",H(Ao,{color:"green",children:"."})," or ",H(Ao,{color:"green",children:"p"}),H("br",{}),"切换设置快捷键: ",H(Ao,{color:"green",children:"shift+p"})]})}),H(jn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:ge(Lt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",H("br",{}),"切换设置快捷键: ",H(Ao,{color:"green",children:"shift+m"})]})}),ge("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",H(AH,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:s=>wt.autoPreviewUpdateInterval=s,value:n}),ge("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,children:"帮助"}),H("div",{className:V(Ke.settingsGroupContent),children:H("div",{className:Ke.row,children:ge(hu,{size:"small",children:[H(dn,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),H(dn,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),H(dn,{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:"查看可用的快捷键"}),H(dn,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),H(dn,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"视频过滤",key:"filter",children:H("div",{className:Ke.tabPane,children:ge("div",{className:Ke.settingsGroup,children:[ge("div",{className:Ke.settingsGroupTitle,children:["视频过滤",H(Zl,{iconProps:{name:"Tips"},tooltip:ge(Lt,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",H("br",{}),"仅推荐类 Tab 生效"]})})]}),ge("div",{className:V(Ke.settingsGroupContent),children:[H("div",{className:Ke.settingsGroupSubTitle,children:"过滤范围"}),H(jn,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:H(Lt,{children:"默认不过滤「已关注」"})}),H("div",{className:Ke.settingsGroupSubTitle,children:"过滤器"}),ge("div",{className:Ke.row,children:[H(jn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:H(Lt,{children:"不显示播放量很少的视频"})}),H(Ud,{size:"small",min:1,step:1e3,value:r,onChange:s=>s&&qo({filterMinPlayCount:s}),disabled:!o})]}),ge("div",{className:Ke.row,style:{marginTop:8},children:[H(jn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:H(Lt,{children:"不显示短视频"})}),H(Ud,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:s=>s&&qo({filterMinDuration:s}),disabled:!a})]})]})]})})},{label:"外观设置",key:"ui",children:H("div",{className:Ke.tabPane,children:ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"外观设置"}),ge("div",{className:V(Ke.settingsGroupContent),children:[H("div",{className:Ke.row,children:H(jn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:ge(Lt,{children:["增加卡片大小, 增大卡片间距",H("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",H("br",{}),"切换设置快捷键: ",H(Ao,{color:"green",children:"shift+y"})]})})}),H("div",{className:Ke.row,style:{marginTop:5},children:H(jn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab: 使用标准大小",tooltip:"推荐源切换 Tab 大小, 默认紧凑大小"})})]})]})})},{label:"主题选择",key:"theme-select",children:H("div",{className:Ke.tabPane,children:ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),H("div",{className:V(Ke.settingsGroupContent),children:H(gk,{})})]})})},{label:"高级设置",key:"advance",children:H("div",{className:Ke.tabPane,children:ge("div",{className:Ke.settingsGroup,children:[H("div",{className:Ke.settingsGroupTitle,children:"高级"}),H("div",{className:V(Ke.settingsGroupContent),children:H("div",{className:Ke.row,children:H(dH,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:MB,children:H(dn,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),H("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看"}),H("div",{className:V(Ke.settingsGroupContent),children:H("div",{className:Ke.row,children:H(jn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:H(Lt,{children:"不包括最近添加的「稍后再看」"})})})})]})})}]})})]})}function AB(){const e=u.useRef(null),[t,n]=u.useState(!1);return u.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const kB="_expand-btn_wdzp9_1",DB="_expanded_wdzp9_12",rp={expandBtn:kB,expanded:DB},LB=u.forwardRef(function({children:t},n){const[r,o]=By(!1);u.useImperativeHandle(n,()=>o,[o]);const i=H("button",{className:V("primary-btn",rp.expandBtn),onClick:o.toggle,children:H("svg",{className:V({[rp.expanded]:r}),children:H("use",{href:"#widget-arrow"})})});return ge(Lt,{children:[i,r&&t]})}),zB="_modal-mask_7bwzz_1",jB="_narrow-mode_7bwzz_1",HB="_modal_7bwzz_1",BB="_modal-header_7bwzz_18",FB="_modal-body_7bwzz_19",WB="_btn-refresh_7bwzz_22",Ta={modalMask:zB,narrowMode:jB,modal:HB,modalHeader:BB,modalBody:FB,btnRefresh:WB};var VB={name:"1q4vxyr",styles:"margin-left:8px"};const GB=u.memo(function({show:t,onHide:n}){const r=u.useRef(null),o=u.useRef(null),{useNarrowMode:i}=Kn(),a=u.useMemo(()=>({[Ta.narrowMode]:i}),[i]),s=pt((...v)=>{var g;return (g=o.current)==null?void 0:g.refresh(...v)}),l=pt(()=>{r.current&&(r.current.scrollTop=0);}),c=gm(),{colorPrimary:f}=ma(),d=u.useMemo(()=>c?{border:`1px solid ${f}`}:void 0,[c,f]),[m,h]=u.useState(!1);return ge(Km,{show:t,onHide:n,clsModalMask:V(a),clsModal:V(Ta.modal,a),styleModal:{...d},children:[ge("div",{className:V(Ar.modalHeader,Ta.modalHeader),children:[H(wC,{onRefresh:s}),H("div",{className:"space",style:{flex:1}}),H(LB,{children:H(lk,{})}),H(VS,{css:VB,refreshing:m,onRefresh:s,className:Ta.btnRefresh,refreshHotkeyEnabled:t}),H(Um,{onClick:n})]}),H("div",{className:V(Ar.modalBody,Ta.modalBody),ref:r,children:H(RS,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:h})})]})}),KB=ys.extend("RecHeader"),gh=er`
display: flex;
align-items: center;
justify-content: center;
`,op={btn:er`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${gh}
`,icon:er`
svg {
width: 14px;
height: 14px;
}
`},Co=ti({modalFeedVisible:wt.initialShowMore,modalConfigVisible:!1}),UB=function(){return $o(Co)},XB=()=>{Co.modalFeedVisible=!0;},YB=()=>{Co.modalFeedVisible=!1;},qB=()=>{Co.modalConfigVisible=!0;},ZB=()=>{Co.modalConfigVisible=!1;},WS=u.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:s}=Kn(),{modalFeedVisible:l,modalConfigVisible:c}=$o(Co);en(["shift.comma"],v=>{tu()||(Co.modalConfigVisible=!Co.modalConfigVisible);},{exactMatch:!0});const[f,d]=AB(),m=pt(()=>{var b;if(!s)return;const v=(b=f.current)==null?void 0:b.parentElement;if(!v)return;const g=v.getBoundingClientRect(),p=YC();if(g.top<p){const C=p-g.top+1;KB("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",g.top,p,C),document.documentElement.scrollTop-=C;}});u.useImperativeHandle(i,()=>({scroll:m}));const h=Bz();return ge(Lt,{children:[ge("div",{ref:f,className:"area-header",css:[er`
margin-bottom: 0;
height: 50px;
`,s&&er`
position: sticky;
top: ${h-1}px; // 有缝隙, 故 -1 px
z-index: 1000;
`,s&&d&&er`
background-color: var(--bg1_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[ge("div",{className:"left",children:[H("svg",{className:"icon",children:H("use",{href:"#channel-cinephile"})}),H(wC,{onRefresh:t}),r]}),H("div",{className:"right",children:ge(hu,{size:"small",children:[o,!a&&H(BS,{style:{marginLeft:5}}),H(dn,{onClick:qB,css:op.btn,children:H(gr,{name:"Config",css:op.icon})}),H(VS,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&ge(dn,{css:gh,onClick:XB,children:[H("span",{children:"查看更多"}),H("svg",{css:er`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:H("use",{href:"#widget-arrow"})})]})]})})]}),H(GB,{show:l,onHide:YB}),H(NB,{show:c,onHide:ZB})]})}),VS=u.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=u.useState(0),l=u.useRef(null),c=pt(()=>{l.current&&(l.current.disabled||l.current.click());});u.useImperativeHandle(i,()=>({click:c}),[]),en("r",()=>{tu()||r&&c();},{exactMatch:!0});const f=uu(),d=["dynamic","watchlater"].includes(f)?"刷新":"换一换",m=pt(h=>(s(v=>v+360),e==null?void 0:e()));return ge(dn,{disabled:o,className:t,style:n,css:er`
${gh}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:l,onClick:m,children:[H("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:H("use",{href:"#widget-roll"})}),H("span",{children:d})]})}),QB={grid:er`
/* card=360 col-gap=16 */
width: ${360*2+20}px;
margin: 0 auto;
`};function JB(){const{useNarrowMode:e}=Kn(),{modalFeedVisible:t,modalConfigVisible:n}=UB(),r=u.useRef(null),o=u.useRef(null),i=pt((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),a=pt(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=u.useState(!1),[c,f]=u.useState(null);return ge("section",{"data-area":"推荐",children:[H(WS,{ref:r,refreshing:s,onRefresh:i,leftSlot:c}),H(RS,{ref:o,css:[e&&QB.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l,setExtraInfo:f})]})}const eF=ys.extend("components:SectionRecommend");function tF(){const e=u.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Xi(),n=uu(),{refreshing:r,items:o,refresh:i,error:a}=PS({tab:n,debug:eF,fetcher:Xj,recreateService:!1});return ou(i),ge("section",{"data-area":"推荐",children:[H(WS,{refreshing:r,onRefresh:i}),H("div",{className:V(oh,mj,t?JC:QC),style:{marginBottom:t?30:0},children:r||a?e.map(s=>H(lc,{},s)):o.map(s=>H(lc,{item:s},s.uniqId))})]})}aa.extend(Ix);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return nF()})();async function nF(){return Fa(".adblock-tips"),Ba("html.gray",e=>e.classList.remove("gray")),wt.pureRecommend?oF():rF()}async function rF(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if(Xi()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await oi(200);}if(!n){console.error(`[${io}]: init fail`);return}const r=document.createElement("section");n(r),nu(r).render(H(Ny,{children:H(tF,{})})),Xi()&&Fa(".bili-feed4 .header-channel");}async function oF(){var o,i;pm&&await oi(500),Xi()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Fa(".bili-feed4 .header-channel"),Ba(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),Ba(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),Ba(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Fa(".bili-footer"),Fa(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(Xi()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),nu(n).render(H(Ny,{children:H(JB,{})}));}
})(React, ReactDOM, UAParser, axios, axiosGmxhrAdapter);